cc7e74aa563d45ba383aa97209c8c42e2289e062
[gnulib.git] / ChangeLog
1 2011-01-09  Bruno Haible  <bruno@clisp.org>
2
3         New module 'unictype/property-case-ignorable'.
4         * modules/unictype/property-case-ignorable: New file.
5         * lib/unictype/pr_case_ignorable.c: New file.
6         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7         by gen-uni-tables.
8         * modules/unictype/property-case-ignorable-tests: New file.
9         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10         generated by gen-uni-tables.
11
12         New module 'unictype/property-cased'.
13         * modules/unictype/property-cased: New file.
14         * lib/unictype/pr_cased.c: New file.
15         * lib/unictype/pr_cased.h: New file, automatically generated by
16         gen-uni-tables.
17         * modules/unictype/property-cased-tests: New file.
18         * tests/unictype/test-pr_cased.c: New file, automatically generated by
19         gen-uni-tables.
20
21 2011-01-09  Bruno Haible  <bruno@clisp.org>
22
23         Update to Unicode 5.2.0.
24         * lib/gen-uni-tables.c (output_predicate, output_category,
25         output_combclass, output_bidi_category, output_decimal_digit_test,
26         output_decimal_digit, output_digit_test, output_digit,
27         output_numeric_test, output_numeric, output_mirror, output_scripts,
28         output_scripts_byname, output_blocks, output_ident_category): Fix
29         comment header.
30         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
31         get_wbp.
32         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
33         items.
34         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
35         Changes_When_Lowercased, Changes_When_Uppercased,
36         Changes_When_Titlecased, Changes_When_Casefolded,
37         Changes_When_Casemapped.
38         (is_property_alphabetic, is_property_default_ignorable_code_point):
39         Update for Unicode 5.2.0.
40         (is_property_cased, is_property_case_ignorable,
41         is_property_changes_when_lowercased,
42         is_property_changes_when_uppercased,
43         is_property_changes_when_titlecased,
44         is_property_changes_when_casefolded,
45         is_property_changes_when_casemapped): New functions.
46         (output_properties): Output also the properties cased, case_ignorable,
47         changes_when_lowercased, changes_when_uppercased,
48         changes_when_titlecased, changes_when_casefolded,
49         changes_when_casemapped.
50         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
51         Unicode TR#11 revision 17 -> 19.
52         (LBP_CP): New enumeration value.
53         (LBP_*): Adjust values accordingly.
54         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
55         TR#14 revision 22 -> 24.
56         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
57         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
58         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
59         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
60         is_WBP_MIDLETTER.
61         (output_composition_tables): Allow for 24 bits instead of 16 bits in
62         the code1 and code2 of each composition rule.
63         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
64         * lib/unicase/ignorable.h: Likewise.
65         * lib/unicase/tocasefold.h: Likewise.
66         * lib/unicase/tolower.h: Likewise.
67         * lib/unicase/totitle.h: Likewise.
68         * lib/unicase/toupper.h: Likewise.
69         * lib/unictype/bidi_of.h: Likewise.
70         * lib/unictype/blocks.h: Likewise.
71         * lib/unictype/categ_C.h: Likewise.
72         * lib/unictype/categ_Cf.h: Likewise.
73         * lib/unictype/categ_Cn.h: Likewise.
74         * lib/unictype/categ_L.h: Likewise.
75         * lib/unictype/categ_Ll.h: Likewise.
76         * lib/unictype/categ_Lm.h: Likewise.
77         * lib/unictype/categ_Lo.h: Likewise.
78         * lib/unictype/categ_Lu.h: Likewise.
79         * lib/unictype/categ_M.h: Likewise.
80         * lib/unictype/categ_Mc.h: Likewise.
81         * lib/unictype/categ_Mn.h: Likewise.
82         * lib/unictype/categ_N.h: Likewise.
83         * lib/unictype/categ_Nd.h: Likewise.
84         * lib/unictype/categ_Nl.h: Likewise.
85         * lib/unictype/categ_No.h: Likewise.
86         * lib/unictype/categ_P.h: Likewise.
87         * lib/unictype/categ_Pd.h: Likewise.
88         * lib/unictype/categ_Po.h: Likewise.
89         * lib/unictype/categ_S.h: Likewise.
90         * lib/unictype/categ_Sc.h: Likewise.
91         * lib/unictype/categ_So.h: Likewise.
92         * lib/unictype/categ_of.h: Likewise.
93         * lib/unictype/combining.h: Likewise.
94         * lib/unictype/ctype_alnum.h: Likewise.
95         * lib/unictype/ctype_alpha.h: Likewise.
96         * lib/unictype/ctype_graph.h: Likewise.
97         * lib/unictype/ctype_lower.h: Likewise.
98         * lib/unictype/ctype_print.h: Likewise.
99         * lib/unictype/ctype_punct.h: Likewise.
100         * lib/unictype/ctype_upper.h: Likewise.
101         * lib/unictype/decdigit.h: Likewise.
102         * lib/unictype/digit.h: Likewise.
103         * lib/unictype/numeric.h: Likewise.
104         * lib/unictype/pr_alphabetic.h: Likewise.
105         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
106         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
107         * lib/unictype/pr_bidi_european_digit.h: Likewise.
108         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
109         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
110         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
111         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
112         * lib/unictype/pr_combining.h: Likewise.
113         * lib/unictype/pr_composite.h: Likewise.
114         * lib/unictype/pr_currency_symbol.h: Likewise.
115         * lib/unictype/pr_dash.h: Likewise.
116         * lib/unictype/pr_decimal_digit.h: Likewise.
117         * lib/unictype/pr_deprecated.h: Likewise.
118         * lib/unictype/pr_diacritic.h: Likewise.
119         * lib/unictype/pr_extender.h: Likewise.
120         * lib/unictype/pr_grapheme_base.h: Likewise.
121         * lib/unictype/pr_grapheme_extend.h: Likewise.
122         * lib/unictype/pr_grapheme_link.h: Likewise.
123         * lib/unictype/pr_id_continue.h: Likewise.
124         * lib/unictype/pr_id_start.h: Likewise.
125         * lib/unictype/pr_ideographic.h: Likewise.
126         * lib/unictype/pr_ignorable_control.h: Likewise.
127         * lib/unictype/pr_logical_order_exception.h: Likewise.
128         * lib/unictype/pr_lowercase.h: Likewise.
129         * lib/unictype/pr_numeric.h: Likewise.
130         * lib/unictype/pr_other_alphabetic.h: Likewise.
131         * lib/unictype/pr_punctuation.h: Likewise.
132         * lib/unictype/pr_sentence_terminal.h: Likewise.
133         * lib/unictype/pr_terminal_punctuation.h: Likewise.
134         * lib/unictype/pr_unassigned_code_value.h: Likewise.
135         * lib/unictype/pr_unified_ideograph.h: Likewise.
136         * lib/unictype/pr_uppercase.h: Likewise.
137         * lib/unictype/pr_xid_continue.h: Likewise.
138         * lib/unictype/pr_xid_start.h: Likewise.
139         * lib/unictype/pr_zero_width.h: Likewise.
140         * lib/unictype/scripts.h: Likewise.
141         * lib/unictype/scripts_byname.gperf: Likewise.
142         * lib/unictype/sy_java_ident.h: Likewise.
143         * lib/unigbrk/gbrkprop.h: Likewise.
144         * lib/unilbrk/lbrkprop1.h: Likewise.
145         * lib/unilbrk/lbrkprop2.h: Likewise.
146         * lib/unilbrk/lbrktables.h: Likewise.
147         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
148         LBP_CP. Implement rule LB30.
149         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
150         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
151         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
152         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
153         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
154         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
155         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
156         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
157         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
158         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
159         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
160         bits instead of 16 bits in the code1 and code2 of each composition
161         rule.
162         (uc_composition): Update for Unicode 5.2.0.
163         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
164         * lib/uninorm/decomposition-table2.h: Likewise.
165         * lib/uniwbrk/wbrkprop.h: Likewise.
166         * tests/unicase/test-cased.c: Likewise.
167         * tests/unicase/test-ignorable.c: Likewise.
168         * tests/unicase/test-uc_tolower.c: Likewise.
169         * tests/unicase/test-uc_totitle.c: Likewise.
170         * tests/unicase/test-uc_toupper.c: Likewise.
171         * tests/unictype/test-categ_C.c: Likewise.
172         * tests/unictype/test-categ_Cf.c: Likewise.
173         * tests/unictype/test-categ_Cn.c: Likewise.
174         * tests/unictype/test-categ_L.c: Likewise.
175         * tests/unictype/test-categ_Ll.c: Likewise.
176         * tests/unictype/test-categ_Lm.c: Likewise.
177         * tests/unictype/test-categ_Lo.c: Likewise.
178         * tests/unictype/test-categ_Lu.c: Likewise.
179         * tests/unictype/test-categ_M.c: Likewise.
180         * tests/unictype/test-categ_Mc.c: Likewise.
181         * tests/unictype/test-categ_Mn.c: Likewise.
182         * tests/unictype/test-categ_N.c: Likewise.
183         * tests/unictype/test-categ_Nd.c: Likewise.
184         * tests/unictype/test-categ_Nl.c: Likewise.
185         * tests/unictype/test-categ_No.c: Likewise.
186         * tests/unictype/test-categ_P.c: Likewise.
187         * tests/unictype/test-categ_Pd.c: Likewise.
188         * tests/unictype/test-categ_Po.c: Likewise.
189         * tests/unictype/test-categ_S.c: Likewise.
190         * tests/unictype/test-categ_Sc.c: Likewise.
191         * tests/unictype/test-categ_So.c: Likewise.
192         * tests/unictype/test-ctype_alnum.c: Likewise.
193         * tests/unictype/test-ctype_alpha.c: Likewise.
194         * tests/unictype/test-ctype_graph.c: Likewise.
195         * tests/unictype/test-ctype_lower.c: Likewise.
196         * tests/unictype/test-ctype_print.c: Likewise.
197         * tests/unictype/test-ctype_punct.c: Likewise.
198         * tests/unictype/test-ctype_upper.c: Likewise.
199         * tests/unictype/test-decdigit.h: Likewise.
200         * tests/unictype/test-digit.h: Likewise.
201         * tests/unictype/test-numeric.h: Likewise.
202         * tests/unictype/test-pr_alphabetic.c: Likewise.
203         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
204         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
205         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
206         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
207         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
208         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
209         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
210         * tests/unictype/test-pr_combining.c: Likewise.
211         * tests/unictype/test-pr_composite.c: Likewise.
212         * tests/unictype/test-pr_currency_symbol.c: Likewise.
213         * tests/unictype/test-pr_dash.c: Likewise.
214         * tests/unictype/test-pr_decimal_digit.c: Likewise.
215         * tests/unictype/test-pr_deprecated.c: Likewise.
216         * tests/unictype/test-pr_diacritic.c: Likewise.
217         * tests/unictype/test-pr_extender.c: Likewise.
218         * tests/unictype/test-pr_grapheme_base.c: Likewise.
219         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
220         * tests/unictype/test-pr_grapheme_link.c: Likewise.
221         * tests/unictype/test-pr_id_continue.c: Likewise.
222         * tests/unictype/test-pr_id_start.c: Likewise.
223         * tests/unictype/test-pr_ideographic.c: Likewise.
224         * tests/unictype/test-pr_ignorable_control.c: Likewise.
225         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
226         * tests/unictype/test-pr_lowercase.c: Likewise.
227         * tests/unictype/test-pr_numeric.c: Likewise.
228         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
229         * tests/unictype/test-pr_punctuation.c: Likewise.
230         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
231         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
232         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
233         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
234         * tests/unictype/test-pr_uppercase.c: Likewise.
235         * tests/unictype/test-pr_xid_continue.c: Likewise.
236         * tests/unictype/test-pr_xid_start.c: Likewise.
237         * tests/unictype/test-pr_zero_width.c: Likewise.
238         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
239         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
240         changed behaviour: line breaking is now disallowed between a letter
241         or '=' and '('.
242         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
243         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
244         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
245         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
246         * tests/uniwidth/test-uc_width2.sh: Same updates as in
247         lib/uniwidth/width.c.
248         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
249         without comments, but with the original copyright notice.
250         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
251         changes.
252         * lib/unictype/categ_Cc.h: Likewise.
253         * lib/unictype/categ_Co.h: Likewise.
254         * lib/unictype/categ_Cs.h: Likewise.
255         * lib/unictype/categ_Lt.h: Likewise.
256         * lib/unictype/categ_Me.h: Likewise.
257         * lib/unictype/categ_Pc.h: Likewise.
258         * lib/unictype/categ_Pe.h: Likewise.
259         * lib/unictype/categ_Pf.h: Likewise.
260         * lib/unictype/categ_Pi.h: Likewise.
261         * lib/unictype/categ_Ps.h: Likewise.
262         * lib/unictype/categ_Sk.h: Likewise.
263         * lib/unictype/categ_Sm.h: Likewise.
264         * lib/unictype/categ_Z.h: Likewise.
265         * lib/unictype/categ_Zl.h: Likewise.
266         * lib/unictype/categ_Zp.h: Likewise.
267         * lib/unictype/categ_Zs.h: Likewise.
268         * lib/unictype/ctype_blank.h: Likewise.
269         * lib/unictype/ctype_cntrl.h: Likewise.
270         * lib/unictype/ctype_digit.h: Likewise.
271         * lib/unictype/ctype_space.h: Likewise.
272         * lib/unictype/ctype_xdigit.h: Likewise.
273         * lib/unictype/mirror.h: Likewise.
274         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
275         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
276         * lib/unictype/pr_bidi_block_separator.h: Likewise.
277         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
278         * lib/unictype/pr_bidi_common_separator.h: Likewise.
279         * lib/unictype/pr_bidi_control.h: Likewise.
280         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
281         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
282         * lib/unictype/pr_bidi_pdf.h: Likewise.
283         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
284         * lib/unictype/pr_bidi_whitespace.h: Likewise.
285         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
286         * lib/unictype/pr_format_control.h: Likewise.
287         * lib/unictype/pr_hex_digit.h: Likewise.
288         * lib/unictype/pr_hyphen.h: Likewise.
289         * lib/unictype/pr_ids_binary_operator.h: Likewise.
290         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
291         * lib/unictype/pr_iso_control.h: Likewise.
292         * lib/unictype/pr_join_control.h: Likewise.
293         * lib/unictype/pr_left_of_pair.h: Likewise.
294         * lib/unictype/pr_line_separator.h: Likewise.
295         * lib/unictype/pr_math.h: Likewise.
296         * lib/unictype/pr_non_break.h: Likewise.
297         * lib/unictype/pr_not_a_character.h: Likewise.
298         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
299         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
300         * lib/unictype/pr_other_id_continue.h: Likewise.
301         * lib/unictype/pr_other_id_start.h: Likewise.
302         * lib/unictype/pr_other_lowercase.h: Likewise.
303         * lib/unictype/pr_other_math.h: Likewise.
304         * lib/unictype/pr_other_uppercase.h: Likewise.
305         * lib/unictype/pr_paired_punctuation.h: Likewise.
306         * lib/unictype/pr_paragraph_separator.h: Likewise.
307         * lib/unictype/pr_pattern_syntax.h: Likewise.
308         * lib/unictype/pr_pattern_white_space.h: Likewise.
309         * lib/unictype/pr_private_use.h: Likewise.
310         * lib/unictype/pr_quotation_mark.h: Likewise.
311         * lib/unictype/pr_radical.h: Likewise.
312         * lib/unictype/pr_soft_dotted.h: Likewise.
313         * lib/unictype/pr_space.h: Likewise.
314         * lib/unictype/pr_titlecase.h: Likewise.
315         * lib/unictype/pr_variation_selector.h: Likewise.
316         * lib/unictype/pr_white_space.h: Likewise.
317         * lib/unictype/sy_c_ident.h: Likewise.
318         * lib/unictype/sy_c_whitespace.h: Likewise.
319         * lib/unictype/sy_java_whitespace.h: Likewise.
320         * modules/uni*/*: Bump version number of expected libunistring version.
321         Reported by Simon Josefsson.
322
323 2011-01-09  Karl Heuer  <kwzh@gnu.org>
324
325         useless-if-before-free: fix typo in --help and make the internal,
326         automatic version date update process work once again.
327         --help output contained a NUL character instead of the
328         backslash-zero that was intended.  Also, the "must lie within
329         the first 8 lines" line is on line 9, and hence not getting
330         automatically updated.
331         * build-aux/useless-if-before-free: Fix the former by adding a
332         backslash, and the latter by condensing the three lines of what-it-does
333         to a single line, leaving one line of slack for the future.
334
335 2011-01-09  Bruno Haible  <bruno@clisp.org>
336
337         uniwidth/width: Fix width of U+1D173..U+1D17A.
338         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
339         symbolic_width, output_width_property_test): New functions.
340         (main): Invoke output_nonspacing_property, output_width_property_test.
341         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
342         U+1D173..U+1D17A.
343         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
344         1.
345         * modules/uniwidth/*: Bump version number of expected libunistring
346         version.
347         * modules/unilbrk/*: Likewise.
348
349 2011-01-08  Bruno Haible  <bruno@clisp.org>
350
351         uninorm tests: Preserve copyright of Unicode data file.
352         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
353         Mention modifications.
354
355 2011-01-08  Bruno Haible  <bruno@clisp.org>
356
357         gen-uni-tables: Prepare for Unicode 5.2.0.
358         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
359         (debug_output_lbp, output_lbp): Update.
360
361 2011-01-08  Bruno Haible  <bruno@clisp.org>
362
363         unilbrk: Clarify gen-uni-tables.c code.
364         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
365         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
366         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
367
368 2011-01-07  Bruno Haible  <bruno@clisp.org>
369
370         strtod: Restore errno when successfully parsing Infinity or NaN.
371         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
372         restore the original errno.
373
374 2011-01-07  Bruno Haible  <bruno@clisp.org>
375
376         remove test: Avoid failure on HP-UX 11.
377         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
378
379 2011-01-07  Bruno Haible  <bruno@clisp.org>
380
381         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
382         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
383         error code.
384
385 2011-01-07  Pádraig Brady <P@draigBrady.com>
386
387         ignore-value: fixup comments, and add Eric Blake
388         as an author since he rewrote the macros.
389         * lib/ignore-value.h (ignore_value):  State that
390         we now support aggregates.  Also specify exactly
391         when the GCC warn_unused_result feature was added.
392
393 2011-01-06  Eric Blake  <eblake@redhat.com>
394
395         ignore-value: support aggregate types
396         * lib/ignore-value.h (ignore_value): Provide separate gcc
397         definition.
398         * modules/ignore-value-tests: New test module.
399         * tests/test-ignore-value.c: New test.
400
401         maint.mk: improve sc_prohibit_strcmp regex
402         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
403         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
404         definition of STRNEQ.
405
406         signal: work around Haiku issue with SIGBUS
407         * lib/siglist.h: Add comment.
408         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
409         strsignal's favoring of SIGSEGV.
410         * tests/test-signal.c (main): Avoid test failure.
411         * doc/posix-headers/signal.texi (signal.h): Document the issue.
412         Reported by Scott McCreary.
413
414         maint.mk: add pre-release check to ensure submodule commits are public
415         * top/maint.mk (public-submodule-commit): New rule.
416         (submodule-checks): New variable.
417         (alpha beta stable): Depend on the variable.
418
419 2011-01-05  Pádraig Brady <P@draigBrady.com>
420         and Jim Meyering  <meyering@redhat.com>
421
422         ignore-value: make ignore_value more generic; deprecate ignore_ptr
423         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
424         (ATTRIBUTE_DEPRECATED): Define.
425         (_ignore_case): New function.
426         (ignore_value): New macro, to replace the old function.
427         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
428         * modules/ignore-value (Depends-on): Add stdint.
429
430 2011-01-04  Eric Blake  <eblake@redhat.com>
431
432         doc: regenerate INSTALL
433         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
434         @firstparagraphindent support, now that autoconf dropped it.
435         (INSTALL_PRELUDE): Reinstate old macro.
436         * doc/install.texi: Resync from autoconf.
437         * doc/INSTALL: Reflect recent autoconf update.
438         * doc/INSTALL.ISO: Likewise.
439         * doc/INSTALL.UTF-8: Likewise.
440         Reported by Karl Berry.
441
442 2011-01-04  Bruce Korb  <address@hidden>
443
444         git-version-gen: avoid a sub-shell
445         * build-aux/git-version-gen: Redirect stderr in `...` via
446         "exec 2>...", rather than via an added sub-shell.
447
448 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
449
450         git-version-gen: use (...) rather than sh -c '...'
451         * build-aux/git-version-gen: Rather than hard-coding a shell's name
452         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
453
454 2011-01-03  Jim Meyering  <meyering@redhat.com>
455
456         git-version-gen: convert leading TABs to spaces
457         * build-aux/git-version-gen: Expand leading TABs.
458
459         git-version-gen: handle failed "git rev-list"
460         * build-aux/git-version-gen: Rather than leaking a "fatal" error
461         from git and proceeding as if it had succeeded but printed no SHA1
462         checksums, suppress the diagnostic and handle the failure.
463         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
464
465         git-version-gen: include command name in one more diagnostic
466         * build-aux/git-version-gen: When the required .tarball-version file
467         was missing or unreadable, you might see the diagnostic from "cat",
468         but no trace of the name of the invoking script.  Now, you still see
469         the diagnostic from cat, but also get one from "git-version-gen: ".
470         Inspired by a patch from Bruce Korb.
471
472         update-copyright: adjust test to match changed code
473         * tests/test-update-copyright.sh: Change test's expected output
474         to match new actual output.
475
476 2011-01-02  Bruno Haible  <bruno@clisp.org>
477
478         getlogin_r: Avoid test failure on HP-UX 11.
479         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
480         ERANGE when the second argument is zero.
481         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
482         portability problem.
483
484 2011-01-02  Bruce Korb  <bkorb@gnu.org>
485
486         * build-aux/update-copyright: doc Simon's changes
487
488 2011-01-02  Simon Josefsson  <simon@josefsson.org>
489
490         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
491         environment variable.
492
493 2011-01-02  Bruno Haible  <bruno@clisp.org>
494
495         unigbrk: Avoid gcc warnings.
496         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
497         unused variable.
498         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
499         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
500         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
501         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
502         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
503         Change type of first argument to 'const char *'.
504         (main): Remove unused variable.
505         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
506         type of first argument to 'const char *'.
507         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
508         Likewise.
509         (main): Change type of variable 's'.
510         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
511         to 'int'.
512
513 2011-01-02  Bruno Haible  <bruno@clisp.org>
514
515         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
516         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
517         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
518         bug.
519         * lib/pwrite.c: Undo 2010-12-31 patch.
520         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
521
522 2011-01-02  Bruno Haible  <bruno@clisp.org>
523
524         pread: Fix test whether it works.
525         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
526
527 2011-01-02  Bruno Haible  <bruno@clisp.org>
528
529         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
530         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
531         ends in "6". Don't require a specific month name. Try also the locale
532         names found on HP-UX 11 and Solaris 7.
533
534 2011-01-02  Bruno Haible  <bruno@clisp.org>
535
536         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
537         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
538         C linkage.
539         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
540
541 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
542
543         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
544         for consistency, since the "cluster" term is not used elsewhere.
545         * lib/unigbrk.in.h: Update name.
546         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
547         * lib/unigbrk/u16-grapheme-next.c: Update name.
548         * lib/unigbrk/u16-grapheme-prev.c: Update name.
549         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
550         * lib/unigbrk/u32-grapheme-next.c: Update name.
551         * lib/unigbrk/u32-grapheme-prev.c: Update name.
552         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
553         * lib/unigbrk/u8-grapheme-next.c: Update name.
554         * lib/unigbrk/u8-grapheme-prev.c: Update name.
555         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
556         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
557         Suggested by Bruno Haible.
558
559 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
560
561         Remove module 'u8-grapheme-len' as too redundant with
562         'u8-grapheme-next'.
563         * modules/unigbrk/u8-grapheme-len: Delete file.
564         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
565         * lib/unigbrk.in.h: Remove prototype for deleted function.
566         * lib/unigbrk/u8-grapheme-len.c: Delete file.
567         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
568
569         Remove module 'u16-grapheme-len' as too redundant with
570         'u16-grapheme-next'.
571         * modules/unigbrk/u16-grapheme-len: Delete file.
572         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
573         * lib/unigbrk.in.h: Remove prototype for deleted function.
574         * lib/unigbrk/u16-grapheme-len.c: Delete file.
575         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
576
577         Remove module 'u32-grapheme-len' as too redundant with
578         'u32-grapheme-next'.
579         * modules/unigbrk/u32-grapheme-len: Delete file.
580         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
581         * lib/unigbrk.in.h: Remove prototype for deleted function.
582         * lib/unigbrk/u32-grapheme-len.c: Delete file.
583         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
584
585         Suggested by Bruno Haible.
586
587 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
588
589         * unigbrk.in.h: Fix typo: "ben" => "been".
590         Reported by Bruno Haible.
591
592 2011-01-01  Jim Meyering  <meyering@redhat.com>
593
594         maint: update almost all copyright ranges to include 2011
595         Run the new "make update-copyright" rule.
596
597 2011-01-01  Jim Meyering  <meyering@redhat.com>
598
599         maint: update-copyright: exempt doc/INSTALL*
600         * Makefile (update-copyright): Also exclude doc/INSTALL*,
601         since they are generated.  Suggested by Bruno Haible.
602
603 2011-01-01  Jim Meyering  <meyering@redhat.com>
604
605         maint: refine the update-copyright rule
606         * Makefile (update-copyright): Also exclude any file that includes
607         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
608         code that merely generates the comment.
609
610 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
611
612         New module 'u8-grapheme-len'.
613         * modules/unigbrk/u8-grapheme-len: New file.
614         * modules/unigbrk/u8-grapheme-len-tests: New file.
615         * lib/unigbrk.in.h: Add prototype for new function.
616         * lib/unigbrk/u8-grapheme-len.c: New file.
617         * tests/unigbrk/test-u8-grapheme-len.c: New file.
618
619         New module 'u16-grapheme-len'.
620         * modules/unigbrk/u16-grapheme-len: New file.
621         * modules/unigbrk/u16-grapheme-len-tests: New file.
622         * lib/unigbrk.in.h: Add prototype for new function.
623         * lib/unigbrk/u16-grapheme-len.c: New file.
624         * tests/unigbrk/test-u16-grapheme-len.c: New file.
625
626         New module 'u32-grapheme-len'.
627         * modules/unigbrk/u32-grapheme-len: New file.
628         * modules/unigbrk/u32-grapheme-len-tests: New file.
629         * lib/unigbrk.in.h: Add prototype for new function.
630         * lib/unigbrk/u32-grapheme-len.c: New file.
631         * tests/unigbrk/test-u32-grapheme-len.c: New file.
632
633         New module 'u8-grapheme-next'.
634         * modules/unigbrk/u8-grapheme-next: New file.
635         * modules/unigbrk/u8-grapheme-next-tests: New file.
636         * lib/unigbrk.in.h: Add prototype for new function.
637         * lib/unigbrk/u8-grapheme-next.c: New file.
638         * tests/unigbrk/test-u8-grapheme-next.c: New file.
639
640         New module 'u16-grapheme-next'.
641         * modules/unigbrk/u16-grapheme-next: New file.
642         * modules/unigbrk/u16-grapheme-next-tests: New file.
643         * lib/unigbrk.in.h: Add prototype for new function.
644         * lib/unigbrk/u16-grapheme-next.c: New file.
645         * tests/unigbrk/test-u16-grapheme-next.c: New file.
646
647         New module 'u32-grapheme-next'.
648         * modules/unigbrk/u32-grapheme-next: New file.
649         * modules/unigbrk/u32-grapheme-next-tests: New file.
650         * lib/unigbrk.in.h: Add prototype for new function.
651         * lib/unigbrk/u32-grapheme-next.c: New file.
652         * tests/unigbrk/test-u32-grapheme-next.c: New file.
653
654         New module 'u8-grapheme-prev'.
655         * modules/unigbrk/u8-grapheme-prev: New file.
656         * modules/unigbrk/u8-grapheme-prev-tests: New file.
657         * lib/unigbrk.in.h: Add prototype for new function.
658         * lib/unigbrk/u8-grapheme-prev.c: New file.
659         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
660
661         New module 'u16-grapheme-prev'.
662         * modules/unigbrk/u16-grapheme-prev: New file.
663         * modules/unigbrk/u16-grapheme-prev-tests: New file.
664         * lib/unigbrk.in.h: Add prototype for new function.
665         * lib/unigbrk/u16-grapheme-prev.c: New file.
666         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
667
668         New module 'u32-grapheme-prev'.
669         * modules/unigbrk/u32-grapheme-prev: New file.
670         * modules/unigbrk/u32-grapheme-prev-tests: New file.
671         * lib/unigbrk.in.h: Add prototype for new function.
672         * lib/unigbrk/u32-grapheme-prev.c: New file.
673         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
674
675         New module 'u8-grapheme-breaks'.
676         * modules/unigbrk/u8-grapheme-breaks: New file.
677         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
678         * lib/unigbrk.in.h: Add prototype for new function.
679         * lib/unigbrk/u8-grapheme-breaks.c: New file.
680         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
681
682         New module 'u16-grapheme-breaks'.
683         * modules/unigbrk/u16-grapheme-breaks: New file.
684         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
685         * lib/unigbrk.in.h: Add prototype for new function.
686         * lib/unigbrk/u16-grapheme-breaks.c: New file.
687         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
688
689         New module 'u32-grapheme-breaks'.
690         * modules/unigbrk/u32-grapheme-breaks: New file.
691         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
692         * lib/unigbrk.in.h: Add prototype for new function.
693         * lib/unigbrk/u32-grapheme-breaks.c: New file.
694         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
695
696         New module 'ulc-grapheme-breaks'.
697         * modules/unigbrk/ulc-grapheme-breaks: New file.
698         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
699         * m4/locale-ar.m4: New file.
700         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
701         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
702         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
703
704 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
705
706         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
707         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
708         modified how this file was generated before I initially submitted
709         the module, but failed to regenerate it.  This meant that several
710         of the level2 entries were wrong.
711         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
712         Remove the division-by-2 that is folded into the table now that
713         gbrkprop.h has been regenerated properly.  Now -1 entries are
714         handled correctly.
715
716         New module 'unigbrk/uc-gbrk-prop-tests'.
717         * modules/unigbrk/uc-gbrk-prop-tests: New file.
718         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
719         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
720         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
721
722 2011-01-01  Bruno Haible  <bruno@clisp.org>
723
724         Avoid use of hexadecimal escapes.
725         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
726         instead of hexadecimal escapes.
727
728 2011-01-01  Jim Meyering  <meyering@redhat.com>
729
730         maint: new rule to update copyright year ranges
731         * Makefile (update-copyright): New rule.
732
733         maint: indent with TABs in Makefile
734         * Makefile: Expand leading sequences of spaces to TABs
735
736         version-etc: update the copyright year it reports
737         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
738
739 2010-12-31  Bruno Haible  <bruno@clisp.org>
740
741         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
742         * lib/isfinite.c (zerof, zerod, zerol): New variables.
743         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
744         zero.
745
746 2010-12-31  Bruno Haible  <bruno@clisp.org>
747
748         pwrite: Work around HP-UX 11.11 bug.
749         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
750         works and set REPLACE_PWRITE if not.
751         * lib/pwrite.c (pwrite): Add an implementation that uses the system
752         function.
753         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
754
755 2010-12-31  Bruno Haible  <bruno@clisp.org>
756
757         pread: Work around HP-UX 11 bugs.
758         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
759         and set REPLACE_PREAD if not.
760         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
761
762 2010-12-31  Eric Blake  <eblake@redhat.com>
763
764         nl_langinfo: fix YESEXPR on Irix 6.5
765         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
766         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
767         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
768         it.
769
770 2010-12-31  Bruno Haible  <bruno@clisp.org>
771
772         iconv: Document HP-UX 11 bug.
773         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
774
775 2010-12-31  Bruno Haible  <bruno@clisp.org>
776
777         ldexpl: Fix link error on HP-UX 11.
778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
779         LDEXPL_LIBM, using $ISNANL_LIBM.
780
781 2010-12-31  Eric Blake  <eblake@redhat.com>
782
783         ftello: avoid compilation failure with SunStudio c89
784         * lib/ftello.c (ftello): Use lseek, not llseek.
785
786         tests: avoid failing coreutils tests on cygwin
787         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
788         (create_exe_shims_): Return 0 when skipping.
789
790 2010-12-31  Bruno Haible  <bruno@clisp.org>
791
792         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
793         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
794
795 2010-12-31  Bruno Haible  <bruno@clisp.org>
796
797         waitpid: Fix link error in C++ mode.
798         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
799
800 2010-12-31  Bruno Haible  <bruno@clisp.org>
801
802         isnan: Use GCC built-ins when possible.
803         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
804         __builtin_isnan.
805         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
806         (isnan): Define using GCC built-ins for GCC >= 4.0.
807
808 2010-12-31  Bruno Haible  <bruno@clisp.org>
809
810         isnand: Fix mistake.
811         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
812         __builtin_isnand.
813
814 2010-12-31  Bruno Haible  <bruno@clisp.org>
815
816         open: Avoid C++ error on HP-UX 11.
817         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
818
819 2010-12-31  Bruno Haible  <bruno@clisp.org>
820
821         time_r: Add missing declarations on HP-UX 11.
822         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
823         instead of HAVE_LOCALTIME_R.
824         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
825         HAVE_LOCALTIME_R always.
826         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
827         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
828         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
829         HAVE_LOCALTIME_R.
830         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
831         * doc/posix-functions/localtime_r.texi: Likewise.
832
833 2010-12-29  Eric Blake  <eblake@redhat.com>
834
835         mountlist: tweak previous commit
836         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
837         Reported by Paul Eggert.
838
839         mountlist: fix local drive detection on cygwin
840         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
841         that works for cygwin.
842
843 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
844
845         ftoastr, snprintf: ftoastr + snprintf module
846         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
847         since the snprintf module now should be good enough here.
848         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
849         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
850         and gl_MODULE_INDICATOR([snprintf]), but the former enables
851         GNULIB_SNPRINTF only for the test directory, and the latter
852         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
853         seems to suffice by itself.
854
855 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
856
857         alloca: one step towards thread-safety
858         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
859         need for a static variable.  All callers changed.  This does not
860         make the alloca replacement thread-safe, but it's one step.
861
862         tests: minor indenting change
863         * tests/init.sh: Sync from coreutils housekeeping patch
864         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
865         to keep lines within 80 columns.
866
867 2010-12-28  Jim Meyering  <meyering@redhat.com>
868
869         regex: don't infloop on persistent failing calloc
870         * lib/regexec.c (build_trtable): Return failure indication upon
871         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
872         In glibc, this was fixed for version 2.13:
873         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
874
875 2010-12-28  Bruno Haible  <bruno@clisp.org>
876             Paul Eggert <eggert@cs.ucla.edu>
877
878         linkat: Make implementation robust against system behaviour variations.
879         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
880         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
881         way, and to -2 if it needs a generic runtime test.
882         * lib/linkat.c (solaris_optimized_link_immediate,
883         solaris_optimized_link_follow): New functions.
884         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
885         (check_same_link): Use it.
886
887 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
888
889         New module 'unigbrk/base'.
890         * modules/unigbrk/base: New file.
891         * lib/unigbrk.in.h: New file.
892
893         New module 'unigbrk/uc-gbrk-prop'.
894         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
895         * modules/unigbrk/uc-gbrk-prop: New file.
896         * lib/unigbrk/gbrkprop.h: New file.
897         * lib/unigbrk/uc-gbrk-prop.c: New file.
898
899         New module 'unigbrk/uc-is-grapheme-break'.
900         * modules/unigbrk/uc-is-grapheme-break: New file.
901         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
902         * lib/unigbrk/uc-is-grapheme-break.c: New file.
903         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
904         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
905         * tests/unigbrk/GraphemeBreakTest.txt: New file.
906
907         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
908
909 2010-12-27  Bruno Haible  <bruno@clisp.org>
910
911         linkat test: Avoid failure on Solaris 11 2010-11.
912         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
913
914 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
915
916         utimens: work around glibc rounding bug on more platforms
917         * lib/utimens.c (fdutimens): Work around rounding bug even if
918         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
919         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
920
921 2010-12-27  Bruno Haible  <bruno@clisp.org>
922
923         select tests: Improve comments.
924         * tests/test-select.c (do_select): Add comments.
925
926 2010-12-27  Bruno Haible  <bruno@clisp.org>
927
928         select tests: Safer way of handling timeout.
929         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
930         at every invocation.
931
932 2010-12-27  Bruno Haible  <bruno@clisp.org>
933
934         select tests: Use 'bool' where appropriate.
935         * tests/test-select.c (connect_to_socket): Change argument type to
936         'bool'.
937
938 2010-12-27  Bruno Haible  <bruno@clisp.org>
939
940         select tests: Use existing modules.
941         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
942         (configure.ac): Don't test for unistd.h.
943         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
944         declared in <unistd.h>.
945
946 2010-12-27  Bruno Haible  <bruno@clisp.org>
947
948         mbrtowc: Work around a Solaris 7 bug.
949         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
950         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
951         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
952         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
953         MBRTOWC_NULL_ARG1_BUG.
954         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
955         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
956         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
957         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
958
959 2010-12-27  Jim Meyering  <meyering@redhat.com>
960
961         read-file.c: tweak syntax
962         * lib/read-file.c (fread_file): Remove space after "*" in function
963         definitions.
964
965 2010-12-27  Bruno Haible  <bruno@clisp.org>
966
967         times test: Avoid gcc warnings on OSF/1.
968         * tests/test-times.c (main): Cast printf arguments from clock_t to
969         'long int'.
970
971 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
972
973         utimens: work around glibc rounding bug on older Linux kernels
974         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
975         on Linux with a glibc whose utimes might not work, then work
976         around a longstanding glibc bug involving rounding rather than
977         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
979
980 2010-12-26  Bruno Haible  <bruno@clisp.org>
981
982         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
983         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
984         _GL_CXXALIAS_SYS.
985         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
986
987 2010-12-26  Bruno Haible  <bruno@clisp.org>
988
989         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
990         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
991         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
992         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
993         looking for the declaration.
994         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
995         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
996         problem.
997         * doc/posix-functions/inet_pton.texi: Likewise.
998
999 2010-12-26  Bruno Haible  <bruno@clisp.org>
1000
1001         arpa_inet: Use the common idioms with C++ support.
1002         * lib/arpa_inet.in.h: Include c++defs.h.
1003         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1004         support.
1005         * modules/arpa_inet (Depends-on): Add c++defs.
1006         (Makefile.am): Substitute the contents of c++defs.h.
1007         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1008         * modules/arpa_inet-c++-tests: New file.
1009         * tests/test-arpa_inet-c++.cc: New file.
1010
1011 2010-12-25  Bruno Haible  <bruno@clisp.org>
1012
1013         Fix more C++ link errors on Solaris 8.
1014         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1015         $(LIB_EACCESS).
1016         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1017         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1018         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1019         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1020         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1021
1022 2010-12-25  Bruno Haible  <bruno@clisp.org>
1023
1024         printf-posix: Fix link error when a non-GCC compiler is used.
1025         * lib/stdio.in.h (printf): When not using GCC, override printf
1026         correctly.
1027         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1028
1029 2010-12-25  Bruno Haible  <bruno@clisp.org>
1030
1031         strerror_r-posix: Update doc.
1032         * doc/posix-functions/strerror_r.texi: Update doc about the return
1033         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1034
1035 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         utimens: simplify the logic of the previous change
1038         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1039         This should not affect whether the test succeeds or fails.
1040
1041         utimens: configure better on hosts with NFS clock skew
1042         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1043         uses the clock of the local host.  It might use the clock of the
1044         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1045         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1046
1047 2010-12-25  Bruno Haible  <bruno@clisp.org>
1048
1049         ptsname test: Avoid failure on Solaris.
1050         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
1051         open a pseudo-terminal; don't use BSD-style ptys.
1052         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
1053
1054 2010-12-25  Bruno Haible  <bruno@clisp.org>
1055
1056         ptsname: Avoid ERANGE failure on some systems.
1057         * lib/ptsname.c (buffer): Increase size.
1058
1059 2010-12-25  Bruno Haible  <bruno@clisp.org>
1060
1061         rename, renameat: Avoid test failures at NFS mounted locations.
1062         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
1063         so that subsequent mkdir calls succeed.
1064
1065 2010-12-25  Bruno Haible  <bruno@clisp.org>
1066
1067         iswblank: Fix C++ link error on Solaris 8.
1068         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
1069         _GL_FUNCDECL_SYS.
1070
1071 2010-12-25  Bruno Haible  <bruno@clisp.org>
1072
1073         unistd: Fix C++ link error on Solaris 8.
1074         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
1075
1076 2010-12-25  Bruno Haible  <bruno@clisp.org>
1077
1078         readlink doc: Mention an old glibc bug.
1079         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
1080
1081 2010-12-25  Bruno Haible  <bruno@clisp.org>
1082
1083         fcntl-h: Fix for use of C++ on glibc systems.
1084         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1085         also on glibc systems in C++ mode.
1086         Reported by Gary V. Vaughan <gary@gnu.org>.
1087
1088 2010-12-25  Bruno Haible  <bruno@clisp.org>
1089
1090         roundl-ieee: Make it work on OSF/1 5.1 with cc.
1091         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
1092
1093 2010-12-25  Bruno Haible  <bruno@clisp.org>
1094
1095         truncl-ieee: Make it work on OSF/1 5.1 with cc.
1096         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
1097         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
1098         test whether truncl works according to ISO C 99 with IEC 60559.
1099         * m4/truncl-ieee.m4: New file.
1100         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
1101         m4/signbit.m4.
1102         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
1103
1104 2010-12-25  Bruno Haible  <bruno@clisp.org>
1105
1106         ceill-ieee: Make it work on OSF/1 5.1 with cc.
1107         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
1108         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
1109         test whether ceill works according to ISO C 99 with IEC 60559.
1110         * m4/ceill-ieee.m4: New file.
1111         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
1112         m4/signbit.m4.
1113         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
1114
1115 2010-12-25  Bruno Haible  <bruno@clisp.org>
1116
1117         Ensure all prerequisites of <wchar.h> are included.
1118         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
1119         before <wchar.h>.
1120         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1121         gl_MBRLEN_NUL_RETVAL): Likewise.
1122         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1123         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
1124         AC_FUNC_MBRTOWC): Likewise.
1125         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1126         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1127         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1128         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1129         Likewise.
1130         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1131         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
1132         (gl_WCHAR_H): Improve comments.
1133         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1134
1135 2010-12-25  Bruno Haible  <bruno@clisp.org>
1136
1137         strtok_r: Fix C syntax error in autoconf macro.
1138         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
1139         characters in test program.
1140
1141 2010-12-24  Bruno Haible  <bruno@clisp.org>
1142
1143         ceil, trunc, round: Fix gcc warnings.
1144         * lib/ceil.c (MIN): Undefine before redefining.
1145         * lib/trunc.c (MIN): Likewise.
1146         * lib/round.c (MIN): Likewise.
1147         Include <math.h> first.
1148
1149 2010-12-24  Bruno Haible  <bruno@clisp.org>
1150
1151         select tests: Avoid failures on OSF/1 5.1.
1152         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
1153         failure of closing the last socket; it may fail with ECONNRESET.
1154
1155 2010-12-24  Eric Blake  <eblake@redhat.com>
1156
1157         stdint: avoid HP-UX 10.20 preprocessor bug
1158         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
1159         than #if.
1160         * tests/test-floor2.c (main): Likewise.
1161         Reported by Peter O'Gorman.
1162
1163         pipe: make obsoletion transition easier
1164         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
1165         * modules/pipe (Files): Include revived file.
1166         (Include): Drop reference, to mirror getdate's behavior.
1167
1168 2010-12-24  Bruno Haible  <bruno@clisp.org>
1169
1170         sys_socket: Hide mismatch of declarations on NonStop Kernel.
1171         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
1172         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
1173         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1174
1175 2010-12-24  Bruno Haible  <bruno@clisp.org>
1176
1177         gethostname: Ensure declaration on NonStop Kernel.
1178         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
1179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1180
1181 2010-12-24  Bruno Haible  <bruno@clisp.org>
1182
1183         sys_select: Ensure all necessary types on NonStop Kernel.
1184         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
1185         include <sys/time.h>.
1186         * doc/posix-headers/sys_select.texi: Mention that it's missing on
1187         NonStop Kernel.
1188         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1189
1190 2010-12-24  Bruno Haible  <bruno@clisp.org>
1191
1192         sys_select: Remove unneeded include.
1193         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
1194         have <sys/select.h>.
1195
1196 2010-12-24  Bruno Haible  <bruno@clisp.org>
1197
1198         gethostname: Provide a fallback for HOST_NAME_MAX.
1199         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
1200         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
1201         instead.
1202         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1203
1204 2010-12-24  Bruno Haible  <bruno@clisp.org>
1205
1206         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
1207         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
1208         (SA_RESTART): Likewise.
1209         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1210
1211 2010-12-24  Bruno Haible  <bruno@clisp.org>
1212
1213         signal: Define NSIG.
1214         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
1215         * tests/test-signal.c (nsig): New variable.
1216         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1217
1218 2010-12-24  Bruno Haible  <bruno@clisp.org>
1219
1220         rename, renameat: Avoid test failures on OSF/1 5.1.
1221         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
1222         alternative error codes.
1223         * tests/test-renameat.c (main): Likewise.
1224
1225 2010-12-24  Bruno Haible  <bruno@clisp.org>
1226
1227         *printf: Detect large precisions bug on Solaris 10/SPARC.
1228         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
1229         by Paul Eggert.
1230         * tests/test-snprintf-posix.h (test_function): Add this test code here
1231         too.
1232         * tests/test-sprintf-posix.h (test_function): Likewise.
1233         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1234         * tests/test-vasprintf-posix.c (test_function): Likewise.
1235         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
1236         around by gnulib.
1237         * doc/posix-functions/printf.texi: Likewise.
1238         * doc/posix-functions/snprintf.texi: Likewise.
1239         * doc/posix-functions/sprintf.texi: Likewise.
1240         * doc/posix-functions/vfprintf.texi: Likewise.
1241         * doc/posix-functions/vprintf.texi: Likewise.
1242         * doc/posix-functions/vsnprintf.texi: Likewise.
1243         * doc/posix-functions/vsprintf.texi: Likewise.
1244         * doc/posix-functions/dprintf.texi: Undo last commit.
1245         * doc/posix-functions/vdprintf.texi: Likewise.
1246
1247 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1248
1249         tests: port test-fdutimensat.c to Solaris 8
1250         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
1251         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
1252         On Solaris 8, it fails with errno == ENOSYS, because there is no
1253         futimens (so it can't use the fd), and there is no lutimens (so it
1254         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
1255
1256         vsnprintf: make more consistent with snprintf; doc fixes
1257
1258         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
1259         the byte count return problem was promoted from the snprintf-posix
1260         to the snprintf module.
1261         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1262         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
1263         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
1264         * tests/test-snprintf.c (main): Check the byte count returned.
1265         * tests/test-vsnprintf.c (main): Likewise.
1266
1267 2010-12-23  Eric Blake  <eblake@redhat.com>
1268
1269         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
1270         * modules/sigpipe (License): Relax license.
1271
1272 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1273
1274         doc: document Solaris printf bug with large float precisions
1275         * doc/posix-functions/dprintf.texi (dprintf):
1276         * doc/posix-functions/fprintf.texi (fprintf):
1277         * doc/posix-functions/printf.texi (printf):
1278         * doc/posix-functions/snprintf.texi (snprintf):
1279         * doc/posix-functions/sprintf.texi (sprintf):
1280         * doc/posix-functions/vdprintf.texi (vdprintf):
1281         * doc/posix-functions/vfprintf.texi (vfprintf):
1282         * doc/posix-functions/vprintf.texi (vprintf):
1283         * doc/posix-functions/vsnprintf.texi (vsnprintf):
1284         * doc/posix-functions/vsprintf.texi (vsprintf):
1285         Mention that these functions mishandle large floating point
1286         precisions on Solaris 10.  The same bug is also present in Solaris
1287         8, and I assume earlier.  This causes "cd gnulib-tests; make
1288         check" to fail on Solaris 8 (and I assume, later) when building
1289         the latest coreutils, in test-vasprintf-posix's call to
1290         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
1291         the wide flavors (e.g., wprintf) so this patch just updates the
1292         documentation for the narrow ones.
1293
1294         test-posixtm.c: add two tests
1295         * tests/test-posixtm.c: Add two tests, to highlight the
1296         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
1297         around this bug; this is merely to document it.
1298
1299 2010-12-22  Bruno Haible  <bruno@clisp.org>
1300
1301         getlogin_r: Work around portability problem on OSF/1.
1302         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
1303         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
1304         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
1305         test for a truncated result.
1306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
1307         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
1308         * modules/getlogin_r (Depends-on): Add memchr.
1309         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
1310
1311 2010-12-22  Bruno Haible  <bruno@clisp.org>
1312
1313         ptsname: Avoid test failure on OSF/1 5.1.
1314         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
1315         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
1316         (same_slave): New function.
1317         (main): Use it to compare ptsname's result with the expected file name.
1318
1319 2010-12-22  Bruno Haible  <bruno@clisp.org>
1320
1321         Port extended stdio modules to HP NonStop Kernel.
1322         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
1323         macros.
1324         * lib/fbufmode.c: Update comments.
1325         * lib/fflush.c: Likewise.
1326         * lib/fpurge.c: Likewise.
1327         * lib/freadable.c: Likewise.
1328         * lib/freadahead.c: Likewise.
1329         * lib/freading.c: Likewise.
1330         * lib/freadptr.c: Likewise.
1331         * lib/freadseek.c: Likewise.
1332         * lib/fseeko.c: Likewise.
1333         * lib/fseterr.c: Likewise.
1334         * lib/fwritable.c: Likewise.
1335         * lib/fwriting.c: Likewise.
1336         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1337
1338 2010-12-22  Bruno Haible  <bruno@clisp.org>
1339
1340         ttyname_r: Work around bug on OSF/1 5.1.
1341         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
1342         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
1343         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
1344         present.
1345         * lib/ttyname_r.c (ttyname_r): Update comments.
1346
1347 2010-12-22  Bruno Haible  <bruno@clisp.org>
1348
1349         round: Implement result sign according to IEEE 754.
1350         * lib/round.c (MIN, MINUS_ZERO): New macros.
1351         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
1352         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
1353         * tests/test-round-ieee.c (main): Likewise.
1354         * tests/test-roundl-ieee.c (main): Likewise.
1355
1356         trunc: Implement result sign according to IEEE 754.
1357         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
1358         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
1359         * tests/test-trunc2.c: Include minus-zero.h.
1360         (MINUS_ZERO): New macro.
1361         (trunc_reference): Keep in sync with lib/trunc.c.
1362         * tests/test-truncf2.c: Include minus-zero.h.
1363         (MINUS_ZERO): New macro.
1364         (truncf_reference): Keep in sync with lib/trunc.c.
1365         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
1366         * tests/test-trunc-ieee.c (main): Likewise.
1367         * tests/test-truncl-ieee.c (main): Likewise.
1368
1369         ceil: Implement result sign according to IEEE 754.
1370         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
1371         (FUNC): Return -0.0 for -1 < x < 0.
1372         * tests/test-ceil2.c: Include minus-zero.h.
1373         (MINUS_ZERO): New macro.
1374         (ceil_reference): Keep in sync with lib/ceil.c.
1375         * tests/test-ceilf2.c: Include minus-zero.h.
1376         (MINUS_ZERO): New macro.
1377         (ceilf_reference): Keep in sync with lib/ceil.c.
1378         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
1379         * tests/test-ceil-ieee.c (main): Likewise.
1380         * tests/test-ceill-ieee.c (main): Likewise.
1381
1382         floor: Implement result sign according to IEEE 754.
1383         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
1384         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
1385         * tests/test-floorf2.c (floorf_reference): Likewise.
1386         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
1387         * tests/test-floor-ieee.c (main): Likewise.
1388         * tests/test-floorl-ieee.c (main): Likewise.
1389
1390 2010-12-22  Bruno Haible  <bruno@clisp.org>
1391
1392         getaddrinfo: Update doc.
1393         * doc/posix-functions/gai_strerror.texi: Return type is also different
1394         on AIX and HP-UX.
1395
1396 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1397
1398         getaddrinfo, inet_ntop: Update doc for Solaris.
1399         * doc/posix-functions/gai_strerror.texi: Return type is also an
1400         issue on Solaris 9 and earlier.
1401         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
1402         on Solaris 10 and earlier.
1403
1404 2010-12-21  Bruno Haible  <bruno@clisp.org>
1405
1406         New module 'roundl-ieee'.
1407         * modules/roundl-ieee: New file.
1408         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
1409         test whether roundl works according to ISO C 99 with IEC 60559.
1410         * m4/roundl-ieee.m4: New file.
1411         * modules/roundl-ieee-tests: New file.
1412         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
1413         * tests/test-roundl.c (main): Remove signbit tests.
1414         * modules/roundl-tests (Depends-on): Remove signbit.
1415         * doc/posix-functions/roundl.texi: Mention the new module.
1416
1417 2010-12-21  Bruno Haible  <bruno@clisp.org>
1418
1419         New module 'truncl-ieee'.
1420         * modules/truncl-ieee: New file.
1421         * modules/truncl-ieee-tests: New file.
1422         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
1423         * tests/test-truncl.c (main): Remove signbit tests.
1424         * modules/truncl-tests (Depends-on): Remove signbit.
1425         * doc/posix-functions/truncl.texi: Mention the new module.
1426
1427 2010-12-21  Bruno Haible  <bruno@clisp.org>
1428
1429         New module 'ceill-ieee'.
1430         * modules/ceill-ieee: New file.
1431         * modules/ceill-ieee-tests: New file.
1432         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
1433         * tests/test-ceill.c (main): Remove signbit tests.
1434         * modules/ceill-tests (Depends-on): Remove signbit.
1435         * doc/posix-functions/ceill.texi: Mention the new module.
1436
1437 2010-12-21  Bruno Haible  <bruno@clisp.org>
1438
1439         New module 'floorl-ieee'.
1440         * modules/floorl-ieee: New file.
1441         * modules/floorl-ieee-tests: New file.
1442         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
1443         * tests/test-floorl.c (main): Remove signbit tests.
1444         * modules/floorl-tests (Depends-on): Remove signbit.
1445         * doc/posix-functions/floorl.texi: Mention the new module.
1446
1447 2010-12-21  Bruno Haible  <bruno@clisp.org>
1448
1449         New module 'round-ieee'.
1450         * modules/round-ieee: New file.
1451         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
1452         whether round works according to ISO C 99 with IEC 60559.
1453         * m4/round-ieee.m4: New file.
1454         * modules/round-ieee-tests: New file.
1455         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
1456         * tests/test-round1.c (main): Remove signbit tests.
1457         * modules/round-tests (Depends-on): Remove 'signbit'.
1458         * doc/posix-functions/round.texi: Mention the new module.
1459
1460 2010-12-21  Bruno Haible  <bruno@clisp.org>
1461
1462         New module 'trunc-ieee'.
1463         * modules/trunc-ieee: New file.
1464         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
1465         whether trunc works according to ISO C 99 with IEC 60559.
1466         * m4/trunc-ieee.m4: New file.
1467         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
1468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
1469         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
1470         * modules/trunc-ieee-tests: New file.
1471         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
1472         * tests/test-trunc1.c (main): Remove signbit tests.
1473         * modules/trunc-tests (Depends-on): Remove 'signbit'.
1474         * doc/posix-functions/trunc.texi: Mention the new module.
1475
1476 2010-12-21  Bruno Haible  <bruno@clisp.org>
1477
1478         New module 'ceil-ieee'.
1479         * modules/ceil-ieee: New file.
1480         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
1481         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
1482         ISO C 99 with IEC 60559.
1483         * m4/ceil-ieee.m4: New file.
1484         * modules/ceil (Files): Add lib/ceil.c.
1485         (Depends-on): Add 'float'.
1486         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1487         * lib/math.in.h (ceil): New declaration.
1488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
1489         REPLACE_CEIL.
1490         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
1491         * modules/ceil-ieee-tests: New file.
1492         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
1493         * tests/test-math-c++.cc: Check the signature of 'ceil'.
1494         * doc/posix-functions/ceil.texi: Mention the new module.
1495
1496 2010-12-21  Bruno Haible  <bruno@clisp.org>
1497
1498         New module 'floor-ieee'.
1499         * modules/floor-ieee: New file.
1500         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
1501         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
1502         ISO C 99 with IEC 60559.
1503         * m4/floor-ieee.m4: New file.
1504         * modules/floor (Files): Add lib/floor.c.
1505         (Depends-on): Add 'float'.
1506         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1507         * lib/math.in.h (floor): New declaration.
1508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
1509         REPLACE_FLOOR.
1510         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
1511         * modules/floor-ieee-tests: New file.
1512         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
1513         * tests/test-math-c++.cc: Check the signature of 'floor'.
1514         * doc/posix-functions/floor.texi: Mention the new module.
1515
1516 2010-12-21  Bruno Haible  <bruno@clisp.org>
1517
1518         New module 'roundf-ieee'.
1519         * modules/roundf-ieee: New file.
1520         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
1521         test whether roundf works according to ISO C 99 with IEC 60559.
1522         * m4/roundf-ieee.m4: New file.
1523         * modules/roundf-ieee-tests: New file.
1524         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
1525         * tests/test-roundf1.c (main): Remove signbit tests.
1526         * modules/roundf-tests (Depends-on): Remove 'signbit'.
1527         * doc/posix-functions/roundf.texi: Mention the new module.
1528
1529 2010-12-21  Bruno Haible  <bruno@clisp.org>
1530
1531         New module 'truncf-ieee'.
1532         * modules/truncf-ieee: New file.
1533         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
1534         test whether truncf works according to ISO C 99 with IEC 60559.
1535         * m4/truncf-ieee.m4: New file.
1536         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
1537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
1538         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
1539         * modules/truncf-ieee-tests: New file.
1540         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
1541         * tests/test-truncf1.c (main): Remove signbit tests.
1542         * modules/truncf-tests (Depends-on): Remove 'signbit'.
1543         * doc/posix-functions/truncf.texi: Mention the new module.
1544
1545 2010-12-21  Bruno Haible  <bruno@clisp.org>
1546
1547         New module 'ceilf-ieee'.
1548         * modules/ceilf-ieee: New file.
1549         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
1550         test whether ceilf works according to ISO C 99 with IEC 60559.
1551         * m4/ceilf-ieee.m4: New file.
1552         * modules/ceilf-ieee-tests: New file.
1553         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
1554         * tests/test-ceilf1.c (main): Remove signbit tests.
1555         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
1556         * doc/posix-functions/ceilf.texi: Mention the new module.
1557
1558 2010-12-21  Bruno Haible  <bruno@clisp.org>
1559
1560         New module 'floorf-ieee'.
1561         * modules/floorf-ieee: New file.
1562         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
1563         test whether floorf works according to ISO C 99 with IEC 60559.
1564         * m4/floorf-ieee.m4: New file.
1565         * modules/floorf-ieee-tests: New file.
1566         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
1567         * tests/test-floorf1.c (main): Remove signbit tests.
1568         * modules/floorf-tests (Depends-on): Remove 'signbit'.
1569         * doc/posix-functions/floorf.texi: Mention the new module.
1570
1571 2010-12-21  Bruno Haible  <bruno@clisp.org>
1572
1573         Support for minus zero in autoconf macros.
1574         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
1575         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
1576         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
1577         * tests/minus-zero.h: Update comments.
1578
1579 2010-12-21  Bruno Haible  <bruno@clisp.org>
1580
1581         Tests for module 'ceil'.
1582         * modules/ceil-tests: New file.
1583         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
1584         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
1585
1586 2010-12-21  Bruno Haible  <bruno@clisp.org>
1587
1588         Tests for module 'floor'.
1589         * modules/floor-tests: New file.
1590         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
1591         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
1592
1593 2010-12-21  Bruno Haible  <bruno@clisp.org>
1594
1595         math: Fix indentation.
1596         * lib/math.in.h (floorf): Fix indentation.
1597
1598 2010-12-21  Bruno Haible  <bruno@clisp.org>
1599
1600         Fix cross-compilation guesses on Solaris.
1601         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
1602         not match "solaris2.10".
1603         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1604         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
1605         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
1606
1607 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1608
1609         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
1610         This fixes a problem observed with the latest coreutils snapshot
1611         that caused a test to fail on Solaris 8.  src/csplit.c's call
1612         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
1613         earlier, instead of returning the number of bytes that would have
1614         been generated; this causes csplit to incorrectly report memory
1615         exhaustion.
1616         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
1617         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
1618         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
1619         comments to match.
1620         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
1621         Fix typo in matching older versions of Solaris: "solaris2.10"
1622         is matched by the shell pattern "solaris2.[0-9]*".  This matters
1623         only for guessing while cross-compiling.
1624         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
1625
1626 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1627
1628         ftoastr: fix comment again
1629         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
1630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
1631         Also, simplify example a bit by using flags = 0.
1632
1633 2010-12-20  Bruno Haible  <bruno@clisp.org>
1634
1635         round*, trunc*: Update documentation regarding glibc.
1636         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
1637         * doc/posix-functions/round.texi: Likewise.
1638         * doc/posix-functions/roundl.texi: Likewise.
1639         * doc/posix-functions/truncf.texi: Likewise.
1640         * doc/posix-functions/trunc.texi: Likewise.
1641         * doc/posix-functions/truncl.texi: Likewise.
1642
1643 2010-12-20  Bruno Haible  <bruno@clisp.org>
1644
1645         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
1646         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
1647         * doc/posix-functions/round.texi: Likewise.
1648         * doc/posix-functions/roundl.texi: Likewise.
1649
1650 2010-12-20  Bruno Haible  <bruno@clisp.org>
1651
1652         ttyname_r: Add missing declaration on HP-UX 11.
1653         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
1654         HAVE_TTYNAME_R.
1655         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
1656         declared. Set HAVE_TTYNAME_R always.
1657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1658         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
1659         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
1660         HAVE_TTYNAME_R.
1661         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
1662
1663 2010-12-20  Bruno Haible  <bruno@clisp.org>
1664
1665         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
1666         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
1667         * doc/posix-functions/getlogin_r.texi: Likewise.
1668         * tests/test-getlogin.c: Include <errno.h>.
1669         (main): Avoid test failure on HP-UX 11.11.
1670         * tests/test-getlogin_r.c (main): Likewise.
1671
1672 2010-12-20  Bruno Haible  <bruno@clisp.org>
1673
1674         getlogin_r: Add missing declaration on HP-UX 11.
1675         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
1676         declared also when it exists as a function.
1677         * doc/posix-functions/getlogin_r.texi: Document this workaround.
1678
1679 2010-12-20  Bruno Haible  <bruno@clisp.org>
1680
1681         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
1682         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
1683         through wcrtomb.
1684
1685 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1686
1687         ftoastr: fix comment
1688         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
1689         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
1690
1691 2010-12-19  Bruno Haible  <bruno@clisp.org>
1692
1693         isnan: Ensure it is a macro.
1694         * lib/math.in.h (isnan): Define as a macro if not already a macro.
1695         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
1696         Solaris.
1697
1698 2010-12-19  Bruno Haible  <bruno@clisp.org>
1699
1700         ldexpl test: Fix link error on OSF/1 5.1.
1701         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
1702
1703 2010-12-19  Bruno Haible  <bruno@clisp.org>
1704
1705         wctype: Make it work in C++ mode on OSF/1 5.1.
1706         * lib/wctype.in.h (iswblank): Declare but not define here.
1707         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
1708         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
1709         * modules/wctype (Files): Add lib/iswblank.c.
1710
1711 2010-12-19  Bruno Haible  <bruno@clisp.org>
1712
1713         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
1714         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
1715         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
1716
1717 2010-12-19  Bruno Haible  <bruno@clisp.org>
1718
1719         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
1720         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
1721         _POSIX_PII_SOCKET.
1722         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
1723         * doc/posix-functions/recvfrom.texi: Likewise.
1724         * doc/posix-functions/send.texi: Likewise.
1725         * doc/posix-functions/sendto.texi: Likewise.
1726
1727 2010-12-19  Bruno Haible  <bruno@clisp.org>
1728
1729         tcgetsid: Add missing declaration on OSF/1 5.1.
1730         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
1731         HAVE_TCGETSID.
1732         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
1733         Don't set HAVE_TCGETSID.
1734         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
1735         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
1736         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
1737         HAVE_TCGETSID.
1738         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
1739
1740 2010-12-19  Bruno Haible  <bruno@clisp.org>
1741
1742         stdio: Fix problem with popen() declaration on OSF/1 5.1.
1743         * lib/stdio.in.h: During the include_next statement, let recursive
1744         includes of this file include only the system header file.
1745
1746 2010-12-19  Bruno Haible  <bruno@clisp.org>
1747
1748         iconv_open: Fix regression from 2010-12-04.
1749         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
1750         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
1751
1752 2010-12-19  Bruno Haible  <bruno@clisp.org>
1753
1754         stdbool test: Avoid a gcc warning.
1755         * tests/test-stdbool.c (main): Fail if e1 is false.
1756         Reported by Jim Meyering.
1757
1758 2010-12-19  Jim Meyering  <meyering@redhat.com>
1759
1760         setenv: restore to working order
1761         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
1762         mistakenly removed.
1763         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
1764         HAVE_SETENV.
1765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
1766         HAVE_SETENV.
1767
1768 2010-12-19  Bruno Haible  <bruno@clisp.org>
1769
1770         Document some different function declarations on OSF/1 5.1.
1771         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
1772         * doc/posix-functions/inet_ntop.texi: Likewise.
1773         * doc/posix-functions/gethostname.texi: Likewise.
1774         * lib/unistd.in.h (gethostname): Update comment.
1775
1776 2010-12-19  Bruno Haible  <bruno@clisp.org>
1777
1778         doc: Mention vasprintf-posix module.
1779         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
1780         the 'vasprintf-posix' module.
1781         * doc/glibc-functions/vasprintf.texi: Likewise.
1782
1783 2010-12-19  Bruno Haible  <bruno@clisp.org>
1784
1785         unsetenv: Add missing declaration on OSF/1 5.1.
1786         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
1787         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
1788         Don't set HAVE_UNSETENV. In the test program, set _BSD.
1789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
1790         not HAVE_UNSETENV.
1791         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
1792         HAVE_UNSETENV.
1793         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
1794
1795 2010-12-19  Bruno Haible  <bruno@clisp.org>
1796
1797         setenv: Add missing declaration on OSF/1 5.1.
1798         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
1799         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
1800         declared. Don't set HAVE_SETENV.
1801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
1802         not HAVE_SETENV.
1803         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
1804         HAVE_SETENV.
1805         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
1806
1807 2010-12-19  Bruno Haible  <bruno@clisp.org>
1808
1809         nl_langinfo tests: Avoid gcc warning.
1810         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
1811
1812 2010-12-19  Bruno Haible  <bruno@clisp.org>
1813
1814         mknod: Avoid error in C++ mode on OSF/1 with GCC.
1815         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
1816         _GL_CXXALIAS_SYS.
1817
1818 2010-12-19  Bruno Haible  <bruno@clisp.org>
1819
1820         stdbool: Relax test.
1821         * tests/test-stdbool.c (e): Don't require that casts from a variable's
1822         address to 'bool' work in static initializer, for compilers other than
1823         GCC.
1824
1825 2010-12-19  Bruno Haible  <bruno@clisp.org>
1826
1827         ftello: Add missing declaration on OSF/1 5.1.
1828         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
1829         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
1830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
1831         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
1832         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
1833
1834 2010-12-19  Bruno Haible  <bruno@clisp.org>
1835
1836         fseeko: Add missing declaration on OSF/1 5.1.
1837         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
1838         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
1839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
1840         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
1841         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
1842
1843 2010-12-19  Bruno Haible  <bruno@clisp.org>
1844
1845         fchdir: Add missing declaration on OSF/1 5.1.
1846         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
1847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
1848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
1849         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
1850         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
1851
1852 2010-12-19  Bruno Haible  <bruno@clisp.org>
1853
1854         relocatable-prog-wrapper: Separate from relocatable-prog.
1855         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
1856         uninstall-relocwrapper rule here.
1857         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
1858         Reported by Ian Beckwith <ianb@erislabs.net>.
1859
1860 2010-12-19  Bruno Haible  <bruno@clisp.org>
1861
1862         unistr/u8-mbsnlen: Add missing dependency.
1863         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
1864         Reported by Ian Beckwith <ianb@erislabs.net>.
1865
1866 2010-12-19  Bruno Haible  <bruno@clisp.org>
1867
1868         iconv: Make it possible again to use this module without 'iconv-h'.
1869         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
1870         if it is not defined.
1871         Reported by Ian Beckwith <ianb@erislabs.net>.
1872
1873 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1874
1875         acl: port to Solaris 8 when copying from tmpfs to ufs
1876         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
1877         error number.  Problem observed on Solaris 8 with latest
1878         coreutils, with "mv A B", where A is on a tmpfs file system and B
1879         is on a ufs file system.  This caused coreutils' mv/part-symlink
1880         test to fail.
1881
1882         tests: set fail=0 at start
1883         * tests/init.sh (setup_): Move fail=0 initialization here ...
1884         (mktempd_): ... from here, so that tests can rely on fail being
1885         set to 0 initially.  This fixes a problem in coreutils; see:
1886         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
1887
1888 2010-12-18  Bruno Haible  <bruno@clisp.org>
1889
1890         memmem-simple: Stylistic changes.
1891         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
1892         Fix preprocessor directive indentation.
1893
1894 2010-12-15  Pádraig Brady <P@draigBrady.com>
1895
1896         memmem, memmem-simple: reorganize and expand empty needle check
1897         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
1898         functional checks to memmem-simple so that one has a fully functional
1899         memmem by using just this module.
1900         Restrict the performance only check to the memmem module.
1901         Also expand the empty needle check to ensure the correct
1902         pointer is returned, not just a non NULL pointer.
1903         * doc/glibc-functions/memmem.texi: Rearrange the portability
1904         documentation to correlate with the rearranged checks.
1905         Clarify exactly how the memmem and memmem-simple modules
1906         relate to each other.
1907
1908 2010-12-15  Pádraig Brady <P@draigBrady.com>
1909             Bruno Haible  <bruno@clisp.org>
1910
1911         Improve cross-compilation guesses for uClibc.
1912         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
1913         that uClibc does not have the glibc bug.
1914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
1915         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
1916
1917 2010-12-14  Eric Blake  <eblake@redhat.com>
1918
1919         configmake: provide fallbacks for oldest supported autotools
1920         * m4/configmake.m4: New file.
1921         * modules/configmake (Files): Ship it.
1922         (configure.ac): Use it to guarantee fallbacks.
1923
1924 2010-12-13  Pádraig Brady <P@draigBrady.com>
1925
1926         read-file: Improve handling of large files
1927         * lib/read-file.c (fread_file): Minimize realloc()s
1928         for regular files, and better manage sizes around SIZE_MAX.
1929
1930 2010-12-13  Eric Blake  <eblake@redhat.com>
1931
1932         cloexec, fcntl: relax license
1933         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
1934         consent from all contributors.
1935         * modules/fcntl (License): Likewise.
1936
1937 2010-12-10  Bruno Haible  <bruno@clisp.org>
1938
1939         Tests for module 'pipe-posix'.
1940         * modules/pipe-posix-tests: New file.
1941         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
1942
1943 2010-12-10  Bruno Haible  <bruno@clisp.org>
1944
1945         pipe-posix: Make it work in C++ mode.
1946         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
1947         (pipe): Use common idiom, not a macro definition.
1948         * lib/pipe.c: New file.
1949         * m4/pipe.m4: New file.
1950         * modules/pipe-posix (Description): Enhance.
1951         (Files): Add lib/pipe.c, m4/pipe.m4.
1952         (configure.ac): Invoke gl_FUNC_PIPE.
1953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
1954         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
1955         * tests/test-unistd-c++.cc: Check the signature of pipe.
1956
1957 2010-12-10  Bruno Haible  <bruno@clisp.org>
1958
1959         Rename module 'pipe' to 'spawn-pipe'.
1960         * modules/spawn-pipe: New file, renamed from modules/pipe.
1961         (Files, configure.ac, Makefile.am): Update.
1962         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
1963         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
1964         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
1965         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
1966         "spawn-pipe.h" instead of "pipe.h".
1967         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
1968         to gl_SPAWN_PIPE.
1969         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
1970         (Files, Makefile.am): Update.
1971         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
1972         Update.
1973         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
1974         Include "spawn-pipe.h" instead of "pipe.h".
1975         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
1976         * lib/javacomp.c: Likewise.
1977         * lib/javaversion.c: Likewise.
1978         * lib/pipe-filter-gi.c: Likewise.
1979         * lib/pipe-filter-ii.c: Likewise.
1980         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
1981         * modules/javacomp (Depends-on): Likewise.
1982         * modules/javaversion (Depends-on): Likewise.
1983         * modules/pipe-filter-gi (Depends-on): Likewise.
1984         * modules/pipe-filter-ii (Depends-on): Likewise.
1985         * MODULES.html.sh (Executing programs): Update.
1986         * NEWS: Mention the change.
1987
1988 2010-12-10  Eric Blake  <eblake@redhat.com>
1989
1990         pipe-posix: new module
1991         * modules/pipe-posix: New file.
1992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
1993         (gl_UNISTD_H): Check for declaration.
1994         * modules/unistd (Makefile.am): Substitute it.
1995         * lib/unistd.in.h (pipe): Provide it for mingw.
1996         * doc/posix-functions/pipe.texi (pipe): Update documentation.
1997         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
1998
1999 2010-12-07  Bruno Haible  <bruno@clisp.org>
2000
2001         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2002         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2003         u8_strcmp_gnu.
2004         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2005
2006 2010-12-06  Bruno Haible  <bruno@clisp.org>
2007
2008         Update internal documentation.
2009         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2010
2011 2010-12-04  Bruno Haible  <bruno@clisp.org>
2012
2013         Put more information about failed tests into the test return codes.
2014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2015         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2016         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2018         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2019         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2020         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2021         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2022         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2024         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2025         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2026         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2027         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2028         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2029         returns a bit mask.
2030         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2031         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2032         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2033         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2034         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2037         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2038         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2039         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2040         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2041         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2042         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2043         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2044         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2045         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2046         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
2047         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
2048         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2049         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
2050         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2051         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2052         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2053         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2054         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2055         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2056         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2057         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2058         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2059         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
2060         gl_PRINTF_PRECISION): Likewise.
2061         * m4/regex.m4 (gl_REGEX): Likewise.
2062         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2063         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2064         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
2065         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2066         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2068         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2069         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
2070         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2071         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2072         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2073         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2074         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2075         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2076         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2077         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2078         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2079         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2081         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
2082         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
2083         enumerated value.
2084         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
2085
2086 2010-12-04  Bruno Haible  <bruno@clisp.org>
2087
2088         Update for Solaris 11 2010-11.
2089         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
2090         Express, released in November 2010.
2091
2092 2010-12-04  Bruno Haible  <bruno@clisp.org>
2093
2094         nproc: Relax license.
2095         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
2096         and Paul Eggert.
2097         Requested by Ludovic Courtès <ludo@gnu.org>.
2098
2099 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2100
2101         utimecmp: fine-grained src to nearby coarse-grained dest
2102
2103         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
2104         and the source is on a file system with higher-resolution time
2105         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
2106         not work, and the time stamps are close together, the algorithm to
2107         determine the exact resolution from the read-back mtime was buggy:
2108         it had a "!=" where it should have had an "==".  This bug has been
2109         in the code ever since it was introduced to gnulib.
2110         Problem reported by Dan Jacobson in
2111         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
2112
2113 2010-11-30  Bruno Haible  <bruno@clisp.org>
2114
2115         strerror_r-posix: Fix autoconf test.
2116         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
2117
2118 2010-11-28  Bruno Haible  <bruno@clisp.org>
2119             Paul Eggert  <eggert@cs.ucla.edu>
2120
2121         Tests for module 'getdomainname'.
2122         * modules/getdomainname-tests: New file.
2123         * tests/test-getdomainname.c: New file, based on
2124         tests/test-gethostname.c.
2125
2126 2010-11-28  Bruno Haible  <bruno@clisp.org>
2127             Paul Eggert  <eggert@cs.ucla.edu>
2128
2129         getdomainname: Use the system function when possible.
2130         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
2131         (getdomainname): Replace if needed. Provide the declaration if it is
2132         missing. Don't use _GL_CXXALIAS_SYS_CAST.
2133         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
2134         (getdomainname): When the system has getdomainname, call the system
2135         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
2136         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
2137         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
2138         found in libnsl. Look for the declaration also in <netdb.h>. Replace
2139         the function if its second argument is of type 'int' or if it is found
2140         in libnsl.
2141         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
2142         <sys/systeminfo.h> and sysinfo().
2143         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
2144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2145         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
2146         HAVE_GETDOMAINNAME.
2147         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
2148         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
2149         * doc/glibc-functions/getdomainname.texi: Document the problems with
2150         the getdomainname declaration.
2151
2152 2010-11-28  Bruno Haible  <bruno@clisp.org>
2153
2154         sys_socket: Ensure ss_family field on AIX.
2155         * lib/sys_socket.in.h (ss_family): New macro definition.
2156         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
2157         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
2158         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2159         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2160         * modules/sys_socket (Makefile.am): Substitute
2161         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2162         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
2163
2164 2010-11-27  Bruno Haible  <bruno@clisp.org>
2165
2166         readline: Improve configure output.
2167         * m4/readline.m4 (gl_FUNC_READLINE): Make the
2168         "checking for readline..." result understandable.
2169
2170 2010-11-27  Bruno Haible  <bruno@clisp.org>
2171
2172         *printf-posix: Detect a bug on Solaris 10/x86.
2173         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
2174         for floating-point output.
2175         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
2176         directive.
2177         * tests/test-snprintf-posix.h (test_function): Likewise.
2178         * tests/test-sprintf-posix.h (test_function): Likewise.
2179         * tests/test-vasprintf-posix.c (test_function): Likewise.
2180         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
2181         * doc/posix-functions/printf.texi: Likewise.
2182         * doc/posix-functions/snprintf.texi: Likewise.
2183         * doc/posix-functions/sprintf.texi: Likewise.
2184         * doc/posix-functions/vfprintf.texi: Likewise.
2185         * doc/posix-functions/vprintf.texi: Likewise.
2186         * doc/posix-functions/vsnprintf.texi: Likewise.
2187         * doc/posix-functions/vsprintf.texi: Likewise.
2188         * doc/glibc-functions/obstack_printf.texi: Likewise.
2189         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2190
2191 2010-11-27  Bruno Haible  <bruno@clisp.org>
2192
2193         Fix link error when module libunistring-optional is in use.
2194         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
2195         * modules/striconveha-tests (Makefile.am): Likewise.
2196
2197 2010-11-27  Bruno Haible  <bruno@clisp.org>
2198
2199         regex: Mention link dependencies.
2200         * modules/regex (Link): New section.
2201         * modules/rpmatch (Link): Likewise.
2202         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
2203
2204 2010-11-27  Bruno Haible  <bruno@clisp.org>
2205
2206         ftoastr: Fix compilation error on Solaris.
2207         * lib/ftoastr.c: Include <config.h>.
2208
2209 2010-11-27  Bruno Haible  <bruno@clisp.org>
2210
2211         getloadavg: Update documentation.
2212         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
2213
2214 2010-11-27  Bruno Haible  <bruno@clisp.org>
2215
2216         sys_socket: Fix test whether the functions are declared.
2217         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
2218         not <sys/select.h>.
2219
2220 2010-11-27  Bruno Haible  <bruno@clisp.org>
2221
2222         getpass: Make sure to get system declaration on some platforms.
2223         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
2224         gl_USE_SYSTEM_EXTENSIONS.
2225         * modules/getpass (Depends-on): Add extensions.
2226
2227 2010-11-26  Bruno Haible  <bruno@clisp.org>
2228
2229         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
2230         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
2231         'iconv' module is present.
2232         (ICONV_CONST): New macro.
2233         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
2234         ICONV_CONST.
2235         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
2236         set ICONV_CONST.
2237         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
2238         here.
2239         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
2240         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
2241         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
2242         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
2243         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
2244         present.
2245
2246 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
2247
2248         ftoastr: comment fix
2249         * lib/ftoastr.c: "little" -> "little or no" in comment
2250
2251 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2252
2253         stdint: port to GCC 4.3 + OSX + Octave
2254         On this platform, stdint.h is buggy and defines int64_t to long
2255         long int.  The replacement defined it to long int, causing
2256         problems with C++ style name mangling.  Instead, trust the system
2257         definition if INT64_MAX is defined, and likewise for the unsigned
2258         variant.   Problem reported by Jarno Rajahalme in
2259         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
2260         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
2261         and don't mess with int64_t and INT64_MAX in this case.
2262         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
2263
2264 2010-11-24  Bruno Haible  <bruno@clisp.org>
2265
2266         doc: Corrections regarding MacOS X 10.4 and 10.5.
2267         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
2268         MacOS X.
2269         Reported by Simon Josefsson.
2270
2271 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
2272
2273         Uninstall ".bin" files installed by relocwrapper.
2274         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
2275         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
2276         unless it is already there.
2277
2278 2010-11-21  Bruno Haible  <bruno@clisp.org>
2279
2280         Update for NetBSD 5.0.
2281         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2282         NetBSD; the test fails on NetBSD 5.0.
2283         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2284         about NetBSD.
2285
2286 2010-11-21  Bruno Haible  <bruno@clisp.org>
2287
2288         Update for HP-UX 11.23 and HP-UX 11.31.
2289         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
2290         HP-UX.
2291
2292 2010-11-21  Bruno Haible  <bruno@clisp.org>
2293
2294         Update for MacOS X 10.5.
2295         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2296         MacOS X; the test fails on MacOS X 10.5.8.
2297         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2298         about MacOS X.
2299
2300 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
2301
2302         bootstrap: add bootstrap_sync option.
2303         See discussion at
2304         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
2305         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
2306         * build-aux/bootstrap: Accept --bootstrap-sync to update
2307         bootstrap if it is not identical to the local gnulib's
2308         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
2309         enable this by default.  Accept --no-bootstrap-sync to disable
2310         it.
2311
2312 2010-11-20  Bruno Haible  <bruno@clisp.org>
2313
2314         Ensure that <features.h> is included before __GLIBC__ is tested.
2315         * lib/printf-parse.h: Include <features.h>.
2316         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
2317         Reported by Mike Frysinger <vapier@gentoo.org>.
2318
2319         Ensure that <features.h> is included before __GLIBC__ is tested.
2320         * lib/wchar.in.h: Include <features.h>.
2321         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
2322         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
2323         Reported by Mike Frysinger <vapier@gentoo.org>.
2324
2325         Ensure that <features.h> is included before __GLIBC__ is tested.
2326         * lib/arpa_inet.in.h: Include <features.h>.
2327         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
2328         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
2329         Reported by Mike Frysinger <vapier@gentoo.org>.
2330
2331         Ensure that <features.h> is included before __GLIBC__ is tested.
2332         * build-aux/link-warning.h: Include <features.h>.
2333         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
2334         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
2335         Reported by Mike Frysinger <vapier@gentoo.org>.
2336
2337         Ensure that <features.h> is included before __GLIBC__ is tested.
2338         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
2339         Reported by Mike Frysinger <vapier@gentoo.org>.
2340
2341 2010-11-20  Bruno Haible  <bruno@clisp.org>
2342
2343         memmem: Fix autoconf test.
2344         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
2345
2346 2010-11-20  Bruno Haible  <bruno@clisp.org>
2347
2348         Port to uClibc.
2349         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
2350         * lib/fcntl.in.h: Likewise.
2351         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
2352         * lib/mbrtowc.c (mbrtowc): Likewise.
2353         * lib/relocatable.c (find_shared_library_fullname): Likewise.
2354         * lib/strerror_r.c: Likewise.
2355         * lib/unistr/u8-strnlen.c: Likewise.
2356         * lib/vasnprintf.c (decimal_point_char): Likewise.
2357         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2358         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2359         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2360         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
2361         * tests/test-sigaction.c (handler, main): Likewise.
2362         * lib/freading.h: Treat uClibc like a non-glibc platform.
2363         * lib/freading.c: Likewise.
2364         * lib/gettext.h: Likewise.
2365         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
2366         Likewise.
2367         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
2368         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2369         * lib/propername.c (proper_name_utf8): Likewise.
2370         * lib/spawn.in.h: Likewise.
2371         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
2372         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
2373         mem_cd_iconveh_internal): Likewise.
2374         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
2375         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2376         strstr, strcasestr): Likewise.
2377         * lib/unicodeio.c (unicode_to_mb): Likewise.
2378         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
2379         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
2380         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
2381         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
2382         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
2383         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
2384         * lib/unistr/u8-stpncpy.c: Likewise.
2385         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2386         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
2387         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2388         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2389         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
2390         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
2391         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
2392         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
2393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2394         Likewise.
2395         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2396         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2397         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2400         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2401         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2402         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2403         * tests/test-getopt.h (OPTIND_MIN): Likewise.
2404         * tests/test-striconveha.c (main): Likewise.
2405         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2406         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
2407         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
2408         * doc/posix-functions/getline.texi: Likewise.
2409         Reported by Mike Frysinger <vapier@gentoo.org>.
2410
2411 2010-11-20  Bruno Haible  <bruno@clisp.org>
2412
2413         nproc: Fix condition.
2414         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
2415         HAVE_PTHREAD_AFFINITY_NP.
2416
2417 2010-11-20  Bruno Haible  <bruno@clisp.org>
2418
2419         Fix a comment.
2420         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
2421
2422 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
2423
2424         ftoastr: don't assume snprintf
2425         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
2426         Implement a subset of snprintf here, by using sprintf safely.
2427         * modules/ftoastr (Depends-on): Remove snprintf.
2428
2429 2010-11-19  Jim Meyering  <meyering@redhat.com>
2430
2431         test-rename.h: fix compilation failure
2432         * tests/test-rename.h (test_rename): Add omitted "}".
2433
2434 2010-11-17  Jim Meyering  <meyering@redhat.com>
2435
2436         maint.mk: add a URL discussing the no-@acronym policy
2437         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
2438
2439 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2440
2441         ftoastr: depend on snprintf, improve comments
2442         * lib/ftoastr.c: Also mention Loitsch's draft.
2443         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
2444         needed in the current implementation, but it might simplify
2445         speeding up the code later.
2446         * modules/ftoastr: Depend on snprintf; this improves portability.
2447         Suggested by Bruno Haible in the same email.
2448
2449         ftoastr: port to hosts lacking strtof and strtold
2450         Problem reported by Bruno Haible in
2451         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
2452         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
2453         environment and strtold (and presumably strtof) are not available.
2454         * modules/ftoastr (Files): Add m4/c-strtod.m4.
2455         (configure.ac): Require gl_C99_STRTOLD.
2456
2457 2010-11-18  Bruno Haible  <bruno@clisp.org>
2458
2459         c-strtold: Avoid link error on AIX 7.
2460         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
2461         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
2462         (gl_C_STRTOLD): Test whether strtold_l exists.
2463         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2464
2465 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2466
2467         intprops: new macro INT_BITS_STRLEN_BOUND
2468         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
2469         ftoastr.h.  This exposes an internal of intprops.h that was formerly
2470         not exposed.  Also, it uses a slightly tighter bound than before;
2471         though this makes no practical difference, we might as well be as
2472         tight as we easily can.
2473
2474         ftoastr: new module, for lossless conversion of floats to short strings
2475         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
2476         * modules/ftoastr: New files.
2477
2478 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2479
2480         bootstrap: port to Solaris sed
2481         * build-aux/bootstrap (get_version): Port to Solaris sed.
2482         See Ralf Wildenhues's note in
2483         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
2484
2485 2010-11-14  Jim Meyering  <meyering@redhat.com>
2486
2487         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
2488         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
2489         and move definition closer to sole use.
2490
2491 2010-11-13  Jim Meyering  <meyering@redhat.com>
2492
2493         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
2494         Now we require at least autoconf-2.59, which means the work-around
2495         is no longer needed.
2496         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
2497         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2498         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2499         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
2500         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2501
2502 2010-11-13  Bruno Haible  <bruno@clisp.org>
2503
2504         rename, renameat: Avoid test failures at NFS mounted locations.
2505         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
2506         functions.
2507         (test_rename): Use assert_nonexistent.
2508         * tests/test-rename.c: Include <dirent.h>.
2509         * tests/test-renameat.c: Likewise.
2510         Reported by Gary V. Vaughan <gary@gnu.org>.
2511
2512         rename, renameat: Document Linux bug with NFS
2513         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
2514         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
2515         * doc/posix-functions/renameat.texi: Likewise.
2516         Suggested by Eric Blake.
2517
2518 2010-11-13  Bruno Haible  <bruno@clisp.org>
2519
2520         rename test: Add comments.
2521         * tests/test-rename.h (test_rename): Add structure and comments.
2522
2523 2010-11-13  Eric Blake  <eblake@redhat.com>
2524
2525         maintainer-makefile: cover a few more files
2526         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
2527         scripts generated within C files, for libvirt.
2528
2529 2010-11-13  Bruno Haible  <bruno@clisp.org>
2530
2531         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
2532         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
2533         character, return the number of bytes that belong together, not always
2534         1.
2535         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
2536         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
2537         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
2538         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
2539         number of bytes of an invalid character.
2540         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
2541         (main): Invoke it.
2542         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
2543         results.
2544         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
2545         malformed byte sequences.
2546         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
2547         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
2548         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
2549         Reported by Ben Pfaff and Paolo Bonzini.
2550
2551 2010-11-13  Bruno Haible  <bruno@clisp.org>
2552
2553         openat: Work around glibc bug with fchownat() and empty file names.
2554         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
2555         (gl_FUNC_FCHOWNAT): Invoke it.
2556         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
2557         * doc/posix-functions/fchownat.texi: Document the glibc bug.
2558         Reported by Gary V. Vaughan <gary@gnu.org>.
2559
2560 2010-11-13  Bruno Haible  <bruno@clisp.org>
2561
2562         openat: Ensure autoconf macro ordering.
2563         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
2564         gl_USE_SYSTEM_EXTENSIONS.
2565         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
2566
2567 2010-11-13  Bruno Haible  <bruno@clisp.org>
2568
2569         Update comments.
2570         * lib/unistr/u8-check.c: Update file name in comments.
2571         * lib/unistr/u8-mblen.c: Likewise.
2572         * lib/unistr/u8-prev.c: Likewise.
2573         * lib/unistr/u8-strmblen.c: Likewise.
2574         * lib/unistr/u8-strmbtouc.c: Likewise.
2575
2576 2010-11-13  Jim Meyering  <meyering@redhat.com>
2577
2578         tests: avoid test failure on Solaris 10 due to lack of PATH export
2579         * tests/test-update-copyright.sh: Don't forget to export PATH.
2580
2581         init.sh: ensure that IFS is defined, just in case...
2582         * tests/init.sh (setup_): Ensure that IFS is defined,
2583         so that saving and restoring it works as expected.  This
2584         appears to be useful at least for an old version of dash
2585         from a long time ago (RH 6).  See here for details:
2586         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
2587
2588         maint.mk: tighten "test a == b" check
2589         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
2590         test to files that contain something like #!/bin/sh.
2591         Without this, coreutils would get two false positives in
2592         the comments of C source files.
2593
2594 2010-11-12  Eric Blake  <eblake@redhat.com>
2595
2596         bootstrap: fix typo in previous attempt
2597         * build-aux/bootstrap (buildreq): Correct the grouping.
2598         Reported by Paul Eggert.
2599
2600         maintainer-makefile: prohibit test x == x
2601         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
2602         Based on a report by Matthias Bolte.
2603
2604         bootstrap: allow FreeBSD gzip
2605         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
2606         which has no '.' and goes to stderr.
2607         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
2608         Reported by Matthias Bolte.
2609
2610         maintainer-makefile: check for i18n setup
2611         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
2612         will likely work.
2613
2614 2010-11-12  Bruno Haible  <bruno@clisp.org>
2615
2616         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
2617         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
2618         * lib/nanosleep.c (nanosleep): Likewise.
2619
2620 2010-11-11  Bruno Haible  <bruno@clisp.org>
2621
2622         fcntl-h: Fix for use of C++ on glibc systems.
2623         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2624         also on glibc systems in C++ mode.
2625         Reported by Gary V. Vaughan <gary@gnu.org>.
2626
2627 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2628
2629         mknod: avoid false failure with dash
2630         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
2631
2632 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2633
2634         unlink: Fix "is it should" typo in diagnostic.
2635         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
2636         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
2637
2638 2010-11-11  Bruno Haible  <bruno@clisp.org>
2639
2640         Tests for module 'strerror_r-posix'.
2641         * modules/strerror_r-posix-tests: New file.
2642         * tests/test-strerror_r.c: New file.
2643         * tests/test-string-c++.cc: Check the signature of strerror_r.
2644
2645         New module 'strerror_r-posix'.
2646         * lib/string.in.h (strerror_r): New declaration.
2647         * lib/strerror_r.c: New file.
2648         * m4/strerror_r.m4: New file.
2649         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
2650         of strerror_r.
2651         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
2652         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
2653         * modules/strerror_r-posix: New file.
2654         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
2655         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
2656         * doc/posix-functions/strerror_r.texi: Mention the new module and the
2657         portability problems.
2658
2659 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
2660
2661         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
2662         line is also considered for output. Quoted function name in shell
2663         command, so temporary files for functions like MyClass::operator()
2664         are removed correctly without errors.
2665
2666 2010-11-09  Bruno Haible  <bruno@clisp.org>
2667
2668         * doc/posix-functions/strerror.texi: List more failing platforms.
2669
2670         * doc/posix-functions/strerror.texi: Add a comment.
2671
2672 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2673
2674         fdopendir: fix bug on MacOS X when low on file descriptors
2675
2676         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
2677         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
2678         All callers changed.
2679         (fdopendir): Invoke save_cwd at the top level, not after using
2680         multiple dup() calls to use up file descriptors.  Then retry
2681         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
2682         less than the maximum number of open file descriptors, because
2683         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
2684         on Mac OS X 10.6.4 for tar 1.24
2685         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
2686         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
2687         and for tar 1.25
2688         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
2689
2690 2010-11-07  Bruno Haible  <bruno@clisp.org>
2691
2692         vasnprintf: Support I flag on glibc systems.
2693         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
2694         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
2695         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
2696         snprintf function.
2697         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
2698         glibc systems.
2699         * tests/test-vasnprintf-posix3.c: New file.
2700         * modules/vasnprintf-posix-tests (Files): Add it.
2701         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
2702
2703 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2704
2705         [html] Fix copy/paste bug: Use unique name for compiler warnings.
2706         * MODULES.html.sh: For compiler warnings, use name
2707         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
2708
2709 2010-11-05  Eric Blake  <eblake@redhat.com>
2710
2711         ceil, floor: avoid spurious failure with icc
2712         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
2713         [denormals-as-zero] when optimizing without -mieee-fp option.
2714         * tests/test-floorf2.c (floorf_reference): Likewise.
2715         * tests/test-ceilf1.c (dummy): New function.
2716         (main): Use it to outsmart icc's optimization.
2717         * tests/test-floorf1.c (dummy, main): Likewise.
2718
2719         tests: require working signbit
2720         * modules/ceilf-tests (Depends-on): Add signbit.
2721         * modules/ceill-tests (Depends-on): Likewise.
2722         * modules/floorf-tests (Depends-on): Likewise.
2723         * modules/floorl-tests (Depends-on): Likewise.
2724         * modules/round-tests (Depends-on): Likewise.
2725         * modules/roundf-tests (Depends-on): Likewise.
2726         * modules/roundl-tests (Depends-on): Likewise.
2727         * modules/trunc-tests (Depends-on): Likewise.
2728         * modules/truncf-tests (Depends-on): Likewise.
2729         * modules/truncl-tests (Depends-on): Likewise.
2730
2731         strtod: work around icc bug
2732         * lib/strtod.c (minus_zero): Define to working value.
2733         (strtod): Use it to avoid icc bug.
2734
2735         copysign: enhance tests
2736         * modules/copysign-tests (Files): Add minus-zero.h.
2737         * tests/test-copysign.c (main): Also test zeros.
2738
2739 2010-11-04  Eric Blake  <eblake@redhat.com>
2740
2741         ceil, floor, round, trunc: enhance tests of -0
2742         * tests/test-ceilf1.c (main): Ensure correct sign of result.
2743         * tests/test-ceill.c (main): Likewise.
2744         * tests/test-floorf1.c (main): Likewise.
2745         * tests/test-floorl.c (main): Likewise.
2746         * tests/test-round1.c (main): Likewise.
2747         * tests/test-roundf1.c (main): Likewise.
2748         * tests/test-roundl.c (main): Likewise.
2749         * tests/test-trunc1.c (main): Likewise.
2750         * tests/test-truncf1.c (main): Likewise.
2751         * tests/test-truncl.c (main): Likewise.
2752
2753 2010-11-04  Eric Blake  <eblake@redhat.com>
2754
2755         frexp, tests: work around ICC bug with -zero
2756         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
2757         works with more compilers.
2758         * tests/minus-zero.h: New file.
2759         * modules/ceilf-tests (Files): Include it.
2760         * modules/ceill-tests (Files): Likewise.
2761         * modules/floorf-tests (Files): Likewise.
2762         * modules/floorl-tests (Files): Likewise.
2763         * modules/frexp-nolibm-tests (Files): Likewise.
2764         * modules/frexp-tests (Files): Likewise.
2765         * modules/frexpl-nolibm-tests (Files): Likewise.
2766         * modules/frexpl-tests (Files): Likewise.
2767         * modules/isnan-tests (Files): Likewise.
2768         * modules/isnand-nolibm-tests (Files): Likewise.
2769         * modules/isnand-tests (Files): Likewise.
2770         * modules/isnanf-nolibm-tests (Files): Likewise.
2771         * modules/isnanf-tests (Files): Likewise.
2772         * modules/isnanl-nolibm-tests (Files): Likewise.
2773         * modules/isnanl-tests (Files): Likewise.
2774         * modules/round-tests (Files): Likewise.
2775         * modules/roundf-tests (Files): Likewise.
2776         * modules/roundl-tests (Files): Likewise.
2777         * modules/ldexpl-tests (Files): Likewise.
2778         * modules/signbit-tests (Files): Likewise.
2779         * modules/snprintf-posix-tests (Files): Likewise.
2780         * modules/sprintf-posix-tests (Files): Likewise.
2781         * modules/strtod-tests (Files): Likewise.
2782         * modules/trunc-tests (Files): Likewise.
2783         * modules/truncf-tests (Files): Likewise.
2784         * modules/truncl-tests (Files): Likewise.
2785         * modules/vsnprintf-posix-tests (Files): Likewise.
2786         * modules/vsprintf-posix-tests (Files): Likewise.
2787         * modules/vasnprintf-posix-tests (Files): Likewise.
2788         * modules/vasprintf-posix-tests (Files): Likewise.
2789         * tests/test-ceilf1.c (main): Use it.
2790         * tests/test-ceill.c (main): Likewise.
2791         * tests/test-floorf1.c (main): Likewise.
2792         * tests/test-floorl.c (main): Likewise.
2793         * tests/test-frexp.c (main): Likewise.
2794         * tests/test-frexpl.c (main): Likewise.
2795         * tests/test-isnan.c (main): Likewise.
2796         * tests/test-isnand.h (main): Likewise.
2797         * tests/test-isnanf.h (main): Likewise.
2798         * tests/test-isnanl.h (main): Likewise.
2799         * tests/test-ldexpl.c (main): Likewise.
2800         * tests/test-round.c (main): Likewise.
2801         * tests/test-roundf.c (main): Likewise.
2802         * tests/test-roundl.c (main): Likewise.
2803         * tests/test-signbit.c (test_signbitf, test_signbitd)
2804         (test_signbitl): Likewise.
2805         * tests/test-snprintf-posix.h (test_function): Likewise.
2806         * tests/test-sprintf-posix.h (test_function): Likewise.
2807         * tests/test-strtod.c (main): Likewise.
2808         * tests/test-trunc1.c (main): Likewise.
2809         * tests/test-truncf1.c (main): Likewise.
2810         * tests/test-truncl.c (main): Likewise.
2811
2812         isnanl: work around icc bug
2813         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
2814
2815 2010-11-03  Eric Blake  <eblake@redhat.com>
2816
2817         tests: fix compiler warnings
2818         * tests/test-getopt.h (test_getopt): Fix condition.
2819         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2820         * tests/test-pipe2.c (main): Likewise.
2821         * tests/test-quotearg-simple.c (main): Avoid icc warning.
2822
2823         utimens: fix broken m4 test
2824         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
2825
2826 2010-10-28  Bruno Haible  <bruno@clisp.org>
2827
2828         posix_spawn*, getdtablesize: Relax license.
2829         * modules/posix_spawn (License): Change to LGPLv2+.
2830         * modules/posix_spawnp (License): Likewise.
2831         * modules/posix_spawn-internal (License): Likewise.
2832         * modules/posix_spawnattr_init (License): Likewise.
2833         * modules/posix_spawnattr_getflags (License): Likewise.
2834         * modules/posix_spawnattr_setflags (License): Likewise.
2835         * modules/posix_spawnattr_getpgroup (License): Likewise.
2836         * modules/posix_spawnattr_setpgroup (License): Likewise.
2837         * modules/posix_spawnattr_getschedparam (License): Likewise.
2838         * modules/posix_spawnattr_setschedparam (License): Likewise.
2839         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
2840         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
2841         * modules/posix_spawnattr_getsigdefault (License): Likewise.
2842         * modules/posix_spawnattr_setsigdefault (License): Likewise.
2843         * modules/posix_spawnattr_getsigmask (License): Likewise.
2844         * modules/posix_spawnattr_setsigmask (License): Likewise.
2845         * modules/posix_spawnattr_destroy (License): Likewise.
2846         * modules/posix_spawn_file_actions_init (License): Likewise.
2847         * modules/posix_spawn_file_actions_addclose (License): Likewise.
2848         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
2849         * modules/posix_spawn_file_actions_addopen (License): Likewise.
2850         * modules/posix_spawn_file_actions_destroy (License): Likewise.
2851         * modules/getdtablesize (License): Likewise.
2852         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
2853
2854 2010-10-26  Bruno Haible  <bruno@clisp.org>
2855
2856         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
2857         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
2858         Cygwin and mingw.
2859         Suggested by Eric Blake.
2860
2861 2010-10-26  Bruno Haible  <bruno@clisp.org>
2862
2863         stdio: Work around compilation error due to renameat() on Solaris 10.
2864         * lib/stdio.in.h: Include <unistd.h> on Solaris.
2865         * lib/renameat.c: Don't include <unistd.h> here.
2866         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
2867         Reported by Paul Eggert and Eric Blake.
2868
2869 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2870
2871         renameat: port to Solaris 10, which declares renameat in unistd.h
2872
2873         * lib/renameat.c: Include unistd.h before stdio.h, because
2874         Solaris 10 declares renameat in unistd.h.  Problem encountered
2875         when building GNU tar 1.24 on Solaris 10.
2876
2877 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2878
2879         fdopendir: fix C89 compilation
2880         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
2881         compilers.
2882
2883 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
2884
2885         inttostr: simplify by removing unnecessary redundancy
2886         * lib/anytostr.c: Don't include verify.h.
2887         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
2888         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
2889         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
2890         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
2891         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
2892         Likewise.
2893         * modules/inttostr (Depends-on): Remove 'verify'.
2894
2895 2010-10-23  Bruno Haible  <bruno@clisp.org>
2896
2897         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
2898         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
2899         Reported by Eric Blake.
2900
2901 2010-10-23  Bruno Haible  <bruno@clisp.org>
2902
2903         Tests: Fix LOCALE_JA on MirBSD 10.
2904         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
2905         to an UTF-8 locale.
2906         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
2907         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2908         Reported by Eric Blake.
2909
2910 2010-10-21  Bruno Haible  <bruno@clisp.org>
2911
2912         nl_langinfo test: Avoid test failure on NetBSD 5.
2913         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
2914         Reported by Eric Blake.
2915
2916 2010-10-21  Eric Blake  <eblake@redhat.com>
2917
2918         c-stack: work around libsigsegv 2.8 bug
2919         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
2920         overflow on at least PowerPC64.
2921
2922 2010-10-17  Bruno Haible  <bruno@clisp.org>
2923
2924         userspec: Drop redundant file.
2925         * modules/userspec (Files): Remove lib/inttostr.h.
2926
2927 2010-10-17  Bruno Haible  <bruno@clisp.org>
2928
2929         nl_langinfo tests: Silence some warnings.
2930         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
2931         Reported by Jim Meyering.
2932
2933 2010-10-17  Bruno Haible  <bruno@clisp.org>
2934
2935         Make use of GCC's attribute __alloc_size__.
2936         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
2937         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
2938         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
2939         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
2940         __alloc_size__.
2941         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2942         Suggested by Jim Meyering.
2943
2944 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
2945
2946         bootstrap: anchor .gitignore entries.
2947         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
2948         with...
2949         (insert_vc_ignore): ... this new function, which prepends `/' to
2950         all .gitignore entries before passing them to
2951         insert_sorted_if_absent.
2952
2953 2010-10-16  Bruno Haible  <bruno@clisp.org>
2954
2955         nextafter: Fix configure check.
2956         * modules/nextafter (configure.ac): Correct expected prototype.
2957
2958 2010-10-16  Bruno Haible  <bruno@clisp.org>
2959
2960         termios: Update documentation.
2961         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
2962
2963 2010-10-16  Bruno Haible  <bruno@clisp.org>
2964
2965         tests: Make them compile with TinyCC.
2966         * tests/test-strstr.c (main): Remove parentheses around array
2967         initializer.
2968
2969 2010-10-15  Eric Blake  <eblake@redhat.com>
2970
2971         ignore-value: make header idempotent
2972         * lib/ignore-value.h: Add double-inclusion guards.
2973         Reported by Stefan Berger.
2974
2975 2010-10-15  Jim Meyering  <meyering@redhat.com>
2976
2977         GNUmakefile: handle "stable" target, not "major"
2978         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
2979         lists in maint.mk and announce-gen.  Without this, "make stable"
2980         would fail to ensure that $(VERSION) is up to date.
2981
2982 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
2983
2984         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
2985         & co.
2986
2987 2010-10-14  Bruno Haible  <bruno@clisp.org>
2988
2989         vasnprintf: Don't set errno to 0.
2990         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
2991         block that sets it to 0.
2992         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2993
2994 2010-10-14  Bruno Haible  <bruno@clisp.org>
2995
2996         socketlib: Fix.
2997         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
2998         gl_PREREQ_SYS_H_WINSOCK2.
2999         Reported by Ian Beckwith <ianb@erislabs.net>.
3000
3001 2010-10-13  Jim Meyering  <meyering@redhat.com>
3002
3003         test-select-stdin.c: avoid warn_unused_result warnings
3004         * tests/test-select-stdin.c: Include "macros.h".
3005         ASSERT that read and fflush succeed.
3006
3007 2010-10-13  Jim Meyering  <meyering@redhat.com>
3008
3009         git-version-gen: do require git-VC'd files in cwd
3010         * build-aux/git-version-gen: Reject a git version string
3011         if there are no commits associated with the current directory.
3012         This avoids an unlikely false-positive (unrelated dir whose parent
3013         repository also contains a tag matching v*), as pointed out
3014         by Giuseppe Scrivano in
3015         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3016
3017 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3018
3019         argv-iter: omit nonconforming declaration
3020         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3021         enum arg_iter_err declaration, which doesn't conform to C99.
3022         Solaris 10 cc warns about this.
3023
3024 2010-10-13  Eric Blake  <eblake@redhat.com>
3025
3026         termios: fix compilation on mingw
3027         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3028         (gl_TERMIOS_H): Adjust it on mingw.
3029         * modules/termios (Makefile.am): Substitute new key.
3030         * lib/termios.in.h (includes): Make include_next conditional.
3031         * doc/posix-headers/termios.texi (termios.h): Update
3032         documentation.
3033         Reported by Daniel P. Berrange.
3034
3035 2010-10-13  Jim Meyering  <meyering@redhat.com>
3036
3037         git-version-gen: don't require that .git/ be in the current dir
3038         * build-aux/git-version-gen: Adjust this script so that it works
3039         when run from any working directory beneath the top-level .git/-
3040         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3041         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3042
3043         test-select: avoid warn_unused_result warnings
3044         * tests/test-select.c: Include "macros.h".
3045         ASSERT that each call to read, write, and pipe succeeds.
3046         While not technically required, also check each "close".
3047         * modules/select-tests (Files): Add tests/macros.h.
3048
3049         test-symlinkat: remove declaration of unused local
3050         * tests/test-symlinkat.c (main): Remove unused local, "buf".
3051
3052         test-inttostr: avoid shadowing warnings
3053         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
3054         and use malloc rather than the stack for the same reason as
3055         mentioned in the comment justifying the other allocation.
3056
3057 2010-10-11  Bruno Haible  <bruno@clisp.org>
3058
3059         stdlib: Allow multiple gnulib generated replacements to coexist.
3060         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
3061         Reported by Sam Steingold <sds@gnu.org>.
3062
3063 2010-10-11  Jim Meyering  <meyering@redhat.com>
3064
3065         fix a documentation typo
3066         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
3067
3068 2010-10-11  Eric Blake  <eblake@redhat.com>
3069
3070         futimens: work around Solaris 11 bug
3071         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
3072         * tests/test-futimens.h (test_futimens): Enhance, rather than
3073         weaken test.
3074         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3075
3076 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3077
3078         Indentation.
3079         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
3080         higher-level operators more to the left.
3081
3082 2010-10-11  Jim Meyering  <meyering@redhat.com>
3083
3084         test-futimens: avoid unwarranted test failure on Solaris 5.11
3085         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
3086         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
3087         because it tries to dereference the NULL name argument.
3088
3089 2010-10-11  Bruno Haible  <bruno@clisp.org>
3090
3091         Indentation.
3092         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
3093         indentation.
3094
3095 2010-10-11  Jim Meyering  <meyering@redhat.com>
3096
3097         spawn.in.h: make indentation consistent with parentheses
3098         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
3099         Make indentation consistent with parentheses.
3100
3101 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
3102
3103         Fix mismatched parens in previous commit
3104         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
3105         parens.
3106
3107 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3108
3109         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
3110
3111         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
3112         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
3113         * lib/malloca.c: Include "verify.h".
3114         (verify1): Remove, replacing with a verify call.
3115         * lib/relocwrapper.c (verify1): Likewise.
3116         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
3117         Likewise.
3118         * modules/malloca (Depends-on): Add 'verify'.
3119         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
3120         * modules/vasnprintf (Depends-on): Add 'verify'.
3121         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3122         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3123         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3124         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3125         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3126         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3127         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3128
3129         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
3130
3131         Formerly the style was sometimes 2*X - 1, because the C standard
3132         was wrongly thought to disallow ?: in integral constant expressions.
3133         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
3134         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
3135         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3136         * lib/stdint.in.h (_verify_intmax_size): Likewise.
3137         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
3138         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
3139         verify that time_t cannot be floating.
3140
3141 2010-10-08  Eric Blake  <eblake@redhat.com>
3142
3143         time: enforce recent POSIX ruling that time_t is integral
3144         * lib/time.in.h (__time_t_must_be_integral): Detect any
3145         problematic systems, allowing the rest of gnulib to assume POSIX.
3146
3147 2010-10-08  Jim Meyering  <meyering@redhat.com>
3148
3149         fdopendir: fix a bug on systems lacking openat and /proc support
3150         OpenBSD 4.7 is one such system.  The most noticeable effect was
3151         failure of any application making nontrivial use of fts: rm, du,
3152         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
3153           ./rm: traversal failed: `a': Bad file descriptor
3154         Debugging that, you see that even though FD 6 was closed just
3155         prior to the opendir call in fd_clone_opendir, its resulting
3156         dir->dd_fd was 8, rather than the expected value of 6:
3157
3158         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
3159         93                close (fd);
3160         (gdb) n
3161         94                dir = fd_clone_opendir (dupfd);
3162         (gdb) n
3163         95                saved_errno = errno;
3164         (gdb) p dir->dd_fd
3165         $11 = 8
3166
3167         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
3168         The problem is that on OpenBSD, fd_clone_opendir has to resort
3169         to using the old-style save/restore CWD mechanism, due to its
3170         lack of openat/proc support, and *that* would steal the FD (6)
3171         that opendir was supposed to use.
3172
3173         The fix is to squirrel away the desired FD so that save_cwd uses a
3174         different one, and then free the dest FD right before calling opendir.
3175         That guarantees opendir will use the required file descriptor.
3176
3177         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
3178
3179 2010-10-08  Bruno Haible  <bruno@clisp.org>
3180
3181         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
3182         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
3183
3184 2010-10-08  Bruno Haible  <bruno@clisp.org>
3185
3186         nanosleep: Make replacement POSIX compliant.
3187         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
3188         is out of range.
3189         Reported by Jim Meyering.
3190
3191 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3192
3193         bootstrap: add hook for altering gnulib.mk, for Bison
3194         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
3195         the Bison bootstrapping process can rewrite file names and variables
3196         in this file before later parts of 'bootstrap' use the file.
3197         Bison wants to include lib/gnulib.mk from the top-level makefile,
3198         so it needs the file names in this file to be relative to the top
3199         level, not relative to lib; plus it needs variable names to be
3200         rewritten.
3201         (slurp): Use the new function.
3202
3203         bootstrap: reformat for readability
3204         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
3205
3206 2010-10-08  Eric Blake  <eblake@redhat.com>
3207
3208         docs: update cygwin progress
3209         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
3210         1.7.7.
3211         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
3212         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
3213         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
3214         * doc/posix-functions/carg.texi (carg): Likewise.
3215         * doc/posix-functions/cargf.texi (cargf): Likewise.
3216         * doc/posix-functions/casin.texi (casin): Likewise.
3217         * doc/posix-functions/casinf.texi (casinf): Likewise.
3218         * doc/posix-functions/casinh.texi (casinh): Likewise.
3219         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
3220         * doc/posix-functions/catan.texi (catan): Likewise.
3221         * doc/posix-functions/catanf.texi (catanf): Likewise.
3222         * doc/posix-functions/catanh.texi (catanh): Likewise.
3223         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
3224         * doc/posix-functions/ccos.texi (ccos): Likewise.
3225         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
3226         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
3227         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
3228         * doc/posix-functions/cexp.texi (cexp): Likewise.
3229         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
3230         * doc/posix-functions/cimag.texi (cimag): Likewise.
3231         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
3232         * doc/posix-functions/clog.texi (clog): Likewise.
3233         * doc/posix-functions/clogf.texi (clogf): Likewise.
3234         * doc/posix-functions/conj.texi (conj): Likewise.
3235         * doc/posix-functions/conjf.texi (conjf): Likewise.
3236         * doc/posix-functions/cpow.texi (cpow): Likewise.
3237         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
3238         * doc/posix-functions/cproj.texi (cproj): Likewise.
3239         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
3240         * doc/posix-functions/creal.texi (creal): Likewise.
3241         * doc/posix-functions/crealf.texi (crealf): Likewise.
3242         * doc/posix-functions/csin.texi (csin): Likewise.
3243         * doc/posix-functions/csinf.texi (csinf): Likewise.
3244         * doc/posix-functions/csinh.texi (csinh): Likewise.
3245         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
3246         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
3247         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
3248         * doc/posix-functions/ctan.texi (ctan): Likewise.
3249         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
3250         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
3251         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
3252         * doc/posix-headers/complex.texi (complex.h): Likewise.
3253
3254 2010-10-07  Jim Meyering  <meyering@redhat.com>
3255
3256         parse-datetime: avoid compilation failure on OpenBSD 4.7
3257         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
3258         This works around a compilation failure on OpenBSD 4.7:
3259         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
3260
3261 2010-10-07  Eric Blake  <eblake@redhat.com>
3262
3263         docs: update cygwin progress
3264         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
3265         1.7.6.
3266         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
3267         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
3268         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
3269         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
3270         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
3271         Likewise.
3272         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
3273         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
3274         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
3275         Likewise.
3276         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
3277         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
3278         Likewise.
3279         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
3280         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
3281         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
3282         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
3283         Likewise.
3284         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
3285         Likewise.
3286         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
3287
3288         docs: update parse-datetime history
3289         * doc/parse-datetime.texi (Authors of parse_datetime): Better
3290         documentation of this function's history and alternatives.
3291
3292         cygwin: use more robust version check
3293         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
3294         exclude an eventual cygwin 1.9.1.
3295         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3297         (gl_FUNC_STRCASESTR): Likewise.
3298         Reported by Bruno Haible.
3299
3300 2010-10-06  Bruno Haible  <bruno@clisp.org>
3301
3302         string, sys_select: Avoid #including large headers unless necessary.
3303         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
3304         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
3305         OSF/1, BeOS, Haiku.
3306         Reported by Jim Meyering.
3307
3308 2010-10-05  Eric Blake  <eblake@redhat.com>
3309
3310         memmem, strstr, strcasestr: fix bug with long periodic needle
3311         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
3312         periodic needle having false positive.
3313         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
3314         and cygwin 1.7.7.
3315         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
3316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3317         (gl_FUNC_STRCASESTR): Likewise.
3318         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3319         * tests/test-memmem.c (main): Expose the bug.
3320         * tests/test-strcasestr.c (main): Likewise.
3321         * tests/test-strstr.c (main): Likewise.
3322         * tests/test-c-strcasestr.c (main): Likewise.
3323         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
3324         * doc/posix-functions/strstr.texi (strstr): Likewise.
3325         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3326         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
3327
3328 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3329
3330         parse-datetime: do some more renaming
3331         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
3332         parse_datetime, not get_date.  Mention the renaming.
3333         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
3334         in comments.
3335         * m4/bison.m4: Likewise.
3336
3337 2010-10-05  Eric Blake  <eblake@redhat.com>
3338
3339         parse-datetime: better name than get_date
3340         * NEWS: Reword the deprecation notice.
3341         * modules/get_date: Rename to modules/parse-datetime.
3342         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
3343         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
3344         * lib/get_date.y: Rename to lib/parse-datetime.y.
3345         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
3346         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
3347         * doc/getdate.texi: Provide fallback wrapper.
3348         * lib/getdate.h: Move guts, and wrap...
3349         * lib/parse-datetime.h: ...new file.
3350         * lib/parse-datetime.y (get_date): Rename...
3351         (parse_datetime): ...to this.
3352         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
3353         (gl_PARSE_DATETIME): ...to this.
3354         * doc/posix-functions/getdate.texi (get_date): Provide fallback
3355         documentation.
3356         * modules/getdate (Files): Provide fallback docs and header.
3357         (Notice, Depends-on): Update references.
3358         * tests/test-parse-datetime.c: Likewise.
3359         * DEPENDENCIES: Likewise.
3360         * MODULES.html.sh (Date and time <time.h>): Likewise.
3361         * doc/parse-datetime.texi (Date input formats)
3362         (Authors of parse_datetime): Likewise.
3363         * modules/parse-datetime (Files, configure.ac, Makefile.am)
3364         (Include): Likewise.
3365         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
3366         * gnulib-tool: Likewise.
3367         * m4/bison.m4 (gl_BISON): Likewise.
3368         Suggested by Bruno Haible.
3369
3370 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3371
3372         more ports to Solaris tr, which needs [] around ranges
3373         * gnulib-tool: Solaris tr needs [] around ranges.
3374         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3375         * tests/test-pipe-filter-gi1.c (main): Likewise.
3376         * tests/test-pipe-filter-ii1.c (main): Likewise.
3377
3378 2010-10-05  Eric Blake  <eblake@redhat.com>
3379
3380         bootstrap: fix Solaris regression
3381         * build-aux/bootstrap (check_versions): Solaris tr still needs []
3382         around ranges.
3383         Reported by Pádraig Brady.
3384
3385         bootstrap: work with pkg-config
3386         * build-aux/bootstrap (check_versions): Also transliterate - in
3387         prerequisite name.
3388         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
3389         prerequisites that were already found, to avoid confusion.
3390         Reported by Justin Clift.
3391
3392         faccessat: remove unused wrappers
3393         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
3394         presence of these wrappers dragged in -lgen on Solaris.
3395         Reported by Clemens Brogi; fix suggested by Paul Eggert.
3396
3397 2010-10-05  Jim Meyering  <meyering@redhat.com>
3398
3399         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
3400         * Makefile (sc_pragma_columns): New syntax-check rule.
3401
3402 2010-10-04  Bruno Haible  <bruno@clisp.org>
3403
3404         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
3405         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
3406         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
3407         Reported by Bruce Korb and Eric Blake.
3408
3409 2010-10-04  Bruno Haible  <bruno@clisp.org>
3410
3411         threadlib: Make option --with-libpth-prefix work.
3412         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
3413         use $LIBPTH, not just -lpth.
3414
3415 2010-10-04  Bruno Haible  <bruno@clisp.org>
3416
3417         Avoid line length limitation from HP NonStop system header files.
3418         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
3419         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
3420         * lib/ctype.in.h: Likewise.
3421         * lib/dirent.in.h: Likewise.
3422         * lib/errno.in.h: Likewise.
3423         * lib/fcntl.in.h: Likewise.
3424         * lib/float.in.h: Likewise.
3425         * lib/getopt.in.h: Likewise.
3426         * lib/iconv.in.h: Likewise.
3427         * lib/inttypes.in.h: Likewise.
3428         * lib/langinfo.in.h: Likewise.
3429         * lib/locale.in.h: Likewise.
3430         * lib/math.in.h: Likewise.
3431         * lib/netdb.in.h: Likewise.
3432         * lib/netinet_in.in.h: Likewise.
3433         * lib/poll.in.h: Likewise.
3434         * lib/pthread.in.h: Likewise.
3435         * lib/pty.in.h: Likewise.
3436         * lib/sched.in.h: Likewise.
3437         * lib/se-selinux.in.h: Likewise.
3438         * lib/search.in.h: Likewise.
3439         * lib/signal.in.h: Likewise.
3440         * lib/spawn.in.h: Likewise.
3441         * lib/stdarg.in.h: Likewise.
3442         * lib/stddef.in.h: Likewise.
3443         * lib/stdint.in.h: Likewise.
3444         * lib/stdio.in.h: Likewise.
3445         * lib/stdlib.in.h: Likewise.
3446         * lib/string.in.h: Likewise.
3447         * lib/strings.in.h: Likewise.
3448         * lib/sys_file.in.h: Likewise.
3449         * lib/sys_ioctl.in.h: Likewise.
3450         * lib/sys_select.in.h: Likewise.
3451         * lib/sys_socket.in.h: Likewise.
3452         * lib/sys_stat.in.h: Likewise.
3453         * lib/sys_time.in.h: Likewise.
3454         * lib/sys_times.in.h: Likewise.
3455         * lib/sys_utsname.in.h: Likewise.
3456         * lib/sys_wait.in.h: Likewise.
3457         * lib/sysexits.in.h: Likewise.
3458         * lib/termios.in.h: Likewise.
3459         * lib/time.in.h: Likewise.
3460         * lib/unistd.in.h: Likewise.
3461         * lib/wchar.in.h: Likewise.
3462         * lib/wctype.in.h: Likewise.
3463         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
3464         * modules/ctype (Makefile.am): Likewise.
3465         * modules/dirent (Makefile.am): Likewise.
3466         * modules/errno (Makefile.am): Likewise.
3467         * modules/fcntl-h (Makefile.am): Likewise.
3468         * modules/float (Makefile.am): Likewise.
3469         * modules/getopt-posix (Makefile.am): Likewise.
3470         * modules/iconv-h (Makefile.am): Likewise.
3471         * modules/inttypes (Makefile.am): Likewise.
3472         * modules/langinfo (Makefile.am): Likewise.
3473         * modules/locale (Makefile.am): Likewise.
3474         * modules/math (Makefile.am): Likewise.
3475         * modules/netdb (Makefile.am): Likewise.
3476         * modules/netinet_in (Makefile.am): Likewise.
3477         * modules/poll-h (Makefile.am): Likewise.
3478         * modules/pthread (Makefile.am): Likewise.
3479         * modules/pty (Makefile.am): Likewise.
3480         * modules/sched (Makefile.am): Likewise.
3481         * modules/search (Makefile.am): Likewise.
3482         * modules/selinux-h (Makefile.am): Likewise.
3483         * modules/signal (Makefile.am): Likewise.
3484         * modules/spawn (Makefile.am): Likewise.
3485         * modules/stdarg (Makefile.am): Likewise.
3486         * modules/stddef (Makefile.am): Likewise.
3487         * modules/stdint (Makefile.am): Likewise.
3488         * modules/stdio (Makefile.am): Likewise.
3489         * modules/stdlib (Makefile.am): Likewise.
3490         * modules/string (Makefile.am): Likewise.
3491         * modules/strings (Makefile.am): Likewise.
3492         * modules/sys_file (Makefile.am): Likewise.
3493         * modules/sys_ioctl (Makefile.am): Likewise.
3494         * modules/sys_select (Makefile.am): Likewise.
3495         * modules/sys_socket (Makefile.am): Likewise.
3496         * modules/sys_stat (Makefile.am): Likewise.
3497         * modules/sys_time (Makefile.am): Likewise.
3498         * modules/sys_times (Makefile.am): Likewise.
3499         * modules/sys_utsname (Makefile.am): Likewise.
3500         * modules/sys_wait (Makefile.am): Likewise.
3501         * modules/sysexits (Makefile.am): Likewise.
3502         * modules/termios (Makefile.am): Likewise.
3503         * modules/time (Makefile.am): Likewise.
3504         * modules/unistd (Makefile.am): Likewise.
3505         * modules/wchar (Makefile.am): Likewise.
3506         * modules/wctype (Makefile.am): Likewise.
3507
3508 2010-10-04  Bruno Haible  <bruno@clisp.org>
3509
3510         read-file tests: Avoid a test failure on NonStop Kernel.
3511         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
3512         a regular file.
3513         Reported by Joachim Schmitz <schmitz@hp.com>.
3514
3515 2010-10-03  Bruno Haible  <bruno@clisp.org>
3516
3517         gnulib-tool: Fixes for --create-testdir with --libtool.
3518         * gnulib-tool (func_get_automake_snippet): Don't augment
3519         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
3520         an executable.
3521         (func_create_testdir): Handle module 'alloca' like func_import.
3522         Reported by Bruce Korb <bruce.korb@gmail.com>.
3523
3524 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3525
3526         Avoid some lines longer than 80 characters.
3527         * lib/stdint.in.h: Break long comment lines.
3528         * lib/math.in.h: Likewise.
3529         (_GL_NUM_UINT_WORDS): New macro, for readability.
3530         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
3531         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
3532         * lib/stdlib.in.h: Likewise.
3533         * lib/spawn.in.h: Likewise.
3534         * lib/sys_socket.in.h: Update an URL.
3535         * lib/sys_stat.in.h: Break long line.
3536
3537 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
3538
3539         Improve pmccabe2html.
3540         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
3541         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
3542         when the sources change. Remove the line in the HTML about "Used
3543         ranges" (which implied that there might be other unused ranges),
3544         rename "Resume" to "Summary" (easier to understand for more users).
3545         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
3546         styles, and some unnecessary blank lines.
3547
3548 2010-10-03  Bruno Haible  <bruno@clisp.org>
3549             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3550
3551         acl: Add support for ACLs on NonStop Kernel.
3552         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
3553         Check whether the function aclsort() exists.
3554         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
3555         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
3556         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3557         (acl_nontrivial [HAVE_ACLSORT]: New function.
3558         (file_has_acl): Implement for NonStop Kernel.
3559         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3560         (qset_acl): Implement for NonStop Kernel.
3561         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
3562         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3563         (main): Implement for NonStop Kernel.
3564         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
3565         Kernel. Handle this flavor.
3566         * tests/test-set-mode-acl.sh: Likewise.
3567         * tests/test-copy-acl.sh: Likewise.
3568         * tests/test-copy-file.sh: Likewise.
3569
3570 2010-10-03  Bruno Haible  <bruno@clisp.org>
3571
3572         Info about ACLs on NonStop Kernel.
3573         * doc/acl-resources.txt: Add info about NonStop Kernel.
3574         References by Joachim Schmitz <schmitz@hp.com>.
3575
3576 2010-10-02  Bruno Haible  <bruno@clisp.org>
3577
3578         Define missing EDQUOT on NonStop Kernel.
3579         * lib/errno.in.h (EDQUOT): Assign a value if missing.
3580         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
3581         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
3582         missing.
3583         * doc/posix-headers/errno.texi: Mention the NSK bug.
3584         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
3585         Reported by Joachim Schmitz <schmitz@hp.com>.
3586
3587 2010-10-02  Bruno Haible  <bruno@clisp.org>
3588
3589         Update doc for POSIX:2008.
3590         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
3591         Update URL of POSIX specification.
3592
3593 2010-10-02  Bruno Haible  <bruno@clisp.org>
3594
3595         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
3596         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
3597         from gnulib, not from Automake.
3598
3599 2010-10-02  Bruno Haible  <bruno@clisp.org>
3600
3601         New module 'system-posix'.
3602         * modules/system-posix: New file.
3603         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
3604         module is present.
3605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
3606         GNULIB_SYSTEM_POSIX.
3607         * modules/stdlib (Depends-on): Remove sys_wait.
3608         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
3609         * doc/posix-functions/system.texi: Mention the new module.
3610         * doc/posix-headers/stdlib.texi: Likewise.
3611         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
3612         define test_sys_wait_macros to a no-op.
3613         Reported by Sam Steingold <sds@gnu.org>.
3614
3615 2010-09-30  Bruno Haible  <bruno@clisp.org>
3616
3617         More renaming from 'getdate' to 'get_date'.
3618         * doc/get_date.texi: Renamed from doc/getdate.texi.
3619         * modules/get_date (Files): Update.
3620         * MODULES.html.sh (Date and time <time.h>): Update.
3621         * DEPENDENCIES: Update.
3622         * gnulib-tool: Update comment.
3623         * m4/bison.m4 (gl_BISON): Likewise.
3624         * m4/get_date.m4 (gl_GET_DATE): Likewise.
3625
3626 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
3627
3628         bootstrap: support ACLOCAL_FLAGS during aclocal
3629         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
3630         can add additional -I dir for third-party .m4 files.
3631
3632 2010-09-30  Eric Blake  <eblake@redhat.com>
3633
3634         bootstrap: use glibtoolize on MacOS
3635         * build-aux/bootstrap (check_versions): Convert libtool into
3636         libtoolize.
3637         (tool search): Move libtool check earlier, and look for
3638         glibtoolize for MacOS.
3639         (gnulib_tool_options): Auto-add --libtool when appropriate.
3640         Reported by Justin Clift.
3641
3642         poll: fix typo that broke test on MacOS
3643         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
3644         Reported by Justin Clift.
3645
3646         getdate: rename to get_date
3647         Note: getdate.h is not renamed, to minimize client impact.
3648         * modules/getdate: Mark obsolete.  Move old contents...
3649         * modules/get_date: ...to new module name.
3650         * modules/getdate-tests: Move...
3651         * modules/get_date-tests: ...here.
3652         * m4/getdate.m4: Move...
3653         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
3654         * lib/getdate.y: Move...
3655         * lib/get_date.y: ...here.
3656         * tests/test-getdate.c: Move...
3657         * tests/test-get_date.c: ...here.
3658         * doc/posix-functions/getdate.texi (getdate): Update name.
3659         * NEWS: Mention the change.
3660
3661 2010-09-29  Bruno Haible  <bruno@clisp.org>
3662
3663         Separate the module 'waitpid' from the module 'sys_wait'.
3664         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
3665         present.
3666         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
3667         gl_MODULE_INDICATOR_FOR_TESTS.
3668         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
3669         * modules/sys_wait (Depends-on): Remove waitpid.
3670         (Makefile.am): Substitute GNULIB_WAITPID.
3671         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
3672         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
3673         signature only if the 'waitpid' module is present.
3674         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
3675         * NEWS: Mention the change.
3676         * modules/grantpt (Depends-on): Add waitpid.
3677         * modules/wait-process (Depends-on): Likewise.
3678
3679 2010-09-29  Bruno Haible  <bruno@clisp.org>
3680
3681         More tests for module 'sys_wait'.
3682         * modules/sys_wait-c++-tests: New file.
3683         * tests/test-sys_wait-c++.cc: New file.
3684         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
3685         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3686
3687 2010-09-29  Bruno Haible  <bruno@clisp.org>
3688
3689         New module 'waitpid'.
3690         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
3691         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
3692         Don't include <process.h>.
3693         (waitpid): Declare only, using modern idiom.
3694         * m4/waitpid.m4: New file.
3695         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
3696         * modules/waitpid: New file.
3697         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
3698         (Makefile.am): Update.
3699         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3700
3701 2010-09-28  Bruno Haible  <bruno@clisp.org>
3702
3703         poll: Assume ANSI C.
3704         * lib/poll.c (poll): Use an ANSI C declaration.
3705
3706 2010-09-28  Bruno Haible  <bruno@clisp.org>
3707
3708         poll-h: Create poll.h on all platforms.
3709         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
3710         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
3711         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
3712         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
3713         (gl_REPLACE_POLL_H): Don't set POLL_H.
3714         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
3715         * modules/poll-h (Depends-on): Add include_next.
3716         (Makefile.am): Create poll.h unconditionally. Substitute also
3717         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
3718
3719 2010-09-28  Bruno Haible  <bruno@clisp.org>
3720
3721         Tests for module 'poll-h'.
3722         * modules/poll-h-c++-tests: New file.
3723         * tests/test-poll-h-c++.cc: New file.
3724
3725         Tests for module 'poll-h'.
3726         * modules/poll-h-tests: New file.
3727         * tests/test-poll-h.c: New file.
3728
3729 2010-09-28  Bruno Haible  <bruno@clisp.org>
3730
3731         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
3732         * modules/poll-h (Depends-on): Add 'extensions'.
3733
3734 2010-09-28  Bruno Haible  <bruno@clisp.org>
3735
3736         New module 'poll-h'.
3737         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
3738         (poll): Use modern idiom.
3739         * modules/poll-h: New file.
3740         * modules/poll (Files): Remove lib/poll.in.h.
3741         (Depends-on): Add poll-h.
3742         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
3743         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
3744         * m4/poll_h.m4: New file.
3745         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
3746         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
3747         and invoke gl_REPLACE_POLL_H.
3748         * lib/poll.c: Use common idiom.
3749         * tests/test-poll.c: Likewise.
3750         * doc/posix-headers/poll.texi: Mention the poll-h module.
3751         Suggested by Eric Blake.
3752
3753 2010-09-26  Bruno Haible  <bruno@clisp.org>
3754
3755         sys_wait: Implement WSTOPSIG.
3756         * lib/sys_wait.in.h (WSTOPSIG): New macro.
3757         Reported by Simon Josefsson.
3758
3759 2010-09-26  Simon Josefsson  <simon@josefsson.org>
3760
3761         stdlib, sys_wait: Avoid compilation error on mingw.
3762         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
3763
3764 2010-09-26  Bruno Haible  <bruno@clisp.org>
3765
3766         stdlib tests: Avoid code duplication.
3767         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
3768         * modules/sys_wait-tests (Files): Likewise.
3769         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
3770         * tests/test-stdlib.c: Include test-sys_wait.h.
3771         (main): Invoke test_sys_wait_macros.
3772         * tests/test-sys_wait.c: Include test-sys_wait.h.
3773         (main): Invoke test_sys_wait_macros.
3774
3775 2010-09-25  Simon Josefsson  <simon@josefsson.org>
3776
3777         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
3778         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
3779         sure Windows sockets are working before calling getaddrinfo.
3780         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
3781         * doc/gnulib.texi (Windows sockets): Fix typo.
3782
3783 2010-09-25  Bruno Haible  <bruno@clisp.org>
3784
3785         Tests for module 'regex-quote'.
3786         * modules/regex-quote-tests: New file.
3787         * tests/test-regex-quote.c: New file.
3788
3789         New module 'regex-quote'.
3790         * lib/regex-quote.h: New file.
3791         * lib/regex-quote.c: New file.
3792         * modules/regex-quote: New file.
3793         Suggested by Reuben Thomas <rrt@sc3d.org>.
3794
3795 2010-09-24  Bruno Haible  <bruno@clisp.org>
3796
3797         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
3798         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
3799
3800 2010-09-23  Bruno Haible  <bruno@clisp.org>
3801
3802         setenv: Relax license.
3803         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
3804         Blake.
3805         Requested by Eric Blake.
3806
3807 2010-09-22  Bruno Haible  <bruno@clisp.org>
3808
3809         termios: Relax license.
3810         * modules/termios (License): Change to LGPLv2+.
3811         Requested by Eric Blake.
3812
3813 2010-09-22  Bruno Haible  <bruno@clisp.org>
3814
3815         threadlib: Allow the package to change the default to 'no'.
3816         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
3817         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
3818         Reported by Paul Eggert.
3819
3820 2010-09-22  Pádraig Brady  <P@draigbrady.com>
3821             Bruno Haible  <bruno@clisp.org>
3822
3823         Fix endless loop in mbmemcasecoll.
3824         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
3825         byte.
3826         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
3827
3828 2010-09-22  Bruno Haible  <bruno@clisp.org>
3829
3830         Tests for module 'memcoll'.
3831         * modules/memcoll-tests: New file.
3832         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
3833
3834         memcoll, xmemcoll: Clarify size vs. length.
3835         * modules/memcoll.c (memcoll0): Clarify specification.
3836         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
3837         passed to collate_error.
3838
3839 2010-09-22  Bruno Haible  <bruno@clisp.org>
3840
3841         Tests for module 'memcasecmp'.
3842         * modules/memcasecmp-tests: New file.
3843         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
3844
3845 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3846
3847         * lib/pthread.in.h: Add split double-inclusion guard, and include
3848         system <pthread.h> if there is one.  Use @@-style as in other
3849         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
3850         pthread.h doesn't.
3851         (pthread_mutexattr_destroy, pthread_mutexattr_init):
3852         (pthread_mutexattr_settype, pthread_mutex_trylock):
3853         New static inline functions, if there's no system <pthread.h>.
3854         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
3855         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
3856         Approximate with mutexes if the system lacks spinlocks, as in
3857         MacOS.
3858         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
3859         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
3860         @@-style.  Check for spinlocks separately.
3861         (gl_PTHREAD_DEFAULTS): New macro.
3862         * modules/pthread: Redo to use a more typical style for in.h files.
3863
3864 2010-09-21  Eric Blake  <eblake@redhat.com>
3865
3866         net_if: enhance tests
3867         * tests/test-net_if.c (main): Move signature checks earlier.
3868         Print failures to stderr.
3869         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
3870         Document the bug that we do not yet fix.
3871
3872 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
3873
3874         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
3875         about gnulib, not GSS.
3876
3877 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
3878
3879         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
3880         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
3881         for Emacs.
3882         * build-aux/pmccabe2html: Make Makefile.am example code more
3883         cut-and-paste friendly.
3884
3885 2010-09-21  Simon Josefsson  <simon@josefsson.org>
3886
3887         * tests/test-net_if.c: New file.
3888         * modules/net_if-tests: New file.
3889
3890 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3891
3892         pthread: add pthread_spin_destroy
3893         * lib/pthread.in.h (pthread_spin_destroy): New function.
3894
3895 2010-09-19  Bruno Haible  <bruno@clisp.org>
3896
3897         gnulib-tool: Fix --help output.
3898         * gnulib-tool (func_usage): Fix help message.
3899         Reported by Reuben Thomas <rrt@sc3d.org>.
3900
3901 2010-09-18  Jim Meyering  <meyering@redhat.com>
3902
3903         maint.mk: avoid unexpanded \n in two diagnostics
3904         * top/maint.mk (sc_prohibit_always_true_header_tests):
3905         Don't use a literal \n in a halt=... assignment.  It would not be
3906         expanded, and the two \n bytes would appear in the diagnostic output
3907         rather than the desired newline.  Use halt=$$(printf ... instead.
3908         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3909
3910 2010-09-18  Bruno Haible  <bruno@clisp.org>
3911
3912         netinet_in: Doc tweak.
3913         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
3914         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3915
3916 2010-09-18  Jim Meyering  <meyering@redhat.com>
3917
3918         init.sh: correct an outdated comment
3919         * tests/init.sh (create_exe_shims_):  s/function/alias/
3920
3921         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
3922         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
3923         a file named "*.exe" is removed between the glob expansion and the
3924         processing of that oddly named file.
3925
3926 2010-09-17  Eric Blake  <eblake@redhat.com>
3927
3928         mirbsd: add some more support
3929         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
3930         in BSD family.
3931         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
3932         devices as OpenBSD.
3933         * m4/host-os.m4 (mirbsd): Add MirBSD.
3934
3935         tests: fix unportable assumption on sys/wait.h
3936         * tests/test-sys_wait.c (main): Relax test.
3937         * tests/test-stdlib.c (main): Likewise.
3938
3939         init.sh: accomodate directory with no .exes
3940         * tests/init.sh: Accomodate directory containing only scripts.
3941
3942         tests: avoid compiler warning
3943         * tests/test-stdlib.c (main): Use the variable.
3944
3945         fdutimens, fdutimensat: update signature, again
3946         * lib/utimens.h (gl_futimens): Delete, and move signature...
3947         (fdutimens): ...here.
3948         (fdutimensat): Rearrange signature.
3949         (lutimensat): Rename variable for clarity.
3950         * lib/fdutimensat.c (fdutimensat): Update signature.
3951         * lib/utimens.c (fdutimens): Likewise.
3952         (gl_futimens): Delete.
3953         (utimens, lutimens): Update callers.
3954         * lib/futimens.c (futimens): Likewise.
3955         * tests/test-fdutimensat.c: Likewise.
3956         * tests/test-utimens.c: Likewise.
3957         * tests/test-futimens.h: Update comment.
3958         * NEWS: Mention this.
3959         Suggested by Paul Eggert.
3960
3961 2010-09-17  Bruno Haible  <bruno@clisp.org>
3962
3963         Take over the maintenance of some older macros from Autoconf.
3964         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
3965         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
3966         GNU Autoconf.
3967         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
3968         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
3969
3970 2010-09-17  Eric Blake  <eblake@redhat.com>
3971
3972         fdutimensat: drop atflag validation
3973         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
3974         with valid fd, to close a race scenario where futimens is
3975         unsupported and FILE was replaced by a symlink.
3976         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
3977         accordingly.
3978         Suggested by Paul Eggert.
3979
3980 2010-09-16  Bruno Haible  <bruno@clisp.org>
3981
3982         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
3983         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
3984
3985 2010-09-16  Bruno Haible  <bruno@clisp.org>
3986
3987         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
3988         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
3989         login_tty exists.
3990         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3991
3992 2010-09-16  Bruno Haible  <bruno@clisp.org>
3993
3994         login_tty: Make the replacement code work on BSD systems.
3995         * lib/login_tty.c: Include <sys/ioctl.h>.
3996         (login_tty): Use ioctl TIOCSCTTY when available.
3997         * modules/login_tty (Depends-on): Add sys_ioctl.
3998         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3999
4000 2010-09-16  Bruno Haible  <bruno@clisp.org>
4001
4002         login_tty: Stricter unit test.
4003         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4004         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4005         and tcgetsid() after login_tty.
4006         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4007
4008 2010-09-16  Bruno Haible  <bruno@clisp.org>
4009
4010         New module 'tcgetsid'.
4011         * lib/tcgetsid.c: New file.
4012         * m4/tcgetsid.m4: New file.
4013         * modules/tcgetsid: New file.
4014         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4015         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4016         GNULIB_TCGETSID, HAVE_TCGETSID.
4017         * lib/termios.in.h: Include <sys/types.h>.
4018         (tcgetsid): New declaration.
4019         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4020         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4021         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4022         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4023
4024 2010-09-16  Bruno Haible  <bruno@clisp.org>
4025
4026         Tests for module 'termios'.
4027         * modules/termios-c++-tests: New file.
4028         * modules/termios-tests: New file.
4029         * tests/test-termios-c++.cc: New file.
4030         * tests/test-termios.c: New file.
4031
4032         New module 'termios'.
4033         * modules/termios: New file.
4034         * lib/termios.in.h: New file.
4035         * m4/termios_h.m4: New file.
4036         * doc/posix-headers/termios.texi: Mention the new module.
4037
4038 2010-09-16  Eric Blake  <eblake@redhat.com>
4039
4040         fdutimensat: add an atflag parameter
4041         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4042         * lib/utimens.h (fdutimensat): Update prototype.
4043         * tests/test-fdutimensat.c: Adjust test to match.
4044         * NEWS: Document the change.
4045         Suggested by Paul Eggert.
4046
4047 2010-09-16  Bruno Haible  <bruno@clisp.org>
4048
4049         Fix typos in comments.
4050         * lib/striconveh.h: Fix typo in comment.
4051         * lib/login_tty.c (login_tty): Likewise.
4052
4053 2010-09-15  Bruno Haible  <bruno@clisp.org>
4054
4055         stdlib: clarify MirBSD WEXITSTATUS bug
4056         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
4057         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4058
4059 2010-09-15  Eric Blake  <eblake@redhat.com>
4060
4061         stdlib: work around MirBSD WEXITSTATUS bug
4062         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
4063         * modules/stdlib (Depends-on): Add sys_wait.
4064         * tests/test-sys_wait.c (main): Enhance test.
4065         * tests/test-stdlib.c (main): Likewise.
4066         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
4067
4068         docs: mention MacOS issue with WEXITSTATUS(constant)
4069         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
4070         issue.
4071         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4072
4073         strnlen: add tests
4074         * modules/strnlen-tests: New file.
4075         * tests/test-strnlen.c: Likewise.
4076
4077 2010-09-14  Bruno Haible  <bruno@clisp.org>
4078
4079         unistr/base: Avoid link errors when module 'libunistring' is also used.
4080         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
4081         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
4082         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
4083         Declare also when HAVE_LIBUNISTRING is set.
4084         Reported by Pádraig Brady <P@draigbrady.com>.
4085
4086 2010-09-14  Eric Blake  <eblake@redhat.com>
4087
4088         test-rawmemchr: make more robust
4089         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
4090         (Depends-on, configure.ac): Add needed prerequisites to use it.
4091         * modules/memchr-tests (Files, Depends-on, configure.ac):
4092         Likewise, to avoid implicit reliance on memchr module prereqs.
4093         * tests/test-memchr.c (main): Ensure proper masking.
4094         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
4095         reads.
4096
4097         memchr: detect glibc Alpha bug
4098         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
4099         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
4100         Alpha.
4101         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
4102         * tests/test-memchr.c (main): Enhance test.
4103         Reported by Nelson H. F. Beebe.
4104
4105 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4106
4107         fts, getcwd, glob: audit for dirfd returning -1
4108         * lib/fts.c (opendir): Remove #define; no longer used.
4109         (opendirat): New arg PDIR_FD.  All callers changed.
4110         (fts_build, _opendir2): Use new opendirat to avoid the need for
4111         dirfd, or for checking whether dirfd returns a negative value.
4112         Don't use opendir; always use openat followed by fdopendir.
4113         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
4114         it.
4115         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
4116         returns -1 here.
4117         * modules/fts (Depends-on): Remove dirfd.
4118         * modules/getcwd (Depends-on): Likewise.
4119
4120 2010-09-13  Eric Blake  <eblake@redhat.com>
4121
4122         float: fix broken MirBSD header
4123         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
4124         * doc/posix-headers/float.texi (float.h): Document it.
4125
4126 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4127
4128         fts: use O_NOFOLLOW to avoid race condition when opening a directory
4129         * lib/fts.c (opendirat): New arg extra_flags.
4130         (__opendir2): Use it to avoid following symlinks when opening
4131         a directory, if symlinks are not supposed to be followed.  See
4132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
4133
4134         fdopendir: preserve argument fd before returning
4135         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
4136         (fdopendir_with_dup, fd_clone_opendir): New static functions.
4137         (fdopendir): Use them, arranging for FD to be open to the same
4138         directory that it was when it started.  (It might be temporarily
4139         closed while fdopendir is running, so this not thread- or
4140         signal-safe.)  Be careful to do the right thing even when file
4141         descriptors are scarce and dup fails with errno == EMFILE.  See
4142         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
4143
4144 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
4145
4146         regex: Pass the system regex if its only problem is 32-bit regoff_t.
4147         * NEWS: Document change.
4148         * m4/regex.m4: Disable test for regoff_t size.
4149
4150 2010-09-13  Jim Meyering  <meyering@redhat.com>
4151
4152         fts: don't operate on an invalid file descriptor after failed dup
4153         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
4154         negative file descriptor.
4155
4156 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4157
4158         savedir: add streamsavedir, deprecate fdsavedir
4159         * NEWS: Mention deprecation of fdsavedir.
4160         * lib/savedir.c (streamsavedir): New extern function, whose name
4161         ends in "savedir" to be consistent with the others.  This differs
4162         from savedirstream in that it doesn't close its argument.  The
4163         next version of GNU tar will use this instead of fdsavedir, to
4164         avoid some race conditions and conserve file descriptors.
4165         (savedirstream): Reimplement as a wrapper around streamsavedir.
4166         (fdsavedir): Add a comment deprecating this function.  As far as
4167         I know, only GNU tar used it, and GNU tar doesn't need it any more.
4168         * lib/savedir.h (streamsavedir): New decl.
4169         (fdsavedir): Add a comment deprecating this.
4170
4171 2010-09-10  Bruno Haible  <bruno@clisp.org>
4172
4173         langinfo: Fix last commit.
4174         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
4175         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
4176         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4177
4178 2010-09-10  Bruno Haible  <bruno@clisp.org>
4179
4180         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
4181         * lib/progreloc.c (O_EXEC): Define fallback.
4182
4183 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4184
4185         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
4186         * NEWS: Document recent changes to fcntl-h.
4187         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
4188         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
4189         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
4190         Similarly for O_SEARCH; this last was already true, but not documented.
4191         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
4192         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
4193         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
4194         Likewise.
4195         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
4196         is zero, not whether it is defined.
4197         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
4198         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
4199         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
4200
4201 2010-09-10  Bruno Haible  <bruno@clisp.org>
4202
4203         langinfo, nl_langinfo: Fix for IRIX 5.3.
4204         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
4205         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
4206         HAVE_LANGINFO_YESEXPR.
4207         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
4208         HAVE_LANGINFO_YESEXPR.
4209         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
4210         HAVE_LANGINFO_T_FMT_AMPM is 0.
4211         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
4212         HAVE_LANGINFO_YESEXPR is 0.
4213         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
4214         NOEXPR.
4215         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
4216         * doc/posix-functions/nl_langinfo.texi: Likewise.
4217         Reported by Eric Blake.
4218
4219 2010-09-10  Bruno Haible  <bruno@clisp.org>
4220
4221         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
4222         * doc/glibc-functions/login_tty.texi: Mention the include file problem
4223         on FreeBSD 8.0 and OpenBSD 4.6.
4224         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
4225         * m4/pty_h.m4 (gl_PTY_H): Likewise.
4226         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
4227         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
4228         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
4229         ac_includes_default.
4230         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4231
4232 2010-09-09  Eric Blake  <eblake@redhat.com>
4233
4234         strsignal: work around NetBSD bug
4235         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
4236         * lib/string.in.h (includes): Likewise.
4237         * doc/posix-functions/strsignal.texi (strsignal): Document the
4238         bug.
4239         Reported by Nelson H. F. Beebe.
4240
4241         gnulib-tool: work with NetBSD /bin/sh
4242         * gnulib-tool (func_cache_var, func_cache_lookup_module)
4243         (func_get_description, func_get_comment, func_get_status)
4244         (func_get_notice, func_get_applicability, func_get_filelist)
4245         (func_get_dependencies, func_get_autoconf_early_snippet)
4246         (func_get_autoconf_snippet, func_get_automake_snippet)
4247         (func_get_include_directive, func_get_link_directive)
4248         (func_get_license, func_get_maintainer, func_import): Avoid
4249         shell syntax errors from parsing syntax extensions.
4250
4251 2010-09-09  Bruno Haible  <bruno@clisp.org>
4252
4253         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4254         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
4255         a reliable way to determine whether the 'alias' command works.
4256
4257 2010-09-08  Jim Meyering  <meyering@redhat.com>
4258
4259         init.sh: penalize a set-x-impaired shell; don't disqualify it
4260         * tests/init.sh: Too many shells corrupt application stderr when
4261         you set -x, so we can't afford to disqualify them, since at least
4262         on Irix-6.5, that would disqualify all bourne shells.
4263         Instead, use a two-pass approach.
4264         On the first pass, try to find a shell that meets the stricter
4265         condition that set -x does not corrupt stderr.
4266         If no shell meets the stricter condition, retest each candidate
4267         shell, but without that extra condition.  Finally, when
4268         VERBOSE=yes is requested and set -x might cause trouble, simply
4269         issue a warning and refrain from enabling debug output.
4270
4271 2010-09-08  Eric Blake  <eblake@redhat.com>
4272
4273         unsetenv: fix OpenBSD bug
4274         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
4275         * doc/posix-functions/unsetenv.texi (unsetenv): Update
4276         documentation.
4277         Reported by Jim Meyering.
4278
4279         strtod: work around IRIX 6.5 bug
4280         * lib/strtod.c (strtod): Reparse number on shorter string if
4281         exponent parse was invalid.
4282         * tests/test-strtod.c (main): Add check for "0x1p 2".
4283         Reported by Tom G. Christensen.
4284
4285         getopt: optimize previous patch
4286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
4287         empty variable.  Speed up awk script.
4288         Reported by Paolo Bonzini.
4289
4290 2010-09-08  Jim Meyering  <meyering@redhat.com>
4291
4292         test.sh: disqualify shells for which set -x corrupts stderr
4293         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
4294         and OpenBSD 4.7.  They make it so with "set -x", environment settings
4295         appear in stderr output.  For example, this command:
4296             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
4297         prints "P=1" on those two systems:
4298
4299 2010-09-08  Bruno Haible  <bruno@clisp.org>
4300
4301         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4302         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
4303         commands, because some shells ignore redirections when there is an
4304         error in the command lookup.
4305         Reported by Eric Blake.
4306
4307 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
4308
4309         * lib/regex.h: Fix a mention of `regex_compile' (should be
4310         `re_compile_pattern').
4311         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
4312         (re_set_registers): Correct name of parameter in comment.
4313
4314         * doc/regex.texi: Add documentation for missing syntax flags.
4315         Remove commented-out documentation of defunct syntax option
4316         RE_NO_EMPTY_ALTS.
4317         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
4318         Add documentation of re_set_registers.
4319         Document trick to re-use a pattern buffer by setting fastmap manually.
4320         Update documentation of struct re_pattern_buffer per public members.
4321         Uncomment documentation of equivalence class operators and
4322         collating symbol operators, since they are now implemented,
4323         Explain leftmost-longest matching in relation to alternatives.
4324         Tidy documentation of substring matching.
4325         Remove POSIX documentation, which is done better in
4326         glibc, and refer the reader there. Keep BSD API documentation, as
4327         that is not readily available elsewhere.
4328
4329 2010-09-07  Eric Blake  <eblake@redhat.com>
4330
4331         getopt: handle POSIXLY_CORRECT set but not exported
4332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
4333         export state of POSIXLY_CORRECT, due to bash set -o posix.
4334         Reported by Dustin J. Mitchell.
4335
4336 2010-09-05  Bruno Haible  <bruno@clisp.org>
4337
4338         gnulib-tool: Highlight the changed options.
4339         * gnulib-tool (func_usage): Display the --import, --add-import,
4340         --remove-import explanations in bold font.
4341
4342 2010-09-06  Karl Berry  <karl@gnu.org>
4343
4344         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
4345
4346 2010-09-05  Bruno Haible  <bruno@clisp.org>
4347
4348         uniwidth/width: Update comment.
4349         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
4350         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
4351
4352 2010-09-05  Bruno Haible  <bruno@clisp.org>
4353
4354         isinf, isnan: Relax license.
4355         * modules/isinf (License): Change from GPL to LGPL, with consent from
4356         Ben Pfaff.
4357         * modules/isnan (License): Likewise.
4358         Requested by Ludovic Courtès.
4359
4360 2010-09-04  Bruno Haible  <bruno@clisp.org>
4361
4362         gnulib-tool: Help migration from --import to --add-import or --update.
4363         * gnulib-tool: Emit a verbose error message when --import is used
4364         without any module name.
4365
4366 2010-09-04  Bruno Haible  <bruno@clisp.org>
4367
4368         Update doc about gnulib-tool.
4369         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
4370         'gnulib-tool --update' in more detail.
4371         Reported by Eric Blake.
4372
4373 2010-09-04  Bruno Haible  <bruno@clisp.org>
4374
4375         gnulib-tool: Change --import. New options --add/remove-import.
4376         * gnulib-tool: New options --add-import, --remove-import.
4377         (func_usage): Document them.
4378         (have_associative): Define always.
4379         (func_import): In import mode, don't merge the specified settings with
4380         the cached settings. Implement remove-import mode.
4381         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
4382         Explain when to use them versus --import.
4383         (Simple update): Use --add-import instead of --import.
4384         * NEWS: Mention the change.
4385
4386 2010-09-04  Bruno Haible  <bruno@clisp.org>
4387
4388         * doc/gnulib-tool.texi (Initial import): Update paragraph about
4389         separate gnulib.mk.
4390
4391 2010-09-04  Bruno Haible  <bruno@clisp.org>
4392
4393         gnulib-tool: Don't talk about CVS any more.
4394         * gnulib-tool (func_usage, func_import): Write "version control"
4395         instead of CVS.
4396
4397 2010-09-04  Jim Meyering  <meyering@redhat.com>
4398
4399         maint.mk: avoid obscure sc_copyright_check failure in coreutils
4400         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
4401         false positives (whose names may be ill-chosen) when searching
4402         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
4403         would cause a false-positive.
4404
4405         avoid coreutils "make distcheck" failure
4406         Coreutils tests with an absolute build directory name that contains
4407         a space.  Not quoting this directory name caused a failure.
4408         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
4409         * tests/test-vc-list-files-cvs.sh: Likewise.
4410
4411 2010-09-04  Bruno Haible  <bruno@clisp.org>
4412
4413         gnulib-tool: Avoid error when run in a package without Makefile.am.
4414         * gnulib-tool: When collecting the m4dirs in a package that does not
4415         have a Makefile.am, eliminate those directories that contain no
4416         gnulib-cache.m4. Fix expression that counts these directories.
4417
4418 2010-09-04  Bruno Haible  <bruno@clisp.org>
4419
4420         update-copyright test: Improve output when perl is missing or too old.
4421         * tests/test-update-copyright.sh: Move test of Perl version down after
4422         the test whether Perl exists. Provide an explanation relating Perl's
4423         error message to Automake's SKIP: message.
4424
4425 2010-09-04  Bruno Haible  <bruno@clisp.org>
4426
4427         Don't augment PATH in TESTS_ENVIRONMENT.
4428         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
4429         set abs_aux_dir instead of augmenting PATH.
4430         * modules/vc-list-files-tests (Makefile.am): Likewise.
4431         * tests/test-update-copyright.sh: Augment PATH here.
4432         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
4433         path_prepend_.
4434         * tests/test-vc-list-files-git.sh: Likewise.
4435
4436 2010-09-04  Jim Meyering  <meyering@redhat.com>
4437
4438         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
4439         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
4440
4441 2010-09-04  Bruno Haible  <bruno@clisp.org>
4442
4443         strdup: Fix compilation error in C++ mode.
4444         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
4445         the macro.
4446
4447 2010-09-04  Bruno Haible  <bruno@clisp.org>
4448
4449         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
4450         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
4451         macro into a function.
4452         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4453
4454 2010-09-04  Bruno Haible  <bruno@clisp.org>
4455
4456         Set PATH_SEPARATOR the same way autoconf does.
4457         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
4458         the value of PATH_SEPARATOR the same way autoconf-generated configure
4459         scripts do.
4460         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
4461         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
4462
4463 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4464
4465         Set PATH_SEPARATOR the same way autoconf does.
4466         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
4467         the same way autoconf-generated configure scripts do.
4468         * posix-modules: Likewise.
4469
4470 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
4471
4472         hash: fix safe_hasher const typo
4473         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
4474         const; otherwise, there is a type error later.
4475
4476 2010-09-02  Jim Meyering  <meyering@redhat.com>
4477
4478         test-update-copyright.sh: require perl 5.8.0
4479         * tests/test-update-copyright.sh: Require 5.8.0,
4480         which Tom G. Christensen has confirmed is adequate,
4481         while 5.6.1 is not.
4482
4483 2010-09-02  Eric Blake  <eblake@redhat.com>
4484
4485         tests: init.sh improvements for re-exec'ing with zsh
4486         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
4487         -vx through shell re-exec.
4488         Reported by Tom G. Christensen.
4489
4490         wctype: fix typo in previous commit
4491         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
4492         Reported by Ludovic Courtès.
4493
4494 2010-09-02  Jim Meyering  <meyering@redhat.com>
4495
4496         test-update-copyright.sh: skip test if Perl is too old
4497         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
4498         Reported by Tom G. Christensen.
4499
4500 2010-09-02  Bruno Haible  <bruno@clisp.org>
4501
4502         wctype: Avoid compilation error on IRIX 6.5.30.
4503         * lib/wctype.in.h (iswblank): Declare with a replacement if
4504         REPLACE_ISWBLANK is set.
4505         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
4506         declared. Set REPLACE_ISWBLANK.
4507         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
4508         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
4509         * doc/posix-headers/wctype.texi: Likewise.
4510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4511
4512 2010-09-01  Bruno Haible  <bruno@clisp.org>
4513
4514         New module 'socketlib'.
4515         * modules/socketlib: New file.
4516         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
4517         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
4518         * modules/sockets (Depends-on): Add socketlib.
4519         Suggested by Sam Steingold <sds@gnu.org>.
4520
4521 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4522
4523         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
4524
4525         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
4526         when one needs search access to a directory but not read access.
4527         On systems where it is available, it works in some cases where
4528         O_RDONLY does not, namely on directories that are searchable but
4529         not readable, and which need only to be searchable.  If O_SEARCH
4530         is not available, fall back to the traditional method of using
4531         O_RDONLY.
4532
4533         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
4534         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
4535         when opening a directory that needs only to be searchable.
4536         * lib/chdir-safer.c (chdir_no_follow): Likewise.
4537         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
4538         * lib/openat-proc.c (openat_proc_name): Likewise.
4539         * lib/openat.c (openat_needs_fchdir): Likewise.
4540         * lib/save-cwd.c (save_cwd): Likewise.
4541         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
4542
4543 2010-08-28  Bruno Haible  <bruno@clisp.org>
4544
4545         New module 'host-cpu-c-abi'.
4546         * modules/host-cpu-c-abi: New file.
4547         * m4/host-cpu-c-abi.m4: New file, based on part of
4548         clisp/src/m4/general.m4.
4549         Requested by Sam Steingold <sds@gnu.org>.
4550
4551 2010-08-31  Eric Blake  <eblake@redhat.com>
4552         and Jim Meyering  <meyering@redhat.com>
4553
4554         hash: factor, and guard against misbehaving hasher function
4555         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
4556         of table->hasher's return value.  Also protect against a hash value
4557         so large that adding it to table->bucket results in a NULL pointer.
4558         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
4559         Use it in place of open-coded check-and-abort.
4560
4561 2010-08-30  Bruno Haible  <bruno@clisp.org>
4562
4563         hash: silence spurious clang warning
4564         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
4565         Reported by Eric Blake.
4566
4567 2010-08-30  Eric Blake  <eblake@redhat.com>
4568
4569         strstr, memmem, strcasestr: avoid leaked shell message
4570         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
4571         FreeBSD.
4572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4573         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4574
4575         tests: silence clang warning
4576         * tests/test-malloca.c (do_allocation): Avoid dead store.
4577
4578 2010-08-29  Bruno Haible  <bruno@clisp.org>
4579
4580         gettext: Fix recent mistake.
4581         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
4582
4583 2010-08-29  Bruno Haible  <bruno@clisp.org>
4584
4585         selinux-h: Offer a --without-selinux option.
4586         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
4587         --without-selinux was specified, skip all tests and define
4588         HAVE_SELINUX_SELINUX_H to 0.
4589         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
4590         set LIB_SELINUX to empty.
4591         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
4592         gl_LIBSELINUX. If --without-selinux was specified, replace
4593         selinux/context.h.
4594         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
4595
4596 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4597             Bruno Haible  <bruno@clisp.org>
4598
4599         Make the module 'realloc-gnu' work again on AIX and OSF/1.
4600         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
4601         of HAVE_REALLOC.
4602         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
4603         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
4604         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
4605         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
4606
4607 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4608             Bruno Haible  <bruno@clisp.org>
4609
4610         Make the module 'calloc-gnu' work again on AIX and OSF/1.
4611         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
4612         HAVE_CALLOC.
4613         * lib/xmalloc.c: Update accordingly.
4614         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
4615         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
4616         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
4617
4618 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4619             Bruno Haible  <bruno@clisp.org>
4620
4621         Make the module 'malloc-gnu' work again on AIX and OSF/1.
4622         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
4623         HAVE_MALLOC.
4624         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
4625         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
4626         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
4627
4628 2010-08-29  Bruno Haible  <bruno@clisp.org>
4629
4630         Update modules list.
4631         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
4632         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
4633         (String handling <string.h>): Add astrxfrm.
4634         (File system functions): Add readlinkat.
4635
4636 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4637
4638         Tests for module 'realloc-gnu'.
4639         * modules/realloc-gnu-tests: New file.
4640         * tests/test-realloc-gnu.c: New file.
4641
4642         Tests for module 'calloc-gnu'.
4643         * modules/calloc-gnu-tests: New file.
4644         * tests/test-calloc-gnu.c: New file.
4645
4646         Tests for module 'malloc-gnu'.
4647         * modules/malloc-gnu-tests: New file.
4648         * tests/test-malloc-gnu.c: New file.
4649
4650 2010-08-28  Bruno Haible  <bruno@clisp.org>
4651
4652         Rename module 'realloc' -> 'realloc-gnu'.
4653         * modules/realloc-gnu: New file, copied from modules/realloc.
4654         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
4655         obsolete.
4656         * modules/mgetgroups (Depends-on): Update.
4657         * doc/posix-functions/realloc.texi: Update.
4658         * NEWS: Mention the change.
4659
4660         Rename module 'calloc' -> 'calloc-gnu'.
4661         * modules/calloc-gnu: New file, copied from modules/calloc.
4662         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
4663         obsolete.
4664         * doc/posix-functions/calloc.texi: Update.
4665         * NEWS: Mention the change.
4666
4667         Rename module 'malloc' -> 'malloc-gnu'.
4668         * modules/malloc-gnu: New file, copied from modules/malloc.
4669         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
4670         obsolete.
4671         * modules/argp (Depends-on): Update.
4672         * modules/regex (Depends-on): Update.
4673         * doc/posix-functions/malloc.texi: Update.
4674         * NEWS: Mention the change.
4675
4676 2010-08-28  Eric Blake  <eblake@redhat.com>
4677
4678         pread, pwrite: add missing dependency
4679         * modules/pread (Depends-on): Add extensions.
4680         * modules/pwrite (Depends-on): Likewise.
4681
4682 2010-08-28  Bruno Haible  <bruno@clisp.org>
4683
4684         unistr/u*-strchr: Fix tests dependencies.
4685         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
4686         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
4687         Reported by Ian Beckwith <ianb@erislabs.net>.
4688
4689 2010-08-28  Bruno Haible  <bruno@clisp.org>
4690
4691         read-file: Don't occupy too much unused memory.
4692         * lib/read-file.c (fread_file): Shrink the buffer at the end.
4693
4694 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
4695             Eric Blake  <eblake@redhat.com>
4696             Bruno Haible  <bruno@clisp.org>
4697
4698         read-file: Avoid memory reallocations with regular files.
4699         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
4700         (fread_file): With regular files, use the remaining length as the
4701         initial buffer size.  Check against overflow.
4702         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
4703         sys_stat.
4704
4705 2010-08-28  Bruno Haible  <bruno@clisp.org>
4706
4707         ftello: Relax license.
4708         * modules/ftello (License): Relax to LGPLv2+.
4709         Reported by Eric Blake.
4710
4711 2010-08-28  Bruno Haible  <bruno@clisp.org>
4712
4713         Avoid relocwrapper link errors due to gnulib replacement functions.
4714         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
4715         function.
4716         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4717
4718 2010-08-28  Bruno Haible  <bruno@clisp.org>
4719
4720         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
4721         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
4722         defined.
4723         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
4724         Suggested by Eric Blake.
4725
4726 2010-08-28  Bruno Haible  <bruno@clisp.org>
4727
4728         sys_socket, netdb: Ensure socklen_t gets defined.
4729         * modules/sys_socket (Depends-on): Add socklen.
4730         * modules/netdb (Depends-on): Likewise.
4731         * modules/getaddrinfo (Depends-on): Remove socklen.
4732         * modules/getsockopt (Depends-on): Likewise.
4733         * modules/setsockopt (Depends-on): Likewise.
4734         * tests/test-sys_socket.c: Check that socklen_t is defined.
4735         * tests/test-netdb.c: Likewise.
4736         * m4/socklen.m4: Update comments.
4737         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4738
4739 2010-08-27  Eric Blake  <eblake@redhat.com>
4740
4741         login_tty: add missing dependency
4742         * modules/login_tty (Depends-on): Add pty.
4743
4744 2010-08-26  Eric Blake  <eblake@redhat.com>
4745
4746         lib-symbol-versions: fix m4 quoting
4747         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
4748         format for AC_LINK_IFELSE.
4749
4750         glob: fix compile test
4751         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
4752
4753         btowc: fix missing file
4754         * modules/btowc (Files): Also ship locale-fr.m4.
4755
4756         lseek: fix link test
4757         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
4758         AC_LINK_IFELSE.
4759
4760         include_next: silence autoconf 2.68 warning
4761         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
4762         AC_COMPILE_IFELSE as special.
4763         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
4764         autoconf < 2.68.
4765
4766         acl: fix compilation test
4767         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
4768         AC_COMPILE_IFELSE.
4769
4770 2010-08-26  Bruno Haible  <bruno@clisp.org>
4771
4772         Modernize AC_TRY_RUN invocations.
4773         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
4774         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
4775         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
4776         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
4777         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
4778         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4779         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4780         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
4781         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4782         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4783         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
4784         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4785         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4786         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4787         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4788         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4789         gl_MBRLEN_NUL_RETVAL): Likewise.
4790         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4791         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
4792         Likewise.
4793         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4794         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4795         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4796         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4797         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
4798         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
4799         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
4800         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4801         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
4802         Likewise.
4803         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
4804         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
4805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4806         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
4807         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4808         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4809         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4810         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
4811         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4813
4814 2010-08-26  Bruno Haible  <bruno@clisp.org>
4815
4816         Modernize AC_TRY_LINK invocations.
4817         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
4818         AC_TRY_LINK.
4819         * m4/argp.m4 (gl_ARGP): Likewise.
4820         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4821         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4822         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
4823         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4824         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4825         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
4826         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4827         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4828         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4829         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
4830         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4831         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
4832         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
4833         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4834         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
4835         * m4/hostent.m4 (gl_HOSTENT): Likewise.
4836         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4837         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
4838         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
4839         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
4840         Likewise.
4841         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
4842         Likewise.
4843         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
4844         Likewise.
4845         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
4846         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
4847         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
4848         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4849         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4850         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4851         * m4/servent.m4 (gl_SERVENT): Likewise.
4852         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4853         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4854         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4855         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4856         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
4857         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4858         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4859         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4860         * modules/tsearch-tests (configure.ac): Likewise.
4861
4862 2010-08-26  Bruno Haible  <bruno@clisp.org>
4863
4864         Modernize AC_TRY_COMPILE invocations.
4865         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
4866         AC_TRY_COMPILE.
4867         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
4868         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
4869         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
4870         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
4871         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
4872         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
4873         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
4874         * m4/lock.m4 (gl_LOCK): Likewise.
4875         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
4876         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4877         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
4878         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4879         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
4880         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
4881         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
4882         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
4883         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
4884         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
4885         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
4886         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
4887         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
4888         extraneous semicolon.
4889
4890 2010-08-26  Jim Meyering  <meyering@redhat.com>
4891
4892         stat-time: relax license LGPL
4893         * modules/stat-time (License): Change from GPL to LGPL,
4894         with consent from all contributors, for use in libguile.
4895         Requested by Ludovic Courtès.
4896
4897 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
4898
4899         poll: return immediately on POLLHUP.
4900         * lib/poll.c (poll): Always set timeout before wait_timeout is
4901         computed.
4902
4903 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4904
4905         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
4906         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
4907         rmdir ("dir/.//"), unlinkat.
4908
4909 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4910
4911         stdbool: avoid spurious failure with modern xlc
4912         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4913
4914 2010-08-24  Bruno Haible  <bruno@clisp.org>
4915
4916         getloadavg: simplify code
4917         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
4918         gl_have_func. Update comments.
4919
4920 2010-08-24  Eric Blake  <eblake@redhat.com>
4921
4922         getloadavg: don't define SVR4 on cygwin
4923         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
4924         only define SVR4 when -lkvm is required.
4925         Reported by Yaakov Selkowitz.
4926
4927 2010-08-24  Bruno Haible  <bruno@clisp.org>
4928
4929         priv-set: fix comment
4930         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
4931
4932 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4933
4934         priv-set: fix comments
4935         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
4936         to match code, as suggested by David Bartley in:
4937         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
4938
4939 2010-08-23  Eric Blake  <eblake@redhat.com>
4940
4941         stdbool: avoid rejecting clang
4942         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4943         * tests/test-stdbool.c: Enable more tests if using the system
4944         <stdbool.h> instead of the gnulib replacement.
4945         (main): Move xlc bug test to a runtime test for all compilers.
4946         Reported by Anders Kaseorg.
4947
4948         argz: fix shell quoting issue
4949         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
4950         Reported by Charles Wilson.
4951
4952 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
4953             Erik Faye-Lund <kusmabite@gmail.com>
4954
4955         poll, select: handle ERROR_BROKEN_PIPE.
4956         * lib/poll.c (win32_compute_revents): Return POLLHUP when
4957         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4958         * lib/select.c (win32_compute_revents): Do not mark a pipe
4959         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4960
4961 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
4962
4963         fts: allow compilation with C++
4964         * lib/fts_.h: Specify extern "C" linkage with C++.
4965
4966 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4967
4968         Fix gnulib-tool sed script de-commentation for AIX sed.
4969         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
4970         sed.
4971
4972 2010-08-17  Eric Blake  <eblake@redhat.com>
4973
4974         test-stddef: test for (some) offsetof bugs
4975         * tests/test-stddef.c: Enhance test to ensure correct type of
4976         offsetof.
4977         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
4978         that we are not fixing at this time.
4979
4980 2010-08-15  Bruno Haible  <bruno@clisp.org>
4981
4982         stpncpy: Allow stpncpy to be defined as a macro.
4983         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
4984         if it's already correctly declared.
4985         * lib/string.in.h (stpncpy): Undefine before redefining.
4986         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
4987
4988 2010-08-14  Bruno Haible  <bruno@clisp.org>
4989
4990         Rename module 'memxfrm' to 'amemxfrm'.
4991         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
4992         (amemxfrm): Renamed from memxfrm.
4993         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
4994         (amemxfrm): Renamed from memxfrm.
4995         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
4996         * NEWS: Mention the change.
4997         * MODULES.html.sh (String handling <string.h>): Update.
4998         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
4999         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5000         * lib/unicase/u16-casexfrm.c: Likewise.
5001         * lib/unicase/u32-casexfrm.c: Likewise.
5002         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5003         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5004         * lib/uninorm/u16-normxfrm.c: Likewise.
5005         * lib/uninorm/u32-normxfrm.c: Likewise.
5006         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5007         memxfrm.
5008         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5009         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5010         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5011         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5012         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5013         Suggested by Paul Eggert.
5014
5015 2010-08-14  Bruno Haible  <bruno@clisp.org>
5016
5017         Tests for module 'astrxfrm'.
5018         * modules/astrxfrm-tests: New file.
5019         * tests/test-astrxfrm.c: New file.
5020
5021         New module 'astrxfrm'.
5022         * lib/astrxfrm.h: New file.
5023         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5024         * modules/astrxfrm: New file.
5025
5026 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5027
5028         regex: Tweak doc.
5029         * doc/regex.texi (Overview): Don't mention regex.c.
5030         (GNU Regular Expression Compiling): Likewise.
5031         (Match-end-of-line Operator): Mention 'not_eol'.
5032
5033 2010-08-14  Brian Gough  <bjg@gnu.org>
5034             Bruno Haible  <bruno@clisp.org>
5035
5036         git-merge-changelog: add doc relating to use with bzr and hg.
5037         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5038
5039 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5040
5041         pthread: fix pthread.h creation for srcdir != builddir
5042         * modules/pthread (Makefile.am): Fix the rule to work also in a
5043         non-srcdir build.
5044
5045 2010-08-13  Karl Berry  <karl@gnu.org>
5046
5047         * doc/regex.texi (Predefined Syntaxes): @smallexample.
5048         * doc/posix-*/*: force line break before @url of POSIX
5049         specifications.
5050         Suggested by Werner Lemberg.
5051
5052 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5053
5054         strtod: fix const diagnostic
5055         * lib/strtod.c (strtod): Don't assign const char * to char *,
5056         as this elicits a warning from GCC when warnings are enabled.
5057
5058 2010-08-10  Pádraig Brady <P@draigbrady.com>
5059         and Eric Blake  <eblake@redhat.com>
5060
5061         copy-acl: ignore ENOTSUP on HP-UX
5062         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
5063         so that it is available for HP-UX.
5064         * lib/copy-acl.c (qcopy_acl): Use it.
5065         Reported by Patrick M. Callahan.
5066
5067 2010-08-10  Eric Blake  <eblake@redhat.com>
5068
5069         open, chown: relax license
5070         * modules/open (License): Change to LGPLv2+, with consent by all
5071         authors, for use in augeas.
5072         * modules/chown (License): Likewise.
5073         * modules/lchown (Likewise): Likewise.
5074         Requested by Adam Stokes.
5075
5076 2010-08-09  Karl Berry  <karl@gnu.org>
5077
5078         * build-aux/ar-lib: new file, import from Automake.
5079         * config/srclist.txt: autocheck for updates.
5080
5081 2010-08-09  Eric Blake  <eblake@redhat.com>
5082
5083         readlinkat: adjust client modules
5084         * modules/areadlinkat (Depends-on): Use readlinkat, not
5085         symlinkat.
5086         * modules/areadlinkat-with-size (Depends-on): Likewise.
5087
5088         mknod: be more vocal about danger of running tests as root
5089         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
5090         root, since that is just asking for problems.
5091         Suggested by Bruno Haible, based on a report by Rainer Tammer.
5092
5093         readlinkat: split into its own module
5094         * modules/symlinkat: Split readlinkat...
5095         * modules/readlinkat: ...into separate module.
5096         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
5097         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
5098         * lib/symlinkat.c (readlinkat): Move...
5099         * lib/readlinkat.c: ...into new file.
5100         * modules/symlinkat-tests: Split readlinkat test...
5101         * modules/readlinkat-tests: ...into separate module.
5102         * tests/test-symlinkat.c: Split...
5103         * tests/test-readlinkat.c: ...into new file.
5104         * NEWS: Document the split.
5105         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5106         * lib/unistd.in.h (readlinkat): Likewise.
5107         Suggested by Bruno Haible.
5108
5109 2010-08-08  Bruno Haible  <bruno@clisp.org>
5110
5111         memxfrm: Speed up.
5112         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
5113         that usually only one call to strxfrm is necessary for each string
5114         part.
5115         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5116
5117 2010-08-07  Karl Berry  <karl@gnu.org>
5118
5119         * doc/posix-headers/limits.texi,
5120         * doc/posix-functions/malloc.texi,
5121         * doc/posix-functions/strsignal.texi: missing @item.
5122         * doc/ld-version-script.texi: spurious leading i.
5123         * doc/regex.texi (Interval Operators): no commas inside @var.
5124
5125 2010-08-01  Bruno Haible  <bruno@clisp.org>
5126
5127         Integrate the regex documentation.
5128         * doc/gnulib.texi: Define 'cn' index.
5129         (Regular expressions): New a chapter that includes regex.texi and
5130         regexprops-generic.texi.
5131         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
5132         syntax.
5133
5134         Whitespace cleanup.
5135         * doc/regex.texi: Remove trailing spaces.
5136
5137         Add regex documentation.
5138         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
5139         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
5140         Written by Kathy A. Hargreaves and Karl Berry.
5141
5142 2010-08-01  Bruno Haible  <bruno@clisp.org>
5143
5144         link: Update documentation.
5145         * doc/posix-functions/link.texi: Update regarding Solaris.
5146
5147 2010-07-31  Bruno Haible  <bruno@clisp.org>
5148
5149         Update modules list.
5150         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
5151         (String handling <string.h>): Add memcmp2, memxfrm.
5152         (Container data structures): Add xlist, xsublist, xoset.
5153         (Core language properties): Add alignof, unused-parameter.
5154         (Process control, Numeric conversion functions <stdlib.h>): Renamed
5155         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
5156         (Unibyte characters <ctype.h>): New section.
5157         (String handling <string.h>): New section.
5158         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
5159         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
5160         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
5161         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
5162         tan, tanh, tanl, y0, y1, yn.
5163         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
5164         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
5165         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
5166         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
5167         unlockpt, vdprintf, vdprintf-posix.
5168         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
5169         (File system functions): Add concat-filename, sys_file, sys_ioctl,
5170         xconcat-filename.
5171         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
5172         getdtablesize, pipe2, pipe2-safer.
5173         (Security): New section.
5174         (Networking functions): Add accept4.
5175         (Signal handling): Add sigpipe.
5176         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
5177         mbmemcasecoll.
5178         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
5179         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
5180         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
5181         pipe-filter-ii.
5182         (Misc): Add argp-version-etc, login_tty, parse-duration.
5183
5184 2010-07-31  Bruno Haible  <bruno@clisp.org>
5185
5186         Improve doc in MODULES.html.
5187         * modules/linkat (Description): Add the word "function".
5188         * modules/mkfifo (Description): Likewise.
5189         * modules/mknod (Description): Likewise.
5190         * modules/remove (Description): Likewise.
5191         * modules/renameat (Description): Likewise.
5192         * modules/stat (Description): Likewise.
5193         * modules/symlink (Description): Likewise.
5194         * modules/unlink (Description): Likewise.
5195
5196 2010-07-31  Bruno Haible  <bruno@clisp.org>
5197
5198         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
5199         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
5200         option --enable/disable-c++ instead of --enable/disable-cxx.
5201         * NEWS: Mention the change.
5202
5203 2010-07-31  Bruno Haible  <bruno@clisp.org>
5204
5205         readlink, areadlink: Relax test a bit.
5206         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
5207         alternative to ENOTDIR.
5208         * tests/test-areadlink.h (test_areadlink): Likewise.
5209         Reported by Rainer Tammer.
5210
5211 2010-07-31  Bruno Haible  <bruno@clisp.org>
5212
5213         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
5214         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
5215         character, perform the search using U_STRCHR.
5216         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
5217         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
5218         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
5219         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
5220         Suggested by Paolo Bonzini.
5221
5222 2010-07-31  Bruno Haible  <bruno@clisp.org>
5223
5224         unistr/u*-strstr: Fix dependencies.
5225         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
5226         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
5227         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
5228
5229 2010-07-31  Bruno Haible  <bruno@clisp.org>
5230
5231         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
5232         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
5233         the beginning of the loop.
5234         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
5235         cases in 'switch' statement.
5236
5237         unistr/u8-strchr: Fix several bugs.
5238         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
5239         the string. When not found, return NULL, not a pointer near the end.
5240
5241         More tests for unistr/u8-strchr.
5242         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
5243         that the function does not read past the first occurrence of the byte
5244         being searched.
5245         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
5246         * tests/unistr/test-u16-strchr.c (main): New function.
5247         * tests/unistr/test-u32-strchr.c (main): New function.
5248
5249 2010-07-31  Bruno Haible  <bruno@clisp.org>
5250
5251         posix-modules: Ignore backup files of documentation files.
5252         * posix-modules: grep only through files named *.texi.
5253
5254 2010-07-31  Bruno Haible  <bruno@clisp.org>
5255
5256         symlinkat: Fix documentation.
5257         * doc/posix-functions/readlinkat.texi: Fix module name.
5258
5259 2010-07-31  Bruno Haible  <bruno@clisp.org>
5260
5261         fchownat: Replace also when chown has the trailing slash bug.
5262         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
5263         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
5264         introduced on 2010-04-10.
5265         Reported by Rainer Tammer.
5266
5267 2010-07-31  Bruno Haible  <bruno@clisp.org>
5268
5269         linkat: Work around AIX 7.1 bug.
5270         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
5271         whether linkat handles trailing slash correctly. If not, replace linkat
5272         and define LINKAT_TRAILING_SLASH_BUG.
5273         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
5274         check whether (fd1,file1) points to a directory if file1 or file2 ends
5275         in a slash. Code taken from lib/link.c.
5276         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
5277         Reported by Rainer Tammer.
5278
5279 2010-07-31  Bruno Haible  <bruno@clisp.org>
5280
5281         Correctly determine whether pow is available in libc on AIX 7 with xlc.
5282         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
5283         This disables an xlc optimization that was causing wrong test results.
5284         Reported by Rainer Tammer.
5285
5286 2010-07-31  Bruno Haible  <bruno@clisp.org>
5287
5288         iconv: Work around AIX 6.1..7.1 bug.
5289         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
5290         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
5291         cross-compiling, guess no on all versions of AIX.
5292         Reported by Rainer Tammer.
5293
5294 2010-07-31  Bruno Haible  <bruno@clisp.org>
5295
5296         readlink: Relax test a bit.
5297         * tests/test-readlink.h (test_readlink): Allow different errno value
5298         when readlink is called with a file name that ends in / and refers to
5299         a file.
5300         Suggested by Eric Blake.
5301         Reported by Rainer Tammer.
5302
5303 2010-07-31  Bruno Haible  <bruno@clisp.org>
5304
5305         copysign: Does not require -lm on glibc systems.
5306         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
5307         gl_COMMON_DOUBLE_MATHFUNC.
5308         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
5309
5310 2010-07-31  Bruno Haible  <bruno@clisp.org>
5311
5312         duplocale: Work around AIX 7.1 bug.
5313         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
5314         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
5315         * lib/duplocale.c (rpl_duplocale): Update comment.
5316         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
5317         Reported by Rainer Tammer.
5318
5319 2010-07-30  Bruno Haible  <bruno@clisp.org>
5320
5321         dirfd: Avoid link error on AIX 7.1.
5322         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
5323         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
5324         exist, set REPLACE_DIRFD.
5325         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
5326         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
5327         * doc/posix-functions/dirfd.texi: Update.
5328         Reported by Rainer Tammer.
5329
5330 2010-07-30  Eric Blake  <eblake@redhat.com>
5331
5332         strtod: next round of AIX fixes
5333         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
5334         exponent.
5335         * tests/test-strtod.c (main): Enhance tests.
5336         * doc/posix-functions/strtod.texi (strtod): Document next bug.
5337         Reported by Rainer Tammer.
5338
5339         futimens: fix configure check
5340         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
5341         Reported by Bruno Haible.
5342
5343 2010-07-30  Bruno Haible  <bruno@clisp.org>
5344
5345         getline: Update regarding AIX.
5346         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
5347         Reported by Rainer Tammer.
5348
5349 2010-07-30  Bruno Haible  <bruno@clisp.org>
5350
5351         wcwidth: Drop replacement on AIX 7.
5352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
5353         AIX 7.
5354         Reported by Rainer Tammer.
5355
5356 2010-07-30  Bruno Haible  <bruno@clisp.org>
5357
5358         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
5359         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
5360         a 'char *'.
5361         Reported by Rainer Tammer.
5362
5363 2010-07-30  Bruno Haible  <bruno@clisp.org>
5364
5365         unlink: Update regarding AIX.
5366         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
5367         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
5368         Reported by Rainer Tammer.
5369
5370 2010-07-30  Bruno Haible  <bruno@clisp.org>
5371
5372         symlink: Update regarding AIX.
5373         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
5374         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
5375         Reported by Rainer Tammer.
5376
5377 2010-07-30  Bruno Haible  <bruno@clisp.org>
5378
5379         strndup: Update regarding AIX.
5380         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
5381         AIX 7.
5382         Reported by Rainer Tammer.
5383
5384 2010-07-30  Bruno Haible  <bruno@clisp.org>
5385
5386         stat: Update regarding AIX.
5387         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
5388         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
5389         Reported by Rainer Tammer.
5390
5391 2010-07-30  Bruno Haible  <bruno@clisp.org>
5392
5393         truncl: Fix autoconf test.
5394         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
5395         whether truncl works.
5396         Reported by Rainer Tammer.
5397
5398 2010-07-30  Bruno Haible  <bruno@clisp.org>
5399
5400         round: Update regarding AIX.
5401         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
5402         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
5403         Reported by Rainer Tammer.
5404
5405 2010-07-30  Bruno Haible  <bruno@clisp.org>
5406
5407         rename: Update regarding AIX.
5408         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
5409         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
5410         Reported by Rainer Tammer.
5411
5412 2010-07-30  Bruno Haible  <bruno@clisp.org>
5413
5414         printf.m4: Update regarding AIX.
5415         * m4/printf.m4: Update comments regarding AIX.
5416         Reported by Rainer Tammer.
5417
5418 2010-07-30  Bruno Haible  <bruno@clisp.org>
5419
5420         iconv: Update regarding AIX.
5421         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
5422         AIX 7.
5423         Reported by Rainer Tammer.
5424
5425 2010-07-30  Bruno Haible  <bruno@clisp.org>
5426
5427         getopt: Update regarding AIX.
5428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
5429         no on AIX.
5430         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
5431         Reported by Rainer Tammer.
5432
5433 2010-07-30  Bruno Haible  <bruno@clisp.org>
5434
5435         ldexpl; Update regarding AIX.
5436         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
5437         on AIX 7.
5438         Reported by Rainer Tammer.
5439
5440 2010-07-30  Bruno Haible  <bruno@clisp.org>
5441
5442         frexpl: Update regarding AIX.
5443         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
5444         on AIX 7.
5445         Reported by Rainer Tammer.
5446
5447 2010-07-30  Bruno Haible  <bruno@clisp.org>
5448
5449         open, fopen: Update regarding AIX.
5450         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
5451         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5452         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
5453         * doc/posix-functions/fopen.texi: Likewise.
5454         Reported by Rainer Tammer.
5455
5456 2010-07-30  Bruno Haible  <bruno@clisp.org>
5457
5458         chown: Update doc regarding AIX.
5459         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
5460         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
5461         Reported by Rainer Tammer.
5462
5463 2010-07-30  Eric Blake  <eblake@redhat.com>
5464
5465         strtod: fix bug in replacement function on AIX
5466         * lib/strtod.c (strtod): Special case broken "0x" parse in
5467         underlying strtod.
5468         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
5469         * doc/posix-functions/strtod.texi (strtod): Likewise.
5470         Reported by Rainer Tammer.
5471
5472 2010-07-30  Bruno Haible  <bruno@clisp.org>
5473
5474         mbrlen: Fix cross-compilation guess for AIX.
5475         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
5476         guess. Leftover from 2008-12-22.
5477
5478 2010-07-30  Bruno Haible  <bruno@clisp.org>
5479
5480         mbrtowc: Fix cross-compilation guess for AIX.
5481         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
5482         guess. Leftover from 2008-12-21.
5483
5484 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
5485
5486         init.sh: work around trap limitation of some shells
5487         * tests/init.sh (setup_): Move exit trap outside of shell function.
5488
5489 2010-07-29  Eric Blake  <eblake@redhat.com>
5490
5491         strtod: aid debugging
5492         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
5493         understanding why strtod is rejected.
5494
5495 2010-07-28  Bruno Haible  <bruno@clisp.org>
5496
5497         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
5498         * lib/unistr/u8-chr.c: Include <string.h>.
5499         * tests/unistr/test-u8-chr.c: Likewise.
5500         * tests/unistr/test-u16-chr.c: Likewise.
5501         * tests/unistr/test-u32-chr.c: Likewise.
5502         * tests/unistr/test-u8-strchr.c: Likewise.
5503         * tests/unistr/test-u16-strchr.c: Likewise.
5504         * tests/unistr/test-u32-strchr.c: Likewise.
5505         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
5506         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
5507         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
5508         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
5509
5510 2010-07-28  Bruno Haible  <bruno@clisp.org>
5511
5512         Use spaces for indentation, not tabs.
5513         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5514
5515 2010-07-27  Bruno Haible  <bruno@clisp.org>
5516
5517         mbspcasecmp: Fix function specification.
5518         * lib/string.in.h (mbspcasecmp): Fix specification comment.
5519         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
5520         Reported by Eric Blake <eblake@redhat.com>.
5521
5522 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
5523
5524         timespec: use cast and not conditional, as truncation isn't possible
5525         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
5526         instead of a conditional.  Comment about the situation in more detail.
5527         This undoes most of the 2009-10-29 patch.
5528
5529 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
5530
5531         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
5532         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
5533         * lib/unistr/u8-strchr.c: Likewise.
5534         * modules/unistr/u8-chr: Depend on memchr.
5535
5536         unistr/u*-strchr: add tests
5537         * modules/unistr/u8-strchr-tests: New file.
5538         * modules/unistr/u16-strchr-tests: New file.
5539         * modules/unistr/u32-strchr-tests: New file.
5540         * tests/unistr/test-strchr.h: New file.
5541         * tests/unistr/test-u8-strchr.c: New file.
5542         * tests/unistr/test-u16-strchr.c: New file.
5543         * tests/unistr/test-u32-strchr.c: New file.
5544
5545         unistr/u*-chr: test multibyte sequences more
5546         * tests/unistr/test-chr.h: Do complete testing of the characters in the
5547         test vector.
5548         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
5549         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
5550         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
5551
5552         unistr/u*-chr: test multibyte sequences
5553         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
5554
5555         unistr/u*-chr: prepare for multibyte tests
5556         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
5557         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
5558         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
5559         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
5560         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
5561         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
5562
5563 2010-07-18  Bruno Haible  <bruno@clisp.org>
5564
5565         unistr/u8-strchr: Optimize non-ASCII argument case.
5566         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
5567         because the first byte often matches anyway.
5568         Reported by Pádraig Brady <P@draigbrady.com>.
5569
5570 2010-07-15  Karl Berry  <karl@gnu.org>
5571
5572         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
5573
5574 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
5575
5576         getcwd: on Solaris, work better if ancestors are inaccessible
5577         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
5578         buffer and size, try again with a large buffer.  This works better
5579         on Solaris, since its getcwd succeeds even if the path to the root
5580         is inaccessible, and this is helpful in common cases such as .zfs
5581         hidden directories.  Problem reported by J Chapman Flack in
5582         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
5583         Use system getcwd if it's declared, not merely if it's partly
5584         working; use the partly-working test only to avoid needless effort
5585         if the system getcwd fails.
5586         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
5587         comment that was already obsolete and is now even more obsolete.
5588         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
5589         now might call strdup.
5590
5591 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
5592
5593         pthread: Add enough so that coreutils/src/sort.c compiles.
5594         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
5595         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
5596         gnulib. Include <sched.h> and <time.h>, as per POSIX.
5597         Include <sys/types.h>, in case it defines pthread_t.
5598         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
5599         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
5600         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
5601         (pthread_rwlockattr_t, pthread_spinlock_t):
5602         New typedefs, if HAVE_PTHREAD_T is not defined.
5603         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
5604         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
5605         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
5606         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
5607         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
5608         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
5609         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
5610         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
5611         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
5612         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
5613         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
5614         New macros.
5615         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
5616         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
5617         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
5618         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
5619         (pthread_spin_unlock): New dummy functions.
5620         (pthread_create): Return EAGAIN; don't set errno.
5621         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
5622         require AC_C_INLINE.
5623         * modules/pthread (Depends-on): Add sched, time.
5624         (pthread.h): Use AM_V_GEN.
5625
5626 2010-07-13  Bruno Haible  <bruno@clisp.org>
5627
5628         striconveh: Don't malloc memory if the result buffer is sufficient.
5629         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
5630         buffer if its size is sufficient.
5631         Reported by Ludovic Courtès <ludo@gnu.org>.
5632
5633 2010-07-13  Bruno Haible  <bruno@clisp.org>
5634
5635         strtod: Add safety check.
5636         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
5637
5638 2010-07-12  Bruno Haible  <bruno@clisp.org>
5639
5640         Unify tests that set gl_cv_func_ldexpl_no_libm.
5641         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
5642         gl_FUNC_LDEXPL.
5643         (gl_FUNC_LDEXPL): Invoke it.
5644         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5645
5646 2010-07-12  Bruno Haible  <bruno@clisp.org>
5647
5648         Unify tests that set gl_cv_func_ldexp_no_libm.
5649         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
5650         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
5651         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
5652         (configure.ac): Simply invoke gl_FUNC_LDEXP.
5653         * modules/strtod (Files): Add m4/ldexp.m4.
5654
5655 2010-07-12  Bruno Haible  <bruno@clisp.org>
5656
5657         Unify tests that set gl_cv_func_frexpl_no_libm.
5658         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
5659         gl_FUNC_FREXPL_NO_LIBM.
5660         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
5661         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5662
5663 2010-07-12  Bruno Haible  <bruno@clisp.org>
5664
5665         Unify tests that set gl_cv_func_frexp_no_libm.
5666         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
5667         gl_FUNC_FREXP_NO_LIBM.
5668         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
5669         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5670
5671 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
5672
5673         memcoll: clarify sizes versus lengths, document better, and tweak perf
5674         * lib/memcoll.c (strcoll_loop, memcoll0):
5675         Improve quality of descriptive comments.  Name variables
5676         consistently as to whether they are lengths (which do not include
5677         terminating null) versus sizes (which do).
5678         * lib/xmemcoll.c (xmemcoll0): Likewise.
5679         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
5680         returned when s1size == 0; this is easier to compile and saves
5681         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
5682
5683 2010-07-12  Bruno Haible  <bruno@clisp.org>
5684
5685         Tests for module '_Exit'.
5686         * modules/_Exit-tests: New file.
5687         * tests/test-_Exit.sh: New file.
5688         * tests/test-_Exit.c: New file.
5689
5690         New module '_Exit'.
5691         * lib/stdlib.in.h (__attribute__): New macro.
5692         (_Exit): New declaration.
5693         * lib/_Exit.c: New file.
5694         * m4/_Exit.m4: New file.
5695         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
5696         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
5697         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
5698         * modules/_Exit: New file.
5699         * tests/test-stdlib-c++.cc (_Exit): Check signature.
5700         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
5701
5702 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
5703
5704         strtod: make it more-accurate typically, and don't require libm
5705         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
5706         Include limits.h.  Don't include string.h.
5707         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
5708         (locale_isspace): New function, so that no casts are needed to
5709         check whether *s is a space.
5710         (ldexp): Provide an unused dummy if not available.
5711         (scale_radix_exp, parse_number, underlying_strtod): New functions.
5712         (strtod): Use them.  This implementation prefers to use the
5713         underlying strtod if available, falling back on our own code
5714         only to fix known bugs.  This is more likely to produce an
5715         accurate result.  Also, it avoids the use of libm functions.
5716         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
5717         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
5718         was absent, but it caused a test failure with coreutils.
5719         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
5720         with libm.
5721         * modules/strtod (Makefile.am, Link): libm is no longer needed.
5722         * modules/strtod-tests (Makefile.am): Likewise.
5723
5724 2010-07-11  Pádraig Brady  <P@draigBrady.com>
5725             Bruno Haible  <bruno@clisp.org>
5726
5727         unistr/u8-strchr: Optimize ASCII argument case.
5728         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
5729
5730 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5731
5732         (x)memcoll: minor tweaks
5733         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
5734         is after the type that it qualifies.
5735         (memcoll0): Likewise.
5736         * lib/memcoll.h (memcoll0): Likewise.
5737         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
5738         * lib/xmemcoll.h (xmemcoll0): Likewise.
5739         * lib/memcoll.c (memcoll0): Correct the comment.  This function
5740         differs from memcoll in that the NUL byte is part of the argument.
5741         Omit the abort-checks, as performance is a real issue here.  Plus,
5742         the checks were wrong anyway (an off-by-one error).  Omit local
5743         variable 'diff', as it's a bit clearer that way.
5744         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
5745         no longer needed.
5746
5747 2010-07-08  Chen Guo <chenguo4@yahoo.com>
5748
5749         (x)memcoll: speedup when input is known to be NUL delimited
5750         * lib/memcoll.c: Include stdlib.
5751         (memcoll0) New function.
5752         (strcoll_loop) New function, refactored for use in both memcoll
5753         and memcoll0.
5754         * lib/memcoll.h: Add prototype for memcoll0.
5755         * lib/xmemcoll.c: (xmemcoll0) New function.
5756         (collate_error) New function, refactored for use in both xmemcoll
5757         and xmemcoll0.
5758         * lib/xmemcoll.h: Add prototype for xmemcoll0.
5759         * m4/memcoll.m4: add inline invocation.
5760
5761 2010-07-06  Pádraig Brady  <P@draigBrady.com>
5762
5763         * build-aux/bootstrap: Remove any local translations
5764         from the translation project synchronization directory,
5765         so that local only translations are not distributed.
5766
5767 2010-07-04  Bruno Haible  <bruno@clisp.org>
5768
5769         fsusage: Clarify which code applies to which platforms.
5770         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
5771         platform.
5772         * lib/fsusage.c (get_fs_usage): Likewise.
5773
5774 2010-07-04  Bruno Haible  <bruno@clisp.org>
5775
5776         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
5777         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
5778         Reported by Martin Lambers <marlam@marlam.de>.
5779
5780 2010-07-04  Jim Meyering  <meyering@redhat.com>
5781
5782         hash: once again explicitly disallow insertion of NULL
5783         * lib/hash.c (hash_insert0): Reinstate just-removed test:
5784         inserting a NULL pointer cannot work with these functions.
5785         Add a comment with details.
5786         This reverts part of the 2010-07-01 commit, 5bef1a35
5787         "hash: extend module to deal with non-pointer keys".
5788
5789 2010-07-01  Bruno Haible  <bruno@clisp.org>
5790
5791         stdbool: Update doc.
5792         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
5793         Info from Christian Weisgerber <naddy@mips.inka.de>.
5794
5795 2010-07-01  Jim Meyering  <meyering@redhat.com>
5796
5797         hash: extend module to deal with non-pointer keys
5798         * lib/hash.c (hash_insert0): New interface, much like hash_insert
5799         but that allows insertion of non-pointer entries.
5800         Do not disallow an ENTRY value of NULL.
5801         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
5802         * lib/hash.h (hash_insert0): Declare.
5803
5804 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5805
5806         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
5807         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
5808         not present (i.e. with autoconf 2.59 and when using gettextize, not
5809         gnulib), require AC_GNU_SOURCE instead.
5810
5811 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
5812
5813         idpriv-drop: Fix tests.
5814         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
5815         not to the test-idpriv-droptemp program.
5816
5817 2010-06-29  Bruno Haible  <bruno@clisp.org>
5818
5819         string: Fix syntax error with g++ 2.96.
5820         * lib/string.in.h (__pure__): Remove definition.
5821         (_GL_ATTRIBUTE_PURE): New macro.
5822         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
5823         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
5824         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5825
5826 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
5827
5828         unitypes: Fix bug introduced on 2010-05-18.
5829         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
5830
5831 2010-06-22  Eric Blake  <eblake@redhat.com>
5832
5833         memmem: slight optimization
5834         * lib/str-two-way.h (critical_factorization): Update comments.
5835         Reduce work during factorization phase.
5836         Reported by Carlos Bueno <carlos@bueno.org>.
5837
5838 2010-06-21  Bruno Haible  <bruno@clisp.org>
5839
5840         Fix HAVE_CALLOC_POSIX misnomer.
5841         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
5842         !HAVE_CALLOC_POSIX.
5843         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
5844         HAVE_CALLOC_POSIX.
5845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
5846         instead of HAVE_CALLOC_POSIX.
5847         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
5848         HAVE_CALLOC_POSIX.
5849
5850         Use modern idiom for calloc() replacement.
5851         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
5852         AC_FUNC_CALLOC.
5853         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
5854         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
5855         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5856         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
5857         (gl_REPLACE_CALLOC): New macro.
5858
5859 2010-06-21  Bruno Haible  <bruno@clisp.org>
5860
5861         Fix HAVE_REALLOC_POSIX misnomer.
5862         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
5863         !HAVE_REALLOC_POSIX.
5864         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
5865         HAVE_REALLOC_POSIX.
5866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
5867         instead of HAVE_REALLOC_POSIX.
5868         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
5869         HAVE_REALLOC_POSIX.
5870
5871         Use modern idiom for realloc() replacement.
5872         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
5873         AC_FUNC_REALLOC.
5874         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
5875         Autoconf's AC_FUNC_REALLOC.
5876         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5877         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
5878         (gl_REPLACE_REALLOC): New macro.
5879         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
5880
5881 2010-06-21  Bruno Haible  <bruno@clisp.org>
5882
5883         Fix HAVE_MALLOC_POSIX misnomer.
5884         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
5885         !HAVE_MALLOC_POSIX.
5886         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
5887         HAVE_MALLOC_POSIX.
5888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
5889         instead of HAVE_MALLOC_POSIX.
5890         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
5891         HAVE_MALLOC_POSIX.
5892
5893         Use modern idiom for malloc() replacement.
5894         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
5895         AC_FUNC_MALLOC.
5896         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
5897         Autoconf's AC_FUNC_MALLOC.
5898         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5899         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
5900         (gl_REPLACE_MALLOC): New macro.
5901         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
5902
5903 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
5904
5905         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
5906         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
5907         This macro takes 3 arguments, not 4.
5908
5909 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
5910
5911         ipv6: fix detection under mingw
5912         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
5913         in6_addr.
5914
5915 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
5916
5917         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
5918         that strtod() works when cross-compiling to a glibc version known
5919         to work.
5920
5921 2010-06-15  Bruno Haible  <bruno@clisp.org>
5922
5923         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
5924
5925 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
5926
5927         select: Correct timeout.
5928         * lib/select.c (rpl_select): Compute wait_timeout correctly.
5929
5930 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5931
5932         git-version-gen: init shell var to avoid env var influence
5933         * build-aux/git-version-gen (v): Init shell var to empty.
5934
5935 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
5936
5937         priv-set: Don't assume that priv.h exists merely because getppriv does.
5938         See Jan Andersen's bug report about AIX 5L in
5939         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
5940         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
5941         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
5942         * lib/priv-set.h: Likewise.
5943         * tests/test-priv-set.c: Likewise.
5944
5945 2010-06-13  Bruno Haible  <bruno@clisp.org>
5946
5947         relocatable: Make it easier to test whether to install wrappers.
5948         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
5949         RELOCATABLE_VIA_WRAPPER.
5950
5951 2010-06-13  Bruno Haible  <bruno@clisp.org>
5952
5953         gnulib-tool: Display specified modules and dependencies differently.
5954         * gnulib-tool (func_show_module_list): New function.
5955         (func_import, func_create_testdir): Invoke it.
5956         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5957
5958 2010-06-13  Bruno Haible  <bruno@clisp.org>
5959
5960         gnulib-tool: Align code of func_import and func_create_testdir.
5961         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
5962         specified_modules.
5963
5964 2010-06-12  Jim Meyering  <meyering@redhat.com>
5965
5966         test-inttostr: avoid spurious failure on Solaris 9
5967         * tests/test-inttostr.c (main): Skip the test when snprintf fails
5968         to accept "%ju".  Reported by Bruno Haible.
5969
5970 2010-06-11  Jim Meyering  <meyering@redhat.com>
5971
5972         test-sys_socket: mark variables as used more readably
5973         * tests/test-sys_socket.c (main): Mark otherwise unused variables
5974         as "used" explicitly via (void) statement casts.  This is more
5975         readable than using them in an artificial return expression.
5976         Suggestion from Bruno Haible.
5977
5978 2010-06-11  Bruno Haible  <bruno@clisp.org>
5979
5980         Avoid some more warnings from "gcc -Wwrite-strings".
5981         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
5982         to 'const char *'.
5983         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
5984         * tests/test-c-strcasestr.c (main): Likewise.
5985         * tests/test-mbscasestr1.c (main): Likewise.
5986         * tests/test-mbscasestr2.c (main): Likewise.
5987         * tests/test-memmem.c (main): Likewise.
5988         * tests/test-strstr.c (main): Likewise.
5989         * tests/test-strcasestr.c (main): Likewise.
5990
5991 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5992
5993         init.sh: change framework_failure_ to fail with status 99, not 1
5994         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
5995         automake's parallel-tests rule that this is an unexpected failure,
5996         even if the test is listed in XFAIL_TESTS.
5997
5998 2010-06-11  Jim Meyering  <meyering@redhat.com>
5999
6000         test-inttostr: avoid warnings about 4-6KB literal strings
6001         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6002         Include "macros.h", for its definition of ASSERT.
6003         (CK): s/assert/ASSERT/
6004         * modules/inttostr-tests (Files): Add macros.h.
6005
6006         init.sh: don't use $ME_ or skip_ before they are defined
6007         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6008         their first uses.  Also hoist their companions: warn_, fail_,
6009         framework_failure_, $stderr_fileno.  Prompted by a patch from
6010         Stefano Lattarini.
6011
6012         test-sys_socket: avoid set-but-not-used warnings from gcc
6013         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6014         avoid warning about set-but-not-used variables.
6015
6016         test-xvasprintf: avoid 'const' discard warnings
6017         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6018         "const" when assigning from literal strings.
6019         (test_xasprintf): Add "void" in function argument list to placate
6020         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6021
6022         tests: avoid compilation warnings in argmatch and exclude tests...
6023         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6024         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6025         Since it always exits, declare with the "noreturn" attribute.
6026         * tests/test-argmatch.c: Likewise.
6027
6028         tests: avoid 'const' discard warnings in mbsstr tests
6029         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6030         * tests/test-mbsstr2.c (main): Likewise.
6031
6032         test-verify: avoid warning from gcc's -Wmissing-declarations
6033         * tests/test-verify.c (function): Declare to be static.
6034
6035         test-inttostr.c: include <string.h> for use of strcmp
6036         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6037
6038         test-linkat: avoid failed assertion on "other" architectures
6039         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6040         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6041         sparc: https://bugs.launchpad.net/bugs/591968
6042
6043 2010-06-11  Jim Meyering  <meyering@redhat.com>
6044
6045         printf.m4: avoid autoconf's "Expanded Before Required" warning
6046         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
6047         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
6048         autoconf warning.
6049
6050 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
6051
6052         Replacement header templates are now named with ".in", not "_".
6053         * doc/gnulib-intro.texi: Correct.
6054
6055 2010-06-10  Jim Meyering  <meyering@redhat.com>
6056
6057         inttostr-tests: depend on snprintf, not snprintf-posix
6058         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
6059         snprintf-posix, to avoid this aclocal failure:
6060           missing file gnulib-tests/vasnprintf.c
6061           configure.ac:45: error: expected source file, required through \
6062           AC_LIBSOURCES, not found
6063
6064 2010-06-10  Jim Meyering  <meyering@redhat.com>
6065
6066         inttostr: add a new function, inttostr, and tests
6067         The namesake function was not available.  The existence of the
6068         template file, inttostr.c makes its addition nontrivial.
6069         * lib/anytostr.c: Rename from inttostr.c.
6070         (anytostr): Rename from inttostr.
6071         * lib/inttostr.c: New file.
6072         * modules/inttostr (Files): Add anytostr.c.
6073         (Makefile.am): Set lib_SOURCES instead of ...
6074         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
6075         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
6076         * lib/offtostr.c: Likewise.
6077         * lib/uinttostr.c: Likewise.
6078         * lib/umaxtostr.c: Likewise.
6079         * modules/inttostr-tests: New file.
6080         * tests/test-inttostr.c: New file.  Test these functions.
6081
6082 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
6083             Bruno Haible  <bruno@clisp.org>
6084
6085         Add "Extending Gnulib" chapter to manual.
6086         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
6087         chapter.
6088         (Extending Gnulib): New chapter.
6089         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
6090         chapter.
6091
6092 2010-06-09  Bruno Haible  <bruno@clisp.org>
6093
6094         Avoid relocwrapper link errors due to gnulib replacement functions.
6095         * lib/areadlink.c: Use the system's malloc, realloc functions.
6096         (areadlink): Set errno to ENOMEM explicitly.
6097         * modules/areadlink (Depends-on): Remove malloc-posix.
6098         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6099
6100 2010-06-09  Bruno Haible  <bruno@clisp.org>
6101
6102         Avoid relocwrapper link errors due to gnulib replacement functions.
6103         * lib/canonicalize-lgpl.c: Use the system's malloc function.
6104         * lib/malloca.c: Likewise.
6105         * lib/relocatable.c: Likewise.
6106         * lib/progreloc.c: Use the system's malloc, sprintf functions.
6107         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
6108         * lib/setenv.c: Use the system's malloc, realloc functions.
6109         * lib/strerror.c: Use the system's sprintf function.
6110         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6111
6112 2010-06-04  Bruno Haible  <bruno@clisp.org>
6113
6114         Prefer documented low-level autoconf macro names.
6115         * m4/lib-link.m4: Use m4_translit instead of translit.
6116         * m4/environ.m4: Likewise.
6117         * m4/mathfunc.m4: Likewise.
6118         * m4/onceonly.m4: Likewise.
6119         * m4/stdint.m4: Likewise.
6120         Suggested by Eric Blake.
6121
6122 2010-06-04  Martin Lambers  <marlam@marlam.de>
6123             Bruno Haible  <bruno@clisp.org>
6124
6125         havelib: Allow library names with '+' characters.
6126         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6127         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
6128
6129 2010-06-09  Bruno Haible  <bruno@clisp.org>
6130
6131         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
6132         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
6133         realloc failed.
6134
6135 2010-06-08  Peter Simons  <simons@cryp.to>
6136
6137         maint.mk: make the news-check rule more configurable
6138         * top/maint.mk (news-check-lines-spec) New variable.
6139         (news-check): Use "sed -n 1,10p" in place of "head".
6140
6141 2010-06-07  Jim Meyering  <meyering@redhat.com>
6142
6143         do-release-commit-and-tag: fix typo in --help
6144         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
6145
6146         regex: avoid new dead-code warning with gcc-4.6.0
6147         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
6148         if-block containing a while-loop.  It's been unused for at least
6149         5 years.
6150
6151 2010-06-05  Bruno Haible  <bruno@clisp.org>
6152
6153         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
6154         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
6155
6156 2010-06-04  Bruno Haible  <bruno@clisp.org>
6157
6158         Update to GNU gettext 0.18.1.
6159         * modules/gettext (configure.ac): Require gettext infrastructure from
6160         version 0.18.1.
6161
6162 2010-06-03  Bruno Haible  <bruno@clisp.org>
6163
6164         Don't use AC_LIBOBJ with file names in subdirectories.
6165         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
6166         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
6167         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
6168         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
6169         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
6170         gl_LIBUNISTRING_LIBSOURCE.
6171         (Makefile.am): Augment lib_SOURCES here, conditionally.
6172         * NEWS: Drop requirement for Automake option 'subdir-objects'.
6173
6174 2010-06-03  Bruno Haible  <bruno@clisp.org>
6175
6176         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
6177         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
6178         expansion does not end with a newline.
6179         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
6180         unnecessary newline.
6181
6182 2010-06-03  Bruno Haible  <bruno@clisp.org>
6183
6184         Reduce dependencies.
6185         * tests/test-quotearg.h: New file, extracted from
6186         tests/test-quotearg.c.
6187         * tests/test-quotearg-simple.c: New file, extracted from
6188         tests/test-quotearg.c.
6189         * tests/test-quotearg.c: Don't include <ctype.h>.
6190         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
6191         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
6192         use_quote_double_quotes, use_quotearg_colon): Moved to
6193         tests/test-quotearg.h.
6194         (results_g, flag_results, custom_quotes, custom_results): Moved
6195         to tests/test-quotearg-simple.c.
6196         (main): Moved the part that does not depend on gettext to
6197         tests/test-quotearg-simple.c. Return 77 if the test cannot be
6198         performed.
6199         * modules/quotearg-simple: New file.
6200         * modules/quotearg-simple-tests: New file.
6201         * modules/quotearg (Depends-on): Add quotearg-simple.
6202         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
6203         (Files): Add tests/test-quotearg.h.
6204         Reported by Paolo Bonzini.
6205
6206 2010-06-03  Bruno Haible  <bruno@clisp.org>
6207
6208         Reduce dependencies.
6209         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
6210
6211 2010-06-03  Bruno Haible  <bruno@clisp.org>
6212
6213         time: Undefine more broken macros.
6214         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
6215         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
6216         Reported by Eric Blake.
6217
6218 2010-06-03  Bruno Haible  <bruno@clisp.org>
6219
6220         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
6221         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
6222         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
6223         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
6224         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
6225         Reported by Ludovic Courtès <ludo@gnu.org>.
6226
6227 2010-06-02  Eric Blake  <eblake@redhat.com>
6228
6229         time: work with mingw + pthreads-win32 library
6230         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
6231         if timespec is defined only in pthread.h.
6232         * modules/time (Makefile.am): Substitute it.
6233         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
6234         <pthread.h>, when needed.
6235         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
6236         from the library.
6237
6238 2010-05-31  Bruno Haible  <bruno@clisp.org>
6239
6240         Avoid expanding two macros in the wrong order.
6241         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
6242         gl_LIBUNISTRING if it is defined.
6243         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
6244         autoconf >= 2.64.
6245         Reported by Ludovic Courtès <ludo@gnu.org>.
6246
6247 2010-05-27  Jim Meyering  <meyering@redhat.com>
6248
6249         maint.mk: also prohibit "#undef" of always-defined symbols
6250         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
6251         Allow more than one space before the symbol name.
6252         (sc_prohibit_always-defined_macros): Use grep's -E, now that
6253         the regexp uses alternation.
6254
6255 2010-05-26  Eric Blake  <eblake@redhat.com>
6256
6257         maint.mk: avoid echo -e
6258         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
6259         Convert all uses of echo -* to printf.
6260         Reported by Matthias Bolte.
6261
6262 2010-05-25  Bruno Haible  <bruno@clisp.org>
6263
6264         Update to GNU gettext 0.18, part 2.
6265         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
6266         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
6267
6268 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6269
6270         Add missing include in test-pwrite.c.
6271         * tests/test-pwrite.c: Include string.h, for strcmp.
6272
6273 2010-05-24  Bruno Haible  <bruno@clisp.org>
6274
6275         * NEWS: Mention requirement for Automake option 'subdir-objects'.
6276
6277 2010-05-24  Bruno Haible  <bruno@clisp.org>
6278
6279         Don't use conversion with transliteration in u{8,16,32}_strcoll.
6280         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
6281         iconveh_error argument.
6282         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
6283         U_STRCONV_TO_LOCALE.
6284         * lib/unistr/u16-strcoll.c: Likewise.
6285         * lib/unistr/u32-strcoll.c: Likewise.
6286         * modules/unistr/u8-strcoll (Depends-on): Add
6287         uniconv/u8-strconv-to-enc, localcharset. Remove
6288         uniconv/u8-strconv-to-locale.
6289         (configure.ac): Bump version number.
6290         * modules/unistr/u16-strcoll (Depends-on): Add
6291         uniconv/u16-strconv-to-enc, localcharset. Remove
6292         uniconv/u16-strconv-to-locale.
6293         (configure.ac): Bump version number.
6294         * modules/unistr/u32-strcoll (Depends-on): Add
6295         uniconv/u32-strconv-to-enc, localcharset. Remove
6296         uniconv/u32-strconv-to-locale.
6297         (configure.ac): Bump version number.
6298
6299 2010-05-24  Bruno Haible  <bruno@clisp.org>
6300
6301         Avoid a test failure on NetBSD 5.0.
6302         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
6303         an iconv() bug.
6304
6305 2010-05-24  Bruno Haible  <bruno@clisp.org>
6306
6307         Adjust #include directive style.
6308         * modules/regex (Includes): Recommend to write <regex.h>.
6309
6310 2010-05-24  Bruno Haible  <bruno@clisp.org>
6311
6312         regex: Don't require alloca.
6313         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
6314         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
6315         only inside if (0).
6316
6317 2010-05-23  Jim Meyering  <meyering@redhat.com>
6318
6319         test-renameat.c: include <sys/stat.h>
6320         * tests/test-renameat.c: Include <sys/stat.h>; required for
6321         definition of S_IS* macros.
6322
6323 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
6324
6325         Update maintainer documentation for 'relocatable-prog' module.
6326         * doc/relocatable-maint.texi: Update.
6327         Comments by Bruno Haible.
6328
6329 2010-05-23  Bruno Haible  <bruno@clisp.org>
6330
6331         git-merge-changelog: Enable --split-merged-entry by default.
6332         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
6333         (usage): Don't mention this option any more.
6334         Reported by Ralf Wildenhues.
6335
6336 2010-05-23  Jim Meyering  <meyering@redhat.com>
6337
6338         test-pwrite: do not leave behind a test file named "out"
6339         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
6340         The trivial-looking use of init.sh is really necessary.
6341         It ensures that the temporary file, "out", is created in
6342         a temporary directory, and removed upon termination.
6343         * tests/test-pwrite.sh: Re-add file.
6344         * modules/pwrite-tests: Reference it.
6345
6346 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6347
6348         Fix output redirection buglet in init.sh.
6349         * tests/init.sh: Fix redirection of stderr.
6350
6351 2010-05-20  Simon Josefsson  <simon@josefsson.org>
6352
6353         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
6354
6355 2010-05-17  Simon Josefsson  <simon@josefsson.org>
6356
6357         * modules/valgrind-tests: New file.
6358         * m4/valgrind-tests.m4: New file.
6359         * doc/valgrind-tests.texi: New file.
6360         * doc/gnulib.texi (Running self-tests under valgrind): New
6361         section.
6362
6363 2010-05-19  Bruno Haible  <bruno@clisp.org>
6364
6365         Clean up dead code in recent commit.
6366         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
6367         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
6368         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
6369         Suggested by Paolo Bonzini.
6370
6371 2010-05-19  Bruno Haible  <bruno@clisp.org>
6372
6373         Avoid valgrind error reports from libunistring.
6374         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
6375         * modules/libunistring (Files): Add it.
6376         * modules/libunistring-optional (Files): Likewise.
6377
6378 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
6379             Bruno Haible  <bruno@clisp.org>
6380
6381         New module 'libunistring-optional'.
6382         * modules/libunistring-optional: New file.
6383         * m4/libunistring-base.m4: New file.
6384         * m4/libunistring-optional.m4: New file.
6385         * lib/unicase.in.h: Renamed from lib/unicase.h.
6386         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
6387         * lib/unictype.in.h: Renamed from lib/unictype.h.
6388         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
6389         * lib/uniname.in.h: Renamed from lib/uniname.h.
6390         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
6391         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
6392         * lib/unistr.in.h: Renamed from lib/unistr.h.
6393         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
6394         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
6395         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
6396         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
6397         gl_LIBUNISTRING. If the library was found, determine the installed
6398         version and set LIBUNISTRING_VERSION.
6399         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
6400         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
6401         handle a configuration option --with-included-libunistring.
6402         * modules/libunistring (Files): Add m4/absolute-header.m4.
6403         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
6404         Add m4/libunistring-base.m4.
6405         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6406         (Makefile.am): Build unicase.h from unicase.in.h.
6407         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
6408         Add m4/libunistring-base.m4.
6409         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6410         (Makefile.am): Build uniconv.h from uniconv.in.h.
6411         * modules/unictype/base (Files): Use unictype.in.h instead of
6412         unictype.h. Add m4/libunistring-base.m4.
6413         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6414         (Makefile.am): Build unictype.h from unictype.in.h.
6415         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
6416         Add m4/libunistring-base.m4.
6417         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6418         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
6419         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
6420         Add m4/libunistring-base.m4.
6421         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6422         (Makefile.am): Build uniname.h from uniname.in.h.
6423         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
6424         Add m4/libunistring-base.m4.
6425         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6426         (Makefile.am): Build uninorm.h from uninorm.in.h.
6427         * modules/unistdio/base (Files): Use unistdio.in.h instead of
6428         unistdio.h. Add m4/libunistring-base.m4.
6429         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6430         (Makefile.am): Build unistdio.h from unistdio.in.h.
6431         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
6432         Add m4/libunistring-base.m4.
6433         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6434         (Makefile.am): Build unistr.h from unistr.in.h.
6435         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
6436         Add m4/libunistring-base.m4.
6437         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6438         (Makefile.am): Build unitypes.h from unitypes.in.h.
6439         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
6440         Add m4/libunistring-base.m4.
6441         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6442         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
6443         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
6444         uniwidth.h. Add m4/libunistring-base.m4.
6445         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6446         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
6447         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
6448         instead of augmenting lib_SOURCES.
6449         * modules/unicase/empty-suffix-context: Likewise.
6450         * modules/unicase/locale-language: Likewise.
6451         * modules/unicase/tolower: Likewise.
6452         * modules/unicase/totitle: Likewise.
6453         * modules/unicase/toupper: Likewise.
6454         * modules/unicase/u8-casecmp: Likewise.
6455         * modules/unicase/u8-casecoll: Likewise.
6456         * modules/unicase/u8-casefold: Likewise.
6457         * modules/unicase/u8-casexfrm: Likewise.
6458         * modules/unicase/u8-ct-casefold: Likewise.
6459         * modules/unicase/u8-ct-tolower: Likewise.
6460         * modules/unicase/u8-ct-totitle: Likewise.
6461         * modules/unicase/u8-ct-toupper: Likewise.
6462         * modules/unicase/u8-is-cased: Likewise.
6463         * modules/unicase/u8-is-casefolded: Likewise.
6464         * modules/unicase/u8-is-lowercase: Likewise.
6465         * modules/unicase/u8-is-titlecase: Likewise.
6466         * modules/unicase/u8-is-uppercase: Likewise.
6467         * modules/unicase/u8-prefix-context: Likewise.
6468         * modules/unicase/u8-suffix-context: Likewise.
6469         * modules/unicase/u8-tolower: Likewise.
6470         * modules/unicase/u8-totitle: Likewise.
6471         * modules/unicase/u8-toupper: Likewise.
6472         * modules/unicase/u16-casecmp: Likewise.
6473         * modules/unicase/u16-casecoll: Likewise.
6474         * modules/unicase/u16-casefold: Likewise.
6475         * modules/unicase/u16-casexfrm: Likewise.
6476         * modules/unicase/u16-ct-casefold: Likewise.
6477         * modules/unicase/u16-ct-tolower: Likewise.
6478         * modules/unicase/u16-ct-totitle: Likewise.
6479         * modules/unicase/u16-ct-toupper: Likewise.
6480         * modules/unicase/u16-is-cased: Likewise.
6481         * modules/unicase/u16-is-casefolded: Likewise.
6482         * modules/unicase/u16-is-lowercase: Likewise.
6483         * modules/unicase/u16-is-titlecase: Likewise.
6484         * modules/unicase/u16-is-uppercase: Likewise.
6485         * modules/unicase/u16-prefix-context: Likewise.
6486         * modules/unicase/u16-suffix-context: Likewise.
6487         * modules/unicase/u16-tolower: Likewise.
6488         * modules/unicase/u16-totitle: Likewise.
6489         * modules/unicase/u16-toupper: Likewise.
6490         * modules/unicase/u32-casecmp: Likewise.
6491         * modules/unicase/u32-casecoll: Likewise.
6492         * modules/unicase/u32-casefold: Likewise.
6493         * modules/unicase/u32-casexfrm: Likewise.
6494         * modules/unicase/u32-ct-casefold: Likewise.
6495         * modules/unicase/u32-ct-tolower: Likewise.
6496         * modules/unicase/u32-ct-totitle: Likewise.
6497         * modules/unicase/u32-ct-toupper: Likewise.
6498         * modules/unicase/u32-is-cased: Likewise.
6499         * modules/unicase/u32-is-casefolded: Likewise.
6500         * modules/unicase/u32-is-lowercase: Likewise.
6501         * modules/unicase/u32-is-titlecase: Likewise.
6502         * modules/unicase/u32-is-uppercase: Likewise.
6503         * modules/unicase/u32-prefix-context: Likewise.
6504         * modules/unicase/u32-suffix-context: Likewise.
6505         * modules/unicase/u32-tolower: Likewise.
6506         * modules/unicase/u32-totitle: Likewise.
6507         * modules/unicase/u32-toupper: Likewise.
6508         * modules/unicase/ulc-casecmp: Likewise.
6509         * modules/unicase/ulc-casecoll: Likewise.
6510         * modules/unicase/ulc-casexfrm: Likewise.
6511         * modules/uniconv/u8-conv-from-enc: Likewise.
6512         * modules/uniconv/u8-conv-to-enc: Likewise.
6513         * modules/uniconv/u8-strconv-from-enc: Likewise.
6514         * modules/uniconv/u8-strconv-from-locale: Likewise.
6515         * modules/uniconv/u8-strconv-to-enc: Likewise.
6516         * modules/uniconv/u8-strconv-to-locale: Likewise.
6517         * modules/uniconv/u16-conv-from-enc: Likewise.
6518         * modules/uniconv/u16-conv-to-enc: Likewise.
6519         * modules/uniconv/u16-strconv-from-enc: Likewise.
6520         * modules/uniconv/u16-strconv-from-locale: Likewise.
6521         * modules/uniconv/u16-strconv-to-enc: Likewise.
6522         * modules/uniconv/u16-strconv-to-locale: Likewise.
6523         * modules/uniconv/u32-conv-from-enc: Likewise.
6524         * modules/uniconv/u32-conv-to-enc: Likewise.
6525         * modules/uniconv/u32-strconv-from-enc: Likewise.
6526         * modules/uniconv/u32-strconv-from-locale: Likewise.
6527         * modules/uniconv/u32-strconv-to-enc: Likewise.
6528         * modules/uniconv/u32-strconv-to-locale: Likewise.
6529         * modules/unictype/bidicategory-byname: Likewise.
6530         * modules/unictype/bidicategory-name: Likewise.
6531         * modules/unictype/bidicategory-of: Likewise.
6532         * modules/unictype/bidicategory-test: Likewise.
6533         * modules/unictype/block-list: Likewise.
6534         * modules/unictype/block-test: Likewise.
6535         * modules/unictype/category-C: Likewise.
6536         * modules/unictype/category-Cc: Likewise.
6537         * modules/unictype/category-Cf: Likewise.
6538         * modules/unictype/category-Cn: Likewise.
6539         * modules/unictype/category-Co: Likewise.
6540         * modules/unictype/category-Cs: Likewise.
6541         * modules/unictype/category-L: Likewise.
6542         * modules/unictype/category-Ll: Likewise.
6543         * modules/unictype/category-Lm: Likewise.
6544         * modules/unictype/category-Lo: Likewise.
6545         * modules/unictype/category-Lt: Likewise.
6546         * modules/unictype/category-Lu: Likewise.
6547         * modules/unictype/category-M: Likewise.
6548         * modules/unictype/category-Mc: Likewise.
6549         * modules/unictype/category-Me: Likewise.
6550         * modules/unictype/category-Mn: Likewise.
6551         * modules/unictype/category-N: Likewise.
6552         * modules/unictype/category-Nd: Likewise.
6553         * modules/unictype/category-Nl: Likewise.
6554         * modules/unictype/category-No: Likewise.
6555         * modules/unictype/category-P: Likewise.
6556         * modules/unictype/category-Pc: Likewise.
6557         * modules/unictype/category-Pd: Likewise.
6558         * modules/unictype/category-Pe: Likewise.
6559         * modules/unictype/category-Pf: Likewise.
6560         * modules/unictype/category-Pi: Likewise.
6561         * modules/unictype/category-Po: Likewise.
6562         * modules/unictype/category-Ps: Likewise.
6563         * modules/unictype/category-S: Likewise.
6564         * modules/unictype/category-Sc: Likewise.
6565         * modules/unictype/category-Sk: Likewise.
6566         * modules/unictype/category-Sm: Likewise.
6567         * modules/unictype/category-So: Likewise.
6568         * modules/unictype/category-Z: Likewise.
6569         * modules/unictype/category-Zl: Likewise.
6570         * modules/unictype/category-Zp: Likewise.
6571         * modules/unictype/category-Zs: Likewise.
6572         * modules/unictype/category-and: Likewise.
6573         * modules/unictype/category-and-not: Likewise.
6574         * modules/unictype/category-byname: Likewise.
6575         * modules/unictype/category-name: Likewise.
6576         * modules/unictype/category-none: Likewise.
6577         * modules/unictype/category-of: Likewise.
6578         * modules/unictype/category-or: Likewise.
6579         * modules/unictype/category-test: Likewise.
6580         * modules/unictype/combining-class: Likewise.
6581         * modules/unictype/ctype-alnum: Likewise.
6582         * modules/unictype/ctype-alpha: Likewise.
6583         * modules/unictype/ctype-blank: Likewise.
6584         * modules/unictype/ctype-cntrl: Likewise.
6585         * modules/unictype/ctype-digit: Likewise.
6586         * modules/unictype/ctype-graph: Likewise.
6587         * modules/unictype/ctype-lower: Likewise.
6588         * modules/unictype/ctype-print: Likewise.
6589         * modules/unictype/ctype-punct: Likewise.
6590         * modules/unictype/ctype-space: Likewise.
6591         * modules/unictype/ctype-upper: Likewise.
6592         * modules/unictype/ctype-xdigit: Likewise.
6593         * modules/unictype/decimal-digit: Likewise.
6594         * modules/unictype/digit: Likewise.
6595         * modules/unictype/mirror: Likewise.
6596         * modules/unictype/numeric: Likewise.
6597         * modules/unictype/property-alphabetic: Likewise.
6598         * modules/unictype/property-ascii-hex-digit: Likewise.
6599         * modules/unictype/property-bidi-arabic-digit: Likewise.
6600         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
6601         * modules/unictype/property-bidi-block-separator: Likewise.
6602         * modules/unictype/property-bidi-boundary-neutral: Likewise.
6603         * modules/unictype/property-bidi-common-separator: Likewise.
6604         * modules/unictype/property-bidi-control: Likewise.
6605         * modules/unictype/property-bidi-embedding-or-override: Likewise.
6606         * modules/unictype/property-bidi-eur-num-separator: Likewise.
6607         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
6608         * modules/unictype/property-bidi-european-digit: Likewise.
6609         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
6610         * modules/unictype/property-bidi-left-to-right: Likewise.
6611         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
6612         * modules/unictype/property-bidi-other-neutral: Likewise.
6613         * modules/unictype/property-bidi-pdf: Likewise.
6614         * modules/unictype/property-bidi-segment-separator: Likewise.
6615         * modules/unictype/property-bidi-whitespace: Likewise.
6616         * modules/unictype/property-byname: Likewise.
6617         * modules/unictype/property-combining: Likewise.
6618         * modules/unictype/property-composite: Likewise.
6619         * modules/unictype/property-currency-symbol: Likewise.
6620         * modules/unictype/property-dash: Likewise.
6621         * modules/unictype/property-decimal-digit: Likewise.
6622         * modules/unictype/property-default-ignorable-code-point: Likewise.
6623         * modules/unictype/property-deprecated: Likewise.
6624         * modules/unictype/property-diacritic: Likewise.
6625         * modules/unictype/property-extender: Likewise.
6626         * modules/unictype/property-format-control: Likewise.
6627         * modules/unictype/property-grapheme-base: Likewise.
6628         * modules/unictype/property-grapheme-extend: Likewise.
6629         * modules/unictype/property-grapheme-link: Likewise.
6630         * modules/unictype/property-hex-digit: Likewise.
6631         * modules/unictype/property-hyphen: Likewise.
6632         * modules/unictype/property-id-continue: Likewise.
6633         * modules/unictype/property-id-start: Likewise.
6634         * modules/unictype/property-ideographic: Likewise.
6635         * modules/unictype/property-ids-binary-operator: Likewise.
6636         * modules/unictype/property-ids-trinary-operator: Likewise.
6637         * modules/unictype/property-ignorable-control: Likewise.
6638         * modules/unictype/property-iso-control: Likewise.
6639         * modules/unictype/property-join-control: Likewise.
6640         * modules/unictype/property-left-of-pair: Likewise.
6641         * modules/unictype/property-line-separator: Likewise.
6642         * modules/unictype/property-logical-order-exception: Likewise.
6643         * modules/unictype/property-lowercase: Likewise.
6644         * modules/unictype/property-math: Likewise.
6645         * modules/unictype/property-non-break: Likewise.
6646         * modules/unictype/property-not-a-character: Likewise.
6647         * modules/unictype/property-numeric: Likewise.
6648         * modules/unictype/property-other-alphabetic: Likewise.
6649         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
6650         * modules/unictype/property-other-grapheme-extend: Likewise.
6651         * modules/unictype/property-other-id-continue: Likewise.
6652         * modules/unictype/property-other-id-start: Likewise.
6653         * modules/unictype/property-other-lowercase: Likewise.
6654         * modules/unictype/property-other-math: Likewise.
6655         * modules/unictype/property-other-uppercase: Likewise.
6656         * modules/unictype/property-paired-punctuation: Likewise.
6657         * modules/unictype/property-paragraph-separator: Likewise.
6658         * modules/unictype/property-pattern-syntax: Likewise.
6659         * modules/unictype/property-pattern-white-space: Likewise.
6660         * modules/unictype/property-private-use: Likewise.
6661         * modules/unictype/property-punctuation: Likewise.
6662         * modules/unictype/property-quotation-mark: Likewise.
6663         * modules/unictype/property-radical: Likewise.
6664         * modules/unictype/property-sentence-terminal: Likewise.
6665         * modules/unictype/property-soft-dotted: Likewise.
6666         * modules/unictype/property-space: Likewise.
6667         * modules/unictype/property-terminal-punctuation: Likewise.
6668         * modules/unictype/property-test: Likewise.
6669         * modules/unictype/property-titlecase: Likewise.
6670         * modules/unictype/property-unassigned-code-value: Likewise.
6671         * modules/unictype/property-unified-ideograph: Likewise.
6672         * modules/unictype/property-uppercase: Likewise.
6673         * modules/unictype/property-variation-selector: Likewise.
6674         * modules/unictype/property-white-space: Likewise.
6675         * modules/unictype/property-xid-continue: Likewise.
6676         * modules/unictype/property-xid-start: Likewise.
6677         * modules/unictype/property-zero-width: Likewise.
6678         * modules/unictype/scripts: Likewise.
6679         * modules/unictype/syntax-c-ident: Likewise.
6680         * modules/unictype/syntax-c-whitespace: Likewise.
6681         * modules/unictype/syntax-java-ident: Likewise.
6682         * modules/unictype/syntax-java-whitespace: Likewise.
6683         * modules/unilbrk/u8-possible-linebreaks: Likewise.
6684         * modules/unilbrk/u8-width-linebreaks: Likewise.
6685         * modules/unilbrk/u16-possible-linebreaks: Likewise.
6686         * modules/unilbrk/u16-width-linebreaks: Likewise.
6687         * modules/unilbrk/u32-possible-linebreaks: Likewise.
6688         * modules/unilbrk/u32-width-linebreaks: Likewise.
6689         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
6690         * modules/unilbrk/ulc-width-linebreaks: Likewise.
6691         * modules/uniname/uniname: Likewise.
6692         * modules/uninorm/canonical-decomposition: Likewise.
6693         * modules/uninorm/composition: Likewise.
6694         * modules/uninorm/decomposing-form: Likewise.
6695         * modules/uninorm/decomposition: Likewise.
6696         * modules/uninorm/filter: Likewise.
6697         * modules/uninorm/nfc: Likewise.
6698         * modules/uninorm/nfd: Likewise.
6699         * modules/uninorm/nfkc: Likewise.
6700         * modules/uninorm/nfkd: Likewise.
6701         * modules/uninorm/u8-normalize: Likewise.
6702         * modules/uninorm/u8-normcmp: Likewise.
6703         * modules/uninorm/u8-normcoll: Likewise.
6704         * modules/uninorm/u8-normxfrm: Likewise.
6705         * modules/uninorm/u16-normalize: Likewise.
6706         * modules/uninorm/u16-normcmp: Likewise.
6707         * modules/uninorm/u16-normcoll: Likewise.
6708         * modules/uninorm/u16-normxfrm: Likewise.
6709         * modules/uninorm/u32-normalize: Likewise.
6710         * modules/uninorm/u32-normcmp: Likewise.
6711         * modules/uninorm/u32-normcoll: Likewise.
6712         * modules/uninorm/u32-normxfrm: Likewise.
6713         * modules/unistdio/u8-asnprintf: Likewise.
6714         * modules/unistdio/u8-asprintf: Likewise.
6715         * modules/unistdio/u8-snprintf: Likewise.
6716         * modules/unistdio/u8-sprintf: Likewise.
6717         * modules/unistdio/u8-u8-asnprintf: Likewise.
6718         * modules/unistdio/u8-u8-asprintf: Likewise.
6719         * modules/unistdio/u8-u8-snprintf: Likewise.
6720         * modules/unistdio/u8-u8-sprintf: Likewise.
6721         * modules/unistdio/u8-u8-vasnprintf: Likewise.
6722         * modules/unistdio/u8-u8-vasprintf: Likewise.
6723         * modules/unistdio/u8-u8-vsnprintf: Likewise.
6724         * modules/unistdio/u8-u8-vsprintf: Likewise.
6725         * modules/unistdio/u8-vasnprintf: Likewise.
6726         * modules/unistdio/u8-vasprintf: Likewise.
6727         * modules/unistdio/u8-vsnprintf: Likewise.
6728         * modules/unistdio/u8-vsprintf: Likewise.
6729         * modules/unistdio/u16-asnprintf: Likewise.
6730         * modules/unistdio/u16-asprintf: Likewise.
6731         * modules/unistdio/u16-snprintf: Likewise.
6732         * modules/unistdio/u16-sprintf: Likewise.
6733         * modules/unistdio/u16-u16-asnprintf: Likewise.
6734         * modules/unistdio/u16-u16-asprintf: Likewise.
6735         * modules/unistdio/u16-u16-snprintf: Likewise.
6736         * modules/unistdio/u16-u16-sprintf: Likewise.
6737         * modules/unistdio/u16-u16-vasnprintf: Likewise.
6738         * modules/unistdio/u16-u16-vasprintf: Likewise.
6739         * modules/unistdio/u16-u16-vsnprintf: Likewise.
6740         * modules/unistdio/u16-u16-vsprintf: Likewise.
6741         * modules/unistdio/u16-vasnprintf: Likewise.
6742         * modules/unistdio/u16-vasprintf: Likewise.
6743         * modules/unistdio/u16-vsnprintf: Likewise.
6744         * modules/unistdio/u16-vsprintf: Likewise.
6745         * modules/unistdio/u32-asnprintf: Likewise.
6746         * modules/unistdio/u32-asprintf: Likewise.
6747         * modules/unistdio/u32-snprintf: Likewise.
6748         * modules/unistdio/u32-sprintf: Likewise.
6749         * modules/unistdio/u32-u32-asnprintf: Likewise.
6750         * modules/unistdio/u32-u32-asprintf: Likewise.
6751         * modules/unistdio/u32-u32-snprintf: Likewise.
6752         * modules/unistdio/u32-u32-sprintf: Likewise.
6753         * modules/unistdio/u32-u32-vasnprintf: Likewise.
6754         * modules/unistdio/u32-u32-vasprintf: Likewise.
6755         * modules/unistdio/u32-u32-vsnprintf: Likewise.
6756         * modules/unistdio/u32-u32-vsprintf: Likewise.
6757         * modules/unistdio/u32-vasnprintf: Likewise.
6758         * modules/unistdio/u32-vasprintf: Likewise.
6759         * modules/unistdio/u32-vsnprintf: Likewise.
6760         * modules/unistdio/u32-vsprintf: Likewise.
6761         * modules/unistdio/ulc-asnprintf: Likewise.
6762         * modules/unistdio/ulc-asprintf: Likewise.
6763         * modules/unistdio/ulc-fprintf: Likewise.
6764         * modules/unistdio/ulc-snprintf: Likewise.
6765         * modules/unistdio/ulc-sprintf: Likewise.
6766         * modules/unistdio/ulc-vasnprintf: Likewise.
6767         * modules/unistdio/ulc-vasprintf: Likewise.
6768         * modules/unistdio/ulc-vfprintf: Likewise.
6769         * modules/unistdio/ulc-vsnprintf: Likewise.
6770         * modules/unistdio/ulc-vsprintf: Likewise.
6771         * modules/unistr/u8-check: Likewise.
6772         * modules/unistr/u8-chr: Likewise.
6773         * modules/unistr/u8-cmp: Likewise.
6774         * modules/unistr/u8-cmp2: Likewise.
6775         * modules/unistr/u8-cpy: Likewise.
6776         * modules/unistr/u8-cpy-alloc: Likewise.
6777         * modules/unistr/u8-endswith: Likewise.
6778         * modules/unistr/u8-mblen: Likewise.
6779         * modules/unistr/u8-mbsnlen: Likewise.
6780         * modules/unistr/u8-mbtouc: Likewise.
6781         * modules/unistr/u8-mbtouc-unsafe: Likewise.
6782         * modules/unistr/u8-mbtoucr: Likewise.
6783         * modules/unistr/u8-move: Likewise.
6784         * modules/unistr/u8-next: Likewise.
6785         * modules/unistr/u8-prev: Likewise.
6786         * modules/unistr/u8-set: Likewise.
6787         * modules/unistr/u8-startswith: Likewise.
6788         * modules/unistr/u8-stpcpy: Likewise.
6789         * modules/unistr/u8-stpncpy: Likewise.
6790         * modules/unistr/u8-strcat: Likewise.
6791         * modules/unistr/u8-strchr: Likewise.
6792         * modules/unistr/u8-strcmp: Likewise.
6793         * modules/unistr/u8-strcoll: Likewise.
6794         * modules/unistr/u8-strcpy: Likewise.
6795         * modules/unistr/u8-strcspn: Likewise.
6796         * modules/unistr/u8-strdup: Likewise.
6797         * modules/unistr/u8-strlen: Likewise.
6798         * modules/unistr/u8-strmblen: Likewise.
6799         * modules/unistr/u8-strmbtouc: Likewise.
6800         * modules/unistr/u8-strncat: Likewise.
6801         * modules/unistr/u8-strncmp: Likewise.
6802         * modules/unistr/u8-strncpy: Likewise.
6803         * modules/unistr/u8-strnlen: Likewise.
6804         * modules/unistr/u8-strpbrk: Likewise.
6805         * modules/unistr/u8-strrchr: Likewise.
6806         * modules/unistr/u8-strspn: Likewise.
6807         * modules/unistr/u8-strstr: Likewise.
6808         * modules/unistr/u8-strtok: Likewise.
6809         * modules/unistr/u8-to-u16: Likewise.
6810         * modules/unistr/u8-to-u32: Likewise.
6811         * modules/unistr/u8-uctomb: Likewise.
6812         * modules/unistr/u16-check: Likewise.
6813         * modules/unistr/u16-chr: Likewise.
6814         * modules/unistr/u16-cmp: Likewise.
6815         * modules/unistr/u16-cmp2: Likewise.
6816         * modules/unistr/u16-cpy: Likewise.
6817         * modules/unistr/u16-cpy-alloc: Likewise.
6818         * modules/unistr/u16-endswith: Likewise.
6819         * modules/unistr/u16-mblen: Likewise.
6820         * modules/unistr/u16-mbsnlen: Likewise.
6821         * modules/unistr/u16-mbtouc: Likewise.
6822         * modules/unistr/u16-mbtouc-unsafe: Likewise.
6823         * modules/unistr/u16-mbtoucr: Likewise.
6824         * modules/unistr/u16-move: Likewise.
6825         * modules/unistr/u16-next: Likewise.
6826         * modules/unistr/u16-prev: Likewise.
6827         * modules/unistr/u16-set: Likewise.
6828         * modules/unistr/u16-startswith: Likewise.
6829         * modules/unistr/u16-stpcpy: Likewise.
6830         * modules/unistr/u16-stpncpy: Likewise.
6831         * modules/unistr/u16-strcat: Likewise.
6832         * modules/unistr/u16-strchr: Likewise.
6833         * modules/unistr/u16-strcmp: Likewise.
6834         * modules/unistr/u16-strcoll: Likewise.
6835         * modules/unistr/u16-strcpy: Likewise.
6836         * modules/unistr/u16-strcspn: Likewise.
6837         * modules/unistr/u16-strdup: Likewise.
6838         * modules/unistr/u16-strlen: Likewise.
6839         * modules/unistr/u16-strmblen: Likewise.
6840         * modules/unistr/u16-strmbtouc: Likewise.
6841         * modules/unistr/u16-strncat: Likewise.
6842         * modules/unistr/u16-strncmp: Likewise.
6843         * modules/unistr/u16-strncpy: Likewise.
6844         * modules/unistr/u16-strnlen: Likewise.
6845         * modules/unistr/u16-strpbrk: Likewise.
6846         * modules/unistr/u16-strrchr: Likewise.
6847         * modules/unistr/u16-strspn: Likewise.
6848         * modules/unistr/u16-strstr: Likewise.
6849         * modules/unistr/u16-strtok: Likewise.
6850         * modules/unistr/u16-to-u32: Likewise.
6851         * modules/unistr/u16-to-u8: Likewise.
6852         * modules/unistr/u16-uctomb: Likewise.
6853         * modules/unistr/u32-check: Likewise.
6854         * modules/unistr/u32-chr: Likewise.
6855         * modules/unistr/u32-cmp: Likewise.
6856         * modules/unistr/u32-cmp2: Likewise.
6857         * modules/unistr/u32-cpy: Likewise.
6858         * modules/unistr/u32-cpy-alloc: Likewise.
6859         * modules/unistr/u32-endswith: Likewise.
6860         * modules/unistr/u32-mblen: Likewise.
6861         * modules/unistr/u32-mbsnlen: Likewise.
6862         * modules/unistr/u32-mbtouc: Likewise.
6863         * modules/unistr/u32-mbtouc-unsafe: Likewise.
6864         * modules/unistr/u32-mbtoucr: Likewise.
6865         * modules/unistr/u32-move: Likewise.
6866         * modules/unistr/u32-next: Likewise.
6867         * modules/unistr/u32-prev: Likewise.
6868         * modules/unistr/u32-set: Likewise.
6869         * modules/unistr/u32-startswith: Likewise.
6870         * modules/unistr/u32-stpcpy: Likewise.
6871         * modules/unistr/u32-stpncpy: Likewise.
6872         * modules/unistr/u32-strcat: Likewise.
6873         * modules/unistr/u32-strchr: Likewise.
6874         * modules/unistr/u32-strcmp: Likewise.
6875         * modules/unistr/u32-strcoll: Likewise.
6876         * modules/unistr/u32-strcpy: Likewise.
6877         * modules/unistr/u32-strcspn: Likewise.
6878         * modules/unistr/u32-strdup: Likewise.
6879         * modules/unistr/u32-strlen: Likewise.
6880         * modules/unistr/u32-strmblen: Likewise.
6881         * modules/unistr/u32-strmbtouc: Likewise.
6882         * modules/unistr/u32-strncat: Likewise.
6883         * modules/unistr/u32-strncmp: Likewise.
6884         * modules/unistr/u32-strncpy: Likewise.
6885         * modules/unistr/u32-strnlen: Likewise.
6886         * modules/unistr/u32-strpbrk: Likewise.
6887         * modules/unistr/u32-strrchr: Likewise.
6888         * modules/unistr/u32-strspn: Likewise.
6889         * modules/unistr/u32-strstr: Likewise.
6890         * modules/unistr/u32-strtok: Likewise.
6891         * modules/unistr/u32-to-u16: Likewise.
6892         * modules/unistr/u32-to-u8: Likewise.
6893         * modules/unistr/u32-uctomb: Likewise.
6894         * modules/uniwbrk/u8-wordbreaks: Likewise.
6895         * modules/uniwbrk/u16-wordbreaks: Likewise.
6896         * modules/uniwbrk/u32-wordbreaks: Likewise.
6897         * modules/uniwbrk/ulc-wordbreaks: Likewise.
6898         * modules/uniwbrk/wordbreak-property: Likewise.
6899         * modules/uniwidth/u8-strwidth: Likewise.
6900         * modules/uniwidth/u8-width: Likewise.
6901         * modules/uniwidth/u16-strwidth: Likewise.
6902         * modules/uniwidth/u16-width: Likewise.
6903         * modules/uniwidth/u32-strwidth: Likewise.
6904         * modules/uniwidth/u32-width: Likewise.
6905         * modules/uniwidth/width: Likewise.
6906         * modules/unicase/cased-tests (Makefile.am): Link all test programs
6907         with $(LIBUNISTRING).
6908         * modules/unicase/ignorable-tests: Likewise.
6909         * modules/unicase/locale-language-tests: Likewise.
6910         * modules/unicase/tolower-tests: Likewise.
6911         * modules/unicase/totitle-tests: Likewise.
6912         * modules/unicase/toupper-tests: Likewise.
6913         * modules/unicase/u8-casecmp-tests: Likewise.
6914         * modules/unicase/u8-casecoll-tests: Likewise.
6915         * modules/unicase/u8-casefold-tests: Likewise.
6916         * modules/unicase/u8-is-cased-tests: Likewise.
6917         * modules/unicase/u8-is-casefolded-tests: Likewise.
6918         * modules/unicase/u8-is-lowercase-tests: Likewise.
6919         * modules/unicase/u8-is-titlecase-tests: Likewise.
6920         * modules/unicase/u8-is-uppercase-tests: Likewise.
6921         * modules/unicase/u8-tolower-tests: Likewise.
6922         * modules/unicase/u8-totitle-tests: Likewise.
6923         * modules/unicase/u8-toupper-tests: Likewise.
6924         * modules/unicase/u16-casecmp-tests: Likewise.
6925         * modules/unicase/u16-casecoll-tests: Likewise.
6926         * modules/unicase/u16-casefold-tests: Likewise.
6927         * modules/unicase/u16-is-cased-tests: Likewise.
6928         * modules/unicase/u16-is-casefolded-tests: Likewise.
6929         * modules/unicase/u16-is-lowercase-tests: Likewise.
6930         * modules/unicase/u16-is-titlecase-tests: Likewise.
6931         * modules/unicase/u16-is-uppercase-tests: Likewise.
6932         * modules/unicase/u16-tolower-tests: Likewise.
6933         * modules/unicase/u16-totitle-tests: Likewise.
6934         * modules/unicase/u16-toupper-tests: Likewise.
6935         * modules/unicase/u32-casecmp-tests: Likewise.
6936         * modules/unicase/u32-casecoll-tests: Likewise.
6937         * modules/unicase/u32-casefold-tests: Likewise.
6938         * modules/unicase/u32-is-cased-tests: Likewise.
6939         * modules/unicase/u32-is-casefolded-tests: Likewise.
6940         * modules/unicase/u32-is-lowercase-tests: Likewise.
6941         * modules/unicase/u32-is-titlecase-tests: Likewise.
6942         * modules/unicase/u32-is-uppercase-tests: Likewise.
6943         * modules/unicase/u32-tolower-tests: Likewise.
6944         * modules/unicase/u32-totitle-tests: Likewise.
6945         * modules/unicase/u32-toupper-tests: Likewise.
6946         * modules/unicase/ulc-casecmp-tests: Likewise.
6947         * modules/unicase/ulc-casecoll-tests: Likewise.
6948         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
6949         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
6950         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
6951         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
6952         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
6953         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
6954         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
6955         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
6956         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
6957         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
6958         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
6959         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
6960         * modules/unictype/bidicategory-byname-tests: Likewise.
6961         * modules/unictype/bidicategory-name-tests: Likewise.
6962         * modules/unictype/bidicategory-of-tests: Likewise.
6963         * modules/unictype/bidicategory-test-tests: Likewise.
6964         * modules/unictype/block-list-tests: Likewise.
6965         * modules/unictype/block-of-tests: Likewise.
6966         * modules/unictype/block-test-tests: Likewise.
6967         * modules/unictype/category-C-tests: Likewise.
6968         * modules/unictype/category-Cc-tests: Likewise.
6969         * modules/unictype/category-Cf-tests: Likewise.
6970         * modules/unictype/category-Cn-tests: Likewise.
6971         * modules/unictype/category-Co-tests: Likewise.
6972         * modules/unictype/category-Cs-tests: Likewise.
6973         * modules/unictype/category-L-tests: Likewise.
6974         * modules/unictype/category-Ll-tests: Likewise.
6975         * modules/unictype/category-Lm-tests: Likewise.
6976         * modules/unictype/category-Lo-tests: Likewise.
6977         * modules/unictype/category-Lt-tests: Likewise.
6978         * modules/unictype/category-Lu-tests: Likewise.
6979         * modules/unictype/category-M-tests: Likewise.
6980         * modules/unictype/category-Mc-tests: Likewise.
6981         * modules/unictype/category-Me-tests: Likewise.
6982         * modules/unictype/category-Mn-tests: Likewise.
6983         * modules/unictype/category-N-tests: Likewise.
6984         * modules/unictype/category-Nd-tests: Likewise.
6985         * modules/unictype/category-Nl-tests: Likewise.
6986         * modules/unictype/category-No-tests: Likewise.
6987         * modules/unictype/category-P-tests: Likewise.
6988         * modules/unictype/category-Pc-tests: Likewise.
6989         * modules/unictype/category-Pd-tests: Likewise.
6990         * modules/unictype/category-Pe-tests: Likewise.
6991         * modules/unictype/category-Pf-tests: Likewise.
6992         * modules/unictype/category-Pi-tests: Likewise.
6993         * modules/unictype/category-Po-tests: Likewise.
6994         * modules/unictype/category-Ps-tests: Likewise.
6995         * modules/unictype/category-S-tests: Likewise.
6996         * modules/unictype/category-Sc-tests: Likewise.
6997         * modules/unictype/category-Sk-tests: Likewise.
6998         * modules/unictype/category-Sm-tests: Likewise.
6999         * modules/unictype/category-So-tests: Likewise.
7000         * modules/unictype/category-Z-tests: Likewise.
7001         * modules/unictype/category-Zl-tests: Likewise.
7002         * modules/unictype/category-Zp-tests: Likewise.
7003         * modules/unictype/category-Zs-tests: Likewise.
7004         * modules/unictype/category-and-not-tests: Likewise.
7005         * modules/unictype/category-and-tests: Likewise.
7006         * modules/unictype/category-byname-tests: Likewise.
7007         * modules/unictype/category-name-tests: Likewise.
7008         * modules/unictype/category-none-tests: Likewise.
7009         * modules/unictype/category-of-tests: Likewise.
7010         * modules/unictype/category-or-tests: Likewise.
7011         * modules/unictype/category-test-withtable-tests: Likewise.
7012         * modules/unictype/combining-class-tests: Likewise.
7013         * modules/unictype/ctype-alnum-tests: Likewise.
7014         * modules/unictype/ctype-alpha-tests: Likewise.
7015         * modules/unictype/ctype-blank-tests: Likewise.
7016         * modules/unictype/ctype-cntrl-tests: Likewise.
7017         * modules/unictype/ctype-digit-tests: Likewise.
7018         * modules/unictype/ctype-graph-tests: Likewise.
7019         * modules/unictype/ctype-lower-tests: Likewise.
7020         * modules/unictype/ctype-print-tests: Likewise.
7021         * modules/unictype/ctype-punct-tests: Likewise.
7022         * modules/unictype/ctype-space-tests: Likewise.
7023         * modules/unictype/ctype-upper-tests: Likewise.
7024         * modules/unictype/ctype-xdigit-tests: Likewise.
7025         * modules/unictype/decimal-digit-tests: Likewise.
7026         * modules/unictype/digit-tests: Likewise.
7027         * modules/unictype/mirror-tests: Likewise.
7028         * modules/unictype/numeric-tests: Likewise.
7029         * modules/unictype/property-alphabetic-tests: Likewise.
7030         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7031         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7032         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7033         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7034         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7035         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7036         * modules/unictype/property-bidi-control-tests: Likewise.
7037         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7038         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7039         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7040         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7041         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7042         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7043         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7044         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7045         * modules/unictype/property-bidi-pdf-tests: Likewise.
7046         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
7047         * modules/unictype/property-bidi-whitespace-tests: Likewise.
7048         * modules/unictype/property-byname-tests: Likewise.
7049         * modules/unictype/property-combining-tests: Likewise.
7050         * modules/unictype/property-composite-tests: Likewise.
7051         * modules/unictype/property-currency-symbol-tests: Likewise.
7052         * modules/unictype/property-dash-tests: Likewise.
7053         * modules/unictype/property-decimal-digit-tests: Likewise.
7054         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
7055         * modules/unictype/property-deprecated-tests: Likewise.
7056         * modules/unictype/property-diacritic-tests: Likewise.
7057         * modules/unictype/property-extender-tests: Likewise.
7058         * modules/unictype/property-format-control-tests: Likewise.
7059         * modules/unictype/property-grapheme-base-tests: Likewise.
7060         * modules/unictype/property-grapheme-extend-tests: Likewise.
7061         * modules/unictype/property-grapheme-link-tests: Likewise.
7062         * modules/unictype/property-hex-digit-tests: Likewise.
7063         * modules/unictype/property-hyphen-tests: Likewise.
7064         * modules/unictype/property-id-continue-tests: Likewise.
7065         * modules/unictype/property-id-start-tests: Likewise.
7066         * modules/unictype/property-ideographic-tests: Likewise.
7067         * modules/unictype/property-ids-binary-operator-tests: Likewise.
7068         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
7069         * modules/unictype/property-ignorable-control-tests: Likewise.
7070         * modules/unictype/property-iso-control-tests: Likewise.
7071         * modules/unictype/property-join-control-tests: Likewise.
7072         * modules/unictype/property-left-of-pair-tests: Likewise.
7073         * modules/unictype/property-line-separator-tests: Likewise.
7074         * modules/unictype/property-logical-order-exception-tests: Likewise.
7075         * modules/unictype/property-lowercase-tests: Likewise.
7076         * modules/unictype/property-math-tests: Likewise.
7077         * modules/unictype/property-non-break-tests: Likewise.
7078         * modules/unictype/property-not-a-character-tests: Likewise.
7079         * modules/unictype/property-numeric-tests: Likewise.
7080         * modules/unictype/property-other-alphabetic-tests: Likewise.
7081         * modules/unictype/property-other-default-ignorable-code-point-tests:
7082         Likewise.
7083         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
7084         * modules/unictype/property-other-id-continue-tests: Likewise.
7085         * modules/unictype/property-other-id-start-tests: Likewise.
7086         * modules/unictype/property-other-lowercase-tests: Likewise.
7087         * modules/unictype/property-other-math-tests: Likewise.
7088         * modules/unictype/property-other-uppercase-tests: Likewise.
7089         * modules/unictype/property-paired-punctuation-tests: Likewise.
7090         * modules/unictype/property-paragraph-separator-tests: Likewise.
7091         * modules/unictype/property-pattern-syntax-tests: Likewise.
7092         * modules/unictype/property-pattern-white-space-tests: Likewise.
7093         * modules/unictype/property-private-use-tests: Likewise.
7094         * modules/unictype/property-punctuation-tests: Likewise.
7095         * modules/unictype/property-quotation-mark-tests: Likewise.
7096         * modules/unictype/property-radical-tests: Likewise.
7097         * modules/unictype/property-sentence-terminal-tests: Likewise.
7098         * modules/unictype/property-soft-dotted-tests: Likewise.
7099         * modules/unictype/property-space-tests: Likewise.
7100         * modules/unictype/property-terminal-punctuation-tests: Likewise.
7101         * modules/unictype/property-test-tests: Likewise.
7102         * modules/unictype/property-titlecase-tests: Likewise.
7103         * modules/unictype/property-unassigned-code-value-tests: Likewise.
7104         * modules/unictype/property-unified-ideograph-tests: Likewise.
7105         * modules/unictype/property-uppercase-tests: Likewise.
7106         * modules/unictype/property-variation-selector-tests: Likewise.
7107         * modules/unictype/property-white-space-tests: Likewise.
7108         * modules/unictype/property-xid-continue-tests: Likewise.
7109         * modules/unictype/property-xid-start-tests: Likewise.
7110         * modules/unictype/property-zero-width-tests: Likewise.
7111         * modules/unictype/scripts-tests: Likewise.
7112         * modules/unictype/syntax-c-ident-tests: Likewise.
7113         * modules/unictype/syntax-c-whitespace-tests: Likewise.
7114         * modules/unictype/syntax-java-ident-tests: Likewise.
7115         * modules/unictype/syntax-java-whitespace-tests: Likewise.
7116         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
7117         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
7118         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
7119         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
7120         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
7121         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
7122         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
7123         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
7124         * modules/uniname/uniname-tests: Likewise.
7125         * modules/uninorm/canonical-decomposition-tests: Likewise.
7126         * modules/uninorm/compat-decomposition-tests: Likewise.
7127         * modules/uninorm/composition-tests: Likewise.
7128         * modules/uninorm/decomposing-form-tests: Likewise.
7129         * modules/uninorm/decomposition-tests: Likewise.
7130         * modules/uninorm/filter-tests: Likewise.
7131         * modules/uninorm/nfc-tests: Likewise.
7132         * modules/uninorm/nfd-tests: Likewise.
7133         * modules/uninorm/nfkc-tests: Likewise.
7134         * modules/uninorm/nfkd-tests: Likewise.
7135         * modules/uninorm/u8-normcmp-tests: Likewise.
7136         * modules/uninorm/u8-normcoll-tests: Likewise.
7137         * modules/uninorm/u16-normcmp-tests: Likewise.
7138         * modules/uninorm/u16-normcoll-tests: Likewise.
7139         * modules/uninorm/u32-normcmp-tests: Likewise.
7140         * modules/uninorm/u32-normcoll-tests: Likewise.
7141         * modules/unistdio/u8-asnprintf-tests: Likewise.
7142         * modules/unistdio/u8-vasnprintf-tests: Likewise.
7143         * modules/unistdio/u8-vasprintf-tests: Likewise.
7144         * modules/unistdio/u8-vsnprintf-tests: Likewise.
7145         * modules/unistdio/u8-vsprintf-tests: Likewise.
7146         * modules/unistdio/u16-asnprintf-tests: Likewise.
7147         * modules/unistdio/u16-vasnprintf-tests: Likewise.
7148         * modules/unistdio/u16-vasprintf-tests: Likewise.
7149         * modules/unistdio/u16-vsnprintf-tests: Likewise.
7150         * modules/unistdio/u16-vsprintf-tests: Likewise.
7151         * modules/unistdio/u32-asnprintf-tests: Likewise.
7152         * modules/unistdio/u32-vasnprintf-tests: Likewise.
7153         * modules/unistdio/u32-vasprintf-tests: Likewise.
7154         * modules/unistdio/u32-vsnprintf-tests: Likewise.
7155         * modules/unistdio/u32-vsprintf-tests: Likewise.
7156         * modules/unistdio/ulc-asnprintf-tests: Likewise.
7157         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
7158         * modules/unistdio/ulc-vasprintf-tests: Likewise.
7159         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
7160         * modules/unistdio/ulc-vsprintf-tests: Likewise.
7161         * modules/unistr/u8-check-tests: Likewise.
7162         * modules/unistr/u8-chr-tests: Likewise.
7163         * modules/unistr/u8-cmp-tests: Likewise.
7164         * modules/unistr/u8-cmp2-tests: Likewise.
7165         * modules/unistr/u8-cpy-alloc-tests: Likewise.
7166         * modules/unistr/u8-cpy-tests: Likewise.
7167         * modules/unistr/u8-mblen-tests: Likewise.
7168         * modules/unistr/u8-mbsnlen-tests: Likewise.
7169         * modules/unistr/u8-mbtouc-tests: Likewise.
7170         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
7171         * modules/unistr/u8-mbtoucr-tests: Likewise.
7172         * modules/unistr/u8-move-tests: Likewise.
7173         * modules/unistr/u8-next-tests: Likewise.
7174         * modules/unistr/u8-prev-tests: Likewise.
7175         * modules/unistr/u8-set-tests: Likewise.
7176         * modules/unistr/u8-stpcpy-tests: Likewise.
7177         * modules/unistr/u8-stpncpy-tests: Likewise.
7178         * modules/unistr/u8-strcat-tests: Likewise.
7179         * modules/unistr/u8-strcmp-tests: Likewise.
7180         * modules/unistr/u8-strcoll-tests: Likewise.
7181         * modules/unistr/u8-strcpy-tests: Likewise.
7182         * modules/unistr/u8-strdup-tests: Likewise.
7183         * modules/unistr/u8-strlen-tests: Likewise.
7184         * modules/unistr/u8-strmblen-tests: Likewise.
7185         * modules/unistr/u8-strmbtouc-tests: Likewise.
7186         * modules/unistr/u8-strncat-tests: Likewise.
7187         * modules/unistr/u8-strncmp-tests: Likewise.
7188         * modules/unistr/u8-strncpy-tests: Likewise.
7189         * modules/unistr/u8-strnlen-tests: Likewise.
7190         * modules/unistr/u8-to-u16-tests: Likewise.
7191         * modules/unistr/u8-to-u32-tests: Likewise.
7192         * modules/unistr/u8-uctomb-tests: Likewise.
7193         * modules/unistr/u16-check-tests: Likewise.
7194         * modules/unistr/u16-chr-tests: Likewise.
7195         * modules/unistr/u16-cmp-tests: Likewise.
7196         * modules/unistr/u16-cmp2-tests: Likewise.
7197         * modules/unistr/u16-cpy-alloc-tests: Likewise.
7198         * modules/unistr/u16-cpy-tests: Likewise.
7199         * modules/unistr/u16-mblen-tests: Likewise.
7200         * modules/unistr/u16-mbsnlen-tests: Likewise.
7201         * modules/unistr/u16-mbtouc-tests: Likewise.
7202         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
7203         * modules/unistr/u16-mbtoucr-tests: Likewise.
7204         * modules/unistr/u16-move-tests: Likewise.
7205         * modules/unistr/u16-next-tests: Likewise.
7206         * modules/unistr/u16-prev-tests: Likewise.
7207         * modules/unistr/u16-set-tests: Likewise.
7208         * modules/unistr/u16-stpcpy-tests: Likewise.
7209         * modules/unistr/u16-stpncpy-tests: Likewise.
7210         * modules/unistr/u16-strcat-tests: Likewise.
7211         * modules/unistr/u16-strcmp-tests: Likewise.
7212         * modules/unistr/u16-strcoll-tests: Likewise.
7213         * modules/unistr/u16-strcpy-tests: Likewise.
7214         * modules/unistr/u16-strdup-tests: Likewise.
7215         * modules/unistr/u16-strlen-tests: Likewise.
7216         * modules/unistr/u16-strmblen-tests: Likewise.
7217         * modules/unistr/u16-strmbtouc-tests: Likewise.
7218         * modules/unistr/u16-strncat-tests: Likewise.
7219         * modules/unistr/u16-strncmp-tests: Likewise.
7220         * modules/unistr/u16-strncpy-tests: Likewise.
7221         * modules/unistr/u16-strnlen-tests: Likewise.
7222         * modules/unistr/u16-to-u32-tests: Likewise.
7223         * modules/unistr/u16-to-u8-tests: Likewise.
7224         * modules/unistr/u16-uctomb-tests: Likewise.
7225         * modules/unistr/u32-check-tests: Likewise.
7226         * modules/unistr/u32-chr-tests: Likewise.
7227         * modules/unistr/u32-cmp-tests: Likewise.
7228         * modules/unistr/u32-cmp2-tests: Likewise.
7229         * modules/unistr/u32-cpy-alloc-tests: Likewise.
7230         * modules/unistr/u32-cpy-tests: Likewise.
7231         * modules/unistr/u32-mblen-tests: Likewise.
7232         * modules/unistr/u32-mbsnlen-tests: Likewise.
7233         * modules/unistr/u32-mbtouc-tests: Likewise.
7234         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
7235         * modules/unistr/u32-mbtoucr-tests: Likewise.
7236         * modules/unistr/u32-move-tests: Likewise.
7237         * modules/unistr/u32-next-tests: Likewise.
7238         * modules/unistr/u32-prev-tests: Likewise.
7239         * modules/unistr/u32-set-tests: Likewise.
7240         * modules/unistr/u32-stpcpy-tests: Likewise.
7241         * modules/unistr/u32-stpncpy-tests: Likewise.
7242         * modules/unistr/u32-strcat-tests: Likewise.
7243         * modules/unistr/u32-strcmp-tests: Likewise.
7244         * modules/unistr/u32-strcoll-tests: Likewise.
7245         * modules/unistr/u32-strcpy-tests: Likewise.
7246         * modules/unistr/u32-strdup-tests: Likewise.
7247         * modules/unistr/u32-strlen-tests: Likewise.
7248         * modules/unistr/u32-strmblen-tests: Likewise.
7249         * modules/unistr/u32-strmbtouc-tests: Likewise.
7250         * modules/unistr/u32-strncat-tests: Likewise.
7251         * modules/unistr/u32-strncmp-tests: Likewise.
7252         * modules/unistr/u32-strncpy-tests: Likewise.
7253         * modules/unistr/u32-strnlen-tests: Likewise.
7254         * modules/unistr/u32-to-u16-tests: Likewise.
7255         * modules/unistr/u32-to-u8-tests: Likewise.
7256         * modules/unistr/u32-uctomb-tests: Likewise.
7257         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
7258         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
7259         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
7260         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
7261         * modules/uniwidth/u8-strwidth-tests: Likewise.
7262         * modules/uniwidth/u8-width-tests: Likewise.
7263         * modules/uniwidth/u16-strwidth-tests: Likewise.
7264         * modules/uniwidth/u16-width-tests: Likewise.
7265         * modules/uniwidth/u32-strwidth-tests: Likewise.
7266         * modules/uniwidth/u32-width-tests: Likewise.
7267         * modules/uniwidth/width-tests: Likewise.
7268
7269 2010-05-18  Richard Jones  <rjones@redhat.com>
7270
7271         doc: users.txt: list hivex
7272         * users.txt: Add hivex.
7273
7274 2010-05-18  Richard Jones  <rjones@redhat.com>
7275
7276         doc: users.txt: list febootstrap
7277         * users.txt: Add febootstrap.
7278
7279 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
7280
7281         bootstrap: fix an error when gnulib is not used as a git submodule
7282         * build-aux/bootstrap (gnulib_path): If its length is zero then
7283         assign "gnulib" to it.
7284         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
7285
7286 2010-05-16  Bruno Haible  <bruno@clisp.org>
7287
7288         Avoid autoconf warnings about AM_ICONV.
7289         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
7290         2.64.
7291
7292 2010-05-16  Bruno Haible  <bruno@clisp.org>
7293
7294         absolute-header: Make the macro usable in more situations.
7295         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
7296         from gl_ABSOLUTE_HEADER.
7297         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
7298
7299 2010-05-16  James Youngman  <jay@gnu.org>
7300
7301         doc: update users.txt
7302         * users.txt: Add CSSC.
7303
7304 2010-05-16  Jim Meyering  <meyering@redhat.com>
7305
7306         init.sh: fix an error in the previous change; add more comments
7307         * tests/init.sh: Compare exit code in loop against 9, not 2.
7308         Patch by Bruno Haible.
7309         Make the two tests more similar by adding an empty "then" clause.
7310         Add comments.
7311
7312         init.sh: avoid unnecessary shell re-exec
7313         * tests/init.sh: Improve the re-exec-required check to first test the
7314         current shell.  If it passes the test, do not search for a shell that
7315         does pass, and do not re-exec.  This test is particularly contorted to
7316         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
7317         of $(...) evokes a syntax error and causes immediate shell exit with
7318         status 2.  Bruno Haible reported that the re-exec made it impossible
7319         to single-step through any init.sh-using script.
7320
7321 2010-05-16  Bruno Haible  <bruno@clisp.org>
7322
7323         Fix collision between gnulib's and libintl's printf replacements.
7324         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
7325         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
7326         (printf): When using GNU C, map the __printf__ function to rpl_printf
7327         via __asm__. When not using GNU C, define rpl_printf instead of
7328         __printf__.
7329         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
7330         commit.
7331         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
7332         commit.
7333         * m4/asm-underscore.m4: New file.
7334         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
7335         * modules/stdio (Files): Add m4/asm-underscore.m4.
7336         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
7337         Reported by Ben Pfaff.
7338
7339 2010-05-16  Bruno Haible  <bruno@clisp.org>
7340
7341         verify: Avoid skipping the test on openSUSE 11.0.
7342         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
7343
7344 2010-05-13  Bruno Haible  <bruno@clisp.org>
7345
7346         Avoid useless warnings from G++.
7347         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
7348         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
7349         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7350
7351 2010-05-11  Jim Meyering  <meyering@redhat.com>
7352
7353         maint.mk: tweak preceding change
7354         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
7355         regexps tighter by anchoring at EOL, and make the new group "shy"
7356         for slightly decreased overhead.
7357
7358 2010-05-11  Eric Blake  <eblake@redhat.com>
7359
7360         maint.mk: gnulib doesn't guarantee NSIG
7361         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
7362
7363 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7364
7365         test-pwrite.c: Remove unused variable declaration.
7366         * tests/test-pwrite.c (main): Remove read_buf declaration.
7367
7368         Remove useless test-pwrite.sh file.
7369         * tests/test-pwrite.sh: Delete file.
7370         * modules/pwrite-tests: Remove references.
7371         Reported by Bruno Haible.
7372
7373 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7374
7375         init.sh: fix a typo
7376         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
7377
7378 2010-05-10  Jim Meyering  <meyering@redhat.com>
7379
7380         maint.mk: avoid using a temporary file in the always-defined-macros check
7381         * top/maint.mk (.re-defmac): Remove rule.
7382         (gl_trap_): Remove definition.
7383         (sc_prohibit_always-defined_macros): Rewrite not to create and
7384         depend on a temporary file.  Instead, depend on GNU grep's ability
7385         to read a list of regular expressions from stdin when given "-f -".
7386
7387 2010-05-09  Bruno Haible  <bruno@clisp.org>
7388
7389         Update to GNU gettext 0.18, part 1.
7390         * m4/gettext.m4: Update to GNU gettext 0.18.
7391         * m4/intl.m4: Likewise.
7392         * m4/po.m4: Likewise.
7393         * modules/gettext (Files): Add m4/fcntl-o.m4.
7394         (configure.ac): Require gettext infrastructure from version 0.18.
7395
7396 2010-05-09  Jim Meyering  <meyering@redhat.com>
7397
7398         init.sh: enable MALLOC_PERTURB_
7399         * tests/init.sh: Enable glibc's malloc-perturbing option.
7400
7401         maint.mk: improve sc_cross_check_PATH_usage_in_tests
7402         With my recent change in init.sh from the two-line form:
7403             -#   : ${srcdir=.}
7404             -#   . "$srcdir/init.sh"; path_prepend_ .
7405             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
7406         I noticed that using the one-line form would cause this test
7407         to fail with a false-positive, or to stop working altogether,
7408         depending on whether help-version changed or all the tests did.
7409         * top/maint.mk (_hv_regex): Remove this definition.
7410         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
7411         (_hv_regex_strong): Use a stronger regex to check for conformance.
7412         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
7413         Give a separate diagnostic for lack of conforming use.
7414
7415         maint.mk: prohibit definition of symbols defined by gnulib
7416         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
7417         definition of symbols defined by gnulib.
7418
7419 2010-05-09  Bruno Haible  <bruno@clisp.org>
7420
7421         acl: Avoid test failure on Cygwin-hosted mingw.
7422         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
7423
7424 2010-05-09  Bruno Haible  <bruno@clisp.org>
7425
7426         error: Use system's fcntl function.
7427         * lib/error.c (fcntl): Undefine.
7428
7429 2010-05-09  Jim Meyering  <meyering@redhat.com>
7430
7431         verify: adjust formatting to be more consistent
7432         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
7433         argument-list '('s, and after one comma.
7434
7435 2010-05-09  Bruno Haible  <bruno@clisp.org>
7436
7437         error: More reliable output on mingw.
7438         * lib/error.c: Include <windows.h>.
7439         (is_open): New function.
7440         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
7441         defined.
7442
7443 2010-05-09  Bruno Haible  <bruno@clisp.org>
7444
7445         vasnprintf: Fix syntax errors in libintl build on mingw.
7446         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
7447         pad_ourselves and prec_ourselves after use.
7448
7449 2010-05-08  Bruno Haible  <bruno@clisp.org>
7450
7451         * lib/config.charset: Update comments for Cygwin 1.7.
7452         * lib/localcharset.c: Likewise.
7453
7454 2010-05-07  Jim Meyering  <meyering@redhat.com>
7455
7456         init.sh: improve comments
7457         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
7458         . "${srcdir=.}/init.sh"; path_prepend_ .
7459         Add a note about path_prepend_ and the alternative of using
7460         TESTS_ENVIRONMENT.
7461
7462 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7463
7464         exclude: Unescape hashed patterns in wildcard mode.
7465         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
7466         to the hash list.
7467         * tests/test-exclude8.sh: New test case.
7468         * modules/exclude-tests: Add new test.
7469
7470 2010-05-05  Eric Blake  <eblake@redhat.com>
7471
7472         verify: automate tests
7473         * modules/verify-tests: New module.
7474         * tests/test-verify.sh: New file.
7475         * tests/test-verify.c: Guard each negative test with a unique id.
7476         Also avoid warning about unused left hand of comma expressions.
7477
7478 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7479
7480         Further improvements to verify.h, suggested by Eric Blake.
7481         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
7482         the GL_* versions, to avoid collision with OpenGL.
7483         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
7484         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
7485         than testing merely whether it's defined.
7486
7487         Modify verify.h to pacify gcc -Wredundant_decls.
7488         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
7489         These use the prefix "GL_" since they're likely to be useful elsewhere.
7490         We may need to break them out into a different .h file.
7491         (__COUNTER__): Define to 0 if the compiler doesn't support it.
7492         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
7493         of verify_function__.
7494
7495 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
7496
7497         Tests for module pwrite.
7498         * modules/pwrite-tests: New file.
7499         * tests/test-pwrite.sh: New file.
7500         * tests/test-pwrite.c: New file.
7501
7502         New module pwrite.
7503         * lib/unistd.in.h (pwrite): New declaration.
7504         * lib/pwrite.c: New file, from glibc with modifications.
7505         * m4/pwrite.m4: New file.
7506         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
7507         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
7508         REPLACE_PWRITE.
7509         * modules/pwrite: New file.
7510         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
7511         REPLACE_PWRITE.
7512         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
7513         * doc/posix-functions/pwrite.texi: Mention the new module.
7514
7515 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
7516
7517         pread: Update documentation.
7518         * doc/posix-functions/pread.texi: Mention the 'pread' module.
7519
7520 2010-05-04  Eric Blake  <eblake@redhat.com>
7521
7522         docs: update cygwin progress
7523         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
7524         this bug.
7525         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
7526         Added in cygwin 1.7.2.
7527         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
7528         Likewise.
7529         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
7530         Likewise.
7531         * doc/glibc-functions/dup3.texi (dup3): Likewise.
7532         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7533         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7534         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
7535         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
7536         Mention nproc module.
7537         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
7538         bug in cygwin 1.7.5 addition.
7539         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
7540         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
7541         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
7542         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
7543         1.7.5.
7544         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
7545         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
7546         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
7547         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
7548         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
7549         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
7550         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
7551         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
7552         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
7553         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
7554         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
7555         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
7556         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
7557         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
7558         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
7559         Likewise.
7560         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
7561         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
7562         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
7563         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
7564         Likewise.
7565         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
7566         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
7567         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
7568         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
7569         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
7570         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
7571         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
7572         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
7573         Likewise.
7574         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
7575         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
7576         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
7577         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
7578         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
7579         Likewise.
7580         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
7581         Likewise.
7582         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
7583         Likewise.
7584         * doc/glibc-functions/xdrrec_endofrecord.texi
7585         (xdrrec_endofrecord): Likewise.
7586         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
7587         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
7588         Likewise.
7589         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
7590         Likewise.
7591
7592 2010-05-04  Jim Meyering  <meyering@redhat.com>
7593
7594         gendocs.sh: make its "-s FILE" option more useful
7595         * build-aux/gendocs.sh: When honoring the -s FILE option, update
7596         $PACKAGE to reflect the probably-different basename of "FILE".
7597
7598 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
7599
7600         bootstrap: don't ignore download_po_files failure
7601         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
7602         failure.
7603
7604 2010-05-03  Jim Meyering  <meyering@redhat.com>
7605
7606         maint.mk: allow to pass options to gendocs.sh
7607         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
7608         (gendocs_options_): New overridable variable.
7609
7610         gnu-web-doc-update: don't ignore configure or build failure
7611         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
7612
7613         announce-gen: backslash-escape '@'s in --help output
7614         * build-aux/announce-gen: Fix syntax errors.
7615
7616         maint.mk, announce-gen: allow project-specific announcement mail headers
7617         * top/maint.mk (translation_project_): Define default.
7618         (announcement_Cc_, announcement_mail_headers_): Likewise.
7619         (announcement): Invoke announce-gen with new --mail-headers option.
7620         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
7621
7622         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
7623         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
7624         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
7625         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
7626         line in the "err2" output file when running "make check" in verbose
7627         mode (i.e., with set -x enabled).
7628
7629 2010-05-03  Bruno Haible  <bruno@clisp.org>
7630
7631         wctob: Fix for weird platforms.
7632         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
7633         argument value.
7634
7635 2010-05-03  Jim Meyering  <meyering@redhat.com>
7636
7637         maint.mk: prohibit unwarranted use of <strings.h>
7638         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
7639         strings.h in a file that does not also use strcasecmp, strncasecmp,
7640         ffs or ffsll.
7641
7642         maint.mk: remove obsolete comments
7643         * top/maint.mk: Remove stale, commented-out rules.
7644
7645 2010-05-02  Bruno Haible  <bruno@clisp.org>
7646
7647         wcwidth: Declare also when it's aliased.
7648         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
7649         macro.
7650
7651 2010-05-02  Bruno Haible  <bruno@clisp.org>
7652
7653         Fix regression from 2010-04-25.
7654         * gnulib-tool (func_modules_transitive_closure): Check the status of
7655         all modules, not only of the tests that are of the form foo-tests where
7656         foo is a module.
7657
7658 2010-05-02  Bruno Haible  <bruno@clisp.org>
7659
7660         wctob: Work around nasty Cygwin 1.7.2 bug.
7661         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
7662         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
7663
7664 2010-05-01  Bruno Haible  <bruno@clisp.org>
7665
7666         fpurge: Sharper test.
7667         * tests/test-fpurge.c (main): Add one more ftell check.
7668         * modules/fpurge-tests (Depends-on): Add ftell.
7669         Suggested by Eric Blake.
7670
7671 2010-05-01  Bruno Haible  <bruno@clisp.org>
7672
7673         ftello: Another test.
7674         * tests/test-ftello3.c: New file.
7675         * modules/ftello-tests (Files): Add it.
7676         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
7677         MOSTLYCLEANFILES.
7678
7679         ftell: Another test.
7680         * tests/test-ftell3.c: New file.
7681         * modules/ftell-tests (Files): Add it.
7682         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
7683         MOSTLYCLEANFILES.
7684
7685 2010-05-01  Bruno Haible  <bruno@clisp.org>
7686
7687         ftell, ftello: Work around Solaris bug.
7688         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
7689         * lib/ftello.c: Include stdio-impl.h.
7690         (ftello): On Solaris, when _IOWRT is set, compute the result without
7691         looking at _IOREAD.
7692         * modules/ftello (Files): Add lib/stdio-impl.h.
7693         * doc/posix-functions/ftell.texi: Mention Solaris bug.
7694         * doc/posix-functions/ftello.texi: Likewise.
7695         Reported by Eric Blake.
7696
7697 2010-05-01  Bruno Haible  <bruno@clisp.org>
7698
7699         freading: Adapt to special meaning of _IOREAD flag on Solaris.
7700         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
7701         the _IOWRT flag is also set.
7702
7703 2010-05-01  Bruno Haible  <bruno@clisp.org>
7704
7705         Fix doc about a HP-UX stdio bug.
7706         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
7707         * doc/posix-functions/ftello.texi: Likewise.
7708
7709 2010-05-01  Bruno Haible  <bruno@clisp.org>
7710
7711         lseek test: Fix failure on Solaris.
7712         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
7713         output.
7714
7715 2010-04-30  Jim Meyering  <meyering@redhat.com>
7716
7717         bootstrap: don't ignore failure to generate po*/Makevars
7718         * build-aux/bootstrap (with_gettext): Don't ignore failure
7719         to create po/Makevars or runtime-po/Makevars.
7720
7721 2010-04-29  Eric Blake  <eblake@redhat.com>
7722
7723         headers: relax license to LGPLv2+
7724         * modules/fcntl-h (License): Relax license.
7725         * modules/getopt-posix (License): Likewise.
7726         * modules/locale (License): Likewise.
7727         * modules/math (License): Likewise.
7728         * modules/pty (License): Likewise.
7729         * modules/sched (License): Likewise.
7730         * modules/search (License): Likewise.
7731         * modules/spawn (License): Likewise.
7732         * modules/stdarg (License): Likewise.
7733         * modules/sysexits (License): Likewise.
7734
7735 2010-04-29  Jim Meyering  <meyering@redhat.com>
7736
7737         inttypes: relax license to LGPLv2+
7738         * modules/inttypes (License): Relax license.
7739
7740 2010-04-29  Simon Josefsson  <simon@josefsson.org>
7741
7742         * top/maint.mk (indent): Run twice to produce idempotent results.
7743
7744 2010-04-28  Bruno Haible  <bruno@clisp.org>
7745
7746         getdate: Generate getdate.c in the source directory.
7747         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
7748         MOSTLYCLEANFILES.
7749         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
7750
7751 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
7752
7753         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
7754         is not declared as a const *; avoid warnings in that case.
7755
7756 2010-04-28  Eric Blake  <eblake@redhat.com>
7757
7758         canonicalize-lgpl: avoid compiler warning
7759         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
7760         declaration' / 'extraneous semicolon' warning with some compilers.
7761         Reported by Andreas Gruenbacher.
7762
7763 2010-04-28  Jim Meyering  <meyering@redhat.com>
7764
7765         init.sh: ensure a more reliable exit status when exiting via trap
7766         * tests/init.sh (setup_): Don't rely on $? in signal handler.
7767         Inspired by patches from Dmitry V. Levin.
7768         Also trap on signal 3 (SIGQUIT).
7769
7770 2010-04-27  Bruno Haible  <bruno@clisp.org>
7771
7772         Update doc about utimes().
7773         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
7774         'utimens' module.
7775         Reported by Andreas Gruenbacher <agruen@suse.de>.
7776
7777 2010-04-27  Eric Blake  <eblake@redhat.com>
7778
7779         full-read, full-write: relax license
7780         * modules/full-read (License): Drop to LGPLv2+.
7781         * modules/full-write (License): Likewise.
7782         * modules/safe-read (License): Likewise.
7783         * modules/safe-write (License): Likewise.
7784
7785         pthread: mention library for linking
7786         * modules/pthread (Link): Mention $(LIB_PTHREAD).
7787
7788 2010-04-27  Jim Meyering  <meyering@redhat.com>
7789
7790         maint.mk: fix a bug introduced in last change
7791         * top/maint.mk (gl_assured_headers_): Now that all names are on
7792         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
7793         is not anchored to end of word, it should be adequate.
7794
7795         maint.mk: avoid side-effect in latest syntax-check
7796         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
7797         to run commands via $(shell...), and hence to incur cost only when
7798         the new rule is actually run.
7799
7800         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
7801         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
7802         and use that to create a regexp used to detect all #if HAVE_..._H uses.
7803         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
7804         (gl_assured_headers_, az_, AZ_): Define.
7805         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
7806
7807 2010-04-26  Jim Meyering  <jim@meyering.net>
7808             Bruno Haible  <bruno@clisp.org>
7809
7810         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
7811         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
7812         Prompted by an exchange with Gilles Espinasse.
7813
7814 2010-04-26  Jim Meyering  <meyering@redhat.com>
7815
7816         git-version-gen: aesthetic tweak
7817         * build-aux/git-version-gen: Use "$nl" rather than a literal,
7818         so that the command remains on a single line.
7819
7820 2010-04-26  Eric Blake  <eblake@redhat.com>
7821
7822         git-version-gen: allow use on EBCDIC hosts
7823         * build-aux/git-version-gen (dirty): Use literal rather than tying
7824         ourselves to ascii.
7825         Reported by Steve Goetze.
7826
7827 2010-04-25  Bruno Haible  <bruno@clisp.org>
7828
7829         netdb: Add support for GNULIB_POSIXCHECK.
7830         * lib/netdb.in.h: Include warn-on-use.h.
7831         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
7832         functions are used when GNULIB_POSIXCHECK is defined and the
7833         getaddrinfo module is not in use.
7834         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
7835         freeaddrinfo, gai_strerror, getnameinfo are declared.
7836         * modules/netdb (Depends-on): Add warn-on-use.
7837         (Makefile.am): Include warn-on-use.h in netdb.h.
7838
7839 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
7840
7841         build: avoid "make check" failure without .git/ directory
7842         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
7843         there is no .git/ directory.
7844
7845 2010-04-25  Bruno Haible  <bruno@clisp.org>
7846
7847         ptsname: Fix misuse of ttyname_r.
7848         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
7849         of errno.
7850
7851 2010-04-25  Bruno Haible  <bruno@clisp.org>
7852
7853         ttyname_r: Make it work on Solaris 10.
7854         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
7855         if the system function has the POSIX declaration. Test whether the
7856         function fails if the buffer is less than 128 bytes large.
7857         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
7858         system's ttyname_r function. Provide a reasonably large buffer.
7859         * modules/ttyname_r (Depends-on): Add extensions.
7860         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
7861
7862 2010-04-25  Bruno Haible  <bruno@clisp.org>
7863
7864         Use the 'extensions' module for some more functions on Solaris.
7865         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
7866         module.
7867         * doc/posix-functions/ctime_r.texi: Likewise.
7868         * doc/posix-functions/getgrgid_r.texi: Likewise.
7869         * doc/posix-functions/getgrnam_r.texi: Likewise.
7870         * doc/posix-functions/getpwnam_r.texi: Likewise.
7871         * doc/posix-functions/getpwuid_r.texi: Likewise.
7872         * doc/posix-functions/readdir_r.texi: Likewise.
7873         * doc/posix-functions/sigwait.texi: Likewise.
7874         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
7875         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
7876
7877 2010-04-25  Bruno Haible  <bruno@clisp.org>
7878
7879         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
7880         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
7881         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
7882         * lib/ttyname_r.c: Include <limits.h>.
7883         (ttyname_r): Define using the system's ttyname_r function, if it exists
7884         and not on Solaris.
7885         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
7886         set.
7887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
7888         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
7889         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
7890         Reported by Simon Josefsson.
7891
7892 2010-04-25  Bruno Haible  <bruno@clisp.org>
7893
7894         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
7895         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
7896         * doc/posix-functions/ctime_r.texi: Likewise.
7897         * doc/posix-functions/getgrgid_r.texi: Likewise.
7898         * doc/posix-functions/getgrnam_r.texi: Likewise.
7899         * doc/posix-functions/getlogin_r.texi: Likewise.
7900         * doc/posix-functions/getpwnam_r.texi: Likewise.
7901         * doc/posix-functions/getpwuid_r.texi: Likewise.
7902         * doc/posix-functions/readdir_r.texi: Likewise.
7903         * doc/posix-functions/sigwait.texi: Likewise.
7904         * doc/posix-functions/ttyname_r.texi: Likewise.
7905         Reported by Simon Josefsson.
7906
7907 2010-04-25  Bruno Haible  <bruno@clisp.org>
7908
7909         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
7910         * gnulib-tool (func_usage): Document that --with-*-tests options apply
7911         also to --create-testdir.
7912         (func_acceptable): Don't consider the status of *-tests modules here.
7913         (func_modules_transitive_closure): Consider it here, before including a
7914         test module.
7915         (func_import, func_create_testdir): Set inc_all_direct_tests,
7916         inc_all_indirect_tests.
7917         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
7918         --create-testdir and --create-megatestdir.
7919
7920 2010-04-25  Bruno Haible  <bruno@clisp.org>
7921
7922         gnulib-tool: Add --without-*-tests options.
7923         * gnulib-tool (func_usage): Document the --without-*-tests options.
7924         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
7925         excl_unportable_tests): New variables.
7926         Fail if they are specified with --import or --update.
7927         (func_acceptable): Respect the excl_*_tests variables.
7928         (func_import): Set the excl_*_tests variables to empty.
7929
7930 2010-04-25  Simon Josefsson  <simon@josefsson.org>
7931             Bruno Haible  <bruno@clisp.org>
7932
7933         Work around a MacOS X 10.4 bug with openpty.
7934         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
7935         * tests/test-openpty.c (main): Close the master side explicitly.
7936
7937 2010-04-25  Bruno Haible  <bruno@clisp.org>
7938
7939         strnlen: Fix a C++ test error on MacOS X and Solaris.
7940         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
7941         the function is not declared.
7942         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
7943         Simon Josefsson.
7944
7945 2010-04-24  Bruno Haible  <bruno@clisp.org>
7946
7947         Avoid a gcc warning.
7948         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
7949         of correct type for %08lx directive.
7950         Reported by Eric Blake.
7951
7952 2010-04-24  Bruno Haible  <bruno@clisp.org>
7953
7954         vasnprintf: Correct errno value in case of out-of-memory.
7955         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
7956         or sprintf. Use the errno value from SNPRINTF or sprintf.
7957         Reported by Ian Beckwith <ianb@erislabs.net>.
7958
7959 2010-04-24  Bruno Haible  <bruno@clisp.org>
7960
7961         ansi-c++-opt: Find correct compiler when cross-compiling.
7962         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
7963         AC_CHECK_PROGS.
7964         Reported by Simon Josefsson.
7965
7966 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
7967
7968         vc-list-files: Add support for subversion
7969         * build-aux/vc-list-files: Use "svn list" to generate the list of
7970         files controlled by subversion.
7971
7972 2010-04-23  Jim Meyering  <meyering@redhat.com>
7973
7974         vc-list-files tests: convert to use init.sh
7975         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
7976         path_prepend_.
7977         Use Exit, not exit.
7978         Use skip_ rather than open coding it.
7979         Remove trap set-up and compare definitions.
7980         * tests/test-vc-list-files-git.sh: Likewise.
7981         * modules/vc-list-files-tests (Files): Add tests/init.sh.
7982
7983 2010-04-22  Simon Josefsson  <simon@josefsson.org>
7984
7985         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
7986         backup files.
7987
7988 2010-04-21  Simon Josefsson  <simon@josefsson.org>
7989
7990         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
7991
7992 2010-04-20  Eric Blake  <eblake@redhat.com>
7993
7994         tests: be robust to ignored SIGPIPE
7995         * tests/test-select-in.sh: Consume all output.
7996         * tests/test-lseek.sh: Check correct exit status, while avoiding
7997         EPIPE.
7998
7999 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8000             Bruno Haible  <bruno@clisp.org>
8001
8002         visibility: Don't use -fvisibility if it leads to a warning.
8003         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8004         yes, don't pretend that visibility works if it leads to a warning.
8005         Reported by Mike Gran <spk121@yahoo.com>.
8006
8007 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8008
8009         * build-aux/bootstrap: Use "git -h" for testing for supported options
8010         instead of "git --help".  The short-form option only shows a summary,
8011         and doesn't layout the full man page.  Grep for the full option name
8012         in the summary, too.
8013
8014 2010-04-19  Bruno Haible  <bruno@clisp.org>
8015
8016         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8017         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8018         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8019         mention of RELOCATABLE_STRIP.
8020         Reported by Sylvain Beucler <beuc@beuc.net>.
8021
8022 2010-04-19  Bruno Haible  <bruno@clisp.org>
8023
8024         * lib/diffseq.h: Fix typo in comment.
8025         Reported by Eric Blake.
8026
8027 2010-04-19  Bruno Haible  <bruno@clisp.org>
8028
8029         ioctl: Move autoconf macro to a .m4 file.
8030         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8031         * modules/ioctl (Files): Add it.
8032         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8033         Reported by Ian Beckwith <ianb@erislabs.net>.
8034
8035 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8036             Bruno Haible  <bruno@clisp.org>
8037
8038         diffseq: Accommodate use-case with abstract arrays.
8039         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8040         is not defined.
8041         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8042         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8043
8044 2010-04-18  Bruno Haible  <bruno@clisp.org>
8045
8046         * doc/posix-headers/stdbool.texi: More precise wording.
8047
8048 2010-04-17  Jim Meyering  <meyering@redhat.com>
8049
8050         maint.mk: use gnu-style indentation in an embedded perl script
8051         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
8052         Rename variable: s/two/last_two_bytes/
8053
8054 2010-04-16  Eric Blake  <eblake@redhat.com>
8055
8056         test-stdbool: skip test that fails with Solaris CC
8057         * tests/test-stdbool.c (f): Skip test that causes compilation
8058         error under buggy C++ compiler.
8059         * lib/stdbool.in.h: Document the limitation.
8060         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8061
8062         setenv: allow compilation with C++
8063         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
8064         register keyword.
8065
8066         stdint: allow test to pass with C++
8067         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
8068
8069         getopt: allow compilation with C++
8070         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
8071         struct.
8072         * lib/getopt.c (_getopt_internal_r): Use correct type.
8073         Reported by Dagobert Michelson, via Joel E. Denny.
8074
8075 2010-04-16  Bruno Haible  <bruno@clisp.org>
8076
8077         Override netdb.h always.
8078         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
8079         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
8080         Reported by Ludovic Courtès <ludo@gnu.org>.
8081
8082 2010-04-15  Bruno Haible  <bruno@clisp.org>
8083
8084         openpty: Fix mistake from 2010-03-21.
8085         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
8086         Reported by Simon Josefsson.
8087
8088 2010-04-15  Eric Blake  <eblake@redhat.com>
8089
8090         test-forkpty: fix expected signature
8091         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
8092         Reported by Simon Josefsson.
8093
8094 2010-04-15  Jim Meyering  <meyering@redhat.com>
8095
8096         maint.mk: texinfo_suffix_re_: correct the default regexp
8097         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
8098
8099         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
8100         make it configurable via texinfo_suffix_re_.
8101
8102 2010-04-14  Eric Blake  <eblake@redhat.com>
8103
8104         strtok_r: relax license to LGPLv2+
8105         * modules/strtok_r (License): Relax license.
8106         Reported by Matthias Bolte.
8107
8108 2010-04-14  Simon Josefsson  <simon@josefsson.org>
8109
8110         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
8111         version 1.4.4 by default instead of requiring the libgcrypt
8112         version used during build.  This makes it possible to use the
8113         application with older but still binary compatible libgcrypt
8114         versions.
8115
8116 2010-04-13  Eric Blake  <eblake@redhat.com>
8117
8118         getopt-gnu: match recent glibc fixes and posix ruling
8119         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
8120         '+' handling, when requesting extensions.
8121         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
8122         'W;' handling.
8123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
8124         * doc/posix-functions/getopt.texi (getopt): Document this.
8125         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8126         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8127         Likewise.
8128
8129         getopt: merge bug fixes from glibc
8130         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
8131         diagnostics.  Honor '+:' correctly.  Reject ';'.
8132
8133         getopt-posix: detect MacOS bug
8134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
8135         optind when missing a required argument.
8136         * doc/posix-functions/getopt.texi (getopt): Document the bug.
8137         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8138         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8139         Likewise.
8140
8141         getopt-posix: avoid spurious failure on Solaris
8142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
8143         an indicator that setting optind=1 is sufficient for reset.
8144
8145         getopt-posix: avoid spurious failure on FreeBSD
8146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
8147         in POSIX mode, since the m4 test uses it.
8148
8149         gnulib-tool: silence warning on BSD sh
8150         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
8151
8152 2010-04-13  Jim Meyering  <meyering@redhat.com>
8153
8154         doc: users.txt: GNU patch now uses gnulib
8155         * users.txt: Add patch.
8156
8157 2010-04-12  Jim Meyering  <meyering@redhat.com>
8158
8159         maint.mk: generate more concise timing data for syntax-check rules
8160         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
8161         " done" from each line that reports a syntax-check test duration.
8162
8163 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
8164
8165         git-version-gen: use "git update-index..." rather than "git status"
8166         * build-aux/git-version-gen: Use git update-index --refresh, not
8167         "git status".  With some versions of git, "git status" would fail
8168         to update the index and result in an unwarranted "-dirty" suffix.
8169
8170 2010-04-11  Jim Meyering  <meyering@redhat.com>
8171
8172         openat: correct formatting (no semantic change)
8173         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
8174         Suggested by Bruno Haible.
8175
8176 2010-04-11  Bruno Haible  <bruno@clisp.org>
8177
8178         Stricter declaration checking in testdirs.
8179         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8180         If for_tests is true, augment AM_CPPFLAGS to define
8181         GNULIB_STRICT_CHECKING.
8182         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8183         GNULIB_STRICT_CHECKING is defined, verify that the function is
8184         declared.
8185
8186 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
8187             Bruno Haible  <bruno@clisp.org>
8188
8189         libunistring: Improve configure output.
8190         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
8191         Don't say "consider installing GNU libunistring" when checking again
8192         with libiconv.
8193
8194 2010-04-11  Bruno Haible  <bruno@clisp.org>
8195
8196         libunistring: Correct value of $LTLIBUNISTRING.
8197         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
8198         correct the value of $LTLIBUNISTRING.
8199
8200 2010-04-11  Bruno Haible  <bruno@clisp.org>
8201
8202         havelib: Add static libraries to LIBS in the right order.
8203         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
8204         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
8205
8206 2010-04-11  Bruno Haible  <bruno@clisp.org>
8207
8208         libunistring: Detect libunistring also when it depends on libiconv.
8209         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
8210         the second AC_LIB_HAVE_LINKFLAGS invocation.
8211
8212 2010-04-11  James Youngman  <jay@gnu.org>
8213
8214         close-stream: declare local scalars to be "const"
8215         * lib/close-stream.c (close_stream): Make boolean variables const
8216         to document the fact that we set but do not change them.
8217
8218 2010-04-11  Bruno Haible  <bruno@clisp.org>
8219
8220         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
8221
8222 2010-04-11  Jim Meyering  <meyering@redhat.com>
8223
8224         maint.mk: don't include dist-check.mk
8225         * top/maint.mk: Remove bogus include directive.
8226
8227         maint.mk: improve empty-line-at-EOF check
8228         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
8229         solution, rather than tail+Perl-based one.  The latter would read
8230         a few kilobytes from the end of each file, and did not handle empty
8231         files properly.
8232
8233         maint.mk: print the elapsed time for each syntax-check rule
8234         * top/maint.mk (sc_m_rules_): Save start time in a file.
8235         (sc_z_rules_): New rules: remove temp file and print elapsed time.
8236         (local-check): Interpose the .z rules
8237
8238 2010-04-11  Jim Meyering  <meyering@redhat.com>
8239
8240         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
8241         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
8242         empty file with one that ends in an empty line.
8243
8244 2010-04-10  Bruno Haible  <bruno@clisp.org>
8245
8246         mkdir: Make it work on mingw64.
8247         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
8248         * lib/mkdir.c: Update comment.
8249         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
8250
8251 2010-04-10  Bruno Haible  <bruno@clisp.org>
8252
8253         Don't override improved macro from newer autoconf.
8254         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
8255         autoconf >= 2.62.
8256         Reported by Joel E. Denny <jdenny@clemson.edu>.
8257
8258 2010-04-10  Jim Meyering  <meyering@redhat.com>
8259
8260         maint.mk: new syntax-check rule: prohibit empty lines at end of file
8261         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
8262
8263         maint.mk: correct a diagnostic
8264         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
8265         in diagnostic; now use $prohibit.
8266
8267 2010-04-10  Bruno Haible  <address@hidden>
8268
8269         fchownat: Fix a C++ test error on Solaris 8.
8270         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
8271         the function does not exist.
8272
8273 2010-04-10  Bruno Haible  <bruno@clisp.org>
8274
8275         vasnprintf: Add more tests.
8276         * tests/test-vasnprintf-posix.c: Include <errno.h>.
8277         (test_function): Test converting an invalid wide string.
8278
8279         vasnprintf: Correct handling of unconvertible wide string arguments.
8280         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
8281         VASNPRINTF.
8282         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
8283         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
8284         smaller than the expected maximum need for the directive. Set errno to
8285         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
8286         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
8287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
8288         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
8289         * modules/vasnprintf (Files): Add m4/printf.m4.
8290         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8291
8292 2010-04-10  Bruno Haible  <bruno@clisp.org>
8293
8294         vasnprintf: Fix crash in %ls directive.
8295         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
8296         string is passed as argument to %ls, with no precision and no width.
8297         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8298
8299 2010-04-10  Bruno Haible  <bruno@clisp.org>
8300
8301         vasnprintf: Fix multiple test failures on mingw.
8302         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
8303         _snprintf, or snwprintf, not _snwprintf.
8304
8305 2010-04-10  Bruno Haible  <bruno@clisp.org>
8306
8307         write: Fix a C++ test error on mingw.
8308         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
8309
8310 2010-04-10  Bruno Haible  <bruno@clisp.org>
8311
8312         vasnprintf test: Reduce code duplication.
8313         * tests/test-vasnprintf.c (test_function): New function, extracted from
8314         test_vasnprintf.
8315         (test_vasnprintf, test_asnprintf): Invoke it.
8316
8317 2010-04-10  Bruno Haible  <bruno@clisp.org>
8318
8319         strnlen: Fix warning in C++ mode on MacOS X.
8320         * lib/string.in.h (strnlen): Use the modern idiom.
8321         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
8322         defining strnlen as a macro already in <config.h>.
8323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8324         REPLACE_STRNLEN.
8325         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
8326         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8327
8328 2010-04-08  James Youngman  <jay@gnu.org>
8329
8330         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
8331         the example.
8332
8333 2010-04-09  Jim Meyering  <meyering@redhat.com>
8334
8335         maint.mk: print better diagnostic when there is no $(_hv_file)
8336         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
8337         announce that when $(_hv_file) (aka help-version) does not exist.
8338
8339         init.sh: run tr in the "C" locale to avoid multibyte interpretation
8340         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
8341         not try to interpret its random input bytes.  Jarno Rajahalme reported
8342         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
8343         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
8344         (mktempd_): Likewise, just in case.
8345
8346         ftruncate: add two years to projected module removal date: 2012
8347         * m4/ftruncate.m4: Adjust comments.
8348
8349         ftruncate: mark module as obsolete; even MinGW provides it, now
8350         * modules/ftruncate (Status): Obsolete.
8351         (Notice): Say that.
8352         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
8353         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
8354
8355 2010-04-08  Bruno Haible  <bruno@clisp.org>
8356
8357         Fix side effects from tests-related modules.
8358         * modules/dprintf-posix (Comment): New section.
8359         * modules/fprintf-posix (Comment): Likewise.
8360         * modules/obstack-printf-posix (Comment): Likewise.
8361         * modules/printf-posix (Comment): Likewise.
8362         * modules/snprintf-posix (Comment): Likewise.
8363         * modules/sprintf-posix (Comment): Likewise.
8364         * modules/vasnprintf-posix (Comment): Likewise.
8365         * modules/vasprintf-posix (Comment): Likewise.
8366         * modules/vdprintf-posix (Comment): Likewise.
8367         * modules/vfprintf-posix (Comment): Likewise.
8368         * modules/vprintf-posix (Comment): Likewise.
8369         * modules/vsnprintf-posix (Comment): Likewise.
8370         * modules/vsprintf-posix (Comment): Likewise.
8371         * modules/xprintf-posix (Comment): Likewise.
8372         * modules/xvasprintf-posix (Comment): Likewise.
8373         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
8374         * modules/floorf-tests (Depends-on): Likewise.
8375         * modules/round-tests (Depends-on): Likewise.
8376         * modules/roundf-tests (Depends-on): Likewise.
8377         * modules/trunc-tests (Depends-on): Likewise.
8378         * modules/truncf-tests (Depends-on): Likewise.
8379         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
8380         'fprintf-posix' module is not present.
8381         * tests/test-floorf2.c (check): Likewise.
8382         * tests/test-trunc2.c (check): Likewise.
8383         * tests/test-truncf2.c (check): Likewise.
8384         * tests/test-round2.c (equal): Likewise.
8385         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8386
8387 2010-04-07  Karl Berry  <karl@gnu.org>
8388
8389         * config/srclist.txt,
8390         * config/srclistvars.sh,
8391         * config/srclist-update: doc fixes.
8392
8393 2010-04-07  Jim Meyering  <meyering@redhat.com>
8394
8395         maint.mk: add a PATH crosschecking syntax-check rule
8396         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
8397         Useful if you use a test like the one in help-version (coreutils,
8398         diffutils, grep, gzip) that ensures $(VERSION) matches what is
8399         printed by prog --version.
8400
8401 2010-04-06  Bruno Haible  <bruno@clisp.org>
8402
8403         Fix link error on mingw.
8404         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
8405         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
8406
8407 2010-04-06  Bruno Haible  <bruno@clisp.org>
8408
8409         Assume rmdir exists.
8410         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
8411
8412 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
8413
8414         doc: update users.txt
8415         * users.txt: Add gcal.
8416
8417 2010-04-06  Jim Meyering  <meyering@redhat.com>
8418
8419         init.sh: simply unset TMPDIR rather than risking env -i
8420         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
8421         although it probably works fine on all Unix-based systems, some
8422         systems (Cygwin?) cannot tolerate a totally cleared environment.
8423         Suggestion from Eric Blake.
8424
8425 2010-04-06  Jim Meyering  <meyering@redhat.com>
8426
8427         init.sh: portability fix: use env's POSIX-specified -i option not -u
8428         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
8429         than unportable env -u.  Solaris 5.11's env lacks support for -u.
8430
8431 2010-04-05  Bruno Haible  <bruno@clisp.org>
8432
8433         btowc: Work around Cygwin 1.7.2 bug.
8434         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
8435         does not map NUL to 0.
8436         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
8437
8438 2010-04-05  Bruno Haible  <bruno@clisp.org>
8439
8440         Make the multithread modules work on Cygwin 1.7.2.
8441         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
8442         imported symbols can be declared weak, so that it returns "no" on
8443         Cygwin 1.7.2.
8444
8445 2010-04-05  Bruno Haible  <bruno@clisp.org>
8446
8447         Use the module 'strncat'.
8448         * modules/unistr/u8-strncat (Depends-on): Add strncat.
8449
8450         Tests for module 'strncat'.
8451         * modules/strncat-tests: New file.
8452         * tests/test-strncat.c: New file.
8453
8454         New module 'strncat'.
8455         * lib/string.in.h (strncat): New declaration.
8456         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
8457         * m4/strncat.m4: New file, based on m4/memchr.m4.
8458         * modules/strncat: New file.
8459         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
8460         is declared.
8461         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
8462         REPLACE_STRNCAT.
8463         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
8464         REPLACE_STRNCAT.
8465         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
8466         module.
8467         * tests/test-string-c++.cc: Check signature of strncat.
8468
8469 2010-04-05  Jim Meyering  <meyering@redhat.com>
8470
8471         xstrtoumax-tests: convert to use init.sh
8472         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
8473         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8474         Use Exit, not exit.
8475         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8476
8477         xstrtoimax-tests: convert to use init.sh
8478         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
8479         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8480         Use Exit, not exit.
8481         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8482
8483 2010-04-05  Bruno Haible  <bruno@clisp.org>
8484
8485         sys_socket: Avoid #define replacements in C++ mode.
8486         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
8487         warning to the function if possible, rather than #defining the symbol
8488         to a dysfunctional alias.
8489
8490 2010-04-05  Bruno Haible  <bruno@clisp.org>
8491
8492         fseeko: Fix C++ test error on mingw.
8493         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
8494         gl_FUNC_FSEEKO.
8495         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
8496         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
8497         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
8498         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
8499
8500 2010-04-05  Bruno Haible  <bruno@clisp.org>
8501
8502         duplocale: Improve test output.
8503         * tests/test-duplocale.c (main): Print reason for skipped test.
8504
8505 2010-04-05  Bruno Haible  <bruno@clisp.org>
8506
8507         Assume rmdir exists.
8508         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
8509         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
8510
8511 2010-04-05  Bruno Haible  <bruno@clisp.org>
8512
8513         Fix link error on Solaris 8 with cc.
8514         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
8515
8516 2010-04-05  Bruno Haible  <bruno@clisp.org>
8517
8518         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
8519         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
8520
8521 2010-04-05  Bruno Haible  <bruno@clisp.org>
8522
8523         vasprintf: Update documentation.
8524         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
8525
8526 2010-04-05  Bruno Haible  <bruno@clisp.org>
8527
8528         ptsname: Improve test.
8529         * tests/test-ptsname.c (main): Also try the various master names of BSD
8530         systems.
8531
8532 2010-04-05  Bruno Haible  <bruno@clisp.org>
8533
8534         memchr: Avoid a possible C++ test error.
8535         * lib/string.in.h (memchr): Provide declaration if function is missing.
8536         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
8537         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
8538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
8539         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
8540
8541 2010-04-05  Bruno Haible  <bruno@clisp.org>
8542
8543         strtok_r: Improve idiom.
8544         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
8545         AC_LIBOBJ is used.
8546
8547 2010-04-05  Bruno Haible  <bruno@clisp.org>
8548
8549         strdup: Improve idiom.
8550         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
8551         AC_LIBOBJ is used.
8552         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
8553         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
8554         when AC_LIBOBJ is used.
8555
8556 2010-04-05  Bruno Haible  <bruno@clisp.org>
8557
8558         mbsinit, mbrtowc, wcrtomb: Improve idioms.
8559         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
8560         don't set REPLACE_MBSINIT to 1.
8561         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
8562         don't set REPLACE_MBRTOWC to 1.
8563         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
8564         exist, don't set REPLACE_MBSRTOWCS to 1.
8565         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
8566         exist, don't set REPLACE_MBSNRTOWCS to 1.
8567         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
8568         don't set REPLACE_WCRTOMB to 1.
8569         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
8570         exist, don't set REPLACE_WCSRTOMBS to 1.
8571         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
8572         exist, don't set REPLACE_WCSNRTOMBS to 1.
8573
8574 2010-04-05  Bruno Haible  <bruno@clisp.org>
8575
8576         ldexpl: Improve idiom.
8577         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
8578         make sure to set HAVE_DECL_LDEXPL to 0.
8579
8580 2010-04-05  Jim Meyering  <meyering@redhat.com>
8581
8582         xstrtol-tests: convert to use init.sh
8583         * modules/xstrtol-tests (Files): Add tests/init.sh.
8584         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8585         Use Exit, not exit.
8586         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8587
8588         atexit-tests: convert to use init.sh
8589         * modules/atexit-tests (Files): Add tests/init.sh.
8590         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8591         Use Exit, not exit.
8592         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8593
8594         init.sh: fix typo
8595         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
8596
8597         init.sh: make it easier for a test script to write to the tty, ...
8598         when using automake's parallel-tests mode.
8599         * tests/init.sh (stderr_fileno_): Define overridable variable.
8600         (warn_): New function, to use it.
8601         (fail_, skip_, framework_failure_): Use warn_.
8602
8603 2010-04-04  Bruno Haible  <bruno@clisp.org>
8604
8605         btowc: Avoid warning.
8606         * lib/btowc.c: Include <stdlib.h>.
8607         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
8608
8609 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
8610             Bruno Haible  <bruno@clisp.org>
8611
8612         wchar: Port to NetBSD 1.5.
8613         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
8614         * lib/wctype.in.h (WEOF): Likewise.
8615
8616 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
8617             Bruno Haible  <bruno@clisp.org>
8618
8619         Port extended stdio to NetBSD 1.5.
8620         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
8621         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
8622         older.
8623
8624 2010-04-04  Bruno Haible  <bruno@clisp.org>
8625
8626         string: Remove unused substitution.
8627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
8628         HAVE_DECL_STRERROR.
8629         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
8630
8631 2010-04-04  Bruno Haible  <bruno@clisp.org>
8632
8633         strtod: Avoid a possible C++ test error.
8634         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
8635         set REPLACE_STRTOD.
8636
8637 2010-04-04  Bruno Haible  <bruno@clisp.org>
8638
8639         strerror: Update documentation.
8640         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
8641
8642 2010-04-04  Bruno Haible  <bruno@clisp.org>
8643
8644         stdio: Fix some C++ test errors on Solaris 8 with GCC.
8645         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
8646         _GL_CXXALIAS_SYS_CAST.
8647
8648 2010-04-04  Bruno Haible  <bruno@clisp.org>
8649
8650         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
8651         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
8652         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
8653         REPLACE_FREXPL to 1.
8654         * doc/posix-functions/frexpl.texi: Update documentation.
8655
8656 2010-04-04  Bruno Haible  <bruno@clisp.org>
8657
8658         math: Fix some C++ test errors on Solaris 8 and Cygwin.
8659         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
8660
8661 2010-04-04  Bruno Haible  <bruno@clisp.org>
8662
8663         Implement nanosleep for native Windows.
8664         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
8665
8666 2010-04-04  Bruno Haible  <bruno@clisp.org>
8667
8668         math: Fix some C++ test errors on Solaris 8.
8669         * lib/math.in.h (truncf, trunc): Use simpler idiom.
8670
8671 2010-04-04  Bruno Haible  <bruno@clisp.org>
8672
8673         math: Fix some C++ test errors on Cygwin.
8674         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
8675         truncl): Provide declaration if the system does not have it.
8676         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
8677         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
8678         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
8679         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
8680         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
8681         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
8682         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
8683         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
8684         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
8685         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
8686         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
8687         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
8688         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
8689         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
8690         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
8691         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
8692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
8693         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
8694         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
8695         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
8696         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
8697         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
8698
8699 2010-04-04  Bruno Haible  <bruno@clisp.org>
8700
8701         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
8702         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8703         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8704         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8705         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8706         * m4/isinf.m4 (gl_ISINF): Likewise.
8707         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8708
8709 2010-04-04  Bruno Haible  <bruno@clisp.org>
8710
8711         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
8712         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8713
8714 2010-04-04  Bruno Haible  <bruno@clisp.org>
8715
8716         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
8717         * modules/tmpfile (configure.ac): Update.
8718
8719         tmpfile: Fix C++ test error on mingw.
8720         * lib/stdio.in.h (tmpfile): New declaration.
8721         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
8722         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
8723         * modules/tmpfile (Depends-on): Add stdio.
8724         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
8725         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
8726         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
8727         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
8728         REPLACE_TMPFILE.
8729         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
8730
8731 2010-04-04  Bruno Haible  <bruno@clisp.org>
8732
8733         ioctl: Fix C++ test error on mingw.
8734         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
8735         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
8736         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
8737
8738 2010-04-03  Bruno Haible  <bruno@clisp.org>
8739
8740         wcwidth: Fix C++ test error on mingw.
8741         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
8742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
8743         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
8744
8745 2010-04-03  Bruno Haible  <bruno@clisp.org>
8746
8747         nanosleep: Fix C++ test error on mingw.
8748         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
8749         * lib/time.in.h (nanosleep): Use modern idiom.
8750         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
8751         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
8752         REPLACE_NANOSLEEP to 1.
8753         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
8754         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
8755
8756 2010-04-03  Bruno Haible  <bruno@clisp.org>
8757
8758         strptime: Fix C++ test error on mingw.
8759         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
8760         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
8761         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
8762         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
8763         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
8764         not REPLACE_STRPTIME.
8765         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
8766         REPLACE_STRPTIME.
8767
8768 2010-04-03  Bruno Haible  <bruno@clisp.org>
8769
8770         timegm: Fix C++ test error on mingw.
8771         * lib/time.in.h (timegm): Use modern idiom.
8772         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
8773         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
8774         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
8775         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
8776
8777 2010-04-03  Bruno Haible  <bruno@clisp.org>
8778
8779         timegm: Assume declaration if function exists.
8780         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
8781         if it exists. Don't clobber ac_cv_func_timegm.
8782
8783 2010-04-03  Bruno Haible  <bruno@clisp.org>
8784
8785         time_r: Fix C++ test error on mingw.
8786         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
8787         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
8788         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
8789         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
8790         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
8791
8792 2010-04-03  Bruno Haible  <bruno@clisp.org>
8793
8794         time_r: Minor updates.
8795         * modules/time_r (Description): Mention the provided functions.
8796         * lib/time_r.c: Don't include <string.h>.
8797         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
8798         * doc/posix-functions/localtime_r.texi: Likewise.
8799
8800 2010-04-03  Bruno Haible  <bruno@clisp.org>
8801
8802         time: Fix regression introduced on 2010-03-08.
8803         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
8804         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
8805
8806 2010-04-03  Jim Meyering  <meyering@redhat.com>
8807
8808         maint.mk: don't silently disable project-specific syntax-check rules
8809         * top/maint.mk (_prohibit_regexp): Define, to help people realize
8810         that they need to convert their project-specific syntax-check rules
8811         to use the new _sc_search_regexp.
8812
8813 2010-04-03  Bruno Haible  <bruno@clisp.org>
8814
8815         fchdir: Fix regression introduced on 2010-03-08.
8816         * lib/unistd.in.h (fchdir): Fix declaration.
8817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
8818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
8819         REPLACE_FCHDIR.
8820         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
8821         REPLACE_FCHDIR.
8822
8823 2010-04-03  Bruno Haible  <bruno@clisp.org>
8824
8825         getpagesize: Fix C++ test error on mingw.
8826         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
8827         system does not declare the function.
8828         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
8829         declared.
8830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8831         HAVE_DECL_GETPAGESIZE.
8832         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
8833
8834 2010-04-03  Bruno Haible  <bruno@clisp.org>
8835
8836         stdio: Make C++ tests work on mingw.
8837         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
8838         does not declare the function.
8839
8840 2010-04-03  Bruno Haible  <bruno@clisp.org>
8841
8842         ftello: Fix C++ test error on mingw.
8843         * lib/stdio.in.h (ftello): Use modern idiom.
8844         * lib/ftello.c (ftello): Renamed from rpl_ftello.
8845         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
8846         is missing and that it needs to be replaced.
8847         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
8848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
8849         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
8850
8851 2010-04-03  Bruno Haible  <bruno@clisp.org>
8852
8853         fseeko: Fix C++ test error on mingw.
8854         * lib/stdio.in.h (fseeko): Use modern idiom.
8855         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
8856         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
8857         is missing and that it needs to be replaced.
8858         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
8859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
8860         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
8861
8862 2010-04-03  Bruno Haible  <bruno@clisp.org>
8863
8864         mkstemp: Fix C++ test error on mingw.
8865         * lib/stdlib.in.h (mkstemp): Use modern idiom.
8866         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
8867         function is missing and that it needs to be replaced.
8868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
8869         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
8870
8871 2010-04-03  Bruno Haible  <bruno@clisp.org>
8872
8873         stpncpy: Fix C++ test error on mingw.
8874         * lib/string.in.h (stpncpy): Use modern idiom.
8875         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
8876         function is missing and that it needs to be replaced.
8877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8878         REPLACE_STPNCPY.
8879         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
8880
8881 2010-04-03  Bruno Haible  <bruno@clisp.org>
8882
8883         sys_stat: Fix C++ test error on mingw.
8884         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
8885         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
8886
8887 2010-04-03  Bruno Haible  <bruno@clisp.org>
8888
8889         pty: Update doc.
8890         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
8891
8892 2010-04-03  Bruno Haible  <bruno@clisp.org>
8893
8894         unistd: Fix C++ test error on mingw.
8895         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
8896
8897 2010-04-03  Bruno Haible  <bruno@clisp.org>
8898
8899         Update doc regarding mingw.
8900         * doc/glibc-functions/openpty.texi: Update regarding mingw.
8901         * doc/glibc-functions/login_tty.texi: Likewise.
8902         * doc/glibc-functions/forkpty.texi: Likewise.
8903
8904 2010-04-03  Bruno Haible  <bruno@clisp.org>
8905
8906         stdlib: Avoid compilation failure of c-strtold on mingw.
8907         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
8908
8909 2010-04-03  Bruno Haible  <bruno@clisp.org>
8910
8911         locale: Make C++ tests work on Cygwin and mingw.
8912         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
8913         cannot provide the function.
8914         Reported by Simon Josefsson.
8915
8916 2010-04-03  Bruno Haible  <bruno@clisp.org>
8917
8918         localename: Port to MacOS X 10.6.
8919         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
8920         memory layout of the locales in MacOS X 10.6 as well.
8921         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
8922
8923 2010-04-02  Bruno Haible  <bruno@clisp.org>
8924
8925         gnulib-tool: Ensure that long-running tests are executed last.
8926         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
8927         running tests after the one for the other tests.
8928
8929 2010-04-02  Bruno Haible  <bruno@clisp.org>
8930
8931         gnulib-tool: Ensure the tests in the main directory are executed first.
8932         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
8933         start with the current directory.
8934
8935 2010-04-02  Bruno Haible  <bruno@clisp.org>
8936
8937         Tests for module 'havelib', moved here from GNU gettext.
8938         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
8939         modifications.
8940         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
8941         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
8942         with modifications.
8943         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
8944         modifications.
8945         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
8946         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
8947         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
8948         with modifications.
8949         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
8950         with modifications.
8951         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
8952         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
8953         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
8954         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
8955         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
8956         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
8957         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
8958         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
8959         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
8960         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
8961         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
8962         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
8963         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
8964         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
8965         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
8966         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
8967         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
8968         with modifications.
8969         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
8970         with modifications.
8971         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
8972         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
8973         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
8974         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
8975         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
8976         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
8977         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
8978         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
8979         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
8980         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
8981         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
8982         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
8983         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
8984         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
8985         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
8986         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
8987         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
8988         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
8989         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
8990         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
8991         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
8992         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
8993         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
8994         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
8995         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
8996         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
8997         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
8998         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
8999         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9000         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9001         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9002         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9003         * tests/havelib/rpathx/rpathx.c: New file, from
9004         gettext/autoconf-lib-link.
9005         * tests/havelib/rpathx/Makefile.am: New file, from
9006         gettext/autoconf-lib-link.
9007         * tests/havelib/rpathx/configure.ac: New file, from
9008         gettext/autoconf-lib-link with modifications.
9009         * tests/havelib/rpathy/rpathy.c: New file, from
9010         gettext/autoconf-lib-link.
9011         * tests/havelib/rpathy/Makefile.am: New file, from
9012         gettext/autoconf-lib-link.
9013         * tests/havelib/rpathy/configure.ac: New file, from
9014         gettext/autoconf-lib-link with modifications.
9015         * tests/havelib/rpathz/rpathz.c: New file, from
9016         gettext/autoconf-lib-link.
9017         * tests/havelib/rpathz/Makefile.am: New file, from
9018         gettext/autoconf-lib-link.
9019         * tests/havelib/rpathz/configure.ac: New file, from
9020         gettext/autoconf-lib-link with modifications.
9021         * tests/havelib/rpathlx/usex.c: New file, from
9022         gettext/autoconf-lib-link.
9023         * tests/havelib/rpathlx/Makefile.am: New file, from
9024         gettext/autoconf-lib-link.
9025         * tests/havelib/rpathlx/configure.ac: New file, from
9026         gettext/autoconf-lib-link with modifications.
9027         * tests/havelib/rpathly/usey.c: New file, from
9028         gettext/autoconf-lib-link.
9029         * tests/havelib/rpathly/Makefile.am: New file, from
9030         gettext/autoconf-lib-link.
9031         * tests/havelib/rpathly/configure.ac: New file, from
9032         gettext/autoconf-lib-link with modifications.
9033         * tests/havelib/rpathlz/usez.c: New file, from
9034         gettext/autoconf-lib-link.
9035         * tests/havelib/rpathlz/Makefile.am: New file, from
9036         gettext/autoconf-lib-link.
9037         * tests/havelib/rpathlz/configure.ac: New file, from
9038         gettext/autoconf-lib-link with modifications.
9039         * tests/havelib/rpathlyx/usey.c: New file, from
9040         gettext/autoconf-lib-link.
9041         * tests/havelib/rpathlyx/Makefile.am: New file, from
9042         gettext/autoconf-lib-link.
9043         * tests/havelib/rpathlyx/configure.ac: New file, from
9044         gettext/autoconf-lib-link with modifications.
9045         * tests/havelib/rpathlzyx/usez.c: New file, from
9046         gettext/autoconf-lib-link.
9047         * tests/havelib/rpathlzyx/Makefile.am: New file, from
9048         gettext/autoconf-lib-link.
9049         * tests/havelib/rpathlzyx/configure.ac: New file, from
9050         gettext/autoconf-lib-link with modifications.
9051         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
9052         with modifications.
9053
9054 2010-04-02  Bruno Haible  <bruno@clisp.org>
9055
9056         gnulib-tool: Create distributed built sources also for the tests.
9057         * gnulib-tool (func_create_testdir): Also generate distributed built
9058         sources in the tests directory.
9059
9060 2010-04-02  Bruno Haible  <bruno@clisp.org>
9061
9062         gnulib-tool: Obey user's environment variables.
9063         * gnulib-tool (func_create_testdir): When creating built sources,
9064         respect the environment variables for autoconf, automake, etc. given by
9065         the user.
9066
9067 2010-04-02  Bruno Haible  <bruno@clisp.org>
9068
9069         gnulib-tool: Provide the value of --m4-base to modules.
9070         * gnulib-tool (func_import, func_create_testdir): Emit a definition
9071         of gl_m4_base.
9072
9073 2010-04-02  Eric Blake  <eblake@redhat.com>
9074
9075         maint.mk: fix some fallout
9076         * NEWS: Document the incompatible change, and its effect on cfg.mk.
9077         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
9078
9079 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9080
9081         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
9082         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
9083         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
9084         (sc_cast_of_x_alloc_return_value): Likewise.
9085         (sc_cast_of_alloca_return_value): Likewise.
9086         (sc_space_tab): Likewise.
9087         (sc_prohibit_atoi_atof): Likewise.
9088         (sc_prohibit_magic_number_exit): Likewise.
9089         (sc_error_exit_success): Likewise.
9090         (sc_file_system): Likewise.
9091         (sc_prohibit_have_config_h): Likewise.
9092         (sc_require_config_h): Likewise.
9093         (sc_prohibit_HAVE_MBRTOWC): Likewise.
9094         (sc_obsolete_symbols): Likewise.
9095         (sc_changelog): Likewise.
9096         (sc_program_name): Likewise.
9097         (sc_the_the): Likewise.
9098         (sc_trailing_blank): Likewise.
9099         (sc_two_space_separator_in_usage): Likewise.
9100         (sc_useless_cpp_parens): Likewise.
9101         (sc_GPL_version): Likewise.
9102         (sc_GFDL_version): Likewise.
9103         (sc_texinfo_acronym): Likewise.
9104         (sc_prohibit_cvs_keyword): Likewise.
9105         (sc_prohibit_stat_st_blocks): Likewise.
9106         (sc_prohibit_S_IS_definition): Likewise.
9107         (sc_redundant_const): Likewise.
9108         (sc_makefile_TAB_only_indentation): Likewise.
9109         (sc_m4_quote_check): Likewise.
9110         (sc_makefile_path_separator_check): Likewise.
9111         (sc_copyright_check): Likewise.
9112         (sc_Wundef_boolean): Likewise.
9113         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9114
9115         maint.mk: match 0 or more whitespace-before-function-call '('
9116         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
9117         that have zero or two-and-more spaces between the function name
9118         and the open parenthesis.
9119         (sc_error_message_warn_fatal): Likewise.
9120         (sc_error_message_uppercase): Likewise.
9121         (sc_error_message_period): Likewise.
9122
9123 2010-03-31  Eric Blake  <eblake@redhat.com>
9124
9125         maint.mk: check for [ as well as test
9126         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
9127         Based on a libvirt report by Matthias Bolte.
9128
9129         gnumakefile: don't squelch _version output
9130         * top/GNUmakefile (_version): Create one-shot dependency rather
9131         than using $(shell) when version must be regenerated.
9132         (_autoreconf): Run verbosely, by default.
9133
9134         sys_time: avoid compiler warnings
9135         * lib/sys_time.in.h (includes): Ensure gcc pragma is
9136         unconditional, fixing regression from 2010-03-29.
9137         Reported by Simon Josefsson.
9138
9139 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9140
9141         maint.mk: s/_header_without_use/_sc_header_without_use/
9142         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
9143         (sc_prohibit_assert_without_use): Use the new name.
9144         (sc_prohibit_close_stream_without_use): Likewise.
9145         (sc_prohibit_getopt_without_use): Likewise.
9146         (sc_prohibit_quotearg_without_use): Likewise.
9147         (sc_prohibit_quote_without_use): Likewise.
9148         (sc_prohibit_long_options_without_use): Likewise.
9149         (sc_prohibit_inttostr_without_use): Likewise.
9150         (sc_prohibit_ignore_value_without_use): Likewise.
9151         (sc_prohibit_error_without_use): Likewise.
9152         (sc_prohibit_xalloc_without_use): Likewise.
9153         (sc_prohibit_hash_without_use): Likewise.
9154         (sc_prohibit_hash_pjw_without_use): Likewise.
9155         (sc_prohibit_safe_read_without_use): Likewise.
9156         (sc_prohibit_argmatch_without_use): Likewise.
9157         (sc_prohibit_canonicalize_without_use): Likewise.
9158         (sc_prohibit_root_dev_ino_without_use): Likewise.
9159         (sc_prohibit_openat_without_use): Likewise.
9160         (sc_prohibit_c_ctype_without_use): Likewise.
9161         (sc_prohibit_signal_without_use): Likewise.
9162         (sc_prohibit_intprops_without_use): Likewise.
9163
9164 2010-03-30  Eric Blake  <eblake@redhat.com>
9165
9166         maint: improve module indicators
9167         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
9168         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
9169         columns, and avoid extra macro expansion.
9170
9171         fdopendir: work around FreeBSD bug
9172         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9173         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
9174         * modules/dirent (Makefile.am): Substitute it.
9175         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
9176         declaration.
9177         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
9178         fix.
9179         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9180
9181 2010-03-29  Bruno Haible  <bruno@clisp.org>
9182
9183         Emit #pragma system_header after the inclusion guard, not before.
9184         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
9185         guard that spans the entire file, not before. This enables an
9186         optimization in GCC's preprocessor.
9187         * lib/ctype.in.h: Likewise.
9188         * lib/dirent.in.h: Likewise.
9189         * lib/errno.in.h: Likewise.
9190         * lib/float.in.h: Likewise.
9191         * lib/getopt.in.h: Likewise.
9192         * lib/iconv.in.h: Likewise.
9193         * lib/langinfo.in.h: Likewise.
9194         * lib/locale.in.h: Likewise.
9195         * lib/math.in.h: Likewise.
9196         * lib/netdb.in.h: Likewise.
9197         * lib/netinet_in.in.h: Likewise.
9198         * lib/pty.in.h: Likewise.
9199         * lib/sched.in.h: Likewise.
9200         * lib/se-selinux.in.h: Likewise.
9201         * lib/search.in.h: Likewise.
9202         * lib/spawn.in.h: Likewise.
9203         * lib/stdarg.in.h: Likewise.
9204         * lib/stdint.in.h: Likewise.
9205         * lib/string.in.h: Likewise.
9206         * lib/strings.in.h: Likewise.
9207         * lib/sys_file.in.h: Likewise.
9208         * lib/sys_ioctl.in.h: Likewise.
9209         * lib/sys_time.in.h: Likewise.
9210         * lib/sys_times.in.h: Likewise.
9211         * lib/sys_utsname.in.h: Likewise.
9212         * lib/sys_wait.in.h: Likewise.
9213         * lib/sysexits.in.h: Likewise.
9214         * lib/wctype.in.h: Likewise.
9215
9216 2010-03-28  James Youngman  <jay@gnu.org>
9217
9218         save-cwd: don't leak a file descriptor when the caller execs.
9219         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
9220         saved file descriptor.
9221         * modules/save-cwd (Depends-on): Depend on cloexec.
9222
9223 2010-03-29  Bruno Haible  <bruno@clisp.org>
9224
9225         Remove vestiges of fts-lgpl module.
9226         * lib/fts_.h: Assume GNULIB_FTS is 1.
9227         * lib/fts.c: Likewise.
9228         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9229
9230 2010-03-28  Bruno Haible  <bruno@clisp.org>
9231
9232         Fix definition of tests witness macro.
9233         * gnulib-tool (func_import): Fix definition of witness macro.
9234
9235 2010-03-28  Bruno Haible  <bruno@clisp.org>
9236
9237         Fix ioctl's protoype on glibc systems.
9238         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
9239         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
9240         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
9241         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
9242         signature. If not, arrange to replace the ioctl function.
9243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9244         REPLACE_IOCTL.
9245         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
9246         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
9247         Reported by Ludovic Courtès <ludo@gnu.org>.
9248
9249 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
9250
9251         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
9252         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
9253         made it so grep -r --include=GLOB* ... did not work.
9254
9255 2010-03-26  Jim Meyering  <meyering@redhat.com>
9256             Eric Blake  <eblake@redhat.com>
9257
9258         maint.mk: prohibit use of test's -o and -a operators
9259         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
9260
9261 2010-03-28  Bruno Haible  <bruno@clisp.org>
9262
9263         Remove unused GNULIB_XYZ macro definitions.
9264         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
9265         invocation.
9266
9267 2010-03-28  Bruno Haible  <bruno@clisp.org>
9268
9269         Mark privileged tests modules.
9270         * modules/idpriv-drop-tests (Status): New section.
9271         * modules/idpriv-droptemp-tests (Status): New section.
9272
9273 2010-03-28  Bruno Haible  <bruno@clisp.org>
9274
9275         Split C++ tests into separate tests modules.
9276         * modules/dirent-c++-tests: New file, extracted from
9277         modules/dirent-tests.
9278         * modules/dirent-tests: Depend on it.
9279         * modules/fcntl-h-c++-tests: New file, extracted from
9280         modules/fcntl-h-tests.
9281         * modules/fcntl-h-tests: Depend on it.
9282         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
9283         * modules/glob-tests: Depend on it.
9284         * modules/iconv-h-c++-tests: New file, extracted from
9285         modules/iconv-h-tests.
9286         * modules/iconv-h-tests: Depend on it.
9287         * modules/langinfo-c++-tests: New file, extracted from
9288         modules/langinfo-tests.
9289         * modules/langinfo-tests: Depend on it.
9290         * modules/locale-c++-tests: New file, extracted from
9291         modules/locale-tests.
9292         * modules/locale-tests: Depend on it.
9293         * modules/math-c++-tests: New file, extracted from modules/math-tests.
9294         * modules/math-tests: Depend on it.
9295         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
9296         * modules/pty-tests: Depend on it.
9297         * modules/search-c++-tests: New file, extracted from
9298         modules/search-tests.
9299         * modules/search-tests: Depend on it.
9300         * modules/signal-c++-tests: New file, extracted from
9301         modules/signal-tests.
9302         * modules/signal-tests: Depend on it.
9303         * modules/spawn-c++-tests: New file, extracted from
9304         modules/spawn-tests.
9305         * modules/spawn-tests: Depend on it.
9306         * modules/stdio-c++-tests: New file, extracted from
9307         modules/stdio-tests.
9308         * modules/stdio-tests: Depend on it.
9309         * modules/stdlib-c++-tests: New file, extracted from
9310         modules/stdlib-tests.
9311         * modules/stdlib-tests: Depend on it.
9312         * modules/string-c++-tests: New file, extracted from
9313         modules/string-tests.
9314         * modules/string-tests: Depend on it.
9315         * modules/sys_ioctl-c++-tests: New file, extracted from
9316         modules/sys_ioctl-tests.
9317         * modules/sys_ioctl-tests: Depend on it.
9318         * modules/sys_select-c++-tests: New file, extracted from
9319         modules/sys_select-tests.
9320         * modules/sys_select-tests: Depend on it.
9321         * modules/sys_socket-c++-tests: New file, extracted from
9322         modules/sys_socket-tests.
9323         * modules/sys_socket-tests: Depend on it.
9324         * modules/sys_stat-c++-tests: New file, extracted from
9325         modules/sys_stat-tests.
9326         * modules/sys_stat-tests: Depend on it.
9327         * modules/sys_time-c++-tests: New file, extracted from
9328         modules/sys_time-tests.
9329         * modules/sys_time-tests: Depend on it.
9330         * modules/time-c++-tests: New file, extracted from modules/time-tests.
9331         * modules/time-tests: Depend on it.
9332         * modules/unistd-c++-tests: New file, extracted from
9333         modules/unistd-tests.
9334         * modules/unistd-tests: Depend on it.
9335         * modules/wchar-c++-tests: New file, extracted from
9336         modules/wchar-tests.
9337         * modules/wchar-tests: Depend on it.
9338         * modules/wctype-c++-tests: New file, extracted from
9339         modules/wctype-tests.
9340         * modules/wctype-tests: Depend on it.
9341         Reported by Simon Josefsson.
9342
9343 2010-03-28  Bruno Haible  <bruno@clisp.org>
9344
9345         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
9346         * gnulib-tool (func_exists_module): New function, extracted from
9347         func_verify_module.
9348         (func_verify_module): Use it.
9349         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
9350         'foo' only if 'foo' exists.
9351         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
9352         module.
9353
9354 2010-03-28  Bruno Haible  <bruno@clisp.org>
9355
9356         gnulib-tool: Add support for special categories of tests.
9357         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
9358         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
9359         (func_usage): Document them.
9360         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
9361         inc_unportable_tests, inc_all_tests): New variables.
9362         (func_acceptable): Consider these variables.
9363         (func_modules_transitive_closure): Make it work when the 'Status' field
9364         consists of multiple words.
9365         (func_import): Store and restore the values of inc_cxx_tests,
9366         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
9367         inc_all_tests in gnulib-comp.m4.
9368         (func_create_testdir): Set inc_all_tests to true.
9369         * doc/gnulib.texi (Extra tests modules): New section.
9370         Suggested by Jim Meyering.
9371
9372 2010-03-28  Bruno Haible  <bruno@clisp.org>
9373
9374         ansi-c++-opt: Allow turning off the C++ build by default.
9375         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
9376         gl_CXX_CHOICE_DEFAULT_NO is defined.
9377         Requested by Eric Blake.
9378
9379 2010-03-28  Bruno Haible  <bruno@clisp.org>
9380
9381         unistd: Avoid #define replacements in C++ mode.
9382         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9383         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9384         setsockopt, shutdown, select): In C++, attach a warning to the function
9385         if possible, rather than #defining the symbol to a dysfunctional alias.
9386         Reported by John W. Eaton <jwe@gnu.org>.
9387
9388 2010-03-28  Bruno Haible  <bruno@clisp.org>
9389
9390         Fix link errors on mingw.
9391         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
9392         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
9393         $(LIBSOCKET).
9394         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
9395         $(LIBSOCKET).
9396
9397 2010-03-28  Bruno Haible  <bruno@clisp.org>
9398             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9399
9400         lib-ignore: Determine different options for different compilers.
9401         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
9402         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
9403         Add comments.
9404         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
9405         * NEWS: Mention the change.
9406
9407 2010-03-27  Bruno Haible  <bruno@clisp.org>
9408
9409         Remove unused GNULIB_XYZ macro definitions.
9410         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9411         * modules/fseek (configure.ac): Likewise.
9412         * modules/ioctl (configure.ac): Likewise.
9413         * modules/open (configure.ac): Likewise.
9414         * modules/stdlib-safer (configure.ac): Likewise.
9415
9416 2010-03-27  Bruno Haible  <bruno@clisp.org>
9417
9418         Add a remark about certain modules.
9419         * modules/malloc (Comment): New section.
9420         * modules/realloc (Comment): Likewise.
9421         * modules/sigpipe (Comment): Likewise.
9422
9423 2010-03-27  Bruno Haible  <bruno@clisp.org>
9424
9425         Resolve conflict between the two kinds of module indicators.
9426         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
9427         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
9428         * modules/canonicalize (configure.ac): Invoke
9429         gl_MODULE_INDICATOR_FOR_TESTS.
9430         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
9431         GNULIB_XYZ.
9432         * tests/test-dirent-c++.cc: Likewise.
9433         * tests/test-dirent-safer.c: Likewise.
9434         * tests/test-dup2.c: Likewise.
9435         * tests/test-fchdir.c: Likewise.
9436         * tests/test-fcntl-h-c++.cc: Likewise.
9437         * tests/test-getopt.c: Likewise.
9438         * tests/test-getopt.h: Likewise.
9439         * tests/test-langinfo-c++.cc: Likewise.
9440         * tests/test-locale-c++.cc: Likewise.
9441         * tests/test-math-c++.cc: Likewise.
9442         * tests/test-pty-c++.cc: Likewise.
9443         * tests/test-search-c++.cc: Likewise.
9444         * tests/test-signal-c++.cc: Likewise.
9445         * tests/test-spawn-c++.cc: Likewise.
9446         * tests/test-stdio-c++.cc: Likewise.
9447         * tests/test-stdlib-c++.cc: Likewise.
9448         * tests/test-string-c++.cc: Likewise.
9449         * tests/test-sys_ioctl-c++.cc: Likewise.
9450         * tests/test-sys_select-c++.cc: Likewise.
9451         * tests/test-sys_socket-c++.cc: Likewise.
9452         * tests/test-sys_stat-c++.cc: Likewise.
9453         * tests/test-sys_time-c++.cc: Likewise.
9454         * tests/test-time-c++.cc: Likewise.
9455         * tests/test-unistd-c++.cc: Likewise.
9456         * tests/test-wchar-c++.cc: Likewise.
9457         * tests/uninorm/test-u8-nfc.c: Likewise.
9458         * tests/uninorm/test-u8-nfd.c: Likewise.
9459         * tests/uninorm/test-u8-nfkc.c: Likewise.
9460         * tests/uninorm/test-u8-nfkd.c: Likewise.
9461         * tests/uninorm/test-u16-nfc.c: Likewise.
9462         * tests/uninorm/test-u16-nfd.c: Likewise.
9463         * tests/uninorm/test-u16-nfkc.c: Likewise.
9464         * tests/uninorm/test-u16-nfkd.c: Likewise.
9465         * tests/uninorm/test-u32-nfc.c: Likewise.
9466         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9467         * tests/uninorm/test-u32-nfd.c: Likewise.
9468         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9469         * tests/uninorm/test-u32-nfkc.c: Likewise.
9470         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9471         * tests/uninorm/test-u32-nfkd.c: Likewise.
9472         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9473         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9474
9475 2010-03-27  Bruno Haible  <bruno@clisp.org>
9476
9477         Distinguish two kinds of module indicators.
9478         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
9479         gl_MODULE_INDICATOR.
9480         (gl_MODULE_INDICATOR): New macro.
9481         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9482         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
9483         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9484         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9485         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9486         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9487         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9488         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9489         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9490         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9491         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9492         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9494         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
9495         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
9496         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
9497         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
9498         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
9499         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
9500         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
9501         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
9502         * modules/cloexec (configure.ac): Likewise.
9503         * modules/getopt-gnu (configure.ac): Likewise.
9504         * modules/uninorm/u8-normalize (configure.ac): Likewise.
9505         * modules/uninorm/u16-normalize (configure.ac): Likewise.
9506         * modules/uninorm/u32-normalize (configure.ac): Likewise.
9507         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
9508
9509 2010-03-27  Bruno Haible  <bruno@clisp.org>
9510
9511         New module description field 'Comment'.
9512         * gnulib-tool: New option --extract-comment.
9513         (func_usage): Document it.
9514         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
9515         (func_get_comment): New function.
9516         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
9517
9518 2010-03-27  Bruno Haible  <bruno@clisp.org>
9519
9520         Addendum to 2010-02-07 commit.
9521         * gnulib-tool (func_usage): Document --extract-applicability option.
9522
9523 2010-03-27  Bruno Haible  <bruno@clisp.org>
9524
9525         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
9526         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
9527         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
9528         rather than link errors.
9529
9530 2010-03-27  Bruno Haible  <bruno@clisp.org>
9531
9532         Avoid side effects from tests-related modules on the compilation of lib.
9533         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
9534         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
9535         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
9536         parameter. Emit into AM_CPPFLAGS a definition of the designated C
9537         macro.
9538         (func_import): Define a witness macro. Assign it a value that depends
9539         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
9540         tests-related modules.
9541         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
9542         Reported by Jim Meyering.
9543
9544 2010-03-27  Bruno Haible  <bruno@clisp.org>
9545
9546         Factorize common .m4 code.
9547         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
9548         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
9549         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
9550         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
9551         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9552         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
9553         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
9554         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9555         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9556         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9557         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
9558         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9559         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9560         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9561         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9562         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
9563         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9564         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9566         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
9567         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
9568         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
9569         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
9570         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
9571         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
9572         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
9573         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
9574         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
9575         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
9576         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
9577         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
9578         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
9579
9580 2010-03-27  Bruno Haible  <bruno@clisp.org>
9581
9582         Fix a compilation error on Cygwin with g++ >= 4.3.
9583         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
9584         if it is undefined or if we alias it to chmod.
9585         (lstat): Don't warn about the use of this function if it is undefined
9586         or if we alias it to stat.
9587         Reported by Simon Josefsson.
9588
9589 2010-03-27  Bruno Haible  <bruno@clisp.org>
9590
9591         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
9592         * modules/getlogin (configure.ac): Update.
9593
9594         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
9595         * modules/getlogin_r (configure.ac): Update.
9596
9597         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
9598         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
9599         * modules/inet_ntop (configure.ac): Update.
9600
9601         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
9602         * modules/inet_pton (configure.ac): Update.
9603
9604         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
9605         * modules/mbslen (configure.ac): Update.
9606
9607         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
9608         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
9609         * modules/forkpty (configure.ac): Update.
9610         * modules/openpty (configure.ac): Update.
9611
9612 2010-03-26  Simon Josefsson  <simon@josefsson.org>
9613
9614         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
9615         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
9616
9617 2010-03-25  Eric Blake  <eblake@redhat.com>
9618
9619         maint: use pragma consistently across replacement headers
9620         * lib/ctype.in.h (system_header): Hoist for consistent placement.
9621         * lib/dirent.in.h (system_header): Likewise.
9622         * lib/errno.in.h (system_header): Likewise.
9623         * lib/float.in.h (system_header): Likewise.
9624         * lib/getopt.in.h (system_header): Likewise.
9625         * lib/iconv.in.h (system_header): Likewise.
9626         * lib/inttypes.in.h (system_header): Likewise.
9627         * lib/langinfo.in.h (system_header): Likewise.
9628         * lib/locale.in.h (system_header): Likewise.
9629         * lib/math.in.h (system_header): Likewise.
9630         * lib/netdb.in.h (system_header): Likewise.
9631         * lib/netinet_in.in.h (system_header): Likewise.
9632         * lib/pty.in.h (system_header): Likewise.
9633         * lib/sched.in.h (system_header): Likewise.
9634         * lib/se-selinux.in.h (system_header): Likewise.
9635         * lib/search.in.h (system_header): Likewise.
9636         * lib/spawn.in.h (system_header): Likewise.
9637         * lib/stdarg.in.h (system_header): Likewise.
9638         * lib/stdint.in.h (system_header): Likewise.
9639         * lib/string.in.h (system_header): Likewise.
9640         * lib/strings.in.h (system_header): Likewise.
9641         * lib/sys_file.in.h (system_header): Likewise.
9642         * lib/sys_ioctl.in.h (system_header): Likewise.
9643         * lib/sys_socket.in.h (system_header): Likewise.
9644         * lib/sys_times.in.h (system_header): Likewise.
9645         * lib/sys_utsname.in.h (system_header): Likewise.
9646         * lib/sys_wait.in.h (system_header): Likewise.
9647         * lib/sysexits.in.h (system_header): Likewise.
9648         * lib/unistd.in.h (system_header): Likewise.
9649         * lib/wctype.in.h (system_header): Likewise.
9650
9651         arpa/inet: fix mingw compilation warning
9652         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
9653         Reported by Matthew Bolte.
9654
9655 2010-03-25  Bruno Haible  <bruno@clisp.org>
9656
9657         Avoid collision between gnulib wrapper and libintl wrapper.
9658         * lib/printf.c (printf): Don't define if a printf wrapper is already
9659         defined in intl/printf.c.
9660         Reported by Michel Boaventura <michel@michelboaventura.com>.
9661
9662 2010-03-25  Bruno Haible  <bruno@clisp.org>
9663
9664         Use ANSI C.
9665         * lib/readutmp.h (getutent): Provide ANSI C prototype.
9666
9667 2010-03-25  Bruno Haible  <bruno@clisp.org>
9668
9669         Minor formatting changes.
9670         * lib/acosl.c: Insert space before function argument list.
9671         * lib/argz.c: Likewise.
9672         * lib/asinl.c: Likewise.
9673         * lib/expl.c: Likewise.
9674         * lib/gen-uni-tables.c: Likewise.
9675         * lib/gettext.h: Likewise.
9676         * lib/glthread/lock.h: Likewise.
9677         * lib/tanl.c: Likewise.
9678         * lib/uniname/uniname.c: Likewise.
9679         * tests/test-idpriv-drop.c: Likewise.
9680         * tests/test-idpriv-droptemp.c: Likewise.
9681         * tests/test-lock.c: Likewise.
9682         * tests/test-tls.c: Likewise.
9683         * lib/argp-help.c: Insert space before function-like macro argument
9684         list.
9685         * lib/memcmp.c: Likewise.
9686         * tests/test-base64.c: Likewise.
9687         * lib/localename.c: Insert space before sizeof's argument list.
9688         * lib/safe-alloc.h: Likewise.
9689         * lib/file-set.h: Insert space before macro argument list.
9690         * tests/test-argp.c: Likewise.
9691         * lib/argp-namefrob.h: Insert space before function parameter list.
9692         * lib/getaddrinfo.c: Likewise.
9693         * lib/netdb.in.h: Likewise.
9694         * lib/parse-duration.h: Likewise.
9695         * lib/parse-duration.c: Likewise.
9696         * lib/poll.c: Likewise.
9697         * lib/select.c: Likewise.
9698         * lib/trim.h: Likewise.
9699         * tests/test-usleep.c: Likewise.
9700         * lib/ldexpl.c: Insert space before function parameter list and before
9701         function argument list.
9702         * lib/logl.c: Likewise.
9703         * lib/sqrtl.c: Likewise.
9704         * lib/trim.c: Likewise.
9705         * lib/cosl.c: Use GNU style indentation. Insert space before function
9706         argument list.
9707         * lib/sinl.c: Likewise.
9708         * lib/tsearch.c: Insert space after 'for'.
9709         Reported by Jim Meyering.
9710
9711 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
9712
9713         * maint.mk (sc_Wundef_boolean): Check for the presence of the
9714         config header before grepping, as it's not present before
9715         autoreconf/configure are run.  Reported by Simon Josefsson.
9716
9717 2010-03-23  Bruno Haible  <bruno@clisp.org>
9718
9719         pt_chown: Make it work with automake < 1.11.
9720         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
9721         Reported by Simon Josefsson.
9722
9723 2010-03-23  Bruno Haible  <bruno@clisp.org>
9724
9725         pt_chown: Don't depend on GPLed modules.
9726         * lib/pt_chown.c: Don't include idpriv.h.
9727         (main): Don't drop privileges.
9728         * modules/pt_chown (Depends-on): Remove idpriv-drop.
9729         Reported by Simon Josefsson.
9730
9731 2010-03-24  Simon Josefsson  <simon@josefsson.org>
9732
9733         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
9734         suggestions from karl@freefriends.org (Karl Berry).
9735
9736 2010-03-22  Eric Blake  <eblake@redhat.com>
9737
9738         gethostname: further tweaks
9739         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
9740         are overriding gethostname.
9741         Suggested by Bruno Haible.
9742
9743 2010-03-21  Bruno Haible  <bruno@clisp.org>
9744
9745         Fix comments.
9746         * lib/forkpty.c (rpl_forkpty): Fix comment.
9747         * lib/openpty.c (rpl_openpty): Likewise.
9748         Reported by Eric Blake.
9749
9750 2010-03-22  Eric Blake  <eblake@redhat.com>
9751
9752         gethostname: fix build on mingw
9753         * lib/unistd.in.h (includes): Work around fact that mingw
9754         <winsock2.h> re-includes <unistd.h>, by avoiding any
9755         redeclarations if we are being included by <winsock2.h>.
9756         Reported by Matthias Bolte.
9757
9758 2010-03-21  Bruno Haible  <bruno@clisp.org>
9759
9760         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
9761         * lib/forkpty.c (forkpty): New replacement function, from glibc with
9762         modifications.
9763         * lib/pty.in.h (forkpty): Update declaration. Add comments.
9764         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
9765         provide the replacement.
9766         * modules/forkpty (Depends-on): Add openpty, login_tty.
9767         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
9768         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
9769         * doc/glibc-functions/forkpty.texi: More supported platforms.
9770         * config/srclist.txt: Add forkpty.c (commented).
9771
9772 2010-03-21  Bruno Haible  <bruno@clisp.org>
9773
9774         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
9775         (Makefile.am): Verify that PTY_LIB is defined.
9776
9777         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
9778
9779 2010-03-21  Bruno Haible  <bruno@clisp.org>
9780
9781         Tests for module 'login_tty'.
9782         * modules/login_tty-tests: New file.
9783         * tests/test-login_tty.c: New file.
9784
9785         New module 'login_tty'.
9786         * lib/login_tty.c: New file.
9787         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
9788         * modules/login_tty: New file.
9789         * doc/glibc-functions/login_tty.texi: Mention the new module.
9790
9791 2010-03-21  Bruno Haible  <bruno@clisp.org>
9792
9793         login_tty: Documentation.
9794         * doc/glibc-functions/login_tty.texi: New file.
9795         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
9796
9797 2010-03-21  Bruno Haible  <bruno@clisp.org>
9798
9799         pty: Consistent macro naming.
9800         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
9801         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
9802         * modules/pty (configure.ac): Update.
9803
9804 2010-03-21  Bruno Haible  <bruno@clisp.org>
9805
9806         Tests for openpty: Make stricter.
9807         * tests/test-openpty.c (main): Add test of canonical processing and
9808         erase.
9809         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
9810
9811         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
9812         * lib/openpty.c (openpty): New replacement function.
9813         * lib/pty.in.h: Include <termios.h>.
9814         (openpty): Update declaration. Add comments.
9815         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
9816         is not declared, arrange to provide the replacement. Check for _getpty
9817         and posix_openpt.
9818         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
9819         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
9820         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
9821         * modules/pty-tests (test_pty_c___LDADD): New variable.
9822         * doc/glibc-functions/openpty.texi: More supported platforms.
9823
9824 2010-03-21  Bruno Haible  <bruno@clisp.org>
9825
9826         setenv: Tweaks.
9827         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
9828         the test program.
9829         * doc/posix-functions/setenv.texi: Update platforms list.
9830
9831 2010-03-21  Bruno Haible  <bruno@clisp.org>
9832
9833         New module 'unlockpt'.
9834         * lib/unlockpt.c: New file, from glibc with modifications.
9835         * m4/unlockpt.m4: New file.
9836         * modules/unlockpt: New file.
9837         * lib/stdlib.in.h (unlockpt): New declaration.
9838         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
9839         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
9840         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
9841         HAVE_UNLOCKPT.
9842         * doc/posix-functions/unlockpt.texi: Mention the new module.
9843         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
9844         * config/srclist.txt: Add unlockpt.c (commented).
9845
9846 2010-03-21  Jim Meyering  <meyering@redhat.com>
9847
9848         maint.mk: prohibit inclusion of "intprops.h" without use
9849         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
9850
9851 2010-03-21  Bruno Haible  <bruno@clisp.org>
9852
9853         New module 'grantpt'.
9854         * lib/grantpt.c: New file, from glibc with modifications.
9855         * m4/grantpt.m4: New file.
9856         * modules/grantpt: New file.
9857         * lib/stdlib.in.h (grantpt): New declaration.
9858         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
9859         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
9860         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
9861         HAVE_GRANTPT.
9862         * doc/posix-functions/grantpt.texi: Mention the new module.
9863         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
9864         * config/srclist.txt: Add grantpt.c (commented).
9865
9866 2010-03-21  Bruno Haible  <bruno@clisp.org>
9867
9868         New module 'pt_chown'.
9869         * lib/pt_chown.c: New file, from glibc with modifications.
9870         * lib/pty-private.h: New file, from glibc with modifications.
9871         * modules/pt_chown: New file.
9872         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
9873
9874 2010-03-21  Bruno Haible  <bruno@clisp.org>
9875
9876         Tests for module 'ptsname'.
9877         * modules/ptsname-tests: New file.
9878         * tests/test-ptsname.c: New file.
9879
9880         New module 'ptsname'.
9881         * lib/ptsname.c: New file, from glibc with modifications.
9882         * m4/ptsname.m4: New file.
9883         * modules/ptsname: New file.
9884         * lib/stdlib.in.h (ptsname): New declaration.
9885         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
9886         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
9887         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
9888         HAVE_PTSNAME.
9889         * doc/posix-functions/ptsname.texi: Mention the new module.
9890         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
9891         * config/srclist.txt: Add ptsname.c (commented).
9892
9893 2010-03-21  Bruno Haible  <bruno@clisp.org>
9894
9895         Tests for module 'ttyname_r'.
9896         * modules/ttyname_r-tests: New file.
9897         * tests/test-ttyname_r.c: New file.
9898
9899         New module 'ttyname_r'.
9900         * lib/ttyname_r.c: New file.
9901         * m4/ttyname_r.m4: New file.
9902         * modules/ttyname_r: New file.
9903         * lib/unistd.in.h (ttyname_r): New declaration.
9904         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
9905         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
9906         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
9907         HAVE_TTYNAME_R.
9908         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
9909         * doc/posix-functions/ttyname_r.texi: Mention the new module.
9910
9911 2010-03-20  Bruno Haible  <bruno@clisp.org>
9912
9913         signal: Undefine macro definitions in C++ mode.
9914         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
9915         sigfillset): Undefine macro definitions from the system header in C++
9916         mode.
9917         Reported by John W. Eaton <jwe@gnu.org>.
9918
9919 2010-03-20  Bruno Haible  <bruno@clisp.org>
9920
9921         Ensure no #include statements inside extern "C" { ... }.
9922         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
9923         contain #include statements.
9924         * lib/time.in.h: Likewise.
9925
9926 2010-03-20  Bruno Haible  <bruno@clisp.org>
9927
9928         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
9929         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
9930         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
9931         Reported by John W. Eaton <jwe@gnu.org>.
9932
9933 2010-03-20  Bruno Haible  <bruno@clisp.org>
9934
9935         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
9936         Reported by Jim Meyering.
9937
9938 2010-03-20  Bruno Haible  <bruno@clisp.org>
9939
9940         pipe: Set errno upon failure.
9941         * lib/pipe.h: Specify that when -1 is returned, errno is set.
9942         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
9943         errno value in error message.
9944
9945 2010-03-20  Bruno Haible  <bruno@clisp.org>
9946             Jim Meyering  <meyering@redhat.com>
9947
9948         lchown: Avoid "unused variable" warning.
9949         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
9950
9951 2010-03-20  Bruno Haible  <bruno@clisp.org>
9952
9953         Work around unlink() bug on MacOS X 10.5.6.
9954         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
9955         attempting to unlink a parent directory.
9956         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
9957         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
9958         activate for the replacement function.
9959         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
9960
9961 2010-03-20  Bruno Haible  <bruno@clisp.org>
9962
9963         Fix link errors on Solaris 8.
9964         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
9965         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
9966
9967 2010-03-19  Jim Meyering  <meyering@redhat.com>
9968
9969         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
9970         The _LIBC implementation of build_range_exp correctly honors the
9971         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
9972         However, the non-_LIBC implementation would ignore that syntax-bit
9973         flag and return REG_ERANGE unconditionally.
9974         This change makes it honor that flag.
9975         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
9976         Make two pointer parameters "const".
9977         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
9978         (parse_bracket_exp): Update caller.
9979
9980         regex.m4: correct the reversed range endpoint ([b-a]) test
9981         * m4/regex.m4: When requiring that [b-a] evoke failure,
9982         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
9983         test pass once again for x86-based systems.
9984
9985 2010-03-19  Bruno Haible  <bruno@clisp.org>
9986
9987         scandir: Fix link error on Solaris 8.
9988         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
9989         macros.
9990
9991 2010-03-19  Bruno Haible  <bruno@clisp.org>
9992
9993         getusershell: Fix documentation.
9994         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
9995         module.
9996         * doc/glibc-functions/setusershell.texi: Likewise.
9997
9998         getusershell: Provide declaration, missing on Solaris 9.
9999         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10000         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10001         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10002         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10004         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10005         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10006         HAVE_GETUSERSHELL.
10007         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10008
10009 2010-03-19  Bruno Haible  <bruno@clisp.org>
10010
10011         wctype: Provide iswblank function.
10012         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10013         exists and is fine.
10014         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10015         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10016         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10017         * doc/posix-functions/iswblank.texi: Update.
10018
10019 2010-03-19  Bruno Haible  <bruno@clisp.org>
10020
10021         Tests of module 'pty' in C++ mode.
10022         * modules/pty-tests: New file.
10023         * tests/test-pty-c++.cc: New file.
10024         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10025
10026 2010-03-19  Eric Blake  <eblake@redhat.com>
10027
10028         logb: fix documentation
10029         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10030         1.5 declaration bug.
10031
10032         forkpty, openpty: prefer glibc's const-safe prototype
10033         * lib/forkpty.c (rpl_forkpty): New file.
10034         * lib/openpty.c (rpl_openpty): Likewise.
10035         * modules/forkpty (Files): Distribute it.
10036         * modules/openpty (Files): Likewise.
10037         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10038         check...
10039         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10040         replacement for for non-const BSD signature.
10041         * modules/pty (Makefile.am): Substitute witnesses.
10042         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10043         * tests/test-forkpty.c: Update signature check.
10044         * tests/test-openpty.c: Likewise.
10045         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
10046         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10047
10048         forkpty, openpty: split functions into new modules
10049         * modules/pty (Makefile.am): Substitute new witnesses.
10050         (Libraries): Move library detection...
10051         * modules/forkpty: ...into new module.
10052         * modules/openpty: Another new module.
10053         * modules/pty-tests: Rename and split...
10054         * modules/forkpty-tests: ...to this...
10055         * modules/openpty-tests: ...and this.
10056         * tests/test-pty.c: Rename and split...
10057         * tests/test-forkpty.c: ...to this...
10058         * tests/test-openpty.c: ...and this.
10059         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
10060         (gl_PTY): Split library searching...
10061         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
10062         (gl_FORKPTY, gl_OPENPTY): New macros.
10063         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
10064         * NEWS: Mention the split.
10065         * MODULES.html.sh (Misc): Document the modules.
10066         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
10067         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10068
10069         pty: improve replacement header
10070         * lib/pty.in.h: New file.
10071         * modules/pty (Files): Ship it.
10072         (Makefile.am): Always build replacement.
10073         * m4/pty.m4: Rename...
10074         * m4/pty_h.m4: ...to this.
10075         (gl_PTY): Modernize setting of witness macros; update check of
10076         forkpty to take proper advantage of cache.
10077         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
10078
10079         getopt: avoid compiler warning
10080         * lib/getopt.c (attribute_hidden): Remove unused macro.
10081
10082 2010-03-18  Bruno Haible  <bruno@clisp.org>
10083
10084         Fix link errors on Solaris 8.
10085         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
10086         * modules/search-tests (test_search_c___LDADD): Likewise.
10087         * modules/signal-tests (test_signal_c___LDADD): Likewise.
10088         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
10089         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
10090         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
10091         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
10092         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
10093         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
10094
10095 2010-03-18  Bruno Haible  <bruno@clisp.org>
10096
10097         Fix bug introduced on 2010-03-14.
10098         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
10099         (gl_SPAWN_H): Require it.
10100         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
10101         Reported by Simon Josefsson.
10102
10103 2010-03-18  Bruno Haible  <bruno@clisp.org>
10104
10105         Fix typo introduced on 2009-12-31.
10106         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
10107         posix_spawn_file_actions_adddup2.
10108
10109 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
10110         and Eric Blake  <eblake@redhat.com>
10111
10112         test-vc-list-files-git: make more robust
10113         * tests/test-vc-list-files-git.sh: Unset problematic environment
10114         variables.  Chain commands together.
10115
10116 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
10117
10118         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
10119         `AC_CHECK_DECL' invocation.
10120
10121 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
10122
10123         * lib/inttostr.c (inttostr): Make sure the invocation of verify
10124         appears before executable statements. Suggested by Petr Sumbera
10125         <Petr.Sumbera@Sun.COM>.
10126
10127 2010-03-14  Bruno Haible  <bruno@clisp.org>
10128
10129         * tests/test-flock.c (test_exclusive): Comment out a test that causes
10130         portability problems. Instead use a simpler test.
10131         (main): Check that invalid arguments are rejected only on Linux.
10132
10133 2010-03-14  Bruno Haible  <bruno@clisp.org>
10134
10135         Fix bug introduced on 2009-12-31.
10136         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10137         gl_PREREQ_SYS_H_WINSOCK2 always.
10138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
10139         SYS_SOCKET_H variable.
10140         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10141         Update comments.
10142         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
10143         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10144         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10145         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10146         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10147
10148 2010-03-14  Bruno Haible  <bruno@clisp.org>
10149
10150         Fix values returned by sinl, cosl.
10151         * lib/trigl.h: Add specification comments.
10152         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
10153         that combines the values from the precomputed table with the values of
10154         the Chebyshev polynomials.
10155
10156 2010-03-14  Bruno Haible  <bruno@clisp.org>
10157
10158         Fix compilation error when modules 'posix_spawn[p]' are not used.
10159         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
10160         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
10161
10162 2010-03-14  Bruno Haible  <bruno@clisp.org>
10163
10164         Fix compilation error on mingw when module 'time_r' is not used.
10165         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
10166         is 1.
10167         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
10168         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10169         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
10170         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
10171
10172 2010-03-14  Bruno Haible  <bruno@clisp.org>
10173
10174         Fix compilation error with Sun C.
10175         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
10176         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
10177         instead of GCC specific ULONG_LONG_MAX.
10178         * lib/xstrtoll.c: Likewise.
10179         * lib/xstrtoull.c: Likewise.
10180
10181 2010-03-13  Bruno Haible  <bruno@clisp.org>
10182
10183         Allow the user to disable C++ code and tests.
10184         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
10185         (gl_PROG_ANSI_CXX): Require it.
10186
10187 2010-03-13  Bruno Haible  <bruno@clisp.org>
10188
10189         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10190         cases.
10191
10192 2010-03-13  Bruno Haible  <bruno@clisp.org>
10193
10194         Test that gnulib does not break the standard C++ headers.
10195         * tests/test-locale-c++2.cc: New file.
10196         * modules/locale-tests (Files): Add it.
10197         (Makefile.am): Compile it for test-locale-c++.
10198         * tests/test-math-c++2.cc: New file.
10199         * modules/math-tests (Files): Add it.
10200         (Makefile.am): Compile it for test-math-c++.
10201         * tests/test-signal-c++2.cc: New file.
10202         * modules/signal-tests (Files): Add it.
10203         (Makefile.am): Compile it for test-signal-c++.
10204         * tests/test-stdio-c++2.cc: New file.
10205         * modules/stdio-tests (Files): Add it.
10206         (Makefile.am): Compile it for test-stdio-c++.
10207         * tests/test-stdlib-c++2.cc: New file.
10208         * modules/stdlib-tests (Files): Add it.
10209         (Makefile.am): Compile it for test-stdlib-c++.
10210         * tests/test-string-c++2.cc: New file.
10211         * modules/string-tests (Files): Add it.
10212         (Makefile.am): Compile it for test-string-c++.
10213         * tests/test-time-c++2.cc: New file.
10214         * modules/time-tests (Files): Add it.
10215         (Makefile.am): Compile it for test-time-c++.
10216         Reported by John W. Eaton <jwe@gnu.org>.
10217
10218 2010-03-13  Bruno Haible  <bruno@clisp.org>
10219
10220         * gnulib-tool (func_usage): Clarify which options are available for
10221         --create-testdir and --create-megatestdir.
10222
10223 2010-03-13  Bruno Haible  <bruno@clisp.org>
10224
10225         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
10226         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
10227         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
10228         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10229         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
10230         when appropriate.
10231         Reported by Jim Meyering.
10232
10233 2010-03-12  Simon Josefsson  <simon@josefsson.org>
10234
10235         * gnulib-tool (func_import): Explain origin of code.
10236
10237 2010-03-12  Bruno Haible  <bruno@clisp.org>
10238
10239         Fix problem with automake's definition of CXXLINK.
10240         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
10241         Reported by Simon Josefsson and Ludovic Courtès.
10242
10243 2010-03-12  Bruno Haible  <bruno@clisp.org>
10244
10245         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
10246         stable releases.
10247
10248 2010-03-11  Bruno Haible  <bruno@clisp.org>
10249
10250         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
10251         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
10252         whether the system provides one variant or multiple variants of the
10253         function.
10254         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
10255         C++ compilers.
10256         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
10257         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
10258         Reported by Jim Meyering.
10259
10260 2010-03-09  Simon Josefsson  <simon@josefsson.org>
10261
10262         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
10263
10264 2010-03-08  Bruno Haible  <bruno@clisp.org>
10265
10266         gnulib-tool: Add support for --libtool in --create-testdir.
10267         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
10268         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
10269
10270 2010-03-08  Eric Blake  <eblake@redhat.com>
10271
10272         gnulib-tool.texi: mention possibility of git submodule
10273         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
10274         submodules.
10275         * doc/.gitignore: Ignore another generated file.
10276
10277 2010-03-08  Karl Berry  <karl@gnu.org>
10278
10279         * doc/gnulib-tool.texi (VCS Issues): Mention third option
10280         of committing gnulib files while skipping others.
10281
10282 2010-03-07  Bruno Haible  <bruno@clisp.org>
10283
10284         Tests of module 'wctype' in C++ mode.
10285         * tests/test-wctype-c++.cc: New file.
10286         * modules/wctype-tests (Files): Add it and tests/signature.h.
10287         (Depends-on): Add ansi-c++-opt.
10288         (Makefile.am): Arrange to compile and run test-wctype-c++.
10289
10290         Tests of module 'wchar' in C++ mode.
10291         * tests/test-wchar-c++.cc: New file.
10292         * modules/wchar-tests (Files): Add it and tests/signature.h.
10293         (Depends-on): Add ansi-c++-opt.
10294         (Makefile.am): Arrange to compile and run test-wchar-c++.
10295         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
10296         gl_MODULE_INDICATOR.
10297
10298         Tests of module 'unistd' in C++ mode.
10299         * tests/test-unistd-c++.cc: New file.
10300         * modules/unistd-tests (Files): Add it and tests/signature.h.
10301         (Depends-on): Add ansi-c++-opt.
10302         (Makefile.am): Arrange to compile and run test-unistd-c++.
10303         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
10304         gl_MODULE_INDICATOR.
10305
10306         Tests of module 'time' in C++ mode.
10307         * tests/test-time-c++.cc: New file.
10308         * modules/time-tests (Files): Add it and tests/signature.h.
10309         (Depends-on): Add ansi-c++-opt.
10310         (Makefile.am): Arrange to compile and run test-time-c++.
10311         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10312
10313         Tests of module 'sys_time' in C++ mode.
10314         * tests/test-sys_time-c++.cc: New file.
10315         * modules/sys_time-tests (Files): Add it and tests/signature.h.
10316         (Depends-on): Add ansi-c++-opt.
10317         (Makefile.am): Arrange to compile and run test-sys_time-c++.
10318         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
10319         gl_MODULE_INDICATOR.
10320
10321         Tests of module 'sys_stat' in C++ mode.
10322         * tests/test-sys_stat-c++.cc: New file.
10323         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
10324         (Depends-on): Add ansi-c++-opt.
10325         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
10326         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
10327         gl_MODULE_INDICATOR.
10328
10329         Tests of module 'sys_socket' in C++ mode.
10330         * tests/test-sys_socket-c++.cc: New file.
10331         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
10332         (Depends-on): Add ansi-c++-opt.
10333         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
10334         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
10335         gl_MODULE_INDICATOR.
10336
10337         Tests of module 'sys_select' in C++ mode.
10338         * tests/test-sys_select-c++.cc: New file.
10339         * modules/sys_select-tests (Files): Add it and tests/signature.h.
10340         (Depends-on): Add ansi-c++-opt.
10341         (Makefile.am): Arrange to compile and run test-sys_select-c++.
10342         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
10343         gl_MODULE_INDICATOR.
10344
10345         Tests of module 'sys_ioctl' in C++ mode.
10346         * tests/test-sys_ioctl-c++.cc: New file.
10347         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
10348         (Depends-on): Add ansi-c++-opt.
10349         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
10350         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
10351         gl_MODULE_INDICATOR.
10352
10353         Tests of module 'string' in C++ mode.
10354         * tests/test-string-c++.cc: New file.
10355         * modules/string-tests (Files): Add it and tests/signature.h.
10356         (Depends-on): Add ansi-c++-opt.
10357         (Makefile.am): Arrange to compile and run test-string-c++.
10358         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
10359         gl_MODULE_INDICATOR.
10360
10361         Tests of module 'stdlib' in C++ mode.
10362         * tests/test-stdlib-c++.cc: New file.
10363         * modules/stdlib-tests (Files): Add it and tests/signature.h.
10364         (Depends-on): Add ansi-c++-opt.
10365         (Makefile.am): Arrange to compile and run test-stdlib-c++.
10366         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
10367         gl_MODULE_INDICATOR.
10368
10369         Tests of module 'stdio' in C++ mode.
10370         * tests/test-stdio-c++.cc: New file.
10371         * modules/stdio-tests (Files): Add it and tests/signature.h.
10372         (Depends-on): Add ansi-c++-opt.
10373         (Makefile.am): Arrange to compile and run test-stdio-c++.
10374         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
10375         gl_MODULE_INDICATOR.
10376
10377         Tests of module 'spawn' in C++ mode.
10378         * tests/test-spawn-c++.cc: New file.
10379         * modules/spawn-tests (Files): Add it and tests/signature.h.
10380         (Depends-on): Add ansi-c++-opt.
10381         (Makefile.am): Arrange to compile and run test-spawn-c++.
10382         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
10383         gl_MODULE_INDICATOR.
10384
10385         Tests of module 'signal' in C++ mode.
10386         * tests/test-signal-c++.cc: New file.
10387         * modules/signal-tests (Files): Add it and tests/signature.h.
10388         (Depends-on): Add ansi-c++-opt.
10389         (Makefile.am): Arrange to compile and run test-signal-c++.
10390         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
10391         gl_MODULE_INDICATOR.
10392
10393         Tests of module 'search' in C++ mode.
10394         * tests/test-search-c++.cc: New file.
10395         * modules/search-tests (Files): Add it and tests/signature.h.
10396         (Depends-on): Add ansi-c++-opt.
10397         (Makefile.am): Arrange to compile and run test-search-c++.
10398         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
10399         gl_MODULE_INDICATOR.
10400
10401         Tests of module 'math' in C++ mode.
10402         * tests/test-math-c++.cc: New file.
10403         * modules/math-tests (Files): Add it and tests/signature.h.
10404         (Depends-on): Add ansi-c++-opt.
10405         (Makefile.am): Arrange to compile and run test-math-c++.
10406         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10407
10408         Tests of module 'locale' in C++ mode.
10409         * tests/test-locale-c++.cc: New file.
10410         * modules/locale-tests (Files): Add it and tests/signature.h.
10411         (Depends-on): Add ansi-c++-opt.
10412         (Makefile.am): Arrange to compile and run test-locale-c++.
10413         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
10414         gl_MODULE_INDICATOR.
10415
10416         Tests of module 'langinfo' in C++ mode.
10417         * tests/test-langinfo-c++.cc: New file.
10418         * modules/langinfo-tests (Files): Add it and tests/signature.h.
10419         (Depends-on): Add ansi-c++-opt.
10420         (Makefile.am): Arrange to compile and run test-langinfo-c++.
10421         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
10422         gl_MODULE_INDICATOR.
10423
10424         Tests of module 'iconv-h' in C++ mode.
10425         * tests/test-iconv-h-c++.cc: New file.
10426         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
10427         (Depends-on): Add ansi-c++-opt.
10428         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
10429
10430         Tests of module 'glob' in C++ mode.
10431         * tests/test-glob-c++.cc: New file.
10432         * modules/glob-tests (Files): Add it.
10433         (Depends-on): Add ansi-c++-opt.
10434         (Makefile.am): Arrange to compile and run test-glob-c++.
10435
10436         Tests of module 'fcntl-h' in C++ mode.
10437         * tests/test-fcntl-h-c++.cc: New file.
10438         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
10439         (Depends-on): Add ansi-c++-opt.
10440         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
10441         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
10442         gl_MODULE_INDICATOR.
10443
10444         Tests of module 'dirent' in C++ mode.
10445         * tests/test-dirent-c++.cc: New file.
10446         * modules/dirent-tests (Files): Add it and tests/signature.h.
10447         (Depends-on): Add ansi-c++-opt.
10448         (Makefile.am): Arrange to compile and run test-dirent-c++.
10449         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10450         gl_MODULE_INDICATOR.
10451
10452         New module 'ansi-c++-opt'.
10453         * modules/ansi-c++-opt: New file.
10454         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
10455
10456         Document C++ namespace mode.
10457         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
10458
10459         wctype: Avoid #define replacements in C++ mode.
10460         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
10461         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
10462         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
10463         In C++, define a namespaced alias symbol.
10464         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
10465         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
10466         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
10467         rule.
10468
10469         wchar: Avoid #define replacements in C++ mode.
10470         * lib/wchar.in.h: Include c++defs.h.
10471         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
10472         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
10473         symbol.
10474         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
10475         * modules/wchar (Depends-on): Add c++defs.
10476         (Makefile.am): Update wchar.h rule.
10477
10478         unistd: Avoid #define replacements in C++ mode.
10479         * lib/unistd.in.h: Include c++defs.h.
10480         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
10481         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
10482         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
10483         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
10484         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
10485         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
10486         symbol.
10487         (environ): Update.
10488         * modules/unistd (Depends-on): Add c++defs.
10489         (Makefile.am): Update unistd.h rule.
10490
10491         time: Avoid #define replacements in C++ mode.
10492         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
10493         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
10494         define a namespaced alias symbol.
10495         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
10496         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
10497         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
10498         * modules/time (Depends-on): Add c++defs, warn-on-use.
10499         (Makefile.am): Update time.h rule.
10500         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10501         * modules/nanosleep (configure.ac): Likewise.
10502         * modules/strptime (configure.ac): Likewise.
10503         * modules/timegm (configure.ac): Likewise.
10504
10505         sys_time: Avoid #define replacements in C++ mode.
10506         * lib/sys_time.in.h: Include c++defs.h.
10507         (gettimeofday): In C++, define a namespaced alias symbol.
10508         * modules/sys_time (Depends-on): Add c++defs.
10509         (Makefile.am): Update sys/time.h rule.
10510
10511         sys_stat: Avoid #define replacements in C++ mode.
10512         * lib/sys_stat.in.h: Include c++defs.h.
10513         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
10514         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
10515         namespaced alias symbol.
10516         In C++, define a namespaced alias symbol.
10517         * modules/sys_stat (Depends-on): Add c++defs.
10518         (Makefile.am): Update sys/stat.h rule.
10519
10520         sys_socket: Avoid #define replacements in C++ mode.
10521         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
10522         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
10523         definitions also when the system has a <sys/socket.h>.
10524         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10525         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
10526         In C++, define a namespaced alias symbol.
10527         * modules/sys_socket (Depends-on): Add c++defs.
10528         (Makefile.am): Update sys/socket.h rule.
10529
10530         sys_select: Avoid #define replacements in C++ mode.
10531         * lib/sys_select.in.h: Include c++defs.h. Enable the function
10532         definitions also when the system has a <sys/select.h>.
10533         (select): In C++, define a namespaced alias symbol.
10534         * modules/sys_select (Depends-on): Add c++defs.
10535         (Makefile.am): Update sys/select.h rule.
10536
10537         sys_ioctl: Avoid #define replacements in C++ mode.
10538         * lib/sys_ioctl.in.h: Include c++defs.h.
10539         (ioctl): In C++, define a namespaced alias symbol.
10540         * modules/sys_ioctl (Depends-on): Add c++defs.
10541         (Makefile.am): Update sys/ioctl.h rule.
10542
10543         string: Avoid #define replacements in C++ mode.
10544         * lib/string.in.h: Include c++defs.h.
10545         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
10546         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10547         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10548         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
10549         strsignal, strverscmp): In C++, define a namespaced alias symbol.
10550         * modules/string (Depends-on): Add c++defs.
10551         (Makefile.am): Update string.h rule.
10552
10553         stdlib: Avoid #define replacements in C++ mode.
10554         * lib/stdlib.in.h: Include c++defs.h.
10555         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
10556         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
10557         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
10558         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
10559         symbol.
10560         * modules/stdlib (Depends-on): Add c++defs.
10561         (Makefile.am): Update stdlib.h rule.
10562
10563         stdio: Avoid #define replacements in C++ mode.
10564         * lib/stdio.in.h: Include c++defs.h.
10565         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
10566         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
10567         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
10568         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
10569         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
10570         namespaced alias symbol.
10571         * modules/stdio (Depends-on): Add c++defs.
10572         (Makefile.am): Update stdio.h rule.
10573
10574         spawn: Avoid #define replacements in C++ mode.
10575         * lib/spawn.in.h: Include c++defs.h.
10576         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10577         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10578         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10579         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10580         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10581         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10582         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10583         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10584         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10585         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10586         In C++, define a namespaced alias symbol.
10587         * modules/spawn (Depends-on): Add c++defs.
10588         (Makefile.am): Update spawn.h rule.
10589
10590         signal: Avoid #define replacements in C++ mode.
10591         * lib/signal.in.h: Include c++defs.h.
10592         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10593         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
10594         namespaced alias symbol.
10595         * modules/signal (Depends-on): Add c++defs.
10596         (Makefile.am): Update signal.h rule.
10597
10598         search: Avoid #define replacements in C++ mode.
10599         * lib/search.in.h: Include c++defs.h.
10600         (_gl_search_compar_fn, _gl_search_action_fn): New types.
10601         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
10602         symbol.
10603         * modules/search (Depends-on): Add c++defs.
10604         (Makefile.am): Update search.h rule.
10605
10606         math: Avoid #define replacements in C++ mode.
10607         * lib/math.in.h: Include c++defs.h.
10608         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
10609         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
10610         trunc, truncl): In C++, define a namespaced alias symbol.
10611         * modules/math (Depends-on): Add c++defs.
10612         (Makefile.am): Update math.h rule.
10613
10614         locale: Avoid #define replacements in C++ mode.
10615         * lib/locale.in.h: Include c++defs.h.
10616         (duplocale): In C++, define a namespaced alias symbol.
10617         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
10618         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
10619         * modules/locale (Depends-on): Add c++defs.
10620         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
10621
10622         langinfo: Avoid #define replacements in C++ mode.
10623         * lib/langinfo.in.h: Include c++defs.h.
10624         (nl_langinfo): In C++, define a namespaced alias symbol.
10625         * modules/langinfo (Depends-on): Add c++defs.
10626         (Makefile.am): Update langinfo.h rule.
10627
10628         iconv-h: Avoid #define replacements in C++ mode.
10629         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
10630         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
10631         symbol.
10632         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
10633         whenever iconv is present.
10634         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
10635         (Makefile.am): Update iconv.h rule.
10636
10637         glob: Avoid #define replacements in C++ mode.
10638         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
10639         (_gl_glob_errfunc_fn): New type.
10640         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
10641         symbol.
10642         * modules/glob (Depends-on): Add c++defs, warn-on-use.
10643         (Makefile.am): Update glob.h rule.
10644
10645         fcntl-h: Avoid #define replacements in C++ mode.
10646         * lib/fcntl.in.h: Include c++defs.h.
10647         (fcntl, open, openat): In C++, define a namespaced alias symbol.
10648         * modules/fcntl-h (Depends-on): Add c++defs.
10649         (Makefile.am): Update fcntl.h rule.
10650
10651         dirent: Avoid #define replacements in C++ mode.
10652         * lib/dirent.in.h: Include c++defs.h.
10653         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
10654         namespaced alias symbol.
10655         (dirfd): Update declaration.
10656         * modules/dirent (Depends-on): Add c++defs.
10657         (Makefile.am): Update dirent.h rule.
10658
10659         ctype: Make it usable in C++ code.
10660         * lib/ctype.in.h: Include c++defs.h.
10661         (isblank): Declare as extern "C".
10662         * modules/ctype (Depends-on): Add c++defs.
10663         (Makefile.am): Update ctype.h rule.
10664
10665         New module 'c++defs'.
10666         * modules/c++defs: New file.
10667         * build-aux/c++defs.h: New file.
10668         Reported by John W. Eaton <jwe@gnu.org>.
10669
10670 2010-03-07  Bruno Haible  <bruno@clisp.org>
10671
10672         logb: Provide missing declaration for Cygwin.
10673         * lib/math.in.h (logb): New declaration.
10674         * m4/logb.m4: New file.
10675         * modules/logb (Files): Add m4/logb.m4.
10676         (Depends-on): Add math.
10677         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
10678         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
10679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
10680         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
10681         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
10682
10683 2010-03-07  Bruno Haible  <bruno@clisp.org>
10684
10685         Fix test-cond link error.
10686         * tests/test-cond.c: Include <stdio.h>.
10687
10688 2010-03-07  Bruno Haible  <bruno@clisp.org>
10689
10690         Fix test-dirent-safer link error.
10691         * modules/dirent-safer-tests (Makefile.am): Define
10692         test_dirent_safer_LDADD.
10693
10694 2010-03-07  Bruno Haible  <bruno@clisp.org>
10695
10696         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
10697         among default module list.
10698
10699 2010-03-07  Bruno Haible  <bruno@clisp.org>
10700
10701         Fix link error on platforms with GNU libiconv.
10702         * modules/unistr/u8-strcoll-tests (Makefile): Define
10703         test_u8_strcoll_LDADD.
10704         * modules/unistr/u16-strcoll-tests (Makefile): Define
10705         test_u16_strcoll_LDADD.
10706         * modules/unistr/u32-strcoll-tests (Makefile): Define
10707         test_u32_strcoll_LDADD.
10708
10709 2010-03-07  Bruno Haible  <bruno@clisp.org>
10710
10711         Use POSIX declarations for socket functions.
10712         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
10713         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
10714         rpl_sendto): Change declaration to match POSIX.
10715         * lib/connect.c (rpl_connect): Likewise.
10716         * lib/accept.c (rpl_accept): Likewise.
10717         * lib/bind.c (rpl_bind): Likewise.
10718         * lib/getpeername.c (rpl_getpeername): Likewise.
10719         * lib/getsockname.c (rpl_getsockname): Likewise.
10720         * lib/recv.c (rpl_recv): Likewise.
10721         * lib/send.c (rpl_send): Likewise.
10722         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10723         * lib/sendto.c (rpl_sendto): Likewise.
10724
10725 2010-03-06  Bruno Haible  <bruno@clisp.org>
10726
10727         Clarify access, euidaccess, faccessat.
10728         * doc/posix-functions/faccessat.texi: Mention security problem under
10729         "Other problems", not "Portability problems".
10730         * doc/posix-functions/access.texi: Likewise. Mention a related security
10731         problem.
10732         * doc/glibc-functions/euidaccess.texi: Mention security problems.
10733         * lib/euidaccess.c: Add comments about platforms.
10734         * lib/unistd.in.h (access, euidaccess): Add warnings.
10735
10736 2010-03-07  Bruno Haible  <bruno@clisp.org>
10737
10738         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
10739         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
10740         (POSIX_SPAWN_SETSCHEDULER): Likewise.
10741         (POSIX_SPAWN_USEVFORK): Define in a way that works when
10742         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
10743         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
10744         declare when POSIX_SPAWN_SETSCHEDULER is zero.
10745         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
10746         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
10747         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
10748         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
10749         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
10750         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
10751         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
10752         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
10753         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
10754         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
10755         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
10756         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
10757         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
10758         Likewise.
10759         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
10760         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
10761         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
10762         Likewise.
10763         * tests/test-spawn.c (main): Make it work when
10764         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
10765
10766 2010-03-07  Bruno Haible  <bruno@clisp.org>
10767
10768         Fix incorrect Makefile.am generation in German locale.
10769         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10770         Execute sed command with character range in C locale.
10771
10772 2010-03-06  Bruno Haible  <bruno@clisp.org>
10773
10774         Tests for module 'iconv-h'.
10775         * modules/iconv-h-tests: New file.
10776         * tests/test-iconv-h.c: New file.
10777
10778         New module 'iconv-h'.
10779         * modules/iconv-h: New file.
10780         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
10781         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
10782         (configure.ac): Remove gl_ICONV_H.
10783         (Makefile.am): Remove rule for iconv.h.
10784
10785 2010-03-06  Bruno Haible  <bruno@clisp.org>
10786
10787         More consistent naming of *.m4 files.
10788         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
10789         * modules/wctype (Files): Update.
10790
10791         More consistent naming of *.m4 files.
10792         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
10793         * modules/wchar (Files): Update.
10794
10795 2010-03-06  Jim Meyering  <meyering@redhat.com>
10796
10797         euidaccess: relax license to LGPLv2+
10798         * modules/euidaccess (License): Relax to LGPLv2+.
10799
10800 2010-03-06  Bruno Haible  <bruno@clisp.org>
10801
10802         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
10803         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
10804         (Makefile.am): Augment lib_SOURCES instead.
10805
10806 2010-03-04  Jim Meyering  <meyering@redhat.com>
10807
10808         utime: remove obsolete module
10809         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
10810         unnecessary for years, and has been marked as obsolete for 10 months.
10811         * modules/utime: Remove file.
10812         * lib/utime.c: Remove file.
10813         * m4/utime.m4: Remove file.
10814         * m4/utimes-null.m4: Remove file.
10815         * doc/posix-functions/utime.texi (utime): Remove reference to
10816         the module.  Move the sole "fixed by gnulib" item into the
10817         "problems not fixed by Gnulib" list.
10818         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
10819
10820 2010-03-05  Simon Josefsson  <simon@josefsson.org>
10821
10822         * modules/exit (License): Relax license to LGPLv2+.
10823         (Status): Mark as obsolete.
10824         * NEWS: Mention deprecated 'exit' module.
10825         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
10826         of now obsolete 'exit'.
10827
10828 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10829
10830         fts-lgpl: remove unused module
10831         * modules/fts-lgpl: Remove.
10832         * MODULES.html.sh (func_all_modules): Adjust.
10833         * check-module (find_included_lib_files): Adjust.
10834         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
10835
10836 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
10837
10838         copy-acl: enhance Solaris ACL error handling
10839         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
10840         * lib/set-mode-acl.c (qset_acl): Likewise.
10841
10842 2010-03-02  Bruno Haible  <bruno@clisp.org>
10843
10844         spawn: Don't override the system defined values on FreeBSD 8.
10845         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
10846         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
10847         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
10848         if HAVE_POSIX_SPAWN is 1.
10849         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
10850
10851 2010-03-01  Bruno Haible  <bruno@clisp.org>
10852
10853         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
10854         regarding Automake.
10855
10856 2010-02-25  Bruno Haible  <bruno@clisp.org>
10857
10858         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
10859         * gnulib-tool: Define 'echo' as a function only before the ksh alias
10860         setting, not afterwards.
10861         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10862
10863 2010-02-24  Eric Blake  <eblake@redhat.com>
10864
10865         bootstrap, git-version-gen: use timestamp
10866         * build-aux/git-version-gen (scriptversion): Force UTC.
10867         * build-aux/bootstrap (scriptversion): New variable.
10868
10869         bootstrap: allow older git
10870         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
10871         older than 1.6.4.  Requested by the libvirt project.
10872
10873 2010-02-23  Eric Blake  <eblake@redhat.com>
10874
10875         warn-on-use: work with old autoconf
10876         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
10877         AS_VAR semantics of autoconf 2.60.
10878         Reported by Bruno Haible.
10879
10880         bootstrap: improve some comments
10881         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
10882         clarification comments.
10883
10884         gettimeofday: provide correct function
10885         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
10886         when replacement is declared, otherwise provide gettimeofday.
10887         Reported by Michael Goffioul.
10888
10889 2010-02-23  Jim Meyering  <meyering@redhat.com>
10890
10891         lib-ignore: relax license to "unlimited", not LGPLv2+
10892         * modules/lib-ignore (License): Relax to "unlimited".
10893
10894 2010-02-23  Jim Meyering  <meyering@redhat.com>
10895
10896         lib-ignore: relax license to LGPLv2+
10897         * modules/lib-ignore (License): Relax to LGPLv2+.
10898
10899 2010-02-22  Eric Blake  <eblake@redhat.com>
10900
10901         lseek: avoid bash 3.2 broken pipe bug
10902         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
10903         warning from bash 3.2.
10904         Reported by Ben Pfaff, with analysis from Bruno Haible.
10905
10906         bootstrap: support non-FSF copyright holder
10907         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
10908         bootstrap.conf override of COPYRIGHT_HOLDER.
10909         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
10910
10911         bootstrap: interoperate with gettext 0.14.1
10912         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
10913
10914         bootstrap: allow for alternate submodule location
10915         * build-aux/bootstrap (gnulib_path): New variable; use instead of
10916         hardcoding submodule location.
10917         (gnulib_mk): Allow direct use of Makefile.am.
10918
10919         bootstrap: use GNULIB_SRCDIR to reduce disk usage
10920         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
10921         rather than reconfiguring where the submodule points.
10922
10923         gettimeofday: restore support for platforms that lack function
10924         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
10925         replacement if function is missing.
10926         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
10927         * modules/sys_time (Makefile.am): Substitute it.
10928         * lib/sys_time.in.h (gettimeofday): Check it.
10929         Reported by Michael Goffioul.
10930
10931 2010-02-21  Bruno Haible  <bruno@clisp.org>
10932
10933         * lib/stdio.in.h (obstack_printf): Fix typo.
10934
10935 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
10936
10937         vc-list-files: use bzr ls's -R option
10938         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
10939         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
10940
10941 2010-02-21  Jim Meyering  <meyering@redhat.com>
10942
10943         init.sh: fix EXEEXT shims to work also for names like test-prog
10944         * tests/init.sh: Re-exec a better shell, when needed.
10945         If the current shell lacks support for posix $(...), an init.sh-using
10946         test will now try to find a shell that supports that.  If EXEEXT is
10947         nonempty, we also require support for hyphen-in-alias-name and shell
10948         substitutions like ${var#glob}.  Failure to find such a shell results
10949         in a skipped test.
10950
10951 2010-02-21  Bruno Haible  <bruno@clisp.org>
10952
10953         Really work around around "broken pipe" error message from bash 3.2.
10954         * gnulib-tool (func_reset_sigpipe): Remove function.
10955         (echo): In bash 3.2, define to a function that uses printf.
10956         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
10957
10958 2010-02-20  Bruno Haible  <bruno@clisp.org>
10959
10960         Restore support for automake 1.9.6 with autoconf 2.61.
10961         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
10962         Reported by James Youngman <jay@gnu.org>.
10963
10964 2010-02-20  Bruno Haible  <bruno@clisp.org>
10965
10966         Improve *printf warning condition.
10967         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
10968         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
10969         and the function is overridden due to SIGPIPE emulation.
10970
10971 2010-02-20  Bruno Haible  <bruno@clisp.org>
10972
10973         * lib/stdio.in.h: Tweak comments.
10974
10975 2010-02-19  Bruno Haible  <bruno@clisp.org>
10976
10977         Make it easier to find modules. New gnulib-tool option '--find'.
10978         * gnulib-tool: New option --find.
10979         (func_usage): Document it.
10980         (func_sanitize_modulelist): New function, extracted from
10981         func_all_modules.
10982         (func_all_modules): Invoke it.
10983         * doc/gnulib-tool.texi (Which modules?): New node.
10984
10985 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
10986
10987         * lib/sys_select.in.h: Provide select replacement even if
10988         sys/select.h exists on a system, for Interix.
10989
10990 2010-02-18  Jim Meyering  <meyering@redhat.com>
10991
10992         init.sh: don't use $(...) just yet
10993         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
10994         to accommodate e.g., Solaris' /bin/sh.
10995
10996 2010-02-17  Bruno Haible  <bruno@clisp.org>
10997
10998         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
10999         Reported by Ludovic Courtès <ludo@gnu.org>.
11000
11001 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11002
11003         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11004         linking with -lintl.
11005
11006 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11007
11008         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11009         if not provided by the system's netdb.h.  Reported by
11010         ludo@gnu.org (Ludovic Courtès).
11011
11012 2010-02-15  Jim Meyering  <meyering@redhat.com>
11013
11014         init.sh: improve portability and efficiency
11015         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11016         "dummy" in a for loop.
11017         Use '!', not '^' to select the complement of a character set used
11018         in a "case" statement.
11019         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11020         Suggestions from Eric Blake.
11021
11022         init.sh: automatically accommodate programs with the .exe suffix
11023         Automatically arrange for an invocation of "prog" to execute the
11024         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11025         may use the simpler "prog", yet still work when built on a system
11026         that requires specifying the added suffix.
11027         Do this by constructing a function named "prog" that invokes
11028         "prog.exe" for each .exe file in selected directories.
11029         * tests/init.sh (find_exe_basenames_): New function.
11030         (create_exe_shim_functions_): New function.
11031         (path_prepend_): Use it.
11032
11033         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11034         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11035         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11036
11037 2010-02-14  Jim Meyering  <meyering@redhat.com>
11038
11039         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11040         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11041         (sc_prohibit_hash_pjw_without_use): New rule.
11042
11043         maint.mk: allow the default upload destination dir to be overridden
11044         * top/maint.mk (upload_dest_dir_): Define with a default that
11045         preserves the status quo.
11046         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
11047         Reported by Peter Simons.
11048
11049         maint.mk: prohibit inclusion of "hash.h" without_use
11050         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
11051
11052 2010-02-10  Jim Meyering  <meyering@redhat.com>
11053
11054         maint.mk: prohibit inclusion of "ignore-value.h" without_use
11055         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
11056
11057 2010-02-09  Eric Blake  <ebb9@byu.net>
11058         and Bruno Haible  <bruno@clisp.org>
11059
11060         obstack-printf-posix: ensure declaration
11061         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
11062         extracted from gl_FUNC_OBSTACK_PRINTF.
11063         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
11064         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11065         Likewise.
11066         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
11067         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
11068         0.
11069
11070 2010-02-08  Bruno Haible  <bruno@clisp.org>
11071
11072         gnulib-tool: Fix typo in 2010-02-07 commit.
11073         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
11074         Reported by Eric Blake.
11075
11076 2010-02-07  Bruno Haible  <bruno@clisp.org>
11077
11078         gnulib-tool: Fix up caching patches.
11079         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
11080         option --no-cache. Use associative arrays when supported by the shell.
11081         (sed_comments): New variable.
11082         (modcache): Renamed from do_cache.
11083         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
11084         abbreviate unnecessarily.
11085         (have_associative): New variable.
11086         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
11087         way also for ksh and zsh.
11088         (func_init_sed_convert_to_cache_statements): New function, extracted
11089         from func_cache_lookup_module. Add support for associative arrays.
11090         Don't set the c_MODULE_cached variable here. Ignore all lines before
11091         the first field header. Remove only the final newline, not all trailing
11092         newlines. Support empty fields correctly. Limit the use of 'eval' to
11093         assignments.
11094         (func_get_description, func_get_status, func_get_notice,
11095         func_get_applicability, func_get_filelist, func_get_dependencies,
11096         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
11097         func_get_automake_snippet, func_get_include_directive,
11098         func_get_link_directive, func_get_license, func_get_maintainer):
11099         Update documentation. List the unoptimized code first. Add support for
11100         associative arrays. Limit the use of 'eval' to assignments.
11101         (func_get_applicability): Undo stylistic pessimisations.
11102         (func_get_automake_snippet, func_get_include_directive): Reduce code
11103         duplication.
11104         (func_modules_transitive_closure, func_modules_add_dummy,
11105         func_modules_notice, func_modules_to_filelist, func_add_file,
11106         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
11107         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
11108         func_create_testdir, func_create_megatestdir): Update documentation.
11109
11110 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11111
11112         * gnulib-tool (func_cache_lookup_module): Store the module name
11113         belonging to the cache variable; error out if two different
11114         module names map to the same cache variable name.
11115
11116 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11117
11118         gnulib-tool: Make caching optional.
11119         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
11120         Update matching short versions of --no-changelog.
11121         (func_usage): Update.
11122         (sed_extract_cache_prog): Renamed from ...
11123         (sed_extract_prog): ... this; revert to old extraction script.
11124         (func_get_description, func_get_status)
11125         (func_get_notice, func_get_applicability, func_get_filelist)
11126         (func_get_dependencies, func_get_autoconf_early_snippet)
11127         (func_get_autoconf_snippet, func_get_automake_snippet)
11128         (func_get_include_directive, func_get_link_directive)
11129         (func_get_license, func_get_maintainer): If $do_cache is false,
11130         use old, non-caching extraction scripts.
11131         Suggestion by Bruno Haible.
11132
11133 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11134
11135         gnulib-tool: cache module metainformation.
11136         * gnulib-tool (sed_extract_prog): Match newline before each
11137         header, and rewrite header to a shell variable suffix.
11138         (func_cache_var, func_cache_lookup_module): New functions,
11139         to turn a module name into a cache variable prefix, and to
11140         look up and cache module metainformation.
11141         (func_get_description, func_get_status)
11142         (func_get_notice, func_get_applicability, func_get_filelist)
11143         (func_get_dependencies, func_get_autoconf_early_snippet)
11144         (func_get_autoconf_snippet, func_get_automake_snippet)
11145         (func_get_include_directive, func_get_link_directive)
11146         (func_get_license, func_get_maintainer): Use
11147         func_cache_lookup_module.
11148
11149 2010-02-07  Bruno Haible  <bruno@clisp.org>
11150
11151         fnctl: Fix missing dependency.
11152         * modules/fcntl (Depends-on): Add getdtablesize.
11153         Reported by John W. Eaton <jwe@gnu.org>.
11154
11155 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11156
11157         Argp: fix recognition of short alias options.
11158
11159         * lib/argp-parse.c (convert_options): Fix improper use of
11160         `|' between character values.
11161         * tests/test-argp.c (group1_option): New alias option
11162         --read (-r).
11163         (group1_parser): Special handling for 'r'.
11164         (test15): New test case.
11165         (test_fun): Add test15.
11166         * tests/test-argp-2.sh: Update expected --help and --usage
11167         outputs.
11168
11169 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11170
11171         * tests/test-argp.c: Fix indentation.
11172
11173 2010-02-04  Eric Blake  <ebb9@byu.net>
11174
11175         gettimeofday: expose type of second argument
11176         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
11177         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
11178         * tests/test-gettimeofday.c: Use it to silence warning.
11179         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
11180         the issue.
11181
11182 2010-02-03  Jim Meyering  <meyering@redhat.com>
11183
11184         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
11185         * lib/regcomp.c (TYPE_SIGNED): Define.
11186         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
11187
11188         regcomp.c: avoid a new -Wshadow warning
11189         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
11190
11191 2010-02-01  Jim Meyering  <meyering@redhat.com>
11192
11193         removing useless parentheses in cpp #define directives
11194         For motivation, see commit c0221df4, "define STREQ(a,b)
11195         consistently, removing useless parentheses"
11196         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
11197         * lib/mountlist.c (MNT_IGNORE): Likewise.
11198         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
11199
11200 2010-02-01  Eric Blake  <ebb9@byu.net>
11201
11202         sys_time: use link-warning
11203         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
11204         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
11205         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
11206         * modules/sys_time (Depends-on): Add warn-on-use.
11207         (Makefile.am): Always build replacement.
11208         (configure.ac): Update substitutions.
11209         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
11210         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
11211         bother with SYS_TIME_H.
11212         * modules/gettimeofday (configure.ac): Declare indicator.
11213         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
11214         in use.
11215
11216         closein-tests: silence compiler warning
11217         * tests/test-closein.c (main): Ignore fread result.
11218         * modules/closein-tests (Depends-on): Add ignore-value.
11219
11220         tests: silence warning about system return
11221         * tests/test-areadlink-with-size.c (main): Ignore system result.
11222         * tests/test-areadlink.c (main): Likewise.
11223         * tests/test-areadlinkat-with-size.c (main): Likewise.
11224         * tests/test-areadlinkat.c (main): Likewise.
11225         * tests/test-canonicalize-lgpl.c (main): Likewise.
11226         * tests/test-canonicalize.c (main): Likewise.
11227         * tests/test-chown.c (main): Likewise.
11228         * tests/test-fchownat.c (main): Likewise.
11229         * tests/test-fdutimensat.c (main): Likewise.
11230         * tests/test-fstatat.c (main): Likewise.
11231         * tests/test-futimens.c (main): Likewise.
11232         * tests/test-lchown.c (main): Likewise.
11233         * tests/test-link.c (main): Likewise.
11234         * tests/test-linkat.c (main): Likewise.
11235         * tests/test-lstat.c (main): Likewise.
11236         * tests/test-mkdir.c (main): Likewise.
11237         * tests/test-mkdirat.c (main): Likewise.
11238         * tests/test-mkfifo.c (main): Likewise.
11239         * tests/test-mkfifoat.c (main): Likewise.
11240         * tests/test-mknod.c (main): Likewise.
11241         * tests/test-readlink.c (main): Likewise.
11242         * tests/test-remove.c (main): Likewise.
11243         * tests/test-rename.c (main): Likewise.
11244         * tests/test-renameat.c (main): Likewise.
11245         * tests/test-rmdir.c (main): Likewise.
11246         * tests/test-symlink.c (main): Likewise.
11247         * tests/test-symlinkat.c (main): Likewise.
11248         * tests/test-unlink.c (main): Likewise.
11249         * tests/test-unlinkat.c (main): Likewise.
11250         * tests/test-utimens.c (main): Likewise.
11251         * tests/test-utimensat.c (main): Likewise.
11252         * modules/areadlink-tests (Depends-on): Add ignore-value.
11253         * modules/areadlink-with-size-tests (Depends-on): Likewise.
11254         * modules/areadlinkat-tests (Depends-on): Likewise.
11255         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
11256         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11257         * modules/canonicalize-tests (Depends-on): Likewise.
11258         * modules/chown-tests (Depends-on): Likewise.
11259         * modules/fdutimensat-tests (Depends-on): Likewise.
11260         * modules/futimens-tests (Depends-on): Likewise.
11261         * modules/lchown-tests (Depends-on): Likewise.
11262         * modules/link-tests (Depends-on): Likewise.
11263         * modules/linkat-tests (Depends-on): Likewise.
11264         * modules/lstat-tests (Depends-on): Likewise.
11265         * modules/mkdir-tests (Depends-on): Likewise.
11266         * modules/mkfifo-tests (Depends-on): Likewise.
11267         * modules/mkfifoat-tests (Depends-on): Likewise.
11268         * modules/mknod-tests (Depends-on): Likewise.
11269         * modules/openat-tests (Depends-on): Likewise.
11270         * modules/readlink-tests (Depends-on): Likewise.
11271         * modules/remove-tests (Depends-on): Likewise.
11272         * modules/rename-tests (Depends-on): Likewise.
11273         * modules/renameat-tests (Depends-on): Likewise.
11274         * modules/rmdir-tests (Depends-on): Likewise.
11275         * modules/symlink-tests (Depends-on): Likewise.
11276         * modules/symlinkat-tests (Depends-on): Likewise.
11277         * modules/unlink-tests (Depends-on): Likewise.
11278         * modules/utimens-tests (Depends-on): Likewise.
11279         * modules/utimensat-tests (Depends-on): Likewise.
11280
11281 2010-01-31  Bruno Haible  <bruno@clisp.org>
11282
11283         Perform the same test for many <math.h> functions.
11284         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
11285         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
11286         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
11287         of gl_MATHFUNC.
11288         * modules/acos (configure.ac): Likewise.
11289         * modules/asin (configure.ac): Likewise.
11290         * modules/atan (configure.ac): Likewise.
11291         * modules/atan2 (configure.ac): Likewise.
11292         * modules/cbrt (configure.ac): Likewise.
11293         * modules/copysign (configure.ac): Likewise.
11294         * modules/cos (configure.ac): Likewise.
11295         * modules/cosh (configure.ac): Likewise.
11296         * modules/erf (configure.ac): Likewise.
11297         * modules/erfc (configure.ac): Likewise.
11298         * modules/exp (configure.ac): Likewise.
11299         * modules/fmod (configure.ac): Likewise.
11300         * modules/hypot (configure.ac): Likewise.
11301         * modules/j0 (configure.ac): Likewise.
11302         * modules/j1 (configure.ac): Likewise.
11303         * modules/jn (configure.ac): Likewise.
11304         * modules/lgamma (configure.ac): Likewise.
11305         * modules/log (configure.ac): Likewise.
11306         * modules/log10 (configure.ac): Likewise.
11307         * modules/log1p (configure.ac): Likewise.
11308         * modules/pow (configure.ac): Likewise.
11309         * modules/remainder (configure.ac): Likewise.
11310         * modules/sin (configure.ac): Likewise.
11311         * modules/sinh (configure.ac): Likewise.
11312         * modules/tan (configure.ac): Likewise.
11313         * modules/tanh (configure.ac): Likewise.
11314         * modules/y0 (configure.ac): Likewise.
11315         * modules/y1 (configure.ac): Likewise.
11316         * modules/yn (configure.ac): Likewise.
11317         Suggested by Paolo Bonzini.
11318
11319 2010-01-31  Bruno Haible  <bruno@clisp.org>
11320
11321         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
11322
11323 2010-01-31  Bruno Haible  <bruno@clisp.org>
11324
11325         Work around getdelim() bug on FreeBSD 8.0.
11326         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
11327         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
11328         not work.
11329         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
11330         is 1.
11331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
11332         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
11333         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
11334         a non-zero size.
11335         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
11336
11337 2010-01-31  Bruno Haible  <bruno@clisp.org>
11338
11339         Work around getline() bug on FreeBSD 8.0.
11340         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
11341         and a non-zero size.
11342         * tests/test-getline.c (main): Likewise.
11343         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
11344         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
11345
11346 2010-01-28  Eric Blake  <ebb9@byu.net>
11347
11348         regex: fix build failure
11349         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
11350         platforms.
11351
11352 2010-01-28  Jim Meyering  <meyering@redhat.com>
11353
11354         regex: do not ignore memory allocation failure
11355         * lib/regex_internal.c (create_cd_newstate): Detect
11356         re_node_set_init_copy failure.   Extracted from glibc commit
11357         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11358
11359         regex: sync more white-space changes from libc
11360         * lib/regex_internal.c: White-space only changes.
11361         * lib/regexec.c: Likewise.
11362
11363         regex: add many uses of __attribute_warn_unused_result__
11364         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
11365         * lib/regexec.c: Likewise.
11366         Extracted from a messy glibc commit.
11367
11368         regcomp.c: spelling and merge-artifact from glibc
11369         * lib/regcomp.c: Merge remainder of glibc's
11370         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11371
11372         regcomp.c: sync white-space changes from glibc
11373         * lib/regcomp.c: Merge to accommodate white space
11374         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11375
11376         regcomp.c: do not ignore internal return values
11377         * lib/regcomp.c: Do not ignore internal return values.
11378         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
11379         but without its white-space changes and spelling fixes.
11380
11381         regex_internal.h: define __attribute_warn_unused_result__
11382         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
11383
11384         maint: add a syntax-check rule to check for vulnerable Makefile.in
11385         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
11386
11387 2010-01-27  Jim Meyering  <meyering@redhat.com>
11388
11389         ncftpput-ftp: clean up spaces
11390         * build-aux/ncftpput-ftp: Make Copyright line consistent.
11391         Remove trailing blanks.
11392
11393 2010-01-27  Simon Josefsson  <simon@josefsson.org>
11394
11395         * build-aux/git-version-gen: Fix copyright statement.
11396         * build-aux/gnupload: Likewise.
11397         * tests/test-arcfour.c: Likewise.
11398         * tests/test-arctwo.c: Likewise.
11399         * tests/test-count-one-bits.c: Likewise.
11400         * tests/test-crc.c: Likewise.
11401         * tests/test-des.c: Likewise.
11402         * tests/test-gc-arcfour.c: Likewise.
11403         * tests/test-gc-arctwo.c: Likewise.
11404         * tests/test-gc-des.c: Likewise.
11405         * tests/test-gc-hmac-md5.c: Likewise.
11406         * tests/test-gc-hmac-sha1.c: Likewise.
11407         * tests/test-gc-md2.c: Likewise.
11408         * tests/test-gc-md4.c: Likewise.
11409         * tests/test-gc-md5.c: Likewise.
11410         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11411         * tests/test-gc-rijndael.c: Likewise.
11412         * tests/test-gc-sha1.c: Likewise.
11413         * tests/test-gc.c: Likewise.
11414         * tests/test-gethostname.c: Likewise.
11415         * tests/test-gettimeofday.c: Likewise.
11416         * tests/test-hash.c: Likewise.
11417         * tests/test-hmac-md5.c: Likewise.
11418         * tests/test-hmac-sha1.c: Likewise.
11419         * tests/test-md2.c: Likewise.
11420         * tests/test-md4.c: Likewise.
11421         * tests/test-md5.c: Likewise.
11422         * tests/test-memchr.c: Likewise.
11423         * tests/test-memchr2.c: Likewise.
11424         * tests/test-memcmp.c: Likewise.
11425         * tests/test-memmem.c: Likewise.
11426         * tests/test-memrchr.c: Likewise.
11427         * tests/test-rawmemchr.c: Likewise.
11428         * tests/test-read-file.c: Likewise.
11429         * tests/test-rijndael.c: Likewise.
11430         * tests/test-sockets.c: Likewise.
11431         * tests/test-strchrnul.c: Likewise.
11432         * tests/test-strstr.c: Likewise.
11433         * tests/test-strtod.c: Likewise.
11434         * build-aux/ncftpput-ftp: Likewise.
11435
11436 2010-01-26  Eric Blake  <ebb9@byu.net>
11437
11438         ignore-value: update recommended header name
11439         * modules/ignore-value (Include): Only use <> for headers that
11440         exist in glibc.
11441
11442 2010-01-26  Jim Meyering  <meyering@redhat.com>
11443
11444         test-userspec.c: avoid compiler warnings
11445         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
11446         and "initialization discards qualifiers..." warnings.
11447         Put the first "uid" in its own scope, and make char* members "const".
11448
11449 2010-01-25  Bruno Haible  <bruno@clisp.org>
11450
11451         gnulib-tool: Make warning diagnostics consistent.
11452         * gnulib-tool (func_warning): New function.
11453         Use it everywhere where gnulib-tool produces output to stderr and it is
11454         not a fatal error.
11455
11456 2010-01-25  Bruno Haible  <bruno@clisp.org>
11457
11458         Fix test dependencies.
11459         * modules/xstrtol-tests (Depends-on): Add inttypes.
11460         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
11461
11462 2010-01-25 Pádraig Brady <P@draigBrady.com>
11463
11464         syntax-check: detect incorrect boolean macro values in config.h
11465         * modules/maintainer-makefile (configure.ac): Parameterize the location
11466         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
11467         The logic is from Eric Blake and the location indicated by Jim Meyering.
11468         Note the more natural CONFIG_HEADER name is prohibited by automake
11469         for backwards compatibility reasons.
11470         * top/maint.mk (sc_Wundef_boolean): New rule.
11471
11472 2010-01-25  Jim Meyering  <meyering@redhat.com>
11473
11474         bootstrap: detect MacOS 10.6's shasum, too
11475         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
11476         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
11477
11478 2010-01-23  Jim Meyering  <meyering@redhat.com>
11479
11480         xstrtoll: new module
11481         * modules/xstrtoll: New file.
11482         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
11483         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
11484         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
11485         ./configure fails if you use this module and lack "long long".
11486         * modules/xstrtoll-tests: New module.
11487         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
11488         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
11489         new init.sh-based test framework.
11490
11491 2010-01-24  Bruno Haible  <bruno@clisp.org>
11492
11493         Tests for module 'yn'.
11494         * modules/yn-tests: New file.
11495         * tests/test-yn.c: New file.
11496
11497         Tests for module 'y1'.
11498         * modules/y1-tests: New file.
11499         * tests/test-y1.c: New file.
11500
11501         Tests for module 'y0'.
11502         * modules/y0-tests: New file.
11503         * tests/test-y0.c: New file.
11504
11505         Tests for module 'tanh'.
11506         * modules/tanh-tests: New file.
11507         * tests/test-tanh.c: New file.
11508
11509         Tests for module 'tan'.
11510         * modules/tan-tests: New file.
11511         * tests/test-tan.c: New file.
11512
11513         Tests for module 'sqrt'.
11514         * modules/sqrt-tests: New file.
11515         * tests/test-sqrt.c: New file.
11516
11517         Tests for module 'sinh'.
11518         * modules/sinh-tests: New file.
11519         * tests/test-sinh.c: New file.
11520
11521         Tests for module 'sin'.
11522         * modules/sin-tests: New file.
11523         * tests/test-sin.c: New file.
11524
11525         Tests for module 'rint'.
11526         * modules/rint-tests: New file.
11527         * tests/test-rint.c: New file.
11528
11529         Tests for module 'remainder'.
11530         * modules/remainder-tests: New file.
11531         * tests/test-remainder.c: New file.
11532
11533         Tests for module 'pow'.
11534         * modules/pow-tests: New file.
11535         * tests/test-pow.c: New file.
11536
11537         Tests for module 'nextafter'.
11538         * modules/nextafter-tests: New file.
11539         * tests/test-nextafter.c: New file.
11540
11541         Tests for module 'modf'.
11542         * modules/modf-tests: New file.
11543         * tests/test-modf.c: New file.
11544
11545         Tests for module 'logb'.
11546         * modules/logb-tests: New file.
11547         * tests/test-logb.c: New file.
11548
11549         Tests for module 'log1p'.
11550         * modules/log1p-tests: New file.
11551         * tests/test-log1p.c: New file.
11552
11553         Tests for module 'log10'.
11554         * modules/log10-tests: New file.
11555         * tests/test-log10.c: New file.
11556
11557         Tests for module 'log'.
11558         * modules/log-tests: New file.
11559         * tests/test-log.c: New file.
11560
11561         Tests for module 'lgamma'.
11562         * modules/lgamma-tests: New file.
11563         * tests/test-lgamma.c: New file.
11564
11565         Tests for module 'ldexp'.
11566         * modules/ldexp-tests: New file.
11567         * tests/test-ldexp.c: New file.
11568
11569         Tests for module 'jn'.
11570         * modules/jn-tests: New file.
11571         * tests/test-jn.c: New file.
11572
11573         Tests for module 'j1'.
11574         * modules/j1-tests: New file.
11575         * tests/test-j1.c: New file.
11576
11577         Tests for module 'j0'.
11578         * modules/j0-tests: New file.
11579         * tests/test-j0.c: New file.
11580
11581         Tests for module 'hypot'.
11582         * modules/hypot-tests: New file.
11583         * tests/test-hypot.c: New file.
11584
11585         Tests for module 'fmod'.
11586         * modules/fmod-tests: New file.
11587         * tests/test-fmod.c: New file.
11588
11589         Tests for module 'fabs'.
11590         * modules/fabs-tests: New file.
11591         * tests/test-fabs.c: New file.
11592
11593         Tests for module 'exp'.
11594         * modules/exp-tests: New file.
11595         * tests/test-exp.c: New file.
11596
11597         Tests for module 'erfc'.
11598         * modules/erfc-tests: New file.
11599         * tests/test-erfc.c: New file.
11600
11601         Tests for module 'erf'.
11602         * modules/erf-tests: New file.
11603         * tests/test-erf.c: New file.
11604
11605         Tests for module 'cosh'.
11606         * modules/cosh-tests: New file.
11607         * tests/test-cosh.c: New file.
11608
11609         Tests for module 'cos'.
11610         * modules/cos-tests: New file.
11611         * tests/test-cos.c: New file.
11612
11613         Tests for module 'copysign'.
11614         * modules/copysign-tests: New file.
11615         * tests/test-copysign.c: New file.
11616
11617         Tests for module 'cbrt'.
11618         * modules/cbrt-tests: New file.
11619         * tests/test-cbrt.c: New file.
11620
11621         Tests for module 'atan2'.
11622         * modules/atan2-tests: New file.
11623         * tests/test-atan2.c: New file.
11624
11625         Tests for module 'atan'.
11626         * modules/atan-tests: New file.
11627         * tests/test-atan.c: New file.
11628
11629         Tests for module 'asin'.
11630         * modules/asin-tests: New file.
11631         * tests/test-asin.c: New file.
11632
11633         Tests for module 'acos'.
11634         * modules/acos-tests: New file.
11635         * tests/test-acos.c: New file.
11636
11637 2010-01-24  Bruno Haible  <bruno@clisp.org>
11638
11639         Fix tests for common <math.h> functions.
11640         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
11641         code snippet that references the function pointer, rather than merely
11642         calling the function. Substitute the FUNC_LIBM variable.
11643         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
11644         * modules/acos (configure.ac): Likewise.
11645         * modules/asin (configure.ac): Likewise.
11646         * modules/atan (configure.ac): Likewise.
11647         * modules/atan2 (configure.ac): Likewise.
11648         * modules/cbrt (configure.ac): Likewise.
11649         * modules/copysign (configure.ac): Likewise.
11650         * modules/cos (configure.ac): Likewise.
11651         * modules/cosh (configure.ac): Likewise.
11652         * modules/erf (configure.ac): Likewise.
11653         * modules/erfc (configure.ac): Likewise.
11654         * modules/exp (configure.ac): Likewise.
11655         * modules/fabs (configure.ac): Likewise.
11656         * modules/fmod (configure.ac): Likewise.
11657         * modules/hypot (configure.ac): Likewise.
11658         * modules/j0 (configure.ac): Likewise.
11659         * modules/j1 (configure.ac): Likewise.
11660         * modules/jn (configure.ac): Likewise.
11661         * modules/ldexp (configure.ac): Likewise.
11662         * modules/lgamma (configure.ac): Likewise.
11663         * modules/log (configure.ac): Likewise.
11664         * modules/log10 (configure.ac): Likewise.
11665         * modules/log1p (configure.ac): Likewise.
11666         * modules/logb (configure.ac): Likewise.
11667         * modules/modf (configure.ac): Likewise.
11668         * modules/nextafter (configure.ac): Likewise.
11669         * modules/pow (configure.ac): Likewise.
11670         * modules/remainder (configure.ac): Likewise.
11671         * modules/rint (configure.ac): Likewise.
11672         * modules/sin (configure.ac): Likewise.
11673         * modules/sinh (configure.ac): Likewise.
11674         * modules/tan (configure.ac): Likewise.
11675         * modules/tanh (configure.ac): Likewise.
11676         * modules/y0 (configure.ac): Likewise.
11677         * modules/y1 (configure.ac): Likewise.
11678         * modules/yn (configure.ac): Likewise.
11679
11680 2010-01-24  Bruno Haible  <bruno@clisp.org>
11681
11682         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
11683         * tests/test-acosl.c (x): New variable.
11684         (main): Store argument in x and fetch it from x.
11685         * tests/test-asinl.c (x): New variable.
11686         (main): Store argument in x and fetch it from x.
11687         * tests/test-atanl.c (x): New variable.
11688         (main): Store argument in x and fetch it from x.
11689         * tests/test-cosl.c (x): New variable.
11690         (main): Store argument in x and fetch it from x.
11691         * tests/test-expl.c (x): New variable.
11692         (main): Store argument in x and fetch it from x.
11693         * tests/test-logl.c (x): New variable.
11694         (main): Store argument in x and fetch it from x.
11695         * tests/test-sinl.c (x): New variable.
11696         (main): Store argument in x and fetch it from x.
11697         * tests/test-sqrtl.c (x): New variable.
11698         (main): Store argument in x and fetch it from x.
11699         * tests/test-tanl.c (x): New variable.
11700         (main): Store argument in x and fetch it from x.
11701
11702 2010-01-24  Bruno Haible  <bruno@clisp.org>
11703
11704         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
11705         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
11706         assignments to the initial TESTS_ENVIRONMENT.
11707         * doc/gnulib.texi (Unit test modules): Document it.
11708         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
11709         TESTS_ENVIRONMENT.
11710         * modules/btowc-tests (Makefile.am): Likewise.
11711         * modules/c-stack-tests (Makefile.am): Likewise.
11712         * modules/c-strcase-tests (Makefile.am): Likewise.
11713         * modules/copy-file-tests (Makefile.am): Likewise.
11714         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11715         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11716         * modules/mbrtowc-tests (Makefile.am): Likewise.
11717         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11718         * modules/mbscasestr-tests (Makefile.am): Likewise.
11719         * modules/mbschr-tests (Makefile.am): Likewise.
11720         * modules/mbscspn-tests (Makefile.am): Likewise.
11721         * modules/mbsinit-tests (Makefile.am): Likewise.
11722         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11723         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11724         * modules/mbspbrk-tests (Makefile.am): Likewise.
11725         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11726         * modules/mbsrchr-tests (Makefile.am): Likewise.
11727         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11728         * modules/mbsspn-tests (Makefile.am): Likewise.
11729         * modules/mbsstr-tests (Makefile.am): Likewise.
11730         * modules/nl_langinfo-tests (Makefile.am): Likewise.
11731         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
11732         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11733         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11734         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11735         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11736         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
11737         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11738         * modules/wcrtomb-tests (Makefile.am): Likewise.
11739         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
11740         * modules/wcsrtombs-tests (Makefile.am): Likewise.
11741         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
11742         assignments from TESTS_ENVIRONMENT.
11743         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
11744         augmentation.
11745         * modules/argp-version-etc-tests (Makefile.am): Likewise.
11746         * modules/atexit-tests (Makefile.am): Likewise.
11747         * modules/binary-io-tests (Makefile.am): Likewise.
11748         * modules/closein-tests (Makefile.am): Likewise.
11749         * modules/dprintf-posix-tests (Makefile.am): Likewise.
11750         * modules/exclude-tests (Makefile.am): Likewise.
11751         * modules/fflush-tests (Makefile.am): Likewise.
11752         * modules/fpending-tests (Makefile.am): Likewise.
11753         * modules/fprintf-posix-tests (Makefile.am): Likewise.
11754         * modules/freadahead-tests (Makefile.am): Likewise.
11755         * modules/freadptr-tests (Makefile.am): Likewise.
11756         * modules/freadseek-tests (Makefile.am): Likewise.
11757         * modules/fseek-tests (Makefile.am): Likewise.
11758         * modules/fseeko-tests (Makefile.am): Likewise.
11759         * modules/ftell-tests (Makefile.am): Likewise.
11760         * modules/ftello-tests (Makefile.am): Likewise.
11761         * modules/idpriv-drop-tests (Makefile.am): Likewise.
11762         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
11763         * modules/lseek-tests (Makefile.am): Likewise.
11764         * modules/parse-duration-tests (Makefile.am): Likewise.
11765         * modules/perror-tests (Makefile.am): Likewise.
11766         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
11767         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
11768         * modules/pipe-tests (Makefile.am): Likewise.
11769         * modules/pread-tests (Makefile.am): Likewise.
11770         * modules/printf-posix-tests (Makefile.am): Likewise.
11771         * modules/select-tests (Makefile.am): Likewise.
11772         * modules/sigpipe-tests (Makefile.am): Likewise.
11773         * modules/tsearch-tests (Makefile.am): Likewise.
11774         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
11775         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
11776         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11777         * modules/uniwidth/width-tests (Makefile.am): Likewise.
11778         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
11779         * modules/version-etc-tests (Makefile.am): Likewise.
11780         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11781         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11782         * modules/xalloc-die-tests (Makefile.am): Likewise.
11783         * modules/xprintf-posix-tests (Makefile.am): Likewise.
11784         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11785         * modules/xstrtol-tests (Makefile.am): Likewise.
11786         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11787         * modules/yesno-tests (Makefile.am): Likewise.
11788         Suggested by Jim Meyering.
11789
11790 2010-01-24  Bruno Haible  <bruno@clisp.org>
11791
11792         More documentation.
11793         * doc/gnulib.texi (Writing modules): New chapter.
11794         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
11795         the new chapter.
11796
11797 2010-01-24  Jim Meyering  <meyering@redhat.com>
11798
11799         maint.mk: do not prepend "./" after filtering
11800         * top/maint.mk (_prepend_srcdir_prefix): New variable
11801         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
11802         "./" when $(srcdir) is ".".
11803
11804         define STREQ(a,b) consistently, removing useless parentheses
11805         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
11806         since the only risk is that "a" or "b" contains an unparenthesized
11807         comma, but if either did that, STREQ would have 3 or more arguments.
11808         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
11809         * lib/fts.c (STREQ): Remove unnecessary parentheses.
11810         * lib/hash-triple.c (STREQ): Likewise.
11811         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
11812         * lib/getugroups.c (STREQ): Likewise.
11813
11814 2010-01-23  Jim Meyering  <meyering@redhat.com>
11815
11816         maint.mk: fix syntax-check in a non-srcdir build directory
11817         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
11818         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
11819
11820 2010-01-22  Jim Meyering  <meyering@redhat.com>
11821
11822         userspec: add unit tests
11823         * tests/test-userspec.c: New file.
11824         * modules/userspec-tests: Likewise.
11825
11826 2010-01-21  Jim Meyering  <meyering@redhat.com>
11827
11828         maint.mk: handle source file names containing "." robustly
11829         * top/maint.mk (_dot_escaped_srcdir): Define.
11830         (VC_LIST): Use it in LHS of sed substitution.
11831
11832 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
11833
11834         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
11835         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
11836         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
11837         from a non-srcdir build.
11838
11839 2010-01-20  Eric Blake  <ebb9@byu.net>
11840
11841         warn-on-use: use instead of link-warning
11842         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
11843         * modules/unistd (Depends-on, Makefile.am): Likewise.
11844         * modules/arpa_inet (Depends-on): Replace link-warning with
11845         warn-on-use.
11846         (Makefile.am): Update rules accordingly.
11847         * modules/ctype (Depends-on, Makefile.am): Likewise.
11848         * modules/dirent (Depends-on, Makefile.am): Likewise.
11849         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
11850         * modules/inttypes (Depends-on, Makefile.am): Likewise.
11851         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11852         * modules/locale (Depends-on, Makefile.am): Likewise.
11853         * modules/math (Depends-on, Makefile.am): Likewise.
11854         * modules/search (Depends-on, Makefile.am): Likewise.
11855         * modules/signal (Depends-on, Makefile.am): Likewise.
11856         * modules/spawn (Depends-on, Makefile.am): Likewise.
11857         * modules/stdlib (Depends-on, Makefile.am): Likewise.
11858         * modules/string (Depends-on, Makefile.am): Likewise.
11859         * modules/strings (Depends-on, Makefile.am): Likewise.
11860         * modules/sys_file (Depends-on, Makefile.am): Likewise.
11861         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
11862         * modules/sys_select (Depends-on, Makefile.am): Likewise.
11863         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
11864         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
11865         * modules/sys_times (Depends-on, Makefile.am): Likewise.
11866         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11867         * modules/wchar (Depends-on, Makefile.am): Likewise.
11868         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
11869         should be poisoned.
11870         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
11871         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
11872         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
11873         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11874         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11875         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11876         * m4/math_h.m4 (gl_MATH_H): Likewise.
11877         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11878         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11879         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11880         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11881         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11882         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11883         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11884         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
11885         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11886         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11887         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11888         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11889         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11890         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11891         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11892         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11893         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
11894         GL_LINK_WARNING.
11895         * lib/ctype.in.h: Likewise.
11896         * lib/dirent.in.h: Likewise.
11897         * lib/fcntl.in.h: Likewise.
11898         * lib/inttypes.in.h: Likewise.
11899         * lib/langinfo.in.h: Likewise.
11900         * lib/locale.in.h: Likewise.
11901         * lib/math.in.h: Likewise.
11902         * lib/search.in.h: Likewise.
11903         * lib/signal.in.h: Likewise.
11904         * lib/spawn.in.h: Likewise.
11905         * lib/stdio.in.h: Likewise.
11906         * lib/stdlib.in.h: Likewise.
11907         * lib/string.in.h: Likewise.
11908         * lib/strings.in.h: Likewise.
11909         * lib/sys_file.in.h: Likewise.
11910         * lib/sys_ioctl.in.h: Likewise.
11911         * lib/sys_select.in.h: Likewise.
11912         * lib/sys_socket.in.h: Likewise.
11913         * lib/sys_stat.in.h: Likewise.
11914         * lib/sys_times.in.h: Likewise.
11915         * lib/sys_utsname.in.h: Likewise.
11916         * lib/unistd.in.h: Likewise.
11917         * lib/wchar.in.h: Likewise.
11918
11919 2010-01-20  Bruno Haible  <bruno@clisp.org>
11920
11921         Avoid duplicate -lm.
11922         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
11923         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
11924         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
11925         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
11926         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
11927         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
11928         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
11929         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
11930         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
11931         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
11932         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
11933         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11934         Reported by Paolo Bonzini.
11935
11936 2010-01-19  Bruno Haible  <bruno@clisp.org>
11937
11938         langinfo, nl_langinfo: Relicense under LGPLv2+.
11939         * modules/langinfo (License): Change to LGPLv2+.
11940         * modules/nl_langinfo (License): Likewise.
11941         Patch by David Lutterkort <lutter@redhat.com>.
11942
11943 2010-01-19  Bruno Haible  <bruno@clisp.org>
11944
11945         Avoid compilation error with cc on OSF/1 5.1.
11946         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
11947         statement, not before.
11948         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11949
11950 2010-01-18  Bruno Haible  <bruno@clisp.org>
11951
11952         Avoid a link error due to the __printf__ symbol.
11953         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
11954         and 2.6.x.
11955         (__format__, __printf__): Remove definitions.
11956         * lib/argp-fmtstream.h: Likewise.
11957         * lib/argp.h: Likewise.
11958         * lib/error.h: Likewise.
11959         * lib/vasnprintf.h: Likewise.
11960         * lib/xprintf.h: Likewise.
11961         * lib/xvasprintf.h: Likewise.
11962         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11963
11964 2010-01-18  Bruno Haible  <bruno@clisp.org>
11965
11966         Tests for module 'tanl'.
11967         * modules/tanl-tests: New file.
11968         * tests/test-tanl.c: New file.
11969
11970         Tests for module 'sqrtl'.
11971         * modules/sqrtl-tests: New file.
11972         * tests/test-sqrtl.c: New file.
11973
11974         Tests for module 'sinl'.
11975         * modules/sinl-tests: New file.
11976         * tests/test-sinl.c: New file.
11977
11978         Tests for module 'logl'.
11979         * modules/logl-tests: New file.
11980         * tests/test-logl.c: New file.
11981
11982         Tests for module 'expl'.
11983         * modules/expl-tests: New file.
11984         * tests/test-expl.c: New file.
11985
11986         Tests for module 'cosl'.
11987         * modules/cosl-tests: New file.
11988         * tests/test-cosl.c: New file.
11989
11990         Tests for module 'atanl'.
11991         * modules/atanl-tests: New file.
11992         * tests/test-atanl.c: New file.
11993
11994         Tests for module 'asinl'.
11995         * modules/asinl-tests: New file.
11996         * tests/test-asinl.c: New file.
11997
11998         Tests for module 'acosl'.
11999         * modules/acosl-tests: New file.
12000         * tests/test-acosl.c: New file.
12001
12002         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12003         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12004         tanl): Use the standard gnulib idiom.
12005         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12006         * lib/sinl.c: Likewise.
12007         * lib/tanl.c: Don't include trigl.c.
12008         (kernel_tanl): Make static.
12009         * lib/sincosl.c: Include trigl.h first.
12010         * lib/trigl.c: Likewise.
12011         * m4/acosl.m4: New file.
12012         * m4/asinl.m4: New file.
12013         * m4/atanl.m4: New file.
12014         * m4/cosl.m4: New file.
12015         * m4/expl.m4: New file.
12016         * m4/logl.m4: New file.
12017         * m4/sinl.m4: New file.
12018         * m4/sqrtl.m4: New file.
12019         * m4/tanl.m4: New file.
12020         * m4/mathl.m4: Remove file.
12021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12022         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12023         Don't initialize GNULIB_MATHL.
12024         * modules/acosl: New file.
12025         * modules/asinl: New file.
12026         * modules/atanl: New file.
12027         * modules/cosl: New file.
12028         * modules/expl: New file.
12029         * modules/logl: New file.
12030         * modules/sinl: New file.
12031         * modules/sqrtl: New file.
12032         * modules/tanl: New file.
12033         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12034         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12035         substitute GNULIB_MATHL.
12036         * modules/mathl: Rewritten.
12037         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12038         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12039         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12040         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12041         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12042         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12043         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12044         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12045         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
12046
12047 2010-01-18  Bruno Haible  <bruno@clisp.org>
12048
12049         sqrt: Make gl_FUNC_SQRT requirable.
12050         * m4/sqrt.m4: New file.
12051         * modules/sqrt (Files): Add it.
12052         (configure.ac): Invoke gl_FUNC_SQRT.
12053
12054 2010-01-18  Bruno Haible  <bruno@clisp.org>
12055
12056         New modules for common <math.h> functions.
12057         * m4/mathfunc.m4: New file.
12058         * modules/acos: New file.
12059         * modules/asin: New file.
12060         * modules/atan: New file.
12061         * modules/atan2: New file.
12062         * modules/cbrt: New file.
12063         * modules/copysign: New file.
12064         * modules/cos: New file.
12065         * modules/cosh: New file.
12066         * modules/erf: New file.
12067         * modules/erfc: New file.
12068         * modules/exp: New file.
12069         * modules/fabs: New file.
12070         * modules/fmod: New file.
12071         * modules/hypot: New file.
12072         * modules/j0: New file.
12073         * modules/j1: New file.
12074         * modules/jn: New file.
12075         * modules/ldexp: New file.
12076         * modules/lgamma: New file.
12077         * modules/log: New file.
12078         * modules/log10: New file.
12079         * modules/log1p: New file.
12080         * modules/logb: New file.
12081         * modules/modf: New file.
12082         * modules/nextafter: New file.
12083         * modules/pow: New file.
12084         * modules/remainder: New file.
12085         * modules/rint: New file.
12086         * modules/sin: New file.
12087         * modules/sinh: New file.
12088         * modules/sqrt: New file.
12089         * modules/tan: New file.
12090         * modules/tanh: New file.
12091         * modules/y0: New file.
12092         * modules/y1: New file.
12093         * modules/yn: New file.
12094         * doc/posix-functions/acos.texi: Mention the 'acos' module.
12095         * doc/posix-functions/asin.texi: Mention the 'asin' module.
12096         * doc/posix-functions/atan.texi: Mention the 'atan' module.
12097         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
12098         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
12099         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
12100         * doc/posix-functions/cos.texi: Mention the 'cos' module.
12101         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
12102         * doc/posix-functions/erf.texi: Mention the 'erf' module.
12103         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
12104         * doc/posix-functions/exp.texi: Mention the 'exp' module.
12105         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
12106         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
12107         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
12108         * doc/posix-functions/j0.texi: Mention the 'j0' module.
12109         * doc/posix-functions/j1.texi: Mention the 'j1' module.
12110         * doc/posix-functions/jn.texi: Mention the 'jn' module.
12111         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
12112         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
12113         * doc/posix-functions/log.texi: Mention the 'log' module.
12114         * doc/posix-functions/log10.texi: Mention the 'log10' module.
12115         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
12116         * doc/posix-functions/logb.texi: Mention the 'logb' module.
12117         * doc/posix-functions/modf.texi: Mention the 'modf' module.
12118         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
12119         * doc/posix-functions/pow.texi: Mention the 'pow' module.
12120         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
12121         * doc/posix-functions/rint.texi: Mention the 'rint' module.
12122         * doc/posix-functions/sin.texi: Mention the 'sin' module.
12123         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
12124         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
12125         * doc/posix-functions/tan.texi: Mention the 'tan' module.
12126         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
12127         * doc/posix-functions/y0.texi: Mention the 'y0' module.
12128         * doc/posix-functions/y1.texi: Mention the 'y1' module.
12129         * doc/posix-functions/yn.texi: Mention the 'yn' module.
12130
12131 2010-01-18  Jim Meyering  <meyering@redhat.com>
12132
12133         ignore-value: relax license to LGPLv2+
12134         * modules/ignore-value (License): Relax to LGPLv2+.
12135
12136         getdate: don't leak when TZ contains two or more '"'s
12137         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
12138         double quote in TZ after the first one.
12139
12140         readtokens: do not leak internal token_lengths buffer
12141         * lib/readtokens.c (readtokens): Free the local, lengths,
12142         when the supplied "token_lengths" parameter is NULL.
12143
12144 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12145
12146         Fix a couple of missing LIBTHREAD link failures on AIX.
12147         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
12148         $(LIBTHREAD).
12149         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
12150
12151         Link test-poll against INET_PTON_LIB.
12152         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
12153         for inet_pton on Solaris 10.
12154
12155 2010-01-17  Bruno Haible  <bruno@clisp.org>
12156
12157         unistdio/*-sprintf: Fix typo in module description.
12158         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
12159         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
12160         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
12161         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
12162         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
12163         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
12164         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
12165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12166
12167 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12168
12169         gnulib-tool: fix filelist for AIX, HP-UX ksh.
12170         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
12171         variables in shell case patterns, for AIX and HP-UX ksh.
12172
12173         Split large sed scripts, for HP-UX sed.
12174         * modules/stdio: Split sed scripts around 50 sed commands,
12175         to avoid HP-UX limit of 99 commands, in the near future.
12176         * modules/string: Likewise.
12177         * modules/unistd: Likewise.
12178
12179         gnulib-tool: avoid writing in the current directory.
12180         * gnulib-tool (func_emit_lib_Makefile_am)
12181         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
12182         not in the current directory, so concurrent gnulib-tool
12183         instances do not interfere.
12184
12185 2010-01-16  Jim Meyering  <meyering@redhat.com>
12186
12187         doc: update users.txt
12188         * users.txt: Add grep.
12189         (diffutils, gzip): Update URLs.
12190
12191 2010-01-12  Bruno Haible  <bruno@clisp.org>
12192
12193         posix_spawn: Avoid test failure on Cygwin.
12194         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
12195         characters.
12196         Reported by Simon Josefsson.
12197
12198 2010-01-12  Bruno Haible  <bruno@clisp.org>
12199
12200         * tests/test-cond.c (main): When skipping the test, show the reason.
12201
12202 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12203
12204         * lib/striconv.c (str_cd_iconv): Avoid if before free.
12205
12206 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12207
12208         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
12209         VC_LIST_ALWAYS_EXCLUDE_REGEX.
12210
12211 2010-01-12  Eric Blake  <ebb9@byu.net>
12212
12213         build: guarantee AS_VAR_IF
12214         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
12215         (gl_AS_VAR_IF): Move...
12216         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
12217         Reported by Simon Josefsson.
12218
12219 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12220
12221         * lib/stdio.in.h: Fix typo.
12222
12223 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12224
12225         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
12226         libgpg-error.
12227
12228 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12229
12230         * tests/test-xalloc-die.sh: Use $EXEEXT.
12231
12232 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12233             Bruno Haible  <bruno@clisp.org>
12234
12235         getlogin, getlogin_r: Avoid test failure.
12236         * tests/test-getlogin.c: Include <stdio.h>.
12237         (main): Skip the test when the function fails because stdin is not a
12238         tty.
12239         * tests/test-getlogin_r.c: Include <stdio.h>.
12240         (main): Skip the test when the function fails because stdin is not a
12241         tty.
12242
12243 2010-01-11  Eric Blake  <ebb9@byu.net>
12244
12245         tests: avoid more large file warnings
12246         * tests/test-fflush.c: Avoid warning about ftell use.
12247         * tests/test-fseek.c: Avoid warning about fseek use.
12248
12249 2010-01-10  Bruno Haible  <bruno@clisp.org>
12250
12251         nproc: Work better on Linux when /proc and /sys are not mounted.
12252         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
12253         as lower bound when, on glibc/Linux systems,
12254         sysconf (_SC_NPROCESSORS_CONF) returns 1.
12255         Suggested by Pádraig Brady <P@draigbrady.com>.
12256         Reported by Dmitry V. Levin <ldv@altlinux.org>.
12257
12258         nproc: Refactor.
12259         * lib/nproc.c (num_processors_via_affinity_mask): New function,
12260         extracted from num_processors.
12261         (num_processors): Call it.
12262
12263 2010-01-11  Jim Meyering  <meyering@redhat.com>
12264
12265         utimecmp: avoid new warning from upcoming gcc-4.5.0
12266         * lib/utimecmp.c (BILLION): Define using #define rather than an
12267         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
12268
12269 2010-01-11  Eric Blake  <ebb9@byu.net>
12270
12271         math: add portability warnings for classification macros
12272         * modules/math (Depends-on): Add warn-on-use.
12273         (Makefile.am): Provide new substitutions.
12274         * m4/math_h.m4 (gl_MATH_H): Require inline.
12275         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
12276         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
12277         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
12278         implement warnings.
12279
12280         unistd: warn on use of environ without module
12281         * modules/unistd (Depends-on): Add warn-on-use.
12282         (Makefile.am): Provide new substitutions.
12283         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
12284         * lib/unistd.in.h (environ): Wrap with a warning helper function.
12285
12286         stdio: warn on suspicious uses
12287         * modules/stdio (Depends-on): Add warn-on-use.
12288         (Makefile.am): Provide new substitutions.
12289         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
12290         fseeko.
12291         * lib/stdio.in.h (gets): Always warn on use.
12292         (fseek, ftell): Adjust when warnings are issued, and honor
12293         _GL_NO_LARGE_FILES as a way to silence the warning.
12294         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
12295         any warning about large file offsets.
12296         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
12297         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
12298         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
12299         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
12300         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
12301         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
12302         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
12303         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
12304
12305         warn-on-use: new module
12306         * modules/warn-on-use: New file.
12307         * build-aux/warn-on-use.h: Likewise.
12308         * m4/warn-on-use.m4: Likewise.
12309         * MODULES.html.sh (Support for building): Mention it.
12310
12311 2010-01-10  Bruno Haible  <bruno@clisp.org>
12312
12313         Tests for module 'unistr/u32-strdup'.
12314         * modules/unistr/u32-strdup-tests: New file.
12315         * tests/unistr/test-u32-strdup.c: New file.
12316
12317         Tests for module 'unistr/u16-strdup'.
12318         * modules/unistr/u16-strdup-tests: New file.
12319         * tests/unistr/test-u16-strdup.c: New file.
12320
12321         Tests for module 'unistr/u8-strdup'.
12322         * modules/unistr/u8-strdup-tests: New file.
12323         * tests/unistr/test-u8-strdup.c: New file.
12324         * tests/unistr/test-strdup.h: New file.
12325
12326         Tests for module 'unistr/u32-strncmp'.
12327         * modules/unistr/u32-strncmp-tests: New file.
12328         * tests/unistr/test-u32-strncmp.c: New file.
12329
12330         Tests for module 'unistr/u16-strncmp'.
12331         * modules/unistr/u16-strncmp-tests: New file.
12332         * tests/unistr/test-u16-strncmp.c: New file.
12333
12334         Tests for module 'unistr/u8-strncmp'.
12335         * modules/unistr/u8-strncmp-tests: New file.
12336         * tests/unistr/test-u8-strncmp.c: New file.
12337         * tests/unistr/test-strncmp.h: New file.
12338
12339         Tests for module 'unistr/u32-strcoll'.
12340         * modules/unistr/u32-strcoll-tests: New file.
12341         * tests/unistr/test-u32-strcoll.c: New file.
12342
12343         Tests for module 'unistr/u16-strcoll'.
12344         * modules/unistr/u16-strcoll-tests: New file.
12345         * tests/unistr/test-u16-strcoll.c: New file.
12346
12347         Tests for module 'unistr/u8-strcoll'.
12348         * modules/unistr/u8-strcoll-tests: New file.
12349         * tests/unistr/test-u8-strcoll.c: New file.
12350
12351         Tests for module 'unistr/u32-strcmp'.
12352         * modules/unistr/u32-strcmp-tests: New file.
12353         * tests/unistr/test-u32-strcmp.c: New file.
12354         * tests/unistr/test-u32-strcmp.h: New file.
12355
12356         Tests for module 'unistr/u16-strcmp'.
12357         * modules/unistr/u16-strcmp-tests: New file.
12358         * tests/unistr/test-u16-strcmp.c: New file.
12359         * tests/unistr/test-u16-strcmp.h: New file.
12360
12361         Tests for module 'unistr/u8-strcmp'.
12362         * modules/unistr/u8-strcmp-tests: New file.
12363         * tests/unistr/test-u8-strcmp.c: New file.
12364         * tests/unistr/test-u8-strcmp.h: New file.
12365         * tests/unistr/test-strcmp.h: New file.
12366
12367         Tests for module 'unistr/u32-strncat'.
12368         * modules/unistr/u32-strncat-tests: New file.
12369         * tests/unistr/test-u32-strncat.c: New file.
12370
12371         Tests for module 'unistr/u16-strncat'.
12372         * modules/unistr/u16-strncat-tests: New file.
12373         * tests/unistr/test-u16-strncat.c: New file.
12374
12375         Tests for module 'unistr/u8-strncat'.
12376         * modules/unistr/u8-strncat-tests: New file.
12377         * tests/unistr/test-u8-strncat.c: New file.
12378         * tests/unistr/test-strncat.h: New file.
12379
12380         Tests for module 'unistr/u32-strcat'.
12381         * modules/unistr/u32-strcat-tests: New file.
12382         * tests/unistr/test-u32-strcat.c: New file.
12383
12384         Tests for module 'unistr/u16-strcat'.
12385         * modules/unistr/u16-strcat-tests: New file.
12386         * tests/unistr/test-u16-strcat.c: New file.
12387
12388         Tests for module 'unistr/u8-strcat'.
12389         * modules/unistr/u8-strcat-tests: New file.
12390         * tests/unistr/test-u8-strcat.c: New file.
12391         * tests/unistr/test-strcat.h: New file.
12392
12393         Tests for module 'unistr/u32-stpncpy'.
12394         * modules/unistr/u32-stpncpy-tests: New file.
12395         * tests/unistr/test-u32-stpncpy.c: New file.
12396
12397         Tests for module 'unistr/u16-stpncpy'.
12398         * modules/unistr/u16-stpncpy-tests: New file.
12399         * tests/unistr/test-u16-stpncpy.c: New file.
12400
12401         Tests for module 'unistr/u8-stpncpy'.
12402         * modules/unistr/u8-stpncpy-tests: New file.
12403         * tests/unistr/test-u8-stpncpy.c: New file.
12404         * tests/unistr/test-stpncpy.h: New file.
12405
12406         Tests for module 'unistr/u32-strncpy'.
12407         * modules/unistr/u32-strncpy-tests: New file.
12408         * tests/unistr/test-u32-strncpy.c: New file.
12409
12410         Tests for module 'unistr/u16-strncpy'.
12411         * modules/unistr/u16-strncpy-tests: New file.
12412         * tests/unistr/test-u16-strncpy.c: New file.
12413
12414         Tests for module 'unistr/u8-strncpy'.
12415         * modules/unistr/u8-strncpy-tests: New file.
12416         * tests/unistr/test-u8-strncpy.c: New file.
12417         * tests/unistr/test-strncpy.h: New file.
12418
12419         Tests for module 'unistr/u32-stpcpy'.
12420         * modules/unistr/u32-stpcpy-tests: New file.
12421         * tests/unistr/test-u32-stpcpy.c: New file.
12422
12423         Tests for module 'unistr/u16-stpcpy'.
12424         * modules/unistr/u16-stpcpy-tests: New file.
12425         * tests/unistr/test-u16-stpcpy.c: New file.
12426
12427         Tests for module 'unistr/u8-stpcpy'.
12428         * modules/unistr/u8-stpcpy-tests: New file.
12429         * tests/unistr/test-u8-stpcpy.c: New file.
12430         * tests/unistr/test-stpcpy.h: New file.
12431
12432         Tests for module 'unistr/u32-strcpy'.
12433         * modules/unistr/u32-strcpy-tests: New file.
12434         * tests/unistr/test-u32-strcpy.c: New file.
12435
12436         Tests for module 'unistr/u16-strcpy'.
12437         * modules/unistr/u16-strcpy-tests: New file.
12438         * tests/unistr/test-u16-strcpy.c: New file.
12439
12440         Tests for module 'unistr/u8-strcpy'.
12441         * modules/unistr/u8-strcpy-tests: New file.
12442         * tests/unistr/test-u8-strcpy.c: New file.
12443         * tests/unistr/test-strcpy.h: New file.
12444
12445         Tests for module 'unistr/u32-strnlen'.
12446         * modules/unistr/u32-strnlen-tests: New file.
12447         * tests/unistr/test-u32-strnlen.c: New file.
12448
12449         Tests for module 'unistr/u16-strnlen'.
12450         * modules/unistr/u16-strnlen-tests: New file.
12451         * tests/unistr/test-u16-strnlen.c: New file.
12452
12453         Tests for module 'unistr/u8-strnlen'.
12454         * modules/unistr/u8-strnlen-tests: New file.
12455         * tests/unistr/test-u8-strnlen.c: New file.
12456         * tests/unistr/test-strnlen.h: New file.
12457
12458         Tests for module 'unistr/u32-strlen'.
12459         * modules/unistr/u32-strlen-tests: New file.
12460         * tests/unistr/test-u32-strlen.c: New file.
12461
12462         Tests for module 'unistr/u16-strlen'.
12463         * modules/unistr/u16-strlen-tests: New file.
12464         * tests/unistr/test-u16-strlen.c: New file.
12465
12466         Tests for module 'unistr/u8-strlen'.
12467         * modules/unistr/u8-strlen-tests: New file.
12468         * tests/unistr/test-u8-strlen.c: New file.
12469
12470         Tests for module 'unistr/u32-prev'.
12471         * modules/unistr/u32-prev-tests: New file.
12472         * tests/unistr/test-u32-prev.c: New file.
12473
12474         Tests for module 'unistr/u16-prev'.
12475         * modules/unistr/u16-prev-tests: New file.
12476         * tests/unistr/test-u16-prev.c: New file.
12477
12478         Tests for module 'unistr/u8-prev'.
12479         * modules/unistr/u8-prev-tests: New file.
12480         * tests/unistr/test-u8-prev.c: New file.
12481
12482         Tests for module 'unistr/u32-next'.
12483         * modules/unistr/u32-next-tests: New file.
12484         * tests/unistr/test-u32-next.c: New file.
12485
12486         Tests for module 'unistr/u16-next'.
12487         * modules/unistr/u16-next-tests: New file.
12488         * tests/unistr/test-u16-next.c: New file.
12489
12490         Tests for module 'unistr/u8-next'.
12491         * modules/unistr/u8-next-tests: New file.
12492         * tests/unistr/test-u8-next.c: New file.
12493
12494         Tests for module 'unistr/u32-strmbtouc'.
12495         * modules/unistr/u32-strmbtouc-tests: New file.
12496         * tests/unistr/test-u32-strmbtouc.c: New file.
12497
12498         Tests for module 'unistr/u16-strmbtouc'.
12499         * modules/unistr/u16-strmbtouc-tests: New file.
12500         * tests/unistr/test-u16-strmbtouc.c: New file.
12501
12502         Tests for module 'unistr/u8-strmbtouc'.
12503         * modules/unistr/u8-strmbtouc-tests: New file.
12504         * tests/unistr/test-u8-strmbtouc.c: New file.
12505
12506         Tests for module 'unistr/u32-strmblen'.
12507         * modules/unistr/u32-strmblen-tests: New file.
12508         * tests/unistr/test-u32-strmblen.c: New file.
12509
12510         Tests for module 'unistr/u16-strmblen'.
12511         * modules/unistr/u16-strmblen-tests: New file.
12512         * tests/unistr/test-u16-strmblen.c: New file.
12513
12514         Tests for module 'unistr/u8-strmblen'.
12515         * modules/unistr/u8-strmblen-tests: New file.
12516         * tests/unistr/test-u8-strmblen.c: New file.
12517
12518         Tests for module 'unistr/u32-cpy-alloc'.
12519         * modules/unistr/u32-cpy-alloc-tests: New file.
12520         * tests/unistr/test-u32-cpy-alloc.c: New file.
12521
12522         Tests for module 'unistr/u16-cpy-alloc'.
12523         * modules/unistr/u16-cpy-alloc-tests: New file.
12524         * tests/unistr/test-u16-cpy-alloc.c: New file.
12525
12526         Tests for module 'unistr/u8-cpy-alloc'.
12527         * modules/unistr/u8-cpy-alloc-tests: New file.
12528         * tests/unistr/test-u8-cpy-alloc.c: New file.
12529         * tests/unistr/test-cpy-alloc.h: New file.
12530
12531         Tests for module 'unistr/u32-mbsnlen'.
12532         * modules/unistr/u32-mbsnlen-tests: New file.
12533         * tests/unistr/test-u32-mbsnlen.c: New file.
12534
12535         Tests for module 'unistr/u16-mbsnlen'.
12536         * modules/unistr/u16-mbsnlen-tests: New file.
12537         * tests/unistr/test-u16-mbsnlen.c: New file.
12538
12539         Tests for module 'unistr/u8-mbsnlen'.
12540         * modules/unistr/u8-mbsnlen-tests: New file.
12541         * tests/unistr/test-u8-mbsnlen.c: New file.
12542
12543         Tests for module 'unistr/u32-chr'.
12544         * modules/unistr/u32-chr-tests: New file.
12545         * tests/unistr/test-u32-chr.c: New file.
12546
12547         Tests for module 'unistr/u16-chr'.
12548         * modules/unistr/u16-chr-tests: New file.
12549         * tests/unistr/test-u16-chr.c: New file.
12550
12551         Tests for module 'unistr/u8-chr'.
12552         * modules/unistr/u8-chr-tests: New file.
12553         * tests/unistr/test-u8-chr.c: New file.
12554         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
12555
12556         Tests for module 'unistr/u32-cmp2'.
12557         * modules/unistr/u32-cmp2-tests: New file.
12558         * tests/unistr/test-u32-cmp2.c: New file.
12559
12560         Tests for module 'unistr/u16-cmp2'.
12561         * modules/unistr/u16-cmp2-tests: New file.
12562         * tests/unistr/test-u16-cmp2.c: New file.
12563
12564         Tests for module 'unistr/u8-cmp2'.
12565         * modules/unistr/u8-cmp2-tests: New file.
12566         * tests/unistr/test-u8-cmp2.c: New file.
12567         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
12568
12569         Tests for module 'unistr/u32-cmp'.
12570         * modules/unistr/u32-cmp-tests: New file.
12571         * tests/unistr/test-u32-cmp.c: New file.
12572
12573         Tests for module 'unistr/u16-cmp'.
12574         * modules/unistr/u16-cmp-tests: New file.
12575         * tests/unistr/test-u16-cmp.c: New file.
12576
12577         Tests for module 'unistr/u8-cmp'.
12578         * modules/unistr/u8-cmp-tests: New file.
12579         * tests/unistr/test-u8-cmp.c: New file.
12580         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
12581
12582         Tests for module 'unistr/u32-set'.
12583         * modules/unistr/u32-set-tests: New file.
12584         * tests/unistr/test-u32-set.c: New file.
12585
12586         Tests for module 'unistr/u16-set'.
12587         * modules/unistr/u16-set-tests: New file.
12588         * tests/unistr/test-u16-set.c: New file.
12589
12590         Tests for module 'unistr/u8-set'.
12591         * modules/unistr/u8-set-tests: New file.
12592         * tests/unistr/test-u8-set.c: New file.
12593         * tests/unistr/test-set.h: New file.
12594
12595         Tests for module 'unistr/u32-move'.
12596         * modules/unistr/u32-move-tests: New file.
12597         * tests/unistr/test-u32-move.c: New file.
12598
12599         Tests for module 'unistr/u16-move'.
12600         * modules/unistr/u16-move-tests: New file.
12601         * tests/unistr/test-u16-move.c: New file.
12602
12603         Tests for module 'unistr/u8-move'.
12604         * modules/unistr/u8-move-tests: New file.
12605         * tests/unistr/test-u8-move.c: New file.
12606         * tests/unistr/test-move.h: New file.
12607
12608         Tests for module 'unistr/u32-cpy'.
12609         * modules/unistr/u32-cpy-tests: New file.
12610         * tests/unistr/test-u32-cpy.c: New file.
12611
12612         Tests for module 'unistr/u16-cpy'.
12613         * modules/unistr/u16-cpy-tests: New file.
12614         * tests/unistr/test-u16-cpy.c: New file.
12615
12616         Tests for module 'unistr/u8-cpy'.
12617         * modules/unistr/u8-cpy-tests: New file.
12618         * tests/unistr/test-u8-cpy.c: New file.
12619         * tests/unistr/test-cpy.h: New file.
12620
12621 2010-01-09  Bruno Haible  <bruno@clisp.org>
12622
12623         Tests for module 'unistr/u32-uctomb'.
12624         * modules/unistr/u32-uctomb-tests: New file.
12625         * tests/unistr/test-u32-uctomb.c: New file.
12626
12627         Tests for module 'unistr/u16-uctomb'.
12628         * modules/unistr/u16-uctomb-tests: New file.
12629         * tests/unistr/test-u16-uctomb.c: New file.
12630
12631         Tests for module 'unistr/u8-uctomb'.
12632         * modules/unistr/u8-uctomb-tests: New file.
12633         * tests/unistr/test-u8-uctomb.c: New file.
12634
12635         Tests for module 'unistr/u32-mbtoucr'.
12636         * modules/unistr/u32-mbtoucr-tests: New file.
12637         * tests/unistr/test-u32-mbtoucr.c: New file.
12638
12639         Tests for module 'unistr/u16-mbtoucr'.
12640         * modules/unistr/u16-mbtoucr-tests: New file.
12641         * tests/unistr/test-u16-mbtoucr.c: New file.
12642
12643         Tests for module 'unistr/u8-mbtoucr'.
12644         * modules/unistr/u8-mbtoucr-tests: New file.
12645         * tests/unistr/test-u8-mbtoucr.c: New file.
12646
12647         Tests for module 'unistr/u32-mbtouc'.
12648         * modules/unistr/u32-mbtouc-tests: New file.
12649         * tests/unistr/test-u32-mbtouc.c: New file.
12650
12651         Tests for module 'unistr/u16-mbtouc'.
12652         * modules/unistr/u16-mbtouc-tests: New file.
12653         * tests/unistr/test-u16-mbtouc.c: New file.
12654
12655         Tests for module 'unistr/u8-mbtouc'.
12656         * modules/unistr/u8-mbtouc-tests: New file.
12657         * tests/unistr/test-u8-mbtouc.c: New file.
12658
12659         Tests for module 'unistr/u32-mbtouc-unsafe'.
12660         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
12661         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
12662         * tests/unistr/test-u32-mbtouc.h: New file.
12663
12664         Tests for module 'unistr/u16-mbtouc-unsafe'.
12665         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
12666         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
12667         * tests/unistr/test-u16-mbtouc.h: New file.
12668
12669         Tests for module 'unistr/u8-mbtouc-unsafe'.
12670         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
12671         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
12672         * tests/unistr/test-u8-mbtouc.h: New file.
12673
12674         Tests for module 'unistr/u32-mblen'.
12675         * modules/unistr/u32-mblen-tests: New file.
12676         * tests/unistr/test-u32-mblen.c: New file.
12677
12678         Tests for module 'unistr/u16-mblen'.
12679         * modules/unistr/u16-mblen-tests: New file.
12680         * tests/unistr/test-u16-mblen.c: New file.
12681
12682         Tests for module 'unistr/u8-mblen'.
12683         * modules/unistr/u8-mblen-tests: New file.
12684         * tests/unistr/test-u8-mblen.c: New file.
12685
12686         Tests for module 'unistr/u32-to-u16'.
12687         * modules/unistr/u32-to-u16-tests: New file.
12688         * tests/unistr/test-u32-to-u16.c: New file.
12689
12690         Tests for module 'unistr/u32-to-u8'.
12691         * modules/unistr/u32-to-u8-tests: New file.
12692         * tests/unistr/test-u32-to-u8.c: New file.
12693
12694         Tests for module 'unistr/u16-to-u32'.
12695         * modules/unistr/u16-to-u32-tests: New file.
12696         * tests/unistr/test-u16-to-u32.c: New file.
12697
12698         Tests for module 'unistr/u16-to-u8'.
12699         * modules/unistr/u16-to-u8-tests: New file.
12700         * tests/unistr/test-u16-to-u8.c: New file.
12701
12702         Tests for module 'unistr/u8-to-u32'.
12703         * modules/unistr/u8-to-u32-tests: New file.
12704         * tests/unistr/test-u8-to-u32.c: New file.
12705
12706         Tests for module 'unistr/u8-to-u16'.
12707         * modules/unistr/u8-to-u16-tests: New file.
12708         * tests/unistr/test-u8-to-u16.c: New file.
12709
12710         Tests for module 'unistr/u32-check'.
12711         * modules/unistr/u32-check-tests: New file.
12712         * tests/unistr/test-u32-check.c: New file.
12713
12714         Tests for module 'unistr/u16-check'.
12715         * modules/unistr/u16-check-tests: New file.
12716         * tests/unistr/test-u16-check.c: New file.
12717
12718         Tests for module 'unistr/u8-check'.
12719         * modules/unistr/u8-check-tests: New file.
12720         * tests/unistr/test-u8-check.c: New file.
12721
12722         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
12723         (category_equals): New function.
12724         (main): Add more tests.
12725         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
12726
12727         * tests/unictype/test-bidi_byname.c (main): Add more tests.
12728
12729 2010-01-10  Bruno Haible  <bruno@clisp.org>
12730
12731         unistr/u*-strcoll: Try harder to distinguish different strings.
12732         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
12733         compare s1 and s2 to see if they are different.
12734
12735 2010-01-10  Bruno Haible  <bruno@clisp.org>
12736
12737         unistr/u*-stpncpy: Fix the return value.
12738         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
12739         description of the return value consistent with stpncpy in glibc.
12740         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
12741         written non-NUL unit.
12742
12743 2010-01-10  Bruno Haible  <bruno@clisp.org>
12744
12745         unistr/u*-next: Add missing dependencies.
12746         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
12747         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
12748         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
12749
12750 2010-01-10  Bruno Haible  <bruno@clisp.org>
12751
12752         unistr/u8-mbsnlen: Fix return value for incomplete character.
12753         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
12754         u8_mblen.
12755         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
12756         Remove unistr/u8-mblen.
12757         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
12758         u16_mblen.
12759         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
12760         Remove unistr/u16-mblen.
12761
12762 2010-01-10  Bruno Haible  <bruno@clisp.org>
12763
12764         wchar: Fix compilation error when <wchar.h> is used from coreutils.
12765         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
12766         Reported by Brian Gough <bjg@gnu.org> and
12767         Chris Clayton <chris2553@googlemail.com> via
12768         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
12769
12770 2010-01-09  Bruno Haible  <bruno@clisp.org>
12771
12772         unistr/u16-to-u32: Reject invalid input.
12773         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
12774         u16_mbtouc.
12775         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
12776         Remove unistr/u16-mbtouc.
12777
12778         unistr/u16-to-u8: Reject invalid input.
12779         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
12780         u16_mbtouc.
12781         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
12782         Remove unistr/u16-mbtouc.
12783
12784         unistr/u8-to-u32: Reject invalid input.
12785         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
12786         u8_mbtouc.
12787         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
12788         Remove unistr/u8-mbtouc.
12789
12790         unistr/u8-to-u16: Reject invalid input.
12791         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
12792         u8_mbtouc.
12793         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
12794         Remove unistr/u8-mbtouc.
12795
12796 2010-01-09  Bruno Haible  <bruno@clisp.org>
12797
12798         Tests for module 'getlogin'.
12799         * modules/getlogin-tests: New file.
12800         * tests/test-getlogin.c: New file.
12801
12802         New module 'getlogin'.
12803         * lib/unistd.in.h (getlogin): New declaration.
12804         * lib/getlogin.c: New file.
12805         * m4/getlogin.m4: New file.
12806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
12807         HAVE_GETLOGIN.
12808         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
12809         HAVE_GETLOGIN.
12810         * modules/getlogin: New file.
12811         * doc/posix-functions/getlogin.texi: Mention the new module.
12812         Reported by John W. Eaton <jwe@gnu.org>.
12813
12814 2010-01-09  Bruno Haible  <bruno@clisp.org>
12815
12816         getlogin_r: Support for native Windows.
12817         * lib/getlogin_r.c: Include <windows.h>
12818         (getlogin_r): Implement for native Windows.
12819         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
12820         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
12821         via John W. Eaton <jwe@gnu.org>.
12822
12823 2010-01-09  Bruno Haible  <bruno@clisp.org>
12824
12825         getlogin_r: Small fixes.
12826         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
12827         succeeds.
12828         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
12829         before testing whether getlogin_r is declared. No need to set
12830         HAVE_DECL_GETLOGIN_R to 1.
12831         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
12832
12833 2010-01-09  Bruno Haible  <bruno@clisp.org>
12834
12835         * lib/unistd.in.h (getlogin_r): Add comment.
12836
12837 2010-01-09  Bruno Haible  <bruno@clisp.org>
12838
12839         Tests for module 'getlogin_r'.
12840         * modules/getlogin_r-tests: New file.
12841         * tests/test-getlogin_r.c: New file.
12842
12843 2010-01-09  Jim Meyering  <meyering@redhat.com>
12844
12845         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
12846         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
12847         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
12848
12849 2010-01-08  Simon Josefsson  <simon@josefsson.org>
12850
12851         * lib/dup2.c (rpl_dup2): Improve comment.
12852
12853 2010-01-08  Eric Blake  <ebb9@byu.net>
12854
12855         maint.mk: allow packages to add makefile @@ exceptions
12856         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
12857         (sc_makefile_check): Rename...
12858         (sc_makefile_at_at_check): ...to this, and use hook.
12859
12860         dup2: work around mingw bug
12861         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
12862         Reported by Simon Josefsson.
12863
12864 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
12865
12866         glob: Fix C++ compilation.
12867         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
12868         C++.
12869
12870 2010-01-07  Bruno Haible  <bruno@clisp.org>
12871
12872         Fix indentation of wctype.in.h, broken since 2007-01-06.
12873         * lib/wctype.in.h: Fix indentation of preprocessor directives.
12874
12875 2010-01-07  Bruno Haible  <bruno@clisp.org>
12876
12877         mbslen: Avoid collision with system function.
12878         * lib/string.in.h [MirBSD]: Include <wchar.h>.
12879         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
12880         * m4/mbslen.m4: New file.
12881         * modules/mbslen (Files): Add it.
12882         (configure.ac): Invoke gl_MBSLEN.
12883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
12884         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
12885         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
12886         via Ian Beckwith <ianb@erislabs.net>.
12887
12888 2010-01-07  Bruno Haible  <bruno@clisp.org>
12889
12890         dirent: Document the last fix.
12891         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
12892
12893 2010-01-07  Bruno Haible  <bruno@clisp.org>
12894
12895         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
12896         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
12897         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
12898         va_list are defined.
12899         * doc/posix-headers/stdio.texi: Document the bug of missing types.
12900         Reported by Eric Blake.
12901
12902 2010-01-07  Bruno Haible  <bruno@clisp.org>
12903
12904         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
12905         * modules/xlist (Depends-on): Add 'list',
12906         * modules/xoset (Depends-on): Add 'oset'.
12907         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12908
12909 2010-01-07  Bruno Haible  <bruno@clisp.org>
12910
12911         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
12912         * doc/posix-functions/strncasecmp.texi: Likewise.
12913
12914 2010-01-07  Bruno Haible  <bruno@clisp.org>
12915
12916         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
12917
12918 2010-01-07  John W. Eaton  <jwe@octave.org>
12919
12920         wctype: allow C++ use
12921         * lib/wctype.in.h: Add extern "C" block for C++.
12922
12923 2010-01-06  Eric Blake  <ebb9@byu.net>
12924
12925         maint.mk: detect incorrect GFDL usage
12926         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
12927
12928 2010-01-06  Jim Meyering  <meyering@redhat.com>
12929         and Eric Blake  <ebb9@byu.net>
12930
12931         maint.mk: ignore multi-line copyright in NEWS
12932         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
12933
12934 2010-01-06  Eric Blake  <ebb9@byu.net>
12935
12936         select: add missing dependency
12937         * modules/select-tests (Depends-on): Move sockets dependency...
12938         * modules/select (Depends-on): ...here.
12939         Reported by Ian Beckwith.
12940
12941         doc: regenerate INSTALL
12942         * doc/INSTALL: Reflect recent autoconf update.
12943         * doc/INSTALL.ISO: Likewise.
12944         * doc/INSTALL.UTF-8: Likewise.
12945
12946         pread: fix compilation on glibc
12947         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
12948         Reported by Ralf Wildenhues.
12949
12950         dirent: fix test failure
12951         * lib/dirent.in.h (includes): Guarantee ino_t.
12952         Reported by Ralf Wildenhues.
12953
12954 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
12955
12956         linkat, renameat: avoid bad free
12957         * lib/at-func2.c (at_func2): Fix typo.
12958         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
12959
12960 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12961
12962         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
12963         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
12964         to avoid failure of symlink test later.
12965
12966 2010-01-06  Eric Blake  <ebb9@byu.net>
12967
12968         stdio, unistd: guarantee ssize_t
12969         * lib/unistd.in.h (includes): Ensure that types required by POSIX
12970         2008 are exposed when needed.
12971         * lib/stdio.in.h (includes): Likewise.
12972         Reported by Ralf Wildenhues.
12973
12974 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
12975
12976         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
12977         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
12978         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
12979
12980 2010-01-06  Jim Meyering  <meyering@redhat.com>
12981
12982         readtokens: this module *does* require xalloc.h
12983         It uses only functions that were omitted by the old syntax-check rule.
12984         * lib/readtokens.c: Include "xalloc.h" once again.
12985         * modules/readtokens (Depends-on): Add xalloc.
12986         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
12987
12988 2010-01-05  Eric Blake  <ebb9@byu.net>
12989
12990         maint: support 'make announcement' from a VPATH build
12991         * top/maint.mk (announcement): Look for correct NEWS file.
12992
12993 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
12994
12995         utimens (fdutimens): ignore a negative FD, per contract
12996         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
12997         when we have a valid file descriptor.  Otherwise, using a brand
12998         new glibc (with just-patched futimens that now fails with EBADF)
12999         would cause this function to fail with ENOSYS.
13000         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13001         See also http://bugzilla.redhat.com/552320.
13002
13003 2010-01-05  Eric Blake  <ebb9@byu.net>
13004
13005         strcase: document what it provides
13006         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13007         gnulib module.
13008         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13009         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13010
13011 2010-01-05  Jim Meyering  <meyering@redhat.com>
13012
13013         maint: remove useless inclusions of "xalloc.h"
13014         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13015         * lib/readtokens.c: Likewise.
13016         * lib/same.c: Likewise.
13017         * modules/getloadavg (Depends-on): Remove xalloc.
13018         * modules/readtokens: Likewise.
13019         * modules/same: Likewise.
13020
13021         maint.mk: include 4 more function names in alloca.h-checking regexp
13022         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13023         regexp.  Before, we would give a false-positive (saying alloca.h
13024         is included unnecessarily) when the only uses involved omitted symbols.
13025
13026         xalloc.h: use consistent formatting
13027         * lib/xalloc.h: Move declarations to start in the first column.
13028
13029 2010-01-05  Eric Blake  <ebb9@byu.net>
13030
13031         mkdir: avoid xalloc
13032         * lib/mkdir.c (includes): Drop unused header.
13033         Reported by John W. Eaton.
13034
13035 2010-01-04  Jim Meyering  <meyering@redhat.com>
13036
13037         nl_langinfo: avoid configure-time syntax error
13038         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13039         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13040         the empty string.  Don't let that provoke a shell syntax error.
13041
13042         regcomp, regexec, fnmatch: avoid array bounds read error
13043         * lib/regcomp.c (build_equiv_class): From glibc:
13044         Use only the low 24 bits of a findidx return value as an index
13045         into the weights array.  Patch by Ulrich Drepper:
13046         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
13047         * lib/regexec.c (check_node_accept_bytes): Likewise.
13048         * lib/fnmatch_loop.c (FCT): Likewise.
13049
13050         regcomp: skip collseq lookup when there are no rules
13051         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
13052         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
13053
13054         regcomp: recognize ill-formed { } expressions
13055         * lib/regcomp.c (parse_dup_op): From glibc:
13056         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
13057
13058         regcomp: fix typo in comment
13059         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
13060         s/satisfy/satisfies/.
13061
13062         regcomp: sync from glibc: remove dead store
13063         * lib/regcomp.c (duplicate_node_closure): Remove useless
13064         search_duplicated_node call and dead store.
13065
13066         regcomp: sync from glibc; always use nl_langinfo
13067         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
13068         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
13069         * modules/regex (Depends-on): Add nl_langinfo.
13070
13071 2010-01-04  Eric Blake  <ebb9@byu.net>
13072
13073         fdopendir: fix configure test
13074         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
13075
13076 2010-01-01  Bruno Haible  <bruno@clisp.org>
13077
13078         wchar: Remove unused configure check.
13079         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
13080
13081 2010-01-01  Eric Blake  <ebb9@byu.net>
13082
13083         headers: make check of system header explicit
13084         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
13085         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
13086         ourselves.
13087         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13088         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13089         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13090         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
13091         internals.
13092         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
13093         missing.
13094         Suggested by Bruno Haible.
13095
13096 2010-01-01  Jim Meyering  <meyering@redhat.com>
13097
13098         ChangeLog: tweak to eliminate unnecessary copyright line
13099         * ChangeLog: Remove a copyright line that was mistakenly updated
13100         by today's update-copyright run.  Reported by Eric Blake.
13101
13102         test-update-copyright: don't let envvar setting cause test failure
13103         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13104
13105 2010-01-01  Bruno Haible  <bruno@clisp.org>
13106
13107         localename: Avoid gcc warning.
13108         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
13109         function if it is not used.
13110
13111 2010-01-01  Jim Meyering  <meyering@redhat.com>
13112
13113         update nearly all FSF copyright year lists to include 2010
13114         Use the same procedure as for 2009, outlined in
13115         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
13116
13117         version-etc: set COPYRIGHT_YEAR to 2010
13118         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
13119
13120 2009-12-31  Eric Blake  <ebb9@byu.net>
13121
13122         doc: correct availability of cygwin 1.5.x getopt
13123         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
13124         variables.
13125         * doc/posix-functions/opterr.texi (opterr): Likewise.
13126         * doc/posix-functions/optind.texi (optind): Likewise.
13127         * doc/posix-functions/optopt.texi (optopt): Likewise.
13128         * doc/posix-functions/tzname.texi (tzname): Likewise.
13129
13130         openat: update maintainer
13131         * modules/openat (Maintainer): Add myself.
13132
13133         utimens: avoid shadowing warning
13134         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
13135         buffers into one, to avoid shadowing, as well as avoiding a
13136         redundant stat.
13137         Reported by Jim Meyering.
13138
13139         test-dup2: avoid compiler warning
13140         * tests/test-dup2.c (is_inheritable): Only define if used.
13141
13142 2010-01-01  Bruno Haible  <bruno@clisp.org>
13143
13144         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
13145         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
13146         defined, use wctomb instead of wcrtomb.
13147
13148 2010-01-01  Bruno Haible  <bruno@clisp.org>
13149
13150         iconv: Reject native Solaris iconv.
13151         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
13152         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
13153
13154 2009-12-31  Bruno Haible  <bruno@clisp.org>
13155
13156         * tests/test-signal.c (main): Remove test of 'SIG'.
13157
13158 2009-12-31  Bruno Haible  <bruno@clisp.org>
13159
13160         spawn: Fix incomplete fix.
13161         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13162         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13163         warnings for GNULIB_POSIXCHECK again.
13164         Reported by Eric Blake.
13165
13166 2009-12-31  Bruno Haible  <bruno@clisp.org>
13167
13168         Avoid namespace pollution on glibc systems.
13169         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
13170         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
13171         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
13172         glibc systems.
13173
13174 2009-12-31  Bruno Haible  <bruno@clisp.org>
13175
13176         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
13177         (gl_REPLACE_WCHAR_H): Turn into a no-op.
13178         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
13179         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13180         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13181         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13182         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13183
13184 2009-12-31  Bruno Haible  <bruno@clisp.org>
13185
13186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13187         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
13188         afterwards.
13189
13190 2009-12-31  Bruno Haible  <bruno@clisp.org>
13191
13192         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
13193         SYS_UTSNAME_H.
13194
13195 2009-12-31  Bruno Haible  <bruno@clisp.org>
13196
13197         spawn: Fix misapplied patch.
13198         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13199         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13200         warnings for GNULIB_POSIXCHECK.
13201
13202 2009-12-31  Bruno Haible  <bruno@clisp.org>
13203
13204         times: Update after sys_times changed.
13205         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
13206         * modules/times (Files): Add it.
13207         (configure.ac): Invoke gl_FUNC_TIMES.
13208
13209 2009-12-31  Bruno Haible  <bruno@clisp.org>
13210
13211         Use AC_C_INLINE where necessary.
13212         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
13213         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13214         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13215         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
13216         * m4/mbfile.m4 (gl_MBFILE): Likewise.
13217         * m4/mbiter.m4 (gl_MBITER): Likewise.
13218         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13219         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13220         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
13221         * modules/u64 (configure.ac): Likewise.
13222
13223 2009-12-31  Bruno Haible  <bruno@clisp.org>
13224
13225         Use AC_C_INLINE instead of module 'inline' where possible.
13226         * modules/inline (Description): Clarify purpose.
13227         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
13228         * modules/count-one-bits (Depends-on): Remove inline.
13229         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
13230         * modules/openat (Depends-on): Remove inline.
13231         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
13232         instead of depending on module 'inline'.
13233         * modules/filevercmp (Depends-on, configure.ac): Likewise.
13234         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
13235         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
13236         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
13237         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
13238         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
13239         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
13240         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
13241         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
13242         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
13243         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
13244         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
13245         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
13246         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
13247         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
13248         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
13249         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
13250         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
13251         Likewise.
13252         * modules/unictype/property-ascii-hex-digit (Depends-on,
13253         configure.ac): Likewise.
13254         * modules/unictype/property-bidi-arabic-digit (Depends-on,
13255         configure.ac): Likewise.
13256         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
13257         configure.ac): Likewise.
13258         * modules/unictype/property-bidi-block-separator (Depends-on,
13259         configure.ac): Likewise.
13260         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
13261         configure.ac): Likewise.
13262         * modules/unictype/property-bidi-common-separator (Depends-on,
13263         configure.ac): Likewise.
13264         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
13265         Likewise.
13266         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
13267         configure.ac): Likewise.
13268         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
13269         configure.ac): Likewise.
13270         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
13271         configure.ac): Likewise.
13272         * modules/unictype/property-bidi-european-digit (Depends-on,
13273         configure.ac): Likewise.
13274         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
13275         configure.ac): Likewise.
13276         * modules/unictype/property-bidi-left-to-right (Depends-on,
13277         configure.ac): Likewise.
13278         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
13279         configure.ac): Likewise.
13280         * modules/unictype/property-bidi-other-neutral (Depends-on,
13281         configure.ac): Likewise.
13282         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
13283         Likewise.
13284         * modules/unictype/property-bidi-segment-separator (Depends-on,
13285         configure.ac): Likewise.
13286         * modules/unictype/property-bidi-whitespace (Depends-on,
13287         configure.ac): Likewise.
13288         * modules/unictype/property-combining (Depends-on, configure.ac):
13289         Likewise.
13290         * modules/unictype/property-composite (Depends-on, configure.ac):
13291         Likewise.
13292         * modules/unictype/property-currency-symbol (Depends-on,
13293         configure.ac): Likewise.
13294         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
13295         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
13296         Likewise.
13297         * modules/unictype/property-default-ignorable-code-point (Depends-on,
13298         configure.ac): Likewise.
13299         * modules/unictype/property-deprecated (Depends-on, configure.ac):
13300         Likewise.
13301         * modules/unictype/property-diacritic (Depends-on, configure.ac):
13302         Likewise.
13303         * modules/unictype/property-extender (Depends-on, configure.ac):
13304         Likewise.
13305         * modules/unictype/property-format-control (Depends-on, configure.ac):
13306         Likewise.
13307         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
13308         Likewise.
13309         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
13310         Likewise.
13311         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
13312         Likewise.
13313         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
13314         Likewise.
13315         * modules/unictype/property-hyphen (Depends-on, configure.ac):
13316         Likewise.
13317         * modules/unictype/property-id-continue (Depends-on, configure.ac):
13318         Likewise.
13319         * modules/unictype/property-id-start (Depends-on, configure.ac):
13320         Likewise.
13321         * modules/unictype/property-ideographic (Depends-on, configure.ac):
13322         Likewise.
13323         * modules/unictype/property-ids-binary-operator (Depends-on,
13324         configure.ac): Likewise.
13325         * modules/unictype/property-ids-trinary-operator (Depends-on,
13326         configure.ac): Likewise.
13327         * modules/unictype/property-ignorable-control (Depends-on,
13328         configure.ac): Likewise.
13329         * modules/unictype/property-iso-control (Depends-on, configure.ac):
13330         Likewise.
13331         * modules/unictype/property-join-control (Depends-on, configure.ac):
13332         Likewise.
13333         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
13334         Likewise.
13335         * modules/unictype/property-line-separator (Depends-on, configure.ac):
13336         Likewise.
13337         * modules/unictype/property-logical-order-exception (Depends-on,
13338         configure.ac): Likewise.
13339         * modules/unictype/property-lowercase (Depends-on, configure.ac):
13340         Likewise.
13341         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
13342         * modules/unictype/property-non-break (Depends-on, configure.ac):
13343         Likewise.
13344         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
13345         Likewise.
13346         * modules/unictype/property-numeric (Depends-on, configure.ac):
13347         Likewise.
13348         * modules/unictype/property-other-alphabetic (Depends-on,
13349         configure.ac): Likewise.
13350         * modules/unictype/property-other-default-ignorable-code-point
13351         (Depends-on, configure.ac): Likewise.
13352         * modules/unictype/property-other-grapheme-extend (Depends-on,
13353         configure.ac): Likewise.
13354         * modules/unictype/property-other-id-continue (Depends-on,
13355         configure.ac): Likewise.
13356         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
13357         Likewise.
13358         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
13359         Likewise.
13360         * modules/unictype/property-other-math (Depends-on, configure.ac):
13361         Likewise.
13362         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
13363         Likewise.
13364         * modules/unictype/property-paired-punctuation (Depends-on,
13365         configure.ac): Likewise.
13366         * modules/unictype/property-paragraph-separator (Depends-on,
13367         configure.ac): Likewise.
13368         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
13369         Likewise.
13370         * modules/unictype/property-pattern-white-space (Depends-on,
13371         configure.ac): Likewise.
13372         * modules/unictype/property-private-use (Depends-on, configure.ac):
13373         Likewise.
13374         * modules/unictype/property-punctuation (Depends-on, configure.ac):
13375         Likewise.
13376         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
13377         Likewise.
13378         * modules/unictype/property-radical (Depends-on, configure.ac):
13379         Likewise.
13380         * modules/unictype/property-sentence-terminal (Depends-on,
13381         configure.ac): Likewise.
13382         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
13383         Likewise.
13384         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
13385         * modules/unictype/property-terminal-punctuation (Depends-on,
13386         configure.ac): Likewise.
13387         * modules/unictype/property-titlecase (Depends-on, configure.ac):
13388         Likewise.
13389         * modules/unictype/property-unassigned-code-value (Depends-on,
13390         configure.ac): Likewise.
13391         * modules/unictype/property-unified-ideograph (Depends-on,
13392         configure.ac): Likewise.
13393         * modules/unictype/property-uppercase (Depends-on, configure.ac):
13394         Likewise.
13395         * modules/unictype/property-variation-selector (Depends-on,
13396         configure.ac): Likewise.
13397         * modules/unictype/property-white-space (Depends-on, configure.ac):
13398         Likewise.
13399         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
13400         Likewise.
13401         * modules/unictype/property-xid-start (Depends-on, configure.ac):
13402         Likewise.
13403         * modules/unictype/property-zero-width (Depends-on, configure.ac):
13404         Likewise.
13405         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
13406         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
13407         Likewise.
13408
13409 2009-12-31  Bruno Haible  <bruno@clisp.org>
13410
13411         Remove unnecessary AC_C_INLINE invocation.
13412         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
13413         since 2009-08-21.
13414
13415 2009-12-31  Jim Meyering  <meyering@redhat.com>
13416
13417         maint.mk: don't require explicit gpg_key_ID in cfg.mk
13418         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
13419         With this change, we can all remove the gpg_key_ID = ... definition
13420         from our respective cfg.mk files.
13421
13422         maint.mk: create announcement template in ~/, not in /tmp
13423         * top/maint.mk (emit_upload_commands): Adjust.
13424         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
13425         Remove temporary file, .ci-msg.
13426
13427 2009-12-31  Eric Blake  <ebb9@byu.net>
13428
13429         link-warning: always build headers with link warnings
13430         * modules/arpa_inet (Makefile.am): Always build replacement
13431         header.
13432         * modules/ctype (Makefile.am): Likewise.
13433         * modules/dirent (Makefile.am): Likewise.
13434         * modules/inttypes (Makefile.am): Likewise.
13435         * modules/langinfo (Makefile.am): Likewise.
13436         * modules/locale (Makefile.am): Likewise.
13437         * modules/spawn (Makefile.am): Likewise.
13438         * modules/sys_file (Makefile.am): Likewise.
13439         * modules/sys_ioctl (Makefile.am): Likewise.
13440         * modules/sys_select (Makefile.am): Likewise.
13441         * modules/sys_socket (Makefile.am): Likewise.
13442         * modules/sys_times (Makefile.am): Likewise.
13443         * modules/sys_utsname (Makefile.am): Likewise.
13444         * modules/sys_wait (Makefile.am): Likewise.
13445         * modules/wchar (Makefile.am): Likewise.
13446         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
13447         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
13448         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
13449         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
13450         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
13451         Likewise.
13452         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13453         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13454         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
13455         Likewise.
13456         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
13457         Likewise.
13458         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13459         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
13460         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
13461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13462         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13463         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13464         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13465         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
13466         (gl_WCHAR_H_DEFAULTS): Likewise.
13467
13468 2009-12-31  Eric Blake  <ebb9@byu.net>
13469
13470         signal, spawn: use link warnings
13471         * lib/signal.in.h (sigset_t): Make unconditional.
13472         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
13473         (sigpending, sigprocmask, sigaction): Add link warnings.
13474         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
13475         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
13476         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
13477         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
13478         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
13479         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
13480         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
13481         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
13482         (posix_spawn_file_actions_destroy)
13483         (posix_spawn_file_actions_addopen)
13484         (posix_spawn_file_actions_addclose)
13485         (posix_spawn_file_actions_adddup2): Likewise.
13486         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
13487         * tests/test-signal.c (main): Enhance test.
13488
13489         spawn: improve wrapper support
13490         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
13491         (gl_SPAWN_H_DEFAULTS): New defaults.
13492         * modules/spawn (Makefile.am): Substitute them.
13493         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
13494         Only declare if missing or broken.
13495
13496         sys_times, sys_utsname: use include_next
13497         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
13498         header.
13499         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
13500         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13501         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13502         * modules/sys_times (Depends-on): Add include_next.
13503         (Makefile.am): Substitute additional values.
13504         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13505         * lib/sys_times.in.h (includes): Include native header, if
13506         available.
13507         * lib/sys_utsname.in.h (includes): Likewise.
13508         * tests/test-sys_times.c (main): Enhance test.
13509
13510         fdutimensat: revert prior patch
13511         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
13512         utimens.h.
13513         Reported by Bruno Haible.
13514
13515 2009-12-30  Eric Blake  <ebb9@byu.net>
13516
13517         sys_wait: drop link-warning dependency
13518         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
13519         link-warning efforts.
13520         * lib/sys_wait.in.h: Likewise.
13521
13522         fdutimensat: remove bogus dependency
13523         * modules/fdutimensat (Depends-on): Drop inline.
13524
13525         unistd: fix typo
13526         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
13527
13528 2009-12-30  Bruno Haible  <bruno@clisp.org>
13529
13530         Fix compilation error with Solaris cc.
13531         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
13532         * lib/unicase/u16-is-invariant.c: Likewise.
13533         * lib/unicase/u32-is-invariant.c: Likewise.
13534         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13535
13536 2009-12-30  Bruno Haible  <bruno@clisp.org>
13537
13538         Fix test crash.
13539         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
13540         locales.
13541         Reported by Simon Josefsson <simon@josefsson.org>.
13542
13543 2009-12-30  Bruno Haible  <bruno@clisp.org>
13544
13545         Fix compilation error on most platforms.
13546         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
13547         Reported by Simon Josefsson <simon@josefsson.org>
13548         and Nelson H. F. Beebe <beebe@math.utah.edu>.
13549
13550 2009-12-30  Eric Blake  <ebb9@byu.net>
13551
13552         futimens, utimensat: work around ntfs-3g bug
13553         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
13554         a ctime bug is present, and expand workaround to cover ntfs-3g.
13555         * lib/utimens.c (fdutimens, lutimens): Likewise.
13556         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
13557         (validate_timespec): Adjust return value.
13558         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
13559         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13560         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
13561
13562 2009-12-29  Eric Blake  <ebb9@byu.net>
13563
13564         link-warning: make usage consistent
13565         * modules/ctype (Depends-on): Add link-warning.
13566         (Makefile.am): Update rules accordingly.
13567         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13568         * modules/locale (Depends-on, Makefile.am): Likewise.
13569         * modules/sys_file (Makefile.am): Likewise.
13570         * modules/getopt-posix (Makefile.am): Delete unused link warning
13571         efforts.
13572         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
13573         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
13574         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
13575         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
13576
13577         stdio: remove unused variables
13578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
13579         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
13580         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13581
13582         tests: test more substitute headers
13583         * modules/ctype-tests: New file.
13584         * modules/dirent-tests: Likewise.
13585         * modules/spawn-tests: Likewise.
13586         * modules/sys_file-tests: Likewise.
13587         * modules/sys_ioctl-tests: Likewise.
13588         * modules/sys_wait-tests: Likewise.
13589         * tests/test-ctype.c: Likewise.
13590         * tests/test-dirent.c: Likewise.
13591         * tests/test-spawn.c: Likewise.
13592         * tests/test-sys_file.c: Likewise.
13593         * tests/test-sys_ioctl.c: Likewise.
13594         * tests/test-sys_wait.c: Likewise.
13595         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
13596         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
13597         whether or not flock is in use.
13598
13599         tests: remove License section from module
13600         * modules/arpa_inet-tests: Remove unneeded section.
13601         * modules/byteswap-tests: Likewise.
13602         * modules/ceilf-tests: Likewise.
13603         * modules/ceill-tests: Likewise.
13604         * modules/crypto/des-tests: Likewise.
13605         * modules/crypto/gc-arcfour-tests: Likewise.
13606         * modules/crypto/gc-arctwo-tests: Likewise.
13607         * modules/crypto/gc-des-tests: Likewise.
13608         * modules/crypto/gc-hmac-md5-tests: Likewise.
13609         * modules/crypto/gc-hmac-sha1-tests: Likewise.
13610         * modules/crypto/gc-md2-tests: Likewise.
13611         * modules/crypto/gc-md4-tests: Likewise.
13612         * modules/crypto/gc-md5-tests: Likewise.
13613         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
13614         * modules/crypto/gc-rijndael-tests: Likewise.
13615         * modules/crypto/gc-sha1-tests: Likewise.
13616         * modules/crypto/gc-tests: Likewise.
13617         * modules/crypto/md2-tests: Likewise.
13618         * modules/crypto/md4-tests: Likewise.
13619         * modules/fcntl-h-tests: Likewise.
13620         * modules/floorf-tests: Likewise.
13621         * modules/floorl-tests: Likewise.
13622         * modules/frexp-nolibm-tests: Likewise.
13623         * modules/frexp-tests: Likewise.
13624         * modules/frexpl-nolibm-tests: Likewise.
13625         * modules/frexpl-tests: Likewise.
13626         * modules/getaddrinfo-tests: Likewise.
13627         * modules/inttypes-tests: Likewise.
13628         * modules/isfinite-tests: Likewise.
13629         * modules/isinf-tests: Likewise.
13630         * modules/ldexpl-tests: Likewise.
13631         * modules/locale-tests: Likewise.
13632         * modules/math-tests: Likewise.
13633         * modules/netdb-tests: Likewise.
13634         * modules/netinet_in-tests: Likewise.
13635         * modules/printf-frexp-tests: Likewise.
13636         * modules/printf-frexpl-tests: Likewise.
13637         * modules/priv-set-tests: Likewise.
13638         * modules/random_r-tests: Likewise.
13639         * modules/round-tests: Likewise.
13640         * modules/roundf-tests: Likewise.
13641         * modules/roundl-tests: Likewise.
13642         * modules/search-tests: Likewise.
13643         * modules/select-tests: Likewise.
13644         * modules/signal-tests: Likewise.
13645         * modules/stdbool-tests: Likewise.
13646         * modules/stddef-tests: Likewise.
13647         * modules/stdint-tests: Likewise.
13648         * modules/stdio-tests: Likewise.
13649         * modules/stdlib-tests: Likewise.
13650         * modules/string-tests: Likewise.
13651         * modules/strings-tests: Likewise.
13652         * modules/sys_select-tests: Likewise.
13653         * modules/sys_socket-tests: Likewise.
13654         * modules/sys_stat-tests: Likewise.
13655         * modules/sys_time-tests: Likewise.
13656         * modules/sys_utsname-tests: Likewise.
13657         * modules/sysexits-tests: Likewise.
13658         * modules/time-tests: Likewise.
13659         * modules/trunc-tests: Likewise.
13660         * modules/truncf-tests: Likewise.
13661         * modules/truncl-tests: Likewise.
13662         * modules/tsearch-tests: Likewise.
13663         * modules/unistd-tests: Likewise.
13664         * modules/wchar-tests: Likewise.
13665         * modules/wctype-tests: Likewise.
13666
13667         tests: fix license on several tests
13668         * tests/test-des.c: Update to GPLv3+.
13669         * tests/test-flock.c: Likewise.
13670         * tests/test-fsync.c: Likewise.
13671         * tests/test-futimens.h: Likewise.
13672         * tests/test-gc-arcfour.c: Likewise.
13673         * tests/test-gc-arctwo.c: Likewise.
13674         * tests/test-gc-des.c: Likewise.
13675         * tests/test-gc-hmac-md5.c: Likewise.
13676         * tests/test-gc-hmac-sha1.c: Likewise.
13677         * tests/test-gc-md2.c: Likewise.
13678         * tests/test-gc-md4.c: Likewise.
13679         * tests/test-gc-md5.c: Likewise.
13680         * tests/test-gc-pbkdf2-sha1.c: Likewise.
13681         * tests/test-gc-rijndael.c: Likewise.
13682         * tests/test-gc-sha1.c: Likewise.
13683         * tests/test-gc.c: Likewise.
13684         * tests/test-getcwd.c: Likewise.
13685         * tests/test-link.c: Likewise.
13686         * tests/test-link.h: Likewise.
13687         * tests/test-lutimens.h: Likewise.
13688         * tests/test-md2.c: Likewise.
13689         * tests/test-md4.c: Likewise.
13690         * tests/test-mkdir.h: Likewise.
13691         * tests/test-rename.c: Likewise.
13692         * tests/test-rename.h: Likewise.
13693         * tests/test-safe-alloc.c: Likewise.
13694         * tests/test-utimens-common.h: Likewise.
13695         * tests/test-utimens.h: Likewise.
13696
13697         maint: sync license texts
13698         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
13699         * doc/gpl-3.0.texi: Revert copyright year update.
13700         * doc/lgpl-3.0.texi: Likewise.
13701
13702 2009-12-29  Jim Meyering  <meyering@redhat.com>
13703
13704         update nearly all FSF copyright year lists to include 2009
13705         The files named by the following are exempted:
13706             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
13707               test -f "$dst" && { echo "$dst"; continue; }
13708               test -d "$dst" || continue
13709               echo "$dst"/$(basename "$src")
13710             done > exempt
13711             git ls-files tests/unictype >> exempt
13712         In the remaining files, convert to all-interval notation if
13713         - there is already at least one year interval like 2000-2003
13714         - the file is maintained by me
13715         - the file is in lib/uni*/, where that style already prevails
13716         Otherwise, use update-copyright's default.
13717
13718 2009-12-29  Simon Josefsson  <simon@josefsson.org>
13719         and Eric Blake  <ebb9@byu.net>
13720
13721         tests: don't require debug system() to pass
13722         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
13723         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13724         * tests/test-unlink.h (test_unlink_func): Likewise.
13725         * tests/test-fstatat.c (main): ...into callers.
13726         * tests/test-lstat.c (main): Likewise.
13727         * tests/test-rmdir.c (main): Likewise.
13728         * tests/test-unlink.c (main): Likewise.
13729         * tests/test-unlinkat.c (main): Likewise.
13730         * tests/test-areadlink-with-size.c (main): Don't require a
13731         debug-only system call to pass, aiding cross-testing to mingw.
13732         * tests/test-areadlink.c (main): Likewise.
13733         * tests/test-areadlinkat-with-size.c (main): Likewise.
13734         * tests/test-areadlinkat.c (main): Likewise.
13735         * tests/test-canonicalize-lgpl.c (main): Likewise.
13736         * tests/test-canonicalize.c (main): Likewise.
13737         * tests/test-chown.c (main): Likewise.
13738         * tests/test-fchownat.c (main): Likewise.
13739         * tests/test-lchown.c (main): Likewise.
13740         * tests/test-fdutimensat.c (main): Likewise.
13741         * tests/test-futimens.c (main): Likewise.
13742         * tests/test-link.c (main): Likewise.
13743         * tests/test-linkat.c (main): Likewise.
13744         * tests/test-mkdir.c (main): Likewise.
13745         * tests/test-mkdirat.c (main): Likewise.
13746         * tests/test-mkfifo.c (main): Likewise.
13747         * tests/test-mkfifoat.c (main): Likewise.
13748         * tests/test-mknod.c (main): Likewise.
13749         * tests/test-readlink.c (main): Likewise.
13750         * tests/test-remove.c (main): Likewise.
13751         * tests/test-rename.c (main): Likewise.
13752         * tests/test-renameat.c (main): Likewise.
13753         * tests/test-symlink.c (main): Likewise.
13754         * tests/test-symlinkat.c (main): Likewise.
13755         * tests/test-utimens.c (main): Likewise.
13756         * tests/test-utimensat.c (main): Likewise.
13757
13758 2009-12-29  Simon Josefsson  <simon@josefsson.org>
13759
13760         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
13761         on $(UNUSED_PARAMETER_H) to avoid build failure.
13762
13763 2009-12-28  Jim Meyering  <meyering@redhat.com>
13764
13765         update-copyright: you may specify a max. line length other than 72
13766         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13767
13768         maint: use consistent FSF copyright line syntax
13769         * lib/posixtm.c: Add missing comma in FSF copyright line.
13770         * lib/posixtm.h: Likewise.
13771         * lib/getugroups.c: Add missing ", Inc.".
13772
13773         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
13774         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
13775         FSF copyright line.  Remove trailing blanks.
13776
13777 2009-12-28  Eric Blake  <ebb9@byu.net>
13778
13779         test-dup2: reduce dependencies
13780         * modules/cloexec (Configure.ac): Set witness.
13781         * modules/dup2-tests (Depends-on): Drop cloexec.
13782         * tests/test-dup2.c (main): Skip portion of test if cloexec module
13783         not present.
13784         Suggested by Bruno Haible.
13785
13786 2009-12-26  Bruno Haible  <bruno@clisp.org>
13787
13788         Remove an unneeded dependency.
13789         * modules/fseterr (Depends-on): Remove dup2.
13790
13791 2009-12-26  Eric Blake  <ebb9@byu.net>
13792
13793         tests: use macros.h in more places
13794         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
13795         (ASSERT_STREAM): Provide default of stderr.
13796         * tests/test-dirent-safer.c: Include macros.h, using alternate
13797         stream for assertions.
13798         * tests/test-dup-safer.c: Likewise.
13799         * tests/test-freopen-safer.c: Likewise.
13800         * tests/test-getopt.c: Likewise.
13801         * tests/test-openat-safer.c: Likewise.
13802         * tests/test-pipe.c: Likewise.
13803         * tests/test-popen-safer.c: Likewise.
13804         * modules/dirent-safer-tests (Files): Include macros.h.
13805         * modules/unistd-safer-tests (Files): Likewise.
13806         * modules/freopen-safer-tests (Files): Likewise.
13807         * modules/getopt-posix-tests (Files): Likewise.
13808         * modules/openat-safer-tests (Files): Likewise.
13809         * modules/pipe-tests (Files): Likewise.
13810
13811 2009-12-26  Bruno Haible  <bruno@clisp.org>
13812
13813         javacomp: Portability fix.
13814         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
13815         that it also works on Solaris.
13816
13817 2009-12-26  Bruno Haible  <bruno@clisp.org>
13818
13819         localename: Fix storage allocation of gl_locale_name_thread's result.
13820         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
13821         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
13822         all platforms that have 'uselocale'.
13823         (gl_locale_name_thread_unsafe): New function, extracted from
13824         gl_locale_name_thread.
13825         (gl_locale_name_thread): Call struniq on all platforms that have
13826         'uselocale'.
13827         * tests/test-localename.c (test_locale_name_thread): Check that the
13828         resulting strings are permanently allocated.
13829         * modules/localename-tests (Depends-on): Add strdup.
13830
13831 2009-12-26  Bruno Haible  <bruno@clisp.org>
13832
13833         * tests/test-localename.c (categories): Fill in the strings.
13834
13835 2009-12-26  Jim Meyering  <meyering@redhat.com>
13836
13837         isdir: complete the removal of m4/isdir.m4
13838         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
13839
13840         isdir: clean up, since at least grep still uses it
13841         * lib/isdir.c: Include "isdir.h".
13842         (S_ISDIR): Remove now-unneeded definition.
13843         * modules/isdir (Files): Add lib/isdir.h.
13844         * lib/isdir.h: New file, with declaration.
13845         * m4/isdir.m4: Remove file -- unneeded.
13846
13847 2009-12-25  Bruno Haible  <bruno@clisp.org>
13848
13849         selinux-h: Make generated .h files standalone.
13850         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
13851         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
13852         * lib/se-selinux.in.h: Likewise.
13853         * modules/selinux-h (Depends-on): Add unused-parameter.
13854         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
13855         selinux/selinux.h and selinux/context.h.
13856         Suggested by Eric Blake.
13857
13858 2009-12-25  Bruno Haible  <bruno@clisp.org>
13859
13860         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
13861         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
13862         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
13863         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
13864         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
13865
13866 2009-12-24  Bruno Haible  <bruno@clisp.org>
13867
13868         openat: Fix warning.
13869         * lib/openat-proc.c: Include <unistd.h>.
13870
13871 2009-12-24  Bruno Haible  <bruno@clisp.org>
13872
13873         New module 'unused-parameter'.
13874         * build-aux/unused-parameter.h: New file, extracted from earlier
13875         gnulib-common.m4.
13876         * modules/unused-parameter: New file.
13877         * lib/unistr.h: Include unused-parameter.h.
13878         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
13879         _GL_UNUSED.
13880         * modules/unistr/base (Depends-on): Add unused-parameter.
13881
13882 2009-12-24  Bruno Haible  <bruno@clisp.org>
13883
13884         Add missing dependencies to 'extensions' module.
13885         * m4/extensions.m4: Add comment.
13886         * modules/accept4 (Depends-on): Add extensions.
13887         * modules/dup3 (Depends-on): Likewise.
13888         * modules/fcntl (Depends-on): Likewise.
13889         * modules/futimens (Depends-on): Likewise.
13890         * modules/mknod (Depends-on): Likewise.
13891         * modules/pipe2 (Depends-on): Likewise.
13892         * modules/stat-time (Depends-on): Likewise.
13893         * modules/strcasestr-simple (Depends-on): Likewise.
13894         * modules/strsignal (Depends-on): Likewise.
13895         * modules/utimensat (Depends-on): Likewise.
13896         * modules/localcharset (Depends-on): Likewise. Needed because of
13897         gl_FCNTL_O_FLAGS.
13898         * modules/wcrtomb (Depends-on): Likewise. Needed because of
13899         AC_TYPE_MBSTATE_T.
13900         * modules/wcsnrtombs (Depends-on): Likewise.
13901         * modules/wcsrtombs (Depends-on): Likewise.
13902
13903 2009-12-24  Bruno Haible  <bruno@clisp.org>
13904
13905         binary-io: Avoid gcc warning due to SET_BINARY.
13906         * lib/binary-io.h (SET_BINARY): Cast the result to void.
13907         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
13908
13909 2009-12-24  Bruno Haible  <bruno@clisp.org>
13910
13911         Avoid future namespace pollution on glibc systems.
13912         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
13913         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
13914         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
13915         glibc systems.
13916
13917 2009-12-24  Bruno Haible  <bruno@clisp.org>
13918
13919         Refactor common macros used in tests.
13920         * tests/macros.h: New file.
13921         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
13922         and/or <stdlib.h>, if appropriate.
13923         (ASSERT, SIZEOF): Remove macros.
13924         * tests/test-areadlink-with-size.c: Likewise.
13925         * tests/test-areadlinkat.c: Likewise.
13926         * tests/test-areadlinkat-with-size.c: Likewise.
13927         * tests/test-argmatch.c: Likewise.
13928         * tests/test-argv-iter.c: Likewise.
13929         * tests/test-array-mergesort.c: Likewise.
13930         * tests/test-array_list.c: Likewise.
13931         * tests/test-array_oset.c: Likewise.
13932         * tests/test-avltree_list.c: Likewise.
13933         * tests/test-avltree_oset.c: Likewise.
13934         * tests/test-avltreehash_list.c: Likewise.
13935         * tests/test-base64.c: Likewise.
13936         * tests/test-binary-io.c: Likewise.
13937         * tests/test-bitrotate.c: Likewise.
13938         * tests/test-btowc.c: Likewise.
13939         * tests/test-byteswap.c: Likewise.
13940         * tests/test-c-ctype.c: Likewise.
13941         * tests/test-c-stack.c: Likewise.
13942         * tests/test-c-strcasecmp.c: Likewise.
13943         * tests/test-c-strcasestr.c: Likewise.
13944         * tests/test-c-strncasecmp.c: Likewise.
13945         * tests/test-c-strstr.c: Likewise.
13946         * tests/test-canonicalize-lgpl.c: Likewise.
13947         * tests/test-canonicalize.c: Likewise.
13948         * tests/test-carray_list.c: Likewise.
13949         * tests/test-ceilf1.c: Likewise.
13950         * tests/test-ceilf2.c: Likewise.
13951         * tests/test-ceill.c: Likewise.
13952         * tests/test-chown.c: Likewise.
13953         * tests/test-cloexec.c: Likewise.
13954         * tests/test-copy-acl.c: Likewise.
13955         * tests/test-copy-file.c: Likewise.
13956         * tests/test-count-one-bits.c: Likewise.
13957         * tests/test-dprintf-posix.c: Likewise.
13958         * tests/test-dup2.c: Likewise.
13959         * tests/test-dup3.c: Likewise.
13960         * tests/test-duplocale.c: Likewise.
13961         * tests/test-fbufmode.c: Likewise.
13962         * tests/test-fchdir.c: Likewise.
13963         * tests/test-fchownat.c: Likewise.
13964         * tests/test-fcntl-safer.c: Likewise.
13965         * tests/test-fcntl.c: Likewise.
13966         * tests/test-fdopendir.c: Likewise.
13967         * tests/test-fdutimensat.c: Likewise.
13968         * tests/test-fflush2.c: Likewise.
13969         * tests/test-file-has-acl.c: Likewise.
13970         * tests/test-filevercmp.c: Likewise.
13971         * tests/test-flock.c: Likewise.
13972         * tests/test-floorf1.c: Likewise.
13973         * tests/test-floorf2.c: Likewise.
13974         * tests/test-floorl.c: Likewise.
13975         * tests/test-fnmatch.c: Likewise.
13976         * tests/test-fopen.h: Likewise.
13977         * tests/test-fpending.c: Likewise.
13978         * tests/test-fprintf-posix.c: Likewise.
13979         * tests/test-fpurge.c: Likewise.
13980         * tests/test-freadable.c: Likewise.
13981         * tests/test-freadahead.c: Likewise.
13982         * tests/test-freading.c: Likewise.
13983         * tests/test-freadptr.c: Likewise.
13984         * tests/test-freadptr2.c: Likewise.
13985         * tests/test-freadseek.c: Likewise.
13986         * tests/test-freopen.c: Likewise.
13987         * tests/test-frexp.c: Likewise.
13988         * tests/test-frexpl.c: Likewise.
13989         * tests/test-fseek.c: Likewise.
13990         * tests/test-fseeko.c: Likewise.
13991         * tests/test-fstatat.c: Likewise.
13992         * tests/test-fstrcmp.c: Likewise.
13993         * tests/test-fsync.c: Likewise.
13994         * tests/test-ftell.c: Likewise.
13995         * tests/test-ftello.c: Likewise.
13996         * tests/test-func.c: Likewise.
13997         * tests/test-futimens.c: Likewise.
13998         * tests/test-fwritable.c: Likewise.
13999         * tests/test-fwriting.c: Likewise.
14000         * tests/test-getcwd.c: Likewise.
14001         * tests/test-getdate.c: Likewise.
14002         * tests/test-getdelim.c: Likewise.
14003         * tests/test-getdtablesize.c: Likewise.
14004         * tests/test-getgroups.c: Likewise.
14005         * tests/test-getline.c: Likewise.
14006         * tests/test-getndelim2.c: Likewise.
14007         * tests/test-glob.c: Likewise.
14008         * tests/test-hash.c: Likewise.
14009         * tests/test-i-ring.c: Likewise.
14010         * tests/test-iconv-utf.c: Likewise.
14011         * tests/test-iconv.c: Likewise.
14012         * tests/test-idpriv-drop.c: Likewise.
14013         * tests/test-idpriv-droptemp.c: Likewise.
14014         * tests/test-inet_ntop.c: Likewise.
14015         * tests/test-inet_pton.c: Likewise.
14016         * tests/test-isblank.c: Likewise.
14017         * tests/test-isfinite.c: Likewise.
14018         * tests/test-isinf.c: Likewise.
14019         * tests/test-isnan.c: Likewise.
14020         * tests/test-isnand.h: Likewise.
14021         * tests/test-isnanf.h: Likewise.
14022         * tests/test-isnanl.h: Likewise.
14023         * tests/test-lchown.c: Likewise.
14024         * tests/test-ldexpl.c: Likewise.
14025         * tests/test-link.c: Likewise.
14026         * tests/test-linkat.c: Likewise.
14027         * tests/test-linked_list.c: Likewise.
14028         * tests/test-linkedhash_list.c: Likewise.
14029         * tests/test-localename.c: Likewise.
14030         * tests/test-lseek.c: Likewise.
14031         * tests/test-lstat.c: Likewise.
14032         * tests/test-mbmemcasecmp.c: Likewise.
14033         * tests/test-mbmemcasecoll.c: Likewise.
14034         * tests/test-mbrtowc.c: Likewise.
14035         * tests/test-mbscasecmp.c: Likewise.
14036         * tests/test-mbscasestr1.c: Likewise.
14037         * tests/test-mbscasestr2.c: Likewise.
14038         * tests/test-mbscasestr3.c: Likewise.
14039         * tests/test-mbscasestr4.c: Likewise.
14040         * tests/test-mbschr.c: Likewise.
14041         * tests/test-mbscspn.c: Likewise.
14042         * tests/test-mbsinit.c: Likewise.
14043         * tests/test-mbsncasecmp.c: Likewise.
14044         * tests/test-mbsnrtowcs.c: Likewise.
14045         * tests/test-mbspbrk.c: Likewise.
14046         * tests/test-mbspcasecmp.c: Likewise.
14047         * tests/test-mbsrchr.c: Likewise.
14048         * tests/test-mbsrtowcs.c: Likewise.
14049         * tests/test-mbsspn.c: Likewise.
14050         * tests/test-mbsstr1.c: Likewise.
14051         * tests/test-mbsstr2.c: Likewise.
14052         * tests/test-mbsstr3.c: Likewise.
14053         * tests/test-memchr.c: Likewise.
14054         * tests/test-memchr2.c: Likewise.
14055         * tests/test-memcmp.c: Likewise.
14056         * tests/test-memmem.c: Likewise.
14057         * tests/test-memrchr.c: Likewise.
14058         * tests/test-mkdir.c: Likewise.
14059         * tests/test-mkdirat.c: Likewise.
14060         * tests/test-mkfifo.c: Likewise.
14061         * tests/test-mkfifoat.c: Likewise.
14062         * tests/test-mknod.c: Likewise.
14063         * tests/test-nanosleep.c: Likewise.
14064         * tests/test-nl_langinfo.c: Likewise.
14065         * tests/test-obstack-printf.c: Likewise.
14066         * tests/test-open.c: Likewise.
14067         * tests/test-openat.c: Likewise.
14068         * tests/test-pipe-filter-gi1.c: Likewise.
14069         * tests/test-pipe-filter-gi2-main.c: Likewise.
14070         * tests/test-pipe-filter-ii1.c: Likewise.
14071         * tests/test-pipe-filter-ii2-main.c: Likewise.
14072         * tests/test-pipe2.c: Likewise.
14073         * tests/test-popen.h: Likewise.
14074         * tests/test-posixtm.c: Likewise.
14075         * tests/test-pread.c: Likewise.
14076         * tests/test-printf-frexp.c: Likewise.
14077         * tests/test-printf-frexpl.c: Likewise.
14078         * tests/test-printf-posix.c: Likewise.
14079         * tests/test-priv-set.c: Likewise.
14080         * tests/test-quotearg.c: Likewise.
14081         * tests/test-random_r.c: Likewise.
14082         * tests/test-rawmemchr.c: Likewise.
14083         * tests/test-rbtree_list.c: Likewise.
14084         * tests/test-rbtree_oset.c: Likewise.
14085         * tests/test-rbtreehash_list.c: Likewise.
14086         * tests/test-readlink.c: Likewise.
14087         * tests/test-remove.c: Likewise.
14088         * tests/test-rename.c: Likewise.
14089         * tests/test-renameat.c: Likewise.
14090         * tests/test-rmdir.c: Likewise.
14091         * tests/test-round1.c: Likewise.
14092         * tests/test-roundf1.c: Likewise.
14093         * tests/test-roundl.c: Likewise.
14094         * tests/test-safe-alloc.c: Likewise.
14095         * tests/test-sameacls.c: Likewise.
14096         * tests/test-set-mode-acl.c: Likewise.
14097         * tests/test-setenv.c: Likewise.
14098         * tests/test-sigaction.c: Likewise.
14099         * tests/test-signbit.c: Likewise.
14100         * tests/test-sleep.c: Likewise.
14101         * tests/test-snprintf-posix.c: Likewise.
14102         * tests/test-snprintf.c: Likewise.
14103         * tests/test-sprintf-posix.c: Likewise.
14104         * tests/test-stat-time.c: Likewise.
14105         * tests/test-stat.c: Likewise.
14106         * tests/test-strcasestr.c: Likewise.
14107         * tests/test-strchrnul.c: Likewise.
14108         * tests/test-strerror.c: Likewise.
14109         * tests/test-striconv.c: Likewise.
14110         * tests/test-striconveh.c: Likewise.
14111         * tests/test-striconveha.c: Likewise.
14112         * tests/test-strsignal.c: Likewise.
14113         * tests/test-strstr.c: Likewise.
14114         * tests/test-strtod.c: Likewise.
14115         * tests/test-strverscmp.c: Likewise.
14116         * tests/test-symlink.c: Likewise.
14117         * tests/test-symlinkat.c: Likewise.
14118         * tests/test-trunc1.c: Likewise.
14119         * tests/test-trunc2.c: Likewise.
14120         * tests/test-truncf1.c: Likewise.
14121         * tests/test-truncf2.c: Likewise.
14122         * tests/test-truncl.c: Likewise.
14123         * tests/test-uname.c: Likewise.
14124         * tests/test-unlink.c: Likewise.
14125         * tests/test-unlinkat.c: Likewise.
14126         * tests/test-unsetenv.c: Likewise.
14127         * tests/test-usleep.c: Likewise.
14128         * tests/test-utimens.c: Likewise.
14129         * tests/test-utimensat.c: Likewise.
14130         * tests/test-vasnprintf-posix.c: Likewise.
14131         * tests/test-vasnprintf-posix2.c: Likewise.
14132         * tests/test-vasnprintf.c: Likewise.
14133         * tests/test-vasprintf-posix.c: Likewise.
14134         * tests/test-vasprintf.c: Likewise.
14135         * tests/test-vdprintf-posix.c: Likewise.
14136         * tests/test-vfprintf-posix.c: Likewise.
14137         * tests/test-vprintf-posix.c: Likewise.
14138         * tests/test-vsnprintf-posix.c: Likewise.
14139         * tests/test-vsnprintf.c: Likewise.
14140         * tests/test-vsprintf-posix.c: Likewise.
14141         * tests/test-wcrtomb.c: Likewise.
14142         * tests/test-wcsnrtombs.c: Likewise.
14143         * tests/test-wcsrtombs.c: Likewise.
14144         * tests/test-wctype.c: Likewise.
14145         * tests/test-wcwidth.c: Likewise.
14146         * tests/test-xfprintf-posix.c: Likewise.
14147         * tests/test-xmemdup0.c: Likewise.
14148         * tests/test-xprintf-posix.c: Likewise.
14149         * tests/test-xvasprintf.c: Likewise.
14150         * tests/unicase/test-locale-language.c: Likewise.
14151         * tests/unicase/test-mapping-part1.h: Likewise.
14152         * tests/unicase/test-predicate-part1.h: Likewise.
14153         * tests/unicase/test-u8-casecmp.c: Likewise.
14154         * tests/unicase/test-u8-casecoll.c: Likewise.
14155         * tests/unicase/test-u8-casefold.c: Likewise.
14156         * tests/unicase/test-u8-is-cased.c: Likewise.
14157         * tests/unicase/test-u8-is-casefolded.c: Likewise.
14158         * tests/unicase/test-u8-is-lowercase.c: Likewise.
14159         * tests/unicase/test-u8-is-titlecase.c: Likewise.
14160         * tests/unicase/test-u8-is-uppercase.c: Likewise.
14161         * tests/unicase/test-u8-tolower.c: Likewise.
14162         * tests/unicase/test-u8-totitle.c: Likewise.
14163         * tests/unicase/test-u8-toupper.c: Likewise.
14164         * tests/unicase/test-u16-casecmp.c: Likewise.
14165         * tests/unicase/test-u16-casecoll.c: Likewise.
14166         * tests/unicase/test-u16-casefold.c: Likewise.
14167         * tests/unicase/test-u16-is-cased.c: Likewise.
14168         * tests/unicase/test-u16-is-casefolded.c: Likewise.
14169         * tests/unicase/test-u16-is-lowercase.c: Likewise.
14170         * tests/unicase/test-u16-is-titlecase.c: Likewise.
14171         * tests/unicase/test-u16-is-uppercase.c: Likewise.
14172         * tests/unicase/test-u16-tolower.c: Likewise.
14173         * tests/unicase/test-u16-totitle.c: Likewise.
14174         * tests/unicase/test-u16-toupper.c: Likewise.
14175         * tests/unicase/test-u32-casecmp.c: Likewise.
14176         * tests/unicase/test-u32-casecoll.c: Likewise.
14177         * tests/unicase/test-u32-casefold.c: Likewise.
14178         * tests/unicase/test-u32-is-cased.c: Likewise.
14179         * tests/unicase/test-u32-is-casefolded.c: Likewise.
14180         * tests/unicase/test-u32-is-lowercase.c: Likewise.
14181         * tests/unicase/test-u32-is-titlecase.c: Likewise.
14182         * tests/unicase/test-u32-is-uppercase.c: Likewise.
14183         * tests/unicase/test-u32-tolower.c: Likewise.
14184         * tests/unicase/test-u32-totitle.c: Likewise.
14185         * tests/unicase/test-u32-toupper.c: Likewise.
14186         * tests/unicase/test-ulc-casecmp.c: Likewise.
14187         * tests/unicase/test-ulc-casecoll.c: Likewise.
14188         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14189         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
14190         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14191         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14192         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
14193         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
14194         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14195         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14196         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14197         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
14198         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14199         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14200         * tests/unictype/test-bidi_byname.c: Likewise.
14201         * tests/unictype/test-bidi_name.c: Likewise.
14202         * tests/unictype/test-bidi_of.c: Likewise.
14203         * tests/unictype/test-bidi_test.c: Likewise.
14204         * tests/unictype/test-block_list.c: Likewise.
14205         * tests/unictype/test-block_of.c: Likewise.
14206         * tests/unictype/test-block_test.c: Likewise.
14207         * tests/unictype/test-categ_and.c: Likewise.
14208         * tests/unictype/test-categ_and_not.c: Likewise.
14209         * tests/unictype/test-categ_byname.c: Likewise.
14210         * tests/unictype/test-categ_name.c: Likewise.
14211         * tests/unictype/test-categ_none.c: Likewise.
14212         * tests/unictype/test-categ_of.c: Likewise.
14213         * tests/unictype/test-categ_or.c: Likewise.
14214         * tests/unictype/test-categ_test_withtable.c: Likewise.
14215         * tests/unictype/test-combining.c: Likewise.
14216         * tests/unictype/test-decdigit.c: Likewise.
14217         * tests/unictype/test-digit.c: Likewise.
14218         * tests/unictype/test-mirror.c: Likewise.
14219         * tests/unictype/test-numeric.c: Likewise.
14220         * tests/unictype/test-pr_byname.c: Likewise.
14221         * tests/unictype/test-pr_test.c: Likewise.
14222         * tests/unictype/test-predicate-part1.h: Likewise.
14223         * tests/unictype/test-scripts.c: Likewise.
14224         * tests/unictype/test-sy_c_ident.c: Likewise.
14225         * tests/unictype/test-sy_java_ident.c: Likewise.
14226         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
14227         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
14228         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
14229         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
14230         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
14231         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
14232         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
14233         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
14234         * tests/uninorm/test-canonical-decomposition.c: Likewise.
14235         * tests/uninorm/test-compat-decomposition.c: Likewise.
14236         * tests/uninorm/test-composition.c: Likewise.
14237         * tests/uninorm/test-decomposing-form.c: Likewise.
14238         * tests/uninorm/test-decomposition.c: Likewise.
14239         * tests/uninorm/test-u8-nfc.c: Likewise.
14240         * tests/uninorm/test-u8-nfd.c: Likewise.
14241         * tests/uninorm/test-u8-nfkc.c: Likewise.
14242         * tests/uninorm/test-u8-nfkd.c: Likewise.
14243         * tests/uninorm/test-u8-normcmp.c: Likewise.
14244         * tests/uninorm/test-u8-normcoll.c: Likewise.
14245         * tests/uninorm/test-u16-nfc.c: Likewise.
14246         * tests/uninorm/test-u16-nfd.c: Likewise.
14247         * tests/uninorm/test-u16-nfkc.c: Likewise.
14248         * tests/uninorm/test-u16-nfkd.c: Likewise.
14249         * tests/uninorm/test-u16-normcmp.c: Likewise.
14250         * tests/uninorm/test-u16-normcoll.c: Likewise.
14251         * tests/uninorm/test-u32-nfc.c: Likewise.
14252         * tests/uninorm/test-u32-nfd.c: Likewise.
14253         * tests/uninorm/test-u32-nfkc.c: Likewise.
14254         * tests/uninorm/test-u32-nfkd.c: Likewise.
14255         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14256         * tests/uninorm/test-u32-normcmp.c: Likewise.
14257         * tests/uninorm/test-u32-normcoll.c: Likewise.
14258         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
14259         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
14260         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
14261         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
14262         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
14263         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
14264         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
14265         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
14266         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
14267         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
14268         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
14269         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
14270         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
14271         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
14272         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
14273         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
14274         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
14275         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
14276         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
14277         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
14278         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
14279         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
14280         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
14281         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
14282         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
14283         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
14284         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
14285         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
14286         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
14287         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
14288         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
14289         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
14290         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
14291         * tests/uniwidth/test-u8-strwidth.c: Likewise.
14292         * tests/uniwidth/test-u8-width.c: Likewise.
14293         * tests/uniwidth/test-u16-strwidth.c: Likewise.
14294         * tests/uniwidth/test-u16-width.c: Likewise.
14295         * tests/uniwidth/test-u32-strwidth.c: Likewise.
14296         * tests/uniwidth/test-u32-width.c: Likewise.
14297         * tests/uniwidth/test-uc_width.c: Likewise.
14298         * tests/uniwidth/test-uc_width2.c: Likewise.
14299         * modules/acl-tests (Files): Add tests/macros.h.
14300         * modules/areadlink-tests (Files): Likewise.
14301         * modules/areadlink-with-size-tests (Files): Likewise.
14302         * modules/areadlinkat-tests (Files): Likewise.
14303         * modules/areadlinkat-with-size-tests (Files): Likewise.
14304         * modules/argmatch-tests (Files): Likewise.
14305         * modules/argv-iter-tests (Files): Likewise.
14306         * modules/array-list-tests (Files): Likewise.
14307         * modules/array-mergesort-tests (Files): Likewise.
14308         * modules/array-oset-tests (Files): Likewise.
14309         * modules/avltree-list-tests (Files): Likewise.
14310         * modules/avltree-oset-tests (Files): Likewise.
14311         * modules/avltreehash-list-tests (Files): Likewise.
14312         * modules/base64-tests (Files): Likewise.
14313         * modules/binary-io-tests (Files): Likewise.
14314         * modules/bitrotate-tests (Files): Likewise.
14315         * modules/btowc-tests (Files): Likewise.
14316         * modules/byteswap-tests (Files): Likewise.
14317         * modules/c-ctype-tests (Files): Likewise.
14318         * modules/c-stack-tests (Files): Likewise.
14319         * modules/c-strcase-tests (Files): Likewise.
14320         * modules/c-strcasestr-tests (Files): Likewise.
14321         * modules/c-strstr-tests (Files): Likewise.
14322         * modules/canonicalize-lgpl-tests (Files): Likewise.
14323         * modules/canonicalize-tests (Files): Likewise.
14324         * modules/carray-list-tests (Files): Likewise.
14325         * modules/ceilf-tests (Files): Likewise.
14326         * modules/ceill-tests (Files): Likewise.
14327         * modules/chown-tests (Files): Likewise.
14328         * modules/cloexec-tests (Files): Likewise.
14329         * modules/copy-file-tests (Files): Likewise.
14330         * modules/count-one-bits-tests (Files): Likewise.
14331         * modules/dprintf-posix-tests (Files): Likewise.
14332         * modules/dup2-tests (Files): Likewise.
14333         * modules/dup3-tests (Files): Likewise.
14334         * modules/duplocale-tests (Files): Likewise.
14335         * modules/fbufmode-tests (Files): Likewise.
14336         * modules/fchdir-tests (Files): Likewise.
14337         * modules/fcntl-safer-tests (Files): Likewise.
14338         * modules/fcntl-tests (Files): Likewise.
14339         * modules/fdopendir-tests (Files): Likewise.
14340         * modules/fdutimensat-tests (Files): Likewise.
14341         * modules/fflush-tests (Files): Likewise.
14342         * modules/filevercmp-tests (Files): Likewise.
14343         * modules/flock-tests (Files): Likewise.
14344         * modules/floorf-tests (Files): Likewise.
14345         * modules/floorl-tests (Files): Likewise.
14346         * modules/fnmatch-tests (Files): Likewise.
14347         * modules/fopen-safer-tests (Files): Likewise.
14348         * modules/fopen-tests (Files): Likewise.
14349         * modules/fpending-tests (Files): Likewise.
14350         * modules/fprintf-posix-tests (Files): Likewise.
14351         * modules/fpurge-tests (Files): Likewise.
14352         * modules/freadable-tests (Files): Likewise.
14353         * modules/freadahead-tests (Files): Likewise.
14354         * modules/freading-tests (Files): Likewise.
14355         * modules/freadptr-tests (Files): Likewise.
14356         * modules/freadseek-tests (Files): Likewise.
14357         * modules/freopen-tests (Files): Likewise.
14358         * modules/frexp-nolibm-tests (Files): Likewise.
14359         * modules/frexp-tests (Files): Likewise.
14360         * modules/frexpl-nolibm-tests (Files): Likewise.
14361         * modules/frexpl-tests (Files): Likewise.
14362         * modules/fseek-tests (Files): Likewise.
14363         * modules/fseeko-tests (Files): Likewise.
14364         * modules/fstrcmp-tests (Files): Likewise.
14365         * modules/fsync-tests (Files): Likewise.
14366         * modules/ftell-tests (Files): Likewise.
14367         * modules/ftello-tests (Files): Likewise.
14368         * modules/func-tests (Files): Likewise.
14369         * modules/futimens-tests (Files): Likewise.
14370         * modules/fwritable-tests (Files): Likewise.
14371         * modules/fwriting-tests (Files): Likewise.
14372         * modules/getcwd-tests (Files): Likewise.
14373         * modules/getdate-tests (Files): Likewise.
14374         * modules/getdelim-tests (Files): Likewise.
14375         * modules/getdtablesize-tests (Files): Likewise.
14376         * modules/getgroups-tests (Files): Likewise.
14377         * modules/getline-tests (Files): Likewise.
14378         * modules/getndelim2-tests (Files): Likewise.
14379         * modules/glob-tests (Files): Likewise.
14380         * modules/hash-tests (Files): Likewise.
14381         * modules/i-ring-tests (Files): Likewise.
14382         * modules/iconv-tests (Files): Likewise.
14383         * modules/iconv_open-utf-tests (Files): Likewise.
14384         * modules/idpriv-drop-tests (Files): Likewise.
14385         * modules/idpriv-droptemp-tests (Files): Likewise.
14386         * modules/inet_ntop-tests (Files): Likewise.
14387         * modules/inet_pton-tests (Files): Likewise.
14388         * modules/isblank-tests (Files): Likewise.
14389         * modules/isfinite-tests (Files): Likewise.
14390         * modules/isinf-tests (Files): Likewise.
14391         * modules/isnan-tests (Files): Likewise.
14392         * modules/isnand-nolibm-tests (Files): Likewise.
14393         * modules/isnand-tests (Files): Likewise.
14394         * modules/isnanf-nolibm-tests (Files): Likewise.
14395         * modules/isnanf-tests (Files): Likewise.
14396         * modules/isnanl-nolibm-tests (Files): Likewise.
14397         * modules/isnanl-tests (Files): Likewise.
14398         * modules/lchown-tests (Files): Likewise.
14399         * modules/ldexpl-tests (Files): Likewise.
14400         * modules/link-tests (Files): Likewise.
14401         * modules/linkat-tests (Files): Likewise.
14402         * modules/linked-list-tests (Files): Likewise.
14403         * modules/linkedhash-list-tests (Files): Likewise.
14404         * modules/localename-tests (Files): Likewise.
14405         * modules/lseek-tests (Files): Likewise.
14406         * modules/lstat-tests (Files): Likewise.
14407         * modules/mbmemcasecmp-tests (Files): Likewise.
14408         * modules/mbmemcasecoll-tests (Files): Likewise.
14409         * modules/mbrtowc-tests (Files): Likewise.
14410         * modules/mbscasecmp-tests (Files): Likewise.
14411         * modules/mbscasestr-tests (Files): Likewise.
14412         * modules/mbschr-tests (Files): Likewise.
14413         * modules/mbscspn-tests (Files): Likewise.
14414         * modules/mbsinit-tests (Files): Likewise.
14415         * modules/mbsncasecmp-tests (Files): Likewise.
14416         * modules/mbsnrtowcs-tests (Files): Likewise.
14417         * modules/mbspbrk-tests (Files): Likewise.
14418         * modules/mbspcasecmp-tests (Files): Likewise.
14419         * modules/mbsrchr-tests (Files): Likewise.
14420         * modules/mbsrtowcs-tests (Files): Likewise.
14421         * modules/mbsspn-tests (Files): Likewise.
14422         * modules/mbsstr-tests (Files): Likewise.
14423         * modules/memchr-tests (Files): Likewise.
14424         * modules/memchr2-tests (Files): Likewise.
14425         * modules/memcmp-tests (Files): Likewise.
14426         * modules/memmem-tests (Files): Likewise.
14427         * modules/memrchr-tests (Files): Likewise.
14428         * modules/mkdir-tests (Files): Likewise.
14429         * modules/mkfifo-tests (Files): Likewise.
14430         * modules/mkfifoat-tests (Files): Likewise.
14431         * modules/mknod-tests (Files): Likewise.
14432         * modules/nanosleep-tests (Files): Likewise.
14433         * modules/nl_langinfo-tests (Files): Likewise.
14434         * modules/obstack-printf-tests (Files): Likewise.
14435         * modules/open-tests (Files): Likewise.
14436         * modules/openat-tests (Files): Likewise.
14437         * modules/pipe-filter-gi-tests (Files): Likewise.
14438         * modules/pipe-filter-ii-tests (Files): Likewise.
14439         * modules/pipe2-tests (Files): Likewise.
14440         * modules/popen-safer-tests (Files): Likewise.
14441         * modules/popen-tests (Files): Likewise.
14442         * modules/posixtm-tests (Files): Likewise.
14443         * modules/pread-tests (Files): Likewise.
14444         * modules/printf-frexp-tests (Files): Likewise.
14445         * modules/printf-frexpl-tests (Files): Likewise.
14446         * modules/printf-posix-tests (Files): Likewise.
14447         * modules/priv-set-tests (Files): Likewise.
14448         * modules/quotearg-tests (Files): Likewise.
14449         * modules/random_r-tests (Files): Likewise.
14450         * modules/rawmemchr-tests (Files): Likewise.
14451         * modules/rbtree-list-tests (Files): Likewise.
14452         * modules/rbtree-oset-tests (Files): Likewise.
14453         * modules/rbtreehash-list-tests (Files): Likewise.
14454         * modules/readlink-tests (Files): Likewise.
14455         * modules/remove-tests (Files): Likewise.
14456         * modules/rename-tests (Files): Likewise.
14457         * modules/renameat-tests (Files): Likewise.
14458         * modules/rmdir-tests (Files): Likewise.
14459         * modules/round-tests (Files): Likewise.
14460         * modules/roundf-tests (Files): Likewise.
14461         * modules/roundl-tests (Files): Likewise.
14462         * modules/safe-alloc-tests (Files): Likewise.
14463         * modules/setenv-tests (Files): Likewise.
14464         * modules/sigaction-tests (Files): Likewise.
14465         * modules/signbit-tests (Files): Likewise.
14466         * modules/sleep-tests (Files): Likewise.
14467         * modules/snprintf-posix-tests (Files): Likewise.
14468         * modules/snprintf-tests (Files): Likewise.
14469         * modules/sprintf-posix-tests (Files): Likewise.
14470         * modules/stat-tests (Files): Likewise.
14471         * modules/stat-time-tests (Files): Likewise.
14472         * modules/strcasestr-tests (Files): Likewise.
14473         * modules/strchrnul-tests (Files): Likewise.
14474         * modules/strerror-tests (Files): Likewise.
14475         * modules/striconv-tests (Files): Likewise.
14476         * modules/striconveh-tests (Files): Likewise.
14477         * modules/striconveha-tests (Files): Likewise.
14478         * modules/strsignal-tests (Files): Likewise.
14479         * modules/strstr-tests (Files): Likewise.
14480         * modules/strtod-tests (Files): Likewise.
14481         * modules/strverscmp-tests (Files): Likewise.
14482         * modules/symlink-tests (Files): Likewise.
14483         * modules/symlinkat-tests (Files): Likewise.
14484         * modules/trunc-tests (Files): Likewise.
14485         * modules/truncf-tests (Files): Likewise.
14486         * modules/truncl-tests (Files): Likewise.
14487         * modules/uname-tests (Files): Likewise.
14488         * modules/unicase/cased-tests (Files): Likewise.
14489         * modules/unicase/ignorable-tests (Files): Likewise.
14490         * modules/unicase/locale-language-tests (Files): Likewise.
14491         * modules/unicase/tolower-tests (Files): Likewise.
14492         * modules/unicase/totitle-tests (Files): Likewise.
14493         * modules/unicase/toupper-tests (Files): Likewise.
14494         * modules/unicase/u8-casecmp-tests (Files): Likewise.
14495         * modules/unicase/u8-casecoll-tests (Files): Likewise.
14496         * modules/unicase/u8-casefold-tests (Files): Likewise.
14497         * modules/unicase/u8-is-cased-tests (Files): Likewise.
14498         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
14499         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
14500         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
14501         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
14502         * modules/unicase/u8-tolower-tests (Files): Likewise.
14503         * modules/unicase/u8-totitle-tests (Files): Likewise.
14504         * modules/unicase/u8-toupper-tests (Files): Likewise.
14505         * modules/unicase/u16-casecmp-tests (Files): Likewise.
14506         * modules/unicase/u16-casecoll-tests (Files): Likewise.
14507         * modules/unicase/u16-casefold-tests (Files): Likewise.
14508         * modules/unicase/u16-is-cased-tests (Files): Likewise.
14509         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
14510         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
14511         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
14512         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
14513         * modules/unicase/u16-tolower-tests (Files): Likewise.
14514         * modules/unicase/u16-totitle-tests (Files): Likewise.
14515         * modules/unicase/u16-toupper-tests (Files): Likewise.
14516         * modules/unicase/u32-casecmp-tests (Files): Likewise.
14517         * modules/unicase/u32-casecoll-tests (Files): Likewise.
14518         * modules/unicase/u32-casefold-tests (Files): Likewise.
14519         * modules/unicase/u32-is-cased-tests (Files): Likewise.
14520         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
14521         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
14522         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
14523         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
14524         * modules/unicase/u32-tolower-tests (Files): Likewise.
14525         * modules/unicase/u32-totitle-tests (Files): Likewise.
14526         * modules/unicase/u32-toupper-tests (Files): Likewise.
14527         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
14528         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
14529         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
14530         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
14531         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
14532         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
14533         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
14534         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
14535         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
14536         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
14537         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
14538         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
14539         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
14540         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
14541         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
14542         * modules/unictype/bidicategory-name-tests (Files): Likewise.
14543         * modules/unictype/bidicategory-of-tests (Files): Likewise.
14544         * modules/unictype/bidicategory-test-tests (Files): Likewise.
14545         * modules/unictype/block-list-tests (Files): Likewise.
14546         * modules/unictype/block-of-tests (Files): Likewise.
14547         * modules/unictype/block-test-tests (Files): Likewise.
14548         * modules/unictype/category-C-tests (Files): Likewise.
14549         * modules/unictype/category-Cc-tests (Files): Likewise.
14550         * modules/unictype/category-Cf-tests (Files): Likewise.
14551         * modules/unictype/category-Cn-tests (Files): Likewise.
14552         * modules/unictype/category-Co-tests (Files): Likewise.
14553         * modules/unictype/category-Cs-tests (Files): Likewise.
14554         * modules/unictype/category-L-tests (Files): Likewise.
14555         * modules/unictype/category-Ll-tests (Files): Likewise.
14556         * modules/unictype/category-Lm-tests (Files): Likewise.
14557         * modules/unictype/category-Lo-tests (Files): Likewise.
14558         * modules/unictype/category-Lt-tests (Files): Likewise.
14559         * modules/unictype/category-Lu-tests (Files): Likewise.
14560         * modules/unictype/category-M-tests (Files): Likewise.
14561         * modules/unictype/category-Mc-tests (Files): Likewise.
14562         * modules/unictype/category-Me-tests (Files): Likewise.
14563         * modules/unictype/category-Mn-tests (Files): Likewise.
14564         * modules/unictype/category-N-tests (Files): Likewise.
14565         * modules/unictype/category-Nd-tests (Files): Likewise.
14566         * modules/unictype/category-Nl-tests (Files): Likewise.
14567         * modules/unictype/category-No-tests (Files): Likewise.
14568         * modules/unictype/category-P-tests (Files): Likewise.
14569         * modules/unictype/category-Pc-tests (Files): Likewise.
14570         * modules/unictype/category-Pd-tests (Files): Likewise.
14571         * modules/unictype/category-Pe-tests (Files): Likewise.
14572         * modules/unictype/category-Pf-tests (Files): Likewise.
14573         * modules/unictype/category-Pi-tests (Files): Likewise.
14574         * modules/unictype/category-Po-tests (Files): Likewise.
14575         * modules/unictype/category-Ps-tests (Files): Likewise.
14576         * modules/unictype/category-S-tests (Files): Likewise.
14577         * modules/unictype/category-Sc-tests (Files): Likewise.
14578         * modules/unictype/category-Sk-tests (Files): Likewise.
14579         * modules/unictype/category-Sm-tests (Files): Likewise.
14580         * modules/unictype/category-So-tests (Files): Likewise.
14581         * modules/unictype/category-Z-tests (Files): Likewise.
14582         * modules/unictype/category-Zl-tests (Files): Likewise.
14583         * modules/unictype/category-Zp-tests (Files): Likewise.
14584         * modules/unictype/category-Zs-tests (Files): Likewise.
14585         * modules/unictype/category-and-not-tests (Files): Likewise.
14586         * modules/unictype/category-and-tests (Files): Likewise.
14587         * modules/unictype/category-byname-tests (Files): Likewise.
14588         * modules/unictype/category-name-tests (Files): Likewise.
14589         * modules/unictype/category-none-tests (Files): Likewise.
14590         * modules/unictype/category-of-tests (Files): Likewise.
14591         * modules/unictype/category-or-tests (Files): Likewise.
14592         * modules/unictype/category-test-withtable-tests (Files): Likewise.
14593         * modules/unictype/combining-class-tests (Files): Likewise.
14594         * modules/unictype/ctype-alnum-tests (Files): Likewise.
14595         * modules/unictype/ctype-alpha-tests (Files): Likewise.
14596         * modules/unictype/ctype-blank-tests (Files): Likewise.
14597         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
14598         * modules/unictype/ctype-digit-tests (Files): Likewise.
14599         * modules/unictype/ctype-graph-tests (Files): Likewise.
14600         * modules/unictype/ctype-lower-tests (Files): Likewise.
14601         * modules/unictype/ctype-print-tests (Files): Likewise.
14602         * modules/unictype/ctype-punct-tests (Files): Likewise.
14603         * modules/unictype/ctype-space-tests (Files): Likewise.
14604         * modules/unictype/ctype-upper-tests (Files): Likewise.
14605         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
14606         * modules/unictype/decimal-digit-tests (Files): Likewise.
14607         * modules/unictype/digit-tests (Files): Likewise.
14608         * modules/unictype/mirror-tests (Files): Likewise.
14609         * modules/unictype/numeric-tests (Files): Likewise.
14610         * modules/unictype/property-alphabetic-tests (Files): Likewise.
14611         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
14612         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
14613         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
14614         Likewise.
14615         * modules/unictype/property-bidi-block-separator-tests (Files):
14616         Likewise.
14617         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
14618         Likewise.
14619         * modules/unictype/property-bidi-common-separator-tests (Files):
14620         Likewise.
14621         * modules/unictype/property-bidi-control-tests (Files): Likewise.
14622         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
14623         Likewise.
14624         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
14625         Likewise.
14626         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
14627         Likewise.
14628         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
14629         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
14630         Likewise.
14631         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
14632         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
14633         Likewise.
14634         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
14635         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
14636         * modules/unictype/property-bidi-segment-separator-tests (Files):
14637         Likewise.
14638         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
14639         * modules/unictype/property-byname-tests (Files): Likewise.
14640         * modules/unictype/property-combining-tests (Files): Likewise.
14641         * modules/unictype/property-composite-tests (Files): Likewise.
14642         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
14643         * modules/unictype/property-dash-tests (Files): Likewise.
14644         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
14645         * modules/unictype/property-default-ignorable-code-point-tests (Files):
14646         Likewise.
14647         * modules/unictype/property-deprecated-tests (Files): Likewise.
14648         * modules/unictype/property-diacritic-tests (Files): Likewise.
14649         * modules/unictype/property-extender-tests (Files): Likewise.
14650         * modules/unictype/property-format-control-tests (Files): Likewise.
14651         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
14652         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
14653         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
14654         * modules/unictype/property-hex-digit-tests (Files): Likewise.
14655         * modules/unictype/property-hyphen-tests (Files): Likewise.
14656         * modules/unictype/property-id-continue-tests (Files): Likewise.
14657         * modules/unictype/property-id-start-tests (Files): Likewise.
14658         * modules/unictype/property-ideographic-tests (Files): Likewise.
14659         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
14660         * modules/unictype/property-ids-trinary-operator-tests (Files):
14661         Likewise.
14662         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
14663         * modules/unictype/property-iso-control-tests (Files): Likewise.
14664         * modules/unictype/property-join-control-tests (Files): Likewise.
14665         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
14666         * modules/unictype/property-line-separator-tests (Files): Likewise.
14667         * modules/unictype/property-logical-order-exception-tests (Files):
14668         Likewise.
14669         * modules/unictype/property-lowercase-tests (Files): Likewise.
14670         * modules/unictype/property-math-tests (Files): Likewise.
14671         * modules/unictype/property-non-break-tests (Files): Likewise.
14672         * modules/unictype/property-not-a-character-tests (Files): Likewise.
14673         * modules/unictype/property-numeric-tests (Files): Likewise.
14674         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
14675         * modules/unictype/property-other-default-ignorable-code-point-tests
14676         (Files): Likewise.
14677         * modules/unictype/property-other-grapheme-extend-tests (Files):
14678         Likewise.
14679         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
14680         * modules/unictype/property-other-id-start-tests (Files): Likewise.
14681         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
14682         * modules/unictype/property-other-math-tests (Files): Likewise.
14683         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
14684         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
14685         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
14686         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
14687         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
14688         * modules/unictype/property-private-use-tests (Files): Likewise.
14689         * modules/unictype/property-punctuation-tests (Files): Likewise.
14690         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
14691         * modules/unictype/property-radical-tests (Files): Likewise.
14692         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
14693         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
14694         * modules/unictype/property-space-tests (Files): Likewise.
14695         * modules/unictype/property-terminal-punctuation-tests (Files):
14696         Likewise.
14697         * modules/unictype/property-test-tests (Files): Likewise.
14698         * modules/unictype/property-titlecase-tests (Files): Likewise.
14699         * modules/unictype/property-unassigned-code-value-tests (Files):
14700         Likewise.
14701         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
14702         * modules/unictype/property-uppercase-tests (Files): Likewise.
14703         * modules/unictype/property-variation-selector-tests (Files): Likewise.
14704         * modules/unictype/property-white-space-tests (Files): Likewise.
14705         * modules/unictype/property-xid-continue-tests (Files): Likewise.
14706         * modules/unictype/property-xid-start-tests (Files): Likewise.
14707         * modules/unictype/property-zero-width-tests (Files): Likewise.
14708         * modules/unictype/scripts-tests (Files): Likewise.
14709         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
14710         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
14711         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
14712         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
14713         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
14714         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
14715         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
14716         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
14717         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
14718         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
14719         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
14720         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
14721         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
14722         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
14723         * modules/uninorm/composition-tests (Files): Likewise.
14724         * modules/uninorm/decomposing-form-tests (Files): Likewise.
14725         * modules/uninorm/decomposition-tests (Files): Likewise.
14726         * modules/uninorm/filter-tests (Files): Likewise.
14727         * modules/uninorm/nfc-tests (Files): Likewise.
14728         * modules/uninorm/nfd-tests (Files): Likewise.
14729         * modules/uninorm/nfkc-tests (Files): Likewise.
14730         * modules/uninorm/nfkd-tests (Files): Likewise.
14731         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
14732         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
14733         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
14734         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
14735         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
14736         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
14737         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
14738         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14739         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
14740         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
14741         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
14742         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
14743         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14744         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
14745         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
14746         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
14747         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
14748         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14749         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
14750         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
14751         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
14752         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
14753         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14754         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
14755         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
14756         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
14757         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
14758         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
14759         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
14760         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
14761         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
14762         * modules/uniwidth/u8-width-tests (Files): Likewise.
14763         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
14764         * modules/uniwidth/u16-width-tests (Files): Likewise.
14765         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
14766         * modules/uniwidth/u32-width-tests (Files): Likewise.
14767         * modules/uniwidth/width-tests (Files): Likewise.
14768         * modules/unlink-tests (Files): Likewise.
14769         * modules/unsetenv-tests (Files): Likewise.
14770         * modules/usleep-tests (Files): Likewise.
14771         * modules/utimens-tests (Files): Likewise.
14772         * modules/utimensat-tests (Files): Likewise.
14773         * modules/vasnprintf-posix-tests (Files): Likewise.
14774         * modules/vasnprintf-tests (Files): Likewise.
14775         * modules/vasprintf-posix-tests (Files): Likewise.
14776         * modules/vasprintf-tests (Files): Likewise.
14777         * modules/vdprintf-posix-tests (Files): Likewise.
14778         * modules/vfprintf-posix-tests (Files): Likewise.
14779         * modules/vprintf-posix-tests (Files): Likewise.
14780         * modules/vsnprintf-posix-tests (Files): Likewise.
14781         * modules/vsnprintf-tests (Files): Likewise.
14782         * modules/vsprintf-posix-tests (Files): Likewise.
14783         * modules/wcrtomb-tests (Files): Likewise.
14784         * modules/wcsnrtombs-tests (Files): Likewise.
14785         * modules/wcsrtombs-tests (Files): Likewise.
14786         * modules/wctype-tests (Files): Likewise.
14787         * modules/wcwidth-tests (Files): Likewise.
14788         * modules/xmemdup0-tests (Files): Likewise.
14789         * modules/xprintf-posix-tests (Files): Likewise.
14790         * modules/xvasprintf-tests (Files): Likewise.
14791
14792 2009-12-24  Eric Blake  <ebb9@byu.net>
14793
14794         test-nanosleep: fix typo
14795         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
14796         patch.
14797         Reported by Bruno Haible.
14798
14799 2009-12-24  Bruno Haible  <bruno@clisp.org>
14800
14801         Reduce namespace pollution on glibc systems.
14802         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
14803         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
14804         systems.
14805         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
14806         <getopt.h> on glibc systems.
14807         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
14808         systems.
14809         * lib/fcntl.c: Include <unistd.h> here instead.
14810
14811 2009-12-24  Bruno Haible  <bruno@clisp.org>
14812
14813         * lib/stdlib.in.h (includes): Fix typo in today's commit.
14814
14815 2009-12-24  Eric Blake  <ebb9@byu.net>
14816
14817         tests: add signature checks
14818         * tests/signature.h (SIGNATURE_CHECK): New file.
14819         * modules/atexit-tests (Files): Use it.
14820         * modules/btowc-tests (Files): Likewise.
14821         * modules/canonicalize-lgpl-tests (Files): Likewise.
14822         * modules/ceilf-tests (Files): Likewise.
14823         * modules/ceill-tests (Files): Likewise.
14824         * modules/chown-tests (Files): Likewise.
14825         * modules/dprintf-posix-tests (Files): Likewise.
14826         * modules/dup2-tests (Files): Likewise.
14827         * modules/dup3-tests (Files): Likewise.
14828         * modules/duplocale-tests (Files): Likewise.
14829         * modules/fchdir-tests (Files): Likewise.
14830         * modules/fcntl-tests (Files): Likewise.
14831         * modules/fdopendir-tests (Files): Likewise.
14832         * modules/fflush-tests (Files): Likewise.
14833         * modules/flock-tests (Files): Likewise.
14834         * modules/floorf-tests (Files): Likewise.
14835         * modules/floorl-tests (Files): Likewise.
14836         * modules/fnmatch-tests (Files): Likewise.
14837         * modules/fopen-tests (Files): Likewise.
14838         * modules/fprintf-posix-tests (Files): Likewise.
14839         * modules/freopen-tests (Files): Likewise.
14840         * modules/frexp-nolibm-tests (Files): Likewise.
14841         * modules/frexp-tests (Files): Likewise.
14842         * modules/frexpl-nolibm-tests (Files): Likewise.
14843         * modules/frexpl-tests (Files): Likewise.
14844         * modules/fseek-tests (Files): Likewise.
14845         * modules/fseeko-tests (Files): Likewise.
14846         * modules/fsync-tests (Files): Likewise.
14847         * modules/ftell-tests (Files): Likewise.
14848         * modules/ftello-tests (Files): Likewise.
14849         * modules/futimens-tests (Files): Likewise.
14850         * modules/getaddrinfo-tests (Files): Likewise.
14851         * modules/getcwd-tests (Files): Likewise.
14852         * modules/getdelim-tests (Files): Likewise.
14853         * modules/getdtablesize-tests (Files): Likewise.
14854         * modules/getgroups-tests (Files): Likewise.
14855         * modules/gethostname-tests (Files): Likewise.
14856         * modules/getline-tests (Files): Likewise.
14857         * modules/getopt-posix-tests (Files): Likewise.
14858         * modules/gettimeofday-tests (Files): Likewise.
14859         * modules/glob-tests (Files): Likewise.
14860         * modules/iconv-tests (Files): Likewise.
14861         * modules/inet_ntop-tests (Files): Likewise.
14862         * modules/inet_pton-tests (Files): Likewise.
14863         * modules/isblank-tests (Files): Likewise.
14864         * modules/lchown-tests (Files): Likewise.
14865         * modules/ldexpl-tests (Files): Likewise.
14866         * modules/link-tests (Files): Likewise.
14867         * modules/linkat-tests (Files): Likewise.
14868         * modules/lseek-tests (Files): Likewise.
14869         * modules/lstat-tests (Files): Likewise.
14870         * modules/mbrtowc-tests (Files): Likewise.
14871         * modules/mbsinit-tests (Files): Likewise.
14872         * modules/mbsnrtowcs-tests (Files): Likewise.
14873         * modules/mbsrtowcs-tests (Files): Likewise.
14874         * modules/memchr-tests (Files): Likewise.
14875         * modules/memcmp-tests (Files): Likewise.
14876         * modules/memmem-tests (Files): Likewise.
14877         * modules/memrchr-tests (Files): Likewise.
14878         * modules/mkdir-tests (Files): Likewise.
14879         * modules/mkfifo-tests (Files): Likewise.
14880         * modules/mkfifoat-tests (Files): Likewise.
14881         * modules/mknod-tests (Files): Likewise.
14882         * modules/nanosleep-tests (Files): Likewise.
14883         * modules/nl_langinfo-tests (Files): Likewise.
14884         * modules/obstack-printf-tests (Files): Likewise.
14885         * modules/open-tests (Files): Likewise.
14886         * modules/openat-tests (Files): Likewise.
14887         * modules/perror-tests (Files): Likewise.
14888         * modules/pipe2-tests (Files): Likewise.
14889         * modules/poll-tests (Files): Likewise.
14890         * modules/popen-tests (Files): Likewise.
14891         * modules/posix_spawn-tests (Files): Likewise.
14892         * modules/posix_spawnp-tests (Files): Likewise.
14893         * modules/pread-tests (Files): Likewise.
14894         * modules/printf-posix-tests (Files): Likewise.
14895         * modules/pty-tests (Files): Likewise.
14896         * modules/random_r-tests (Files): Likewise.
14897         * modules/rawmemchr-tests (Files): Likewise.
14898         * modules/readlink-tests (Files): Likewise.
14899         * modules/remove-tests (Files): Likewise.
14900         * modules/rename-tests (Files): Likewise.
14901         * modules/renameat-tests (Files): Likewise.
14902         * modules/rmdir-tests (Files): Likewise.
14903         * modules/round-tests (Files): Likewise.
14904         * modules/roundf-tests (Files): Likewise.
14905         * modules/roundl-tests (Files): Likewise.
14906         * modules/select-tests (Files): Likewise.
14907         * modules/setenv-tests (Files): Likewise.
14908         * modules/sigaction-tests (Files): Likewise.
14909         * modules/sleep-tests (Files): Likewise.
14910         * modules/snprintf-posix-tests (Files): Likewise.
14911         * modules/snprintf-tests (Files): Likewise.
14912         * modules/sprintf-posix-tests (Files): Likewise.
14913         * modules/stat-tests (Files): Likewise.
14914         * modules/strcasestr-tests (Files): Likewise.
14915         * modules/strchrnul-tests (Files): Likewise.
14916         * modules/strerror-tests (Files): Likewise.
14917         * modules/strsignal-tests (Files): Likewise.
14918         * modules/strstr-tests (Files): Likewise.
14919         * modules/strtod-tests (Files): Likewise.
14920         * modules/strverscmp-tests (Files): Likewise.
14921         * modules/symlink-tests (Files): Likewise.
14922         * modules/symlinkat-tests (Files): Likewise.
14923         * modules/times-tests (Files): Likewise.
14924         * modules/trunc-tests (Files): Likewise.
14925         * modules/truncf-tests (Files): Likewise.
14926         * modules/truncl-tests (Files): Likewise.
14927         * modules/tsearch-tests (Files): Likewise.
14928         * modules/uname-tests (Files): Likewise.
14929         * modules/unlink-tests (Files): Likewise.
14930         * modules/unsetenv-tests (Files): Likewise.
14931         * modules/usleep-tests (Files): Likewise.
14932         * modules/utimensat-tests (Files): Likewise.
14933         * modules/vasprintf-tests (Files): Likewise.
14934         * modules/vdprintf-posix-tests (Files): Likewise.
14935         * modules/vfprintf-posix-tests (Files): Likewise.
14936         * modules/vprintf-posix-tests (Files): Likewise.
14937         * modules/vsnprintf-posix-tests (Files): Likewise.
14938         * modules/vsnprintf-tests (Files): Likewise.
14939         * modules/vsprintf-posix-tests (Files): Likewise.
14940         * modules/wcrtomb-tests (Files): Likewise.
14941         * modules/wcsnrtombs-tests (Files): Likewise.
14942         * modules/wcsrtombs-tests (Files): Likewise.
14943         * modules/wcwidth-tests (Files): Likewise.
14944         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
14945         * tests/test-isinf.c (isinf): Likewise.
14946         * tests/test-isnan.c (isnan): Likewise.
14947         * tests/test-signbit.c (signbit): Likewise.
14948         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
14949         declaration, either as macro or with correct signature.
14950         (select): Ensure function under test is declared with correct
14951         signature in correct header.
14952         * tests/test-atexit.c (atexit): Likewise.
14953         * tests/test-btowc.c (btowc): Likewise.
14954         * tests/test-canonicalize-lgpl.c (realpath)
14955         (canonicalize_file_name): Likewise.
14956         * tests/test-ceilf1.c (ceilf): Likewise.
14957         * tests/test-ceill.c (ceill): Likewise.
14958         * tests/test-chown.c (chown): Likewise.
14959         * tests/test-dprintf-posix.c (dprintf): Likewise.
14960         * tests/test-dup2.c (dup2): Likewise.
14961         * tests/test-dup3.c (dup3): Likewise.
14962         * tests/test-duplocale.c (duplocale): Likewise.
14963         * tests/test-fchdir.c (fchdir): Likewise.
14964         * tests/test-fchownat.c (fchownat): Likewise.
14965         * tests/test-fcntl.c (fcntl): Likewise.
14966         * tests/test-fdopendir.c (fdopendir): Likewise.
14967         * tests/test-fflush.c (fflush): Likewise.
14968         * tests/test-flock.c (flock): Likewise.
14969         * tests/test-floorf1.c (floorf): Likewise.
14970         * tests/test-floorl.c (floorl): Likewise.
14971         * tests/test-fnmatch.c (fnmatch): Likewise.
14972         * tests/test-fopen.c (fopen): Likewise.
14973         * tests/test-fprintf-posix.c (fprintf): Likewise.
14974         * tests/test-freopen.c (freopen): Likewise.
14975         * tests/test-frexp.c (frexp): Likewise.
14976         * tests/test-frexpl.c (frexpl): Likewise.
14977         * tests/test-fseek.c (fseek): Likewise.
14978         * tests/test-fseeko.c (fseeko): Likewise.
14979         * tests/test-fstatat.c (fstatat): Likewise.
14980         * tests/test-fsync.c (fsync): Likewise.
14981         * tests/test-ftell.c (ftell): Likewise.
14982         * tests/test-ftello.c (ftello): Likewise.
14983         * tests/test-futimens.c (futimens): Likewise.
14984         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
14985         (gai_strerror): Likewise.
14986         * tests/test-getcwd.c (getcwd): Likewise.
14987         * tests/test-getdelim.c (getdelim): Likewise.
14988         * tests/test-getdtablesize.c (getdtablesize): Likewise.
14989         * tests/test-getgroups.c (getgroups): Likewise.
14990         * tests/test-gethostname.c (gethostname): Likewise.
14991         * tests/test-getline.c (getline): Likewise.
14992         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
14993         Likewise.
14994         * tests/test-gettimeofday.c (gettimeofday): Likewise.
14995         * tests/test-glob.c (glob, globfree): Likewise.
14996         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
14997         * tests/test-inet_ntop.c (inet_ntop): Likewise.
14998         * tests/test-inet_pton.c (inet_pton): Likewise.
14999         * tests/test-isblank.c (isblank): Likewise.
15000         * tests/test-lchown.c (lchown): Likewise.
15001         * tests/test-ldexpl.c (ldexpl): Likewise.
15002         * tests/test-link.c (link): Likewise.
15003         * tests/test-linkat.c (linkat): Likewise.
15004         * tests/test-lseek.c (lseek): Likewise.
15005         * tests/test-lstat.c (lstat): Likewise.
15006         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15007         * tests/test-mbsinit.c (mbsinit): Likewise.
15008         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15009         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15010         * tests/test-memchr.c (memchr): Likewise.
15011         * tests/test-memcmp.c (memcmp): Likewise.
15012         * tests/test-memmem.c (memmem): Likewise.
15013         * tests/test-memrchr.c (memrchr): Likewise.
15014         * tests/test-mkdir.c (mkdir): Likewise.
15015         * tests/test-mkdirat.c (mkdirat): Likewise.
15016         * tests/test-mkfifo.c (mkfifo): Likewise.
15017         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15018         * tests/test-mknod.c (mknod): Likewise.
15019         * tests/test-nanosleep.c (nanosleep): Likewise.
15020         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15021         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15022         Likewise.
15023         * tests/test-open.c (open): Likewise.
15024         * tests/test-openat.c (openat): Likewise.
15025         * tests/test-perror.c (perror): Likewise.
15026         * tests/test-pipe2.c (pipe2): Likewise.
15027         * tests/test-poll.c (poll): Likewise.
15028         * tests/test-popen.c (popen, pclose): Likewise.
15029         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15030         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15031         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15032         (posix_spawn_file_actions_destroy)
15033         (posix_spawn_file_actions_addclose)
15034         (posix_spawn_file_actions_addopen)
15035         (posix_spawn_file_actions_adddup2): Likewise.
15036         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15037         * tests/test-pread.c (pread): Likewise.
15038         * tests/test-printf-posix.c (printf): Likewise.
15039         * tests/test-pty.c (openpty, forkpty): Likewise.
15040         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15041         (random_r): Likewise.
15042         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15043         * tests/test-readlink.c (readlink): Likewise.
15044         * tests/test-remove.c (remove): Likewise.
15045         * tests/test-rename.c (rename): Likewise.
15046         * tests/test-renameat.c (renameat): Likewise.
15047         * tests/test-rmdir.c (rmdir): Likewise.
15048         * tests/test-round1.c (round): Likewise.
15049         * tests/test-roundf1.c (roundf): Likewise.
15050         * tests/test-roundl.c (roundl): Likewise.
15051         * tests/test-setenv.c (setenv): Likewise.
15052         * tests/test-sigaction.c (sigaction): Likewise.
15053         * tests/test-sleep.c (sleep): Likewise.
15054         * tests/test-snprintf.c (snprintf): Likewise.
15055         * tests/test-sprintf-posix.c (sprintf): Likewise.
15056         * tests/test-stat.c (stat): Likewise.
15057         * tests/test-stpncpy.c (stpncpy): Likewise.
15058         * tests/test-strcasestr.c (strcasestr): Likewise.
15059         * tests/test-strchrnul.c (strchrnul): Likewise.
15060         * tests/test-strerror.c (strerror): Likewise.
15061         * tests/test-strsignal.c (strsignal): Likewise.
15062         * tests/test-strstr.c (strstr): Likewise.
15063         * tests/test-strtod.c (strtod): Likewise.
15064         * tests/test-strverscmp.c (strverscmp): Likewise.
15065         * tests/test-symlink.c (symlink): Likewise.
15066         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
15067         * tests/test-times.c (times): Likewise.
15068         * tests/test-trunc1.c (trunc): Likewise.
15069         * tests/test-truncf1.c (truncf): Likewise.
15070         * tests/test-truncl.c (truncl): Likewise.
15071         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
15072         Likewise.
15073         * tests/test-uname.c (uname): Likewise.
15074         * tests/test-unlink.c (unlink): Likewise.
15075         * tests/test-unlinkat.c (unlinkat): Likewise.
15076         * tests/test-unsetenv.c (unsetenv): Likewise.
15077         * tests/test-usleep.c (usleep): Likewise.
15078         * tests/test-utimensat.c (utimensat): Likewise.
15079         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
15080         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
15081         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
15082         * tests/test-vprintf-posix.c (vprintf): Likewise.
15083         * tests/test-vsnprintf.c (vsnprintf): Likewise.
15084         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
15085         * tests/test-wcrtomb.c (wcrtomb): Likewise.
15086         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
15087         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
15088         * tests/test-wcwidth.c (wcwidth): Likewise.
15089
15090         build: pull in conditional headers during GNULIB_POSIXCHECK
15091         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
15092         definitions from any conditionally-included headers.
15093         * lib/stdlib.in.h (includes): Likewise.
15094         * lib/unistd.in.h (includes): Likewise.
15095
15096 2009-12-24  Bruno Haible  <bruno@clisp.org>
15097
15098         * tests/test-argv-iter.c: Include header file being tested immediately
15099         after config.h.
15100         * tests/test-base64.c: Likewise.
15101         * tests/test-flock.c: Likewise.
15102         * tests/test-fsync.c: Likewise.
15103         * tests/test-getdate.c: Likewise.
15104         * tests/test-getndelim2.c: Likewise.
15105         * tests/test-isfinite.c: Likewise.
15106         * tests/test-isinf.c: Likewise.
15107         * tests/test-strerror.c: Likewise.
15108         * tests/test-strsignal.c: Likewise.
15109
15110 2009-12-23  Eric Blake  <ebb9@byu.net>
15111
15112         unistd: work around cygwin bug
15113         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
15114         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
15115         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15116
15117 2009-12-23  Bruno Haible  <bruno@clisp.org>
15118
15119         localename: More tests.
15120         * tests/test-localename.c (SIZEOF): New macro.
15121         (categories): New variable.
15122         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
15123         test_locale_name_default): Add test w.r.t. thread locale.
15124         (test_locale_name_thread): New function.
15125         (main): Invoke it.
15126
15127         localename: Make aware of thread locale.
15128         * lib/localename.h (gl_locale_name_thread): New declaration.
15129         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
15130         behaviour with respect to thread locale.
15131         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
15132         <langinfo.h>, glthread/lock.h.
15133         (SIZE_BITS): New macro.
15134         (string_hash): New function.
15135         (struct hash_node): New type.
15136         (HASH_TABLE_SIZE): New macro.
15137         (struniq_hash_table, struniq_lock): New variables.
15138         (struniq): New function.
15139         (gl_locale_name_thread): New function.
15140         (gl_locale_name): Invoke it.
15141         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
15142         * modules/localename (Depends-on): Add lock.
15143         Reported by Mike Gran <spk121@yahoo.com>.
15144
15145 2009-12-23  Eric Blake  <ebb9@byu.net>
15146
15147         va-args: new module
15148         * modules/va-args: New file.
15149         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
15150         * MODULES.html.sh (Core language properties): Mention it.
15151
15152         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
15153         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
15154         named alias for __attribute__((__unused__)).
15155         * lib/chown.c: Update client.
15156         * lib/fchmodat.c: Likewise.
15157         * lib/fts.c: Likewise.
15158         * lib/getdate.y: Likewise.
15159         * lib/getgroups.c: Likewise.
15160         * lib/getopt.c: Likewise.
15161         * lib/getugroups.c: Likewise.
15162         * lib/mkdir.c: Likewise.
15163         * lib/mkfifo.c: Likewise.
15164         * lib/mkfifoat.c: Likewise.
15165         * lib/mknod.c: Likewise.
15166         * lib/mknodat.c: Likewise.
15167         * lib/readlink.c: Likewise.
15168         * lib/se-context.in.h: Likewise.
15169         * lib/se-selinux.in.h: Likewise.
15170         * lib/sockets.c: Likewise.
15171         * lib/symlink.c: Likewise.
15172         * lib/symlinkat.c: Likewise.
15173         * lib/unicodeio.c: Likewise.
15174         * lib/unistr.h: Likewise.
15175         * tests/test-areadlink.c: Likewise.
15176         * tests/test-areadlinkat.c: Likewise.
15177         * tests/test-filenamecat.c: Likewise.
15178         * tests/test-fseeko.c: Likewise.
15179         * tests/test-ftello.c: Likewise.
15180         * tests/test-getdate.c: Likewise.
15181         * tests/test-getgroups.c: Likewise.
15182         * tests/test-gethostname.c: Likewise.
15183         * tests/test-quotearg.c: Likewise.
15184         * tests/test-version-etc.c: Likewise.
15185         * tests/test-xalloc-die.c: Likewise.
15186         * tests/test-xfprintf-posix.c: Likewise.
15187         * tests/test-xprintf-posix.c: Likewise.
15188         * tests/test-xvasprintf.c: Likewise.
15189
15190         tests: avoid compiler warnings
15191         * tests/test-fcntl.c (main): Delete unused parameters.
15192         * tests/test-freopen-safer.c (main): Likewise.
15193         * tests/test-xalloc-die.c (main): Mark unused parameters.
15194         * tests/test-fseeko.c (main): Likewise.
15195         * tests/test-ftello.c (main): Likewise.
15196         * tests/test-nanosleep.c (main): Avoid declaration warning.
15197         * tests/test-sleep.c (main): Likewise.
15198         * tests/test-unsetenv.c (main): Silence warning about string
15199         literal.
15200         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15201
15202 2009-12-23  Bruno Haible  <bruno@clisp.org>
15203
15204         * tests/test-localename.c (test_locale_name): New function, extracted
15205         from main. Also test mixed situations.
15206         (test_locale_name_posix, test_locale_name_environ,
15207         test_locale_name_default): New functions.
15208         (main): Invoke them all.
15209         * modules/localename-tests (configure.ac): Test for newlocale.
15210
15211 2009-12-23  Bruno Haible  <bruno@clisp.org>
15212
15213         unistd: Ensure getcwd gets declared before being overridden.
15214         * lib/unistd.in.h: Conditionally include <io.h>.
15215
15216 2009-12-22  Bruno Haible  <bruno@clisp.org>
15217
15218         wchar: Diagnose broken combination of glibc and gcc versions and flags.
15219         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
15220         (gl_WCHAR_H): Invoke it.
15221         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
15222         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
15223         Reported by Karl Berry <karl@freefriends.org>.
15224
15225 2009-12-22  Eric Blake  <ebb9@byu.net>
15226
15227         math, unistd: avoid redundant includes
15228         * lib/math.in.h (isnan): No need to re-include <math.h>.
15229         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
15230
15231         getsubopt: work around cygwin bug
15232         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
15233         avoid conflicting with system getsubopt.
15234         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
15235         bug.
15236
15237         getopt: synchronize from glibc
15238         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
15239         parameter order.  Adjust all callers.
15240         (_getopt_internal_r, main): Adjust quoting in error messages.
15241         Drop considerations for outdated POSIX 1003.2 error message.
15242         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
15243         callers.
15244         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
15245
15246         test-getopt: test stderr behavior
15247         * modules/getopt-posix-tests (Depends-on): Add dup2.
15248         * tests/test-getopt.c (ASSERT): Avoid stderr.
15249         (main): Move stderr to a temporary file.
15250         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
15251         Instead, add parameter to inform caller if output occurred.
15252         (test_getopt): Adjust all existing tests to expect silence, and
15253         add new tests of leading ":".
15254         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15255         glibc shortcomings with leading "-:" or "+:" in optstring.
15256         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15257         Likewise.
15258         * doc/posix-functions/getopt.texi (getopt): Likewise.
15259
15260         test-getopt: enhance test
15261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
15262         supports optind=0.
15263         * tests/test-getopt.c (OPTIND_MIN): Move...
15264         * tests/test-getopt.h (OPTIND_MIN): ...here.
15265         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
15266         Require that optind=0 works, since modern BSD supports it in
15267         addition to optreset, and since coreutils expects it.
15268         (test_getopt_long_only): New test.
15269         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15270         glibc shortcomings with 'W;', and enforcement of optind=0.
15271         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15272         Likewise.
15273
15274 2009-12-21  Bruno Haible  <bruno@clisp.org>
15275
15276         localename: Improvements for MacOS X and Cygwin.
15277         * lib/localename.h (gl_locale_name_environ): New declaration.
15278         * lib/localename.c (gl_locale_name_environ): New function, extracted from
15279         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
15280         (gl_locale_name_posix): Invoke it.
15281         (gl_locale_name_default): Add comments. Use Windows native API also on
15282         Cygwin.
15283
15284 2009-12-21  Bruno Haible  <bruno@clisp.org>
15285
15286         Update list of Win32 locale ids.
15287         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
15288         (LANG_SAMI): Renamed from LANG_SAAMI.
15289         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
15290         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
15291         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
15292         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
15293         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
15294         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
15295         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
15296         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
15297         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
15298         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
15299         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
15300         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
15301         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
15302         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
15303         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
15304         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
15305         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
15306         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
15307         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
15308         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
15309         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
15310         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
15311         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
15312         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
15313         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
15314         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
15315         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
15316         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
15317         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
15318         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
15319         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
15320         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
15321         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
15322         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
15323         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
15324         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
15325         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
15326         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
15327         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
15328         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
15329         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
15330         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
15331         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
15332         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
15333         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
15334         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
15335         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
15336         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
15337         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
15338         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
15339         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
15340         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
15341         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
15342         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
15343         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
15344         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
15345         Add more languages and countries for Sami, Sorbian. Add more countries
15346         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
15347         for Pashto. Change country for Syriac, Tswana.
15348
15349 2009-12-21  Eric Blake  <ebb9@byu.net>
15350
15351         test-utimens: avoid spurious failure
15352         * tests/test-chown.h (nap): Factor...
15353         * tests/nap.h: ...into new file.
15354         * tests/test-lchown.h (nap): Avoid duplication.
15355         * tests/test-utimens-common.h (nap): Use shared implementation,
15356         necessary on file systems with 1-second resolution.
15357         * modules/chown-tests (Files): Include new file.
15358         * modules/fdutimensat-tests (Files): Likewise.
15359         * modules/futimens-tests (Files): Likewise.
15360         * modules/lchown-tests (Files): Likewise.
15361         * modules/openat-tests (Files): Likewise.
15362         * modules/utimens-tests (Files): Likewise.
15363         * modules/utimensat-tests (Files): Likewise.
15364
15365 2009-12-19  Eric Blake  <ebb9@byu.net>
15366
15367         futimens, utimensat: work around Linux bug
15368         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
15369         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15370         * lib/utimensat.c (rpl_utimensat): Work around it.
15371         * lib/futimens.c (rpl_futimens): Adjust comment.
15372
15373         utimens: work around Linux ctime bug
15374         * lib/utimens.c (detect_ctime_bug): New helper function.
15375         (update_timespec): Differentiate between workaround needed for
15376         this bug vs. what is needed for systems that lack utimensat.
15377         (fdutimens, lutimens): Work around bug.
15378
15379         utimens: check for ctime update
15380         * tests/test-utimens-common.h (check_ctime): Define.
15381         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
15382         * tests/test-futimens.h (test_futimens): Likewise.
15383         * tests/test-lutimens.h (test_lutimens): Likewise.
15384         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15385         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15386
15387 2009-12-19  Bruno Haible  <bruno@clisp.org>
15388
15389         dprintf-posix: Check against memory leak fixed on 2009-12-15.
15390         * tests/test-dprintf-posix2.sh: New file.
15391         * tests/test-dprintf-posix2.c: New file.
15392         * modules/dprintf-posix-tests (Files): Add them.
15393         (configure.ac): Check for getrlimit and setrlimit.
15394         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15395
15396 2009-12-19  Bruno Haible  <bruno@clisp.org>
15397
15398         fprintf-posix: Check against memory leak fixed on 2009-12-15.
15399         * tests/test-fprintf-posix3.sh: New file.
15400         * tests/test-fprintf-posix3.c: New file.
15401         * modules/fprintf-posix-tests (Files): Add them.
15402         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15403
15404 2009-12-19  Eric Blake  <ebb9@byu.net>
15405
15406         dirfd: fix prototype
15407         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
15408         * lib/dirfd.c (dirfd): Likewise.
15409
15410         canonicalize: reduce memory usage
15411         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
15412         allocation to size.
15413         Reported by Solar Designer <solar@openwall.com>.
15414
15415 2009-12-19  Bruno Haible  <bruno@clisp.org>
15416
15417         New module attribute 'Applicability'.
15418         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
15419         * gnulib-tool: New option --extract-applicability.
15420         (func_usage): Document it.
15421         (sed_extract_prog): Recognize it.
15422         (func_get_applicability): New function.
15423         (func_import): Generalize handling of 'link-warning' module.
15424         * modules/link-warning (Applicability): New section.
15425         * modules/arg-nonnull (Applicability): New section.
15426         Repoted by Simon Josefsson <simon@josefsson.org>.
15427
15428 2009-12-19  Bruno Haible  <bruno@clisp.org>
15429
15430         fflush: tweak
15431         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
15432         * lib/fseeko.c (rpl_fseeko): Likewise.
15433
15434 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
15435
15436         * lib/gl_list.h: Fix typo in comment.
15437
15438 2009-12-16  Eric Blake  <ebb9@byu.net>
15439
15440         fcntl: use to simplify other modules
15441         * modules/cloexec (Depends-on): Add fcntl.
15442         * modules/fchdir (Depends-on): Likewise.
15443         * modules/fd-safer-flag (Depends-on): Likewise.
15444         * modules/unistd-safer (Depends-on): Likewise.
15445         * modules/dup3 (configure.ac): Set module indicator.
15446         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
15447         missing.
15448         * lib/fchdir.c (_gl_register_dup): Fix comment.
15449         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
15450         * lib/dup-safer.c (dup_safer): Likewise.
15451         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
15452         * lib/dup3.c (dup3): Likewise.
15453         * tests/test-fchdir.c (main): Enhance test.
15454         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
15455
15456         fcntl: port portions of fcntl to mingw
15457         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
15458         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
15459         replacement for mingw.
15460         * modules/fcntl (Description): Update.
15461         (Depends-on): Add dup2.
15462         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
15463         * modules/fcntl-h (Makefile.am): Substitute it.
15464         * lib/fcntl.in.h (fcntl): Update declaration.
15465         (F_DUPFD, F_GETFD): New macros, when needed.
15466         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15467         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
15468         * tests/test-fcntl.c (check_flags, main): Enhance test for items
15469         we now guarantee.
15470
15471         fcntl: work around cygwin bug in F_DUPFD
15472         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
15473         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
15474         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
15475         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
15476         * doc/posix-functions/fcntl.texi (fcntl): Document it.
15477
15478         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
15479         * modules/fcntl (Files): List new files.
15480         (configure.ac): Run a test.
15481         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
15482         * lib/fcntl.c (rpl_fcntl): Likewise.
15483         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
15484         (gl_FCNTL_H): Always replace fcntl.h.
15485         * modules/fcntl-h (Makefile.am): Substitute witnesses.
15486         * lib/fcntl.in.h (fcntl): Declare replacement.
15487         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
15488         needed, plus a witness.
15489         * doc/posix-functions/fcntl.texi (fcntl): Document this.
15490         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15491         * tests/test-fcntl.c: New file.
15492         * modules/fcntl-tests: Likewise.
15493
15494         binary-io: avoid potential compilation warning
15495         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
15496         directives.
15497
15498         fflush: avoid compilation error on NetBSD
15499         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
15500         between off_t and fpos_t, since the latter is sometimes a struct.
15501         * lib/fseeko.c (rpl_fseeko): Likewise.
15502         Reported by Alexander Nasonov <alnsn@yandex.ru>.
15503
15504 2009-12-15  Eric Blake  <ebb9@byu.net>
15505
15506         fcntl-h, stdio, sys_ioctl: fix declarations
15507         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
15508         function must not take arguments.
15509         * lib/sys_ioctl.in.h (ioctl): Likewise.
15510         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
15511         (open): Add a link warning.
15512
15513 2009-12-15  Jim Meyering  <meyering@redhat.com>
15514
15515         areadlink, areadlink-with-size: relax license to LGPLv2+
15516         * modules/areadlink (License): Relax to LGPLv2+.
15517         * modules/areadlink-with-size (License): Likewise.
15518
15519 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
15520             Bruno Haible  <bruno@clisp.org>
15521
15522         *printf: Fix memory leak.
15523         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
15524         * lib/vfprintf.c (vfprintf): Likewise.
15525         * lib/dprintf.c (dprintf): Likewise.
15526         * lib/vdprintf.c (vdprintf): Likewise.
15527
15528 2009-12-14  Eric Blake  <ebb9@byu.net>
15529
15530         accept4: adjust module dependencies
15531         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
15532
15533         utimens: one more try at avoiding compiler warning
15534         * lib/utimens.c (lutimens): Lower scope of result.
15535
15536 2009-12-13  Bruno Haible  <bruno@clisp.org>
15537
15538         Move the malloc checking from module 'list' to new module 'xlist'.
15539         * modules/xlist: New file.
15540         * lib/gl_xlist.h: New file.
15541         * lib/gl_xlist.c: New file.
15542         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
15543         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
15544         gl_list_add_last, gl_list_add_before, gl_list_add_after,
15545         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
15546         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
15547         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
15548         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
15549         gl_sortedlist_nx_add): New declarations.
15550         (struct gl_list_implementation): Rename and change methods accordingly.
15551         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
15552         (gl_list_nx_create): Renamed from gl_list_create.
15553         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15554         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15555         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15556         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15557         (gl_list_nx_add_before): Renamed from gl_list_add_before.
15558         (gl_list_nx_add_after): Renamed from gl_list_add_after.
15559         (gl_list_nx_add_at): Renamed from gl_list_add_at.
15560         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
15561         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
15562         gl_list_create_empty.
15563         (gl_list_nx_create): Renamed from gl_list_create.
15564         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15565         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15566         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15567         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15568         (gl_list_nx_add_before): Renamed from gl_list_add_before.
15569         (gl_list_nx_add_after): Renamed from gl_list_add_after.
15570         (gl_list_nx_add_at): Renamed from gl_list_add_at.
15571         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
15572         * lib/gl_array_list.c: Don't include xalloc.h.
15573         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
15574         NULL upon out-of-memory.
15575         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
15576         out-of-memory.
15577         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
15578         Change return type to 'int'.
15579         (gl_array_nx_set_at): Renamed from gl_array_set_at.
15580         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
15581         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
15582         upon out-of-memory.
15583         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
15584         upon out-of-memory.
15585         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
15586         upon out-of-memory.
15587         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
15588         upon out-of-memory.
15589         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
15590         out-of-memory.
15591         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
15592         Update.
15593         (gl_array_list_implementation): Update.
15594         * lib/gl_carray_list.c: Don't include xalloc.h.
15595         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
15596         Return NULL upon out-of-memory.
15597         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
15598         out-of-memory.
15599         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
15600         Change return type to 'int'.
15601         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
15602         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
15603         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
15604         upon out-of-memory.
15605         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
15606         upon out-of-memory.
15607         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
15608         out-of-memory.
15609         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
15610         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
15611         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
15612         Update.
15613         (gl_carray_list_implementation): Update.
15614         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
15615         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
15616         gl_linked_create_empty. Return NULL upon out-of-memory.
15617         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
15618         out-of-memory.
15619         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
15620         Change return type to 'int'. Return -1 upon out-of-memory.
15621         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
15622         out-of-memory.
15623         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
15624         upon out-of-memory.
15625         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
15626         upon out-of-memory.
15627         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
15628         NULL upon out-of-memory.
15629         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
15630         upon out-of-memory.
15631         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
15632         out-of-memory.
15633         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
15634         Update.
15635         * lib/gl_linked_list.c: Don't include xalloc.h.
15636         (gl_linked_list_implementation): Update.
15637         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
15638         (add_to_bucket): Change return type to 'int'.
15639         (gl_linkedhash_list_implementation): Update.
15640         * lib/gl_anytree_list1.h (free_subtree): New function.
15641         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
15642         gl_tree_create_empty. Return NULL upon out-of-memory.
15643         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
15644         Change return type to 'int'. Return -1 upon out-of-memory.
15645         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
15646         out-of-memory.
15647         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
15648         (gl_tree_remove_node): New function, moved here from
15649         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
15650         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
15651         Update.
15652         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
15653         malloc, not xmalloc. Return NULL upon out-of-memory.
15654         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
15655         out-of-memory.
15656         (gl_tree_remove_node_from_tree): New function, extracted from
15657         gl_tree_remove_node.
15658         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
15659         upon out-of-memory.
15660         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
15661         out-of-memory.
15662         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
15663         upon out-of-memory.
15664         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
15665         upon out-of-memory.
15666         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
15667         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
15668         not xmalloc. Return NULL upon out-of-memory.
15669         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
15670         out-of-memory.
15671         (gl_tree_remove_node_from_tree): New function, extracted from
15672         gl_tree_remove_node.
15673         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
15674         upon out-of-memory.
15675         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
15676         out-of-memory.
15677         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
15678         upon out-of-memory.
15679         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
15680         upon out-of-memory.
15681         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
15682         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
15683         gl_anytree_list1.h before gl_anyavltree_list2.h.
15684         (gl_avltree_list_implementation): Update.
15685         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
15686         gl_anytree_list1.h before gl_anyavltree_list2.h.
15687         (gl_rbtree_list_implementation): Update.
15688         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
15689         Change return type to 'int'. Return -1 upon out-of-memory. Use
15690         __builtin_expect.
15691         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
15692         (gl_avltreehash_list_implementation): Update.
15693         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
15694         (gl_rbtreehash_list_implementation): Update.
15695         * modules/array-list (Depends-on): Remove xalloc.
15696         * modules/carray-list (Depends-on): Likewise.
15697         * modules/linked-list (Depends-on): Likewise.
15698         * modules/linkedhash-list (Depends-on): Likewise.
15699         * modules/avltree-list (Depends-on): Likewise.
15700         * modules/rbtree-list (Depends-on): Likewise.
15701         * modules/avltreehash-list (Depends-on): Likewise.
15702         * modules/rbtreehash-list (Depends-on): Likewise.
15703
15704         * modules/xsublist: New file.
15705         * lib/gl_xsublist.h: New file.
15706         * lib/gl_xsublist.c: New file.
15707         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
15708         (gl_sublist_nx_create): New declaration.
15709         * lib/gl_sublist.c: Don't include xalloc.h.
15710         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
15711         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
15712         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
15713         Change return type to 'int'. Return -1 upon out-of-memory.
15714         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
15715         upon out-of-memory.
15716         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
15717         NULL upon out-of-memory.
15718         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
15719         upon out-of-memory.
15720         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
15721         NULL upon out-of-memory.
15722         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
15723         NULL upon out-of-memory.
15724         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
15725         upon out-of-memory.
15726         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
15727         (gl_sublist_list_implementation): Update.
15728         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
15729         upon out-of-memory.
15730         * modules/sublist (Depends-on): Remove xalloc.
15731
15732         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
15733         * tests/test-carray_list.c: Likewise.
15734         * tests/test-linked_list.c: Likewise.
15735         * tests/test-linkedhash_list.c: Likewise.
15736         * tests/test-avltree_list.c: Likewise.
15737         * tests/test-rbtree_list.c: Likewise.
15738         * tests/test-avltreehash_list.c: Likewise.
15739         * tests/test-rbtreehash_list.c: Likewise.
15740         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
15741         * modules/carray-list-tests (Makefile.am): Likewise.
15742         * modules/linked-list-tests (Makefile.am): Likewise.
15743         * modules/linkedhash-list-tests (Makefile.am): Likewise.
15744         * modules/avltree-list-tests (Makefile.am): Likewise.
15745         * modules/rbtree-list-tests (Makefile.am): Likewise.
15746         * modules/avltreehash-list-tests (Makefile.am): Likewise.
15747         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15748
15749         * NEWS: Mention the changes.
15750
15751         * lib/clean-temp.c: Include gl_xlist.h.
15752         * modules/clean-temp (Depends-on): Add xlist.
15753
15754         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
15755         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
15756
15757         * tests/test-array_oset.c: Include gl_xlist.h.
15758         * modules/array-oset-tests (Depends-on): Add xlist.
15759
15760         Reported by José E. Marchesi <jemarch@gnu.org>.
15761
15762 2009-12-13  Bruno Haible  <bruno@clisp.org>
15763
15764         Move the malloc checking from module 'oset' to new module 'xoset'.
15765         * modules/xoset: New file.
15766         * lib/gl_xoset.h: New file.
15767         * lib/gl_xoset.c: New file.
15768         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
15769         declarations.
15770         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
15771         (struct gl_oset_implementation): Rename and change methods accordingly.
15772         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
15773         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
15774         'int'. Mark as __warn_unused_result__.
15775         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
15776         gl_oset_create_empty.
15777         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
15778         'int'.
15779         * lib/gl_array_oset.c: Don't include xalloc.h.
15780         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
15781         malloc, not xmalloc.
15782         (grow): Change return type to 'int'. Don't call xalloc_die.
15783         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
15784         to 'int'.
15785         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
15786         'int'.
15787         (gl_array_oset_implementation): Update.
15788         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
15789         gl_tree_create_empty.
15790         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
15791         'int'.
15792         * lib/gl_avltree_oset.c: Don't include xalloc.h.
15793         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
15794         xmalloc.
15795         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
15796         not xmalloc.
15797         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
15798         xmalloc.
15799         (gl_avltree_oset_implementation): Update.
15800         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
15801         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
15802         xmalloc.
15803         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
15804         not xmalloc.
15805         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
15806         xmalloc.
15807         (gl_rbtree_oset_implementation): Update.
15808         * modules/array-oset (Depends-on): Remove xalloc.
15809         * modules/avltree-oset (Depends-on): Likewise.
15810         * modules/rbtree-oset (Depends-on): Likewise.
15811         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
15812         * tests/test-avltree_oset.c: Likewise.
15813         * tests/test-rbtree_oset.c: Likewise.
15814         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
15815         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
15816         * modules/rbtree-oset-tests (Makefile.am): Likewise.
15817         * NEWS: Mention the change.
15818
15819 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
15820
15821         maint.mk: allow a project to override release-prep commands
15822         * top/maint.mk (alpha, beta, stable): Move release-preparatory
15823         commands into a new rule.
15824         (release-prep): New rule.
15825         (release-prep-hook): New overridable variable.
15826
15827 2009-12-13  Bruno Haible  <bruno@clisp.org>
15828
15829         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
15830
15831 2009-12-13  Jim Meyering  <meyering@redhat.com>
15832
15833         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
15834         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
15835
15836 2009-12-12  Bruno Haible  <bruno@clisp.org>
15837
15838         duplocale: Tweak.
15839         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
15840
15841 2009-12-12  Karl Berry  <karl@gnu.org>
15842
15843         * config/srclist.txt (strtoll.c): tab changes, no more sync.
15844
15845 2009-12-12  Bruno Haible  <bruno@clisp.org>
15846
15847         * m4/po.m4: Undo incorrect untabification.
15848
15849 2009-12-12  Bruno Haible  <bruno@clisp.org>
15850
15851         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
15852         * modules/c-strtod (Depends-on): Add locale.
15853         * modules/c-strtold (Depends-on): Likewise.
15854
15855 2009-12-12  Bruno Haible  <bruno@clisp.org>
15856
15857         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
15858
15859 2009-12-11  Eric Blake  <ebb9@byu.net>
15860
15861         setenv: relax requirement in light of POSIX ruling
15862         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
15863         not NULL.
15864         * tests/test-setenv.c (main): Relax test.
15865         * tests/test-unsetenv.c (main): Likewise.
15866         * doc/posix-functions/setenv.texi (setenv): Document this.
15867         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15868
15869 2009-12-11  Bruno Haible  <bruno@clisp.org>
15870
15871         New module 'fd-safer-flag'.
15872         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
15873         * lib/dup-safer.c (dup_safer_flag): Remove function.
15874         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
15875         * lib/fd-safer.c (fd_safer_flag): Remove function.
15876         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
15877         * modules/cloexec (configure.ac): Drop indicator macro.
15878         * modules/fd-safer-flag: New file.
15879         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
15880         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
15881         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
15882
15883 2009-12-11  Bruno Haible  <bruno@clisp.org>
15884
15885         Tests for module 'nl_langinfo'.
15886         * modules/nl_langinfo-tests: New file.
15887         * tests/test-nl_langinfo.sh: New file.
15888         * tests/test-nl_langinfo.c: New file.
15889
15890         New module 'nl_langinfo'.
15891         * lib/nl_langinfo.c: New file.
15892         * m4/nl_langinfo.m4: New file.
15893         * modules/nl_langinfo: New file.
15894         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
15895
15896 2009-12-11  Bruno Haible  <bruno@clisp.org>
15897
15898         Tests for module 'langinfo'.
15899         * modules/langinfo-tests: New file.
15900         * tests/test-langinfo.c: New file.
15901
15902         New module 'langinfo'.
15903         * lib/langinfo.in.h: New file.
15904         * m4/langinfo_h.m4: New file.
15905         * modules/langinfo: New file.
15906         * doc/posix-headers/langinfo.texi: Mention the new module.
15907
15908 2009-12-11  Bruno Haible  <bruno@clisp.org>
15909
15910         * lib/config.charset: Untabify.
15911
15912 2009-12-11  Bruno Haible  <bruno@clisp.org>
15913
15914         * modules/unistd-safer (configure.ac): Drop indicator macro.
15915
15916 2009-12-11  Bruno Haible  <bruno@clisp.org>
15917
15918         Move pipe2-safer code to its own file.
15919         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
15920         * lib/pipe-safer.c (pipe2_safer): Remove function.
15921         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
15922         (Makefile.am): Add it to lib_SOURCES.
15923
15924 2009-12-10  Bruno Haible  <bruno@clisp.org>
15925
15926         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
15927
15928 2009-12-10  Bruno Haible  <bruno@clisp.org>
15929
15930         Declare which arguments expect non-NULL values, for GCC and clang.
15931         * build-aux/arg-nonnull.h: New file.
15932         * modules/arg-nonnull: New file.
15933         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
15934         (inet_ntop, inet_pton): Use it.
15935         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
15936         (closedir, dirfd, opendir, scandir, alphasort): Use it.
15937         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
15938         (open, openat): Use it.
15939         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
15940         (fnmatch): Use it.
15941         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
15942         (getopt, getopt_long, getopt_long_only): Use it.
15943         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
15944         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
15945         Use it.
15946         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
15947         (iconv_open): Use it.
15948         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
15949         (strtoimax, strtoumax): Use it.
15950         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
15951         (duplocale): Use it.
15952         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
15953         (frexp, frexpl): Use it.
15954         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
15955         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
15956         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
15957         (tsearch, tfind, tdelete, twalk): Use it.
15958         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
15959         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15960         sigpending): Use it.
15961         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
15962         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15963         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15964         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15965         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15966         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15967         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15968         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15969         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15970         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15971         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15972         Use it.
15973         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
15974         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
15975         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
15976         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
15977         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
15978         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
15979         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
15980         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
15981         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
15982         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
15983         strtoull, unsetenv): Use it.
15984         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
15985         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15986         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15987         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
15988         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
15989         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
15990         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
15991         (strcasecmp, strncasecmp): Use it.
15992         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
15993         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
15994         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
15995         rpl_setsockopt): Use it.
15996         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
15997         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
15998         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
15999         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16000         (gettimeofday): Use it.
16001         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16002         (times): Use it.
16003         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16004         (uname): Use it.
16005         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16006         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16007         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16008         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16009         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16010         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16011         unlinkat, write): Use it.
16012         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16013         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16014         * lib/argv-iter.h: Include arg-nonnull.h.
16015         (_ATTRIBUTE_NONNULL_): Remove macro.
16016         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16017         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16018         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16019         optimization.
16020         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16021         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16022         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16023         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16024         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16025         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16026         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16027         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16028         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16029         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16030         * modules/dirent (Depends-on): Add arg-nonnull.
16031         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16032         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16033         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16034         * modules/fnmatch (Depends-on): Add arg-nonnull.
16035         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16036         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16037         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16038         * modules/glob (Depends-on): Add arg-nonnull.
16039         (Makefile.am): Insert arg-nonnull.h into glob.h.
16040         * modules/iconv_open (Depends-on): Add arg-nonnull.
16041         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16042         * modules/inttypes (Depends-on): Add arg-nonnull.
16043         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16044         * modules/locale (Depends-on): Add arg-nonnull.
16045         (Makefile.am): Insert arg-nonnull.h into locale.h.
16046         * modules/math (Depends-on): Add arg-nonnull.
16047         (Makefile.am): Insert arg-nonnull.h into math.h.
16048         * modules/netdb (Depends-on): Add arg-nonnull.
16049         (Makefile.am): Insert arg-nonnull.h into netdb.h.
16050         * modules/search (Depends-on): Add arg-nonnull.
16051         (Makefile.am): Insert arg-nonnull.h into search.h.
16052         * modules/signal (Depends-on): Add arg-nonnull.
16053         (Makefile.am): Insert arg-nonnull.h into signal.h.
16054         * modules/spawn (Depends-on): Add arg-nonnull.
16055         (Makefile.am): Insert arg-nonnull.h into spawn.h.
16056         * modules/stdio (Depends-on): Add arg-nonnull.
16057         (Makefile.am): Insert arg-nonnull.h into stdio.h.
16058         * modules/stdlib (Depends-on): Add arg-nonnull.
16059         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
16060         * modules/string (Depends-on): Add arg-nonnull.
16061         (Makefile.am): Insert arg-nonnull.h into string.h.
16062         * modules/strings (Depends-on): Add arg-nonnull.
16063         (Makefile.am): Insert arg-nonnull.h into strings.h.
16064         * modules/sys_socket (Depends-on): Add arg-nonnull.
16065         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
16066         * modules/sys_stat (Depends-on): Add arg-nonnull.
16067         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
16068         * modules/sys_time (Depends-on): Add arg-nonnull.
16069         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
16070         * modules/sys_times (Depends-on): Add arg-nonnull.
16071         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
16072         * modules/sys_utsname (Depends-on): Add arg-nonnull.
16073         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
16074         * modules/time (Depends-on): Add arg-nonnull.
16075         (Makefile.am): Insert arg-nonnull.h into time.h.
16076         * modules/unistd (Depends-on): Add arg-nonnull.
16077         (Makefile.am): Insert arg-nonnull.h into unistd.h.
16078         * modules/wchar (Depends-on): Add arg-nonnull.
16079         (Makefile.am): Insert arg-nonnull.h into wchar.h.
16080         * modules/argv-iter (Depends-on): Add arg-nonnull.
16081         * tests/test-canonicalize.c (null_ptr): New function.
16082         (main): Use it.
16083         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
16084         (main): Use it.
16085         * tests/test-memmem.c (null_ptr): New function.
16086         (main): Use it.
16087         Reported by Jim Meyering.
16088
16089 2009-12-10  Bruno Haible  <bruno@clisp.org>
16090
16091         Use spaces for indentation, not tabs.
16092         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16093         * m4/*.m4: Untabify.
16094         * build-aux/*.h: Untabify.
16095         * tests/**/*.[hc]: Untabify.
16096         * README: New section "Indent with spaces, not TABs", based on
16097         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
16098         * NEWS: Mention the change.
16099
16100 2009-12-10  Bruno Haible  <bruno@clisp.org>
16101
16102         pty test: Fix link error.
16103         * modules/pty-tests (Makefile.am): Add the default LDADD value to
16104         test_pty_LDADD.
16105
16106 2009-12-07  Simon Josefsson  <simon@josefsson.org>
16107
16108         * modules/pty: New file.
16109         * modules/pty-tests: New file.
16110         * m4/pty.m4: New file.
16111         * tests/test-pty.c: New file.
16112         * doc/glibc-headers/pty.texi: Modified.
16113         * doc/glibc-functions/forkpty.texi: Modified.
16114         * doc/glibc-functions/openpty.texi: Modified.
16115
16116 2009-12-10  Bruno Haible  <bruno@clisp.org>
16117
16118         Avoid syntax error in C++ mode.
16119         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
16120
16121 2009-12-10  Bruno Haible  <bruno@clisp.org>
16122
16123         Use sed with option -e.
16124         * gnulib-tool (func_version, func_emit_copyright_notice,
16125         func_emit_initmacro_end, func_import, func_create_testdir): Pass
16126         option -e to sed.
16127         * modules/link-warning (Makefile.am): Likewise.
16128
16129 2009-12-10  Jim Meyering  <meyering@redhat.com>
16130
16131         mgetgroups: do not write bytes beyond end of malloc'd buffer
16132         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
16133         username, we call getgroups with a one-element-shorter buffer,
16134         but still told it the length was original, max_n_groups.
16135
16136 2009-12-09  Eric Blake  <ebb9@byu.net>
16137
16138         cloexec: relax license
16139         * modules/cloexec (Maintainer): Add myself.
16140         (License): Use LGPL, not GPL.
16141
16142         link-warning: optimize generation
16143         * modules/link-warning (Makefile.am): Reduce process usage.
16144
16145 2009-12-09  Bruno Haible  <bruno@clisp.org>
16146
16147         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
16148         workaround was added on 2009-11-17.
16149
16150 2009-12-09  Jim Meyering  <meyering@redhat.com>
16151             Bruno Haible  <bruno@clisp.org>
16152
16153         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
16154         * modules/link-warning (Makefile.am): Make the comment-removing sed
16155         command more robust in the face of bootstrap-prepended comment lines.
16156
16157 2009-12-09  Bruno Haible  <bruno@clisp.org>
16158
16159         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
16160         most one group.
16161
16162 2009-12-09  Simon Josefsson <simon@josefsson.org>
16163             Bruno Haible  <bruno@clisp.org>
16164
16165         * build-aux/link-warning.h: Add copyright notice.
16166         * modules/link-warning (Makefile.am): Generate link-warning.h from
16167         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
16168         * NEWS: Mention change in link-warning module.
16169         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
16170         * modules/dirent (Makefile.am): Add dependency to dirent.h.
16171         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
16172         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
16173         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
16174         * modules/math (Makefile.am): Add dependency to math.h.
16175         * modules/search (Makefile.am): Add dependency to search.h.
16176         * modules/signal (Makefile.am): Add dependency to signal.h.
16177         * modules/spawn (Makefile.am): Add dependency to spawn.h.
16178         * modules/stdio (Makefile.am): Add dependency to stdio.h.
16179         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
16180         * modules/string (Makefile.am): Add dependency to string.h.
16181         * modules/strings (Makefile.am): Add dependency to strings.h.
16182         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
16183         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
16184         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
16185         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
16186         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
16187         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
16188         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
16189         * modules/unistd (Makefile.am): Add dependency to unistd.h.
16190         * modules/wchar (Makefile.am): Add dependency to wchar.h.
16191
16192 2009-12-09  Bruno Haible  <bruno@clisp.org>
16193
16194         fchdir: Optimize away rpl_fstat when possible.
16195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
16196         REPLACE_OPEN_DIRECTORY.
16197         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
16198
16199 2009-12-09  Bruno Haible  <bruno@clisp.org>
16200
16201         * lib/fchdir.c: Update comment.
16202
16203 2009-12-09  Bruno Haible  <bruno@clisp.org>
16204
16205         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
16206
16207 2009-12-08  Eric Blake  <ebb9@byu.net>
16208
16209         fchdir: avoid memory leak on re-registration.
16210         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
16211
16212 2009-12-08  Jim Meyering  <meyering@redhat.com>
16213
16214         init.sh: avoid Solaris 10 /bin/sh portability problem
16215         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
16216         sourced script:
16217           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
16218           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
16219           bar
16220         tests/init.sh relied on that, accepting a --set-path=DIR argument,
16221         and two tests used that idiom.
16222         * tests/init.sh: Update suggested usage comments.
16223         (path_prepend_): New function, to be used in place
16224         of the --src-path=DIR option.
16225         (setup_): Move PATH-prepending code into path_prepend_.
16226         * tests/test-pread.sh: Adapt to new usage.
16227         * tests/test-xalloc-die.sh: Likewise.
16228
16229 2009-12-08  Simon Josefsson  <simon@josefsson.org>
16230
16231         * doc/gnulib.texi (Glibc pty.h): Add.
16232         * doc/glibc-functions/forkpty.texi: Add.
16233         * doc/glibc-functions/openpty.texi: Add.
16234         Suggested by Bruno Haible.
16235
16236 2009-12-08  Eric Blake  <ebb9@byu.net>
16237
16238         fchdir: fix logic bugs
16239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
16240         * tests/test-fchdir.c (main): Enhance test.
16241         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
16242         is in use.
16243
16244         dup2: fix logic bugs
16245         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
16246         REPLACE_DUP2 to decide when rpl_dup2 is needed.
16247         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
16248         exists.
16249         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
16250
16251 2009-12-07  Eric Blake  <ebb9@byu.net>
16252
16253         unlink: fix m4 detection
16254         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
16255
16256         unistd-safer: add unit test
16257         * modules/unistd-safer-tests: New file.
16258         * tests/test-dup-safer.c: Likewise.
16259         * tests/test-cloexec.c (setmode): Avoid compiler warning.
16260         * tests/test-dup2.c (setmode): Likewise.
16261         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
16262
16263         cloexec: preserve text vs. binary across dup_cloexec
16264         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
16265         mode.
16266         * modules/dup2-tests (Depends-on): Add binary-io.
16267         * modules/cloexec-tests (Depends-on): Likewise.
16268         * tests/test-dup2.c (setmode, is_mode): New helpers.
16269         (main): Add tests that translation mode is preserved.
16270         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
16271         Reported by Bruno Haible.
16272
16273         mgetgroups: reduce duplicate listings
16274         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
16275         resulting array.
16276         * tests/test-chown.h (test_chown): Simplify client.
16277         * tests/test-lchown.h (test_lchown): Likewise.
16278
16279 2009-12-06  Bruno Haible  <bruno@clisp.org>
16280
16281         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
16282         value.
16283
16284 2009-12-06  Bruno Haible  <bruno@clisp.org>
16285
16286         * lib/progname.c: Include stdio.h, stdlib.h.
16287         (set_program_name): Reject a NULL argument.
16288
16289 2009-12-05  Eric Blake  <ebb9@byu.net>
16290
16291         pipe2-safer: new module
16292         * modules/pipe2-safer: New file.
16293         * lib/unistd-safer.h (pipe2_safer): New prototype.
16294         * lib/unistd--.h (pipe2): New wrapper.
16295         * lib/pipe-safer.c (pipe2_safer): New function.
16296         * modules/pipe (Depends-on): Add pipe2-safer.
16297         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
16298
16299         stdlib-safer: preserve cloexec flag for mkostemp[s]
16300         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
16301         fd_safer_flag.
16302
16303         unistd-safer: allow preservation of cloexec status via flag
16304         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
16305         prototypes.
16306         * lib/dup-safer.c (dup_safer_flag): New function.
16307         * lib/fd-safer.c (fd_safer_flag): Likewise.
16308         * modules/cloexec (configure.ac): Set witness.
16309
16310         test-dup2: enhance test
16311         * modules/dup2-tests (Depends-on): Add cloexec.
16312         * tests/test-dup2.c (main): Enhance test.
16313
16314         cloexec: add dup_cloexec
16315         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
16316         header and comments.
16317         * lib/cloexec.c (set_cloexec_flag): Add comments.
16318         (dup_cloexec): New function, with mingw implementation borrowed
16319         from...
16320         * lib/w32spawn.h (dup_noinherit): ...here.
16321         * modules/execute (Depends-on): Add cloexec.
16322         * modules/pipe (Depends-on): Likewise.
16323         * modules/cloexec (Depends-on): Add dup2.
16324         * modules/cloexec-tests (Files): New file.
16325         * tests/test-cloexec.c: Likewise.
16326
16327         test-xalloc-die: fix test for mingw
16328         * modules/xalloc-die-tests (Files): Add tests/init.sh.
16329         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
16330         directory and .exe suffix off argv[0] output.
16331
16332         test-fseeko: fix test for mingw
16333         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
16334         than undefining fseek, so test will pass on mingw.
16335
16336 2009-12-05  Bruno Haible  <bruno@clisp.org>
16337
16338         * lib/progname.h (set_program_name): Clarify specification.
16339         * lib/progname.c (set_program_name): Likewise.
16340         Reported by Jim Meyering.
16341
16342 2009-12-05  Jim Meyering  <meyering@redhat.com>
16343
16344         maint.mk: backslash-escape parens in default regexp
16345         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
16346         backslash-escape the literal parentheses.
16347
16348         maint.mk: news-date-check: use grep -E
16349         * top/maint.mk (today): Define a Make variable, not a...
16350         (news-date-check): ...shell variable.
16351         (news-date-regexp): Use the Make variable.
16352         Use grep's -E option.  Change the failing diagnostic to mention
16353         the variable, $(news-date-regexp).
16354
16355 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
16356
16357         maintainer-makefile: allow customization of NEWS entry format
16358         * top/maint.mk (news-date-regexp): New overridable variable.
16359         (news-date-check): Use it.
16360
16361 2009-12-04  Eric Blake  <ebb9@byu.net>
16362
16363         mgetgroups: add xgetgroups, and avoid ENOSYS failures
16364         * lib/mgetgroups.h (xgetgroups): New prototype.
16365         * lib/mgetgroups.c (xgetgroups): New wrapper.
16366         (mgetgroups): Handle ENOSYS.
16367         * modules/mgetgroups (Depends-on): Add realloc.
16368         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
16369
16370         mgetgroups: avoid argument promotion issues with -1
16371         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
16372         for invalid gid_t.
16373         * tests/test-chown.h (getegid, test_chown): Likewise.
16374         * tests/test-lchown.h (getegid, test_lchown): Likewise.
16375
16376 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
16377
16378         exclude: Fix header file problems.
16379         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
16380
16381 2009-12-01  Jim Meyering  <meyering@redhat.com>
16382
16383         fts: fts_open: do not let an empty string cause immediate failure
16384         This is required in support of GNU rm, for which the command
16385         "rm A '' B" must process and remove both A and B, in spite of
16386         the empty string argument.
16387         * lib/fts.c (fts_open): Do not let the presence of an empty string
16388         cause fts_open to fail immediately.  Most fts-using tools must be
16389         able to process all arguments, in order, and can be expected to
16390         diagnose such arguments themselves.
16391
16392 2009-11-30  Eric Blake  <ebb9@byu.net>
16393
16394         utimens: fix compilation error
16395         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
16396         Declare variable at right scope.
16397
16398 2009-11-29  Jim Meyering  <meyering@redhat.com>
16399
16400         bootstrap: handle perl-5.11's changed --version output
16401         * build-aux/bootstrap (get_version): Handle perl separately,
16402         since perl-5.11's --version output is different.
16403
16404 2009-11-28  Jim Meyering  <meyering@redhat.com>
16405
16406         userspec: depend on the inttostr module, too
16407         * modules/userspec (Depends-on): Add inttostr.
16408
16409         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
16410         * lib/userspec.c (parse_with_separator): Do not accept a user ID
16411         number of MAXUID when it evaluates to (uid_t) -1.
16412         Likewise for group ID.  Reported by Matt McCutchen in
16413         <http://savannah.gnu.org/bugs/?28113>
16414
16415         userspec: reformat to use spaces, not TABs
16416         * lib/userspec.c: Expand TABs to spaces.
16417         Add Emacs' "indent-tabs-mode: nil" hint.
16418
16419 2009-11-27  Eric Blake  <ebb9@byu.net>
16420
16421         getopt-gnu: flush out another BSD bug
16422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
16423         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
16424         flush out BSD bug.
16425         * tests/test-getopt.h (test_getopt): End lists with NULL.
16426         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16427         (test_getopt_long_posix): Enhance test.
16428         * modules/getopt-posix-tests (Depends-on): Add stdbool.
16429         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
16430         getopt-gnu.
16431         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16432         Likewise.
16433
16434 2009-11-27  Simon Josefsson  <simon@josefsson.org>
16435
16436         * modules/idpriv-droptemp-tests (Notice): Fix text.
16437
16438 2009-11-27  Jim Meyering  <meyering@redhat.com>
16439
16440         test-xalloc-die: avoid spurious failure due to libtool argv difference
16441         In a libtool-enabled project, this test would fail due to a difference
16442         in the emitted program name, e.g.,
16443         -test-xalloc-die: memory exhausted
16444         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
16445         Use program to avoid that.
16446         * modules/xalloc-die-tests (Depends-on): Add progname.
16447         * tests/test-xalloc-die.c: Include progname.h".
16448         (program_name): Remove decl.
16449         (main): Call set_program_name.
16450         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
16451
16452 2009-11-26  Richard Jones  <rjones@redhat.com>
16453
16454         w32sock: leave win32 error in place.
16455         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
16456
16457 2009-11-26  Eric Blake  <ebb9@byu.net>
16458
16459         init.sh: suggest to use skip_ and fail_ functions in comments
16460         * tests/init.sh: Add a sentence.
16461
16462 2009-11-25  Bruno Haible  <bruno@clisp.org>
16463
16464         init.sh: add documentation in comments
16465         * tests/init.sh: Add some developer and user documentation.
16466
16467 2009-11-26  Jim Meyering  <meyering@redhat.com>
16468
16469         init.sh: accommodate even those who specify bogus srcdir manually
16470         * tests/init.sh: Normally, srcdir is guaranteed by automake and
16471         configure-time tests to be sanitized, so that there is no need to
16472         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
16473         (with no double quotes) suffices.  However, since tests may be
16474         invoked manually, and since you may explicitly set srcdir to the
16475         name of a directory containing spaces, do quote its uses here.
16476         * tests/test-pread.sh: Likewise.
16477         Suggested by Bruno Haible.
16478
16479         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
16480         * tests/test-pread.sh: Write no data into the pipe, because
16481         test-pread actually reads none.  This avoids a diagnostic,
16482         "bash: echo: write error: Broken pipe", that arises in the unusual
16483         event something is ignoring SIGPIPE, and might be interpreted
16484         as some sort of failure.  Reported by Bruno Haible.
16485
16486 2009-11-25  Jim Meyering  <meyering@redhat.com>
16487
16488         test-pread: cover failure with ESPIPE and EINVAL
16489         * tests/test-pread.c (main): Test for failure, too.
16490         * tests/test-pread.sh: Invoke with stdin on a pipe.
16491         Suggested by Eric Blake.
16492
16493         pread: improvement and fix
16494         * modules/pread (Depends-on): Depend on lseek, for portability to
16495         e.g., mingw.  Suggested by Eric Blake.
16496         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
16497
16498         unistd.in.h: correct declaration of pread
16499         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
16500         Reported by Richard W.M. Jones.
16501
16502         test-pread.sh: distribute the test script
16503         * modules/pread-tests (Files): Include test-pread.sh.
16504
16505         test-pread.sh: clean up
16506         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
16507         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
16508         That is unnecessary, since it's always ".".
16509         Suggestion from Eric Blake.
16510
16511         test-pread.sh: make executable
16512         * tests/test-pread.sh: Set executable bit.
16513         Reported by Eric Blake.
16514
16515         correct typo in test-pread.sh
16516         * tests/test-pread.sh: Add #! line.
16517
16518         test pread
16519         * tests/test-pread.c: New file.
16520         * tests/test-pread.sh: Likewise.
16521         * modules/pread-tests: Likewise.
16522
16523         pread: new module
16524         * modules/pread: New file.
16525         * lib/unistd.in.h (pread): Define/declare.
16526         * lib/pread.c (pread): New file.
16527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
16528         * modules/unistd (Makefile.am): Substitute witnesses.
16529         * doc/posix-functions/pread.texi (pread): Update.
16530         * MODULES.html.sh: Add pread.
16531
16532 2009-11-25  Jim Meyering  <meyering@redhat.com>
16533
16534         tests/init.sh: new file to be used via most *.sh tests
16535         * tests/init.sh: New file.
16536
16537 2009-11-25  Eric Blake  <ebb9@byu.net>
16538
16539         utimens: work around older Linux failure with symlinks
16540         * lib/utimens.c (lutimensat_works_really): New variable.
16541         (fdutimens, lutimens): Use it to manage kernels that support
16542         nanosecond times on files, but not on symlinks.
16543         Reported by OndÅ™ej Vašík.
16544
16545         utimes: fix configure grammar
16546         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
16547
16548 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
16549
16550         regex: Fix fastmap for multibyte character ranges.
16551         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
16552         characters when a multibyte character range is included.
16553
16554 2009-11-22  Andy Wingo  <wingo@pobox.com>
16555
16556         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
16557         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
16558
16559 2009-11-24  Bruno Haible  <bruno@clisp.org>
16560
16561         doc: Most *_l functions exist in MacOS X 10.5.
16562         * doc/posix-functions/duplocale.texi: Update platforms list.
16563         * doc/posix-functions/freelocale.texi: Likewise.
16564         * doc/posix-functions/newlocale.texi: Likewise.
16565         * doc/posix-functions/uselocale.texi: Likewise.
16566         * doc/posix-functions/isalnum_l.texi: Likewise.
16567         * doc/posix-functions/isalpha_l.texi: Likewise.
16568         * doc/posix-functions/isblank_l.texi: Likewise.
16569         * doc/posix-functions/iscntrl_l.texi: Likewise.
16570         * doc/posix-functions/isdigit_l.texi: Likewise.
16571         * doc/posix-functions/isgraph_l.texi: Likewise.
16572         * doc/posix-functions/islower_l.texi: Likewise.
16573         * doc/posix-functions/isprint_l.texi: Likewise.
16574         * doc/posix-functions/ispunct_l.texi: Likewise.
16575         * doc/posix-functions/isspace_l.texi: Likewise.
16576         * doc/posix-functions/isupper_l.texi: Likewise.
16577         * doc/posix-functions/iswalnum_l.texi: Likewise.
16578         * doc/posix-functions/iswalpha_l.texi: Likewise.
16579         * doc/posix-functions/iswblank_l.texi: Likewise.
16580         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16581         * doc/posix-functions/iswctype_l.texi: Likewise.
16582         * doc/posix-functions/iswdigit_l.texi: Likewise.
16583         * doc/posix-functions/iswgraph_l.texi: Likewise.
16584         * doc/posix-functions/iswlower_l.texi: Likewise.
16585         * doc/posix-functions/iswprint_l.texi: Likewise.
16586         * doc/posix-functions/iswpunct_l.texi: Likewise.
16587         * doc/posix-functions/iswspace_l.texi: Likewise.
16588         * doc/posix-functions/iswupper_l.texi: Likewise.
16589         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16590         * doc/posix-functions/isxdigit_l.texi: Likewise.
16591         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
16592         * doc/posix-functions/strcasecmp_l.texi: Likewise.
16593         * doc/posix-functions/strcoll_l.texi: Likewise.
16594         * doc/posix-functions/strfmon_l.texi: Likewise.
16595         * doc/posix-functions/strftime_l.texi: Likewise.
16596         * doc/posix-functions/strncasecmp_l.texi: Likewise.
16597         * doc/posix-functions/strxfrm_l.texi: Likewise.
16598         * doc/posix-functions/tolower_l.texi: Likewise.
16599         * doc/posix-functions/toupper_l.texi: Likewise.
16600         * doc/posix-functions/towctrans_l.texi: Likewise.
16601         * doc/posix-functions/towlower_l.texi: Likewise.
16602         * doc/posix-functions/towupper_l.texi: Likewise.
16603         * doc/posix-functions/wcscoll_l.texi: Likewise.
16604         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16605         * doc/posix-functions/wctrans_l.texi: Likewise.
16606         * doc/posix-functions/wctype_l.texi: Likewise.
16607         * doc/glibc-functions/strptime_l.texi: Likewise.
16608         * doc/glibc-functions/strtod_l.texi: Likewise.
16609         * doc/glibc-functions/strtof_l.texi: Likewise.
16610         * doc/glibc-functions/strtol_l.texi: Likewise.
16611         * doc/glibc-functions/strtold_l.texi: Likewise.
16612         * doc/glibc-functions/strtoll_l.texi: Likewise.
16613         * doc/glibc-functions/strtoul_l.texi: Likewise.
16614         * doc/glibc-functions/strtoull_l.texi: Likewise.
16615         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16616         * doc/glibc-functions/wcstod_l.texi: Likewise.
16617         * doc/glibc-functions/wcstof_l.texi: Likewise.
16618         * doc/glibc-functions/wcstol_l.texi: Likewise.
16619         * doc/glibc-functions/wcstold_l.texi: Likewise.
16620         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16621         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16622         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16623
16624 2009-11-24  Bruno Haible  <bruno@clisp.org>
16625
16626         duplocale: Fix logic bug.
16627         * lib/duplocale.c: Don't include <langinfo.h>.
16628         (_NL_LOCALE_NAME): Remove macro.
16629         (rpl_duplocale): Use setlocale instead of nl_langinfo.
16630         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
16631
16632 2009-11-23  Jim Meyering  <meyering@redhat.com>
16633
16634         test-update-copyright: don't hard-code /usr/bin/perl
16635         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
16636         perl to print the current year.  Gilles Espinasse reported that
16637         the replaced use of perl was hard-coded as /usr/bin/perl.
16638
16639 2009-11-23  Bruno Haible  <bruno@clisp.org>
16640
16641         duplocale: Add support for glibc 2.3.x.
16642         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
16643
16644 2009-11-22  Bruno Haible  <bruno@clisp.org>
16645
16646         vasnprintf: Tiny optimization.
16647         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
16648         MacOS X.
16649
16650 2009-11-22  Bruno Haible  <bruno@clisp.org>
16651
16652         Tests for module 'duplocale'.
16653         * modules/duplocale-tests: New file.
16654         * tests/test-duplocale.c: New file.
16655
16656         New module 'duplocale'.
16657         * m4/duplocale.m4: New file.
16658         * lib/locale.in.h (duplocale): New declaration.
16659         * lib/duplocale.c: New file.
16660         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
16661         gl_LOCALE_H_DEFAULTS): New macros.
16662         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
16663         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
16664         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
16665         REPLACE_DUPLOCALE.
16666         * modules/duplocale: New file.
16667         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
16668
16669 2009-11-22  Bruno Haible  <bruno@clisp.org>
16670
16671         * modules/locale-tests (configure.ac): Test for newlocale function.
16672         * tests/test-locale.c: When the system has extended locale functions,
16673         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
16674
16675         locale: Make locale_t available when possible.
16676         * lib/locale.in.h: Include <xlocale.h> when it exists.
16677         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
16678         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
16679         * modules/locale (Depends-on): Add extensions.
16680         (Makefile.am): Also substitute HAVE_XLOCALE_H.
16681         * doc/posix-headers/locale.texi: Document the problem with locale_t.
16682
16683 2009-11-22  Bruno Haible  <bruno@clisp.org>
16684
16685         Add comments.
16686         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
16687         invocation.
16688         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
16689         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16690         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16691
16692 2009-11-22  Bruno Haible  <bruno@clisp.org>
16693
16694         error: account for the possibility of freopen (stdout).
16695         * lib/error.c: Include <unistd.h>.
16696         (flush_stdout): New function, extracted from error and error_at_line.
16697         Determine stdout's fd dynamically.
16698         (error, error_at_line): Invoke flush_stdout.
16699         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
16700         * modules/error (Depends-on): Add unistd.
16701
16702 2009-11-22  Bruno Haible  <bruno@clisp.org>
16703
16704         diffseq: Add comment.
16705         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
16706
16707 2009-11-22  Jim Meyering  <meyering@redhat.com>
16708
16709         c-stack: avoid defining an unused static function
16710         * lib/c-stack.c (find_stack_direction): Do not define this function
16711         when it will not be used.
16712
16713         diffseq: avoid spurious gcc warnings
16714         * lib/diffseq.h (IF_LINT2): Define.
16715         (compareseq): Use it to initialize two members of "part".
16716         This avoids two used-uninitialized warnings.
16717
16718 2009-11-21  Jim Meyering  <meyering@redhat.com>
16719
16720         c-stack: avoid "ignoring return value of `write'" warning
16721         * lib/c-stack.c: Include "ignore-value.h".
16722         (die): Explicitly ignore each write return value.
16723         * modules/c-stack (Depends-on): Add ignore-value.
16724
16725 2009-11-21  Bruno Haible  <bruno@clisp.org>
16726
16727         diffseq: reduce scope of variable 'best'.
16728         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
16729         variable, earlier used for two different purposes.
16730
16731 2009-11-21  Jim Meyering  <meyering@redhat.com>
16732
16733         diffseq: remove useless assignment to "best"
16734         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
16735         assignment.  At that point "best" is already guaranteed to be zero.
16736
16737 2009-11-20  Eric Blake  <ebb9@byu.net>
16738
16739         build: mention ftp redirector in release announcements
16740         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
16741         values that used to come from cfg.mk; mention FTP redirect URL.
16742         * build-aux/announce-gen: Mention the mirror list.
16743         Suggested by Karl Berry.
16744
16745         nanosleep: improve port to mingw
16746         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
16747         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
16748         LIB_NANOSLEEP, but only when needed.
16749         * modules/select (Link): Document LIBSOCKET.
16750         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
16751         enough.
16752
16753         nanosleep: work around cygwin bug
16754         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
16755         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
16756         bug.
16757         (getnow): Delete, not needed.
16758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
16759         LIB_CLOCK_GETTIME.
16760         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
16761         clock-time, gettime.
16762         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
16763         bug.
16764         * modules/nanosleep-tests: New test.
16765         * tests/test-nanosleep.c: New file.
16766
16767         sleep: work around cygwin bug
16768         * lib/sleep.c (rpl_sleep): Work around the bug.
16769         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
16770         (gl_PREREQ_SLEEP): Delete unused macro.
16771         * modules/sleep (Depends-on): Add verify.
16772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16773         * modules/unistd (Makefile.am): Substitute witness.
16774         * lib/unistd.in.h (sleep): Update prototype.
16775         * doc/posix-functions/sleep.texi (sleep): Document the bug.
16776         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
16777         * modules/sleep-tests (Depends-on): Check for alarm.
16778
16779 2009-11-20  Jim Meyering  <meyering@redhat.com>
16780
16781         maint.mk: improve sc_prohibit_magic_number_exit
16782         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
16783         so it does not match uses like System.exit(1).
16784         Add comments showing how to correct all offenders.
16785
16786 2009-11-19  Eric Blake  <ebb9@byu.net>
16787
16788         xalloc-die-tests: add missing library
16789         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
16790
16791         test-xvasprintf: silence compiler warnings
16792         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
16793         empty string from gcc.
16794
16795 2009-11-19  Jim Meyering  <meyering@redhat.com>
16796
16797         xfreopen: new module, from coreutils
16798         * modules/xfreopen: New module.
16799         * lib/xfreopen.c: New file.
16800         * lib/xfreopen.h: New file.
16801         * MODULES.html.sh (File stream based Input/Output"): Add it.
16802
16803 2009-11-19  Eric Blake  <ebb9@byu.net>
16804
16805         manywarnings: depend on warnings
16806         * modules/manywarnings (Depends-on): Add warnings.
16807
16808         build: avoid compiler warnings
16809         * lib/select.c (rpl_select): Delete unused variable.
16810         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
16811
16812 2009-11-18  Eric Blake  <ebb9@byu.net>
16813
16814         tests: avoid false negative with --with-packager
16815         * tests/test-version-etc.sh: Discard packager information.
16816         * tests/test-argp-version-etc-1.sh: Likewise.
16817         Reported by Mike Frysinger.
16818
16819         utimens: fix regression on Solaris
16820         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
16821         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
16822         can only change fd timestamps via futimesat.  Instead, use an
16823         additional witness macro to avoid BSD bug.
16824         Reported by Jim Meyering.
16825
16826 2009-11-17  Eric Blake  <ebb9@byu.net>
16827
16828         usleep: use it to simplify tests
16829         * modules/stat-time-tests (Depends-on): Add usleep.
16830         (configure.ac): Drop usleep check.
16831         * modules/chown-tests (Depends-on, configure.ac): Likewise.
16832         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
16833         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
16834         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
16835         * modules/openat-tests (Depends-on, configure.ac): Likewise.
16836         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
16837         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
16838         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
16839         Likewise.
16840         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
16841         * tests/test-lchown.h (nap): Likewise.
16842         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
16843         * tests/test-stat-time.c (nap): Likewise.
16844         * tests/test-utimens-common.h (nap): Update comments.
16845
16846         usleep: new module
16847         * modules/usleep: New file.
16848         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
16849         * lib/usleep.c (usleep): Likewise.
16850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16851         * modules/unistd (Makefile.am): Substitute witnesses.
16852         * lib/unistd.in.h (usleep): Add declaration.
16853         * doc/pastposix-functions/usleep.texi (usleep): Document this.
16854         * MODULES.html.sh (Date and time): Likewise.
16855         * modules/usleep-tests (Depends-on): New test.
16856         * tests/test-usleep.c: New file.
16857
16858         chown: work around OpenBSD bug
16859         * lib/chown.c (rpl_chown): Work around the bug.
16860         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
16861         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
16862         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
16863         * modules/chown (Depends-on): Add stdbool.
16864         * modules/lchown (Depends-on): Likewise.
16865         * doc/posix-functions/chown.texi (chown): Document the bug.
16866         * doc/posix-functions/lchown.texi (lchown): Likewise.
16867         * tests/test-lchown.h (test_chown): Relax test.
16868
16869         mkstemp: avoid conflict with C++ keyword template
16870         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
16871         * lib/mkostemp.c (mkostemp): Likewise.
16872         * lib/mkostemps.c (mkostemps): Likewise.
16873         * lib/mkstemp.c (mkstemp): Likewise.
16874         * lib/mkstemps.c (mkstemps): Likewise.
16875
16876         xalloc-die-tests: optimize
16877         * tests/test-xalloc-die.sh: Reduce number of processes.
16878
16879 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16880
16881         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
16882         patch from ludo@gnu.org (Ludovic Courtès).
16883
16884 2009-11-17  Jim Meyering  <meyering@redhat.com>
16885
16886         version-etc: use proper license string
16887         * modules/version-etc (License): Use LGPL, not LGPLv3+.
16888         * modules/version-etc-fsf: Likewise.
16889
16890 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16891
16892         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
16893         printed to stdout.  Deal with EOL differences.
16894
16895 2009-11-17  Eric Blake  <ebb9@byu.net>
16896
16897         unsetenv: work around Solaris bug
16898         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
16899         * lib/unsetenv.c (rpl_unsetenv): Work around it.
16900         Reported by Jim Meyering.
16901
16902         vasnprintf: avoid compiler warnings
16903         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
16904         variables.
16905         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
16906
16907 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16908
16909         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
16910         settings since xalloc-die is no longer the self test,
16911         xalloc-die.sh is.
16912
16913 2009-11-17  Jim Meyering  <meyering@redhat.com>
16914
16915         test-xalloc-die.sh: make the code agree with the commit log
16916         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
16917         at the end, just in case you happen to have a test-xalloc-die
16918         program in some other PATH directory.
16919
16920         test-xalloc-die.sh: fix a portability bug
16921         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
16922         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
16923         Otherwise, argv[0] (as often seen in diagnostics) would be too
16924         system-dependent, sometimes with, and sometimes without the leading "./".
16925
16926         version-etc-fsf: relax license to LGPLv3+
16927         * modules/version-etc-fsf (License): Relax license.
16928
16929 2009-11-16  Eric Blake  <ebb9@byu.net>
16930
16931         xalloc-die-tests: avoid printing null pointer
16932         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
16933         shell script.
16934         * tests/test-xalloc-die.c (program_name): Declare.
16935         * tests/test-xalloc-die.sh (tmpfiles): New file.
16936
16937         setenv, unsetenv: work around various bugs
16938         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
16939         (setenv) [HAVE_SETENV]: Work around bugs.
16940         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
16941         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
16942         for bugs.
16943         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
16944         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
16945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
16946         * modules/stdlib (Makefile.am): Update substitutions.
16947         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
16948         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
16949         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16950         * modules/setenv-tests: New test.
16951         * modules/unsetenv-tests: Likewise.
16952         * tests/test-setenv.c: New file.
16953         * tests/test-unsetenv.c: Likewise.
16954
16955 2009-11-16  Jim Meyering  <meyering@redhat.com>
16956
16957         version-etc: relax license to LGPLv3+
16958         * modules/version-etc (License): Relax license.
16959
16960         better AC_REQUIRE expanded-before-required-warning avoidance
16961         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
16962         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
16963         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
16964         which is no longer needed.
16965
16966 2009-11-16  Eric Blake  <ebb9@byu.net>
16967
16968         test-freading: clean up temporary file
16969         * tests/test-freading.c (main): Remove file on success, and use
16970         ASSERT more liberally.
16971         Reported by Jim Meyering.
16972
16973 2009-11-16  Jim Meyering  <meyering@redhat.com>
16974
16975         avoid new AC_REQUIRE expanded-before-required warnings
16976         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
16977         merely using it.
16978         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
16979         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
16980
16981 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16982
16983         * tests/test-xalloc-die.c: New file.
16984         * modules/xalloc-die-tests: New file.
16985         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
16986         XFAIL_TESTS so it can be appended by modules.
16987
16988 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16989
16990         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
16991         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
16992
16993 2009-11-14  Eric Blake  <ebb9@byu.net>
16994
16995         fnmatch: avoid compiler warning
16996         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
16997         to silence compiler warning about mismatch signedness in ?:.
16998         Reported by Robert Millan.
16999
17000         intprops: add double-inclusion guard
17001         * lib/intprops.h: Allow idempotent includes.
17002         Suggested by Bruce Korb.
17003
17004         openat: detect Solaris fchownat bug
17005         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17006         penalizing glibc chownat when only lchownat is broken.
17007         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17008         trailing slash bugs.
17009         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17010         * modules/openat-tests (Files): Include more files.
17011         (Depends-on): Add mgetgroups, sleep, stat-time.
17012         (configure.ac): Add additional checks.
17013         (Makefile.am): Build new test.
17014         * tests/test-fchownat.c: New file.
17015
17016         lchown: detect Solaris and FreeBSD bug
17017         * lib/lchown.c (rpl_lchown): Work around bug.
17018         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17020         * modules/unistd (Makefile.am): Populate it.
17021         * lib/unistd.in.h (lchown): Update declaration.
17022         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17023         * modules/lchown-tests: New file.
17024         * tests/test-lchown.h (test_lchown): Likewise.
17025         * tests/test-lchown.c (main): Likewise.
17026
17027         chown: detect Solaris and FreeBSD bug
17028         * lib/chown.c (rpl_chown): Work around bug.
17029         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17030         (gl_PREREQ_CHOWN): Delete.
17031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17032         * modules/unistd (Makefile.am): Populate it.
17033         * lib/unistd.in.h (chown): Update declaration.
17034         * lib/lchown.c (chown): Update client.
17035         * modules/lchown (Depends-on): Add lstat.
17036         * doc/posix-functions/chown.texi (chown): Document the bug.
17037         * doc/posix-functions/getgroups.texi (getgroups): Document
17038         getgroups pitfall.
17039         * modules/chown-tests: New file.
17040         * tests/test-chown.h (test_chown): Likewise.
17041         * tests/test-chown.c (main): Likewise.
17042
17043 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17044
17045         gnulib-tool: correctly detect absence of m4 directories
17046         * gnulib-tool: Avoid extra newline on data passed to wc -l.
17047
17048 2009-11-14  Jim Meyering  <meyering@redhat.com>
17049
17050         maint.mk: Prohibit inclusion of "xalloc.h" without use.
17051         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17052
17053 2009-11-14  John W. Eaton  <jwe@gnu.org>
17054
17055         strftime.h: wrap funtion declaration in extern "C" block
17056         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
17057
17058 2009-11-13  Eric Blake  <ebb9@byu.net>
17059
17060         getgroups: avoid compiler warning
17061         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
17062
17063         getgroups: work around FreeBSD bug
17064         * lib/getgroups.c (rpl_getgroups): Work around the bug.
17065         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
17066         * doc/posix-functions/getgroups.texi (getgroups): Document it.
17067         * tests/test-getgroups.c (main): Fix buffer overrun.
17068
17069         getgroups: avoid compilation failure
17070         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
17071         * modules/getgroups (Depends-on): Add stdint.
17072
17073 2009-11-13  Jim Meyering  <meyering@redhat.com>
17074
17075         test-getgroups: avoid compilation failure
17076         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
17077
17078 2009-11-13  Eric Blake  <ebb9@byu.net>
17079
17080         mgetgroups: new module, taken from coreutils
17081         * modules/mgetgroups: New file.
17082         * lib/mgetgroups.h: Likewise.
17083         * lib/mgetgroups.c (mgetgroups): Likewise.
17084         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
17085         * MODULES.html.sh (Users and groups): Mention it.
17086
17087         getgroups: don't expose GETGROUPS_T to user
17088         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
17089         an element at a time if GETGROUPS_T is wrong size.
17090         * lib/getugroups.h (getugroups): Change signature.
17091         * lib/unistd.in.h (getgroups): Likewise.
17092         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
17093         signature needs fixing.
17094         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
17095         AC_TYPE_GETGROUPS.
17096         * modules/group-member (Depends-on): Add getgroups.
17097         * lib/group-member.c (group_info, get_group_info): Use gid_t.
17098         (group_member): Rely on getgroups replacement.
17099         * lib/getugroups.c (getugroups): Use gid_t.
17100         * tests/test-getgroups.c (main): Likewise.
17101         * NEWS: Mention the signature change.
17102         * doc/posix-functions/getgroups.texi (getgroups): Mention the
17103         problem with signature.
17104         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
17105         GETGROUPS_T is still useful for setgroups.
17106
17107         getgroups, getugroups: provide stubs for mingw
17108         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
17109         * lib/getugroups.c (getugroups): Likewise.
17110         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
17111         function.  Modernize replacement scheme.
17112         (gl_PREREQ_GETGROUPS): Delete.
17113         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
17114         * modules/getgroups (configure.ac): Declare witness.
17115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17116         * modules/unistd (Depends-on): Substitute witness.
17117         * lib/unistd.in.h (getgroups): Declare replacement.
17118
17119         getgroups: avoid calling exit
17120         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
17121         drop xalloc.
17122         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
17123         dependencies.
17124         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
17125         exiting, in the rare case of malloc failure.
17126
17127         getgroups: fix logic error
17128         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
17129         has more than 20 groups.
17130         * modules/getgroups-tests: New test.
17131         * tests/test-getgroups.c: New file.
17132
17133 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17134
17135         * tests/test-base64.c: Improve.
17136
17137 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17138
17139         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
17140         Blake <ebb9@byu.net>.
17141
17142 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17143
17144         * tests/test-xvasprintf.c: Add %s%s related checks.
17145
17146 2009-11-12  Eric Blake  <ebb9@byu.net>
17147
17148         version-etc: match standards.texi style
17149         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
17150         and use <> only for URLs.
17151
17152 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
17153
17154         fts: do not fail on a submount during traversal
17155         * lib/fts.c (fts_build): Read the stat info again after opening
17156         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
17157         Original report at http://bugzilla.redhat.com/501848.
17158
17159 2009-11-12  Jim Meyering  <meyering@redhat.com>
17160
17161         bootstrap: sync from coreutils
17162         * build-aux/bootstrap (bootstrap_epilogue): New function.
17163         Use git_modules_config in one more place.  This make bootstrap's
17164         --gnulib-srcdir option more useful for testing.
17165
17166         bootstrap: generalize autoheader check
17167         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
17168         AC_CONFIG_HEADERS.
17169
17170 2009-11-11  Eric Blake  <ebb9@byu.net>
17171
17172         mkfifoat: use new modules for Solaris and BSD bugs
17173         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
17174         * lib/mkfifoat.c (mknodat): Split...
17175         * lib/mknodat.c (mknodat): ...into new file.
17176         * modules/mkfifoat (Files): Ship new file.
17177         (Depends-on): Add mkfifo, mknod.
17178         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
17179         (Depends-on): Add symlink.
17180         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
17181         redundant with test_mkfifo.h.
17182         (do_mkfifoat, do_mknodat): New helpers.
17183
17184         mknod: new module
17185         * modules/mknod: New file.
17186         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17187         * lib/mknod.c (mknod): Likewise.
17188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17189         defaults.
17190         * modules/sys_stat (Makefile.am): Substitute them.
17191         * lib/sys_stat.in.h (mknod): Declare replacement.
17192         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17193         Document it.
17194         * doc/posix-functions/mknod.texi (mknod): Likewise.
17195         * modules/mknod-tests: New test.
17196         * tests/test-mknod.c: Likewise.
17197
17198         mkfifo: new module
17199         * modules/mkfifo: New file.
17200         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17201         * lib/mkfifo.c (mkfifo): Likewise.
17202         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17203         defaults.
17204         * modules/sys_stat (Makefile.am): Substitute them.
17205         * lib/sys_stat.in.h (mkfifo): Declare replacement.
17206         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17207         Document it.
17208         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
17209         * modules/mkfifo-tests: New test.
17210         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
17211         from test-mkfifoat.c.
17212         * tests/test-mkfifo.c: New file.
17213
17214         readlink: detect FreeBSD bug
17215         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
17216         slash on symlink.
17217         * doc/posix-functions/readlink.texi (readlink): Document the bug.
17218         * tests/test-readlink.h (test_readlink): Enhance test.
17219
17220         symlink: detect FreeBSD bug
17221         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
17222         slash on symlink.
17223         * doc/posix-functions/symlink.texi (symlink): Document the bug.
17224         * tests/test-symlink.h (test_symlink): Enhance test.
17225
17226 2009-11-10  Eric Blake  <ebb9@byu.net>
17227
17228         link: detect FreeBSD bug
17229         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
17230         symlink.
17231         * doc/posix-functions/link.texi (link): Document the bug.
17232         * tests/test-link.h (test_link): Enhance test.
17233         * tests/test-linkat.c (main): Update caller.
17234
17235         unlink, remove: detect FreeBSD bug
17236         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
17237         slash on symlink.
17238         * doc/posix-functions/unlink.texi (unlink): Document the bug.
17239         * doc/posix-functions/remove.texi (remove): Likewise.
17240         * tests/test-unlink.h (test_unlink): Enhance test.
17241         * tests/test-remove.c (main): Likewise.
17242
17243 2009-11-09  Eric Blake  <ebb9@byu.net>
17244
17245         rename: detect FreeBSD bug
17246         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
17247         slash on symlink.
17248         * modules/renameat-tests (Depends-on): Add filenamecat.
17249         * tests/test-rename.h (test_rename): Allow one more errno.
17250         * tests/test-renameat.c (main): Likewise.
17251         * doc/posix-functions/rename.texi (rename): Document the bug.
17252
17253         open: detect FreeBSD bug
17254         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
17255         symlink.
17256         * doc/posix-functions/open.texi (open): Document the bug.
17257         * doc/posix-functions/utimes.texi (utimes): Likewise.
17258         * tests/test-open.h (test_open): Add parameters, and test symlink
17259         handling.
17260         * tests/test-open.c (main): Adjust caller.
17261         * tests/test-fcntl-safer.c (main): Likewise.
17262         * modules/open-tests (Depends-on): Add stdbool, symlink.
17263         * modules/fcntl-safer-tests (Depends-on): Likewise.
17264         * tests/test-openat.c (main): Add test-open tests.
17265
17266         stat: detect FreeBSD bug
17267         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
17268         symlink.
17269         * doc/posix-functions/stat.texi (stat): Document the bug.
17270         * tests/test-stat.h (test_stat_func): Add argument.
17271         * tests/test-stat.c (main): Adjust caller.
17272         * tests/test-fstatat.c (main): Likewise.
17273         * modules/stat-tests (Depends-on): Add stdbool, symlink.
17274         Reported by Jim Meyering.
17275
17276 2009-11-09  James Youngman  <jay@gnu.org>
17277
17278         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
17279         * lib/strftime.c: Correct placement of #include "ignore-value.h".
17280
17281 2009-11-08  Jim Meyering  <meyering@redhat.com>
17282
17283         utimens: remove invalid futimesat call
17284         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
17285         It used the file descriptor of the target file as the DIR_FD
17286         parameter and NULL as the file name.  That caused failure with
17287         errno == EFAULT on FreeBSD-8.0-rc2
17288
17289 2009-11-07  Eric Blake  <ebb9@byu.net>
17290
17291         fflush, freadseek: use fseeko, not fseek
17292         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17293         (clear_ungetc_buffer): Avoid potential problems on large files.
17294         * lib/freadseek.c (freadseek): Likewise.
17295         * modules/freadseek (Depends-on): Add fseeko.
17296         * modules/fseek (configure.ac): Set a witness.
17297         * tests/test-fflush.c (main): Use fseeko.
17298         * tests/test-fpurge.c (fseek): Disable link warning.
17299         * tests/test-freadable.c (fseek): Likewise.
17300         * tests/test-freading.c (fseek): Likewise.
17301         * tests/test-fseeko.c (fseek): Likewise.
17302         * tests/test-ftell.c (fseek): Likewise.
17303         * tests/test-ftello.c (fseek): Likewise.
17304         * tests/test-fwritable.c (fseek): Likewise.
17305         * tests/test-fwriting.c (fseek): Likewise.
17306
17307 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17308
17309         * modules/memchr (Depends-on): Drop getpagesize dependency.
17310
17311 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17312
17313         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
17314         Reported by Ludovic Courtès.
17315         * build-aux/pmccabe2html: Improve example usage.
17316         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
17317
17318 2009-11-06  Jim Meyering  <meyering@redhat.com>
17319
17320         do-release-commit-and-tag: New module.
17321         Automate the release-commit and tag process.
17322         * build-aux/do-release-commit-and-tag: New script, from coreutils.
17323         * modules/do-release-commit-and-tag: New file.
17324         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17325
17326 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17327
17328         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
17329         because test-select.c uses inet_pton.
17330
17331 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17332
17333         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
17334         GETADDRINFO_LIB.  Bump serial number.
17335         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
17336         Suggested by Eric Blake <ebb9@byu.net>.
17337
17338 2009-11-05  Eric Blake  <ebb9@byu.net>
17339
17340         strtod: detect darwin bug
17341         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
17342         Reported by Leo Davis.
17343
17344         freopen-safer: new module
17345         * modules/freopen-safer: New module.
17346         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
17347         * lib/freopen-safer.c (freopen_safer): New file.
17348         * lib/stdio-safer.h (freopen_safer): New declaration.
17349         * lib/stdio--.h (freopen): New override.
17350         * MODULES.html.sh (File stream based Input/Output): Mention it.
17351         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
17352         freopen-safer module.
17353         * doc/posix-functions/stderr.texi (stderr): Likewise.
17354         * doc/posix-functions/stdin.texi (stdin): Likewise.
17355         * doc/posix-functions/stdout.texi (stdout): Likewise.
17356         * modules/freopen-safer-tests: New test.
17357         * tests/test-reopen-safer.c: New file.
17358
17359 2009-11-05  Jim Meyering  <meyering@redhat.com>
17360
17361         maint.mk: Prohibit inclusion of "close-stream.h" without use.
17362         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17363
17364 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17365
17366         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
17367
17368 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17369
17370         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
17371
17372 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17373
17374         Fix link error.
17375         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17376         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17377
17378 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17379
17380         * tests/test-func.c: Also test value of __func__.
17381
17382 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17383
17384         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
17385         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
17386
17387 2009-11-05  Bruno Haible  <bruno@clisp.org>
17388
17389         Fix link error.
17390         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17391         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17392         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
17393
17394 2009-11-05  Bruno Haible  <bruno@clisp.org>
17395
17396         Tests for module 'inet_pton'.
17397         * modules/inet_pton-tests: New file.
17398         * tests/test-inet_pton.c: New file.
17399
17400 2009-11-05  Bruno Haible  <bruno@clisp.org>
17401
17402         Tests for module 'inet_ntop'.
17403         * modules/inet_ntop-tests: New file.
17404         * tests/test-inet_ntop.c: New file.
17405
17406 2009-11-04  Eric Blake  <ebb9@byu.net>
17407
17408         stdlib-safer: wrap all mkstemp variants
17409         * modules/mkostemp (configure.ac): Set witness.
17410         * modules/mkostemps (configure.ac): Likewise.
17411         * modules/mkstemps (configure.ac): Likewise.
17412         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
17413         (mkstemps_safer): Wrap more functions.
17414         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
17415         wrapping.
17416         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
17417         (mkstemps_safer): Implement the wrappers.
17418
17419         mkstemps, mkostemps: new modules
17420         * modules/mkostemps: New module.
17421         * modules/mkstemps: Likewise.
17422         * lib/mkostemps.c (mkostemps): New file.
17423         * lib/mkstemps.c (mkstemps): Likewise.
17424         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
17425         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
17426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
17427         * modules/stdlib (Makefile.am): Substitute them.
17428         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
17429         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
17430         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17431         * doc/gnulib.texi (Glibc stdlib.h): Include them.
17432         * MODULES.html.sh (File system functions): Mention them.
17433
17434         tempname: resync from glibc
17435         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
17436         same values for __GT_FILE as glibc.  Abort even when assertions
17437         are disabled.
17438         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
17439         match its value otherwise.  Allow idempotent inclusion.
17440         * lib/mkdtemp.c (mkdtemp): Adjust caller.
17441         * lib/mkostemp.c (mkostemp): Likewise.
17442         * lib/mkstemp.c (mkstemp): Likewise.
17443         * lib/tmpfile.c (tmpfile): Likewise.
17444         * NEWS: Document this.
17445
17446         utimens: fix use of futimens on older Linux
17447         * lib/utimens.c (fdutimens): Use updated, rather than original,
17448         timespec to avoid bug in older Linux kernel.
17449         Reported by Simon Josefsson.
17450
17451 2009-11-04  Bruno Haible  <bruno@clisp.org>
17452
17453         Make num_processors more flexible and consistent.
17454         * lib/nproc.h (enum nproc_query): New type.
17455         (num_processors): Add a 'query' argument.
17456         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
17457         (num_processors): Add a 'query' argument. Test the value of the
17458         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
17459         mingw, count the number of CPUs available for the current process.
17460         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
17461         Check for sched_getaffinity and sched_getaffinity_np.
17462         * modules/nproc (Depends-on): Add c-ctype, extensions.
17463         * NEWS: Mention the change.
17464
17465 2009-11-03  Bruno Haible  <bruno@clisp.org>
17466
17467         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
17468
17469 2009-11-03  Jim Meyering  <meyering@redhat.com>
17470
17471         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
17472         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
17473         if it is defined.
17474
17475 2009-11-02  Eric Blake  <ebb9@byu.net>
17476
17477         mktime, timegm: share common declaration
17478         * lib/mktime-internal.h: New file.
17479         * lib/mktime.c: Use it rather than open-coding a declaration.
17480         * lib/timegm.c: Likewise.
17481         * modules/mktime (Files): Ship it.
17482         * modules/timegm (Files): Likewise.
17483         Suggested by Bruno Haible.
17484
17485         test-update-copyright: update test to match script changes
17486         * tests/test-update-copyright.sh: Avoid hard-coding perl
17487         location.  Don't update *.bak created by earlier runs.
17488
17489 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17490             Simon Josefsson  <simon@josefsson.org>
17491             Bruno Haible  <bruno@clisp.org>
17492
17493         Fix link error on Solaris 8.
17494         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
17495         also in libnsl. Define also INET_PTON_LIB.
17496         * modules/inet_pton (Link): New section.
17497
17498 2009-11-02  Simon Josefsson  <simon@josefsson.org>
17499             Bruno Haible  <bruno@clisp.org>
17500
17501         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
17502         * modules/inet_ntop (Link): New section.
17503         Reported by Boyan Kasarov <bkasarov@gmail.com>.
17504
17505 2009-11-02  Eric Blake  <ebb9@byu.net>
17506
17507         maint: avoid compiler warnings in m4 macros
17508         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
17509         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
17510
17511 2009-11-02  Simon Josefsson  <simon@josefsson.org>
17512
17513         * m4/pmccabe2html.m4: Remove file.
17514         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
17515         function.  Change maintainer.
17516         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
17517         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
17518         Courtès).
17519
17520 2009-10-31  Eric Blake  <ebb9@byu.net>
17521
17522         fseeko: fix m4 regression
17523         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
17524         regression from 2009-10-27.
17525         Reported by Ralf Wildenhues.
17526
17527 2009-10-31  Jim Meyering  <meyering@redhat.com>
17528
17529         inttostr: aesthetics and improved (compile-time) safety
17530         Define inttype_is_signed rather than inttype_is_unsigned,
17531         since the sole use is via "#if inttype_is_signed".
17532         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
17533         inttype_is_unsigned.
17534         * lib/offtostr.c (inttype_is_signed): Likewise.
17535         * lib/uinttostr.c (inttype_is_signed): Likewise.
17536         * lib/umaxtostr.c (inttype_is_signed): Likewise.
17537         * lib/inttostr.c (inttostr): Use verify to cross-check the
17538         inttype_is_signed value and the signedness of the actual type.
17539         * modules/inttostr (Depends-on): Add verify.
17540
17541 2009-10-30  Eric Blake  <ebb9@byu.net>
17542
17543         build: avoid compiler warnings
17544         * lib/fchmodat.c (lchmod): Mark unused variables.
17545         * lib/getopt.c (_getopt_initialize): Likewise.
17546         * lib/mktime.c (__mktime_internal): Provide prototype.
17547         * lib/inttostr.c (inttostr): Avoid compiler warning even with
17548         older gcc that do not understand #pragma GCC diagnostic.
17549         * lib/uinttostr.c (inttype_is_unsigned): Define.
17550         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
17551
17552 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
17553
17554         stat: fix compilation on AIX
17555         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
17556         only see struct stat64.
17557
17558 2009-10-30  Eric Blake  <ebb9@byu.net>
17559
17560         exclude: make more robust
17561         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
17562         rather than masking a coding bug.
17563         Suggested by Bruno Haible.
17564
17565 2009-10-30  Jim Meyering  <meyering@redhat.com>
17566
17567         perl scripts: remove #!/usr/bin/perl in favor of more portable...
17568         Rather than putting #!/usr/bin/perl on the first line,
17569         start with a variant of what's recommended by "man perlrun" that
17570         invokes the first "perl" program from your shell's search path.
17571         * build-aux/gitlog-to-changelog: Replace #!... as above.
17572         Add a "Local Variables" perl mode setting.
17573         Prompted by a patch from Ludovic Courtès.
17574         Improved by Eric Blake.
17575         * build-aux/useless-if-before-free: Likewise.
17576         * build-aux/announce-gen: Likewise.
17577         * build-aux/update-copyright: Likewise.
17578
17579 2009-10-29  Eric Blake  <ebb9@byu.net>
17580
17581         filenamecat-lgpl: adjust clients
17582         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
17583         filenamecat.
17584         * modules/renameat (Depends-on): Likewise.
17585
17586         filenamecat: split into filenamecat-lgpl
17587         * modules/filenamecat-lgpl: New module.
17588         * modules/filenamecat (Files): Move library-safe files into
17589         filenamecat-lgpl.
17590         (Depends-on): Add filenamecat-lgpl.
17591         (configure.ac): Declare witness.
17592         * lib/filenamecat.h (file_name_concat): Only declare when using
17593         GPL module.
17594         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
17595         Move...
17596         * lib/filenamecat-lgpl.c: ...into new file.
17597         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
17598         (gl_FILE_NAME_CONCAT): Use it.
17599         * MODULES.html.sh (File system functions): Mention new module.
17600
17601         argp: avoid memory leak
17602         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
17603         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
17604         base_name, since the latter malloc()s and can call exit().
17605         Leak introduced 2006-07-03.
17606
17607         dirname-lgpl: adjust clients that don't need full dirname
17608         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
17609         * modules/filenamecat (Depends-on): Likewise.
17610         * modules/linkat (Depends-on): Likewise.
17611         * modules/mkancesdirs (Depends-on): Likewise.
17612         * modules/mkdir (Depends-on): Likewise.
17613         * modules/openat (Depends-on): Likewise.
17614         * modules/savewd (Depends-on): Likewise.
17615         * modules/rename (Depends-on): Likewise.
17616         (License): Relax license.
17617         * modules/mkdir-tests (Depends-on): Drop progname.
17618         (Makefile.am): Delete unneeded LDADD.
17619         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
17620
17621         dirname: split into dirname-lgpl
17622         * modules/dirname-lgpl: New module.
17623         * modules/dirname (Files): Move library-safe files into
17624         dirname-lgpl.
17625         (Depends-on): Add dirname-lgpl.
17626         (configure.ac): Declare witness.
17627         * modules/double-slash-root (License): Relax license.
17628         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
17629         module.
17630         * lib/dirname.c (dir_len, mdir_name): Move...
17631         * lib/dirname-lgpl.c: ...into new file.
17632         * lib/basename.c (last_component, base_len): Move...
17633         * lib/basename-lgpl.c: ...into new file.
17634         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
17635         (gl_DIRNAME): Use it.
17636         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
17637         Mention new module.
17638         * modules/dirname-tests (Depends-on): Add progname.
17639         * tests/test-dirname.c (program_name): Delete.
17640
17641         mkdir: make safe for libraries
17642         * modules/mkdir (Depends-on): Drop xalloc.
17643         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
17644         exit.
17645
17646         tests: avoid some compiler warnings
17647         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
17648         literals.
17649         * tests/test-memchr.c (main): Avoid type mismatch.
17650         * tests/test-arpa_inet.c (main): Avoid unused parameters.
17651         * tests/test-base64.c (main): Likewise.
17652         * tests/test-getdelim.c (main): Likewise.
17653         * tests/test-gethostname.c (main): Likewise.
17654         * tests/test-getline.c (main): Likewise.
17655         * tests/test-netinet_in.c (main): Likewise.
17656         * tests/test-select.c (open_server_socket, main): Likewise.
17657         * tests/test-select-stdin.c (main): Likewise.
17658         * tests/test-sockets.c (main): Likewise.
17659         * tests/test-strsignal.c (main): Likewise.
17660         * tests/test-sys_select.c (main): Likewise.
17661         * tests/test-sys_socket.c (main): Likewise.
17662         * tests/test-u64.c (main): Likewise.
17663         * tests/test-xfprintf-posix.c (main): Likewise.
17664         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
17665
17666         sockets: avoid compiler warning
17667         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
17668
17669         maint: detect usage(1) and other suspicious exits
17670         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
17671
17672 2009-10-29  Jim Meyering  <meyering@redhat.com>
17673
17674         timespec: long-to-int truncation could make timespec_cmp malfunction
17675         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
17676         a multiple of 2^32 nanoseconds as no difference.
17677
17678 2009-10-28  Jim Meyering  <meyering@redhat.com>
17679
17680         fprintftime: wrap macro code argument in "do {...} while(0)"
17681         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
17682         cpy macro must be a statement that can be followed by a semicolon.
17683         Now that the else clause contains a comment and is hence longer
17684         than one line, I require curly braces.  That in turn requires
17685         that we wrap this code block in the standard do...while(0).
17686
17687         fprintftime: remove stray semicolon from previous change
17688         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
17689
17690         fprintftime: avoid a warning about ignored fwrite return value
17691         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
17692         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
17693         that is unsafe.
17694         * modules/fprintftime (Depends-on): Add ignore-value.
17695
17696         exclude: avoid an unwarranted warning
17697         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
17698
17699 2009-10-27  Eric Blake  <ebb9@byu.net>
17700
17701         fseek: avoid compilation failure when fflush is replaced
17702         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
17703         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
17704         module is in use.
17705         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
17706         module is not in use; since REPLACE_FSEEK worked otherwise.
17707         (GNULIB_FTELLO): Likewise for ftell.
17708         Reported by Ian Beckwith and others.
17709
17710 2009-10-27  Bruno Haible  <bruno@clisp.org>
17711
17712         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
17713         Reported by Jim Meyering.
17714
17715 2009-10-27  Jim Meyering  <jim@meyering.net>
17716             Bruno Haible  <bruno@clisp.org>
17717
17718         Avoid warning despite dropping the return value of fwrite.
17719         * lib/unicodeio.c: Include ignore-value.h.
17720         (fwrite_success_callback): Explicitly ignore fwrite's return value.
17721         * modules/unicodeio (Depends-on): Add ignore-value.
17722
17723 2009-10-26  Eric Blake  <ebb9@byu.net>
17724
17725         areadlinkat: fix fallback path
17726         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
17727         pointer and zero.
17728
17729 2009-10-22  Pádraig Brady  <P@draigBrady.com>
17730
17731         Use a better IO block size for modern systems
17732         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
17733         * lib/md2.c: Likewise.
17734         * lib/md4.c: Likewise.
17735         * lib/md5.c: Likewise.
17736         * lib/sha1.c: Likewise.
17737         * lib/sha256.c: Likewise.
17738         * lib/sha512.c: Likewise.
17739
17740 2009-10-22  Eric Blake  <ebb9@byu.net>
17741
17742         tests: avoid several compiler warnings
17743         * tests/test-getcwd.c (main): Avoid buffer underflow.
17744         * tests/test-getdate.c (main): String literals are not safe with
17745         putenv, so use setenv.  Declare unused argument.
17746         * modules/getdate-tests (Depends-on): Add setenv.
17747         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
17748         problems with string literals in char *.
17749         * tests/test-hash.c (main): Avoid shadowing declaration.
17750         (insert_new): Treat string literals as char const *.
17751         * tests/test-getopt.h (test_getopt): Likewise.
17752         (getopt_loop): Alter types to minimize casting elsewhere.
17753         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
17754         (test_getopt_long_posix): Likewise.
17755         (do_getopt_long): Add wrapper to minimize casting.
17756         * tests/test-atexit.c (clear_temp_file): Use void.
17757         * tests/test-areadlink-with-size.c (main): Declare unused
17758         arguments.
17759         * tests/test-areadlink.c (main): Likewise.
17760         * tests/test-areadlinkat-with-size.c (main): Likewise.
17761         * tests/test-areadlinkat.c (main): Likewise.
17762         * tests/test-canonicalize-lgpl.c (main): Likewise.
17763         * tests/test-canonicalize.c (main): Likewise.
17764         * tests/test-dirent-safer.c (main): Likewise.
17765         * tests/test-dirname.c (main): Likewise.
17766         * tests/test-dup2.c (main): Likewise.
17767         * tests/test-fchdir.c (main): Likewise.
17768         * tests/test-fcntl-h.c (main): Likewise.
17769         * tests/test-fcntl-safer.c (main): Likewise.
17770         * tests/test-fdopendir.c (main): Likewise.
17771         * tests/test-fdutimensat.c (main): Likewise.
17772         * tests/test-fflush.c (main): Likewise.
17773         * tests/test-filenamecat.c (main): Likewise.
17774         * tests/test-filevercmp.c (main): Likewise.
17775         * tests/test-fopen-safer.c (main): Likewise.
17776         * tests/test-fopen.c (main): Likewise.
17777         * tests/test-fpending.c (main): Likewise.
17778         * tests/test-fpurge.c (main): Likewise.
17779         * tests/test-freading.c (main): Likewise.
17780         * tests/test-fstatat.c (main): Likewise.
17781         * tests/test-fsync.c (main): Likewise.
17782         * tests/test-futimens.c (main): Likewise.
17783         * tests/test-getndelim2.c (main): Likewise.
17784         * tests/test-gettimeofday.c (main): Likewise.
17785         * tests/test-getopt.c (main): Likewise.
17786         * tests/test-i-ring.c (main): Likewise.
17787         * tests/test-inttypes.c (main): Likewise.
17788         * tests/test-link.c (main): Likewise.
17789         * tests/test-lstat.c (main): Likewise.
17790         * tests/test-math.c (main): Likewise.
17791         * tests/test-md5.c (main): Likewise.
17792         * tests/test-memchr2.c (main): Likewise.
17793         * tests/test-memrchr.c (main): Likewise.
17794         * tests/test-mkdir.c (main): Likewise.
17795         * tests/test-mkdirat.c (main): Likewise.
17796         * tests/test-mkfifoat.c (main): Likewise.
17797         * tests/test-open.c (main): Likewise.
17798         * tests/test-openat-safer.c (main): Likewise.
17799         * tests/test-openat.c (main): Likewise.
17800         * tests/test-quotearg.c (main): Likewise.
17801         * tests/test-rawmemchr.c (main): Likewise.
17802         * tests/test-readlink.c (main): Likewise.
17803         * tests/test-remove.c (main): Likewise.
17804         * tests/test-rename.c (main): Likewise.
17805         * tests/test-renameat.c (main): Likewise.
17806         * tests/test-rmdir.c (main): Likewise.
17807         * tests/test-sha1.c (main): Likewise.
17808         * tests/test-signal.c (main): Likewise.
17809         * tests/test-sigaction.c (main): Likewise.
17810         * tests/test-stat.c (main): Likewise.
17811         * tests/test-stat-time.c (main): Likewise.
17812         * tests/test-stddef.c (main): Likewise.
17813         * tests/test-stdint.c (main): Likewise.
17814         * tests/test-stdio.c (main): Likewise.
17815         * tests/test-stdlib.c (main): Likewise.
17816         * tests/test-strchrnul.c (main): Likewise.
17817         * tests/test-strerror.c (main): Likewise.
17818         * tests/test-string.c (main): Likewise.
17819         * tests/test-strtod.c (main): Likewise.
17820         * tests/test-strverscmp.c (main): Likewise.
17821         * tests/test-symlink.c (main): Likewise.
17822         * tests/test-symlinkat.c (main): Likewise.
17823         * tests/test-sys_stat.c (main): Likewise.
17824         * tests/test-sys_time.c (main): Likewise.
17825         * tests/test-time.c (main): Likewise.
17826         * tests/test-unistd.c (main): Likewise.
17827         * tests/test-unlink.c (main): Likewise.
17828         * tests/test-unlinkat.c (main): Likewise.
17829         * tests/test-utimens.c (main): Likewise.
17830         * tests/test-utimensat.c (main): Likewise.
17831         * tests/test-version-etc.c (main): Likewise.
17832         * tests/test-wchar.c (main): Likewise.
17833         * tests/test-wctype.c (main): Likewise.
17834         * tests/test-xprintf-posix.c (main): Likewise.
17835         * tests/test-posixtm.c (main): Likewise.
17836         (STREQ): Delete unused macro.
17837         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
17838         shadowed variables.
17839         * tests/test-memchr.c (main): Likewise.
17840
17841 2009-10-21  Eric Blake  <ebb9@byu.net>
17842
17843         areadlinkat: avoid failure on older glibc
17844         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
17845         rather than mis-comparing 0 against FUNC_RESULT of char*.
17846
17847 2009-10-21  Bruno Haible  <bruno@clisp.org>
17848
17849         * modules/stpncpy (License): Relicense under LGPLv2+.
17850         Reported by David Lutterkort <lutter@redhat.com>.
17851
17852 2009-10-20  Eric Blake  <ebb9@byu.net>
17853
17854         utimensat: work around Solaris 9 bug
17855         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
17856         has trailing slash bugs.
17857         * tests/test-lutimens.h (test_lutimens): Enhance test.
17858         * tests/test-utimens.h (test_utimens): Likewise.
17859         * doc/posix-functions/utime.texi (utime): Enhance documentation.
17860         * doc/posix-functions/utimes.texi (utimes): Likewise.
17861         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17862         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
17863         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
17864         * doc/posix-functions/futimens.texi (futimens): Likewise.
17865
17866         fdutimensat: new module
17867         * modules/fdutimensat: New file.
17868         * lib/fdutimensat.c (fdutimensat): Likewise.
17869         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
17870         * MODULES.html.sh (File system functions): Mention module.
17871         * modules/fdutimensat-tests: New test.
17872         * tests/test-fdutimensat.c: Likewise.
17873
17874         doc: regenerate INSTALL
17875         * doc/INSTALL: Reflect recent autoconf update.
17876         * doc/INSTALL.ISO: Likewise.
17877         * doc/INSTALL.UTF-8: Likewise.
17878
17879 2009-10-20  Pádraig Brady  <P@draigBrady.com>
17880
17881         acl: warn if ACL support is not detected
17882         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
17883
17884 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
17885
17886         * lib/nproc.h: Add extern "C" block for C++.
17887
17888 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
17889             Bruno Haible  <bruno@clisp.org>
17890
17891         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
17892         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
17893         * doc/posix-functions/isalpha.texi: Likewise.
17894         * doc/posix-functions/isblank.texi: Likewise.
17895         * doc/posix-functions/iscntrl.texi: Likewise.
17896         * doc/posix-functions/isdigit.texi: Likewise.
17897         * doc/posix-functions/isgraph.texi: Likewise.
17898         * doc/posix-functions/islower.texi: Likewise.
17899         * doc/posix-functions/isprint.texi: Likewise.
17900         * doc/posix-functions/ispunct.texi: Likewise.
17901         * doc/posix-functions/isspace.texi: Likewise.
17902         * doc/posix-functions/isupper.texi: Likewise.
17903         * doc/posix-functions/isxdigit.texi: Likewise.
17904
17905 2009-10-18  Bruno Haible  <bruno@clisp.org>
17906
17907         Tests for module 'isblank'.
17908         * modules/isblank-tests: New file.
17909         * tests/test-isblank.c: New file.
17910
17911         New module 'isblank'.
17912         * lib/isblank.c: New file.
17913         * m4/isblank.m4: New file.
17914         * modules/isblank: New file.
17915         * doc/posix-functions/isblank.texi: Mention the new module.
17916
17917 2009-10-18  Bruno Haible  <bruno@clisp.org>
17918
17919         New module 'ctype'.
17920         * lib/ctype.in.h: New file.
17921         * m4/ctype.m4: New file.
17922         * modules/ctype: New file.
17923         * doc/posix-headers/ctype.texi: Mention the new module.
17924
17925 2009-10-18  Jim Meyering  <meyering@redhat.com>
17926
17927         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
17928         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
17929         right after its initialization, rather than farther down.
17930         Keeping these in close proximity makes it easier to ensure
17931         that each such variable is initialized.  E.g.,
17932
17933             LIB_CLOCK_GETTIME=
17934             AC_SUBST([LIB_CLOCK_GETTIME])
17935
17936         This change also increments these serial numbers.
17937         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
17938         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17940
17941 2009-10-18  Bruno Haible  <bruno@clisp.org>
17942
17943         Don't let environment variables perturb build.
17944         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
17945         (gl_PREREQ_GETHRXTIME): ... not here.
17946
17947 2009-10-18  Bruno Haible  <bruno@clisp.org>
17948
17949         Avoid symlink attack in localcharset module.
17950         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
17951         (O_NOFOLLOW): Define fallback.
17952         (get_charset_aliases): Don't open the file if it is a symbolic link.
17953         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
17954         gl_FCNTL_H.
17955         (gl_FCNTL_H): Require it.
17956         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
17957         * modules/localcharset (Files): Add m4/fcntl_h.m4.
17958         Reported by Fergal Glynn <fglynn@veracode.com>.
17959
17960 2009-10-18  Bruno Haible  <bruno@clisp.org>
17961
17962         Implement nproc for mingw.
17963         * lib/nproc.c: Include <windows.h>
17964         (num_processors): On native Windows platforms, try GetSystemInfo.
17965
17966 2009-10-18  Bruno Haible  <bruno@clisp.org>
17967
17968         Implement nproc for IRIX.
17969         * lib/nproc.c: Include <sys/sysmp.h>.
17970         (num_processors): On IRIX systems, try sysmp.
17971         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
17972
17973 2009-10-18  Bruno Haible  <bruno@clisp.org>
17974
17975         Implement nproc for HP-UX.
17976         * lib/nproc.c: Include <sys/pstat.h>
17977         (num_processors): On HP-UX systems, try pstat_getdynamic.
17978         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
17979         pstat_getdynamic.
17980
17981 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
17982             Bruno Haible  <bruno@clisp.org>
17983
17984         Implement nproc for NetBSD, OpenBSD.
17985         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
17986         (ARRAY_SIZE): New macro.
17987         (num_processors): On BSD systems, try sysctl of HW_NCPU.
17988         * m4/nproc.m4: New file.
17989         * modules/nproc (Files): Add m4/nproc.m4.
17990         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
17991         (Makefile.am): Instead, augment lib_SOURCES.
17992
17993 2009-10-18  Bruno Haible  <bruno@clisp.org>
17994
17995         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
17996         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
17997         sys/param.h.
17998
17999 2009-10-16  Eric Blake  <ebb9@byu.net>
18000
18001         utimensat: new module
18002         * modules/utimensat: New file.
18003         * lib/utimensat.c (utimensat): Likewise.
18004         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18005         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18006         so we can work around Linux bugs.
18007         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18008         * modules/sys_stat (Makefile.am): Substitute them.
18009         * lib/sys_stat.in.h (utimensat): Declare it.
18010         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18011         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18012         * modules/utimensat-tests: New test.
18013         * tests/test-utimensat.c: Likewise.
18014
18015         utimens: let lutimens work on non-symlinks
18016         * lib/utimens.c (lutimens): Fall back to utimens rather than
18017         failing with ENOSYS, when file is not a symlink.
18018         (utimens): Reduce redirection.
18019         * tests/test-lutimens.h (test_lutimens): Update test to cover
18020         non-symlinks.
18021         * tests/test-utimens.h (test_utimens): Update test to cover
18022         symlinks.
18023         * tests/test-utimens.c (main): Update caller.
18024
18025         utimens: cache whether utimensat syscall works
18026         * lib/utimens.c (utimensat_works_really): New cache variable.
18027         (fdutimens, lutimens): Use it to avoid failing syscall.
18028
18029         test-stat-time, test-utimens: improve portability
18030         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18031         ext4 on alpha, and for cygwin.
18032         * tests/test-utimens-common.h: New file.
18033         (nap): Factor delays into single function.
18034         * tests/test-lutimens.h (test_lutimens): Use new header.
18035         * tests/test-futimens.h (test_futimens): Likewise.
18036         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18037         timestamps to occur from same machine, as was done previously for
18038         test_utimens.
18039         * modules/utimens-tests (Files): Ship new file.
18040         * modules/futimens-tests (Files): Likewise.
18041         Reported in part by Jim Meyering.
18042
18043         sys_stat: sort replacement declarations
18044         * lib/sys_stat.in.h: Sort declarations.
18045         * lib/futimens.c (futimens): Fix typo.
18046
18047 2009-10-15  Jim Meyering  <meyering@redhat.com>
18048
18049         don't let environment settings perturb build
18050         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
18051         could cause a configure-time and/or build-time malfunction.
18052         Typically, a configure-time function-in-library test is performed
18053         via code like this:
18054
18055           LIB_VAR=
18056           AC_SUBST([LIB_VAR])
18057           prefix_saved_LIBS=$LIBS
18058             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
18059                        [test "$ac_cv_search_FUNC" = "none required" ||
18060                         LIB_VAR=$ac_cv_search_FUNC])
18061           LIBS=$prefix_saved_LIBS
18062
18063         However, in each of the files affected by this change, the LIB_VAR=
18064         initialization was omitted.  Thus, when set in the environment, its
18065         value would propagate into generated Makefiles when FUNC is not found
18066         in LIB_NAME.
18067         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
18068         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18070
18071 2009-10-14  Eric Blake  <ebb9@byu.net>
18072
18073         fchdir: avoid infinite recursion in mingw
18074         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
18075         recursing.
18076
18077         test-stat-time: port to mingw
18078         * tests/test-stat-time.c (force_unlink): Return a value.
18079         (test_ctime) [W32]: Fix compilation error.
18080         (nap): Don't call usleep with too large an argument.  Use
18081         force_unlink.
18082         * doc/pastposix-functions/usleep.texi (usleep): Document the
18083         portability issue.
18084
18085 2009-10-13  Jim Meyering  <meyering@redhat.com>
18086
18087         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18088         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
18089         * modules/pipe-filter-ii: Likewise.
18090         * modules/sys_socket-tests: Likewise.
18091         * modules/tsearch-tests: Likewise.
18092         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
18093         (check): Depend on it.
18094
18095 2009-10-12  Eric Blake  <ebb9@byu.net>
18096
18097         utimens-tests: port to NFS file systems
18098         * tests/test-utimens.h (test_utimens): Refactor utimecmp
18099         comparisons to avoid spurious failures from timestamp drift
18100         between NFS machines.
18101
18102 2009-10-12  Eric Blake  <ebb9@byu.net>
18103
18104         stat-time-tests: minor cleanups
18105         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
18106         * tests/test-stat-time.c (nap): Separate assignment from call.
18107         Suggested by Paolo Bonzini and Bruno Haible.
18108
18109         sys_stat: guarantee struct timespec
18110         * lib/sys_stat.in.h (includes): Always include <time.h>
18111         * modules/sys_stat (Depends-on): Add time.
18112         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
18113         mode_t permission values.
18114         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
18115         get at subsecond timestamps.
18116
18117 2009-10-10  Eric Blake  <ebb9@byu.net>
18118
18119         futimens: new module
18120         * modules/futimens: New file.
18121         * lib/futimens.c (futimens): Likewise.
18122         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
18123         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
18124         we can work around Linux bugs.
18125         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18126         * modules/sys_stat (Makefile.am): Substitute them.
18127         * lib/sys_stat.in.h (futimens): Declare it.
18128         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18129         * doc/posix-functions/futimens.texi (futimens): Likewise.
18130         * modules/futimens-tests: New test.
18131         * tests/test-futimens.c: Likewise.
18132
18133         utimens: introduce fdutimens
18134         * lib/utimens.h (fdutimens): New prototype.
18135         * lib/utimens.c (gl_futimens): Move guts...
18136         (fdutimens): ...to new interface.
18137         * tests/test-utimens.c (do_fdutimens): Use it.
18138
18139         utimens: add UTIME_NOW and UTIME_OMIT support
18140         * lib/utimens.c (validate_timespec, update_timespec): New helper
18141         functions.
18142         (gl_futimens, lutimens): Use them.
18143         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
18144         stdbool, sys_stat.
18145         (Link): Mention resulting library dependency.
18146         * modules/utimecmp (Link): Likewise.
18147         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
18148         (Makefile.am): Pick up library dependency.
18149         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
18150         definition.
18151         * tests/test-sys_stat.c: Test the definitions.
18152         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
18153         * NEWS: Document library dependency.
18154
18155         utimecmp: support symlink timestamps
18156         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
18157         hashing when possible.  Use pathconf when available.
18158         (SYSCALL_RESOLUTION): Recognize tighter resolution.
18159         * modules/utimecmp (Depends-on): Add lstat.
18160
18161         utimens: add lutimens interface
18162         * lib/utimens.c (lutimens): New function.
18163         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
18164         * lib/utimens.h (lutimens): Declare new interface.
18165         * tests/test-utimens.c (main): Enhance test.
18166         * tests/test-lutimens.h (test_lutimens): New file.
18167         * modules/utimens-tests (Files): Distribute it.
18168         (Depends-on): Add symlink.
18169         (configure.ac): Check for usleep.
18170
18171         utimens: validate futimens usage
18172         * lib/utimens.c (gl_futimens): Require valid fd up front, using
18173         fewer syscalls on failure later on.  Avoid compiler warning on
18174         mingw.
18175         * modules/utimens (Depends-on): Add dup2.
18176
18177         utimens: add test
18178         * modules/utimens-tests: New test.
18179         * tests/test-utimens.h: New file.
18180         * tests/test-futimens.h: Likewise.
18181         * tests/test-utimens.c: Likewise.
18182
18183         doc: mention timestamp portability issues
18184         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
18185         instead.
18186         * doc/posix-functions/utime.texi (utime): Likewise.
18187         * doc/posix-functions/utimes.texi (utimes): Likewise.
18188         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
18189         instead.
18190         * doc/posix-functions/futimens.texi (futimens): Mention utimens
18191         module.
18192         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18193         Mention weakness with symlink timestamps.
18194         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
18195         to utimensat/futimens instead.
18196         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
18197
18198         test-dup2: enhance test
18199         * tests/test-dup2.c (main): Also check AT_FDCWD.
18200
18201         test-stat-time: avoid more spurious failures
18202         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
18203         xfs; and avoid race if the two timestamps cross quantization edge.
18204
18205         relocatable: prefer 'file system' over 'filesystem'
18206         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
18207         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
18208         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
18209         * doc/relocatable.texi (Enabling Relocatability): Likewise.
18210         * lib/relocatable.c (compute_curr_prefix): Likewise.
18211
18212 2009-10-10  Jim Meyering  <meyering@redhat.com>
18213
18214         stat-time-tests: check for the usleep function
18215         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
18216
18217 2009-10-10  Bruno Haible  <bruno@clisp.org>
18218
18219         * modules/xnanosleep: Put the Link section after the Include section.
18220
18221 2009-10-09  Eric Blake  <ebb9@byu.net>
18222
18223         dup2: work around FreeBSD 6.1 bug
18224         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
18225         * doc/posix-functions/dup2.texi (dup2): Document it.
18226         Reported by Nelson H. F. Beebe and Jim Meyering.
18227
18228         test-stat-time: port to buggy NFS clients
18229         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
18230         (test_ctime): Also skip test if mtime and ctime are skewed.
18231
18232         maint: prefer 'file system' over 'filesystem'
18233         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18234         * doc/posix-functions/lstat.texi (lstat): Likewise.
18235         * lib/file-has-acl.c (file_has_acl): Likewise.
18236         * lib/fwriteerror.c [TEST]: Likewise.
18237         * tests/test-areadlink.h (test_areadlink): Likewise.
18238         * tests/test-areadlinkat-with-size.c (main): Likewise.
18239         * tests/test-areadlinkat.c (main): Likewise.
18240         * tests/test-canonicalize-lgpl.c (main): Likewise.
18241         * tests/test-canonicalize.c (main): Likewise.
18242         * tests/test-fstatat.c (main): Likewise.
18243         * tests/test-linkat.c (main): Likewise.
18244         * tests/test-lstat.h (test_lstat_func): Likewise.
18245         * tests/test-mkdir.h (test_mkdir): Likewise.
18246         * tests/test-readlink.h (test_readlink): Likewise.
18247         * tests/test-remove.c (main): Likewise.
18248         * tests/test-rename.h (test_rename): Likewise.
18249         * tests/test-renameat.c (main): Likewise.
18250         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18251         * tests/test-symlink.h (test_symlink): Likewise.
18252         * tests/test-symlinkat.c (main): Likewise.
18253         * tests/test-unlink.h (test_unlink_func): Likewise.
18254         * tests/test-unlinkat.c (main): Likewise.
18255
18256         maint: make realtime library usage explicit
18257         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
18258         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
18259         * modules/settime (Link): Likewise.
18260         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
18261
18262         test-stat-time: speed up execution
18263         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
18264         warning on mingw.
18265         (nap): New helper function.
18266         (prepare_test): Use it to reduce sleep time.
18267         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
18268         execution.
18269         * modules/stat-time-tests (configure.ac): Check for usleep.
18270
18271 2009-10-09  Jim Meyering  <meyering@redhat.com>
18272
18273         selinux-h: always use getfilecon wrappers
18274         * lib/getfilecon.c: New file.
18275         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
18276         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
18277         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
18278         (fgetfilecon): Provide a stub.
18279         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
18280         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
18281         file unconditionally.
18282         When <selinux/selinux.h> is found, arrange to use wrappers.
18283         * modules/selinux-h (Files): Add getfilecon.c.
18284         (Makefile.am): Substitute include-next-related bits
18285         into the now-always-generated selinux/selinux.h file.
18286         * doc/glibc-functions/lgetfilecon.texi: New file.
18287         * doc/glibc-functions/fgetfilecon.texi: New file.
18288         * doc/glibc-functions/getfilecon.texi: New file.
18289         * doc/glibc-functions/getfilecon-desc.texi: New file.
18290         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
18291         which to pull in the new files.
18292         * MODULES.html.sh (Misc): Add selinux-h.
18293
18294 2009-10-08  Jim Meyering  <meyering@redhat.com>
18295
18296         unistd: fix comment typo
18297         * lib/unistd.in.h (euidaccess): Fix a comment typo.
18298
18299 2009-10-08  Eric Blake  <ebb9@byu.net>
18300
18301         areadlink: use SIZE_MAX consistently
18302         * modules/areadlink (Depends-on): Add stdint.
18303         * modules/areadlink-with-size (Depends-on): Likewise.
18304         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
18305         gives NULL; drop sys/types, since unistd gives size_t; and add
18306         stdint for SIZE_MAX.
18307         (SIZE_MAX): Rely on headers.
18308         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
18309         and add stdint.
18310         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
18311         (SIZE_MAX): Likewise.
18312         (INITIAL_BUF_SIZE): Turn into enum.
18313         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
18314
18315 2009-10-08  Jim Meyering  <meyering@redhat.com>
18316
18317         areadlinkat: avoid compilation failure
18318         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
18319         Fix typo in comment.
18320
18321 2009-10-07  Eric Blake  <ebb9@byu.net>
18322
18323         areadlinkat-with-size: new module
18324         * modules/areadlinkat-with-size: New module.
18325         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
18326         * lib/areadlink.h (areadlinkat): Declare it.
18327         * MODULES.html.sh (File system functions): Mention it.
18328         * modules/areadlinkat-with-size-tests: New test.
18329         * tests/test-areadlinkat-with-size.c: New file.
18330
18331         xreadlinkat: new module
18332         * modules/xreadlinkat: New module.
18333         * lib/xreadlinkat.c (xreadlinkat): New file.
18334         * lib/xreadlink.h (xreadlinkat): Declare it.
18335         * MODULES.html.sh (File system functions): Mention it.
18336
18337         areadlinkat: new module
18338         * lib/at-func.c (FUNC_FAIL): New define.
18339         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
18340         * modules/areadlinkat: New module.
18341         * lib/linkat.c (areadlinkat): Move...
18342         * lib/areadlinkat.c (areadlinkat): ...to new file.
18343         * lib/areadlink.h (areadlinkat): Declare it.
18344         * modules/linkat (Depends-on): Add areadlinkat.
18345         * MODULES.html.sh (File system functions): Mention it.
18346         * modules/areadlinkat-tests: New test.
18347         * tests/test-areadlinkat.c: New file.
18348
18349         areadlink, areadlink-with-size: add tests
18350         * modules/areadlink-tests: New test.
18351         * modules/areadlink-with-size-tests: Likewise.
18352         * tests/test-areadlink.h: New file.
18353         * tests/test-areadlink.c: Likewise.
18354         * tests/test-areadlink-with-size.c: Likewise.
18355
18356         maint: minor cleanups
18357         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
18358         _UNUSED_PARAMETER_ instead.
18359         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
18360         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
18361         * modules/linkat-tests (Files): Distribute test-link.h.
18362
18363         openat, utimens: whitespace cleanup
18364         * lib/openat.c: Prefer space throughout, rather than mix of 8
18365         spaces vs. tabs.
18366         * lib/at-func.c: Likewise.
18367         * lib/utimens.c: Likewise.
18368
18369         openat: avoid using wrong fd
18370         * lib/openat.c (openat_permissive): Reject user's fd if saving the
18371         working directory chooses same fd.
18372         * lib/at-func.c (AT_FUNC_NAME): Likewise.
18373
18374         mkdir, mkdirat: fix cygwin 1.5.x bug
18375         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
18376         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
18377         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
18378         bug.
18379         (gl_PREREQ_MKDIR): Delete unused macro.
18380         * modules/mkdir (Files): Track file rename.
18381         (configure.ac): Update macro name.
18382         * modules/openat (Depends-on): Add mkdir.
18383         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
18384
18385         mkdir, mkdirat: add tests
18386         * modules/mkdir-tests: New test.
18387         * tests/test-mkdir.h: New file.
18388         * tests/test-mkdir.c: Likewise.
18389         * tests/test-mkdirat.c: Likewise.
18390         * modules/openat-tests (Files): Add new files.
18391         (Makefile.am): Run new test.
18392
18393 2009-10-06  Eric Blake  <ebb9@byu.net>
18394
18395         doc: tweak *at function documentation
18396         * doc/posix-functions/faccessat.texi (faccessat): Mention
18397         known issue with replacement.
18398         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
18399         * doc/posix-functions/linkat.texi (linkat): Likewise.
18400         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18401         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18402         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18403         * doc/posix-functions/renameat.texi (renameat): Likewise.
18404         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18405
18406         openat: fix GNU/Hurd bug in unlinkat
18407         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
18408         broken.
18409         * doc/posix-functions/unlink.texi (unlink): Document this.
18410         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
18411
18412         fdopendir: fix GNU/Hurd bug
18413         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
18414         allowing non-directory fds.
18415         * lib/fdopendir.c (rpl_fdopendir): Work around it.
18416         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18417         * modules/dirent (Makefile.am): Substitute it.
18418         * lib/dirent.in.h (fdopendir): Declare replacement.
18419         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
18420         * tests/test-fdopendir.c (main): Test something other than
18421         /dev/null, since on Hurd that behaves like a directory.
18422
18423         test-symlink: port to GNU/Hurd
18424         * tests/test-symlink.h (test_symlink): Relax expected errno.
18425
18426         doc: tweak more cygwin information
18427         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
18428         now compatible with glibc.
18429         * doc/posix-functions/getopt.texi (getopt): Likewise.
18430
18431         getopt-gnu: add another test
18432         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
18433         guarantee behavior relied on by m4.
18434         * tests/test-getopt.c (main): Use it.
18435         * modules/getopt-posix-tests (Depends-on): Add setenv.
18436         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
18437
18438         getopt: fix compilation on darwin
18439         * lib/getopt.in.h (includes): Leave breadcrumbs during system
18440         include.
18441         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
18442         Reported by Ludovic Courtès.
18443
18444 2009-10-06  Bruno Haible  <bruno@clisp.org>
18445
18446         * modules/size_max (Description): Discourage its use.
18447         Reported by Simon Josefsson.
18448
18449 2009-10-06  Jim Meyering  <meyering@redhat.com>
18450
18451         linkat: avoid compilation failure
18452         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
18453
18454 2009-10-05  Eric Blake  <ebb9@byu.net>
18455
18456         linkat: support Linux 2.6.17
18457         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
18458         linkat on Linux, but allow cache variable override.
18459         * lib/linkat.c (rpl_linkat): Define override.
18460         * modules/linkat (Depends-on): Add symlinkat.
18461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
18462         * modules/unistd (Makefile.am): Substitute it.
18463         * lib/unistd.in.h (linkat): Declare replacement.
18464         Reported by Pádraig Brady.
18465
18466         quotearg: port test to systems with C.UTF-8 locale
18467         * tests/test-quotearg.c (struct result_strings): Add another
18468         member, differentiating between C.ASCII and C.UTF-8 handling.
18469         (compare_strings): Add parameter.
18470         (main): Adjust all callers.
18471
18472         getopt: avoid clash with FreeBSD _getopt_internal
18473         * lib/getopt.in.h (_getopt_internal): Override the name.
18474         * lib/getopt_int.h (includes): Pick up any overrides.
18475         Reported by Reuben Thomas.
18476
18477         hash: allow C89 compilation
18478         * lib/hash.c (check_tuning): Move declaration before statement.
18479         Reported by Reuben Thomas.
18480
18481 2009-10-05  Karl Berry  <karl@gnu.org>
18482
18483         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
18484
18485 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
18486             Bruno Haible  <bruno@clisp.org>
18487
18488         * lib/uname.c (uname): Use a table-driven algorithm to compute
18489         Windows NT versions.
18490
18491 2009-10-04  Bruno Haible  <bruno@clisp.org>
18492
18493         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
18494         program_invocation_short_name.
18495         * modules/progname (configure.ac): Test for presence of
18496         program_invocation_short_name.
18497         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18498
18499 2009-10-04  Bruno Haible  <bruno@clisp.org>
18500
18501         * lib/progname.c (set_program_name): Fix comment.
18502         Reported by Jim Meyering.
18503
18504 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
18505             Bruno Haible  <bruno@clisp.org>
18506
18507         * lib/uname.c: Include <string.h>.
18508         (uname): Do only one call to GetVersionEx in the common case.
18509
18510 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
18511             Bruno Haible  <bruno@clisp.org>
18512
18513         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
18514         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
18515         (uname): Add support for Windows CE and various non-x86 CPU types.
18516
18517 2009-10-03  Bruno Haible  <bruno@clisp.org>
18518
18519         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
18520         invocation to tests/configure.ac.
18521         Reported by Ian Beckwith <ianb@erislabs.net>.
18522
18523 2009-10-02  Eric Blake  <ebb9@byu.net>
18524
18525         fchdir: avoid compiler warning
18526         * lib/fchdir.c (canonicalize_file_name)
18527         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
18528
18529         test-open: support mingw errno values
18530         * tests/test-open.h (test_open): Relax test.
18531         * tests/test-fopen.h (test_fopen): Likewise.
18532         * tests/test-openat-safer.c (main): Likewise.
18533
18534         open: fix opening directory on mingw
18535         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
18536
18537         test-open: on GNU/Hurd, /dev/null is a directory
18538         * tests/test-fopen.h (main): Rename...
18539         (test_fopen): ...to this.  Use a guaranteed non-directory when
18540         confirming open behavior on trailing slash.
18541         * tests/test-openat-safer.c (main): Likewise.
18542         * tests/test-open.h (main): Likewise....
18543         (test_open): ...to this.
18544         * tests/test-fopen.c (main): Adjust caller.
18545         * tests/test-fopen-safer.c (main): Likewise.
18546         * tests/test-open.c (main): Likewise.
18547         * tests/test-fcntl-safer.c (main): Likewise.
18548         Reported by Samuel Thibault.
18549
18550         rename, fchdir: don't ignore chdir failure
18551         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
18552         * lib/rename.c (rpl_rename) [W32]: Likewise.
18553         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
18554         an empty destination directory if source cannot be renamed,
18555         although there is still possibility for failure.
18556         * doc/posix-functions/rename.texi (rename): Document the race.
18557         Reported by Jim Meyering.
18558
18559         maint: cleanup whitespace in recent commits
18560         * lib/rename.c (rpl_rename): Remove tabs.
18561         * tests/test-link.h (test_link): Likewise.
18562         * lib/fchdir.c (get_name): Likewise.
18563         Reported by Jim Meyering.
18564
18565 2009-10-02  Ben Pfaff  <blp@gnu.org>
18566
18567         relocatable-prog-wrapper: Add missing dependency on
18568         double-slash-root.
18569         * modules/relocatable-prog-wrapper: Add dependency.
18570         Reported by Ian Beckwith <ianb@erislabs.net>.
18571
18572 2009-10-02  Eric Blake  <ebb9@byu.net>
18573
18574         renameat: fix Solaris bugs
18575         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
18576         needed fixing.
18577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
18578         * modules/stdio (Makefile.am): Substitute it.
18579         * lib/stdio.in.h (renameat): Declare replacement.
18580         * lib/renameat.c (rpl_renameat): Implement fix.
18581
18582         renameat: new module
18583         * modules/renameat: New file.
18584         * lib/renameat.c (renameat): Likewise.
18585         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
18586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
18587         * modules/stdio (Makefile.am): Substitute them.
18588         * lib/stdio.in.h (renameat): Declare it.
18589         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18590         * doc/posix-functions/renameat.texi (renameat): Likewise.
18591         * modules/renameat-tests: New test.
18592         * tests/test-renameat.c: Likewise.
18593
18594         rename: fix mingw bugs
18595         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
18596         directory overwrite bugs.
18597
18598         rename: fix another cygwin 1.5 bug
18599         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
18600         checks.
18601         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
18602         unnecessary cygwin workarounds.  Also work around bug with moving
18603         full directory onto an empty one.
18604         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
18605
18606         rename-dest-slash: merge into rename module
18607         * modules/rename-dest-slash (Status): Mark obsolete.
18608         (Depends-on): Add rename.
18609         (Files): Let rename do it all.
18610         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
18611         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
18612         * m4/rename-dest-slash.m4: ...so this file can be deleted.
18613         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
18614         * lib/rename.c (rpl_rename): Update comments.
18615
18616         rename: fix cygwin 1.5.x bugs
18617         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
18618         * lib/rename.c (rpl_rename): Work around them.
18619         * modules/rename (Depends-on): Add same-inode.
18620
18621         rename: fix Solaris 10 bug
18622         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
18623         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
18624         was the only bug.
18625
18626         rename: fix Solaris 9 bug
18627         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
18628         on non-directory.  Avoid calling exit.
18629         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
18630         strdup.
18631         * modules/rename-tests (Depends-on): Drop lstat.
18632         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
18633         (gl_PREREQ_RENAME): Delete unused macro.
18634
18635         rename-dest-slash: fix NetBSD bug
18636         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
18637         links.
18638         * modules/rename-dest-slash (Depends-on): Add same-inode.
18639
18640         rename-tests: new test, exposes several platform bugs
18641         * modules/rename-tests: New file.
18642         * tests/test-rename.h: Likewise.
18643         * tests/test-rename.c: Likewise.
18644         * doc/posix-functions/rename.texi (rename): Improve documentation,
18645         including bugs that will eventually be fixed in gnulib.
18646
18647 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
18648
18649         * lib/uname.c: Include <stdlib.h>
18650         (uname): Assume version info is available.
18651
18652 2009-10-02  Jim Meyering  <meyering@redhat.com>
18653
18654         gnu-web-doc-update: correct --help output
18655         * build-aux/gnu-web-doc-update: Make --help output relevant.
18656
18657         gnu-web-doc-update: add standard options
18658         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
18659
18660         gnu-web-doc-update: New module.
18661         Use this script to automatically update the on-line web documentation
18662         for your GNU project at http://www.gnu.org/software/$pkg/manual/
18663         * modules/gnu-web-doc-update: New file, from coreutils.
18664         * build-aux/gnu-web-doc-update: New script.
18665
18666 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
18667
18668         link: LoadLibrary is not needed.
18669         * lib/link.c: Use GetModuleHandle.
18670
18671 2009-10-01  Eric Blake  <ebb9@byu.net>
18672
18673         getopt: bump serial number
18674         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
18675         change.
18676
18677         tests: tighten link, rmdir, and remove tests
18678         * tests/test-link.h (includes): No need to use <config.h> here.
18679         Clean up if directory hard link was created, otherwise test for
18680         trailing '.'.
18681         * tests/test-linkat.c (main): Simplify.
18682         * tests/test-remove.c (main): Enhance test for trailing '.'.
18683         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18684
18685 2009-10-01  Jim Meyering  <meyering@redhat.com>
18686
18687         maint.mk: requiring "make major" was annoying, for a "minor" release.
18688         What is intended is "stable", to contrast with alpha and beta,
18689         so require "make stable", not "make major".
18690         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
18691         (get_tool_versions): Likewise.
18692         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
18693
18694 2009-09-30  Ben Pfaff  <blp@gnu.org>
18695
18696         Fix broken build of replacement for Windows tmpfile().
18697         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
18698         flags argument added along with the 'mkostemp' module.
18699
18700 2009-09-28  Bruno Haible  <bruno@clisp.org>
18701
18702         Avoid identifier clash with POSIX function 'remove' defined as a macro.
18703         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
18704         to 'remove_elt'.
18705         (gl_list_remove): Update.
18706         * lib/gl_list.c (gl_list_remove): Update.
18707         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
18708         to 'remove_elt'.
18709         (gl_oset_remove): Update.
18710         * lib/gl_list.c (gl_oset_remove): Update.
18711         Reported by Eric Blake.
18712
18713 2009-09-28  Eric Blake  <ebb9@byu.net>
18714
18715         doc: mention yet more cygwin 1.7 status
18716         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
18717         cygwin.
18718         * doc/glibc-functions/execvpe.texi (execvpe): New file.
18719         * doc/gnulib.texi (Glibc unistd.h): Mention it.
18720
18721         argp: fix test failure
18722         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
18723         that are not upper-case.  Pass correct range to tolower.
18724
18725 2009-09-27  Jim Meyering  <meyering@redhat.com>
18726
18727         test-yesno: work around sparc-dash here-document infelicity
18728         Without this change, the literal \177 byte in a here document
18729         would make dash 0.5.5.1-3 access uninitialized memory.
18730         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
18731         Instead, use a marker, "@", and filter through tr to create the desired
18732         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
18733
18734 2009-09-27  Bruno Haible  <bruno@clisp.org>
18735
18736         Disable untested support for new flavours of ACLs on AIX.
18737         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
18738         progress.
18739         * lib/set-mode-acl.c (qset_acl): Likewise.
18740
18741 2008-12-07  Bruno Haible  <bruno@clisp.org>
18742
18743         Add support for new flavours of ACLs on AIX. (Untested.)
18744         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
18745         (file_has_acl): Add support for newer AIX.
18746         * lib/set-mode-acl.c (qset_acl): Likewise.
18747         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
18748         Rainer Tammer <tammer@tammer.net>.
18749
18750 2009-09-26  Eric Blake  <ebb9@byu.net>
18751
18752         argp: fix compilation of getopt
18753         * lib/getopt.in.h (includes): Use different guard than glibc.
18754         Reported by Sergey Poznyakoff.
18755
18756         doc: mention more cygwin 1.7 status
18757         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
18758         bug.
18759         * doc/posix-functions/execl.texi (execl): Likewise.
18760         * doc/posix-functions/execle.texi (execle): Likewise.
18761         * doc/posix-functions/execlp.texi (execlp): Likewise.
18762         * doc/posix-functions/execv.texi (execv): Likewise.
18763         * doc/posix-functions/execve.texi (execve): Likewise.
18764         * doc/posix-functions/execvp.texi (execvp): Likewise.
18765         * doc/glibc-functions/canonicalize_file_name.texi
18766         (canonicalize_file_name): Cygwin 1.7 now provides this.
18767         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
18768         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
18769         on AT_SYMLINK_NOFOLLOW.
18770
18771 2009-09-24  Eric Blake  <ebb9@byu.net>
18772
18773         test-linkat: make test more robust
18774         * tests/test-linkat.c (main): Avoid collision with EEXIST.
18775
18776         getopt: fix inclusion guards for cygwin
18777         * modules/getopt-posix (Depends-on): Add include-next.
18778         (Makefile.am): Substitute more items in replacement header.
18779         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
18780         <getopt.h>.
18781         * lib/getopt.in.h (includes): Use split inclusion guard, and
18782         prefer <getopt.h> over include <unistd.h> when one is present.
18783         (option): Also override name of 'struct option'.
18784
18785         same-inode: revert prior change; it is not yet ready
18786         * NEWS: Undo mention of this change.
18787         * lib/same-inode.h (same-inode.h): Undo tri-state change.
18788         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
18789         * lib/cycle-check.c (cycle_check): Likewise.
18790         * lib/same.c (same_name): Likewise.
18791         * lib/at-func2.c (at_func2): Likewise.
18792
18793 2009-09-23  Eric Blake  <ebb9@byu.net>
18794
18795         linkat: new module
18796         * modules/linkat: New file.
18797         * lib/at-func2.c (at_func2): Likewise.
18798         * lib/linkat.c (linkat): Likewise.
18799         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18800         * lib/openat-priv.h (at_func2): Add declaration.
18801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18802         * modules/unistd (Makefile.am): Substitute them.
18803         * lib/unistd.in.h (linkat): Declare it.
18804         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18805         * doc/posix-functions/linkat.texi (linkat): Likewise.
18806         * doc/posix-functions/link.texi (link): Tweak wording.
18807         * tests/test-link.c (main): Move guts...
18808         * tests/test-link.h (test_link): ...into new file.
18809         * modules/linkat-tests: New test.
18810         * tests/test-linkat.c: Likewise.
18811         * modules/link-tests (Files): Ship new file.
18812         (Depends-on): Add stdbool.
18813
18814         dirname: add library-safe mdir_name
18815         * lib/dirname.h (mdir_name): New prototype.
18816         * lib/dirname.c (dir_name): Move guts...
18817         (mdir_name): ...to new function that avoids xalloc_die.
18818
18819         fchdir: another mingw fix
18820         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
18821         * lib/fchdir.c (get_name): New helper method; skips canonicalize
18822         on mingw (where it has not yet been ported), and make it optional
18823         elsewhere.
18824         (_gl_register_fd): Use it.
18825
18826         same-inode: make SAME_INODE tri-state, to port to mingw
18827         * NEWS: Mention this change.
18828         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
18829         st_ino always being 0.
18830         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
18831         * lib/cycle-check.c (cycle_check): Likewise.
18832         * lib/same.c (same_name): Likewise.
18833
18834         lstat: avoid mingw compilation error
18835         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
18836         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
18837         lstat ourselves.
18838         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
18839         was adequate.
18840         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
18841         the checks for lstat.
18842         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
18843
18844         link: fix test failure on Solaris 9
18845         * lib/link.c (rpl_link): Don't assume link will catch bogus
18846         trailing slash on source.
18847
18848         test-symlinkat: enhance test
18849         * tests/test-readlink.c (main): Move guts...
18850         * tests/test-readlink.h (test_readlink): ...into new file.
18851         * tests/test-symlink.c (main): Move guts...
18852         * tests/test-symlink.h (test_symlink): ...into new file.
18853         * tests/test-symlinkat.c (main): Use new files for further
18854         coverage.
18855         (do_symlink, do_readlink): New helper functions.
18856         * modules/symlink-tests (Files): Ship new file.
18857         (Depends-on): Add stdbool.
18858         * modules/readlink-tests (Files): Ship new file.
18859         (Depends-on): Add stdbool.
18860         * modules/symlinkat-tests (Files): Use new files.
18861
18862 2009-09-23  Eric Blake  <ebb9@byu.net>
18863
18864         readlink: document portability issue with symlink length
18865         * doc/posix-functions/lstat.texi (lstat): Mention that some file
18866         systems have bogus st_size on symlinks, and mention the
18867         areadlink-with-size module.
18868         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18869         * doc/posix-functions/readlink.texi (readlink): Mention the
18870         areadlink module, and ERANGE failure.
18871         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18872         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
18873
18874         readlink: fix Solaris 9 bug with trailing slash
18875         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
18876         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
18877         * doc/posix-functions/readlink.texi (readlink): Document this.
18878         * modules/readlink-tests: New test.
18879         * tests/test-readlink.c: Likewise.
18880
18881         readlink: fix cygwin 1.5.x bug with return type
18882         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
18883         * lib/unistd.in.h (readlink): Use ssize_t.
18884         * lib/readlink.c (readlink): Likewise.
18885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18886         * modules/unistd (Makefile.am): Substitute it.
18887         * lib/unistd.in.h (readlink): Declare replacement.
18888         * doc/posix-functions/readlink.texi (readlink): Document this.
18889
18890         symlink: use throughout gnulib
18891         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
18892         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
18893         symlink is not used.
18894         * modules/symlinkat (Depends-on): Add symlink.
18895         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18896         * modules/canonicalize-tests (Depends-on): Likewise.
18897         * modules/lstat-tests (Depends-on): Likewise.
18898         * modules/openat-tests (Depends-on): Likewise.
18899         * modules/remove-tests (Depends-on): Likewise.
18900         * modules/rmdir-tests (Depends-on): Likewise.
18901         * modules/unlink-tests (Depends-on): Likewise.
18902         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
18903         * tests/test-canonicalize.c (symlink): Likewise.
18904         * tests/test-fstatat.c (symlink): Likewise.
18905         * tests/test-lstat.c (symlink): Likewise.
18906         * tests/test-remove.c (symlink): Likewise.
18907         * tests/test-rmdir.c (symlink): Likewise.
18908         * tests/test-unlink.c (symlink): Likewise.
18909         * tests/test-unlinkat.c (symlink): Likewise.
18910
18911         symlink: new module, for Solaris 9 bug
18912         * modules/symlink: New file.
18913         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18914         * lib/symlink.c: Likewise.
18915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18916         * modules/unistd (Makefile.am): Substitute them.
18917         * lib/unistd.in.h (symlink): Declare replacement.
18918         * MODULES.html.sh (File system functions): Mention it.
18919         * doc/posix-functions/symlink.texi (symlink): Likewise.
18920         * modules/symlink-tests: New test.
18921         * tests/test-symlink.c: Likewise.
18922
18923 2009-09-23  Bruno Haible  <bruno@clisp.org>
18924
18925         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
18926         when needed.
18927         Test case: gnulib-tool --import --with-tests atexit inttypes.
18928         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
18929
18930 2009-09-23  Bruno Haible  <bruno@clisp.org>
18931
18932         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
18933         subcommand, not in a subshell.
18934
18935 2009-09-22  Eric Blake  <ebb9@byu.net>
18936
18937         unistd: sort replacement declarations
18938         * lib/unistd.in.h: Sort declarations.
18939
18940         open, openat: minor optimization
18941         * lib/open.c (open): If open succeeded, len is non-zero.
18942         * lib/openat.c (rpl_openat): Likewise.
18943
18944         link-follow: ensure correct result
18945         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
18946         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
18947         distinguish between possible failures.
18948
18949 2009-09-21  Eric Blake  <ebb9@byu.net>
18950
18951         fts: avoid compiler warning
18952         * lib/fts.c (dirent_inode_sort_may_be_useful)
18953         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
18954
18955 2009-09-19  Bruno Haible  <bruno@clisp.org>
18956
18957         * lib/progreloc.c (canonicalize_file_name): New declaration.
18958
18959 2009-09-19  Eric Blake  <ebb9@byu.net>
18960
18961         link: fix quoting
18962         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
18963
18964         openat: fix openat bugs on Solaris 9
18965         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
18966         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
18967         * modules/openat (Depends-on): Add open.
18968         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
18969         * modules/fcntl-h (Makefile.am): Substitute it.
18970         * lib/fcntl.in.h (openat): Declare replacement.
18971         * doc/posix-functions/openat.texi (openat): Document this.
18972
18973         openat: move fstatat and unlinkat into correct files
18974         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
18975         compiled.
18976         * lib/openat.c (fstatat, unlinkat): Move...
18977         * lib/fstatat.c (fstatat): ...into correct files.
18978         * lib/unlinkat.c (unlinkat): Likewise.
18979
18980         openat: fix unlinkat bugs on Solaris 9
18981         * lib/unlinkat.c (unlinkat): New file.
18982         * modules/openat (Depends-on): Add unlink.
18983         (Files): Distribute it.
18984         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
18985         trailing slash behavior is broken.
18986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18987         * modules/unistd (Makefile.am): Substitute it.
18988         * lib/unistd.in.h (unlinkat): Declare replacement.
18989         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
18990
18991         openat: fix fstatat bugs on Solaris 9
18992         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
18993         stat.
18994         * doc/posix-functions/fstatat.texi (fstatat): Document this.
18995
18996         test-unlinkat: enhance test, to expose Solaris 9 bug
18997         * tests/test-unlink.c (main): Factor guts...
18998         * tests/test-unlink.h (test_rmdir_func): ...into new file.
18999         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19000         * tests/test-rmdir.c (main): Adjust caller.
19001         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19002         (unlinker): New helper function.
19003         (rmdirat): Enhance check.
19004         * modules/rmdir-tests (Depends-on): Add stdbool.
19005         * modules/unlink-tests (Depends-on): Likewise.
19006         (Files): Add test-unlink.h.
19007         * modules/openat-tests (Files): Likewise.
19008         (Depends-on): Add unlinkdir.
19009
19010         test-fstatat: new test, to expose Solaris 9 bugs
19011         * tests/test-stat.c (main): Factor guts...
19012         * tests/test-stat.h (test_stat_func): ...into new file.
19013         * tests/test-lstat.c (main): Factor guts...
19014         * tests/test-lstat.h (test_lstat_func): ...into new file.
19015         * tests/test-fstatat.c: New file.
19016         * modules/stat-tests (Files): Add test-stat.h.
19017         * modules/lstat-tests (Files): Add test-lstat.h.
19018         (Depends-on): Add stdbool.
19019         * modules/openat-tests (Depends-on): Add pathmax.
19020         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19021         (Makefile.am): Run new test.
19022
19023         remove: new module, for mingw and Solaris 9 bugs
19024         * modules/remove: New file.
19025         * lib/remove.c: Likewise.
19026         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19028         * modules/stdio (Makefile.am): Use them.
19029         * lib/stdio.in.h (remove): Declare replacement.
19030         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19031         * doc/posix-functions/remove.texi (remove): Likewise.
19032         * modules/remove-tests: New test.
19033         * tests/test-remove.c: Likewise.
19034
19035         unlink: new module, for Solaris 9 bug
19036         * modules/unlink: New file.
19037         * lib/unlink.c: Likewise.
19038         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19040         * modules/unistd (Makefile.am): Use them.
19041         * lib/unistd.in.h (stat): Declare replacement.
19042         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19043         * doc/posix-functions/unlink.texi (unlink): Likewise.
19044         * modules/unlink-tests: New test.
19045         * tests/test-unlink.c: Likewise.
19046
19047         lstat: fix Solaris 9 bug
19048         * lib/lstat.c (lstat): Also check for trailing slash on
19049         non-symlink, non-directories.  Use stat module to simplify logic.
19050         * doc/posix-functions/lstat.texi (lstat): Document it.
19051         * modules/lstat-tests (Depends-on): Add errno, same-inode.
19052         (configure.ac): Check for symlink.
19053         * tests/test-lstat.c (main): Add more tests.
19054
19055         stat: add as dependency to other modules
19056         * modules/chown (Depends-on): Add stat.
19057         * modules/euidaccess (Depends-on): Likewise.
19058         * modules/fchdir (Depends-on): Likewise.
19059         * modules/isdir (Depends-on): Likewise.
19060         * modules/link (Depends-on): Likewise.
19061         * modules/lstat (Depends-on): Likewise.
19062         * modules/mkdir-p (Depends-on): Likewise.
19063         * modules/modechange (Depends-on): Likewise.
19064         * modules/open (Depends-on): Likewise.
19065         * modules/readlink (Depends-on): Likewise.
19066         * modules/same (Depends-on): Likewise.
19067
19068         stat: fix Solaris 9 bug
19069         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
19070         slash.
19071         * lib/stat.c (rpl_stat): Work around it.
19072         * doc/posix-functions/stat.texi (stat): Update documentation.
19073
19074         stat: new module, for mingw bug
19075         * modules/stat: New file.
19076         * lib/stat.c: Likewise.
19077         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19078         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19079         * modules/sys_stat (Makefile.am): Use them.
19080         * lib/sys_stat.in.h (stat): Declare replacement.
19081         * lib/openat.c (fstatat): Deal with lstat and stat being function
19082         macros.
19083         * modules/openat (Depends-on): Add inline.
19084         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19085         * doc/posix-functions/stat.texi (stat): Likewise.
19086         * modules/stat-tests: New test.
19087         * tests/test-stat.c: Likewise.
19088
19089 2009-09-19  Jim Meyering  <meyering@redhat.com>
19090
19091         syntax-check: detect unnecessary inclusion of canonicalize.h
19092         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
19093
19094 2009-09-19  Eric Blake  <ebb9@byu.net>
19095
19096         canonicalize-lgpl: adjust clients to use correct header
19097         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19098         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
19099         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
19100         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
19101         * lib/progreloc.c (includes): Likewise.
19102
19103 2009-09-19  Jim Meyering  <meyering@redhat.com>
19104
19105         test-posixtm.c: correct a comment
19106         * tests/test-posixtm.c: Correct first-line comment.
19107         Spotted by Eric Blake.
19108
19109 2009-09-16  Jim Meyering  <meyering@redhat.com>
19110
19111         posixtm-tests: make T const-correct; add a test case
19112         * tests/test-posixtm.c (T): Declare const.
19113         Add a test for -(2^31+1).
19114         Remove useless can-succeed-only-in-2002 test.
19115
19116         posixtm-tests: adjust the sole failing test
19117         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
19118         expected output matches what mktime now produces.  Cross-checked via
19119         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
19120
19121         posixtm: move #ifdef'd tests into a new module
19122         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
19123         * tests/test-posixtm.c: ... this new file.
19124         * modules/posixtm-tests: New module.
19125
19126 2009-09-19  Eric Blake  <ebb9@byu.net>
19127
19128         openat: simplify use of at-func.c
19129         * lib/at-func.c (includes): Include prerequisites here, to
19130         simplify requirements on client files.
19131         * lib/openat-priv.h: Add double-inclusion guard.
19132         * lib/faccessat.c (includes): Simplify.
19133         * lib/fchmodat.c (includes): Likewise.
19134         * lib/fchownat.c (includes): Likewise.
19135         * lib/mkdirat.c (includes): Likewise.
19136         * lib/mkfifoat.c (includes): Likewise.
19137         * lib/symlinkat.c (includes): Likewise.
19138
19139         openat: allow return of fd 0
19140         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
19141         * modules/save-cwd (Depends-on): Replace fcntl-safer with
19142         unistd-safer.
19143         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
19144         <fcntl.h>; this module does not leak fds.
19145         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
19146         must be allowed to return 0, leaving openat_safer to add the
19147         safety.
19148         (openat_permissive): Avoid writing to just-opened fd 2 if
19149         restoring the current directory fails.
19150         * lib/openat-die.c (openat_restore_fail): Add comment.
19151         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
19152         (save_cwd): Guarantee safe fd, but without use of open_safer.
19153         * tests/test-openat.c: New test.
19154         * modules/openat-tests (Files, Makefile.am): Distribute and build
19155         new file.
19156
19157         relocatable-prog-wrapper: fix build
19158         * modules/relocatable-prog-wrapper (Files): Update name of
19159         canonicalize m4 file, broken on 2009-09-17.
19160         Reported by emad hajjar <aleppos@hotmail.com>.
19161
19162 2009-09-19  Bruno Haible  <bruno@clisp.org>
19163
19164         * lib/safe-alloc.h: Use the standard header with GPL copyright.
19165         * lib/safe-alloc.c: Likewise.
19166         Reported by Ian Beckwith <ianb@erislabs.net>.
19167
19168 2009-09-18  Bruno Haible  <bruno@clisp.org>
19169
19170         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
19171         Reported by <erobles@sensacd.com.mx>.
19172
19173 2009-09-17  Eric Blake  <ebb9@byu.net>
19174
19175         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
19176         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
19177         slashes when checking if last component is missing.
19178         * tests/test-canonicalize.c (main): Test this.
19179
19180         canonicalize, canonicalize-lgpl: honor // if distinct from /
19181         * modules/canonicalize (Files): Add double-slash-root.m4.
19182         * modules/canonicalize-lgpl (Files): Likewise.
19183         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19184         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
19185         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
19186         fallback definition.
19187         (canonicalize_filename_mode): Use it to protect //.
19188         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
19189         (__realpath): Likewise.
19190         * tests/test-canonicalize.c (main): Test this.
19191         * tests/test-canonicalize-lgpl.c (main): Likewise.
19192         * modules/canonicalize-tests (Depends-on): Add same-inode.
19193         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19194
19195         canonicalize-lgpl: fix glibc bug with trailing slash
19196         * m4/canonicalize-lgpl.m4: Move contents...
19197         * m4/canonicalize.m4: ...here.
19198         (gl_CANONICALIZE_LGPL): Factor realpath check...
19199         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
19200         glibc 2.3.5 bug, fixed 2005-04-27.
19201         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
19202         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
19203         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
19204         * modules/canonicalize-lgpl (Files): Manage file rename.
19205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19206         * modules/stdlib (Makefile.am): Substitute witness.
19207         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
19208         is needed.
19209         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
19210         replacement is required.
19211         * lib/canonicalize.c (canonicalize_file_name): Likewise.
19212         * doc/glibc-functions/canonicalize_file_name.texi
19213         (canonicalize_file_name): Document this.
19214         * doc/posix-functions/realpath.texi (realpath): Likewise.
19215
19216         canonicalize-lgpl: reject non-directory with trailing slash
19217         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
19218         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
19219         catches failures in glibc 2.3.5.
19220         * tests/test-canonicalize.c (main): Likewise.
19221
19222         canonicalize-lgpl: use native realpath if it works
19223         * lib/canonicalize-lgpl.c (realpath): Guard with
19224         FUNC_REALPATH_WORKS.
19225         * lib/stdlib.in.h (realpath): Make declaration optional based on
19226         HAVE_REALPATH.
19227         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
19228         native realpath works.
19229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19230         * modules/stdlib (Makefile.am): Substitute witness.
19231
19232         canonicalize, canonicalize-lgpl: use <stdlib.h>
19233         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
19234         (Include): Mention <stdlib.h>.
19235         (configure.ac): Mention functions we provide.
19236         * modules/canonicalize (configure.ac): Likewise.
19237         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
19238         realpath if canonicalize_file_name is missing.
19239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
19240         * modules/stdlib (Makefile.am): Substitute witnesses.
19241         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
19242         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
19243         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
19244         * NEWS: Document this.
19245         * doc/glibc-functions/canonicalize_file_name.texi
19246         (canonicalize_file_name): Likewise.
19247         * doc/posix-functions/realpath.texi (realpath): Likewise.
19248         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
19249
19250         test-canonicalize: consolidate into single C program
19251         * tests/test-canonicalize.sh: Delete; move setup into...
19252         * tests/test-canonicalize.c (main): ...the program, making it
19253         easier to run in debugger.  Add some tests.
19254         * modules/canonicalize-tests (Files): Remove unused file.
19255         (Depends-on): Add progname.
19256         (configure.ac, Makefile.am): Simplify.
19257
19258         test-canonicalize-lgpl: consolidate into single C program
19259         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
19260         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
19261         easier to run in debugger.  Add some tests.
19262         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
19263         (configure.ac, Makefile.am): Simplify.
19264
19265         canonicalize: avoid resolvepath
19266         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
19267         unnecessary checks.
19268         * lib/canonicalize.c (includes): Simplify.
19269         (canonicalize_file_name): Drop resolvepath implementation.
19270         * modules/canonicalize (Depends-on): Drop filenamecat.
19271
19272         canonicalize: don't lose errno
19273         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
19274         over calls to free.
19275
19276         canonicalize: simplify errno handling
19277         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
19278         assignment.
19279
19280         canonicalize, canonicalize-lgpl: update module dependencies
19281         * modules/canonicalize (Depends-on): Add extensions, lstat,
19282         pathmax, stdlib.
19283         (Files): Drop pathmax.h.
19284         (configure.ac): Adjust macro name.
19285         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
19286         lstat, stdlib, sys_stat.
19287         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
19288         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
19289         extensions.
19290         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
19291         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
19292         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
19293         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
19294         declaration, if available.
19295         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
19296         we can rely on the readlink module.
19297         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
19298         (includes): Use <unistd.h> unconditionally.
19299
19300 2009-09-17  Eric Blake  <ebb9@byu.net>
19301
19302         maint: make Include sections of modules consistent
19303         * modules/alloca: Use only header name; no need to list #include.
19304         * modules/alloca-opt: Likewise.
19305         * modules/arpa_inet: Likewise.
19306         * modules/canon-host: Likewise.
19307         * modules/configmake: Likewise.
19308         * modules/dirent: Likewise.
19309         * modules/eealloc: Likewise.
19310         * modules/environ: Likewise.
19311         * modules/fchdir: Likewise.
19312         * modules/fcntl: Likewise.
19313         * modules/fcntl-h: Likewise.
19314         * modules/gethrxtime: Likewise.
19315         * modules/gettime: Likewise.
19316         * modules/ignore-value: Likewise.
19317         * modules/inet_ntop: Likewise.
19318         * modules/inet_pton: Likewise.
19319         * modules/inttypes: Likewise.
19320         * modules/isnand-nolibm: Likewise.
19321         * modules/isnanf-nolibm: Likewise.
19322         * modules/mbchar: Likewise.
19323         * modules/mbfile: Likewise.
19324         * modules/mbiter: Likewise.
19325         * modules/mbuiter: Likewise.
19326         * modules/netdb: Likewise.
19327         * modules/netinet_in: Likewise.
19328         * modules/nproc: Likewise.
19329         * modules/pagealign_alloc: Likewise.
19330         * modules/poll: Likewise.
19331         * modules/printf-frexp: Likewise.
19332         * modules/pthread: Likewise.
19333         * modules/putenv: Likewise.
19334         * modules/random_r: Likewise.
19335         * modules/relocatable-prog: Likewise.
19336         * modules/search: Likewise.
19337         * modules/select: Likewise.
19338         * modules/selinux-h: Likewise.
19339         * modules/settime: Likewise.
19340         * modules/signal: Likewise.
19341         * modules/size_max: Likewise.
19342         * modules/socklen: Likewise.
19343         * modules/ssize_t: Likewise.
19344         * modules/stdarg: Likewise.
19345         * modules/stdbool: Likewise.
19346         * modules/stddef: Likewise.
19347         * modules/stdint: Likewise.
19348         * modules/stdio: Likewise.
19349         * modules/stdlib: Likewise.
19350         * modules/string: Likewise.
19351         * modules/strings: Likewise.
19352         * modules/sys_file: Likewise.
19353         * modules/sys_ioctl: Likewise.
19354         * modules/sys_select: Likewise.
19355         * modules/sys_socket: Likewise.
19356         * modules/sys_stat: Likewise.
19357         * modules/sys_time: Likewise.
19358         * modules/sys_times: Likewise.
19359         * modules/sys_utsname: Likewise.
19360         * modules/sys_wait: Likewise.
19361         * modules/sysexits: Likewise.
19362         * modules/time: Likewise.
19363         * modules/times: Likewise.
19364         * modules/tmpfile: Likewise.
19365         * modules/trim: Likewise.
19366         * modules/unistd: Likewise.
19367         * modules/wchar: Likewise.
19368         * modules/wctype: Likewise.
19369
19370 2009-09-17  Bruno Haible  <bruno@clisp.org>
19371
19372         Make getdate.y compile on QNX and NetBSD 5 / i386.
19373         * m4/getdate.m4 (gl_GETDATE): Conditionally define
19374         TIME_T_FITS_IN_LONG_INT.
19375         * lib/getdate.y (long_time_t): New type.
19376         (relative_time): Change type of 'seconds' field to long_time_t.
19377         (get_date): Update types of local variables. Check against overflow
19378         during conversion from long_time_t to time_t.
19379         Reported by Matt Kraai <kraai@ftbfs.org>
19380         and Hasso Tepper <hasso@netbsd.org>.
19381
19382 2009-09-17  Bruno Haible  <bruno@clisp.org>
19383
19384         * modules/COPYING: Update copyright years.
19385         * modules/README: Likeiwse.
19386         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
19387         Reported by Ian Beckwith <ianb@erislabs.net>.
19388
19389 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19390
19391         * users.txt: Update references for gnuit package.
19392
19393 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19394
19395         * m4/getdelim.m4: Fix typo in copyright line.
19396
19397 2009-09-17  Bruno Haible  <bruno@clisp.org>
19398
19399         * lib/atoll.c: Use the standard header with GPL copyright.
19400         * lib/argz.in.h: Likewise.
19401         * lib/glob.c: Likewise.
19402         * lib/glob-libc.h: Likewise.
19403         * lib/random_r.c: Likewise.
19404         * lib/siglist.h: Likewise.
19405         * lib/strsignal.c: Likewise.
19406         Reported by Ian Beckwith <ianb@erislabs.net>.
19407
19408 2009-09-17  Eric Blake  <ebb9@byu.net>
19409
19410         rmdir: ensure correct dependency order
19411         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
19412
19413 2009-09-17  Bruno Haible  <bruno@clisp.org>
19414
19415         Disable assertion that fails on NetBSD 5 / i386.
19416         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
19417         Reported by Sam Steingold <sds@gnu.org>
19418         and Hasso Tepper <hasso@netbsd.org>.
19419
19420 2009-09-16  Eric Blake  <ebb9@byu.net>
19421
19422         unlinkdir: port to mingw
19423         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
19424         on which no one can unlink a directory.
19425
19426         stdlib: sort witness names
19427         * modules/stdlib (Makefile.am): Sort replacements.
19428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
19429         * lib/stdlib.in.h: Likewise.
19430
19431         parse-duration-tests: avoid link failure
19432         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
19433         LIBINTL.
19434         Reported by Tom G. Christensen.
19435
19436         openat-tests: ensure unlinkat behaves like rmdir
19437         * tests/test-rmdir.c (main): Factor guts...
19438         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
19439         * modules/rmdir-tests (Files): Ship new file.
19440         * modules/openat-tests: New test.
19441         * tests/test-unlinkat.c: Likewise.
19442
19443         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
19444         * modules/rmdir-errno (Status, Notice): Now obsolete.
19445
19446         rmdir: work around cygwin 1.5.x and mingw bugs
19447         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
19448         * lib/rmdir.c (rmdir): Work around it.
19449         * modules/rmdir (Status, Notice): No longer obsolete.
19450         (Files): Add dos.m4.
19451         (Depends-on): Add unistd.
19452         (configure.ac): Set witnesses.
19453         (License): Relax to LGPLv2+.
19454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
19455         * modules/unistd (Makefile.am): Substitute witnesses.
19456         * lib/unistd.in.h (rmdir): Declare replacement.
19457         * doc/posix-functions/rmdir.texi (rmdir): Document this.
19458         * modules/rmdir-tests: New tests.
19459         * tests/test-rmdir.c: Likewise.
19460
19461 2009-09-15  Eric Blake  <ebb9@byu.net>
19462
19463         fchdir: improve use of replacement functions
19464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
19465         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
19466         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
19467         REPLACE_CLOSEDIR.
19468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
19469         * modules/sys_stat (Makefile.am): Substitute correct witness.
19470         * modules/dirent (Makefile.am): Likewise.
19471         * modules/unistd (Makefile.am): Likewise.
19472         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
19473         * lib/unistd.in.h (dup): Likewise.
19474         * lib/sys_stat.in.h (fstat): Likewise.
19475
19476         maint: ignore gnulib-tool temp files
19477         * .gitignore: Ignore files created during gnulib-tool --test.
19478
19479 2009-09-13  Jim Meyering  <meyering@redhat.com>
19480
19481         posixtm: don't reject a time that specify "60" as the number of seconds
19482         * lib/posixtm.c (posixtime): The code to reject invalid dates
19483         would also reject a time specified with the .60 suffix.
19484         But POSIX allows that, in order to accommodate leap seconds.
19485         So don't reject it.
19486         (main): Adjust tests accordingly.
19487         * modules/posixtm (Depends-on): Add stpcpy.
19488
19489 2009-09-11  Jim Meyering  <meyering@redhat.com>
19490
19491         announce-gen: include [$release_type] in emitted Subject:
19492         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
19493         e.g., [stable] in the emitted Subject: line.
19494
19495 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19496
19497         Remove obsolete macros from several modules.
19498         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
19499         obsolete Autoconf macros with their modern counterparts.
19500         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
19501         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
19502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
19503         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
19504         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
19505         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19507         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19508         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19509         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
19510         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19511         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19512         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19513         * m4/sockets.m4 (gl_SOCKETS): Likewise.
19514         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
19515         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
19516         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
19517         * m4/time_r.m4 (gl_TIME_R): Likewise.
19518         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19519         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
19520         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19521
19522         Fix copyright header in build-aux scripts.
19523         * build-aux/git-version-gen: Fix copyright header to match GPLv3
19524         recommendation.
19525         * build-aux/ncftpput-ftp: Likewise.
19526         * build-aux/update-copyright: Likewise.
19527
19528 2009-09-09  Eric Blake  <ebb9@byu.net>
19529
19530         test-link: allow Linux choice of errno
19531         * tests/test-link.c (main): Relax test for alternate error.
19532
19533         strndup: fix improper m4 caching
19534         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
19535         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
19536         (gl_PREREQ_STRNDUP): Delete.
19537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
19538         * modules/string (Makefile.am): Substitute it.
19539         * lib/string.in.h (strndup): Modernize prototype.
19540
19541         getcwd: port to mingw
19542         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
19543         different from the POSIX assumptions made throughout the getcwd
19544         module; fortunately, the mingw getcwd does not need replacement.
19545         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
19546         * modules/getcwd-tests: New test.
19547         * tests/test-getcwd.c: Likewise.
19548
19549         link: fix platform bugs
19550         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
19551         * lib/link.c (link): Work around them.  Fix related mingw bug.
19552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
19553         * modules/unistd (Makefile.am): Substitute it.
19554         * lib/unistd.in.h (link): Declare replacement.
19555         * doc/posix-functions/link.texi (link): Document this.
19556         * modules/link (Depends-on): Add strdup-posix, sys_stat.
19557
19558         test-link: consolidate into single C program, test more cases
19559         * tests/test-link.sh: Delete.
19560         * tests/test-link.c: Test more error conditions.  Exposes bugs on
19561         at least Cygwin and Solaris.
19562         * modules/link-tests (Files): Remove unused file.
19563         (Depends-on): Add errno, sys_stat.
19564         (Makefile.am): Simplify.
19565
19566 2009-09-08  Bruno Haible  <bruno@clisp.org>
19567
19568         Work around towlower, towupper bug on mingw.
19569         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
19570         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
19571         * doc/posix-functions/towlower.texi: Mention the mingw bug.
19572         * doc/posix-functions/towupper.texi: Likewise.
19573         Reported by Eric Blake.
19574
19575 2009-09-08  Jim Meyering  <meyering@redhat.com>
19576
19577         build: don't try to run autoheader if we don't use it
19578         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
19579         is not used in configure.ac.
19580
19581 2009-09-08  Eric Blake  <ebb9@byu.net>
19582
19583         euidaccess: fix compilation error
19584         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
19585
19586         rawmemchr: relax license
19587         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
19588         okay.
19589         Reported by Jim Meyering.
19590
19591         mkfifoat: new module
19592         * modules/mkfifoat: New file.
19593         * lib/mkfifoat.c: Likewise.
19594         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
19595         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19596         * modules/sys_stat (Makefile.am): Use them.
19597         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
19598         * MODULES.html.sh (File system functions): Mention module.
19599         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19600         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19601         * modules/mkfifoat-tests: New test.
19602         * tests/test-mkfifoat.c: Likewise.
19603
19604         strchrnul: relax license
19605         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
19606         okay.
19607         Reported by Jim Meyering.
19608
19609 2009-09-08  Eric Blake  <ebb9@byu.net>
19610
19611         fstatat: fix compilation on Solaris
19612         * lib/fstatat.c (includes): Add fcntl.h.
19613         Reported by Pádraig Brady.
19614
19615 2009-09-07  Eric Blake  <ebb9@byu.net>
19616
19617         rename: modernize replacement
19618         * modules/rename (Depends-on): Add stdio.
19619         (configure.ac): Declare witness.
19620         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
19621         stdio take care of replacement.
19622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
19623         * modules/stdio (Makefile.am): Substitute them.
19624         * lib/stdio.in.h (rename): Declare replacement.
19625         * lib/rename.c (includes): Allow cross-compilation to non-windows
19626         machines.
19627         * doc/posix-functions/rename.texi (rename): Improve
19628         documentation.
19629
19630         stdio: sort witness names
19631         * modules/stdio (Makefile.am): Sort replacements.
19632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19633         * lib/stdio.in.h: Likewise.
19634
19635         getcwd: minor cleanups
19636         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
19637         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
19638
19639         openat: provide more convenience names
19640         * modules/faccessat (configure.ac): Add C witness.
19641         * lib/unistd.in.h (readlinkat): Fix typo.
19642         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
19643         convenience wrappers.
19644         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
19645         wrappers in syntax checks.
19646
19647 2009-09-06  Eric Blake  <ebb9@byu.net>
19648
19649         doc: fix comments in recent patches
19650         * lib/faccessat.c: Mention correct function.
19651         * lib/fchmodat.c: Likewise.
19652         * lib/fchownat.c: Likewise.
19653         * lib/symlinkat.c: Likewise.
19654         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
19655         constants.
19656
19657         faccessat, symlinkat: continue cleanup of previous patch
19658         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
19659         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
19660         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
19661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
19662         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
19663         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
19664         set.
19665
19666 2009-09-06  Bruno Haible  <bruno@clisp.org>
19667
19668         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
19669         (fstatat): Declare if GNULIB_FSTATAT is set.
19670         (mkdirat): Declare if GNULIB_MKDIRAT is set.
19671         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
19672         (unlinkat): Declare if GNULIB_UNLINKAT is set.
19673         * modules/fcntl-h (Files): Remove m4/openat.m4.
19674         * modules/sys_stat (Files): Remove m4/openat.m4.
19675         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
19676         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
19677         * modules/unistd (Files): Remove m4/openat.m4.
19678         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
19679         GNULIB_OPENAT.
19680         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
19681         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
19682         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19683         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
19684         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
19685         gl_OPENAT_DEFAULTS.
19686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
19687         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
19688         Don't require gl_OPENAT_DEFAULTS.
19689         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
19690         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
19691         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
19692         (gl_OPENAT_DEFAULTS): Remove macro.
19693
19694 2009-09-06  Bruno Haible  <bruno@clisp.org>
19695
19696         * modules/openat (configure.ac): Remove unneeded witness.
19697
19698 2009-09-06  Bruno Haible  <bruno@clisp.org>
19699
19700         Set errno to ENOSYS when a function is entirely unsupported.
19701         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
19702         EOPNOTSUPP.
19703         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19704         * modules/chown (Depends-on): Remove errno.
19705
19706 2009-09-06  Bruno Haible  <bruno@clisp.org>
19707
19708         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
19709
19710 2009-09-06  Bruno Haible  <bruno@clisp.org>
19711
19712         * lib/sys_stat.in.h: Fix preprocessor command indentation.
19713
19714 2009-09-06  Ben Pfaff  <blp@gnu.org>
19715             Bruno Haible  <bruno@clisp.org>
19716
19717         Work around a glibc bug in strtok_r.
19718         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
19719         Undefine if UNDEFINE_STRTOK_R is set.
19720         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
19721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19722         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
19723         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
19724         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
19725         UNDEFINE_STRTOK_R.
19726         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
19727
19728 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19729
19730         exclude: minor fix
19731         * lib/exclude.c: Include wctype.h
19732
19733 2009-09-06  Akim Demaille  <demaille@gostai.com>
19734
19735         bootstrap: improve error message
19736         * build-aux/bootstrap (find_tool): Upon failure, report the list
19737         of candidates.
19738         Honor the initial value of the envvar.
19739
19740 2009-09-05  Eric Blake  <ebb9@byu.net>
19741
19742         symlinkat: new module
19743         * modules/symlinkat: New file.
19744         * lib/symlinkat.c: Likewise.
19745         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19747         * modules/unistd (Makefile.am): Use them.
19748         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
19749         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
19750         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
19751         * MODULES.html.sh (File system functions): Mention module.
19752         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19753         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19754         * modules/symlinkat-tests: New test.
19755         * tests/test-symlinkat.c: Likewise.
19756
19757         test-openat-safer: add more checks
19758         * tests/test-openat-safer.c (main): Check more code paths.
19759
19760 2009-09-05  Jim Meyering  <meyering@redhat.com>
19761
19762         syntax-check: detect unnecessary inclusion of openat.h
19763         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
19764
19765 2009-09-05  Bruno Haible  <bruno@clisp.org>
19766
19767         Support towlower, towupper.
19768         * doc/posix-functions/towlower.texi: Mention module wctype.
19769         * doc/posix-functions/towupper.texi: Likewise.
19770         * lib/wctype.in.h (towlower, towupper): New functions.
19771         * tests/test-wctype.c: Include stdio.h, stdlib.h.
19772         (ASSERT): New macro.
19773         (e): New variable.
19774         (main): Test also towlower, towupper. Test WEOF argument.
19775         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19776
19777 2009-09-05  Bruno Haible  <bruno@clisp.org>
19778
19779         Fix conversion behaviour when the input is invalid.
19780         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
19781         mark occurring in first pass of indirect conversion.
19782         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
19783         input.
19784         Found by clang's static analyzer.
19785
19786 2009-09-05  Bruno Haible  <bruno@clisp.org>
19787
19788         * tests/test-striconveh.c (main): Test indirect conversion on platforms
19789         where direct conversion is possible.
19790
19791 2009-09-04  Eric Blake  <ebb9@byu.net>
19792
19793         openat: fail with ENOENT on empty name
19794         * lib/openat-proc.c (openat_proc_name): Special-case the empty
19795         buffer.
19796
19797         link-follow: fix logic bug in prior patch
19798         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
19799         reversed sense of yes and no in prior patch.  Avoid confusing
19800         compilation failure with desired semantics.
19801
19802         link-follow: accomodate mingw and cross-compilation
19803         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
19804         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
19805         cross-compilation results to -1, to make linkat easier to
19806         implement when cross-compiling.  Trivially support mingw.
19807         * modules/link-follow (configure.ac): Call new name.
19808         * NEWS: Mention this.
19809
19810 2009-09-03  Eric Blake  <ebb9@byu.net>
19811
19812         faccessat: compile replacement
19813         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
19814         needed.
19815
19816         fts: fix compilation error
19817         * lib/fts.c (includes): Re-add "openat.h", for
19818         openat_needs_fchdir.
19819
19820         faccessat: new module
19821         * modules/faccessat: New file.
19822         * lib/faccessat.c: Likewise.
19823         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
19824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19825         * modules/unistd (Makefile.am): Use it.
19826         * lib/unistd.in.h (faccessat): Declare it.
19827         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
19828         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
19829         * MODULES.html.sh (File system functions): Mention it.
19830         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
19831         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19832
19833         euidaccess: prefer POSIX over non-standard implementation
19834         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
19835         * lib/euidaccess.c (euidaccess): Use it if available.
19836
19837         openat: make template easier to use
19838         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
19839         AT_FUNC_F2 to be undefined.
19840         (VALIDATE_FLAG): New macro; use it to reject bad flags.
19841         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
19842         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
19843         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
19844         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
19845         Likewise.
19846         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
19847         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
19848         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
19849         Likewise.
19850
19851         openat: declare in POSIX headers
19852         * NEWS: Mention this.
19853         * modules/openat (configure.ac): Declare witnesses.
19854         (Depends-on): Add fcntl-h, sys_stat, unistd.
19855         (Include): Mention correct headers.
19856         * modules/fcntl-h (Depends-on): Add link-warning.
19857         (Files): Add openat.m4.
19858         (Makefile.am): Substitute witnesses.
19859         * modules/sys_stat (Files, Makefile.am): Likewise.
19860         * modules/unistd (Files, Makefile.am): Likewise.
19861         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
19862         (gl_OPENAT_DEFAULTS): New macro.
19863         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
19864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
19865         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
19866         (SYS_STAT_H): Remove unused variable.
19867         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
19868         * lib/fcntl--.h (includes): Remove unneeded header.
19869         * lib/openat-safer.c (includes): Likewise.
19870         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
19871         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
19872         appropriate headers.
19873         (__OPENAT_PREFIX): Delete.
19874         * lib/fcntl.in.h (openat): Provide declaration.
19875         (AT_FDCWD): Fix Solaris bug.
19876         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
19877         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
19878         * lib/fchmodat.c (includes):  Adjust to find declaration.
19879         * lib/fchownat.c (includes): Likewise.
19880         * lib/mkdirat.c (includes): Likewise.
19881         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
19882         still visible.
19883
19884 2009-09-02  Eric Blake  <ebb9@byu.net>
19885
19886         errno: use consistently
19887         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
19888         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
19889         * lib/canonicalize.c (ELOOP): Likewise.
19890         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
19891         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
19892         * lib/lchown.c (EOPNOTSUPP): Likewise.
19893         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
19894         * lib/savewd.c (ESTALE): Likewise.
19895         * lib/settime.c (ENOSYS): Likewise.
19896         * lib/utimens.c (ENOSYS): Likewise.
19897         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
19898         * lib/chdir-safer.c (ELOOP): Likewise.
19899         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
19900         * modules/c-stack (Depends-on): Add errno.
19901         * modules/canonicalize (Depends-on): Likewise.
19902         * modules/chdir-safer (Depends-on): Likewise.
19903         * modules/fdopendir (Depends-on): Likewise.
19904         * modules/inet_ntop (Depends-on): Likewise.
19905         * modules/inet_pton (Depends-on): Likewise.
19906         * modules/lchown (Depends-on): Likewise.
19907         * modules/openat (Depends-on): Likewise.
19908         * modules/savewd (Depends-on): Likewise.
19909         * modules/settime (Depends-on): Likewise.
19910         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
19911
19912         fts: avoid leaking fds
19913         * modules/fts (Depends-on): Add cloexec.
19914         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
19915         flag.
19916
19917         fts: make directory fds more robust
19918         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
19919         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
19920
19921         backupfile, chdir-long, fts, savedir: make safer
19922         * lib/backupfile.c (includes): Use "dirent--.h", since
19923         numbered_backup can write to stderr during readdir.
19924         * lib/savedir.c (includes): Likewise.
19925         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
19926         emulation can write to stderr on failure.
19927         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
19928         * lib/getcwd.c: Document why opendir_safer is unused.
19929         * lib/glob.c: Likewise.
19930         * lib/scandir.c: Likewise.
19931         * lib/openat-proc.c: Likewise, for open_safer.
19932         * modules/backupfile (Depends-on): Add dirent-safer.
19933         * modules/savedir (Depends-on): Likewise.
19934         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
19935         * modules/chdir-long (Depends-on): Add openat-safer.
19936
19937         openat-safer: new module
19938         * modules/openat-safer: New file.
19939         * lib/openat-safer.c: Likewise.
19940         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
19941         * lib/fcntl-safer.h (openat_safer): Declare.
19942         * lib/fcntl--.h (openat): Override.
19943         * MODULES.html.sh (File descriptor based I/O): Mention it.
19944         * lib/openat.h: Add double-inclusion guards.
19945         * lib/openat.c (includes): Only include "fcntl-safer.h", not
19946         "fcntl--.h", so we can implement openat.
19947         * modules/openat-safer-tests: New test.
19948         * tests/test-openat-safer.c: New file.
19949
19950         dirent-safer: new module
19951         * modules/dirent-safer: New file.
19952         * lib/dirent--.h: Likewise.
19953         * lib/dirent-safer.h: Likewise.
19954         * lib/opendir-safer.c: Likewise.
19955         * m4/dirent-safer.m4: Likewise.
19956         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
19957         * modules/dirent-safer-tests: New test.
19958         * tests/test-dirent-safer.c: New file.
19959         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
19960
19961         fdopendir: optimize on mingw
19962         * lib/unistd.in.h (_gl_directory_name): New prototype.
19963         * lib/fchdir.c (_gl_directory_name): Implement it.
19964         (fchdir): Use it to simplify implementation.
19965         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
19966         fchdir, when available, to avoid calling [f]chdir().
19967
19968         fdopendir: split into its own module
19969         * lib/openat.c (fdopendir): Move...
19970         * lib/fdopendir.c: ...into new file.
19971         * modules/fdopendir: New module.
19972         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
19973         * modules/openat (Depends-on): Add fdopendir.
19974         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
19975         fdopendir here.
19976         * modules/savedir (Depends-on): Only need fdopendir, not full
19977         openat.
19978         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
19979         * lib/openat.h (fdopendir): Drop prototype.
19980         * lib/dirent.in.h (fdopendir): Provide prototype.
19981         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
19982         * modules/dirent (Makefile.am): Substitute them.
19983         * MODULES.html.sh (File system functions): Mention it.
19984         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
19985         * modules/fdopendir-tests: New file.
19986         * tests/test-fdopendir.c: Likewise.
19987
19988         fchdir: use more consistent macro convention
19989         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
19990         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
19991         REPLACE_FCHDIR, rather than relying on config.h macros.
19992         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
19993         inside a single make-time REPLACE_FCHDIR block, rather than using
19994         the config.h FCHDIR_REPLACEMENT.
19995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
19996         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
19997         Manage fstat replacement.
19998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
19999         REPLACE_FCHDIR.
20000         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20001         (Makefile.am): Substitute REPLACE_FCHDIR.
20002         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20003         FCHDIR_REPLACEMENT.
20004         * lib/dup-safer.c (dup_safer): Likewise.
20005         * lib/dup2.c (rpl_dup2): Likewise.
20006         * lib/dup3.c (rpl_dup3): Likewise.
20007         * lib/open.c (rpl_open): Likewise.
20008
20009         fchdir: simplify error handling, and support dup3
20010         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20011         stdbool, malloc-posix, realloc-posix.
20012         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20013         (ensure_dirs_slot): Return false on allocation failure.
20014         (rpl_dup2): Delete.
20015         (_gl_register_dup): New function.
20016         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20017         (_gl_register_fd): Close fd on allocation failure.
20018         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20019         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20020         prototype.
20021         (rpl_dup2_fchdir): Delete prototype.
20022         * lib/open.c (open): Update caller.
20023         * lib/dup2.c (dup2): Track fchdir metadata.
20024         * lib/dup3.c (dup3): Likewise.
20025         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20027
20028 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20029
20030         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20031         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20032         don't pass arguments to AC_OUTPUT.
20033
20034 2009-09-02  Bruno Haible  <bruno@clisp.org>
20035
20036         * modules/mkdtemp (License): Relicense under LGPLv2+.
20037         Reported by Paolo Bonzini.
20038
20039 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20040
20041         Replace uses of obsolete autoconf macros in Jim's modules.
20042         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20043         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20044         can evoke a warning from autoconf when run with -Wobsolete
20045         enabled.  They were declared obsolete for good reasons (see
20046         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20047         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
20048         should not continue using the deprecated macros.
20049         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
20050         obsolete Autoconf macros with modern counterparts.
20051         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20052         * m4/dos.m4 (gl_AC_DOS): Likewise.
20053         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
20054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20055         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
20056         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
20057         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
20058         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20059         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
20060         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
20061         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20062         Likewise.
20063         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20064         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20065         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
20066         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
20067         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20068         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20069
20070 2009-09-01  Eric Blake  <ebb9@byu.net>
20071
20072         fchdir: fix off-by-one bug in previous patch
20073         * lib/fchdir.c (rpl_fstat): Use correct bounds.
20074         (_gl_unregister_fd): Delete useless if.
20075
20076 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
20077
20078         maint.mk: sort the list of syntax-check rules
20079         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
20080         easier to get a sense of progress when the rules are run sequentially
20081         and take a long time.
20082
20083 2009-09-01  Simon Josefsson  <simon@josefsson.org>
20084
20085         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
20086         * modules/netinet_in: Likewise.
20087         * modules/sys_file: Likewise.
20088         * modules/sys_ioctl: Likewise.
20089         * modules/sys_select: Likewise.
20090         * modules/sys_socket: Likewise.
20091         * modules/sys_stat: Likewise.
20092         * modules/sys_time: Likewise.
20093         * modules/sys_times: Likewise.
20094         * modules/sys_utsname: Likewise.
20095         * modules/sys_wait: Likewise.
20096
20097 2009-09-01  Jim Meyering  <meyering@redhat.com>
20098
20099         fts: help ensure that return values are not ignored
20100         * lib/fts_.h (__GNUC_PREREQ): Define.
20101         (__attribute_warn_unused_result__): Define.
20102         (fts_children, fts_close, fts_open, fts_read): Declare with
20103         __attribute_warn_unused_result__.
20104
20105         fts: fts_close now fails also when closing a dir file descriptor fails
20106         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
20107         and propagate to caller, along with errno.
20108
20109         announce-gen: correct formatting in --help output
20110         * build-aux/announce-gen (usage): Move the one-line description in
20111         --help output "up", to where it belongs, just after Usage:.
20112
20113 2009-08-31  Eric Blake  <ebb9@byu.net>
20114
20115         fchdir: port to mingw
20116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
20117         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
20118         opened, then use a substitute.
20119         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
20120         replacement.
20121         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
20122         (_gl_register_fd): No need to check stat if open already filters
20123         all directories.
20124         (fchdir): Fix error condition to match POSIX.
20125         * modules/fchdir (Depends-on): Add sys_stat.
20126         * doc/posix-functions/open.texi (open): Document the limitation.
20127         * modules/fchdir-tests: New file.
20128         * tests/test-fchdir.c: Likewise.
20129
20130         canonicalize: allow cross-testing from cygwin to mingw
20131         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
20132         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
20133         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
20134         Likewise.
20135         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
20136         target does not support symlinks.
20137         * tests/test-canonicalize-lgpl.sh: Likewise.
20138
20139         chown: avoid compilation warning on mingw
20140         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
20141         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
20142         mingw.
20143         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20144         * modules/chown (Depends-on): Add errno.
20145
20146 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20147
20148         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
20149         command.
20150
20151 2009-08-31  Jim Meyering  <meyering@redhat.com>
20152
20153         canonicalize: remove useless initialization
20154         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
20155         initialization of local, "end".
20156
20157 2009-08-30  Bruno Haible  <bruno@clisp.org>
20158
20159         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
20160         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
20161         ENOSYS.
20162
20163 2009-08-30  Bruno Haible  <bruno@clisp.org>
20164
20165         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
20166         /usr/xpg4/bin/tr when it exists.
20167         * tests/test-pipe-filter-gi1.sh: Likewise.
20168
20169 2009-08-30  Bruno Haible  <bruno@clisp.org>
20170
20171         Work around deficient /usr/bin/id program on Solaris.
20172         * tests/test-file-has-acl.sh (ID): New variable.
20173         * tests/test-set-mode-acl.sh (ID): Likewise.
20174         * tests/test-copy-acl.sh (ID): Likewise.
20175         * tests/test-copy-file.sh (ID): Likewise.
20176
20177 2009-08-30  Bruno Haible  <bruno@clisp.org>
20178
20179         New module 'xstriconveh'.
20180         * lib/xstriconveh.h: New file.
20181         * lib/xstriconveh.c: New file.
20182         * modules/xstriconveh: New file.
20183
20184 2009-08-30  Bruno Haible  <bruno@clisp.org>
20185
20186         Make it easier to use mem_cd_iconveh.
20187         * lib/striconveh.h (iconveh_t): New type.
20188         (iconveh_open, iconveh_close): New declarations.
20189         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20190         with a single 'const iconveh_t *' argument.
20191         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
20192         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20193         with a single 'const iconveh_t *' argument.
20194         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
20195         * tests/test-striconveh.c (main): Update.
20196         * NEWS: Mention the change.
20197
20198 2009-08-30  Bruno Haible  <bruno@clisp.org>
20199
20200         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
20201         problem.
20202
20203 2009-08-30  Bruno Haible  <bruno@clisp.org>
20204
20205         Work around iconv_open problem on Solaris.
20206         * lib/iconv_open-solaris.gperf: New file.
20207         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
20208         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
20209         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
20210         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
20211         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
20212         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
20213
20214 2009-08-29  Jim Meyering  <meyering@redhat.com>
20215
20216         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
20217         * top/maint.mk (cvs-check): Remove target; it was just an alias
20218         to the better-named vc-diff-check.
20219         (maintainer-distcheck): Remove rule.  It was used only from
20220         the (alpha/beta/major) target, and all of its commands but one
20221         were coreutils-specific.
20222         (vc-dist): Remove rule.
20223         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
20224         Run vc-diff-check, not vc-dist.
20225         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
20226
20227 2009-08-27  Bruno Haible  <bruno@clisp.org>
20228
20229         * tests/test-bitrotate.c (main): Remove test that uses a shift count
20230         of 0.
20231
20232 2009-08-27  Bruno Haible  <bruno@clisp.org>
20233
20234         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
20235         compilers.
20236         * doc/func.texi: Document the SunPRO C bug.
20237
20238 2009-08-27  Bruno Haible  <bruno@clisp.org>
20239
20240         Fix link error on Solaris.
20241         * tests/test-parse-duration.c (xstrdup): Remove function.
20242
20243 2009-08-26  Pádraig Brady  <P@draigbrady.com>
20244
20245         ignore-value: handle pointer types, too
20246         * lib/ignore-value.h (__attribute__): Remove definition.
20247         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
20248         of a more concise and more-often effective "(void) i" statement.
20249         (ignore_ptr): New function to suppress warnings from functions that
20250         return pointers, and to make it explicit that one function doesn't
20251         handle all cases.
20252
20253 2009-08-25  Bruno Haible  <bruno@clisp.org>
20254
20255         dup2: work around a Linux bug.
20256         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
20257         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
20258         * doc/posix-functions/dup2.texi: Mention the Linux bug.
20259         Reported by Simon Josefsson.
20260
20261 2009-08-25  Jim Meyering  <meyering@redhat.com>
20262
20263         libguestfs uses gnulib
20264         * users.txt: Add libguestfs.
20265
20266 2009-08-24  Eric Blake  <ebb9@byu.net>
20267
20268         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
20269         * lib/pipe2.c (includes): Add binary-io.h.
20270         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
20271
20272 2009-08-24  Bruno Haible  <bruno@clisp.org>
20273
20274         Tolerate declared but missing accept4 syscall.
20275         * lib/accept4.c (accept4): Invoke original accept4 function first, if
20276         available.
20277         * lib/sys_socket.in.h (accept4): If the function is already present,
20278         override it.
20279         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
20280         * modules/accept4 (Makefile.am): Compile accept4.c always.
20281         Reported by Paolo Bonzini and Eric Blake.
20282
20283 2009-08-23  Bruno Haible  <bruno@clisp.org>
20284
20285         New module 'accept4'.
20286         * lib/sys_socket.in.h (accept4): New declaration.
20287         * lib/accept4.c: New file.
20288         * m4/accept4.m4: New file.
20289         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20290         GNULIB_ACCEPT4, HAVE_ACCEPT4.
20291         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
20292         HAVE_ACCEPT4.
20293         * modules/accept4: New file.
20294         * doc/glibc-functions/accept4.texi: Mention the new module.
20295
20296 2009-08-24  Jim Meyering  <meyering@redhat.com>
20297
20298         progname: also set global program_invocation_name, when possible
20299         Before this change, a libtool-enabled program that calls glibc's
20300         error function would report the program name as
20301         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
20302         * modules/progname (configure.ac): Check for a declaration of
20303         program_invocation_name.
20304         * lib/progname.c:  Include <errno.h>.
20305         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
20306         Set program_invocation_name.
20307
20308 2009-08-23  Bruno Haible  <bruno@clisp.org>
20309
20310         * lib/dup3.c: Include <string.h>.
20311
20312 2009-08-23  Bruno Haible  <bruno@clisp.org>
20313
20314         * lib/dup3.c (dup3): Test only once whether the system actually exists.
20315         * lib/pipe2.c (pipe2): Likewise.
20316         Suggested by Eric Blake.
20317
20318 2009-08-23  Bruno Haible  <bruno@clisp.org>
20319
20320         Tolerate declared but missing dup3 syscall.
20321         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
20322         * lib/unistd.in.h (dup3): If the function is already present,
20323         override it.
20324         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
20325         * modules/dup3 (Makefile.am): Compile dup3.c always.
20326         Reported by Paolo Bonzini.
20327
20328 2009-08-23  Bruno Haible  <bruno@clisp.org>
20329
20330         Tolerate declared but missing pipe2 syscall.
20331         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
20332         available.
20333         * lib/unistd.in.h (pipe2): If the function is already present,
20334         override it.
20335         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
20336         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
20337         Reported by Paolo Bonzini.
20338
20339 2009-08-23  Bruno Haible  <bruno@clisp.org>
20340
20341         * lib/pipe2.c (pipe2): Move #ifs inside function.
20342
20343 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20344
20345         quotearg: document limitations of quote_these_too
20346         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
20347         those limitations are created.
20348         * lib/quotearg.h (set_char_quoting): Document that digits and
20349         letters that are special after backslash are not permitted.
20350         (quotearg_char): Cross-reference set_char_quoting documentation.
20351
20352 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
20353
20354         quotearg: implement custom_quoting_style
20355         * lib/quotearg.c: (struct quoting_options): Add left_quote and
20356         right_quote fields.
20357         (set_custom_quoting): New public function.
20358         (quotearg_buffer_restyled): Add left_quote and right_quote
20359         arguments, handle them very much like locale quoting, and update
20360         all uses.
20361         (quotearg_n_custom): New public function.
20362         (quotearg_n_custom_mem): New public function.
20363         (quotearg_custom): New public function.
20364         (quotearg_custom_mem): New public function.
20365         * lib/quotearg.h: Prototype and document new public functions.
20366         (enum quoting_style): For escape_quoting_style and
20367         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
20368         ignored even though they're otherwise like c_quoting_style.
20369         Add custom_quoting_style member and document with comparison to
20370         clocale_quoting_style.
20371         * tests/test-quotearg.c (custom_quotes): New array.
20372         (custom_results): New array.
20373         (main): Extend to test custom quoting.
20374
20375 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20376
20377         quotearg: fix right quote escaping when it's in quote_these_too
20378         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
20379         quote, be sure to prepend only one backslash.
20380         * tests/test-quotearg.c (use_quote_double_quotes): New function.
20381         (main): Test it.
20382
20383 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20384
20385         quotearg-tests: test escaping of embedded locale quotes
20386         * tests/test-quotearg.c (struct result_strings): Add member for
20387         new input.
20388         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
20389         (inputs): Add new input.
20390         (results_g): Add expected results.
20391         (flag_results): Likewise.
20392         (locale_results): Likewise.
20393         (compare_strings): Check those.
20394
20395 2009-08-23  Bruno Haible  <bruno@clisp.org>
20396
20397         Tests for module 'dup3'.
20398         * modules/dup3-tests: New file.
20399         * tests/test-dup3.c: New file.
20400
20401         New module 'dup3'.
20402         * lib/unistd.in.h (dup3): New declaration.
20403         * lib/dup3.c: New file.
20404         * m4/dup3.m4: New file.
20405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
20406         HAVE_DUP3.
20407         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
20408         * modules/dup3: New file.
20409         * doc/glibc-functions/dup3.texi: Mention the new module.
20410
20411 2009-08-23  Bruno Haible  <bruno@clisp.org>
20412
20413         Tweak the dup2 test.
20414         * tests/test-dup2.c (main): Create the test file empty. Verify that an
20415         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
20416         the test file is still empty. Fix argument order of lseek.
20417
20418 2009-08-23  Bruno Haible  <bruno@clisp.org>
20419
20420         Avoid test link errors when the modules getopt-gnu, gettext are used.
20421         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
20422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20423
20424 2009-08-23  Bruno Haible  <bruno@clisp.org>
20425
20426         Fix getdtablesize() on mingw.
20427         * lib/getdtablesize.c (getdtablesize): Implement differently.
20428         * lib/unistd.in.h (getdtablesize): Improve comment.
20429
20430 2009-08-23  Bruno Haible  <bruno@clisp.org>
20431
20432         New module 'mkostemp'.
20433         Based on Ulrich Drepper's 2007-08-10 change in glibc.
20434         * lib/stdlib.in.h (mksotemp): New declaration.
20435         * lib/mkostemp.c: New file, from glibc with modifications.
20436         * lib/tempname.h (GT_FILE): Remove outdated comment.
20437         (gen_tempname): Add flags argument.
20438         * lib/tempname.c (__GT_BIGFILE): Remove macro.
20439         (__GT_FILE): Map to 1.
20440         (small_open, large_open): Remove macros.
20441         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
20442         * lib/mkstemp.c (mkstemp): Update.
20443         * lib/mkdtemp.c (mkdtemp): Likewise.
20444         * m4/mkostemp.m4: New file.
20445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
20446         HAVE_MKOSTEMP.
20447         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
20448         HAVE_MKOSTEMP.
20449         * modules/mkostemp: New file, based on modules/mkstemp.
20450         * doc/glibc-functions/mkostemp.texi: Mention the new module.
20451         * NEWS: Mention the change.
20452
20453 2009-08-23  Bruno Haible  <bruno@clisp.org>
20454
20455         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
20456         Reported by Eric Blake.
20457
20458 2009-08-23  Bruno Haible  <bruno@clisp.org>
20459
20460         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
20461         Reported by Eric Blake.
20462
20463 2009-08-23  Bruno Haible  <bruno@clisp.org>
20464
20465         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
20466         * modules/pipe2 (Depends-on): Likewise.
20467
20468 2009-08-23  Eric Blake  <ebb9@byu.net>
20469
20470         fcntl-h: add O_TTY_INIT support
20471         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
20472         * tests/test-fcntl-h.c (o): Test it.
20473         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20474
20475         fcntl-h: rename from fcntl, in preparation for fcntl(2)
20476         * modules/fcntl: Move <fcntl.h> header replacement...
20477         * modules/fcntl-h: ...to new name, so as not to collide with
20478         like-named function.
20479         * tests/test-fcntl.c: Rename...
20480         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
20481         * modules/fcntl-tests: Rename...
20482         * modules/fcntl-h-tests: ...to this.  Update test file name.
20483         * modules/chdir-long (Depends-on): Update clients.
20484         * modules/chdir-safer (Depends-on): Likewise.
20485         * modules/fcntl-safer (Depends-on): Likewise.
20486         * modules/fts (Depends-on): Likewise.
20487         * modules/mkancesdirs (Depends-on): Likewise.
20488         * modules/mkdir-p (Depends-on): Likewise.
20489         * modules/open (Depends-on): Likewise.
20490         * modules/savewd (Depends-on): Likewise.
20491         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
20492         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20493
20494 2009-08-22  Bruno Haible  <bruno@clisp.org>
20495
20496         * modules/binary-io (License): Relicense under LGPL.
20497         * modules/pipe2 (License): Likewise.
20498
20499 2009-08-22  Bruno Haible  <bruno@clisp.org>
20500
20501         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
20502         return value.
20503         * lib/pipe-filter-gi.c (filter_init): Likewise.
20504         Reported by Eric Blake.
20505
20506 2009-08-22  Bruno Haible  <bruno@clisp.org>
20507
20508         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
20509         * modules/pipe (Depends-on): Add pipe2.
20510
20511 2009-08-22  Bruno Haible  <bruno@clisp.org>
20512
20513         Tests for module 'pipe2'.
20514         * modules/pipe2-tests: New file.
20515         * tests/test-pipe2.c: New file.
20516
20517         New module 'pipe2'.
20518         * lib/unistd.in.h (pipe2): New declaration.
20519         * lib/pipe2.c: New file.
20520         * m4/pipe2.m4: New file.
20521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
20522         HAVE_PIPE2.
20523         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
20524         * modules/pipe2: New file.
20525         * doc/glibc-functions/pipe2.texi: Mention the new module.
20526
20527 2009-08-22  Bruno Haible  <bruno@clisp.org>
20528
20529         Reference some new glibc functions.
20530         * doc/glibc-functions/accept4.texi: New file.
20531         * doc/glibc-functions/dup3.texi: New file.
20532         * doc/glibc-functions/mkostemp.texi: New file.
20533         * doc/glibc-functions/pipe2.texi: New file.
20534         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
20535         (Glibc sys/socket.h): Refer to accept4.
20536         (Glibc unistd.h): Refer to dup3, pipe2.
20537         Reported by Eric Blake.
20538
20539 2009-08-22  Jim Meyering  <meyering@redhat.com>
20540             Bruno Haible  <bruno@clisp.org>
20541
20542         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
20543         This makes it so packages using automake-1.11's silent-rules option
20544         can print e.g., a single "GEN    configmake.h" line, rather than
20545         the 30+ statements that perform the job.  If you want to see the
20546         actual commands, you can still run "make V=1".
20547         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
20548         so that make output is abbreviated when those variables are defined
20549         appropriately.
20550         * modules/argz: Likewise.
20551         * modules/arpa_inet: Likewise.
20552         * modules/byteswap: Likewise.
20553         * modules/configmake: Likewise.
20554         * modules/dirent: Likewise.
20555         * modules/errno: Likewise.
20556         * modules/fcntl: Likewise.
20557         * modules/float: Likewise.
20558         * modules/fnmatch: Likewise.
20559         * modules/getopt-posix: Likewise.
20560         * modules/glob: Likewise.
20561         * modules/iconv_open: Likewise.
20562         * modules/inttypes: Likewise.
20563         * modules/localcharset: Likewise.
20564         * modules/locale: Likewise.
20565         * modules/math: Likewise.
20566         * modules/netdb: Likewise.
20567         * modules/netinet_in: Likewise.
20568         * modules/poll: Likewise.
20569         * modules/posix_spawnp-tests: Likewise.
20570         * modules/sched: Likewise.
20571         * modules/search: Likewise.
20572         * modules/selinux-h: Likewise.
20573         * modules/signal: Likewise.
20574         * modules/spawn: Likewise.
20575         * modules/stdarg: Likewise.
20576         * modules/stdbool: Likewise.
20577         * modules/stddef: Likewise.
20578         * modules/stdint: Likewise.
20579         * modules/stdio: Likewise.
20580         * modules/stdlib: Likewise.
20581         * modules/string: Likewise.
20582         * modules/strings: Likewise.
20583         * modules/sys_file: Likewise.
20584         * modules/sys_ioctl: Likewise.
20585         * modules/sys_select: Likewise.
20586         * modules/sys_socket: Likewise.
20587         * modules/sys_stat: Likewise.
20588         * modules/sys_time: Likewise.
20589         * modules/sys_times: Likewise.
20590         * modules/sys_utsname: Likewise.
20591         * modules/sys_wait: Likewise.
20592         * modules/sysexits: Likewise.
20593         * modules/time: Likewise.
20594         * modules/unistd: Likewise.
20595         * modules/wchar: Likewise.
20596         * modules/wctype: Likewise.
20597
20598 2009-08-22  Jim Meyering  <meyering@redhat.com>
20599
20600         announce-gen: detect write failure
20601         * build-aux/announce-gen: Add Coda at end.
20602         Remove equivalent-but-more-verbose block at top.
20603
20604 2009-08-19  Akim Demaille  <demaille@gostai.com>
20605
20606         bootstrap: --help to stdout.
20607         * bootstrap (usage): Don't send --help to stderr.
20608         Use a here doc instead of a long string.
20609
20610 2009-08-21  Eric Blake  <ebb9@byu.net>
20611
20612         test-popen-safer: split from test-popen
20613         * tests/test-popen.c (main): Move...
20614         * tests/test-popen.h: ...into new file.
20615         * tests/test-popen-safer2.c: New file.
20616         * modules/popen-tests (Files): Add test-popen.h.
20617         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
20618         Suggested by Bruno Haible.
20619
20620         test-fcntl-safer: split from test-open
20621         * tests/test-open.c (main): Move...
20622         * tests/test-open.h: ...into new file.
20623         * tests/test-fcntl-safer.c: New file.
20624         * modules/open-tests (Files): Add test-open.h.
20625         * modules/fcntl-safer-tests: New file.
20626         Suggested by Bruno Haible.
20627
20628         test-fopen-safer: split from test-fopen
20629         * tests/test-fopen.c (main): Move...
20630         * tests/test-fopen.h: ...into new file.
20631         * tests/test-fopen-safer.c: New file.
20632         * modules/fopen-tests (Files): Add test-fopen.h.
20633         * modules/fopen-safer-tests: New file.
20634         Suggested by Bruno Haible.
20635
20636 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
20637
20638         popen-safer: test O_CLOEXEC at run-time.
20639         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
20640
20641 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
20642
20643         fcntl: move more flags to the header
20644         * lib/cloexec.c: Do not define FD_CLOEXEC here.
20645         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
20646         * lib/fcntl.in.h: Do both things here.
20647
20648 2009-08-21  Jim Meyering  <meyering@redhat.com>
20649
20650         consistently remove $@-t before redirecting to it
20651         * modules/argz: Remove $@-t and $@ before redirecting to the former.
20652         * modules/alloca-opt: Likewise.
20653         * modules/byteswap: Likewise.
20654         * modules/fnmatch: Likewise.
20655         * modules/getopt-posix: Likewise.
20656         * modules/glob: Likewise.
20657         * modules/poll: Likewise.
20658         * modules/posix_spawnp-tests: Likewise.
20659         * modules/sys_socket: Likewise.
20660         * modules/sysexits: Likewise.
20661
20662 2009-08-21  Eric Blake  <ebb9@byu.net>
20663
20664         popen: simplify access to original popen
20665         * lib/popen.c (rpl_popen): No need to worry about popen being a
20666         macro.
20667         Reported by Bruno Haible.
20668
20669 2009-08-20  Eric Blake  <ebb9@byu.net>
20670
20671         build: avoid some compiler warnings
20672         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
20673         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
20674         type.
20675         (new_exclude_segment, excluded_file_pattern_p)
20676         (excluded_file_name_p): Reduce scope.
20677         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
20678         old-style declaration.
20679
20680 2009-08-20  Simon Josefsson  <simon@josefsson.org>
20681
20682         * tests/test-exclude1.sh: Handle Windows EOL.
20683         * tests/test-exclude2.sh: Likewise.
20684         * tests/test-exclude3.sh: Likewise.
20685         * tests/test-exclude4.sh: Likewise.
20686         * tests/test-exclude5.sh: Likewise.
20687         * tests/test-exclude6.sh: Likewise.
20688         * tests/test-exclude7.sh: Likewise.
20689
20690 2009-08-19  Akim Demaille  <demaille@gostai.com>
20691
20692         bootstrap: find sha1sum when named gsha1sum.
20693         * bootstrap (find_tool): New.
20694         ($SHA1SUM): New.
20695         Use it.
20696
20697 2009-08-20  Jim Meyering  <meyering@redhat.com>
20698
20699         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
20700         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
20701         expression that converts "." in a file name to "\." in the resulting
20702         regexp.  Start with a dummy statement, so that prior shell variable
20703         definitions are expanded portably.  Reported by Simon Josefsson.
20704
20705 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
20706
20707         Fix polling for writeability of a screen buffer.
20708         * lib/poll.c: Distinguish input and screen buffers for the
20709         Win32 implementation.
20710         * lib/select.c: Likewise.
20711
20712 2009-08-19  Eric Blake  <ebb9@byu.net>
20713
20714         popen-safer: prevent popen from clobbering std descriptors
20715         * modules/popen-safer: New file.
20716         * lib/popen-safer.c: Likewise.
20717         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
20718         * lib/stdio--.h (popen): Provide override.
20719         * lib/stdio-safer.h (popen_safer): Provide declaration.
20720         * tests/test-popen.c (includes): Partially test this.
20721         * modules/popen-safer-tests: New file, for more tests.
20722         * tests/test-popen-safer.c: Likewise.
20723         * MODULES.html.sh (file stream based Input/Output): Mention it.
20724
20725         tests: test some of the *-safer modules
20726         * modules/fopen-safer (Depends-on): Add fopen.
20727         * modules/fcntl-safer (Depends-on): Add fcntl.
20728         * modules/stdlib-safer (Depends-on): Add stdlib.
20729         (configure.ac): Set indicator.
20730         * modules/unistd-safer (configure.ac): Likewise.
20731         * modules/tmpfile-safer (configure.ac): Likewise.
20732         (Depends-on): Add tmpfile.
20733         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
20734         active.
20735         * tests/test-fopen.c (includes): Test safer versions when they are
20736         in use.
20737         * tests/test-open.c (includes): Likewise.
20738
20739         popen: fix cygwin 1.5 bug when stdin closed
20740         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
20741         * modules/popen: New file.
20742         * modules/popen-tests: Likewise.
20743         * tests/test-popen.c: Likewise.
20744         * m4/popen.m4: Likewise.
20745         * lib/popen.c: Likewise.
20746         * lib/stdio.in.h (popen): New declaration.
20747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
20748         * modules/stdio (Makefile.am): Likewise.
20749         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
20750
20751 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
20752
20753         maint.mk: give full control over update-copyright exclusions
20754         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
20755         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
20756         (update-copyright): Don't force inclusion of top-level
20757         ChangeLog.  Don't force exclusion of all COPYING files, but make
20758         them the default exclusion instead.
20759
20760 2009-08-16  Bruno Haible  <bruno@clisp.org>
20761
20762         Fix test failures on Solaris 10.
20763         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
20764         tests when Solaris iconv() is used.
20765         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20766         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20767         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20768         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20769         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20770
20771 2009-08-16  Bruno Haible  <bruno@clisp.org>
20772
20773         Fix test failures on Solaris 10.
20774         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
20775         'tr' program and pass it as first argument.
20776         * tests/test-pipe-filter-gi1.sh: Likewise.
20777         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
20778         program as first argument.
20779         * tests/test-pipe-filter-gi1.c (main): Likewise.
20780
20781 2009-08-16  Eric Blake  <ebb9@byu.net>
20782
20783         fpurge: fix previous commits
20784         * modules/fpurge (Makefile.am): Make replacement conditional,
20785         partially reverting 2007-04-29 change; missed in previous
20786         attempt.
20787         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
20788         is missing.
20789
20790 2009-08-16  Bruno Haible  <bruno@clisp.org>
20791
20792         Clarify fpurge's effect on the file position.
20793         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
20794         * tests/test-fpurge.c (main): Make a second pass for checking the file
20795         position.
20796
20797 2009-08-16  Bruno Haible  <bruno@clisp.org>
20798
20799         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
20800         declaration of fpurge is missing.
20801         * tests/test-fpurge.c (main): Check that the file has not more contents
20802         than expected. Close the file before removing it.
20803
20804 2009-08-15  Eric Blake  <ebb9@byu.net>
20805
20806         fpurge: don't wrap working cygwin implementation
20807         * lib/fpurge.c (fpurge): Fix comment typo.
20808         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
20809         1.7 to avoid replacement.
20810         * tests/test-fpurge.c (main): Enhance test.
20811
20812 2009-08-15  Eric Blake  <ebb9@byu.net>
20813         and Jim Meyering  <meyering@redhat.com>
20814
20815         test-update-copyright: skip if perl is insufficient
20816         * tests/test-update-copyright.sh: Failure to run maintainer tool
20817         should not cause testsuite failure on cygwin 1.5.
20818
20819 2009-08-14  Eric Blake  <ebb9@byu.net>
20820
20821         doc: mention more functions added in cygwin 1.7.0
20822         * doc/posix-headers/limits.texi (limits.h): Update for recent
20823         cygwin additions.
20824         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
20825         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20826         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
20827         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
20828         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
20829
20830 2009-08-14  Eric Blake  <ebb9@byu.net>
20831
20832         maint.mk: simplify update-copyright rule
20833         * top/maint.mk (update-copyright-local): Delete, and document how
20834         to do it in cfg.mk instead.
20835         (update-copyright-exclude-regexp): Delete, and document how to do
20836         it in .x-update-copyright instead.
20837         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
20838         exclude ChangeLog.
20839
20840 2009-08-14  Bruno Haible  <bruno@clisp.org>
20841
20842         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
20843
20844 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20845
20846         maint.mk: support update-copyright-env
20847         * top/maint.mk (update-copyright-env): Define place-holder.
20848         (update-copyright): Expand $(update-copyright-env) before
20849         invoking update-copyright.
20850
20851 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20852
20853         update-copyright: implement forced reformatting
20854         * build-aux/update-copyright: Implement and document
20855         UPDATE_COPYRIGHT_FORCE.
20856         * tests/test-update-copyright.sh: Test it.
20857
20858 2009-08-14  Eric Blake  <ebb9@byu.net>
20859         and Bruno Haible  <bruno@clisp.org>
20860
20861         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
20862         * tests/test-locale.c: Revert previous patch related to NULL.
20863         * tests/test-stdio.c: Likewise.
20864         * tests/test-stdlib.c: Likewise.
20865         * tests/test-string.c: Likewise.
20866         * tests/test-unistd.c: Likewise.
20867         * modules/time-tests (Depends-on): Add verify.
20868         * modules/wchar-tests (Depends-on): Likewise.
20869         * tests/test-time.c: Test for NULL compliance.
20870         * tests/test-wchar.c: Likewise.
20871         * modules/locale (Depends-on): Add stddef.
20872         * modules/stdio (Depends-on): Likewise.
20873         * modules/stdlib (Depends-on): Likewise.
20874         * modules/string (Depends-on): Likewise.
20875         * modules/time (Depends-on): Likewise.
20876         * modules/unistd (Depends-on): Likewise.
20877         * modules/wchar (Depends-on): Likewise.
20878         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
20879         * lib/stdlib.in.h (includes): Likewise.
20880         * lib/string.in.h (includes): Likewise.
20881         * lib/time.in.h (includes): Likewise.
20882         * lib/unistd.in.h (includes): Likewise.
20883         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
20884         replaced.
20885         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20886         * m4/stddef_h.m4: New file.
20887         * modules/stddef: Likewise.
20888         * lib/stddef.in.h: Likewise.
20889         * modules/stddef-tests: Likewise.
20890         * tests/test-stddef.c: Likewise.
20891         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
20892         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
20893         * doc/posix-headers/locale.texi (locale.h): Likewise.
20894         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
20895         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20896         * doc/posix-headers/string.texi (string.h): Likewise.
20897         * doc/posix-headers/time.texi (time.h): Likewise.
20898         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
20899         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
20900
20901 2009-08-14  Eric Blake  <ebb9@byu.net>
20902
20903         doc: improve git diff of texinfo files
20904         * .gitattributes: Add rule for *.texi files, with hint on how to
20905         use it.
20906         Copied from m4, and based on a report by Bruno Haible.
20907
20908 2009-08-14  Bruno Haible  <bruno@clisp.org>
20909
20910         Disable multithread support by default on Cygwin 1.5.x for real.
20911         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
20912
20913 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20914
20915         update-copyright: much ado about intervals
20916         * build-aux/update-copyright: Implement and document
20917         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
20918         of copyright year intervals.
20919         Also, document UPDATE_COPYRIGHT_YEAR.
20920         * tests/test-update-copyright.sh: Test it.
20921
20922         update-copyright: convert 2-digit to 4-digit years
20923         * build-aux/update-copyright: Implement and document.
20924         * tests/test-update-copyright.sh: Update.
20925
20926 2009-08-14  Jim Meyering  <meyering@redhat.com>
20927
20928         test-exclude: avoid coreutils "make check" failure
20929         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
20930         just as in test-argmatch.c.
20931
20932 2009-08-13  Eric Blake  <ebb9@byu.net>
20933
20934         test-dup2: fix bad assumption
20935         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
20936         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
20937
20938         test-version-etc: fix CRLF portability issue
20939         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
20940         recognize \r.
20941         * tests/test-argp-version-etc-1.sh: Likewise.
20942
20943         getopt: update client modules
20944         * modules/argp (Depends-on): Use getopt-gnu.
20945         * modules/git-merge-changelog (Depends-on): Likewise.
20946         * modules/long-options (Depends-on): Likewise.
20947         * modules/xstrtol (Depends-on): Likewise.
20948
20949 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20950
20951         * tests/test-version-etc.sh: Don't fail on different
20952         project/version.  Don't fail on CRLF differences.  Rewrite to use
20953         multiple -e instead of multiple sed forks, suggested by Eric Blake
20954         <ebb9@byu.net>.
20955         * tests/test-argp-version-etc-1.sh: Likewise.
20956
20957 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20958
20959         * tests/test-version-etc.sh: Don't fail on different
20960         project/version.
20961
20962 2009-08-12  Bruno Haible  <bruno@clisp.org>
20963
20964         Tests for modules 'getopt-posix', 'getopt-gnu'.
20965         * modules/getopt-posix-tests: New file.
20966         * tests/test-getopt.c: New file.
20967         * tests/test-getopt.h: New file.
20968         * tests/test-getopt_long.h: New file.
20969
20970         New modules 'getopt-posix', 'getopt-gnu'.
20971         * modules/getopt-gnu: New file, renamed from modules/getopt.
20972         * modules/getopt-posix: New file.
20973         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
20974         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
20975         (gl_GETOPT): Remove macro.
20976         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
20977         Disable the test against BSD systems that declare optreset. Test
20978         against mingw bug. Test against lack of support of optional arguments
20979         on many platforms.
20980         * doc/glibc-headers/getopt.texi: Update module name and list of
20981         relevant platforms.
20982         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
20983         'getopt-gnu' and more portability problems.
20984         * NEWS: Mention the changes.
20985
20986 2009-08-12  Bruno Haible  <bruno@clisp.org>
20987
20988         Ensure that optarg etc. get declared by <unistd.h>.
20989         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
20990         AC_USE_SYSTEM_EXTENSIONS.
20991         * modules/getopt (Depends-on): Add 'extensions'.
20992
20993 2009-08-12  Bruno Haible  <bruno@clisp.org>
20994
20995         Avoid test link errors.
20996         * modules/pipe-filter-ii-tests (Makefile.am): Define
20997         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
20998         * modules/pipe-filter-gi-tests (Makefile.am): Define
20999         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21001
21002 2009-08-12  Bruno Haible  <bruno@clisp.org>
21003
21004         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21005         gl_GETOPT_SUBSTITUTE before.
21006         (gl_GETOPT): Use it.
21007         * m4/argp.m4 (gl_ARGP): Update.
21008         Reported by Sergey Poznyakoff.
21009
21010         * m4/getopt.m4: Reorder macros.
21011         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21012         (gl_GETOPT_SUBSTITUTE): Remove macro.
21013
21014 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21015
21016         Minor improvement in gitlog-to-changelog
21017
21018         * build-aux/gitlog-to-changelog: New option `--format' makes
21019         output format string configurable.
21020
21021 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21022
21023         Optimize exclude: use hash tables for non-wildcard patterns.
21024
21025         * lib/exclude.c: Include hash.h and mbuiter.h
21026         (struct exclude_pattern, exclude_segment): New data types.
21027         (struct exclude): Rewrite.
21028         (fnmatch_pattern_has_wildcards): New function.
21029         (new_exclude_segment, free_exclude_segment): New functions.
21030         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21031         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21032         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21033         * modules/exclude: Depend on hash and mbuiter.
21034
21035         * modules/exclude-tests: New file.
21036         * tests/test-exclude.c: New file.
21037         * tests/test-exclude1.sh: New file.
21038         * tests/test-exclude2.sh: New file.
21039         * tests/test-exclude3.sh: New file.
21040         * tests/test-exclude4.sh: New file.
21041         * tests/test-exclude5.sh: New file.
21042         * tests/test-exclude6.sh: New file.
21043         * tests/test-exclude7.sh: New file.
21044
21045 2009-08-12  Bruno Haible  <bruno@clisp.org>
21046
21047         Ensure that getopt() gets declared by <unistd.h>.
21048         * lib/unistd.in.h: Conditionally include getopt.h.
21049         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
21050         Set GNULIB_UNISTD_H_GETOPT.
21051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21052         GNULIB_UNISTD_H_GETOPT.
21053         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
21054
21055 2009-08-12  Bruno Haible  <bruno@clisp.org>
21056
21057         Clarify logic.
21058         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
21059         gl_replace_getopt instead of GETOPT_H.
21060
21061 2009-08-12  Bruno Haible  <bruno@clisp.org>
21062
21063         * m4/getopt.m4: Add comments.
21064
21065 2009-08-12  Bruno Haible  <bruno@clisp.org>
21066
21067         Disable multithread support by default on Cygwin 1.5.x.
21068         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
21069         set gl_use_threads=no if not specified otherwise.
21070
21071 2009-08-11  Bruno Haible  <bruno@clisp.org>
21072
21073         Avoid compilation error on NetBSD 5.0.
21074         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
21075         * tests/test-stdio.c: Likewise.
21076         * tests/test-stdlib.c: Likewise.
21077         * tests/test-string.c: Likewise.
21078         * tests/test-unistd.c: Likewise.
21079         Reported by Greg Troxel <gdt@ir.bbn.com>
21080         at <https://savannah.gnu.org/support/?106973>.
21081
21082 2009-08-11  Bruno Haible  <bruno@clisp.org>
21083
21084         * modules/dup2-tests (Depends-on): Remove close.
21085
21086         Undo 2009-07-19 commit.
21087         * modules/acl-tests (Depends-on): Remove close.
21088         * modules/binary-io-tests (Depends-on): Likewise.
21089         * modules/closein-tests (Depends-on): Likewise.
21090         * modules/flock-tests (Depends-on): Likewise.
21091         * modules/fsync-tests (Depends-on): Likewise.
21092         * modules/lseek-tests (Depends-on): Likewise.
21093         * modules/pipe-tests (Depends-on): Likewise.
21094         * modules/posix_spawn-tests (Depends-on): Likewise.
21095         * modules/posix_spawnp-tests (Depends-on): Likewise.
21096         * modules/stat-time-tests (Depends-on): Likewise.
21097         * modules/yesno-tests (Depends-on): Likewise.
21098
21099 2009-08-10  Bruno Haible  <bruno@clisp.org>
21100
21101         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
21102
21103 2009-08-10  Bruno Haible  <bruno@clisp.org>
21104
21105         Fix a gcc warning.
21106         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
21107
21108 2009-08-10  Bruno Haible  <bruno@clisp.org>
21109
21110         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
21111         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
21112         not only the first time.
21113         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
21114         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
21115         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
21116         is 1, not only the the first time.
21117
21118 2009-08-10  Bruno Haible  <bruno@clisp.org>
21119
21120         Make it possible to use module 'gethostname' without module 'close'.
21121         * lib/unistd.in.h (close): Evoke a link error only if
21122         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21124         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21125         * modules/unistd (Makefile.am): Substitute
21126         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21127         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
21128         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21129         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21130         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21131         * modules/sys_ioctl (Makefile.am): Substitute
21132         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21133         * modules/socket (configure.ac): On native Windows, set
21134         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
21135         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21136         Reported by Sam Steingold <sds@gnu.org>.
21137
21138 2009-08-10  Bruno Haible  <bruno@clisp.org>
21139
21140         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
21141         * modules/ioctl (configure.ac): Likewise.
21142
21143 2009-08-10  Bruno Haible  <bruno@clisp.org>
21144
21145         Avoid collision between gnulib wrapper and libintl wrapper.
21146         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
21147         already defined in intl/printf.c.
21148         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
21149         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
21150
21151 2009-08-09  Bruno Haible  <bruno@clisp.org>
21152
21153         Make <sys/select.h> really self-contained, also on Solaris 10.
21154         * lib/sys_select.in.h: Include <string.h>.
21155         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
21156         Solaris 10 problem.
21157         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
21158         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
21159         Reported by Jim Meyering.
21160
21161 2009-08-09  Bruno Haible  <bruno@clisp.org>
21162
21163         Avoid warnings from 'aclocal' that are due to a use of macro name
21164         AM_XGETTEXT_OPTION that is not defined in automake.
21165         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
21166         automake.
21167         * modules/error (configure.ac): Likewise.
21168         * modules/propername (configure.ac): Likewise.
21169         * modules/vasprintf (configure.ac): Likewise.
21170         * modules/verror (configure.ac): Likewise.
21171         * modules/xprintf (configure.ac): Likewise.
21172         * modules/xvasprintf (configure.ac): Likewise.
21173
21174 2009-08-08  Bruno Haible  <bruno@clisp.org>
21175
21176         Avoid compilation error in C++ mode.
21177         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
21178         Reported by Sam Steingold <sds@gnu.org>.
21179
21180 2009-08-08  Bruno Haible  <bruno@clisp.org>
21181
21182         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
21183         for the various Unix platforms.
21184         * doc/posix-headers/limits.texi: Update platforms list regarding
21185         HOST_NAME_MAX.
21186         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21187
21188 2009-08-07  Jim Meyering  <meyering@redhat.com>
21189
21190         selinux-at: fix typo in a comment
21191         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
21192         Spotted by Paolo Bonzini.
21193
21194         selinux-at: remove redundant m4 code, add documentation
21195         * modules/selinux-at (configure.ac): Remove redundant code.
21196         LIB_SELINUX is already set via the dependent module, selinux-h.
21197         (Include): Add quotes around selinux-at.h.
21198         * lib/selinux-at.h: Add documentation.
21199         Reported by Bruno Haible in
21200         http://marc.info/?l=gnulib-bug&m=124958988300749
21201
21202 2009-08-07  Bruno Haible  <bruno@clisp.org>
21203
21204         Avoid link error on MacOS X 10.3 and 10.4.
21205         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
21206         on non-ELF systems.
21207         * lib/argp-pv.c (argp_program_version): Likewise.
21208         Reported by Simon Josefsson.
21209
21210 2009-08-07  Simon Josefsson  <simon@josefsson.org>
21211
21212         * tests/test-version-etc.sh: Use $EXEEXT.
21213
21214 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
21215
21216         update-copyright: update documentation to point to maint.mk
21217         * build-aux/update-copyright: Here.
21218
21219 2009-08-06  Jim Meyering  <meyering@redhat.com>
21220
21221         maint.mk: support update-copyright-local
21222         * top/maint.mk (update-copyright-local): Define place-holder.
21223         (update-copyright): Depend on $(update-copyright-local).
21224
21225 2009-08-06  Jim Meyering  <meyering@redhat.com>
21226
21227         selinux-at: new module
21228         Initially written for coreutils, this module will soon be
21229         used by findutils, too.
21230         * MODULES.html.sh [Misc]: Add selinux-at.
21231         * lib/selinux-at.h: New file, from coreutils.
21232         * lib/selinux-at.c: Likewise.
21233         * modules/selinux-at: Likewise.
21234         (License): Change from LGPL to GPL, since it depends
21235         on the GPL'd openat module.
21236
21237         doc: update README
21238         * README: Remove references to cogito.
21239         Remove cvs-repo-updating instructions from 2007.
21240         Don't imply that CVS is better if you have limited disk space.
21241
21242 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21243
21244         update-copyright: support C-style comments
21245         * build-aux/update-copyright: Implement and document.
21246         * tests/test-update-copyright.sh: Test.
21247
21248 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21249
21250         update-copyright: support omitted "(C)"
21251         * build-aux/update-copyright: Implement and document.  Also,
21252         allow variable whitespace before "(C)".
21253         * tests/test-update-copyright.sh: Test.
21254
21255 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21256
21257         update-copyright: don't trip on non-FSF copyright statements
21258         * build-aux/update-copyright: Fix so that the first correctly
21259         formatted FSF copyright statement is recognized no matter what
21260         appears before it.  Update documentation.
21261         * tests/test-update-copyright.sh: Test that.
21262
21263 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21264
21265         update-copyright: clean up code a little
21266         * build-aux/update-copyright: Append "_re" to the name of any
21267         variable holding a regular expression.
21268         Replace "old" and "new" with "stmt" in variable names.
21269         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
21270         handled correctly.
21271         Format code more consistently.
21272
21273 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21274
21275         update-copyright-tests: improve portability
21276         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
21277         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
21278
21279 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21280
21281         update-copyright: support @copyright{} and &copy;
21282         * build-aux/update-copyright: Implement and document.
21283         * tests/test-update-copyright.sh: Test.
21284
21285 2009-08-04  Jim Meyering  <meyering@redhat.com>
21286
21287         update-copyright-tests: correctly test EOL=\r\n handling
21288         * tests/test-update-copyright.sh: Put \r at the end of some lines
21289         for the dos-eol tests.  Based on a patch by Joel E. Denny.
21290
21291         maint.mk: make update-copyright exclusion list more configurable
21292         * top/maint.mk (update-copyright): Default to excluding COPYING,
21293         but allow an override, in case someone does want to update that file.
21294
21295         maint.mk: don't update copyright date in COPYING
21296         * top/maint.mk (update-copyright): Exclude COPYING.
21297
21298         maint.mk: add a copyright-updating rule
21299         * top/maint.mk (update-copyright): New rule.
21300         Derived from coreutils/Makefile.am.
21301
21302         update-copyright: rename some variables
21303         * build-aux/update-copyright: Rename a few variables for clarity.
21304         Tweak syntax.  List Joel E. Denny as coauthor.
21305
21306 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21307
21308         update-copyright: fix bug for 2-digit last year and add tests
21309         * build-aux/update-copyright: Fix bug.
21310         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
21311         specified.
21312         * modules/update-copyright-tests: New
21313         * tests/test-update-copyright.sh: New.
21314
21315 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21316
21317         update-copyright: handle leading tabs in line prefix
21318         * build-aux/update-copyright: Count leading tabs as 8 spaces
21319         when computing margin.  This helps with the formatting of
21320         ChangeLogs, for example.
21321         Fix documentation a little.
21322
21323 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21324
21325         update-copyright: support EOL=\r\n
21326         * build-aux/update-copyright: Implement that.
21327
21328 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21329
21330         update-copyright: automatically format copyright statements
21331         * build-aux/update-copyright: Implement that.
21332         Also, be a little more predictable and safer by always failing
21333         when the full copyright format is not perfectly recognized as an
21334         unbroken whole.  Discussed at
21335         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
21336         Rewrite documentation.
21337
21338 2009-08-03  Bruno Haible  <bruno@clisp.org>
21339
21340         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
21341
21342 2009-08-02  Bruno Haible  <bruno@clisp.org>
21343
21344         Tests for module 'uname'.
21345         * modules/uname-tests: New file.
21346         * tests/test-uname.c: New file.
21347
21348         New module 'uname'.
21349         * lib/uname.c: New file.
21350         * m4/uname.m4: New file.
21351         * modules/uname: New file.
21352         * doc/posix-functions/uname.texi: Mention the new module.
21353
21354 2009-08-02  Bruno Haible  <bruno@clisp.org>
21355
21356         Tests for module 'sys_utsname'.
21357         * modules/sys_utsname-tests: New file.
21358         * tests/test-sys_utsname.c: New file.
21359
21360         New module 'sys_utsname'.
21361         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
21362         * m4/sys_utsname_h.m4: New file.
21363         * modules/sys_utsname: New file.
21364         * doc/posix-headers/sys_utsname.texi: Mention the new module.
21365
21366 2009-08-02  Bruno Haible  <bruno@clisp.org>
21367
21368         Implicitly initialize the sockets library.
21369         * lib/gethostname.c: Include sockets.h.
21370         (rpl_gethostname): Invoke gl_sockets_startup.
21371         * lib/socket.c: Include sockets.h.
21372         (rpl_socket): Invoke gl_sockets_startup.
21373         * modules/gethostname (Depends-on): Add sockets.
21374         * modules/socket (Depends-on): Likewise.
21375         * tests/test-poll.c: Don't include sockets.h.
21376         (main): Don't invoke gl_sockets_startup.
21377         * tests/test-select.c: Don't include sockets.h.
21378         (main): Don't invoke gl_sockets_startup.
21379
21380 2009-08-02  Bruno Haible  <bruno@clisp.org>
21381
21382         Allow multiple calls to gl_sockets_startup.
21383         * lib/sockets.c (initialized_sockets_version): New variable.
21384         (gl_sockets_startup): Do nothing if already called for this or a higher
21385         version.
21386         (gl_sockets_cleanup): Reset initialized_sockets_version.
21387
21388 2009-08-03  Simon Josefsson  <simon@josefsson.org>
21389
21390         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
21391         different project/version.
21392
21393 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
21394             Bruno Haible  <bruno@clisp.org>
21395
21396         Tests for module 'pipe-filter-gi'.
21397         * modules/pipe-filter-gi-tests: New file.
21398         * tests/test-pipe-filter-gi1.sh: New file.
21399         * tests/test-pipe-filter-gi1.c: New file.
21400         * tests/test-pipe-filter-gi2.sh: New file.
21401         * tests/test-pipe-filter-gi2-main.c: New file.
21402         * tests/test-pipe-filter-gi2-child.c: New file.
21403
21404         New module 'pipe-filter-gi'.
21405         * lib/pipe-filter-gi.c: New file.
21406         * modules/pipe-filter-gi: New file.
21407
21408 2009-08-02  Bruno Haible  <bruno@clisp.org>
21409             Paolo Bonzini  <bonzini@gnu.org>
21410
21411         Tests for module 'pipe-filter-ii'.
21412         * modules/pipe-filter-ii-tests: New file.
21413         * tests/test-pipe-filter-ii1.sh: New file.
21414         * tests/test-pipe-filter-ii1.c: New file.
21415         * tests/test-pipe-filter-ii2.sh: New file.
21416         * tests/test-pipe-filter-ii2-main.c: New file.
21417         * tests/test-pipe-filter-ii2-child.c: New file.
21418
21419         New module 'pipe-filter-ii'.
21420         * lib/pipe-filter.h: New file.
21421         * lib/pipe-filter-ii.c: New file.
21422         * lib/pipe-filter-aux.h: New file.
21423         * modules/pipe-filter-ii: New file.
21424
21425 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21426
21427         * lib/gc-libgcrypt.c: Change copyright to FSF.
21428         * lib/gc-gnulib.c: Likewise.
21429
21430 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
21431
21432         * lib/gethostname.c: Include limits.h.
21433
21434 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21435             Bruno Haible  <bruno@clisp.org>
21436
21437         Ensure HOST_NAME_MAX as part of the gethostname module.
21438         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
21439         define also HOST_NAME_MAX.
21440         * tests/test-gethostname.c: Include <limits.h>.
21441         (main): Check also HOST_NAME_MAX.
21442         * doc/posix-headers/limits.texi: Document the mingw problem.
21443
21444 2009-08-02  Bruno Haible  <bruno@clisp.org>
21445
21446         * lib/gethostname.c (gethostname): Fix handling of large len argument.
21447         Add comments.
21448
21449 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21450
21451         * lib/gethostname.c: Add Windows wrapper.
21452         * m4/gethostname.m4: Look for gethostname in -lws2_32.
21453         * modules/gethostname: Depend on sys_socket & errno, for also
21454         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
21455         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
21456
21457 2009-07-31  Jim Meyering  <meyering@redhat.com>
21458
21459         getloadavg: fix symbol name in comment
21460         * lib/getloadavg.c: Correct a typo I introduced when adding
21461         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
21462         Matt Kraai spotted the problem.
21463
21464 2009-07-29  Matt Kraai  <mkraai@beckman.com>
21465
21466         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
21467         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
21468         code also if ! defined N_NAME_POINTER.
21469         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
21470         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
21471         but the n_name member is a 12-byte array.
21472
21473 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
21474
21475         update-copyright: generalize comment handling
21476         * build-aux/update-copyright: Handle copyright statements
21477         within more comment styles.
21478         Document usage.
21479         Report any file with an external copyright holder or parse failure.
21480
21481 2009-07-29  Jim Meyering  <meyering@redhat.com>
21482
21483         mktime: correct setting of REPLACE_MKTIME
21484         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
21485
21486         update-copyright: new module
21487         * modules/update-copyright: New file.
21488         * build-aux/update-copyright: New file.
21489         * MODULES.html.sh (maint+release support): Add update-copyright.
21490
21491 2009-07-27  Bruno Haible  <bruno@clisp.org>
21492
21493         Fix compilation error when <ctime> is used and mktime is replaced.
21494         * lib/time.in.h (mktime): New declaration.
21495         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
21496         REPLACE_MKTIME instead of defining mktime in config.h.
21497         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
21498         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
21499         Reported by Ross McFarland <rwmcfa1@neces.com>.
21500
21501 2009-07-27  Bruno Haible  <bruno@clisp.org>
21502
21503         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
21504         Reported by Matt Kraai <mkraai@beckman.com>.
21505
21506 2009-07-25  Jim Meyering  <meyering@redhat.com>
21507
21508         maint.mk: avoid warnings about missing files
21509         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
21510         diagnostic when .prev-version does not exist.
21511         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
21512         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
21513         nonexistent cfg.mk.
21514         Suggestions from Simon Josefsson.
21515
21516 2009-07-25  Bruno Haible  <bruno@clisp.org>
21517
21518         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
21519         defined as macros. Needed on QNX 6.4.1.
21520         Reported by Matt Kraai <mkraai@beckman.com>.
21521
21522 2009-07-23  Jim Meyering  <meyering@redhat.com>
21523
21524         maint.mk: invoke "make dist" with a working value of XZ_OPT
21525         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
21526
21527 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
21528
21529         Make fseeko.c compile on QNX.
21530         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
21531
21532 2009-07-22  Peter Simons  <simons@cryp.to>
21533
21534         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
21535         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
21536         * lib/md4.h: Likewise.
21537         * lib/md5.h: Likewise.
21538         * lib/sha1.h: Likewise.
21539         * lib/sha256.h: Likewise.
21540         * lib/sha512.h: Likewise.
21541
21542         tests-sha1: don't assign literal string to 'char *' variable
21543         * tests/test-sha1.c (main): Declare locals with "const" to match
21544         attributes of the right hand side.
21545
21546 2009-07-21  Eric Blake  <ebb9@byu.net>
21547
21548         dup2: fix more mingw problems
21549         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
21550         fd to itself.
21551         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21552         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
21553         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
21554         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
21555         care of mingw bugs.
21556
21557 2009-07-21  Jim Meyering  <meyering@redhat.com>
21558
21559         vc-list-files: avoid failure when /bin/sh is dash
21560         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
21561         On some Debian based systems, /bin/sh is a symlink to dash, and running
21562         this command would omit the "/" following each 'tests' prefix:
21563           dash -x build-aux/vc-list-files -C . tests
21564         That is because bash and dash work differently:
21565           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
21566           bash ok
21567           dash odd
21568
21569 2009-07-21  Eric Blake  <ebb9@byu.net>
21570
21571         dup2-tests: test previous patch
21572         * modules/dup2-tests: New file.
21573         * tests/test-dup2.c: Likewise.
21574         * tests/test-open.c (main): Avoid unspecified behavior.
21575         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
21576         test.
21577
21578         dup2: work around mingw and cygwin 1.5 bug
21579         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
21580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21581         * modules/unistd (Makefile.am): Substitute it.
21582         * lib/unistd.in.h (dup2): Declare the replacement.
21583         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
21584         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
21585         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
21586         * modules/execute (Depends-on): Add dup2.
21587         * modules/fseterr (Depends-on): Likewise.
21588         * modules/pipe (Depends-on): Likewise.
21589         * modules/posix_spawn-internal (Depends-on): Likewise.
21590
21591 2009-07-21  Bruno Haible  <bruno@clisp.org>
21592
21593         * modules/.gitattributes: New file.
21594
21595 2009-07-20  Bruno Haible  <bruno@clisp.org>
21596
21597         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
21598         (main): Use it.
21599
21600 2009-07-20  Eric Blake  <ebb9@byu.net>
21601
21602         test-pipe: make a bit more robust.
21603         * tests/test-pipe.c (myerr): Allow error messages regardless of
21604         what we do to stderr.
21605         (test_pipe): Rearrange to avoid deadlock.
21606         (child_main): Try a larger read, to ensure we avoided deadlock.
21607         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
21608         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
21609         if misused.
21610
21611 2009-07-19  Jim Meyering  <meyering@redhat.com>
21612
21613         fts: avoid false-positive cycle-detection
21614         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
21615         for each new command line argument.
21616
21617 2009-07-19  Bruno Haible  <bruno@clisp.org>
21618
21619         Fix build error on mingw with the modules sys_select and unistd.
21620         * modules/acl-tests (Depends-on): Add close.
21621         * modules/binary-io-tests (Depends-on): Likewise.
21622         * modules/closein-tests (Depends-on): Likewise.
21623         * modules/flock-tests (Depends-on): Likewise.
21624         * modules/fsync-tests (Depends-on): Likewise.
21625         * modules/lseek-tests (Depends-on): Likewise.
21626         * modules/pipe-tests (Depends-on): Likewise.
21627         * modules/posix_spawn-tests (Depends-on): Likewise.
21628         * modules/posix_spawnp-tests (Depends-on): Likewise.
21629         * modules/stat-time-tests (Depends-on): Likewise.
21630         * modules/yesno-tests (Depends-on): Likewise.
21631
21632 2009-07-19  Bruno Haible  <bruno@clisp.org>
21633
21634         Unify conditionals.
21635         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
21636         macros, not at the compiler macros.
21637         * lib/pipe.c: Likewise.
21638         * lib/execute.c: Likewise.
21639         * lib/spawni.c: Likewise.
21640
21641 2009-07-19  Bruno Haible  <bruno@clisp.org>
21642
21643         Fix handling of closed stdin/stdout/stderr on mingw.
21644         * lib/w32spawn.h: Include unistd.h.
21645         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
21646         file descriptor with O_NOINHERIT flag.
21647         (fd_safer_noinherit): New function, based on fd-safer.c.
21648         (dup_safer_noinherit): New function, based on dup-safer.c.
21649         (undup_safer_noinherit): New function.
21650         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
21651         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
21652         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
21653         instead of fd_safer.
21654         * tests/test-pipe.c: Include <windows.h>.
21655         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
21656
21657         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
21658         from main.
21659         (test_pipe): Pass an extra argument for disambiguation.
21660         (main): Invoke parent_main or child_main.
21661
21662         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
21663         consistently.
21664
21665 2009-07-18  Eric Blake  <ebb9@byu.net>
21666
21667         test-pipe: fix mingw build
21668         * tests/test-pipe.c (main): Avoid fcntl on mingw.
21669
21670 2009-07-18  Bruno Haible  <bruno@clisp.org>
21671
21672         * modules/pipe-tests (Makefile.am): Fix typo.
21673
21674 2009-07-18  Eric Blake  <ebb9@byu.net>
21675
21676         error: fix mingw build
21677         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
21678         Reported by Bruno Haible.
21679
21680         error: avoid undefined use of stdout
21681         * lib/error.c (error, error_at_line): Check that fd 1 is open
21682         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
21683         is handling faults and the close_stdout module wants to report the
21684         detection of closed stdout as an error.
21685
21686 2009-07-17  Eric Blake  <ebb9@byu.net>
21687
21688         pipe: be robust in face of closed fds
21689         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
21690         should cause child to misbehave.
21691         * modules/pipe-tests: New module.
21692         * tests/test-pipe.c: New file.
21693         * tests/test-pipe.sh: New file.
21694         Reported by Akim Demaille.
21695
21696 2009-07-14  Bruno Haible  <bruno@clisp.org>
21697
21698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
21699         Reported by anonymous kc.
21700
21701 2009-07-07  Jim Meyering  <meyering@redhat.com>
21702
21703         maint.mk: don't look for translatable strings in *.m4 or *.mk
21704         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
21705         when searching for translatable strings.
21706
21707 2009-07-05  Jim Meyering  <meyering@redhat.com>
21708
21709         remove superfluous parentheses in STREQ definition
21710         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
21711         * lib/getugroups.c (STREQ): Likewise.
21712         * lib/fnmatch.c (STREQ): Likewise.
21713         Spotted by Bruno Haible.
21714
21715 2009-07-04  Jim Meyering  <meyering@redhat.com>
21716
21717         argv-iter: new module
21718         * MODULES.html.sh: Add argv-iter.
21719         * lib/argv-iter.c, lib/argv-iter.h: New files.
21720         * modules/argv-iter: New file.
21721         * modules/argv-iter-tests: New file.
21722         * tests/test-argv-iter.c: Test it.
21723
21724 2009-07-04  Bruno Haible  <bruno@clisp.org>
21725
21726         Fix assertion.
21727         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
21728         contains more exact copies of a given entry than file2, leave the extra
21729         copies unpaired rather than aborting.
21730         Reported by Eric Blake.
21731
21732 2009-07-02  Bruno Haible  <bruno@clisp.org>
21733
21734         Speedup git-merge-changelog for git cherry-pick.
21735         * lib/git-merge-changelog.c (struct entries_mapping): New type.
21736         (entries_mapping_get): New function, extracted from compute_mapping.
21737         (entries_mapping_reverse_get): New function.
21738         (compute_mapping): Add a 'full' argument. Return the result in a
21739         'struct entries_mapping'.
21740         (main): Update. Access the mappings through entries_mapping_get.
21741         Reported by Eric Blake.
21742
21743 2009-07-02  Bruno Haible  <bruno@clisp.org>
21744
21745         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
21746         best_i.
21747
21748 2009-07-02  Bruno Haible  <bruno@clisp.org>
21749
21750         Speed up approximate search for matching ChangeLog entries.
21751         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
21752         argument. Call fstrcmp_bounded instead of fstrcmp.
21753         (compute_mapping, try_split_merged_entry, main): Update callers.
21754
21755 2009-07-02  Bruno Haible  <bruno@clisp.org>
21756
21757         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
21758
21759 2009-06-30  Bruno Haible  <bruno@clisp.org>
21760
21761         Reduce the number of uc_is_cased calls.
21762         * lib/unicase.h (casing_suffix_context_t): Add
21763         'first_char_except_ignorable' field.
21764         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
21765         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
21766         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
21767         Update initializer.
21768         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
21769         case-ignorable characters.
21770         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
21771         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
21772         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
21773         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
21774         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
21775
21776 2009-06-30  Bruno Haible  <bruno@clisp.org>
21777
21778         Tests for module 'unicase/ignorable'.
21779         * modules/unicase/ignorable-tests: New file.
21780         * tests/unicase/test-ignorable.c: New file, generated by
21781         gen-uni-tables.
21782
21783         Tests for module 'unicase/cased'.
21784         * modules/unicase/cased-tests: New file.
21785         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
21786         * tests/unicase/test-predicate-part1.h: New file, derived from
21787         tests/unictype/test-predicate-part1.h.
21788         * tests/unicase/test-predicate-part2.h: New file, same as
21789         tests/unictype/test-predicate-part2.h.
21790
21791         Fix evaluation of "Before C" condition of FINAL_SIGMA.
21792         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
21793         (output_casing_properties): New function.
21794         (main): Call it.
21795         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
21796         * lib/unicase/cased.c: Include unictype/bitmap.h.
21797         (uc_is_cased): Define through a bitmap lookup.
21798         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
21799         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
21800         (uc_is_case_ignorable): Define through a bitmap lookup.
21801         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
21802         lib/unictype/bitmap.h.
21803         (Depends-on): Add inline. Clean up.
21804         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
21805         lib/unictype/bitmap.h.
21806         (Depends-on): Add inline. Clean up.
21807         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
21808         recognition.
21809         * tests/unicase/test-u16-tolower.c (main): Likewise.
21810         * tests/unicase/test-u32-tolower.c (main): Likewise.
21811
21812 2009-06-30  Bruno Haible  <bruno@clisp.org>
21813
21814         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
21815         * lib/unicase/u16-casemap.c: Likewise.
21816         * lib/unicase/u32-casemap.c: Likewise.
21817
21818 2009-06-29  Bruno Haible  <bruno@clisp.org>
21819
21820         Define u32_casefold as a wrapper around u32_ct_casefold.
21821         * lib/unicase/u32-casefold.c: Update.
21822         * modules/unicase/u32-casefold (Depends-on): Add
21823         unicase/u32-ct-casefold, unicase/empty-prefix-context,
21824         unicase/empty-suffix-context. Clean up.
21825
21826         Define u16_casefold as a wrapper around u16_ct_casefold.
21827         * lib/unicase/u16-casefold.c: Update.
21828         * modules/unicase/u16-casefold (Depends-on): Add
21829         unicase/u16-ct-casefold, unicase/empty-prefix-context,
21830         unicase/empty-suffix-context. Clean up.
21831
21832         Define u8_casefold as a wrapper around u8_ct_casefold.
21833         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
21834         * lib/unicase/u8-casefold.c: Update.
21835         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
21836         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21837
21838         Define u32_totitle as a wrapper around u32_ct_totitle.
21839         * lib/unicase/u32-totitle.c: Update.
21840         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
21841         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21842
21843         Define u16_totitle as a wrapper around u16_ct_totitle.
21844         * lib/unicase/u16-totitle.c: Update.
21845         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
21846         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21847
21848         Define u8_totitle as a wrapper around u8_ct_totitle.
21849         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
21850         functions.
21851         (FUNC): Delegate to U_CT_TOTITLE.
21852         * lib/unicase/u8-totitle.c: Update.
21853         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
21854         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21855
21856         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
21857         invocation.
21858         * modules/unicase/u32-tolower (Depends-on): Add
21859         unicase/empty-prefix-context, unicase/empty-suffix-context.
21860
21861         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
21862         invocation.
21863         * modules/unicase/u16-tolower (Depends-on): Add
21864         unicase/empty-prefix-context, unicase/empty-suffix-context.
21865
21866         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
21867         * modules/unicase/u8-tolower (Depends-on): Add
21868         unicase/empty-prefix-context, unicase/empty-suffix-context.
21869
21870         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
21871         invocation.
21872         * modules/unicase/u32-toupper (Depends-on): Add
21873         unicase/empty-prefix-context, unicase/empty-suffix-context.
21874
21875         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
21876         invocation.
21877         * modules/unicase/u16-toupper (Depends-on): Add
21878         unicase/empty-prefix-context, unicase/empty-suffix-context.
21879
21880         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
21881         * modules/unicase/u8-toupper (Depends-on): Add
21882         unicase/empty-prefix-context, unicase/empty-suffix-context.
21883
21884         New module 'unicase/u32-ct-casefold'.
21885         * lib/unicase/u32-ct-casefold.c: New file.
21886         * modules/unicase/u32-ct-casefold: New file.
21887
21888         New module 'unicase/u16-ct-casefold'.
21889         * lib/unicase/u16-ct-casefold.c: New file.
21890         * modules/unicase/u16-ct-casefold: New file.
21891
21892         New module 'unicase/u8-ct-casefold'.
21893         * lib/unicase/u8-ct-casefold.c: New file.
21894         * lib/unicase/u-ct-casefold.h: New file, derived from
21895         lib/unicase/u-casefold.h.
21896         * modules/unicase/u8-ct-casefold: New file.
21897
21898         New module 'unicase/u32-ct-totitle'.
21899         * lib/unicase/u32-ct-totitle.c: New file.
21900         * modules/unicase/u32-ct-totitle: New file.
21901
21902         New module 'unicase/u16-ct-totitle'.
21903         * lib/unicase/u16-ct-totitle.c: New file.
21904         * modules/unicase/u16-ct-totitle: New file.
21905
21906         New module 'unicase/u8-ct-totitle'.
21907         * lib/unicase/u8-ct-totitle.c: New file.
21908         * lib/unicase/u-ct-totitle.h: New file, derived from
21909         lib/unicase/u-totitle.h.
21910         * modules/unicase/u8-ct-totitle: New file.
21911
21912         New module 'unicase/u32-ct-tolower'.
21913         * lib/unicase/u32-ct-tolower.c: New file.
21914         * modules/unicase/u32-ct-tolower: New file.
21915
21916         New module 'unicase/u16-ct-tolower'.
21917         * lib/unicase/u16-ct-tolower.c: New file.
21918         * modules/unicase/u16-ct-tolower: New file.
21919
21920         New module 'unicase/u8-ct-tolower'.
21921         * lib/unicase/u8-ct-tolower.c: New file.
21922         * modules/unicase/u8-ct-tolower: New file.
21923
21924         New module 'unicase/u32-ct-toupper'.
21925         * lib/unicase/u32-ct-toupper.c: New file.
21926         * modules/unicase/u32-ct-toupper: New file.
21927
21928         New module 'unicase/u16-ct-toupper'.
21929         * lib/unicase/u16-ct-toupper.c: New file.
21930         * modules/unicase/u16-ct-toupper: New file.
21931
21932         New module 'unicase/u8-ct-toupper'.
21933         * lib/unicase/u8-ct-toupper.c: New file.
21934         * modules/unicase/u8-ct-toupper: New file.
21935
21936         Add context arguments to u*_casemap functions.
21937         * lib/unicase/unicasemap.h: Include unicase.h.
21938         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
21939         suffix_context arguments.
21940         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
21941         functions.
21942         (FUNC): Add prefix_context and suffix_context arguments. Use
21943         uc_is_cased and uc_is_case_ignorable.
21944         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
21945         * lib/unicase/u16-casemap.c: Likewise.
21946         * lib/unicase/u32-casemap.c: Likewise.
21947         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
21948         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21949         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
21950         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21951         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
21952         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21953
21954         New module 'unicase/u32-suffix-context'.
21955         * lib/unicase/u32-suffix-context.c: New file.
21956         * modules/unicase/u32-suffix-context: New file.
21957
21958         New module 'unicase/u16-suffix-context'.
21959         * lib/unicase/u16-suffix-context.c: New file.
21960         * modules/unicase/u16-suffix-context: New file.
21961
21962         New module 'unicase/u8-suffix-context'.
21963         * lib/unicase/u8-suffix-context.c: New file.
21964         * lib/unicase/u-suffix-context.h: New file.
21965         * modules/unicase/u8-suffix-context: New file.
21966
21967         New module 'unicase/empty-suffix-context'.
21968         * lib/unicase/empty-suffix-context.c: New file.
21969         * modules/unicase/empty-suffix-context: New file.
21970
21971         New module 'unicase/u32-prefix-context'.
21972         * lib/unicase/u32-prefix-context.c: New file.
21973         * modules/unicase/u32-prefix-context: New file.
21974
21975         New module 'unicase/u16-prefix-context'.
21976         * lib/unicase/u16-prefix-context.c: New file.
21977         * modules/unicase/u16-prefix-context: New file.
21978
21979         New module 'unicase/u8-prefix-context'.
21980         * lib/unicase/u8-prefix-context.c: New file.
21981         * lib/unicase/u-prefix-context.h: New file.
21982         * lib/unicase/context.h: New file.
21983         * modules/unicase/u8-prefix-context: New file.
21984
21985         New module 'unicase/empty-prefix-context'.
21986         * lib/unicase/empty-prefix-context.c: New file.
21987         * modules/unicase/empty-prefix-context: New file.
21988
21989         New module 'unicase/ignorable'.
21990         * lib/unicase/ignorable.c: New file.
21991         * modules/unicase/ignorable: New file.
21992
21993         New module 'unicase/cased'.
21994         * lib/unicase/caseprop.h: New file.
21995         * lib/unicase/cased.c: New file.
21996         * modules/unicase/cased: New file.
21997
21998         New functions for case mapping of substrings.
21999         * lib/unicase.h (casing_prefix_context_t): New type.
22000         (unicase_empty_prefix_context): New variable.
22001         (u8_casing_prefix_context, u16_casing_prefix_context,
22002         u32_casing_prefix_context, u8_casing_prefixes_context,
22003         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22004         declarations.
22005         (casing_suffix_context_t): New type.
22006         (unicase_empty_suffix_context): New variable.
22007         (u8_casing_suffix_context, u16_casing_suffix_context,
22008         u32_casing_suffix_context, u8_casing_suffixes_context,
22009         u16_casing_suffixes_context, u32_casing_suffixes_context,
22010         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22011         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22012         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22013         declarations.
22014
22015 2009-06-28  Jim Meyering  <meyering@redhat.com>
22016
22017         boostrap: indent only with spaces
22018         * build-aux/bootstrap: Indent only with spaces, never TABs.
22019
22020         bootstrap: split long lines
22021         * build-aux/bootstrap: Keep line length < 80.
22022
22023         bootstrap: sync from coreutils
22024         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22025         just as autoreconf does.  Verify a list of prerequisite
22026         package-name,version-number pairs if defined in bootstrap.conf.
22027         Refer to README-prereq, if prerequisites are not satisfied.
22028
22029 2009-06-27  Eric Blake  <ebb9@byu.net>
22030
22031         tests: add test for bogus NULL definition
22032         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22033         * tests/test-stdlib.c: Likewise.
22034         * tests/test-string.c: Likewise.
22035         * tests/test-locale.c: Likewise.
22036         * tests/test-unistd.c: Likewise.
22037         * modules/stdio-tests (Depends-on): Add verify.
22038         * modules/stdlib-tests (Depends-on): Likewise.
22039         * modules/string-tests (Depends-on): Likewise.
22040         * modules/locale-tests (Depends-on): Likewise.
22041         * modules/unistd-tests (Depends-on): Likewise.
22042
22043 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22044
22045         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
22046         self-explaining comment.
22047         * m4/selinux-selinux-h: Update serial.
22048         (gl_LIBSELINUX): New macro, adding a warning for missing development
22049         packages to code extracted from...
22050         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
22051         Add warning for missing development packages here, too.
22052
22053 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
22054
22055         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
22056
22057 2009-06-25  Eric Blake  <ebb9@byu.net>
22058
22059         version-etc: fix regression
22060         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
22061         gcc.
22062         (version_etc): Use it, to catch bugs with trailing NULL.
22063         * lib/version-etc.c (version_etc_arn): Delete unused argument.
22064         (version_etc_va): Fix logic bug.
22065         * modules/version-etc-tests: Add test.
22066         * tests/test-version-etc.c: New file.
22067         * tests/test-version-etc.sh: Likewise.
22068
22069 2009-06-25  Sam Steingold  <sds@gnu.org>
22070
22071         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
22072         mbtowc declaration.
22073
22074 2009-06-25  Eric Blake  <ebb9@byu.net>
22075
22076         fpurge: migrate into <stdio.h>
22077         * lib/fpurge.h: Delete...
22078         * lib/stdio.in.h (fpurge): ...and declare here, instead.
22079         * lib/fpurge.c (fpurge): Change declaring header.
22080         * modules/fpurge (Files): Drop deleted file.
22081         (Depends-on): Add stdio.
22082         (configure.ac): Set witness.
22083         * modules/stdio (Makefile.am): Support fpurge macros.
22084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22085         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
22086         * lib/fflush.c: Update client.
22087         * tests/test-fpurge.c: Likewise.
22088         * NEWS: Mention the change.
22089
22090 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22091
22092         * lib/argp-version-etc.c (program_authors): Add const
22093         qualifier.
22094         * lib/version-etc.c: Fix typos in the comments.
22095         * modules/argp-version-etc: Depends on version-etc.
22096
22097 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22098
22099         argp-version-etc: new module.
22100
22101         * lib/argp-version-etc.c: New file.
22102         * lib/argp-version-etc.h: New file.
22103         * modules/argp-version-etc: New file.
22104         * modules/argp-version-etc-tests: New file.
22105         * tests/test-argp-version-etc.c: New test.
22106         * tests/test-argp-version-etc-1.sh: New test.
22107
22108 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22109
22110         Provide additional interfaces and documentation for version-etc
22111         module.
22112
22113         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
22114         interfaces.
22115         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
22116         prototypes.
22117
22118 2009-06-24  Bruno Haible  <bruno@clisp.org>
22119
22120         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
22121         HAVE_LIB${NAME} macro.
22122         Reported by Sam Steingold <sds@gnu.org>.
22123
22124 2009-06-23  Simon Josefsson  <simon@josefsson.org>
22125
22126         * modules/hash-tests (test_hash_LDADD): Link to libintl when
22127         needed.
22128
22129 2009-06-21  Bruno Haible  <bruno@clisp.org>
22130
22131         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
22132         work.
22133         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
22134         together with LIB${NAME}, LTLIB${NAME}.
22135         Reported by Sam Steingold <sds@gnu.org>.
22136
22137 2009-06-20  Jim Meyering  <meyering@redhat.com>
22138
22139         tests: make sc_require_test_exit_idiom more generic
22140         * top/maint.mk (Exit_witness_file): New overridable variable.
22141         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
22142         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
22143
22144 2009-06-19  Jim Meyering  <meyering@redhat.com>
22145
22146         hash: reverse order of src/dst parameters in an internal interface
22147         * lib/hash.c (transfer_entries): Reverse order of parameters to
22148         put DST before SRC.  Adjust callers.
22149
22150         tests: test-hash: avoid wholesale duplication
22151         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
22152         Instead, use a loop and add a single conditional.
22153
22154         tests: test-hash: allow seed selection via a command line argument
22155         * tests/test-hash.c (get_seed): New function.
22156         (main): Use it.
22157
22158 2009-06-19  Eric Blake  <ebb9@byu.net>
22159
22160         hash: avoid memory leak on allocation failure
22161         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
22162         failure.  Factor repeated algorithm...
22163         (transfer_entries): ...into new helper routine.
22164         (hash_delete): React to hash_rehash return value.
22165
22166         hash: reduce memory pressure in hash_rehash no-op case
22167         * lib/hash.c (next_prime): Avoid overflow.
22168         (hash_initialize): Factor bucket size computation...
22169         (compute_bucket_size): ...into new helper function.
22170         (hash_rehash): Use new function and open coding to reduce memory
22171         pressure, and avoid a memory leak in USE_OBSTACK code.
22172         Reported by Jim Meyering.
22173
22174 2009-06-18  Eric Blake  <ebb9@byu.net>
22175
22176         hash: make rotation more obvious
22177         * modules/hash (Depends-on): Add bitrotate and stdint.
22178         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
22179         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
22180         (SIZE_MAX): Rely on headers for definition.
22181         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
22182         (raw_hasher): Use rotr_sz.
22183         Suggested by Jim Meyering.
22184
22185         hash: fix memory leak in last patch
22186         * lib/hash.c (hash_rehash): Avoid memory leak.
22187
22188         hash: avoid no-op rehashing
22189         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
22190
22191         hash: provide default callback functions
22192         * lib/hash.c (raw_hasher, raw_comparator): New functions.
22193         (hash_initialize): Use them as defaults.
22194         * tests/test-hash.c (main): Test this.
22195
22196         hash: minor optimization
22197         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
22198         when possible.
22199         (hash_initialize): Document this promise.
22200         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
22201         * tests/test-hash.c (hash_compare_strings): Test this.
22202
22203 2009-06-18  Bruno Haible  <bruno@clisp.org>
22204
22205         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
22206         going to be replaced anyway.
22207
22208 2009-06-18  Bruno Haible  <bruno@clisp.org>
22209
22210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
22211         in one place.
22212         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
22213         be replaced anyway.
22214
22215 2009-06-18  Eric Blake  <ebb9@byu.net>
22216
22217         hash: check for resize before insertion
22218         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
22219         threshold before insertion, so that a pathological hash_rehash
22220         that fills every bucket can still trigger another rehash.
22221
22222 2009-06-18  Jim Meyering  <meyering@redhat.com>
22223
22224         hash-tests: add a loop around the small tests
22225         * tests/test-hash.c (main): Repeat small tests with selected
22226         small initial table sizes.
22227
22228 2009-06-17  Eric Blake  <ebb9@byu.net>
22229
22230         hash: minor cleanups
22231         * lib/hash.h (hash_entry): Make opaque, by moving...
22232         * lib/hash.c (hash_entry): ...here.
22233         (hash_insert): Clarify restrictions on what can be inserted.
22234         (hash_get_next): Clarify when it is safe to remove an element
22235         during traversal.
22236         (check_tuning): Skip verification when tuning is known safe.
22237         (hash_initialize): Clarify restrictions on tuning.
22238
22239 2009-06-17  Jim Meyering  <jim@meyering.net>
22240         and Eric Blake  <ebb9@byu.net>
22241
22242         hash-tests: new module
22243         * modules/hash-tests: New file.
22244         * tests/test-hash.c: New file.
22245
22246 2009-06-17  Eric Blake  <ebb9@byu.net>
22247
22248         strstr-simple: document new module
22249         * MODULES.html.sh: Document new module.
22250
22251         strstr, strcasestr: replace on platforms with broken memchr
22252         * modules/strstr: Split into...
22253         * modules/strstr-simple: ...new module that does not care about
22254         performance, but does care about glibc bug.
22255         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
22256         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
22257         if platform memchr is broken, per Debian bug 521737.
22258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
22259         memchr.
22260         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
22261         * doc/posix-functions/strstr.texi (strstr): Document the fix.
22262         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22263         * modules/mountlist (Depends-on): Add strstr-simple.
22264         * modules/gen-uni-tables (Depends-on): Likewise.
22265         * modules/argz (Depends-on): Add strstr.
22266
22267 2009-06-17  Bruno Haible  <bruno@clisp.org>
22268
22269         * modules/posix_spawn-internal (Depends-on): Add errno.
22270
22271 2009-06-17  Bruno Haible  <bruno@clisp.org>
22272
22273         Define missing ESTALE on Interix 3.5.
22274         * lib/errno.in.h (ESTALE): Assign a value if missing.
22275         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
22276         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
22277         missing.
22278         * doc/posix-headers/errno.texi: Mention the Interix bug.
22279         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
22280
22281 2009-06-15  Eric Blake  <ebb9@byu.net>
22282
22283         memchr, memchr2: add valgrind exception
22284         * lib/memchr.valgrind: New file.
22285         * lib/memchr2.valgrind: New file.
22286         * modules/memchr (Files): Distribute valgrind file.
22287         * modules/memchr2 (Files): Likewise.
22288
22289         docs: memchr is no longer obsolete
22290         * MODULES.html.sh: Move memchr from obsolete to string.h section.
22291         * lib/string.in.h (memchr): Simplify logic.
22292
22293 2009-06-14  Jim Meyering  <meyering@redhat.com>
22294
22295         link-follow: fix the "checking..." message to not mention trailing slash
22296         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
22297         never considered trailing slashes.
22298
22299 2009-06-14  Bruno Haible  <bruno@clisp.org>
22300
22301         * m4/memchr.m4: Mention also the bug on IA-64.
22302         * doc/posix-functions/memchr.texi: Likewise.
22303
22304 2009-06-12  Eric Blake  <ebb9@byu.net>
22305
22306         memchr: detect broken x86_64 and alpha implementations
22307         * modules/memchr-tests (Depends-on): Move mmap detection...
22308         * modules/memchr (Depends-on): ...here.
22309         (configure.ac): Set indicator.
22310         * lib/string.in.h (memchr): Declare replacement.
22311         * modules/string (Makefile.am): Trigger replacement.
22312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
22313         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
22314         bugs.
22315         * doc/posix-functions/memchr.texi (memchr): Document the bug.
22316         * modules/getpagesize (License): Relax license.
22317
22318 2009-06-11  Bruno Haible  <bruno@clisp.org>
22319
22320         * lib/idpriv.h: Add more references.
22321
22322 2009-06-08  Bruno Haible  <bruno@clisp.org>
22323
22324         Tests for module 'idpriv-droptemp'.
22325         * modules/idpriv-droptemp-tests: New file.
22326         * tests/test-idpriv-droptemp.sh: New file.
22327         * tests/test-idpriv-droptemp.su.sh: New file.
22328         * tests/test-idpriv-droptemp.c: New file.
22329
22330         New module 'idpriv-droptemp'.
22331         * lib/idpriv-droptemp.c: New file.
22332         * modules/idpriv-droptemp: New file.
22333
22334 2009-06-08  Bruno Haible  <bruno@clisp.org>
22335
22336         Tests for module 'idpriv-drop'.
22337         * modules/idpriv-drop-tests: New file.
22338         * tests/test-idpriv-drop.sh: New file.
22339         * tests/test-idpriv-drop.su.sh: New file.
22340         * tests/test-idpriv-drop.c: New file.
22341
22342         New module 'idpriv-drop'.
22343         * lib/idpriv.h: New file.
22344         * lib-idpriv-drop.c: New file.
22345         * m4/idpriv.m4: New file.
22346         * modules/idpriv-drop: New file.
22347
22348 2009-06-08  Bruno Haible  <bruno@clisp.org>
22349
22350         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
22351         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22352         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22353         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22354         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22355         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22356         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22357
22358 2009-06-08  Eric Blake  <ebb9@byu.net>
22359
22360         test-strstr: use memory fence, when possible
22361         * tests/test-strstr.c (main): Use memory fence, in order to be
22362         more likely to trigger Debian bug 521737.
22363         * modules/strstr-tests (Files): Pull in additional files.
22364
22365         memchr: no longer obsolete, for wider field testing
22366         * modules/memchr (Status, Notice): Delete, this module is no
22367         longer obsolete.
22368         * modules/vasnprintf (Depends-on): Add memchr.
22369
22370 2009-06-07  Jim Meyering  <meyering@redhat.com>
22371
22372         hash: declare some functions with the warn_unused_result attribute
22373         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
22374
22375 2009-06-07  Bruno Haible  <bruno@clisp.org>
22376
22377         * tests/test-alignof.c: Don't test int64_t if it does not exist.
22378         Reported by Eric Blake.
22379
22380 2009-06-06  Eric Blake  <ebb9@byu.net>
22381
22382         test-alignof: fix typo with long double
22383         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
22384         compiler error.
22385
22386 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
22387
22388         Escape non-texinfo { and }s.
22389         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
22390         markup error.
22391
22392 2009-06-04  Jim Meyering  <meyering@redhat.com>
22393
22394         gitlog-to-changelog: don't infloop on an empty commit log
22395         * build-aux/gitlog-to-changelog: Warn about an empty log message.
22396         Reported by Boris Petersen <transacid@centerim.org>.
22397
22398 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
22399
22400         version-etc: extend for packagers
22401         Add three new configure options, intended for packagers:
22402           --with-packager="packager name"
22403           --with-packager-version="packager-specific version"
22404           --with-packager-bug-reports="packager bug reporting"
22405         An example with coreutils:
22406           $ ./configure \
22407             --with-packager=Gentoo \
22408             --with-packager-bug-report=http://bugs.gentoo.org/ \
22409             --with-packager-version="patchset 1.6"
22410           $ ./src/ls --version | head -n2
22411           ls (GNU coreutils) 7.1-dirty
22412           Packaged by Gentoo (patchset 1.6)
22413         Note that the bug reporting info via --help doesn't show up because
22414         coreutils uses its own custom emit_bug_reporting_address() implementation
22415         in src/system.h.  If it didn't, it'd look like:
22416           $ ./src/ls --help | tail -n4
22417           Report bugs to <bug-coreutils@gnu.org>.
22418           Report Gentoo bugs to <http://bugs.gentoo.org/>.
22419           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
22420           General help using GNU software: <http://www.gnu.org/gethelp/>.
22421         * lib/version-etc.c: Print new information, if provided.
22422         * m4/version-etc.m4: New file.
22423         * modules/version-etc (Files): Add m4/version-etc.m4.
22424         (configure.ac): Add gl_VERSION_ETC.
22425
22426 2009-05-31  Bruno Haible  <bruno@clisp.org>
22427
22428         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
22429         and 'int64_t'.
22430         * modules/alignof-tests (Dependencies): Add stdint.
22431         Reported by Eric Blake.
22432
22433 2009-05-31  Bruno Haible  <bruno@clisp.org>
22434
22435         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
22436         restriction due to compiler bugs.
22437         Reported by Eric Blake.
22438
22439 2009-05-31  Simon Josefsson  <simon@josefsson.org>
22440             Bruno Haible  <bruno@clisp.org>
22441
22442         Fix test-alignof failure.
22443         * lib/alignof.h (alignof_slot): New macro.
22444         (alignof_type): New macro, with the same semantics as the previous
22445         'alignof'.
22446         (alignof): Alias to alignof_slot.
22447         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
22448         check that the results are usable as constant expressions.
22449
22450 2009-05-31  Bruno Haible  <bruno@clisp.org>
22451
22452         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
22453         * tests/test-memchr.c (main): Check that memchr does not read past the
22454         first occurrence of the byte.
22455         * tests/test-strstr.c (main): Update comment.
22456         Suggested by Eric Blake.
22457
22458 2009-05-30  Bruno Haible  <bruno@clisp.org>
22459
22460         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
22461         detail how to use dumpbin.
22462         Reported by David Byron <dbyron@dbyron.com>.
22463
22464 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22465
22466         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
22467
22468 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22469
22470         * m4/manywarnings.m4: Add GCC 4.4 warnings.
22471
22472 2009-05-28  Bruno Haible  <bruno@clisp.org>
22473
22474         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
22475         build-aux/ files.
22476
22477 2009-05-28  Simon Josefsson  <simon@josefsson.org>
22478
22479         * gnulib-tool (func_import): Transform license on build-aux/ files too.
22480
22481 2009-05-27  Simon Josefsson  <simon@josefsson.org>
22482
22483         * gnulib-tool (sed_transform_main_lib_file)
22484         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
22485         regexps.
22486
22487 2009-05-26  Simon Josefsson  <simon@josefsson.org>
22488
22489         * tests/test-strstr.c: Add another self-test.
22490         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
22491         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
22492
22493 2009-05-23  Bruno Haible  <bruno@clisp.org>
22494
22495         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
22496         change.
22497
22498 2009-05-21  Bruno Haible  <bruno@clisp.org>
22499
22500         Simplify use of mode_t varargs.
22501         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
22502         uses 'mode_t' or 'int'.
22503         * lib/openat.c (openat): Likewise.
22504         * lib/open-safer.c (open_safer): Likewise.
22505         * m4/mode_t.m4: New file.
22506         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
22507         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
22508         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
22509         * modules/open (Files): Add m4/mode_t.m4.
22510         * modules/openat (Files): Likewise.
22511         * modules/fcntl-safer (Files): Likewise.
22512         Suggested by Eric Blake.
22513
22514 2009-05-21  Pádraig Brady  <P@draigbrady.com>
22515
22516         * doc/glibc-functions/fallocate.texi: New file.
22517         * doc/gnulib.texi: Include it.
22518
22519 2009-05-21  Eric Blake  <ebb9@byu.net>
22520             Bruno Haible  <bruno@clisp.org>
22521
22522         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
22523         invocations.
22524         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22525
22526 2009-05-21  Eric Blake  <ebb9@byu.net>
22527             Bruno Haible  <bruno@clisp.org>
22528
22529         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
22530         include_next. Fix of 2008-11-20 commit.
22531         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
22532         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
22533         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
22534         NEXT_MATH_H.
22535         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
22536         instead of NEXT_MATH_H.
22537
22538 2009-05-21  Bruno Haible  <bruno@clisp.org>
22539
22540         Avoid redefinition warnings for SIZE_MAX.
22541         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
22542         Reported by Simon Josefsson.
22543
22544 2009-05-21  Bruno Haible  <bruno@clisp.org>
22545
22546         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
22547         AC_CACHE_VAL.
22548
22549 2009-05-20  Bruno Haible  <bruno@clisp.org>
22550
22551         Make zeroptr.h work on mingw.
22552         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
22553         mprotect.
22554         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
22555         * modules/memchr2-tests (configure.ac): Likewise.
22556         * modules/memcmp-tests (configure.ac): Likewise.
22557         * modules/memmem-tests (configure.ac): Likewise.
22558         * modules/memrchr-tests (configure.ac): Likewise.
22559         Reported by Simon Josefsson.
22560
22561 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22562
22563         * tests/test-glob.c: Include string.h for strcmp prototype.
22564
22565 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22566
22567         * modules/getdelim (Depends-on): Add explicit stdint, although it
22568         was implicitly already pulled in via realloc-posix.
22569         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
22570
22571 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22572
22573         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
22574         G. Christensen" <tgc@jupiterrise.com>.
22575         * m4/sys_socket_h.m4: Check for sa_family_t.
22576         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
22577         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
22578         * tests/test-sys_socket.c: Check that sa_family_t works.
22579
22580 2009-05-18  Eric Blake  <ebb9@byu.net>
22581
22582         maint.mk: allow gnulib_dir in VPATH build
22583         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
22584
22585 2009-05-15  Jim Meyering  <meyering@redhat.com>
22586
22587         maint.mk: Give gnulib_dir a default definition.
22588         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
22589         Thus, most packages no longer need to specify this variable in cfg.mk
22590
22591 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
22592
22593         rename.m4: fix typos that would make non-mingw cross-configure fail
22594         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
22595
22596 2009-05-13  Eric Blake  <ebb9@byu.net>
22597
22598         mmap-anon: avoid out-of-order autoconf expansion
22599         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
22600         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
22601         * modules/memchr-tests (Depends-on): Add extensions.
22602         * modules/memchr2-tests (Depends-on): Add extensions.
22603         * modules/memcmp-tests (Depends-on): Add extensions.
22604         * modules/memmem-tests (Depends-on): Add extensions.
22605         * modules/memrchr-tests (Depends-on): Add extensions.
22606
22607 2009-05-13  Bruno Haible  <bruno@clisp.org>
22608
22609         Make some tests ISO C 99 compliant.
22610         * tests/zerosize-ptr.h: New file.
22611         * tests/test-memchr.c: Include zerosize-ptr.h.
22612         (main): Use a zero-size object pointer instead of NULL.
22613         * tests/test-memchr2.c: Include zerosize-ptr.h.
22614         (main): Use a zero-size object pointer instead of NULL.
22615         * tests/test-memcmp.c: Include zerosize-ptr.h.
22616         (main): Use a zero-size object pointer instead of NULL.
22617         * tests/test-memmem.c: Include zerosize-ptr.h.
22618         (main): Use a zero-size object pointer instead of NULL.
22619         * tests/test-memrchr.c: Include zerosize-ptr.h.
22620         (main): Use a zero-size object pointer instead of NULL.
22621         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
22622         m4/mmap-anon.m4.
22623         (Depends-on): Add getpagesize.
22624         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22625         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
22626         m4/mmap-anon.m4.
22627         (Depends-on): Add getpagesize.
22628         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22629         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
22630         m4/mmap-anon.m4.
22631         (Depends-on): Add getpagesize.
22632         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22633         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
22634         m4/mmap-anon.m4.
22635         (Depends-on): Add getpagesize.
22636         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22637         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
22638         m4/mmap-anon.m4.
22639         (Depends-on): Add getpagesize.
22640         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22641
22642 2009-05-12  Bruno Haible  <bruno@clisp.org>
22643
22644         Tests for module 'alignof'.
22645         * modules/alignof-tests: New file.
22646         * tests/test-alignof.c: New file.
22647
22648 2009-05-12  Bruno Haible  <bruno@clisp.org>
22649
22650         Fix alignof macro.
22651         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
22652         vendor compilers that are always correct.
22653
22654 2009-05-12  Bruno Haible  <bruno@clisp.org>
22655
22656         Make the MAP_ANONYMOUS detection work on HP-UX 11.
22657         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
22658         not whether its fully works.
22659
22660 2009-05-12  Bruno Haible  <bruno@clisp.org>
22661
22662         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
22663
22664 2009-05-12  Jim Meyering  <meyering@redhat.com>
22665
22666         * top/maint.mk: Adjust backslash alignment.
22667
22668 2009-05-11  Simon Josefsson  <simon@josefsson.org>
22669
22670         * top/maint.mk: Make $(srcdir)/build-aux configurable.
22671
22672 2009-05-11  Eric Blake  <ebb9@byu.net>
22673
22674         argp: avoid undefined behavior
22675         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
22676         macros.
22677
22678 2009-05-08  Simon Josefsson  <simon@josefsson.org>
22679
22680         * tests/test-vc-list-files-git.sh: Do git config of user.email and
22681         user.name to prevent git commit from complaining.
22682
22683 2009-05-10  Bruno Haible  <bruno@clisp.org>
22684
22685         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
22686         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
22687         it rewrites every file name only once.
22688         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
22689
22690 2009-05-08  Bruno Haible  <bruno@clisp.org>
22691
22692         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
22693         instead of 'max'.
22694
22695 2009-05-08  Simon Josefsson  <simon@josefsson.org>
22696
22697         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
22698         sockaddr_storage test.
22699
22700 2009-05-07  Simon Josefsson  <simon@josefsson.org>
22701
22702         * modules/sys_socket (Makefile.am): Substitute
22703         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
22704         * m4/sys_socket_h.m4: Check for sockaddr_storage.
22705         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
22706         * tests/test-sys_socket.c: Check sockaddr_storage.
22707
22708 2009-05-08  Bruno Haible  <bruno@clisp.org>
22709
22710         New module 'alignof'.
22711         * lib/alignof.h: New file.
22712         * modules/alignof: New file.
22713
22714 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22715             Bruno Haible  <bruno@clisp.org>
22716
22717         Fix test-file-has-acl on FreeBSD.
22718         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
22719         mask is implicitly added.
22720         * tests/test-file-has-acl.c: Include <signal.h>.
22721         (main): Terminate the test after 5 seconds.
22722         * modules/acl-tests (configure.ac): Check for alarm function.
22723
22724 2009-05-04  Bruno Haible  <bruno@clisp.org>
22725
22726         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
22727         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
22728         * modules/errno (configure.ac): Drop AC_REQUIRE.
22729         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
22730         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
22731
22732 2009-05-04  Simon Josefsson  <simon@josefsson.org>
22733
22734         * modules/glob-tests: New module.
22735         * tests/test-glob.c: Add.
22736
22737 2009-05-04  Simon Josefsson  <simon@josefsson.org>
22738
22739         * modules/fnmatch-tests: New module.
22740         * tests/test-fnmatch.c: Add.
22741
22742 2009-05-04  Eric Blake  <ebb9@byu.net>
22743
22744         maint: make the new no-submodule-changes rule VPATH-safe
22745         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
22746
22747 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22748             Bruno Haible  <bruno@clisp.org>
22749
22750         acl: Fix infinite loop on FreeBSD.
22751         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
22752         of return value from acl_get_entry.
22753         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
22754         Likewise.
22755
22756 2009-05-03  Bruno Haible  <bruno@clisp.org>
22757
22758         * lib/acl-internal.h (acl_entries): Clarify return value.
22759         * lib/acl_entries.c (acl_entries): Likewise.
22760
22761 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22762
22763         Bug fix in acl module.
22764         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
22765
22766 2009-05-03  Bruno Haible  <bruno@clisp.org>
22767
22768         Create gperf-generated file in the source dir, not in the build dir.
22769         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
22770         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
22771         * modules/unicase/locale-language (unicase/locale-languages.h):
22772         Likewise.
22773         * modules/unicase/special-casing (unicase/special-casing-table.h):
22774         Likewise.
22775         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
22776         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
22777         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
22778         Reported by Ralf Wildenhues.
22779
22780 2009-05-03  Bruno Haible  <bruno@clisp.org>
22781
22782         * modules/fnmatch (Description, configure.ac): Taken from
22783         fnmatch-posix.
22784         * modules/fnmatch-posix: Turn into a symbolic reference to the
22785         'fnmatch' module, and deprecate.
22786         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
22787
22788 2009-05-03  Bruno Haible  <bruno@clisp.org>
22789
22790         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
22791         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
22792         Reported by Ralf Wildenhues.
22793
22794 2009-05-04  Simon Josefsson  <simon@josefsson.org>
22795
22796         * m4/fnmatch.m4: Fix fnmatch re-define.
22797
22798 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22799
22800         priv-set: new module and tests; adapt write-any-file
22801         * lib/priv-set.c: New file.
22802         * lib/priv-set.h: New file.
22803         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
22804         * lib/write-any-file.c: Simplify by using priv-set module.
22805         * m4/priv-set.m4: New file.
22806         * modules/priv-set: New file.
22807         * modules/unlinkdir: Add dependency on priv-set module.
22808         * modules/write-any-file: Likewise.
22809
22810         Tests for module 'priv-set'.
22811         * modules/priv-set-tests: New file.
22812         * tests/test-priv-set.c: New file.
22813
22814 2009-05-03  Jim Meyering  <meyering@redhat.com>
22815             Bruno Haible  <bruno@clisp.org>
22816
22817         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
22818         use the converted UTF-8 variant of the name instead.
22819
22820 2009-05-03  Jim Meyering  <meyering@redhat.com>
22821
22822         tests: tighten some getdate tests
22823         * tests/test-getdate.c (main): Tighten tests: require equality,
22824         not just greater than.  Set TZ envvar to UTC0.
22825
22826 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22827
22828         getdate: correctly interpret "next monday" when run on a Monday
22829         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
22830         that e.g., "next tues" (when run on a tuesday) results in a date
22831         that is one week in the future, and not today's date.
22832         I.e., add a week when the wday is the same as the current one.
22833         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
22834         and earlier by Martin Bernreuther and Jan Minář.
22835         * tests/test-getdate.c (main): Check that "next DAY" is always in
22836         the future and that "last DAY" is always in the past.
22837
22838 2009-05-02  Jim Meyering  <meyering@redhat.com>
22839
22840         build: ensure that a release build fails when a submodule is unclean
22841         * top/maint.mk (no-submodule-changes): New rule.
22842         (alpha beta major): Depend on it.
22843
22844 2009-05-02  Bruno Haible  <bruno@clisp.org>
22845
22846         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
22847         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
22848         shell variable gl_fnmatch_required to detect which variant is
22849         requested.
22850         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
22851         gl_FUNC_FNMATCH_POSIX.
22852         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
22853         exclude fnmatch-posix.
22854
22855 2009-05-02  Bruno Haible  <bruno@clisp.org>
22856
22857         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
22858         * modules/mbsrtowcs (License): Change to LGPLv2+.
22859         * modules/strnlen1 (License): Likewise.
22860         Reported by Simon Josefsson.
22861
22862 2009-05-02  Bruno Haible  <bruno@clisp.org>
22863
22864         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
22865         "cross".
22866         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
22867         gnulib-tool was called with option --source-base=lib.
22868
22869 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22870
22871         Use automake *-local hooks without commands, for extensibility.
22872         * modules/localcharset (Makefile.am): Rename install-exec-local
22873         rule to install-exec-localcharset, and make it a prerequisite of
22874         install-exec-local.  Likewise, rename the uninstall-local rule to
22875         uninstall-localcharset, and make it a prerequisite of the former.
22876
22877 2009-05-01  Bruno Haible  <bruno@clisp.org>
22878
22879         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
22880         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
22881         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
22882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
22883         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
22884         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
22885         m4/locale-zh.m4, m4/codeset.m4.
22886
22887         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
22888         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
22889         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
22890         m4/locale-zh.m4.
22891
22892         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
22893         REPLACE_WCRTOMB if mbstate_t must be replaced.
22894         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
22895         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
22896
22897 2009-05-01  Bruno Haible  <bruno@clisp.org>
22898
22899         Avoid compiler warnings when redefining macros defined by <libintl.h>.
22900         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
22901         dngettext, dcngettext, textdomain, bindtextdomain,
22902         bind_textdomain_codeset): Undefine before redefining.
22903
22904 2009-04-30  Bruno Haible  <bruno@clisp.org>
22905
22906         Fix bug introduced on 2009-04-25.
22907         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
22908         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
22909         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
22910         is defined.
22911         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
22912         is defined.
22913         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
22914         is defined.
22915         Reported by Elbert_Pol <elbert.pol@gmail.com>.
22916
22917 2009-04-28  Bruno Haible  <bruno@clisp.org>
22918
22919         Comment tweaks.
22920         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
22921         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
22922         * lib/unicase.h (u*_casexfrm): Likewise.
22923         Reported by Paolo Bonzini.
22924
22925 2009-04-28  Bruno Haible  <bruno@clisp.org>
22926
22927         Fix a compilation error.
22928         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
22929         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22930         Reported by Jim Meyering.
22931
22932 2009-04-27  Bruno Haible  <bruno@clisp.org>
22933
22934         New module 'libunistring'.
22935         * modules/libunistring: New file.
22936         * m4/libunistring.m4: New file.
22937         * MODULES.html.sh (Unicode string functions): Add it.
22938
22939 2009-04-27  Eric Blake  <ebb9@byu.net>
22940
22941         maint.mk: allow package-specific header to provide <config.h>
22942         * top/maint.mk (sc_require_config_h): New variable.
22943         (sc_require_config_h, sc_require_config_h_first): Use it.
22944
22945 2009-04-27  Simon Josefsson  <simon@josefsson.org>
22946
22947         * top/maint.mk (sc_avoid_if_before_free): Except
22948         useless-if-before-free script.
22949
22950 2009-04-27  Eric Blake  <ebb9@byu.net>
22951
22952         maintainer-makefile: depend on all required helper scripts
22953         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
22954         useless-if-before-free.
22955         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
22956         version, rather than assuming gnulib checkout is available.
22957         Reported by Simen Josefsson.
22958
22959 2009-04-26  Bruno Haible  <bruno@clisp.org>
22960
22961         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
22962         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
22963         "../" or "..".
22964
22965 2009-04-26  Bruno Haible  <bruno@clisp.org>
22966
22967         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
22968         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
22969         AC_LIB_HAVE_LINKFLAGS.
22970
22971 2009-04-26  Bruno Haible  <bruno@clisp.org>
22972
22973         Simplify calling convention of u*_conv_from_encoding.
22974         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
22975         u32_conv_from_encoding): Expect a resultbuf argument and return the
22976         result directly as a pointer.
22977         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
22978         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
22979         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
22980         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
22981         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
22982         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
22983         Update.
22984         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
22985         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
22986         * lib/vasnprintf.c (VASNPRINTF): Update.
22987         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
22988         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
22989         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
22990         * NEWS: Mention the change.
22991
22992 2009-04-26  Bruno Haible  <bruno@clisp.org>
22993
22994         Simplify calling convention of u*_conv_to_encoding.
22995         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
22996         u32_conv_to_encoding): Expect a resultbuf argument and return the
22997         result directly as a pointer.
22998         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22999         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23000         freeing scaled_offsets if mem_iconveha failed.
23001         * lib/unicase/u-casexfrm.h (FUNC): Update.
23002         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23003         * lib/vasnprintf.c (VASNPRINTF): Update.
23004         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23005         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23006         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23007         * NEWS: Mention the change.
23008
23009 2009-04-26  Bruno Haible  <bruno@clisp.org>
23010
23011         Avoid test failures on AIX and OSF/1.
23012         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23013         malloc(0).
23014         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23015         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23016         Likewise.
23017         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23018         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23019         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23020         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23021         * doc/posix-functions/malloc.texi: Document the portability problem
23022         related to malloc(0).
23023
23024 2009-04-26  Bruno Haible  <bruno@clisp.org>
23025
23026         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23027         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23028         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23029
23030 2009-04-25  Bruno Haible  <bruno@clisp.org>
23031
23032         Avoid link error when creating a namespace clean library.
23033         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23034         as macro with arguments if already defined as an alias.
23035         * lib/signbitf.c (gl_signbitf): Don't undefine.
23036         * lib/signbitd.c (gl_signbitd): Don't undefine.
23037         * lib/signbitl.c (gl_signbitl): Don't undefine.
23038
23039 2009-04-25  Jim Meyering  <meyering@redhat.com>
23040
23041         vc-list-files: fix another quoting bug
23042         * build-aux/vc-list-files: Avoid sed backslash expansion
23043         of pathological directory names.
23044
23045 2009-04-25  Eric Blake  <ebb9@byu.net>
23046
23047         vc-list-files: fix shell quoting error
23048         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
23049         timestamp.
23050
23051 2009-04-25  Jim Meyering  <meyering@redhat.com>
23052
23053         vc-list-files: restore lost functionality with subdir argument
23054         * build-aux/vc-list-files: When given a non-"." sub-directory
23055         argument, substitute the $dir/ prefix back onto each resulting name.
23056         Otherwise, coreutils' root_tests check would fail.
23057
23058 2009-04-24  Eric Blake  <ebb9@byu.net>
23059
23060         vc-list-files: ignore git symlinks
23061         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
23062         than ls-files, to ignore git symlinks.
23063
23064         maint.mk: import improvements from m4
23065         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
23066         (move_if_change): Delete unused macro.
23067         (news-date-check, vc-diff-check): Support VPATH builds.
23068         (announcement): Likewise.  Split --bootstrap-tools list...
23069         (boostrap-tools): ...into separate list, which can be overridden
23070         in cfg.mk.
23071         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
23072         requiring dependency on useless-if-before-free module.
23073         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
23074         Support VPATH builds.
23075
23076 2009-04-24  Jim Meyering  <meyering@redhat.com>
23077
23078         maint.mk: remove coreutils-specific rules and variables
23079         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
23080         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
23081         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
23082
23083         maint.mk: remove obsolete rule
23084         * top/maint.mk (rel-check): Remove rule.
23085         (WGET, WGETFLAGS): Remove now-unused variables.
23086
23087 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23088
23089         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
23090         consistency.
23091
23092         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
23093         '$(PATH_SEPARATOR)' instead of ':'.
23094
23095 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23096
23097         * lib/getopt1.c (main): Use 'const' for static array.
23098
23099 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23100
23101         * top/maint.mk: Sync with coreutils.
23102         * NEWS: Explain incompatibilities.
23103
23104 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23105             Bruno Haible  <bruno@clisp.org>
23106
23107         Fix cross-compilation results.
23108         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
23109         statement, as third argument of AC_TRY_RUN.
23110         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23111         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23112         Likewise.
23113         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23114         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23115         Likewise.
23116         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23117         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
23118         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
23119
23120 2009-04-20  Bruno Haible  <bruno@clisp.org>
23121
23122         Avoid test failure on mingw.
23123         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
23124
23125 2009-04-20  Bruno Haible  <bruno@clisp.org>
23126
23127         Avoid compilation error on mingw.
23128         * modules/localename-tests (Depends-on): Add locale.
23129
23130 2009-04-19  Bruno Haible  <bruno@clisp.org>
23131
23132         Support for building a shared library on Windows platforms.
23133         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
23134         (main): Test the presence of UNINORM_NFC here.
23135         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
23136         (main): Test the presence of UNINORM_NFD here.
23137         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
23138         (main): Test the presence of UNINORM_NFKC here.
23139         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
23140         (main): Test the presence of UNINORM_NFKD here.
23141
23142 2009-04-19  Bruno Haible  <bruno@clisp.org>
23143
23144         Avoid a compiler warning.
23145         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
23146         Change type of variable 'sequence'.
23147
23148 2009-04-19  Bruno Haible  <bruno@clisp.org>
23149
23150         * modules/configmake (Makefile.am): When the contents of configmake.h
23151         does not change, arrange to preserve its modification time.
23152
23153 2009-04-17  Simon Josefsson  <simon@josefsson.org>
23154
23155         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
23156         gettext domain.
23157
23158 2009-04-16  Jim Meyering  <meyering@redhat.com>
23159
23160         useless-if-before-free: improve conversion code
23161         * build-aux/useless-if-before-free: Adjust code-in-comment to match
23162         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
23163
23164 2009-04-14  Bruno Haible  <bruno@clisp.org>
23165
23166         * modules/fcntl (Depends-on): Add extensions.
23167         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
23168
23169 2009-04-12  Ben Pfaff  <blp@gnu.org>
23170
23171         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
23172         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
23173
23174 2009-03-20  Ben Pfaff  <blp@gnu.org>
23175
23176         Make rename replace existing destinations on Windows.
23177         * m4/rename.m4: Add test for Mingw.
23178         * lib/rename.c: Add rename replacement that uses MoveFileEx with
23179         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
23180         * doc/posix-functions/rename.texi: Document.
23181
23182 2009-04-10  Bruno Haible  <bruno@clisp.org>
23183
23184         New include file "iconveh.h".
23185         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23186         * lib/striconveh.h: Include it.
23187         (enum iconv_ilseq_handler): Remove definition.
23188         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
23189         striconveh.h.
23190         * lib/striconveha.c: Include striconveh.h.
23191         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
23192         * modules/striconveh (Files): Add lib/iconveh.h.
23193         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
23194         lib/striconveh.h.
23195
23196 2009-04-10  Bruno Haible  <bruno@clisp.org>
23197
23198         * lib/uniconv.h: Update comment.
23199
23200 2009-04-10  Bruno Haible  <bruno@clisp.org>
23201
23202         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
23203         always.
23204         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
23205         * lib/unistr/u16-mbtouc-aux.c: Likewise.
23206         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
23207         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
23208         "unistring-notinline.h", so that the function gets defined always.
23209         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
23210         * lib/unistr/u8-uctomb.c: Likewise.
23211         * lib/unistr/u16-mbtouc.c: Likewise.
23212         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
23213         * lib/unistr/u16-uctomb.c: Likewise.
23214         * lib/unistr/u32-mbtouc.c: Likewise.
23215         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
23216         * lib/unistr/u32-uctomb.c: Likewise.
23217
23218 2009-04-10  Bruno Haible  <bruno@clisp.org>
23219
23220         Mark 'utime' obsolete.
23221         * modules/utime (Status, Notice): New sections.
23222         Suggested by Jim Meyering.
23223
23224         Fix cross-compile guess for utime test.
23225         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
23226         autoconf.
23227         * doc/posix-functions/utime.texi: Give more precisions.
23228         Reported by Jan <ipif@ymail.com>.
23229
23230 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
23231
23232         filevercmp: correct today's change
23233         * lib/filevercmp.c: Also handle coreutils' test inputs.
23234         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
23235
23236         Fix regression in 'filevercmp' module. Thanks Sven Joachim
23237         for reporting it.
23238         * lib/filevercmp.c: Special handle for "", "." and "..".
23239         * tests/test-filevercmp.c: Enlarge the set suite.
23240
23241 2009-04-07  Jim Meyering  <meyering@redhat.com>
23242
23243         useless-if-before-free: show how to remove braced useless free, too
23244         * build-aux/useless-if-before-free: still only in a comment, though.
23245
23246 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
23247
23248         maint.mk: import changes to syntax-check macros from coreutils
23249         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
23250         Use them in the relevant macros.
23251
23252 2009-04-06  Bruno Haible  <bruno@clisp.org>
23253
23254         Fix unportable use of bit-fields.
23255         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
23256         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
23257         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
23258
23259 2009-04-06  Bruno Haible  <bruno@clisp.org>
23260
23261         Avoid test failures on AIX and OSF/1.
23262         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
23263         that malloc(0) = NULL.
23264         * tests/unicase/test-u8-tolower.c (check): Likewise.
23265         * tests/unicase/test-u8-totitle.c (check): Likewise.
23266         * tests/unicase/test-u8-toupper.c (check): Likewise.
23267         * tests/unicase/test-u16-casefold.c (check): Likewise.
23268         * tests/unicase/test-u16-tolower.c (check): Likewise.
23269         * tests/unicase/test-u16-totitle.c (check): Likewise.
23270         * tests/unicase/test-u16-toupper.c (check): Likewise.
23271         * tests/unicase/test-u32-casefold.c (check): Likewise.
23272         * tests/unicase/test-u32-tolower.c (check): Likewise.
23273         * tests/unicase/test-u32-totitle.c (check): Likewise.
23274         * tests/unicase/test-u32-toupper.c (check): Likewise.
23275         * tests/uninorm/test-u8-nfc.c (check): Likewise.
23276         * tests/uninorm/test-u8-nfd.c (check): Likewise.
23277         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
23278         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
23279         * tests/uninorm/test-u16-nfc.c (check): Likewise.
23280         * tests/uninorm/test-u16-nfd.c (check): Likewise.
23281         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
23282         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
23283         * tests/uninorm/test-u32-nfc.c (check): Likewise.
23284         * tests/uninorm/test-u32-nfd.c (check): Likewise.
23285         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
23286         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
23287
23288 2009-04-05  Bruno Haible  <bruno@clisp.org>
23289
23290         Work around an autoconf limitation.
23291         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
23292         comment line if it would be longer than 3 KB.
23293
23294 2009-04-05  Bruno Haible  <bruno@clisp.org>
23295
23296         Avoid test failure with libiconv-1.13.
23297         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
23298         of the expected test results.
23299
23300 2009-04-05  Bruno Haible  <bruno@clisp.org>
23301
23302         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
23303         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
23304         that it should be installed.
23305
23306 2009-04-05  Bruno Haible  <bruno@clisp.org>
23307
23308         * gnulib-tool: New option --copy-file.
23309         (func_usage): Document it.
23310         (func_dest_tmpfilename): Moved out of func_import.
23311         (func_add_file, func_update_file): New functions, extracted from
23312         func_import.
23313         (func_import): Update.
23314
23315 2009-04-05  Karl Berry  <karl@gnu.org>
23316
23317         * README: prominently mention gnulib-tool.
23318         Rearrange sections so getting the code is near the top.
23319
23320 2009-04-05  Bruno Haible  <bruno@clisp.org>
23321
23322         * lib/unicase.h: Mention u*_cmp2.
23323         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23324         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
23325         * lib/unicase/ulc-casecmp.c: Likewise.
23326         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
23327         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
23328         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
23329         unistr/u8-cmp.
23330         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
23331         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
23332         unistr/u16-cmp.
23333         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
23334         unistr/u32-cmp.
23335
23336         * lib/uninorm.h: Mention u*_cmp2.
23337         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23338         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
23339         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
23340         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
23341         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
23342         unistr/u8-cmp.
23343         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
23344         unistr/u16-cmp.
23345         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
23346         unistr/u32-cmp.
23347
23348         New module 'unistr/u32-cmp2'.
23349         * lib/unistr/u32-cmp2.c: New file.
23350         * modules/unistr/u32-cmp2: New file.
23351
23352         New module 'unistr/u16-cmp2'.
23353         * lib/unistr/u16-cmp2.c: New file.
23354         * modules/unistr/u16-cmp2: New file.
23355
23356         New module 'unistr/u8-cmp2'.
23357         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
23358         * lib/unistr/u8-cmp2.c: New file.
23359         * lib/unistr/u-cmp2.h: New file.
23360         * modules/unistr/u8-cmp2: New file.
23361
23362 2009-04-05  Bruno Haible  <bruno@clisp.org>
23363
23364         * lib/unictype.h (uc_property_is_valid): New macro.
23365         * tests/unictype/test-pr_byname.c (main): Use it.
23366
23367         * lib/unistr.h: Doc fixes.
23368         * lib/uniconv.h: Doc fixes.
23369         * lib/unictype.h: Doc fixes.
23370
23371 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
23372
23373         Port coreutils 7.2 to Solaris 8.
23374
23375         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
23376         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
23377         for Solaris 8.  This is a bit of a hack, as it means it's the
23378         caller's responsibility to add -lnsl if needed, but most likely it
23379         won't be needed since only getaddrinfo uses this and getaddrinfo
23380         isn't needed on Solaris 8.
23381
23382         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
23383         problem to Solaris 8 encountered with coreutils 7.2, which
23384         resulted in a message "fnmatch.c:292: warning: passing argument 4
23385         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
23386         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
23387
23388 2009-04-03  Simon Josefsson  <simon@josefsson.org>
23389
23390         * m4/ld-version-script.m4: Add FIXME comment.
23391
23392 2009-04-02  Simon Josefsson  <simon@josefsson.org>
23393
23394         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
23395         SOVERSION variable.
23396
23397 2009-04-02  Bruno Haible  <bruno@clisp.org>
23398
23399         * Makefile (info, html, dvi, pdf): Combine the rules.
23400         Suggested by Jim Meyering.
23401
23402 2009-04-01  Bruno Haible  <bruno@clisp.org>
23403
23404         * Makefile (info, html, dvi, pdf): New targets.
23405         Reported by Reuben Thomas <rrt@sc3d.org>.
23406
23407 2009-04-01  Bruno Haible  <bruno@clisp.org>
23408
23409         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
23410         can be put into PATH.
23411         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
23412
23413 2009-04-01  Bruno Haible  <bruno@clisp.org>
23414
23415         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
23416
23417 2009-04-01  Bruno Haible  <bruno@clisp.org>
23418
23419         Rename module 'visibility'.
23420         * modules/lib-symbol-visibility: Renamed from modules/visibility.
23421         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
23422         * doc/gnulib.texi: Update.
23423         * MODULES.html.sh (Misc): Update.
23424         * NEWS: Mention the change.
23425
23426 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23427
23428         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
23429         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
23430         Eric Blake <ebb9@byu.net> for review.
23431         * MODULES.html.sh: Add lib-msvc-compat.
23432         * doc/gnulib.texi: Link to new section.
23433         * m4/ld-output-def.m4: New file.
23434         * doc/ld-output-def.texi: New file.
23435
23436 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23437
23438         Rename ld-version-script to lib-symbol-versions.  Suggested by
23439         Bruno Haible <bruno@clisp.org>.
23440         * modules/ld-version-script: Renamed to lib-symbol-versions.
23441         * doc/ld-version-script.texi: Fix module name.
23442         * MODULES.html.sh: Add lib-symbol-versions.
23443
23444 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23445
23446         * modules/u64-tests: New file.
23447         * tests/test-u64.c: New file.
23448
23449 2009-03-04  Simon Josefsson  <simon@josefsson.org>
23450
23451         * MODULES.html.sh: Mention u64.
23452         * modules/u64: New module.
23453         * modules/crypto/sha512: Depend on u64 module instead of providing
23454         u64.h.
23455
23456 2009-03-27  Eric Blake  <ebb9@byu.net>
23457
23458         test-strerror: make debugging EAI_SYSTEM easier
23459         * modules/getaddrinfo-tests (Depends-on): Add strerror.
23460         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
23461         failure was EAI_SYSTEM.
23462
23463 2009-03-25  Bruno Haible  <bruno@clisp.org>
23464
23465         Fix a problem with --enable-relocatable on Solaris 7.
23466         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
23467         since 2008-02-24.
23468
23469 2009-03-25  Eric Blake  <ebb9@byu.net>
23470
23471         test-sockets: avoid gcc warning
23472         * tests/test-sockets.c (main): Silence compiler warning.
23473
23474 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23475
23476         New modules nproc, pthread, contributed by Glen Lenker.
23477
23478         * MODULES.html.sh: Add pthread, nproc.
23479         * lib/nproc.c: New file.
23480         * lib/nproc.h: New file.
23481         * lib/pthread.in.h: New file.
23482         * m4/pthread.m4: New file.
23483         * modules/nproc: New file.
23484         * modules/pthread: New file.
23485
23486 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23487
23488         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
23489         New variable.
23490
23491 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
23492
23493         filevercmp: handle simple~ and numbered.~3~ backup suffixes
23494         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
23495         * tests/test-filevercmp.c: Add tests for backup suffixes.
23496
23497 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23498
23499         * modules/stdlib (Depends-on): Add stdint, needed when defining
23500         struct random_data on, for example, HP-UX 10.20.  Reported by
23501         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23502
23503 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23504
23505         * lib/readline.c (readline): Call fflush on stdout after printing
23506         prompt.
23507
23508 2009-03-20  Bruno Haible  <bruno@clisp.org>
23509
23510         Remove dependency from 'close' module to -lws2_32 on native Windows.
23511         * lib/close-hook.h: New file.
23512         * lib/close-hook.c: New file.
23513         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
23514         w32sock.h.
23515         (_gl_close_fd_maybe_socket): Remove function.
23516         (rpl_close): Invoke execute_all_close_hooks instead of
23517         _gl_close_fd_maybe_socket.
23518         * lib/sockets.c: Include close-hook.h, w32sock.h.
23519         (close_fd_maybe_socket): New function, essentially from lib/close.c.
23520         (close_sockets_hook): New variable.
23521         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
23522         (gl_sockets_cleanup): Unregister it.
23523         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
23524         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
23525         * modules/close-hook: New file.
23526         * modules/close (Files): Remove lib/w32sock.h.
23527         (Depends-on): Add close-hook.
23528         (Link): Remove section.
23529         * modules/sockets (Files): Add lib/w32sock.h.
23530         (Depends-on): Add close-hook.
23531         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
23532         invocation.
23533         * NEWS: Mention that LIB_CLOSE is gone.
23534
23535 2009-03-23  Eric Blake  <ebb9@byu.net>
23536
23537         signal-tests: test previous patch
23538         * tests/test-signal.c: New file.
23539         * modules/signal-tests: Likewise.
23540
23541         signal.h: always support 'volatile sig_atomic_t'
23542         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
23543         (gl_SIGNAL_H_DEFAULTS): Add a default.
23544         * modules/signal (Makefile.am): Substitute if needed.
23545         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
23546         users can blindly add volatile.
23547         * doc/posix-headers/signal.texi (signal.h): Document it.
23548         Reported by Matthew Woehlke.
23549
23550 2009-03-23  Jim Meyering  <meyering@redhat.com>
23551
23552         pathmax: PATH_MAX: use pathconf only when available
23553         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
23554         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
23555         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
23556         This avoids a link failure in a PSP cross-compilation environment
23557         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
23558
23559         * lib/vasnprintf.c (divide): Fix typo in comment.
23560
23561 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23562
23563         * gnulib-tool (func_filter_filelist): Fix comment.
23564
23565 2009-03-20  Bruno Haible  <bruno@clisp.org>
23566
23567         Make sockets.h self-contained.
23568         * lib/sockets.c: Include sockets.h first.
23569         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
23570
23571 2009-03-19  Eric Blake  <ebb9@byu.net>
23572
23573         doc: mention more functions added in cygwin 1.7.0
23574         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
23575         addition.
23576         * doc/posix-functions/log2f.texi: Likewise.
23577
23578 2009-03-19  Jim Meyering  <meyering@redhat.com>
23579
23580         fsusage: avoid syntax error due to statement-before-declaration
23581         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
23582         after all declarations.  Reported by Matthew Woehlke in
23583         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
23584
23585 2009-03-18  Eric Blake  <ebb9@byu.net>
23586
23587         build-aux/compile: sync from automake
23588         * build-aux/compile: New file, from automake.
23589         * config/srclist.txt: Mention build-aux/compile.
23590
23591 2009-03-17  Bruno Haible  <bruno@clisp.org>
23592
23593         * lib/git-merge-changelog.c: Fix typo in comment.
23594         Reported by Reuben Thomas <rrt@sc3d.org>.
23595
23596 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
23597
23598         * m4/regex.m4: update and improve help for
23599         --without-included-regex.
23600
23601 2009-03-17  Simon Josefsson  <simon@josefsson.org>
23602
23603         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
23604         failure on missing include files.
23605
23606 2009-03-17  Eric Blake  <ebb9@byu.net>
23607
23608         doc: mention more functions added in cygwin 1.7.0
23609         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
23610         addition.
23611         * doc/posix-functions/fwscanf.texi: Likewise.
23612         * doc/posix-functions/swprintf.texi: Likewise.
23613         * doc/posix-functions/swscanf.texi: Likewise.
23614         * doc/posix-functions/vfwprintf.texi: Likewise.
23615         * doc/posix-functions/vfwscanf.texi: Likewise.
23616         * doc/posix-functions/vswprintf.texi: Likewise.
23617         * doc/posix-functions/vswscanf.texi: Likewise.
23618         * doc/posix-functions/vwprintf.texi: Likewise.
23619         * doc/posix-functions/vwscanf.texi: Likewise.
23620         * doc/posix-functions/wcscasecmp.texi: Likewise.
23621         * doc/posix-functions/wcsdup.texi: Likewise.
23622         * doc/posix-functions/wcsftime.texi: Likewise.
23623         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23624         * doc/posix-functions/wprintf.texi: Likewise.
23625         * doc/posix-functions/wscanf.texi: Likewise.
23626         * doc/glibc-functions/gethostbyname2.texi: Likewise.
23627
23628 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23629
23630         maint.mk: really add $(AM_MAKEFLAGS)
23631         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
23632         was inadvertently omitted in the last commit.
23633         Spotted by Bruno Haible.
23634
23635         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
23636         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
23637         $(AM_MAKEFLAGS)' rather than plain `make'.
23638
23639         gnulib-tool: execute $MAKE not make
23640         * gnulib-tool: Default $MAKE to 'make'.
23641         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
23642         than make.  Initialize $MAKE in the do-autobuild script.
23643
23644         gnulib-tool: use $MAKE not make in generated files
23645         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
23646         make, in generated files.  Initialize $MAKE in the do-autobuild
23647         script.
23648
23649         * top/GNUmakefile (_have-git-version-gen): Fix typo.
23650
23651         GNUmakefile: disable parallelism only for multiple, recursive targets
23652         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
23653         additions in the Makefile.
23654         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
23655         by Automake.
23656         (.NOTPARALLEL): Only disable parallel builds if multiple targets
23657         are listed on the command line and at least one of them is
23658         listed in $(ALL_RECURSIVE_TARGETS).
23659
23660 2009-03-14  Bruno Haible  <bruno@clisp.org>
23661
23662         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
23663         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
23664         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
23665         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
23666         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
23667         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
23668         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
23669         unistr/u8-uctomb.
23670         * modules/unistr/u8-strchr (Depends-on): Likewise.
23671         * modules/unistr/u8-strrchr (Depends-on): Likewise.
23672         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
23673         unistr/u16-uctomb.
23674         * modules/unistr/u16-strchr (Depends-on): Likewise.
23675         * modules/unistr/u16-strrchr (Depends-on): Likewise.
23676
23677 2009-03-12  Bruno Haible  <bruno@clisp.org>
23678
23679         Work around select() bug on Interix 3.5.
23680         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
23681         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
23682         * m4/select.m4: New file.
23683         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
23684         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
23685         * modules/select (Files): Add m4/select.m4.
23686         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
23687         * modules/nanosleep (Depends-on): Add select.
23688         * modules/poll (Depends-on): Likewise.
23689         * doc/posix-functions/select.texi: Mention the Interix bug.
23690         Reported by Markus Duft <mduft@gentoo.org>.
23691
23692         * lib/select.c: Renamed from lib/winsock-select.c.
23693         * modules/select (Files): Add lib/select.c, remove
23694         lib/winsock-select.c.
23695         (configure.ac): Update.
23696
23697 2009-03-12  Jim Meyering  <meyering@redhat.com>
23698
23699         avoid gcc warnings about unused macro definitions
23700         * lib/readtokens.c (STREQ): Remove unused definition.
23701         * lib/xmalloc.c (SIZE_MAX): Likewise.
23702         * lib/openat-die.c (N_): Likewise.
23703         * lib/mountlist.c (SIZE_MAX): Remove definition.
23704         Instead, include <stdint.h>.
23705         * lib/readutmp.c: Likewise.
23706         * modules/readutmp (Depends-on): Add stdint.
23707         * modules/mountlist (Depends-on): Add stdint.
23708         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
23709
23710 2009-03-10  Bruno Haible  <bruno@clisp.org>
23711
23712         Tests for module 'mbmemcasecoll'.
23713         * modules/mbmemcasecoll-tests: New file.
23714         * tests/test-mbmemcasecoll1.sh: New file.
23715         * tests/test-mbmemcasecoll2.sh: New file.
23716         * tests/test-mbmemcasecoll3.sh: New file.
23717         * tests/test-mbmemcasecoll.c: New file.
23718
23719         New module 'mbmemcasecoll'.
23720         * lib/mbmemcasecoll.h: New file.
23721         * lib/mbmemcasecoll.c: New file.
23722         * modules/mbmemcasecoll: New file.
23723
23724         * tests/test-mbmemcasecmp.h: New file, extracted from
23725         tests/test-mbmemcasecmp.c.
23726         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
23727         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
23728         (main): Update.
23729         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
23730
23731 2009-03-09  Bruno Haible  <bruno@clisp.org>
23732
23733         Tests for module 'mbmemcasecmp'.
23734         * modules/mbmemcasecmp-tests: New file.
23735         * tests/test-mbmemcasecmp1.sh: New file.
23736         * tests/test-mbmemcasecmp2.sh: New file.
23737         * tests/test-mbmemcasecmp3.sh: New file.
23738         * tests/test-mbmemcasecmp.c: New file.
23739
23740         New module 'mbmemcasecmp'.
23741         * lib/mbmemcasecmp.h: New file.
23742         * lib/mbmemcasecmp.c: New file.
23743         * modules/mbmemcasecmp: New file.
23744
23745 2009-03-09  Bruno Haible  <bruno@clisp.org>
23746
23747         Tests for module 'unicase/ulc-casecoll'.
23748         * modules/unicase/ulc-casecoll-tests: New file.
23749         * tests/unicase/test-ulc-casecoll1.sh: New file.
23750         * tests/unicase/test-ulc-casecoll2.sh: New file.
23751         * tests/unicase/test-ulc-casecoll.c: New file.
23752
23753         New module 'unicase/ulc-casecoll'.
23754         * lib/unicase.h (ulc_casecoll): New declaration.
23755         * lib/unicase/ulc-casecoll.c: New file.
23756         * modules/unicase/ulc-casecoll: New file.
23757
23758         New module 'unicase/ulc-casexfrm'.
23759         * lib/unicase.h (ulc_casexfrm): New declaration.
23760         * lib/unicase/ulc-casexfrm.c: New file.
23761         * modules/unicase/ulc-casexfrm: New file.
23762
23763 2009-03-09  Bruno Haible  <bruno@clisp.org>
23764
23765         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
23766         invocations.
23767
23768         * m4/mbscasecmp.m4: Remove file.
23769         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
23770         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
23771
23772         * m4/mbscasestr.m4: Remove file.
23773         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
23774         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
23775
23776         * m4/mbschr.m4: Remove file.
23777         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
23778         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
23779
23780         * m4/mbscspn.m4: Remove file.
23781         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
23782         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
23783
23784         * m4/mbslen.m4: Remove file.
23785         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
23786         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
23787
23788         * m4/mbsncasecmp.m4: Remove file.
23789         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
23790         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
23791
23792         * m4/mbsnlen.m4: Remove file.
23793         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
23794         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
23795
23796         * m4/mbspbrk.m4: Remove file.
23797         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
23798         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
23799
23800         * m4/mbspcasecmp.m4: Remove file.
23801         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
23802         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
23803
23804         * m4/mbsrchr.m4: Remove file.
23805         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
23806         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
23807
23808         * m4/mbssep.m4: Remove file.
23809         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
23810         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
23811
23812         * m4/mbsspn.m4: Remove file.
23813         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
23814         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
23815
23816         * m4/mbsstr.m4: Remove file.
23817         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
23818         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
23819
23820         * m4/mbstok_r.m4: Remove file.
23821         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
23822         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
23823
23824         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
23825
23826         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
23827         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
23828
23829         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
23830
23831 2009-03-08  Bruno Haible  <bruno@clisp.org>
23832
23833         Tests for module 'unicase/ulc-casecmp'.
23834         * modules/unicase/ulc-casecmp-tests: New file.
23835         * tests/unicase/test-ulc-casecmp1.sh: New file.
23836         * tests/unicase/test-ulc-casecmp2.sh: New file.
23837         * tests/unicase/test-ulc-casecmp.c: New file.
23838
23839         New module 'unicase/ulc-casecmp'.
23840         * lib/unicase.h (ulc_casecmp): New declaration.
23841         * lib/unicase/ulc-casecmp.c: New file.
23842         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
23843         'const SRC_UNIT *'.
23844         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
23845         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
23846         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
23847         * modules/unicase/ulc-casecmp: New file.
23848
23849         Tests for module 'unicase/u32-is-cased'.
23850         * modules/unicase/u32-is-cased-tests: New file.
23851         * tests/unicase/test-u32-is-cased.c: New file.
23852
23853         Tests for module 'unicase/u16-is-cased'.
23854         * modules/unicase/u16-is-cased-tests: New file.
23855         * tests/unicase/test-u16-is-cased.c: New file.
23856
23857         Tests for module 'unicase/u8-is-cased'.
23858         * modules/unicase/u8-is-cased-tests: New file.
23859         * tests/unicase/test-u8-is-cased.c: New file.
23860         * tests/unicase/test-is-cased.h: New file.
23861
23862         New module 'unicase/u32-is-cased'.
23863         * lib/unicase/u32-is-cased.c: New file.
23864         * modules/unicase/u32-is-cased: New file.
23865
23866         New module 'unicase/u16-is-cased'.
23867         * lib/unicase/u16-is-cased.c: New file.
23868         * modules/unicase/u16-is-cased: New file.
23869
23870         New module 'unicase/u8-is-cased'.
23871         * lib/unicase/u8-is-cased.c: New file.
23872         * lib/unicase/u-is-cased.h: New file.
23873         * modules/unicase/u8-is-cased: New file.
23874
23875         Tests for module 'unicase/u32-is-casefolded'.
23876         * modules/unicase/u32-is-casefolded-tests: New file.
23877         * tests/unicase/test-u32-is-casefolded.c: New file.
23878
23879         Tests for module 'unicase/u16-is-casefolded'.
23880         * modules/unicase/u16-is-casefolded-tests: New file.
23881         * tests/unicase/test-u16-is-casefolded.c: New file.
23882
23883         Tests for module 'unicase/u8-is-casefolded'.
23884         * modules/unicase/u8-is-casefolded-tests: New file.
23885         * tests/unicase/test-u8-is-casefolded.c: New file.
23886         * tests/unicase/test-is-casefolded.h: New file.
23887
23888         New module 'unicase/u32-is-casefolded'.
23889         * lib/unicase/u32-is-casefolded.c: New file.
23890         * modules/unicase/u32-is-casefolded: New file.
23891
23892         New module 'unicase/u16-is-casefolded'.
23893         * lib/unicase/u16-is-casefolded.c: New file.
23894         * modules/unicase/u16-is-casefolded: New file.
23895
23896         New module 'unicase/u8-is-casefolded'.
23897         * lib/unicase/u8-is-casefolded.c: New file.
23898         * modules/unicase/u8-is-casefolded: New file.
23899
23900         Tests for module 'unicase/u32-is-titlecase'.
23901         * modules/unicase/u32-is-titlecase-tests: New file.
23902         * tests/unicase/test-u32-is-titlecase.c: New file.
23903
23904         Tests for module 'unicase/u16-is-titlecase'.
23905         * modules/unicase/u16-is-titlecase-tests: New file.
23906         * tests/unicase/test-u16-is-titlecase.c: New file.
23907
23908         Tests for module 'unicase/u8-is-titlecase'.
23909         * modules/unicase/u8-is-titlecase-tests: New file.
23910         * tests/unicase/test-u8-is-titlecase.c: New file.
23911         * tests/unicase/test-is-titlecase.h: New file.
23912
23913         New module 'unicase/u32-is-titlecase'.
23914         * lib/unicase/u32-is-titlecase.c: New file.
23915         * modules/unicase/u32-is-titlecase: New file.
23916
23917         New module 'unicase/u16-is-titlecase'.
23918         * lib/unicase/u16-is-titlecase.c: New file.
23919         * modules/unicase/u16-is-titlecase: New file.
23920
23921         New module 'unicase/u8-is-titlecase'.
23922         * lib/unicase/u8-is-titlecase.c: New file.
23923         * modules/unicase/u8-is-titlecase: New file.
23924
23925         Tests for module 'unicase/u32-is-lowercase'.
23926         * modules/unicase/u32-is-lowercase-tests: New file.
23927         * tests/unicase/test-u32-is-lowercase.c: New file.
23928
23929         Tests for module 'unicase/u16-is-lowercase'.
23930         * modules/unicase/u16-is-lowercase-tests: New file.
23931         * tests/unicase/test-u16-is-lowercase.c: New file.
23932
23933         Tests for module 'unicase/u8-is-lowercase'.
23934         * modules/unicase/u8-is-lowercase-tests: New file.
23935         * tests/unicase/test-u8-is-lowercase.c: New file.
23936         * tests/unicase/test-is-lowercase.h: New file.
23937
23938         New module 'unicase/u32-is-lowercase'.
23939         * lib/unicase/u32-is-lowercase.c: New file.
23940         * modules/unicase/u32-is-lowercase: New file.
23941
23942         New module 'unicase/u16-is-lowercase'.
23943         * lib/unicase/u16-is-lowercase.c: New file.
23944         * modules/unicase/u16-is-lowercase: New file.
23945
23946         New module 'unicase/u8-is-lowercase'.
23947         * lib/unicase/u8-is-lowercase.c: New file.
23948         * modules/unicase/u8-is-lowercase: New file.
23949
23950         Tests for module 'unicase/u32-is-uppercase'.
23951         * modules/unicase/u32-is-uppercase-tests: New file.
23952         * tests/unicase/test-u32-is-uppercase.c: New file.
23953
23954         Tests for module 'unicase/u16-is-uppercase'.
23955         * modules/unicase/u16-is-uppercase-tests: New file.
23956         * tests/unicase/test-u16-is-uppercase.c: New file.
23957
23958         Tests for module 'unicase/u8-is-uppercase'.
23959         * modules/unicase/u8-is-uppercase-tests: New file.
23960         * tests/unicase/test-u8-is-uppercase.c: New file.
23961         * tests/unicase/test-is-uppercase.h: New file.
23962
23963         New module 'unicase/u32-is-uppercase'.
23964         * lib/unicase/u32-is-uppercase.c: New file.
23965         * modules/unicase/u32-is-uppercase: New file.
23966
23967         New module 'unicase/u16-is-uppercase'.
23968         * lib/unicase/u16-is-uppercase.c: New file.
23969         * modules/unicase/u16-is-uppercase: New file.
23970
23971         New module 'unicase/u8-is-uppercase'.
23972         * lib/unicase/u8-is-uppercase.c: New file.
23973         * modules/unicase/u8-is-uppercase: New file.
23974
23975         New module 'unicase/u32-is-invariant'.
23976         * lib/unicase/u32-is-invariant.c: New file.
23977         * modules/unicase/u32-is-invariant: New file.
23978
23979         New module 'unicase/u16-is-invariant'.
23980         * lib/unicase/u16-is-invariant.c: New file.
23981         * modules/unicase/u16-is-invariant: New file.
23982
23983         New module 'unicase/u8-is-invariant'.
23984         * lib/unicase/u8-is-invariant.c: New file.
23985         * lib/unicase/invariant.h: New file.
23986         * lib/unicase/u-is-invariant.h: New file.
23987         * modules/unicase/u8-is-invariant: New file.
23988
23989         Tests for module 'unicase/u32-casecoll'.
23990         * modules/unicase/u32-casecoll-tests: New file.
23991         * tests/unicase/test-u32-casecoll.c: New file.
23992
23993         Tests for module 'unicase/u16-casecoll'.
23994         * modules/unicase/u16-casecoll-tests: New file.
23995         * tests/unicase/test-u16-casecoll.c: New file.
23996
23997         Tests for module 'unicase/u8-casecoll'.
23998         * modules/unicase/u8-casecoll-tests: New file.
23999         * tests/unicase/test-u8-casecoll.c: New file.
24000
24001         New module 'unicase/u32-casecoll'.
24002         * lib/unicase/u32-casecoll.c: New file.
24003         * modules/unicase/u32-casecoll: New file.
24004
24005         New module 'unicase/u16-casecoll'.
24006         * lib/unicase/u16-casecoll.c: New file.
24007         * modules/unicase/u16-casecoll: New file.
24008
24009         New module 'unicase/u8-casecoll'.
24010         * lib/unicase/u8-casecoll.c: New file.
24011         * lib/unicase/u-casecoll.h: New file.
24012         * modules/unicase/u8-casecoll: New file.
24013
24014         New module 'unicase/u32-casexfrm'.
24015         * lib/unicase/u32-casexfrm.c: New file.
24016         * modules/unicase/u32-casexfrm: New file.
24017
24018         New module 'unicase/u16-casexfrm'.
24019         * lib/unicase/u16-casexfrm.c: New file.
24020         * modules/unicase/u16-casexfrm: New file.
24021
24022         New module 'unicase/u8-casexfrm'.
24023         * lib/unicase/u8-casexfrm.c: New file.
24024         * lib/unicase/u-casexfrm.h: New file.
24025         * modules/unicase/u8-casexfrm: New file.
24026
24027         Tests for module 'unicase/u32-casecmp'.
24028         * modules/unicase/u32-casecmp-tests: New file.
24029         * tests/unicase/test-u32-casecmp.c: New file.
24030
24031         Tests for module 'unicase/u16-casecmp'.
24032         * modules/unicase/u16-casecmp-tests: New file.
24033         * tests/unicase/test-u16-casecmp.c: New file.
24034
24035         Tests for module 'unicase/u8-casecmp'.
24036         * modules/unicase/u8-casecmp-tests: New file.
24037         * tests/unicase/test-u8-casecmp.c: New file.
24038         * tests/unicase/test-casecmp.h: New file.
24039
24040         New module 'unicase/u32-casecmp'.
24041         * lib/unicase/u32-casecmp.c: New file.
24042         * modules/unicase/u32-casecmp: New file.
24043
24044         New module 'unicase/u16-casecmp'.
24045         * lib/unicase/u16-casecmp.c: New file.
24046         * modules/unicase/u16-casecmp: New file.
24047
24048         New module 'unicase/u8-casecmp'.
24049         * lib/unicase/u8-casecmp.c: New file.
24050         * lib/unicase/u-casecmp.h: New file.
24051         * modules/unicase/u8-casecmp: New file.
24052
24053         Tests for module 'unicase/u32-casefold'.
24054         * modules/unicase/u32-casefold-tests: New file.
24055         * tests/unicase/test-u32-casefold.c: New file.
24056
24057         Tests for module 'unicase/u16-casefold'.
24058         * modules/unicase/u16-casefold-tests: New file.
24059         * tests/unicase/test-u16-casefold.c: New file.
24060
24061         Tests for module 'unicase/u8-casefold'.
24062         * modules/unicase/u8-casefold-tests: New file.
24063         * tests/unicase/test-u8-casefold.c: New file.
24064
24065         New module 'unicase/u32-casefold'.
24066         * lib/unicase/u32-casefold.c: New file.
24067         * modules/unicase/u32-casefold: New file.
24068
24069         New module 'unicase/u16-casefold'.
24070         * lib/unicase/u16-casefold.c: New file.
24071         * modules/unicase/u16-casefold: New file.
24072
24073         New module 'unicase/u8-casefold'.
24074         * lib/unicase/u8-casefold.c: New file.
24075         * lib/unicase/u-casefold.h: New file.
24076         * modules/unicase/u8-casefold: New file.
24077
24078         New module 'unicase/tocasefold'.
24079         * lib/unicase/casefold.h: New file.
24080         * lib/unicase/tocasefold.c: New file.
24081         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
24082         * modules/unicase/tocasefold: New file.
24083
24084         Tests for module 'unicase/u32-totitle'.
24085         * modules/unicase/u32-totitle-tests: New file.
24086         * tests/unicase/test-u32-totitle.c: New file.
24087
24088         Tests for module 'unicase/u16-totitle'.
24089         * modules/unicase/u16-totitle-tests: New file.
24090         * tests/unicase/test-u16-totitle.c: New file.
24091
24092         Tests for module 'unicase/u8-totitle'.
24093         * modules/unicase/u8-totitle-tests: New file.
24094         * tests/unicase/test-u8-totitle.c: New file.
24095
24096         New module 'unicase/u32-totitle'.
24097         * lib/unicase/u32-totitle.c: New file.
24098         * modules/unicase/u32-totitle: New file.
24099
24100         New module 'unicase/u16-totitle'.
24101         * lib/unicase/u16-totitle.c: New file.
24102         * modules/unicase/u16-totitle: New file.
24103
24104         New module 'unicase/u8-totitle'.
24105         * lib/unicase/u8-totitle.c: New file.
24106         * lib/unicase/u-totitle.h: New file.
24107         * modules/unicase/u8-totitle: New file.
24108
24109         Tests for module 'unicase/u32-tolower'.
24110         * modules/unicase/u32-tolower-tests: New file.
24111         * tests/unicase/test-u32-tolower.c: New file.
24112
24113         Tests for module 'unicase/u16-tolower'.
24114         * modules/unicase/u16-tolower-tests: New file.
24115         * tests/unicase/test-u16-tolower.c: New file.
24116
24117         Tests for module 'unicase/u8-tolower'.
24118         * modules/unicase/u8-tolower-tests: New file.
24119         * tests/unicase/test-u8-tolower.c: New file.
24120
24121         New module 'unicase/u32-tolower'.
24122         * lib/unicase/u32-tolower.c: New file.
24123         * modules/unicase/u32-tolower: New file.
24124
24125         New module 'unicase/u16-tolower'.
24126         * lib/unicase/u16-tolower.c: New file.
24127         * modules/unicase/u16-tolower: New file.
24128
24129         New module 'unicase/u8-tolower'.
24130         * lib/unicase/u8-tolower.c: New file.
24131         * modules/unicase/u8-tolower: New file.
24132
24133         Tests for module 'unicase/u32-toupper'.
24134         * modules/unicase/u32-toupper-tests: New file.
24135         * tests/unicase/test-u32-toupper.c: New file.
24136
24137         Tests for module 'unicase/u16-toupper'.
24138         * modules/unicase/u16-toupper-tests: New file.
24139         * tests/unicase/test-u16-toupper.c: New file.
24140
24141         Tests for module 'unicase/u8-toupper'.
24142         * modules/unicase/u8-toupper-tests: New file.
24143         * tests/unicase/test-u8-toupper.c: New file.
24144
24145         New module 'unicase/u32-toupper'.
24146         * lib/unicase/u32-toupper.c: New file.
24147         * modules/unicase/u32-toupper: New file.
24148
24149         New module 'unicase/u16-toupper'.
24150         * lib/unicase/u16-toupper.c: New file.
24151         * modules/unicase/u16-toupper: New file.
24152
24153         New module 'unicase/u8-toupper'.
24154         * lib/unicase/u8-toupper.c: New file.
24155         * modules/unicase/u8-toupper: New file.
24156
24157         New module 'unicase/u32-casemap'.
24158         * lib/unicase/u32-casemap.c: New file.
24159         * modules/unicase/u32-casemap: New file.
24160
24161         New module 'unicase/u16-casemap'.
24162         * lib/unicase/u16-casemap.c: New file.
24163         * modules/unicase/u16-casemap: New file.
24164
24165         New module 'unicase/u8-casemap'.
24166         * lib/unicase/unicasemap.h: New file.
24167         * lib/unicase/u8-casemap.c: New file.
24168         * lib/unicase/u-casemap.h: New file.
24169         * modules/unicase/u8-casemap: New file.
24170
24171         New module 'unicase/special-casing'.
24172         * lib/unicase/special-casing.h: New file.
24173         * lib/unicase/special-casing.c: New file.
24174         * lib/unicase/special-casing-table.gperf: New file, generated by
24175         gen-uni-tables.c.
24176         * modules/unicase/special-casing: New file.
24177
24178         Tests for module 'unicase/locale-language'.
24179         * modules/unicase/locale-language-tests: New file.
24180         * tests/unicase/test-locale-language.sh: New file.
24181         * tests/unicase/test-locale-language.c: New file.
24182
24183         New module 'unicase/locale-language'.
24184         * lib/unicase/locale-language.c: New file.
24185         * lib/unicase/locale-languages.gperf: New file.
24186         * modules/unicase/locale-language: New file.
24187
24188         Generate more tables for case conversion and case folding.
24189         * lib/gen-uni-tables.c (SCC_*): New enum items.
24190         (struct special_casing_rule): New type.
24191         (casing_rules, num_casing_rules, allocated_casing_rules): New
24192         variables.
24193         (add_casing_rule, fill_casing_rules): New functions.
24194         (struct casefold_rule): New type.
24195         (casefolding_rules, num_casefolding_rules,
24196         allocated_casefolding_rules): New variables.
24197         (fill_casefolding_rules): New function.
24198         (unicode_casefold): New variable.
24199         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
24200         sort_casing_rules, output_casing_rules): New functions.
24201         (main): Accept to more arguments: SpecialCasing.txt and
24202         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
24203         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
24204         Output mapping for casefolding.
24205
24206         * lib/unicase.h: Include stdbool.h, uninorm.h.
24207         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
24208         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
24209         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
24210         arguments.
24211         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
24212         resultp arguments.
24213         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
24214         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
24215         resultp arguments.
24216         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
24217         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
24218         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
24219         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
24220         declarations.
24221         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
24222
24223 2009-03-08  Bruno Haible  <bruno@clisp.org>
24224
24225         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24226         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
24227         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
24228         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24229
24230 2009-03-07  Bruno Haible  <bruno@clisp.org>
24231
24232         Adjust u*_normcmp, u*_normcoll API.
24233         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24234         u16_normcoll, u32_normcoll): Change failure conventions.
24235         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
24236         errno and return -1.
24237         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24238
24239 2009-03-07  Bruno Haible  <bruno@clisp.org>
24240
24241         Tests for module 'uninorm/u32-normcoll'.
24242         * modules/uninorm/u32-normcoll-tests: New file.
24243         * tests/uninorm/test-u32-normcoll.c: New file.
24244
24245         Tests for module 'uninorm/u16-normcoll'.
24246         * modules/uninorm/u16-normcoll-tests: New file.
24247         * tests/uninorm/test-u16-normcoll.c: New file.
24248
24249         Tests for module 'uninorm/u8-normcoll'.
24250         * modules/uninorm/u8-normcoll-tests: New file.
24251         * tests/uninorm/test-u8-normcoll.c: New file.
24252
24253 2009-03-07  Bruno Haible  <bruno@clisp.org>
24254
24255         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
24256         tests/uninorm/test-u32-normcmp.c.
24257         * tests/uninorm/test-u32-normcmp.c: Include it.
24258         (test_nonascii): New function, extracted from main. Add some more
24259         tests.
24260         (main): Invoke test_ascii and test_nonascii.
24261         * modules/uninorm/u32-normcmp-tests (Files): Add
24262         tests/uninorm/test-u32-normcmp.h.
24263         (Depends-on): Remove uninorm/u32-normcmp.
24264
24265         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
24266         tests/uninorm/test-u16-normcmp.c.
24267         * tests/uninorm/test-u16-normcmp.c: Include it.
24268         (test_nonascii): New function, extracted from main. Add some more
24269         tests.
24270         (main): Invoke test_ascii and test_nonascii.
24271         * modules/uninorm/u16-normcmp-tests (Files): Add
24272         tests/uninorm/test-u16-normcmp.h.
24273         (Depends-on): Remove uninorm/u16-normcmp.
24274
24275         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
24276         tests/uninorm/test-u8-normcmp.c.
24277         * tests/uninorm/test-u8-normcmp.c: Include it.
24278         (test_nonascii): New function, extracted from main. Add some more
24279         tests.
24280         (main): Invoke test_ascii and test_nonascii.
24281         * modules/uninorm/u8-normcmp-tests (Files): Add
24282         tests/uninorm/test-u8-normcmp.h.
24283         (Depends-on): Remove uninorm/u8-normcmp.
24284
24285 2009-03-07  Bruno Haible  <bruno@clisp.org>
24286
24287         New module 'uninorm/u32-normcoll'.
24288         * lib/uninorm/u32-normcoll.c: New file.
24289         * modules/uninorm/u32-normcoll: New file.
24290
24291         New module 'uninorm/u16-normcoll'.
24292         * lib/uninorm/u16-normcoll.c: New file.
24293         * modules/uninorm/u16-normcoll: New file.
24294
24295         New module 'uninorm/u8-normcoll'.
24296         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
24297         declarations.
24298         * lib/uninorm/u8-normcoll.c: New file.
24299         * lib/uninorm/u-normcoll.h: New file.
24300         * modules/uninorm/u8-normcoll: New file.
24301
24302         New module 'uninorm/u32-normxfrm'.
24303         * lib/uninorm/u32-normxfrm.c: New file.
24304         * modules/uninorm/u32-normxfrm: New file.
24305
24306         New module 'uninorm/u16-normxfrm'.
24307         * lib/uninorm/u16-normxfrm.c: New file.
24308         * modules/uninorm/u16-normxfrm: New file.
24309
24310         New module 'uninorm/u8-normxfrm'.
24311         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
24312         declarations.
24313         * lib/uninorm/u8-normxfrm.c: New file.
24314         * lib/uninorm/u-normxfrm.h: New file.
24315         * modules/uninorm/u8-normxfrm: New file.
24316
24317 2009-03-07  Bruno Haible  <bruno@clisp.org>
24318
24319         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
24320         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
24321         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
24322
24323 2009-03-07  Bruno Haible  <bruno@clisp.org>
24324
24325         New module 'memxfrm'.
24326         * lib/memxfrm.h: New file.
24327         * lib/memxfrm.c: New file.
24328         * modules/memxfrm: New file.
24329
24330 2009-03-07  Bruno Haible  <bruno@clisp.org>
24331
24332         New module 'memcmp2'.
24333         * lib/memcmp2.h: New file.
24334         * lib/memcmp2.c: New file.
24335         * modules/memcmp2: New file.
24336
24337 2009-03-07  Bruno Haible  <bruno@clisp.org>
24338
24339         Tests for module 'uninorm/decomposing-form'.
24340         * modules/uninorm/decomposing-form-tests: New file.
24341         * tests/uninorm/test-decomposing-form.c: New file.
24342
24343         New module 'uninorm/decomposing-form'.
24344         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
24345         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
24346         Add 'decomposing_variant' field.
24347         * lib/uninorm/decomposing-form.c: New file.
24348         * lib/uninorm/nfc.c (uninorm_nfc): Update.
24349         * lib/uninorm/nfd.c (uninorm_nfd): Update.
24350         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
24351         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
24352         * modules/uninorm/decomposing-form: New file.
24353         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
24354         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
24355
24356 2009-03-07  Bruno Haible  <bruno@clisp.org>
24357
24358         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
24359         strings.
24360
24361 2009-03-06  Bruno Haible  <bruno@clisp.org>
24362
24363         Tests for module 'uninorm/u32-normcmp'.
24364         * tests/uninorm/test-u32-normcmp.c: New file.
24365         * modules/uninorm/u32-normcmp-tests: New file.
24366
24367         Tests for module 'uninorm/u16-normcmp'.
24368         * tests/uninorm/test-u16-normcmp.c: New file.
24369         * modules/uninorm/u16-normcmp-tests: New file.
24370
24371         Tests for module 'uninorm/u8-normcmp'.
24372         * tests/uninorm/test-u8-normcmp.c: New file.
24373         * modules/uninorm/u8-normcmp-tests: New file.
24374
24375         New module 'uninorm/u32-normcmp'.
24376         * lib/uninorm/u32-normcmp.c: New file.
24377         * modules/uninorm/u32-normcmp: New file.
24378
24379         New module 'uninorm/u16-normcmp'.
24380         * lib/uninorm/u16-normcmp.c: New file.
24381         * modules/uninorm/u16-normcmp: New file.
24382
24383         New module 'uninorm/u8-normcmp'.
24384         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
24385         declarations.
24386         * lib/uninorm/u8-normcmp.c: New file.
24387         * lib/uninorm/u-normcmp.h: New file.
24388         * modules/uninorm/u8-normcmp: New file.
24389
24390 2009-03-06  Bruno Haible  <bruno@clisp.org>
24391
24392         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
24393         Reported by Eric Blake.
24394
24395 2009-03-06  Eric Blake  <ebb9@byu.net>
24396             Bruno Haible  <bruno@clisp.org>
24397
24398         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
24399         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
24400         condition.
24401         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24402         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
24403         condition.
24404         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24405
24406 2009-03-06  Eric Blake  <ebb9@byu.net>
24407
24408         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
24409         to avoid compiler warnings.
24410         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
24411
24412 2009-03-05  Bruno Haible  <bruno@clisp.org>
24413
24414         * tests/test-ftell.c (main): Disable test beyond end of file on
24415         FreeMiNT.
24416         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24417
24418 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
24419
24420         * lib/filevercmp.c: Move hidden files up in ordering.
24421         * tests/test-filevercmp.c: Add tests for hidden files.
24422
24423 2009-03-04  Bruno Haible  <bruno@clisp.org>
24424
24425         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
24426         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
24427         AM_CFLAGS.
24428         Reported by Simon Josefsson.
24429
24430 2009-03-03  Bruno Haible  <bruno@clisp.org>
24431
24432         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
24433         Reported by Simon Josefsson.
24434
24435         * doc/ld-version-script.texi: Update node reference.
24436
24437 2009-03-03  Bruno Haible  <bruno@clisp.org>
24438
24439         * modules/visibility (License): Change to 'unlimited'.
24440         Suggested by Simon Josefsson.
24441
24442 2009-03-03  Jim Meyering  <meyering@redhat.com>
24443
24444         unlinkdir: cannot_unlink_dir may modify process state
24445         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
24446         it's neither thread-safe nor appropriate for use in a library.
24447
24448 2009-03-03  Eric Blake  <ebb9@byu.net>
24449
24450         test-closein: silence test under Darwin
24451         * tests/test-closein.sh: Ignore stderr from cat, since we don't
24452         care if it dies from EPIPE or EBADF.
24453
24454 2009-03-03  Bruno Haible  <bruno@clisp.org>
24455
24456         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
24457         earlier.
24458         * doc/visibility.texi: Fix @node and @section.
24459
24460 2009-03-03  Simon Josefsson  <simon@josefsson.org>
24461
24462         * doc/gnulib.texi: Link to sections for ld version script and
24463         visibility.
24464         * doc/visibility.texi: Add @node and @section.
24465         * modules/ld-version-script: New module.
24466         * m4/ld-version-script.m4: New file.
24467         * doc/ld-version-script.texi: New file.
24468
24469 2009-03-02  David Lutterkort  <lutter@redhat.com>
24470
24471         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
24472         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24473
24474 2009-03-02  Bruno Haible  <bruno@clisp.org>
24475
24476         * doc/visibility.texi: Mention libtool's -export-symbols option.
24477
24478 2009-03-02  Jim Meyering  <meyering@redhat.com>
24479
24480         announce-gen: new option: --no-print-checksums
24481         * build-aux/announce-gen (usage): Describe it.
24482         (print_checksums): Print a newline here, not in the [*] footnote.
24483         (main): Honor it.
24484
24485 2009-03-01  Bruno Haible  <bruno@clisp.org>
24486
24487         Use socklen_t in the native Windows replacements prototypes.
24488         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
24489         instead of 'int'.
24490         * lib/getsockopt.c (rpl_getsockopt): Likewise.
24491         * lib/setsockopt.c (rpl_setsockopt): Likewise.
24492         * modules/getsockopt (Depends-on): Add socklen.
24493         * modules/setsockopt (Depends-on): Add socklen.
24494
24495 2009-03-01  Bruno Haible  <bruno@clisp.org>
24496
24497         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
24498         least 4.2.
24499
24500 2009-03-01  Eric Blake  <ebb9@byu.net>
24501             Bruno Haible  <bruno@clisp.org>
24502
24503         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
24504         error messages.
24505         * lib/wait-process.c (wait_subprocess): Omit error message about
24506         deadly signal sent to the child of termsigp != NULL.
24507
24508 2009-03-01  Eric Blake  <ebb9@byu.net>
24509
24510         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
24511
24512 2009-03-01  Bruno Haible  <bruno@clisp.org>
24513
24514         Avoid a gcc warning.
24515         * tests/test-sched.c (b): Make global.
24516         Reported by Eric Blake.
24517
24518 2009-01-19  Martin Lambers  <marlam@marlam.de>
24519
24520         Provide POSIX semantics for socket timeout options on W32.
24521         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
24522         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
24523         * modules/setsockopt: Depend on sys_time module for struct timeval.
24524         * modules/getsockopt: Depend on sys_time module for struct timeval.
24525
24526 2009-03-01  Simon Josefsson  <simon@josefsson.org>
24527
24528         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
24529         __USE_GNU, for consistency with netdb.in.h.
24530         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24531
24532 2009-03-01  Bruno Haible  <bruno@clisp.org>
24533
24534         More support for FreeMiNT.
24535         * lib/fseeko.c (rpl_fseeko): Complete last commit.
24536         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24537
24538 2009-03-01  Bruno Haible  <bruno@clisp.org>
24539
24540         More support for FreeMiNT.
24541         * lib/fpurge.c (fpurge): Correct last commit.
24542         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24543
24544 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24545
24546         Fix unportable awk script in vc-list-files.
24547         * build-aux/vc-list-files: In the replacement awk script, use
24548         substr with a second argument of 1, not zero.
24549         Report by Simon Josefsson.
24550
24551 2009-02-28  Bruno Haible  <bruno@clisp.org>
24552
24553         More support for FreeMiNT.
24554         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
24555         to FreeMiNT today.
24556         * lib/fwriting.c (fwriting): Likewise.
24557         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
24558
24559 2009-02-28  Bruno Haible  <bruno@clisp.org>
24560
24561         * tests/test-freadseek.c (main): Disable test beyond end of file on
24562         FreeMiNT.
24563         * tests/test-ftello.c (main): Likewise.
24564         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24565
24566 2009-02-28  Bruno Haible  <bruno@clisp.org>
24567
24568         Add tentative support for FreeMiNT.
24569         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
24570         * lib/fpurge.c (fpurge): Likewise.
24571         * lib/freadable.c (freadable): Likewise.
24572         * lib/freading.c (freading): Likewise.
24573         * lib/freadptr.c (freadptr): Likewise.
24574         * lib/freadseek.c (freadptrinc): Likewise.
24575         * lib/fseeko.c (rpl_fseeko): Likewise.
24576         * lib/fseterr.c (fseterr): Likewise.
24577         * lib/fwritable.c (fwritable): Likewise.
24578         * lib/fwriting.c (fwriting): Likewise.
24579         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
24580         Hourihane.
24581         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24582
24583 2009-02-28  Bruno Haible  <bruno@clisp.org>
24584
24585         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
24586         SIGCHLD.
24587         Reported by Jim Meyering.
24588
24589 2009-02-28  Bruno Haible  <bruno@clisp.org>
24590
24591         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
24592         Mention the results of these tests on various platforms.
24593         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
24594         order.
24595         * doc/posix-functions/printf.texi: Likewise.
24596         * doc/posix-functions/snprintf.texi: Likewise.
24597         * doc/posix-functions/sprintf.texi: Likewise.
24598         * doc/posix-functions/vfprintf.texi: Likewise.
24599         * doc/posix-functions/vprintf.texi: Likewise.
24600         * doc/posix-functions/vsnprintf.texi: Likewise.
24601         * doc/posix-functions/vsprintf.texi: Likewise.
24602         * doc/glibc-functions/obstack_printf.texi: Likewise.
24603         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24604
24605 2009-02-28  Bruno Haible  <bruno@clisp.org>
24606
24607         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
24608         Reported by Loïc Minier <lool@dooz.org>.
24609
24610 2009-02-27  Bruno Haible  <bruno@clisp.org>
24611
24612         * gnulib-tool (func_import): Make the sed expression used to create the
24613         sed script for updating the .gitignore file POSIX compliant.
24614         Reported by Eric Blake.
24615
24616 2009-02-27  Bruno Haible  <bruno@clisp.org>
24617
24618         * gnulib-tool (sed): Don't alias as "sed --posix".
24619         Reported by Eric Blake.
24620
24621 2009-02-27  Bruno Haible  <bruno@clisp.org>
24622
24623         Avoid test link errors.
24624         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
24625         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
24626         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
24627         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
24628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24629
24630 2009-02-27  Bruno Haible  <bruno@clisp.org>
24631
24632         Avoid spurious "(cached)" in configure output.
24633         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
24634         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
24635         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
24636         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
24637         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
24638         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
24639         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
24640         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
24641         Reported by Eric Blake.
24642
24643 2009-02-27  Eric Blake  <ebb9@byu.net>
24644
24645         printf: fix regression in previous patch
24646         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
24647
24648 2009-02-27  Bruno Haible  <bruno@clisp.org>
24649
24650         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
24651         value.
24652         * lib/stdint.in.h: Likewise.
24653         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
24654
24655 2009-02-27  Eric Blake  <ebb9@byu.net>
24656
24657         doc: mention more functions added in cygwin 1.7.0
24658         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
24659         addition.
24660         * doc/posix-functions/open_wmemstream.texi: Likewise.
24661         * doc/posix-functions/wcsnlen.texi: Likewise.
24662         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24663         * doc/posix-functions/wcstod.texi: Likewise.
24664         * doc/posix-functions/wcstof.texi: Likewise.
24665         * doc/posix-functions/wcstoimax.texi: Likewise.
24666         * doc/posix-functions/wcstok.texi: Likewise.
24667         * doc/posix-functions/wcstoumax.texi: Likewise.
24668
24669         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
24670         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
24671         * doc/posix-functions/fprintf.texi: Update.
24672         * doc/posix-functions/printf.texi: Update.
24673         * doc/posix-functions/snprintf.texi: Update.
24674         * doc/posix-functions/sprintf.texi: Update.
24675         * doc/posix-functions/vfprintf.texi: Update.
24676         * doc/posix-functions/vprintf.texi: Update.
24677         * doc/posix-functions/vsnprintf.texi: Update.
24678         * doc/posix-functions/vsprintf.texi: Update.
24679         * doc/glibc-functions/obstack_printf.texi: Update.
24680         * doc/glibc-functions/obstack_vprintf.texi: Update.
24681
24682 2009-02-26  Eric Blake  <ebb9@byu.net>
24683
24684         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
24685         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
24686         compilation bug by using runtime conversion.
24687         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24688         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
24689         * modules/ceill-tests (Files): Use nan.h.
24690         * modules/floorl-tests (Files): Likewise.
24691         * modules/frexpl-tests (Files): Likewise.
24692         * modules/isnanl-tests (Files): Likewise.
24693         * modules/ldexpl-tests (Files): Likewise.
24694         * modules/roundl-tests (Files): Likewise.
24695         * modules/truncl-tests (Files): Likewise.
24696         * tests/test-ceill.c (main): Use a working NaN.
24697         * tests/test-floorl.c (main): Likewise.
24698         * tests/test-frexpl.c (main): Likewise.
24699         * tests/test-isnan.c (test_long_double): Likewise.
24700         * tests/test-isnanl.h (main): Likewise.
24701         * tests/test-ldexpl.h (main): Likewise.
24702         * tests/test-roundl.h (main): Likewise.
24703         * tests/test-truncl.h (main): Likewise.
24704         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
24705
24706 2009-02-26  Eric Blake  <ebb9@byu.net>
24707             Bruno Haible  <bruno@clisp.org>
24708
24709         Work around a *printf bug with %ls on Solaris.
24710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
24711         precision is specified, sprintf stops converting the wide string
24712         argument when the number of bytes that have been produced by this
24713         conversion equals or exceeds the precision.
24714         * doc/posix-functions/fprintf.texi: Update.
24715         * doc/posix-functions/printf.texi: Update.
24716         * doc/posix-functions/snprintf.texi: Update.
24717         * doc/posix-functions/sprintf.texi: Update.
24718         * doc/posix-functions/vfprintf.texi: Update.
24719         * doc/posix-functions/vprintf.texi: Update.
24720         * doc/posix-functions/vsnprintf.texi: Update.
24721         * doc/posix-functions/vsprintf.texi: Update.
24722         * doc/glibc-functions/obstack_printf.texi: Update.
24723         * doc/glibc-functions/obstack_vprintf.texi: Update.
24724
24725 2009-02-26  Eric Blake  <ebb9@byu.net>
24726
24727         stdlib: favor compiler check of random.h
24728         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
24729         to avoid an ObjC random.h installed by Swarm.
24730
24731 2009-02-26  Bruno Haible  <bruno@clisp.org>
24732
24733         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
24734         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
24735         Reported by Gary V. Vaughan <gary@gnu.org>.
24736
24737 2009-02-26  Bruno Haible  <bruno@clisp.org>
24738
24739         Fix *printf behaviour regarding the %ls directive.
24740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
24741         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
24742         NEED_PRINTF_DIRECTIVE_LS.
24743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
24744         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
24745         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24746         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
24747         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
24748         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
24749         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24754         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
24755         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24757         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24758         * doc/posix-functions/fprintf.texi: Update.
24759         * doc/posix-functions/printf.texi: Update.
24760         * doc/posix-functions/snprintf.texi: Update.
24761         * doc/posix-functions/sprintf.texi: Update.
24762         * doc/posix-functions/vfprintf.texi: Update.
24763         * doc/posix-functions/vprintf.texi: Update.
24764         * doc/posix-functions/vsnprintf.texi: Update.
24765         * doc/posix-functions/vsprintf.texi: Update.
24766         * doc/glibc-functions/obstack_printf.texi: Update.
24767         * doc/glibc-functions/obstack_vprintf.texi: Update.
24768         Reported by Eric Blake.
24769
24770 2009-02-25  Bruno Haible  <bruno@clisp.org>
24771
24772         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
24773         with known value.
24774         Reported by Gary V. Vaughan <gary@gnu.org>.
24775
24776 2009-02-25  Bruno Haible  <bruno@clisp.org>
24777
24778         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
24779         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
24780         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
24781         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
24782         Reported by Gary V. Vaughan <gary@gnu.org>.
24783
24784 2009-02-25  Bruno Haible  <bruno@clisp.org>
24785
24786         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
24787         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
24788         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
24789         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
24790         Reported by Gary V. Vaughan <gary@gnu.org>.
24791
24792 2009-02-25  Eric Blake  <ebb9@byu.net>
24793
24794         tests: skip fseek/ftell tests if ungetc is broken
24795         * m4/ungetc.m4: New file.
24796         * modules/fseek-tests: Split test, so ungetc dependency is
24797         separate from rest of test.
24798         * modules/fseeko-tests: Likewise.
24799         * modules/ftell-tests: Likewise.
24800         * modules/ftello-tests: Likewise.
24801         * tests/test-fseek.c (main): Isolate ungetc dependency.
24802         * tests/test-fseeko.c (main): Likewise.
24803         * tests/test-ftell.c (main): Likewise.
24804         * tests/test-ftello.c (main): Likewise.
24805         * tests/test-fseek2.sh: New file.
24806         * tests/test-fseeko2.sh: Likewise.
24807         * tests/test-ftell2.sh: Likewise.
24808         * tests/test-ftello2.sh: Likewise.
24809
24810 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
24811
24812         test-getaddrinfo: fix usage of skip return code 77
24813         * tests/test-gettaddrinfo.c: Return skip code 77 only
24814         for first occurance of skip (4x77 is not 77)
24815
24816 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
24817
24818         strtod: avoid C99 decl-after-statement
24819         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
24820
24821 2009-02-24  Eric Blake  <ebb9@byu.net>
24822
24823         strtod: detect HP-UX 11.31 bug
24824         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
24825         Reported by Gary V. Vaughan.
24826
24827 2009-02-23  Bruno Haible  <bruno@clisp.org>
24828
24829         Fix invalid read past end of memory block.
24830         * lib/vasnprintf.c (DCHAR_SET): Define.
24831         (local_wcslen): Define only when needed.
24832         (local_strnlen, local_wcsnlen): New functions.
24833         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
24834         directives that involve a conversion ourselves.
24835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
24836         wcsnlen, mbrtowc, wcrtomb.
24837         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
24838         * tests/test-vasprintf-posix.c (test_function): Likewise.
24839         * tests/test-snprintf-posix.h (test_function): Likewise.
24840         * tests/test-sprintf-posix.h (test_function): Likewise.
24841         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24842
24843 2009-02-22  Bruno Haible  <bruno@clisp.org>
24844
24845         Implement new clarified decomposition of Hangul syllables.
24846         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
24847         of type LTV, return only a pairwise decomposition.
24848         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
24849         Likewise.
24850         * tests/uninorm/test-decomposition.c (main): Updated expected result.
24851         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
24852         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
24853
24854 2009-02-22  Bruno Haible  <bruno@clisp.org>
24855
24856         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
24857         zero-length results and shrink excess allocated memory.
24858         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
24859         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
24860         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
24861         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
24862         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
24863         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
24864         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
24865         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
24866         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
24867         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
24868         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
24869         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
24870
24871 2009-02-21  Bruno Haible  <bruno@clisp.org>
24872
24873         * doc/gnulib.texi: Include safe-alloc.texi earlier.
24874         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
24875         spaces after a period. Put a space between a macro name and its
24876         argument list. Trivial rewordings.
24877         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
24878         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
24879         (main): Return 0 explicitly.
24880
24881 2009-02-21  Bruno Haible  <bruno@clisp.org>
24882
24883         Tests for module 'uninorm/filter'.
24884         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
24885         * modules/uninorm/filter-tests: New file.
24886
24887         New module 'uninorm/filter'.
24888         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
24889         uninorm_filter_flush, uninorm_filter_free): New declarations.
24890         * lib/uninorm/uninorm-filter.c: New file.
24891         * modules/uninorm/filter: New file.
24892
24893 2009-02-21  Bruno Haible  <bruno@clisp.org>
24894
24895         Tests for module 'uninorm/nfkc'.
24896         * tests/uninorm/test-nfkc.c: New file.
24897         * tests/uninorm/test-u8-nfkc.c: New file.
24898         * tests/uninorm/test-u16-nfkc.c: New file.
24899         * tests/uninorm/test-u32-nfkc.c: New file.
24900         * tests/uninorm/test-u32-nfkc-big.sh: New file.
24901         * tests/uninorm/test-u32-nfkc-big.c: New file.
24902         * modules/uninorm/nfkc-tests: New file.
24903
24904         New module 'uninorm/nfkc'.
24905         * lib/uninorm/nfkc.c: New file.
24906         * modules/uninorm/nfkc: New file.
24907
24908         Tests for module 'uninorm/nfkd'.
24909         * tests/uninorm/test-nfkd.c: New file.
24910         * tests/uninorm/test-u8-nfkd.c: New file.
24911         * tests/uninorm/test-u16-nfkd.c: New file.
24912         * tests/uninorm/test-u32-nfkd.c: New file.
24913         * tests/uninorm/test-u32-nfkd-big.sh: New file.
24914         * tests/uninorm/test-u32-nfkd-big.c: New file.
24915         * modules/uninorm/nfkd-tests: New file.
24916
24917         New module 'uninorm/nfkd'.
24918         * lib/uninorm/nfkd.c: New file.
24919         * modules/uninorm/nfkd: New file.
24920
24921         Tests for module 'uninorm/nfc'.
24922         * tests/uninorm/test-nfc.c: New file.
24923         * tests/uninorm/test-u8-nfc.c: New file.
24924         * tests/uninorm/test-u16-nfc.c: New file.
24925         * tests/uninorm/test-u32-nfc.c: New file.
24926         * tests/uninorm/test-u32-nfc-big.sh: New file.
24927         * tests/uninorm/test-u32-nfc-big.c: New file.
24928         * modules/uninorm/nfc-tests: New file.
24929
24930         New module 'uninorm/nfc'.
24931         * lib/uninorm/nfc.c: New file.
24932         * modules/uninorm/nfc: New file.
24933
24934         Tests for module 'uninorm/nfd'.
24935         * tests/uninorm/test-nfd.c: New file.
24936         * tests/uninorm/test-u8-nfd.c: New file.
24937         * tests/uninorm/test-u16-nfd.c: New file.
24938         * tests/uninorm/test-u32-nfd.c: New file.
24939         * tests/uninorm/test-u32-nfd-big.sh: New file.
24940         * tests/uninorm/test-u32-nfd-big.c: New file.
24941         * tests/uninorm/test-u32-normalize-big.h: New file.
24942         * tests/uninorm/test-u32-normalize-big.c: New file.
24943         * tests/uninorm/NormalizationTest.txt: New file, created from
24944         Unicode 5.1.0 NormalizationTest.txt.
24945         * modules/uninorm/nfd-tests: New file.
24946
24947         New module 'uninorm/nfd'.
24948         * lib/uninorm/nfd.c: New file.
24949         * modules/uninorm/nfd: New file.
24950
24951         New module 'uninorm/u32-normalize'.
24952         * lib/uninorm/u32-normalize.c: New file.
24953         * modules/uninorm/u32-normalize: New file.
24954
24955         New module 'uninorm/u16-normalize'.
24956         * lib/uninorm/u16-normalize.c: New file.
24957         * modules/uninorm/u16-normalize: New file.
24958
24959         New module 'uninorm/u8-normalize'.
24960         * lib/uninorm/u8-normalize.c: New file.
24961         * lib/uninorm/normalize-internal.h: New file.
24962         * lib/uninorm/u-normalize-internal.h: New file.
24963         * modules/uninorm/u8-normalize: New file.
24964
24965         New module 'uninorm/decompose-internal'.
24966         * lib/uninorm/decompose-internal.c: New file.
24967         * modules/uninorm/decompose-internal: New file.
24968
24969         Tests for module 'uninorm/composition'.
24970         * tests/uninorm/test-composition.c: New file.
24971         * modules/uninorm/composition-tests: New file.
24972
24973         New module 'uninorm/composition'.
24974         * lib/uninorm/composition.c: New file.
24975         * lib/uninorm/composition-table.gperf: New file, generated by
24976         gen-uni-tables.
24977         * modules/uninorm/composition: New file.
24978
24979         Tests for module 'uninorm/compat-decomposition'.
24980         * tests/uninorm/test-compat-decomposition.c: New file.
24981         * modules/uninorm/compat-decomposition-tests: New file.
24982
24983         New module 'uninorm/compat-decomposition'.
24984         * lib/uninorm/decompose-internal.h: New file.
24985         * lib/uninorm/compat-decomposition.c: New file.
24986         * modules/uninorm/compat-decomposition: New file.
24987
24988         Tests for module 'uninorm/canonical-decomposition'.
24989         * tests/uninorm/test-canonical-decomposition.c: New file.
24990         * modules/uninorm/canonical-decomposition-tests: New file.
24991
24992         New module 'uninorm/canonical-decomposition'.
24993         * lib/uninorm/canonical-decomposition.c: New file.
24994         * modules/uninorm/canonical-decomposition: New file.
24995
24996         Tests for module 'uninorm/decomposition'.
24997         * tests/uninorm/test-decomposition.c: New file.
24998         * modules/uninorm/decomposition-tests: New file.
24999
25000         New module 'uninorm/decomposition'.
25001         * lib/uninorm/decomposition.c: New file.
25002         * modules/uninorm/decomposition: New file.
25003
25004         New module 'uninorm/decomposition-table'.
25005         * lib/uninorm/decomposition-table.h: New file.
25006         * lib/uninorm/decomposition-table.c: New file.
25007         * lib/uninorm/decomposition-table1.h: New file, generated by
25008         gen-uni-tables.
25009         * lib/uninorm/decomposition-table2.h: New file, generated by
25010         gen-uni-tables.
25011         * modules/uninorm/decomposition-table: New file.
25012
25013         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25014         (UC_DECOMP_*): New enumeration items.
25015         (get_decomposition): New function.
25016         (struct decomp_table): New type.
25017         (output_decomposition, output_decomposition_tables): New functions.
25018         (unicode_composition_exclusions): New variable.
25019         (fill_composition_exclusions, debug_output_composition_tables): New
25020         functions.
25021         (main): Accept one more argument. Invoke fill_composition_exclusions.
25022         Output decomposition and composition tables.
25023
25024         New module 'uninorm/base'.
25025         * lib/uninorm.h: New file.
25026         * lib/unictype.h: Update comment.
25027         * modules/uninorm/base: New file.
25028
25029 2009-02-21  David Lutterkort  <lutter@redhat.com>
25030
25031         Tests for module 'safe-alloc'.
25032         * tests/test-safe-alloc.c: New file.
25033         * modules/safe-alloc-tests: New file.
25034
25035         New module 'safe-alloc'.
25036         * lib/safe-alloc.h: New file.
25037         * lib/safe-alloc.c: New file.
25038         * m4/safe-alloc.m4: New file.
25039         * modules/safe-alloc: New file.
25040         * doc/safe-alloc.texi: New file.
25041         * doc/gnulib.texi: Include it.
25042         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25043         safe-alloc.
25044
25045 2009-02-18  Bruno Haible  <bruno@clisp.org>
25046
25047         Fix link error on non-glibc systems.
25048         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
25049         variable.
25050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25051
25052 2009-02-18  Jim Meyering  <meyering@redhat.com>
25053
25054         fts: avoid used-uninitialized error due to recent change
25055         * lib/fts.c (fts_read): Guard uses of the new member,
25056         parent->fts_n_dirs_remaining, since it's not relevant for
25057         the parent of a directory specified on the command-line.
25058
25059 2009-02-17  James Youngman  <jay@gnu.org>
25060             Bruno Haible  <bruno@clisp.org>
25061
25062         * m4/include_next.m4: Reformulate comment.
25063
25064 2009-02-16  Jim Meyering  <meyering@redhat.com>
25065
25066         fts: add #if guards so that the fts_lgpl module still builds
25067         * lib/fts.c: Guard just-added hash-table-using parts with
25068         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
25069         Reported by Simon Josefsson.
25070
25071 2009-02-15  Bruno Haible  <bruno@clisp.org>
25072
25073         * modules/array-mergesort-tests: New file.
25074         * tests/test-array-mergesort.c: New file.
25075
25076         New module 'array-mergesort'.
25077         * modules/array-mergesort: New file.
25078         * lib/array-mergesort.h: New file.
25079
25080 2009-02-15  Bruno Haible  <bruno@clisp.org>
25081
25082         Fix 2009-02-07 commit.
25083         * lib/gen-uni-tables.c (output_predicate, output_category,
25084         output_combclass, output_bidi_category, output_decimal_digit,
25085         output_digit, output_numeric, output_mirror, output_scripts,
25086         output_ident_category, output_simple_mapping): Fix format directives.
25087         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
25088
25089 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
25090
25091         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
25092         fixes are available from IBM.
25093
25094 2009-02-13  Jim Meyering  <meyering@redhat.com>
25095
25096         fts: arrange not to stat non-directories in more cases
25097         This makes GNU find (when it doesn't need to stat each file)
25098         *much* more efficient at traversing reiserfs file systems.
25099         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
25100         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
25101         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
25102         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
25103         (leaf_optimization_applies): New function.
25104         (LCO_hash, LCO_compare): New helper functions.
25105         (link_count_optimize_ok): New function.
25106         (fts_stat): Initialize new member (if dir).
25107         (fts_read): Decrement parent's fts_n_dirs_remaining count if
25108         we've just stat'ed a directory.  Skip the stat call when possible.
25109         ---
25110         Note this AFS-related exchange:
25111         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
25112         and note find's pioctl call in find/fstype.c.
25113         But that is necessary only if you want to enable the
25114         optimization for AFS, and for now, I don't.
25115
25116         fts: move a function definition "up" (no semantic change)
25117         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
25118         "up" to precede upcoming use of a related function.
25119
25120 2009-02-11  Jim Meyering  <meyering@redhat.com>
25121
25122         fts: correct internal computation of nlinks (optimization-related)
25123         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
25124         whether the current entry is a directory, so don't test it.
25125
25126 2009-02-10  Bruno Haible  <bruno@clisp.org>
25127
25128         Tests for module 'uniwbrk/ulc-wordbreaks'.
25129         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
25130         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
25131         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
25132
25133         Tests for module 'uniwbrk/u32-wordbreaks'.
25134         * modules/uniwbrk/u32-wordbreaks-tests: New file.
25135         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
25136
25137         Tests for module 'uniwbrk/u16-wordbreaks'.
25138         * modules/uniwbrk/u16-wordbreaks-tests: New file.
25139         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
25140
25141         Tests for module 'uniwbrk/u8-wordbreaks'.
25142         * modules/uniwbrk/u8-wordbreaks-tests: New file.
25143         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
25144
25145 2009-02-10  Bruno Haible  <bruno@clisp.org>
25146
25147         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
25148         property.
25149         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
25150         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
25151         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
25152
25153 2009-02-10  Simon Josefsson  <simon@josefsson.org>
25154
25155         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
25156         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
25157
25158 2009-02-10  Bruno Haible  <bruno@clisp.org>
25159
25160         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
25161         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
25162         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
25163         * lib/unilbrk/u8-possible-linebreaks.c: Update.
25164         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
25165         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
25166
25167 2009-02-09  Simon Josefsson  <simon@josefsson.org>
25168
25169         * lib/sockets.h (gl_fd_to_handle): New function.
25170
25171         * tests/test-sockets.c: Call gl_fd_to_handle.
25172
25173 2009-02-09  Bruno Haible  <bruno@clisp.org>
25174
25175         * doc/havelib.texi: Document the conventions on bi-arch systems.
25176
25177 2009-02-08  Bruno Haible  <bruno@clisp.org>
25178
25179         Document the AC_LIB_LINKFLAGS macro.
25180         * doc/havelib.texi: New file, mostly written on 2005-05-24.
25181         * doc/gnulib.texi: Include it.
25182
25183 2009-02-08  Bruno Haible  <bruno@clisp.org>
25184
25185         Fix wrong order of sections, compared to TOC.
25186         * doc/gnulib.texi: Include relocatable-maint.texi after the
25187         "Regular expressions" node, not before.
25188
25189 2009-02-08  Bruno Haible  <bruno@clisp.org>
25190
25191         Tests for module 'unicase/totitle'.
25192         * modules/unicase/totitle-tests: New file.
25193
25194         Tests for module 'unicase/tolower'.
25195         * modules/unicase/tolower-tests: New file.
25196
25197         Tests for module 'unicase/toupper'.
25198         * modules/unicase/toupper-tests: New file.
25199         * tests/unicase/test-mapping-part1.h: New file.
25200         * tests/unicase/test-mapping-part2.h: New file.
25201
25202         New module 'unicase/totitle'.
25203         * modules/unicase/totitle: New file.
25204         * lib/unicase/totitle.c: New file.
25205
25206         New module 'unicase/tolower'.
25207         * modules/unicase/tolower: New file.
25208         * lib/unicase/tolower.c: New file.
25209
25210         New module 'unicase/toupper'.
25211         * modules/unicase/toupper: New file.
25212         * lib/unicase/toupper.c: New file.
25213         * lib/unicase/simple-mapping.h: New file.
25214
25215         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
25216         (mapping_table): New structure.
25217         (output_simple_mapping): New function.
25218         (main): Invoke output_simple_mapping_test and output_simple_mapping.
25219         * modules/gen-uni-tables (Description): Update.
25220         * lib/unicase/toupper.h: New file, automatically generated by
25221         gen-uni-tables.
25222         * lib/unicase/tolower.h: New file, automatically generated by
25223         gen-uni-tables.
25224         * lib/unicase/totitle.h: New file, automatically generated by
25225         gen-uni-tables.
25226         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
25227         gen-uni-tables.
25228         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
25229         gen-uni-tables.
25230         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
25231         gen-uni-tables.
25232
25233         New module 'unicase/base'.
25234         * modules/unicase/base: New file.
25235         * lib/unicase.h: New file.
25236
25237 2009-02-08  Bruno Haible  <bruno@clisp.org>
25238
25239         New module 'uniwbrk/ulc-wordbreaks'.
25240         * modules/uniwbrk/ulc-wordbreaks: New file.
25241         * lib/uniwbrk/ulc-wordbreaks.c: New file.
25242
25243         New module 'uniwbrk/u32-wordbreaks'.
25244         * modules/uniwbrk/u32-wordbreaks: New file.
25245         * lib/uniwbrk/u32-wordbreaks.c: New file.
25246
25247         New module 'uniwbrk/u16-wordbreaks'.
25248         * modules/uniwbrk/u16-wordbreaks: New file.
25249         * lib/uniwbrk/u16-wordbreaks.c: New file.
25250
25251         New module 'uniwbrk/u8-wordbreaks'.
25252         * modules/uniwbrk/u8-wordbreaks: New file.
25253         * lib/uniwbrk/u8-wordbreaks.c: New file.
25254         * lib/uniwbrk/u-wordbreaks.h: New file.
25255
25256         New module 'uniwbrk/table'.
25257         * modules/uniwbrk/table: New file.
25258         * lib/uniwbrk/wbrktable.h: New file.
25259         * lib/uniwbrk/wbrktable.c: New file.
25260
25261         New module 'uniwbrk/wordbreak-property'.
25262         * modules/uniwbrk/wordbreak-property: New file.
25263         * lib/uniwbrk/wordbreak-property.c: New file.
25264
25265         * lib/gen-uni-tables.c (WBP_*): New enum items.
25266         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
25267         (unicode_org_wbp): New variable.
25268         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
25269         New functions.
25270         (wbp_table): New structure.
25271         (output_wbp, output_wbrk_tables): New functions.
25272         (main): Accept additional argument. Invoke fill_org_wbp,
25273         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
25274         output_wbrk_tables.
25275         * modules/gen-uni-tables (Description): Update.
25276         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
25277         gen-uni-tables.
25278
25279         New module 'uniwbrk/base'.
25280         * modules/uniwbrk/base: New file.
25281         * lib/uniwbrk.h: New file.
25282
25283 2009-02-08  Bruno Haible  <bruno@clisp.org>
25284
25285         Update to Unicode 5.1.0.
25286         * lib/gen-uni-tables.c (is_property_alphabetic): Include
25287         U+2185..U+2188.
25288         (is_property_default_ignorable_code_point): Don't include characters
25289         of category Cc or Cs and not-a-characters.
25290         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
25291         U+0D79, U+109E, U+109F, U+A60C.
25292         * lib/unictype/bidi_of.h: Regenerated.
25293         * lib/unictype/blocks.h: Regenerated.
25294         * lib/unictype/categ_C.h: Regenerated.
25295         * lib/unictype/categ_Cf.h: Regenerated.
25296         * lib/unictype/categ_Cn.h: Regenerated.
25297         * lib/unictype/categ_L.h: Regenerated.
25298         * lib/unictype/categ_Ll.h: Regenerated.
25299         * lib/unictype/categ_Lm.h: Regenerated.
25300         * lib/unictype/categ_Lo.h: Regenerated.
25301         * lib/unictype/categ_Lu.h: Regenerated.
25302         * lib/unictype/categ_M.h: Regenerated.
25303         * lib/unictype/categ_Mc.h: Regenerated.
25304         * lib/unictype/categ_Me.h: Regenerated.
25305         * lib/unictype/categ_Mn.h: Regenerated.
25306         * lib/unictype/categ_N.h: Regenerated.
25307         * lib/unictype/categ_Nd.h: Regenerated.
25308         * lib/unictype/categ_Nl.h: Regenerated.
25309         * lib/unictype/categ_No.h: Regenerated.
25310         * lib/unictype/categ_P.h: Regenerated.
25311         * lib/unictype/categ_Pd.h: Regenerated.
25312         * lib/unictype/categ_Pe.h: Regenerated.
25313         * lib/unictype/categ_Pf.h: Regenerated.
25314         * lib/unictype/categ_Pi.h: Regenerated.
25315         * lib/unictype/categ_Po.h: Regenerated.
25316         * lib/unictype/categ_Ps.h: Regenerated.
25317         * lib/unictype/categ_S.h: Regenerated.
25318         * lib/unictype/categ_Sk.h: Regenerated.
25319         * lib/unictype/categ_Sm.h: Regenerated.
25320         * lib/unictype/categ_So.h: Regenerated.
25321         * lib/unictype/categ_of.h: Regenerated.
25322         * lib/unictype/combining.h: Regenerated.
25323         * lib/unictype/ctype_alnum.h: Regenerated.
25324         * lib/unictype/ctype_alpha.h: Regenerated.
25325         * lib/unictype/ctype_graph.h: Regenerated.
25326         * lib/unictype/ctype_lower.h: Regenerated.
25327         * lib/unictype/ctype_print.h: Regenerated.
25328         * lib/unictype/ctype_punct.h: Regenerated.
25329         * lib/unictype/ctype_upper.h: Regenerated.
25330         * lib/unictype/decdigit.h: Regenerated.
25331         * lib/unictype/digit.h: Regenerated.
25332         * lib/unictype/mirror.h: Regenerated.
25333         * lib/unictype/numeric.h: Regenerated.
25334         * lib/unictype/pr_alphabetic.h: Regenerated.
25335         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
25336         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
25337         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
25338         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
25339         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
25340         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
25341         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
25342         * lib/unictype/pr_combining.h: Regenerated.
25343         * lib/unictype/pr_dash.h: Regenerated.
25344         * lib/unictype/pr_decimal_digit.h: Regenerated.
25345         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
25346         * lib/unictype/pr_deprecated.h: Regenerated.
25347         * lib/unictype/pr_diacritic.h: Regenerated.
25348         * lib/unictype/pr_extender.h: Regenerated.
25349         * lib/unictype/pr_format_control.h: Regenerated.
25350         * lib/unictype/pr_grapheme_base.h: Regenerated.
25351         * lib/unictype/pr_grapheme_extend.h: Regenerated.
25352         * lib/unictype/pr_grapheme_link.h: Regenerated.
25353         * lib/unictype/pr_id_continue.h: Regenerated.
25354         * lib/unictype/pr_id_start.h: Regenerated.
25355         * lib/unictype/pr_ideographic.h: Regenerated.
25356         * lib/unictype/pr_ignorable_control.h: Regenerated.
25357         * lib/unictype/pr_lowercase.h: Regenerated.
25358         * lib/unictype/pr_math.h: Regenerated.
25359         * lib/unictype/pr_numeric.h: Regenerated.
25360         * lib/unictype/pr_other_alphabetic.h: Regenerated.
25361         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
25362         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
25363         * lib/unictype/pr_other_id_continue.h: Regenerated.
25364         * lib/unictype/pr_other_lowercase.h: Regenerated.
25365         * lib/unictype/pr_other_math.h: Regenerated.
25366         * lib/unictype/pr_punctuation.h: Regenerated.
25367         * lib/unictype/pr_sentence_terminal.h: Regenerated.
25368         * lib/unictype/pr_soft_dotted.h: Regenerated.
25369         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
25370         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
25371         * lib/unictype/pr_unified_ideograph.h: Regenerated.
25372         * lib/unictype/pr_uppercase.h: Regenerated.
25373         * lib/unictype/pr_xid_continue.h: Regenerated.
25374         * lib/unictype/pr_xid_start.h: Regenerated.
25375         * lib/unictype/pr_zero_width.h: Regenerated.
25376         * lib/unictype/scripts.h: Regenerated.
25377         * lib/unictype/scripts_byname.gperf: Regenerated.
25378         * lib/unictype/sy_java_ident.h: Regenerated.
25379         * lib/unilbrk/lbrkprop1.h: Regenerated.
25380         * lib/unilbrk/lbrkprop2.h: Regenerated.
25381         * tests/unictype/test-categ_C.c: Regenerated.
25382         * tests/unictype/test-categ_Cf.c: Regenerated.
25383         * tests/unictype/test-categ_Cn.c: Regenerated.
25384         * tests/unictype/test-categ_L.c: Regenerated.
25385         * tests/unictype/test-categ_Ll.c: Regenerated.
25386         * tests/unictype/test-categ_Lm.c: Regenerated.
25387         * tests/unictype/test-categ_Lo.c: Regenerated.
25388         * tests/unictype/test-categ_Lu.c: Regenerated.
25389         * tests/unictype/test-categ_M.c: Regenerated.
25390         * tests/unictype/test-categ_Mc.c: Regenerated.
25391         * tests/unictype/test-categ_Me.c: Regenerated.
25392         * tests/unictype/test-categ_Mn.c: Regenerated.
25393         * tests/unictype/test-categ_N.c: Regenerated.
25394         * tests/unictype/test-categ_Nd.c: Regenerated.
25395         * tests/unictype/test-categ_Nl.c: Regenerated.
25396         * tests/unictype/test-categ_No.c: Regenerated.
25397         * tests/unictype/test-categ_P.c: Regenerated.
25398         * tests/unictype/test-categ_Pd.c: Regenerated.
25399         * tests/unictype/test-categ_Pe.c: Regenerated.
25400         * tests/unictype/test-categ_Pf.c: Regenerated.
25401         * tests/unictype/test-categ_Pi.c: Regenerated.
25402         * tests/unictype/test-categ_Po.c: Regenerated.
25403         * tests/unictype/test-categ_Ps.c: Regenerated.
25404         * tests/unictype/test-categ_S.c: Regenerated.
25405         * tests/unictype/test-categ_Sk.c: Regenerated.
25406         * tests/unictype/test-categ_Sm.c: Regenerated.
25407         * tests/unictype/test-categ_So.c: Regenerated.
25408         * tests/unictype/test-ctype_alnum.c: Regenerated.
25409         * tests/unictype/test-ctype_alpha.c: Regenerated.
25410         * tests/unictype/test-ctype_graph.c: Regenerated.
25411         * tests/unictype/test-ctype_lower.c: Regenerated.
25412         * tests/unictype/test-ctype_print.c: Regenerated.
25413         * tests/unictype/test-ctype_punct.c: Regenerated.
25414         * tests/unictype/test-ctype_upper.c: Regenerated.
25415         * tests/unictype/test-decdigit.h: Regenerated.
25416         * tests/unictype/test-digit.h: Regenerated.
25417         * tests/unictype/test-numeric.h: Regenerated.
25418         * tests/unictype/test-pr_alphabetic.c: Regenerated.
25419         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
25420         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
25421         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
25422         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
25423         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
25424         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
25425         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
25426         * tests/unictype/test-pr_combining.c: Regenerated.
25427         * tests/unictype/test-pr_dash.c: Regenerated.
25428         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
25429         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
25430         * tests/unictype/test-pr_deprecated.c: Regenerated.
25431         * tests/unictype/test-pr_diacritic.c: Regenerated.
25432         * tests/unictype/test-pr_extender.c: Regenerated.
25433         * tests/unictype/test-pr_format_control.c: Regenerated.
25434         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
25435         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
25436         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
25437         * tests/unictype/test-pr_id_continue.c: Regenerated.
25438         * tests/unictype/test-pr_id_start.c: Regenerated.
25439         * tests/unictype/test-pr_ideographic.c: Regenerated.
25440         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
25441         * tests/unictype/test-pr_lowercase.c: Regenerated.
25442         * tests/unictype/test-pr_math.c: Regenerated.
25443         * tests/unictype/test-pr_numeric.c: Regenerated.
25444         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
25445         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
25446         Regenerated.
25447         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
25448         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
25449         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
25450         * tests/unictype/test-pr_other_math.c: Regenerated.
25451         * tests/unictype/test-pr_punctuation.c: Regenerated.
25452         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
25453         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
25454         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
25455         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
25456         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
25457         * tests/unictype/test-pr_uppercase.c: Regenerated.
25458         * tests/unictype/test-pr_xid_continue.c: Regenerated.
25459         * tests/unictype/test-pr_xid_start.c: Regenerated.
25460         * tests/unictype/test-pr_zero_width.c: Regenerated.
25461
25462         Update to Unicode 5.1.0.
25463         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
25464         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
25465         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
25466         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
25467         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
25468         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
25469         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
25470         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
25471         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
25472         (nonspacing_table_ind): Update.
25473         * tests/uniwidth/test-uc_width2.sh: Update expected result.
25474
25475         Update to Unicode 5.1.0.
25476         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
25477         code transform.
25478         * lib/uniname/uniname.c (unicode_character_name,
25479         unicode_name_character): Add the range 0x1Fxxx to the code transform.
25480         * lib/uniname/uninames.h: Regenerated.
25481         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
25482
25483 2009-02-07  Bruno Haible  <bruno@clisp.org>
25484
25485         Merge gen-ctype and gen-lbrk into a single program.
25486         * lib/gen-uni-tables.c: New file, incorporating
25487         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
25488         Add directory prefixes to the names of the generated files.
25489         * lib/unictype/gen-ctype.c: Remove file.
25490         * lib/unilbrk/gen-lbrk.c: Remove file.
25491         * modules/gen-uni-tables: New file.
25492         * modules/unictype/gen-ctype: Remove file.
25493         * modules/unilbrk/gen-lbrk: Remove file.
25494
25495 2009-02-07  Bruno Haible  <bruno@clisp.org>
25496
25497         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
25498
25499         New module 'unistr/u32-strcoll'.
25500         * modules/unistr/u32-strcoll: New file.
25501         * lib/unistr/u32-strcoll.c: New file.
25502
25503         New module 'unistr/u16-strcoll'.
25504         * modules/unistr/u16-strcoll: New file.
25505         * lib/unistr/u16-strcoll.c: New file.
25506
25507         New module 'unistr/u8-strcoll'.
25508         * modules/unistr/u8-strcoll: New file.
25509         * lib/unistr/u8-strcoll.c: New file.
25510         * lib/unistr/u-strcoll.h: New file.
25511
25512 2009-02-07  Bruno Haible  <bruno@clisp.org>
25513
25514         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
25515         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
25516         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
25517         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
25518         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
25519         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
25520
25521 2009-02-07  Bruno Haible  <bruno@clisp.org>
25522
25523         Make 64-bit clean.
25524         * lib/unictype/gen-ctype.c (output_predicate, output_category,
25525         output_combclass, output_bidi_category, output_decimal_digit,
25526         output_digit, output_numeric, output_mirror, output_scripts,
25527         output_ident_category): Use proper width specifier in format strings.
25528
25529 2009-02-07  Bruno Haible  <bruno@clisp.org>
25530
25531         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
25532         failure behaviour.
25533
25534 2009-02-07  Jim Meyering  <meyering@redhat.com>
25535
25536         regex: avoid compilation failure with upcoming gcc-4.4
25537         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
25538         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
25539         "... error: integer overflow in preprocessor expression".
25540
25541 2009-02-05  Ben Pfaff  <blp@gnu.org>
25542
25543         Fix link errors on Windows when close module is used.
25544         * modules/close: Add $(LIB_CLOSE) to Link section.
25545         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
25546         $(LIB_CLOSE) on Windows.
25547
25548 2009-02-05  Jim Meyering  <meyering@redhat.com>
25549
25550         still avoid unused-parameter warnings, but do it cleanly
25551         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
25552         (get_fs_usage): Cast to void instead.
25553         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
25554         (dev_from_mount_options, read_file_system_list): Cast to void.
25555         Prompted by Bruno Haible.
25556
25557 2009-02-04  Jim Meyering  <meyering@redhat.com>
25558
25559         fsusage.c: correct copyright year
25560         * lib/fsusage.c: Reflect year in which the change is pushed into
25561
25562         avoid misc. warnings
25563         * lib/fsusage.c (UNUSED_PARAM): Define.
25564         (get_fs_usage): Mark parameter "disk" as unused.
25565         * lib/getugroups.c (getgrent): Use "void" in prototype.
25566         * lib/mountlist.c: Mark unused parameters.
25567         (read_file_system_list): Declare a local with "const".
25568         * lib/nanosleep.c (getnow): Declare static.
25569         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
25570
25571         dirfd: set errno upon failure
25572         * lib/dirfd.c: Include <errno.h>.
25573         Set errno to ENOTSUP when returning -1.
25574         * modules/dirfd (Depends-on): Add errno.
25575         Suggested by John Kodis <kodis@comcast.net>.
25576
25577 2009-02-01  Bruno Haible  <bruno@clisp.org>
25578
25579         Don't assume sizeof (long) >= sizeof (void *).
25580         * lib/memcmp.c: Include stdint.h.
25581         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
25582         srcp2 to 'const byte *'.
25583         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
25584         types to uintptr_t.
25585         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
25586         * modules/memcmp (Depends-on): Add stdint.
25587         Reported by Ozkan Sezer <sezeroz@gmail.com>.
25588
25589 2009-01-30  Eric Blake  <ebb9@byu.net>
25590
25591         fix more require-before-expand issues
25592         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
25593         expand, AC_PROG_AWK.
25594         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
25595
25596 2009-01-28  Eric Blake  <ebb9@byu.net>
25597
25598         version-etc: use consistent URL formatting
25599         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
25600         Improve formatting.  Use fputs for string without %.
25601
25602 2009-01-28  Jim Meyering  <meyering@redhat.com>
25603
25604         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
25605         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
25606         "underquoted definition of NAME" from autoconf-2.59.
25607
25608 2009-01-28  Bruno Haible  <bruno@clisp.org>
25609
25610         * doc/gnulib.texi: Add "Obsolete modules" to index.
25611
25612 2009-01-28  Jim Meyering  <meyering@redhat.com>
25613
25614         useless-if-before-free: recognize more variants
25615         * build-aux/useless-if-before-free: Also recognize e.g.,
25616         if (NULL != p) free (p);
25617
25618 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
25619
25620         test-getaddrinfo: skip (don't fail) this test when there's no network
25621         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
25622         on the presumption that it means you lack network access.
25623
25624 2009-01-26  Jim Meyering  <meyering@redhat.com>
25625
25626         fflush: avoid warnings on modern systems
25627         * lib/fflush.c (rpl_fflush): Move declarations of locals,
25628         pos and result, into scopes where they're used.
25629
25630 2009-01-26  Eric Blake  <ebb9@byu.net>
25631
25632         Silence warning reintroduced by recent extensions patch.
25633         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
25634         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
25635         autoconf.
25636
25637         Backport improved autoconf semantics of AC_DEFUN_ONCE.
25638         * m4/00gnulib.m4: New file.
25639         * gnulib-tool (func_get_filelist): Always use it.
25640         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
25641         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
25642
25643 2009-01-25  Bruno Haible  <bruno@clisp.org>
25644
25645         Make test-quotearg work on MacOS X and AIX.
25646         * tests/test-quotearg.sh: New file.
25647         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
25648         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
25649         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
25650         include <libintl.h>.
25651         (fake_locale): Remove variable.
25652         (gettext, dgettext, dcgettext): Remove functions.
25653         (main): Instead of setting a fake locale, set a real locale. Call
25654         textdomain and bindtextdomain.
25655         * modules/quotearg-tests (Files): Add the new files.
25656         (Depends-on): Add gettext, setenv, unsetenv.
25657         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
25658         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
25659         Augment TESTS_ENVIRONMENT.
25660
25661 2009-01-25  Bruno Haible  <bruno@clisp.org>
25662
25663         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
25664         fr_FR.ISO8859-1 locale on MacOS X.
25665         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
25666         ja_JP.eucJP locale on MacOS X.
25667         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
25668         zh_CN.GB18030 locale on MacOS X.
25669
25670 2009-01-25  Bruno Haible  <bruno@clisp.org>
25671
25672         Avoid link errors on MacOS X 10.3.
25673         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
25674         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
25675
25676 2009-01-25  Bruno Haible  <bruno@clisp.org>
25677
25678         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
25679         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
25680         * modules/pipe (Files): Remove m4/posix_spawn.m4.
25681         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
25682         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
25683         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
25684         posix_spawnattr_init, posix_spawnattr_setsigmask,
25685         posix_spawnattr_setflags, posix_spawnattr_destroy.
25686
25687         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
25688         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
25689         * modules/execute (Files): Remove m4/posix_spawn.m4.
25690         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
25691         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
25692         posix_spawnattr_init, posix_spawnattr_setsigmask,
25693         posix_spawnattr_setflags, posix_spawnattr_destroy.
25694
25695 2009-01-25  Bruno Haible  <bruno@clisp.org>
25696
25697         * lib/glthread/threadlib.c: Include <stdlib.h>.
25698
25699 2009-01-25  Bruno Haible  <bruno@clisp.org>
25700
25701         * lib/glthread/threadlib.c (dummy): New declaration.
25702
25703 2009-01-25  Bruno Haible  <bruno@clisp.org>
25704
25705         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
25706         multibyte characters also for the GB18030 encoding. Don't crash when
25707         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
25708
25709 2009-01-25  Bruno Haible  <bruno@clisp.org>
25710
25711         Avoid redefining 'struct random_data' on OSF/1 5.1.
25712         * lib/stdlib.in.h: Include <random.h> if it exists.
25713         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
25714         HAVE_RANDOM_H. Include <random.h> when testing whether
25715         'struct random_data' exists.
25716         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
25717
25718 2009-01-25  Bruno Haible  <bruno@clisp.org>
25719
25720         Don't install charset.alias on MacOS X >= 10.3.
25721         * lib/localcharset.c (DARWIN7): New macro.
25722         (get_charset_aliases): Hardcode the result for Darwin7.
25723         * modules/localcharset (install-exec-local): Don't install
25724         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
25725
25726 2009-01-25  Bruno Haible  <bruno@clisp.org>
25727
25728         Don't install charset.alias on mingw and Cygwin.
25729         * modules/localcharset (install-exec-local): Don't install
25730         charset.alias on mingw and Cygwin, if the file does not yet exist.
25731         The result for these platforms is hardcoded in localcharset.c.
25732
25733 2009-01-25  Bruno Haible  <bruno@clisp.org>
25734
25735         Make it possible again to use AC_GNU_SOURCE together with gnulib.
25736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
25737         before requiring AC_USE_SYSTEM_EXTENSIONS.
25738
25739 2009-01-25  Jim Meyering  <meyering@redhat.com>
25740
25741         c-strtod: avoid warnings
25742         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
25743         "assignment discards qualifiers from pointer target type" warnings.
25744
25745 2009-01-24  Bruno Haible  <bruno@clisp.org>
25746
25747         Add support for non-UTF-8 locales on MacOS X.
25748         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
25749         canonical encodings. For Darwin 7 and newer, don't map traditional
25750         encodings to UTF-8.
25751         Reported by Vincent Lefevre <vincent@vinc17.org>
25752         at <http://savannah.gnu.org/bugs/?25235>.
25753
25754 2009-01-24  Bruno Haible  <bruno@clisp.org>
25755
25756         * doc/gnulib.texi (Obsolete modules): New section.
25757         Reported by Mike Frysinger <vapier@gentoo.org>.
25758
25759 2009-01-24  Bruno Haible  <bruno@clisp.org>
25760
25761         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
25762         (%.dvi): New rule.
25763
25764 2009-01-24  Bruno Haible  <bruno@clisp.org>
25765
25766         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
25767         Reported by Eric Blake.
25768
25769 2009-01-24  Bruno Haible  <bruno@clisp.org>
25770
25771         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
25772         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
25773         Reported by Gary V. Vaughan <gary@gnu.org>.
25774
25775 2009-01-24  Bruno Haible  <bruno@clisp.org>
25776
25777         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
25778
25779 2009-01-23  Bruno Haible  <bruno@clisp.org>
25780
25781         Make c-strtod, c-strtold usable in libraries.
25782         * lib/c-strtod.c: Include string.h instead of xalloc.h.
25783         (C_STRTOD): Call strdup instead of xstrdup.
25784         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
25785         * modules/c-strtold (Depends-on): Likewise.
25786         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
25787         * NEWS: Mention the change.
25788         Reported by Michael Gold <mgold@ncf.ca>.
25789
25790 2009-01-23  Jim Meyering  <meyering@redhat.com>
25791
25792         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
25793         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
25794         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
25795
25796 2009-01-23  Simon Josefsson  <simon@josefsson.org>
25797
25798         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
25799         GNU CoreUtils.
25800         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
25801         * modules/version-etc (Description): Update.
25802
25803 2009-01-22  Bruno Haible  <bruno@clisp.org>
25804
25805         Cache the C locale object.
25806         * lib/c-strtod.c (c_locale_cache): New variable.
25807         (c_locale): New function.
25808         (C_STRTOD): Use it, and don't call freelocale.
25809         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
25810         Suggested by Paolo Bonzini.
25811
25812 2009-01-21  Bruno Haible  <bruno@clisp.org>
25813
25814         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
25815         conditions other than overflow.
25816
25817 2009-01-21  Bruno Haible  <bruno@clisp.org>
25818
25819         * lib/c-strtod.c: Include errno.h.
25820         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
25821         value from STRTOD_L and STRTOD.
25822
25823 2009-01-21  Bruno Haible  <bruno@clisp.org>
25824         and Jim Meyering  <meyering@redhat.com>
25825
25826         nanosleep: skip configure test (fail it) for apple universal builds
25827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
25828         universal builds, assume that nanosleep does not work.
25829         * modules/nanosleep (Depends-on): Add multiarch.
25830
25831         mktime: skip configure test (fail it) for apple universal builds
25832         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
25833         universal builds, assume that mktime does not work.
25834         * modules/mktime (Depends-on): Add multiarch.
25835
25836 2009-01-21  Eric Blake  <ebb9@byu.net>
25837
25838         multiarch: avoid expand-before-require warning
25839         * modules/multiarch (configure.ac): Require, rather than expand,
25840         gl_MULTIARCH.
25841         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
25842         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
25843         enforce that all clients require it.  Partial reversion of
25844         2008-12-29 patch.
25845
25846         error: avoid expand-before-require warning
25847         * modules/errno (configure.ac): Require, rather than expand,
25848         gl_HEADER_ERRNO_H.
25849         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
25850         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
25851         enforce that all clients require it.
25852
25853         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
25854         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
25855         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
25856         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
25857
25858 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
25859
25860         Revert:
25861         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
25862
25863         regex: do not depend on obsolete modules.
25864         * modules/regex: Remove memcmp and memmove.
25865
25866 2009-01-20  Bruno Haible  <bruno@clisp.org>
25867
25868         Make the 'link' module link on Windows NT 4.
25869         * lib/link.c (_WIN32_WINNT): Don't define.
25870         (CreateHardLinkFuncType): New type.
25871         (CreateHardLinkFunc, initialized): New variables.
25872         (initialize): New function.
25873         (link): Invoke CreateHardLink indirectly through the function pointer.
25874
25875 2009-01-20  Bruno Haible  <bruno@clisp.org>
25876
25877         Fix compilation failure on mingw.
25878         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
25879
25880 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
25881
25882         * doc/c-strtod.texi: Mention a couple of restrictions.
25883
25884 2009-01-20  Jim Meyering  <meyering@redhat.com>
25885
25886         gettimeofday: move more declarations out of functions
25887         * lib/gettimeofday.c: Move extern declarations of tzset and
25888         gmtime out of containing functions.  Prompted by Bruno Haible.
25889
25890 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
25891
25892         regex: do not depend on obsolete modules.
25893         * modules/regex: Remove memcmp and memmove.
25894
25895 2009-01-19  Bruno Haible  <bruno@clisp.org>
25896
25897         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25898         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
25899         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25900         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
25901         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
25902
25903 2009-01-19  Bruno Haible  <bruno@clisp.org>
25904
25905         * tests/test-link.c: Include <errno.h>.
25906         (main): Exit with code 77 when a hard link cannot be created due to
25907         the file system.
25908         * tests/test-link.sh: Skip test when a hard link cannot be created due
25909         to the file system.
25910         Suggested by Eric Blake.
25911
25912 2009-01-19  Martin Lambers  <marlam@marlam.de>
25913
25914         * modules/link-tests: New file.
25915         * tests/test-link.sh: New file.
25916         * tests/test-link.c: New file.
25917
25918 2009-01-19  Eric Blake  <ebb9@byu.net>
25919
25920         doc: mention another function added in cygwin 1.7.0
25921         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
25922         Another new function in cygwin 1.7.
25923
25924 2009-01-19  Bruno Haible  <bruno@clisp.org>
25925
25926         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25927         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
25928         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
25929         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25930         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25931         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
25932         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25933         * m4/md4.m4 (gl_MD4): Likewise.
25934         * m4/md5.m4 (gl_MD5): Likewise.
25935         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
25936         * m4/sha1.m4 (gl_SHA1): Likewise.
25937         * m4/sha256.m4 (gl_SHA256): Likewise.
25938         * m4/sha512.m4 (gl_SHA512): Likewise.
25939
25940 2009-01-19  Bruno Haible  <bruno@clisp.org>
25941
25942         * modules/uniname/uniname-tests (Depends-on): Add progname.
25943         * tests/uniname/test-uninames.c: Include progname.h.
25944         (main): Call set_program_name.
25945
25946         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
25947         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
25948         (main): Call set_program_name.
25949
25950         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
25951         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
25952         (main): Call set_program_name.
25953
25954         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
25955         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
25956         (main): Call set_program_name.
25957
25958         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
25959         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
25960         (main): Call set_program_name.
25961
25962         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
25963         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
25964         (main): Call set_program_name.
25965
25966         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
25967         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
25968         (main): Call set_program_name.
25969
25970         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
25971         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
25972         (main): Call set_program_name.
25973
25974         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
25975         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
25976         (main): Call set_program_name.
25977
25978 2009-01-19  Eric Blake  <ebb9@byu.net>
25979
25980         test-unistd: test previous patch
25981         * tests/test-unistd.c: Test *_FILENO macros.
25982
25983         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
25984         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25985         Guarantee a definition.
25986         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
25987         * modules/unistd-safer (Depends-on): Add dependency on unistd.
25988         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
25989         * lib/dup-safer.c (STDERR_FILENO): Likewise.
25990         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25991         Likewise.
25992         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
25993         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
25994         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25995         Likewise.
25996         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
25997         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
25998         (STDERR_FILENO): Likewise.
25999         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26000         (STDERR_FILENO): Likewise.
26001         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26002         (STDERR_FILENO): Likewise.
26003         Reported by Elbert Pol.
26004
26005 2009-01-19  Eric Blake  <ebb9@byu.net>
26006
26007         doc: mention more functions added in cygwin 1.7.0
26008         * doc/posix-functions/abort.texi (abort): Update wording related
26009         to cygwin.
26010         * doc/posix-functions/daylight.texi (daylight): Likewise.
26011         * doc/posix-functions/optarg.texi (optarg): Likewise.
26012         * doc/posix-functions/optarg.texi (opterr): Likewise.
26013         * doc/posix-functions/optarg.texi (optind): Likewise.
26014         * doc/posix-functions/optarg.texi (optopt): Likewise.
26015         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26016         worked in 1.5.x, and was withdrawn in 1.7.
26017         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26018         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26019         cygwin versions.
26020         * doc/posix-functions/perror.texi (perror): Likewise.
26021         * doc/posix-functions/printf.texi (printf): Likewise.
26022         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26023         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26024         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26025         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26026         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26027         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26028         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26029         Likewise.
26030         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26031         Likewise.
26032         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26033         this function.
26034         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26035         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26036         Likewise.
26037         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26038         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26039         * doc/posix-functions/confstr.texi (confstr): Likewise.
26040         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26041         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26042         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26043         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26044         * doc/posix-functions/fputws.texi (fputws): Likewise.
26045         * doc/posix-functions/fwide.texi (fwide): Likewise.
26046         * doc/posix-functions/getwc.texi (getwc): Likewise.
26047         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
26048         * doc/posix-functions/putwc.texi (putwc): Likewise.
26049         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
26050         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
26051         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
26052         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
26053         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
26054         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
26055         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
26056         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
26057         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
26058         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
26059         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
26060
26061 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26062
26063         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
26064         * lib/ioctl.c: Include <sys/ioctl.h>.
26065
26066 2009-01-19  Simon Josefsson  <simon@josefsson.org>
26067
26068         * modules/getdate-tests (Depends-on): Add progname.
26069         * tests/test-getdate.c: Use progname module, to avoid link errors
26070         on non-glibc systems.
26071
26072 2009-01-18  Simon Josefsson  <simon@josefsson.org>
26073
26074         * modules/filenamecat-tests (Depends-on): Add progname.
26075         * modules/fstrcmp-tests (Depends-on): Likewise.
26076
26077         * tests/test-filenamecat.c: Use progname module, to avoid link
26078         errors on non-glibc systems.
26079         * tests/test-fstrcmp.c: Likewise.
26080
26081 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26082
26083         gettimeofday: avoid warning: nested extern declaration of 'localtime'
26084         * lib/gettimeofday.c: Move extern declaration out of function.
26085
26086 2009-01-18  Bruno Haible  <bruno@clisp.org>
26087
26088         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
26089         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
26090         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
26091
26092 2009-01-18  Bruno Haible  <bruno@clisp.org>
26093
26094         * lib/strftime.c (MEMPCPY): Remove unused macro.
26095         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
26096
26097 2009-01-18  Martin Lambers  <marlam@marlam.de>
26098
26099         New module 'link'.
26100         * lib/unistd.in.h (link): New declaration.
26101         * lib/link.c: New file.
26102         * m4/link.m4: New file.
26103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
26104         HAVE_LINK.
26105         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
26106         * modules/link: New file.
26107         * doc/posix-functions/link.texi: Mention the new module.
26108
26109 2009-01-18  Bruno Haible  <bruno@clisp.org>
26110
26111         * tests/test-avltree_list.c (main): Call set_program_name.
26112         * tests/test-avltree_oset.c (main): Likewise.
26113         * tests/test-obstack-printf.c: Include progname.h.
26114         (main): Call set_program_name.
26115         * tests/test-quotearg.c: Include progname.h.
26116         (main): Call set_program_name.
26117         * tests/test-xmemdup0.c: Include progname.h.
26118         (main): Call set_program_name.
26119
26120 2009-01-18  Bruno Haible  <bruno@clisp.org>
26121
26122         New module 'alphasort'.
26123         * lib/dirent.in.h (alphasort): New declaration.
26124         * lib/alphasort.c: New file, from glibc with modifications.
26125         * m4/alphasort.m4: New file.
26126         * modules/alphasort: New file.
26127         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
26128         HAVE_ALPHASORT.
26129         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
26130         HAVE_ALPHASORT.
26131         * doc/posix-functions/alphasort.texi: Mention the new module and the
26132         portability problems.
26133
26134 2009-01-18  Bruno Haible  <bruno@clisp.org>
26135
26136         New module 'scandir'.
26137         * lib/dirent.in.h (scandir): New declaration.
26138         * lib/scandir.c: New file, from glibc with modifications.
26139         * m4/scandir.m4: New file.
26140         * modules/scandir: New file.
26141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
26142         HAVE_SCANDIR.
26143         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
26144         HAVE_SCANDIR.
26145         * doc/posix-functions/scandir.texi: Mention the new module and the
26146         portability problems.
26147
26148 2009-01-17  Bruno Haible  <bruno@clisp.org>
26149
26150         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
26151         Update documentation.
26152         (func_remove_suffix): Escape all dots in the suffix. Update
26153         documentation.
26154         (func_filter_filelist): Update documentation.
26155         Reported by Ralf Wildenhues.
26156
26157 2009-01-17  Bruno Haible  <bruno@clisp.org>
26158
26159         * modules/dprintf-posix-tests: New file.
26160         * tests/test-dprintf-posix.sh: New file.
26161         * tests/test-dprintf-posix.c: New file.
26162
26163         New modules 'dprintf', 'dprintf-posix'.
26164         * lib/stdio.in.h (dprintf): New declaration.
26165         * lib/dprintf.c: New file.
26166         * m4/dprintf.m4: New file.
26167         * m4/dprintf-posix.m4: New file.
26168         * modules/dprintf: New file.
26169         * modules/dprintf-posix: New file.
26170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
26171         HAVE_DPRINTF, REPLACE_DPRINTF.
26172         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
26173         HAVE_DPRINTF, REPLACE_DPRINTF.
26174         * doc/posix-functions/dprintf.texi: Mention the new modules.
26175
26176 2009-01-17  Bruno Haible  <bruno@clisp.org>
26177
26178         * modules/vdprintf-posix-tests: New file.
26179         * tests/test-vdprintf-posix.sh: New file.
26180         * tests/test-vdprintf-posix.c: New file.
26181
26182         New modules 'vdprintf', 'vdprintf-posix'.
26183         * lib/stdio.in.h (vdprintf): New declaration.
26184         * lib/vdprintf.c: New file.
26185         * m4/vdprintf.m4: New file.
26186         * m4/vdprintf-posix.m4: New file.
26187         * modules/vdprintf: New file.
26188         * modules/vdprintf-posix: New file.
26189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
26190         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26191         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
26192         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26193         * doc/posix-functions/vdprintf.texi: Mention the new modules.
26194
26195 2009-01-17  Bruno Haible  <bruno@clisp.org>
26196
26197         Fix replacement of fopen on mingw.
26198         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
26199         mingw.
26200
26201 2009-01-17  Bruno Haible  <bruno@clisp.org>
26202
26203         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
26204         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
26205
26206 2009-01-17  Bruno Haible  <bruno@clisp.org>
26207
26208         Avoid test-fflush2.sh failure on mingw.
26209         * tests/test-fflush2.c: Include binary-io.h.
26210         (main): Put standard input into binary mode.
26211         * modules/fflush-tests (Depends-on): Add binary-io.
26212
26213 2009-01-17  Bruno Haible  <bruno@clisp.org>
26214
26215         * lib/wchar.in.h: In another particular situation, include only the
26216         system's <wchar.h> file.
26217         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
26218         Reported by Albert Chin-A-Young <china@thewrittenword.com>
26219         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
26220
26221 2009-01-17  Bruno Haible  <bruno@clisp.org>
26222
26223         Support for stripping executables in --enable-relocatable.
26224         * build-aux/install-reloc: Expect one more argument, or an environment
26225         variable RELOC_STRIP_PROG. If set, strip the destination program and
26226         its wrapper.
26227         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
26228         RELOC_STRIP_PROG.
26229         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
26230         to set RELOCATABLE_STRIP.
26231         * NEWS: Mention the new Makefile requirement.
26232
26233 2009-01-17  Bruno Haible  <bruno@clisp.org>
26234
26235         * build-aux/install-reloc: Remove debugging information left over by
26236         C compiler on MacOS X.
26237
26238 2009-01-17  Bruno Haible  <bruno@clisp.org>
26239
26240         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
26241         * lib/progreloc.c (find_executable): Fix type of pointer passed to
26242         _NSGetExecutablePath.
26243
26244 2009-01-16  Jim Meyering  <meyering@redhat.com>
26245
26246         strerror: avoid warnings about discarding "const"
26247         * lib/strerror.c (rpl_strerror): Instead of returning a const
26248         string from each and every "case", use a variable, and add a single
26249         cast after the switch.
26250
26251 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
26252
26253         * lib/arpa_inet.in.h: Add extern "C" block for C++.
26254
26255 2009-01-16  Bruno Haible  <bruno@clisp.org>
26256
26257         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
26258         array initializer syntax that also works in C++ mode.
26259         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26260
26261 2009-01-16  Jim Meyering  <meyering@redhat.com>
26262
26263         poll: suppress a warning
26264         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
26265         to ignore "...unsigned expression < 0 is always false" warnings.
26266
26267 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
26268
26269         poll: remove declarations of unused variables
26270         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
26271         sockbuf and optlen.
26272
26273 2009-01-15  Bruno Haible  <bruno@clisp.org>
26274
26275         Make fflush-after-ungetc POSIX compliant on BSD systems.
26276         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
26277         (clear_ungetc_buffer): Implement also for other systems.
26278         (rpl_fflush): On glibc systems, invoke
26279         clear_ungetc_buffer_preserving_position. Otherwise, invoke
26280         clear_ungetc_buffer after fetching the stream's position, not before.
26281
26282 2009-01-15  Bruno Haible  <bruno@clisp.org>
26283
26284         Make fflush-after-ungetc POSIX compliant on glibc systems.
26285         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
26286         after ungetc.
26287         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
26288         (rpl_fflush): On glibc systems, simply call the system's fflush
26289         function after clearing the ungetc buffer.
26290         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
26291         Instead, lseek only to the end of file, then use the system's fseeko
26292         for the rest. On glibc systems, reset the EOF indicator bit.
26293
26294 2009-01-15  Jim Meyering  <meyering@redhat.com>
26295
26296         openmp.m4: revert quote-adding change, for portability to older autoconf
26297         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
26298         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
26299         Simon Josefsson noticed the problem when using autoconf-2.61.
26300
26301 2009-01-15  Bruno Haible  <bruno@clisp.org>
26302
26303         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
26304         * tests/test-fflush2.c (ASSERT): Always fail.
26305         (main): Add two tests for fflush() after ungetc(), taking into account
26306         the Austin Group's clarification.
26307         Suggested by Eric Blake.
26308
26309 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
26310
26311         mktime.m4: remove K&R-style function prototypes
26312         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
26313         for the Sun C++ compiler.
26314
26315 2009-01-14  Bruno Haible  <bruno@clisp.org>
26316
26317         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
26318         while including <wchar.h>.
26319         * lib/wchar.in.h: In two particular situations on HP-UX, include only
26320         the system's <wchar.h> file.
26321         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26322
26323 2009-01-14  Bruno Haible  <bruno@clisp.org>
26324
26325         * m4/csharp.m4: Don't mention gettext on the serial number line.
26326         * m4/csharpexec.m4: Likewise.
26327         * m4/eaccess.m4: Likewise.
26328         * m4/javaexec.m4: Likewise.
26329         * m4/sig_atomic_t.m4: Likewise.
26330         * m4/tmpdir.m4: Likewise.
26331         * m4/intldir.m4: Bump gettext version.
26332         * m4/lib-ld.m4: Likewise.
26333
26334 2009-01-14  Bruno Haible  <bruno@clisp.org>
26335
26336         * lib/progname.c (set_program_name): Add more comments.
26337         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26338
26339 2009-01-14  Simon Josefsson  <simon@josefsson.org>
26340
26341         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
26342         were sys/stat.h does not define it.
26343
26344 2009-01-14  Jim Meyering  <meyering@redhat.com>
26345
26346         many *.m4 files: improve m4 quoting
26347         99% of this change was performed by running the following commands:
26348         git ls-files | grep '\.m4$' | xargs perl -pi \
26349           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
26350           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26351           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26352           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
26353         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
26354         The remainder were to add Copyright dates, increment serial numbers,
26355         undo some changes in comments, exclude m4/intl.m4, and add quotes
26356         around the "1" in ",1" where the unusual spacing prohibited the
26357         above regexps from doing the job.  For more details, see
26358         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
26359         * m4/acl.m4: Modified.
26360         * m4/afs.m4: Likewise.
26361         * m4/alloca.m4: Likewise.
26362         * m4/argp.m4: Likewise.
26363         * m4/argz.m4: Likewise.
26364         * m4/atexit.m4: Likewise.
26365         * m4/bison-i18n.m4: Likewise.
26366         * m4/bison.m4: Likewise.
26367         * m4/byteswap.m4: Likewise.
26368         * m4/c-stack.m4: Likewise.
26369         * m4/c-strtod.m4: Likewise.
26370         * m4/calloc.m4: Likewise.
26371         * m4/canonicalize-lgpl.m4: Likewise.
26372         * m4/chown.m4: Likewise.
26373         * m4/clock_time.m4: Likewise.
26374         * m4/codeset.m4: Likewise.
26375         * m4/copy-file.m4: Likewise.
26376         * m4/csharp.m4: Likewise.
26377         * m4/csharpcomp.m4: Likewise.
26378         * m4/csharpexec.m4: Likewise.
26379         * m4/d-ino.m4: Likewise.
26380         * m4/d-type.m4: Likewise.
26381         * m4/dirfd.m4: Likewise.
26382         * m4/double-slash-root.m4: Likewise.
26383         * m4/eaccess.m4: Likewise.
26384         * m4/eealloc.m4: Likewise.
26385         * m4/environ.m4: Likewise.
26386         * m4/errno_h.m4: Likewise.
26387         * m4/euidaccess.m4: Likewise.
26388         * m4/execute.m4: Likewise.
26389         * m4/fatal-signal.m4: Likewise.
26390         * m4/fchdir.m4: Likewise.
26391         * m4/fcntl_h.m4: Likewise.
26392         * m4/fileblocks.m4: Likewise.
26393         * m4/filenamecat.m4: Likewise.
26394         * m4/findprog.m4: Likewise.
26395         * m4/flexmember.m4: Likewise.
26396         * m4/fnmatch.m4: Likewise.
26397         * m4/fopen.m4: Likewise.
26398         * m4/fpending.m4: Likewise.
26399         * m4/fprintf-posix.m4: Likewise.
26400         * m4/free.m4: Likewise.
26401         * m4/frexp.m4: Likewise.
26402         * m4/frexpl.m4: Likewise.
26403         * m4/fsusage.m4: Likewise.
26404         * m4/ftruncate.m4: Likewise.
26405         * m4/gc-camellia.m4: Likewise.
26406         * m4/gc-random.m4: Likewise.
26407         * m4/gc.m4: Likewise.
26408         * m4/getaddrinfo.m4: Likewise.
26409         * m4/getcwd-abort-bug.m4: Likewise.
26410         * m4/getcwd-path-max.m4: Likewise.
26411         * m4/getdate.m4: Likewise.
26412         * m4/getdomainname.m4: Likewise.
26413         * m4/getgroups.m4: Likewise.
26414         * m4/gethostname.m4: Likewise.
26415         * m4/gethrxtime.m4: Likewise.
26416         * m4/getline.m4: Likewise.
26417         * m4/getloadavg.m4: Likewise.
26418         * m4/getndelim2.m4: Likewise.
26419         * m4/getpass.m4: Likewise.
26420         * m4/gettext.m4: Likewise.
26421         * m4/gettime.m4: Likewise.
26422         * m4/gettimeofday.m4: Likewise.
26423         * m4/gnulib-common.m4: Likewise.
26424         * m4/group-member.m4: Likewise.
26425         * m4/host-os.m4: Likewise.
26426         * m4/iconv.m4: Likewise.
26427         * m4/iconv_open.m4: Likewise.
26428         * m4/inet_ntop.m4: Likewise.
26429         * m4/inet_pton.m4: Likewise.
26430         * m4/inline.m4: Likewise.
26431         * m4/intldir.m4: Likewise.
26432         * m4/intlmacosx.m4: Likewise.
26433         * m4/intmax.m4: Likewise.
26434         * m4/intmax_t.m4: Likewise.
26435         * m4/inttypes.m4: Likewise.
26436         * m4/inttypes_h.m4: Likewise.
26437         * m4/inttypes-pri.m4: Likewise.
26438         * m4/isapipe.m4: Likewise.
26439         * m4/isnand.m4: Likewise.
26440         * m4/isnanf.m4: Likewise.
26441         * m4/isnanl.m4: Likewise.
26442         * m4/javacomp.m4: Likewise.
26443         * m4/javaexec.m4: Likewise.
26444         * m4/jm-winsz1.m4: Likewise.
26445         * m4/jm-winsz2.m4: Likewise.
26446         * m4/lchown.m4: Likewise.
26447         * m4/lcmessage.m4: Likewise.
26448         * m4/ldexpl.m4: Likewise.
26449         * m4/lib-ld.m4: Likewise.
26450         * m4/lib-link.m4: Likewise.
26451         * m4/libsigsegv.m4: Likewise.
26452         * m4/link-follow.m4: Likewise.
26453         * m4/localcharset.m4: Likewise.
26454         * m4/locale-fr.m4: Likewise.
26455         * m4/locale-ja.m4: Likewise.
26456         * m4/locale-tr.m4: Likewise.
26457         * m4/locale-zh.m4: Likewise.
26458         * m4/lock.m4: Likewise.
26459         * m4/longlong.m4: Likewise.
26460         * m4/ls-mntd-fs.m4: Likewise.
26461         * m4/lstat.m4: Likewise.
26462         * m4/malloc.m4: Likewise.
26463         * m4/mathl.m4: Likewise.
26464         * m4/mbrtowc.m4: Likewise.
26465         * m4/mbstate_t.m4: Likewise.
26466         * m4/mbswidth.m4: Likewise.
26467         * m4/memchr.m4: Likewise.
26468         * m4/memcmp.m4: Likewise.
26469         * m4/memcpy.m4: Likewise.
26470         * m4/memmem.m4: Likewise.
26471         * m4/memmove.m4: Likewise.
26472         * m4/mempcpy.m4: Likewise.
26473         * m4/memrchr.m4: Likewise.
26474         * m4/memset.m4: Likewise.
26475         * m4/minmax.m4: Likewise.
26476         * m4/mkdir-slash.m4: Likewise.
26477         * m4/mkdtemp.m4: Likewise.
26478         * m4/mktime.m4: Likewise.
26479         * m4/mmap-anon.m4: Likewise.
26480         * m4/mountlist.m4: Likewise.
26481         * m4/nanosleep.m4: Likewise.
26482         * m4/nls.m4: Likewise.
26483         * m4/nocrash.m4: Likewise.
26484         * m4/open.m4: Likewise.
26485         * m4/openat.m4: Likewise.
26486         * m4/openmp.m4: Likewise.
26487         * m4/pathmax.m4: Likewise.
26488         * m4/perl.m4: Likewise.
26489         * m4/physmem.m4: Likewise.
26490         * m4/pipe.m4: Likewise.
26491         * m4/po.m4: Likewise.
26492         * m4/poll.m4: Likewise.
26493         * m4/posixtm.m4: Likewise.
26494         * m4/posixver.m4: Likewise.
26495         * m4/printf-frexp.m4: Likewise.
26496         * m4/printf-frexpl.m4: Likewise.
26497         * m4/printf-posix.m4: Likewise.
26498         * m4/printf-posix-rpl.m4: Likewise.
26499         * m4/printf.m4: Likewise.
26500         * m4/progtest.m4: Likewise.
26501         * m4/putenv.m4: Likewise.
26502         * m4/readline.m4: Likewise.
26503         * m4/readlink.m4: Likewise.
26504         * m4/readutmp.m4: Likewise.
26505         * m4/realloc.m4: Likewise.
26506         * m4/regex.m4: Likewise.
26507         * m4/relocatable.m4: Likewise.
26508         * m4/relocatable-lib.m4: Likewise.
26509         * m4/rename-dest-slash.m4: Likewise.
26510         * m4/rename.m4: Likewise.
26511         * m4/rmdir-errno.m4: Likewise.
26512         * m4/rmdir.m4: Likewise.
26513         * m4/roundf.m4: Likewise.
26514         * m4/roundl.m4: Likewise.
26515         * m4/rpmatch.m4: Likewise.
26516         * m4/save-cwd.m4: Likewise.
26517         * m4/selinux-selinux-h.m4: Likewise.
26518         * m4/setenv.m4: Likewise.
26519         * m4/settime.m4: Likewise.
26520         * m4/sig2str.m4: Likewise.
26521         * m4/sig_atomic_t.m4: Likewise.
26522         * m4/signalblocking.m4: Likewise.
26523         * m4/signbit.m4: Likewise.
26524         * m4/sigpipe.m4: Likewise.
26525         * m4/sockets.m4: Likewise.
26526         * m4/sockpfaf.m4: Likewise.
26527         * m4/st_dm_mode.m4: Likewise.
26528         * m4/stat-time.m4: Likewise.
26529         * m4/stdbool.m4: Likewise.
26530         * m4/stdint.m4: Likewise.
26531         * m4/stdint_h.m4: Likewise.
26532         * m4/stpcpy.m4: Likewise.
26533         * m4/stpncpy.m4: Likewise.
26534         * m4/strcase.m4: Likewise.
26535         * m4/strchrnul.m4: Likewise.
26536         * m4/strcspn.m4: Likewise.
26537         * m4/strdup.m4: Likewise.
26538         * m4/strftime.m4: Likewise.
26539         * m4/strndup.m4: Likewise.
26540         * m4/strnlen.m4: Likewise.
26541         * m4/strpbrk.m4: Likewise.
26542         * m4/strptime.m4: Likewise.
26543         * m4/strsep.m4: Likewise.
26544         * m4/strtod.m4: Likewise.
26545         * m4/strtoimax.m4: Likewise.
26546         * m4/strtok_r.m4: Likewise.
26547         * m4/strtol.m4: Likewise.
26548         * m4/strtoll.m4: Likewise.
26549         * m4/strtoul.m4: Likewise.
26550         * m4/strtoull.m4: Likewise.
26551         * m4/strtoumax.m4: Likewise.
26552         * m4/strverscmp.m4: Likewise.
26553         * m4/threadlib.m4: Likewise.
26554         * m4/timegm.m4: Likewise.
26555         * m4/tm_gmtoff.m4: Likewise.
26556         * m4/tmpdir.m4: Likewise.
26557         * m4/tmpfile.m4: Likewise.
26558         * m4/tzset.m4: Likewise.
26559         * m4/uintmax_t.m4: Likewise.
26560         * m4/unlinkdir.m4: Likewise.
26561         * m4/unlocked-io.m4: Likewise.
26562         * m4/uptime.m4: Likewise.
26563         * m4/userspec.m4: Likewise.
26564         * m4/utimbuf.m4: Likewise.
26565         * m4/utime.m4: Likewise.
26566         * m4/utimes-null.m4: Likewise.
26567         * m4/utimes.m4: Likewise.
26568         * m4/vararrays.m4: Likewise.
26569         * m4/vasnprintf.m4: Likewise.
26570         * m4/vfprintf-posix.m4: Likewise.
26571         * m4/vprintf-posix.m4: Likewise.
26572         * m4/wait-process.m4: Likewise.
26573         * m4/wchar_t.m4: Likewise.
26574         * m4/wint_t.m4: Likewise.
26575         * m4/write-any-file.m4: Likewise.
26576         * m4/yield.m4: Likewise.
26577
26578 2009-01-13  Bruno Haible  <bruno@clisp.org>
26579
26580         Avoid test-copy-file.sh failures when ACL support insufficient.
26581         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
26582         TESTS_ENVIRONMENT.
26583         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
26584         Reported by Jim Meyering.
26585
26586 2009-01-13  Bruno Haible  <bruno@clisp.org>
26587
26588         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
26589         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
26590         * modules/unistdio/u8-printf-parse (Files): Likewise.
26591         * modules/unistdio/u32-printf-parse (Files): Likewise.
26592         * modules/unistdio/ulc-printf-parse (Files): Likewise.
26593
26594 2009-01-13  Simon Josefsson  <simon@josefsson.org>
26595
26596         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
26597         and m4/inttypes_h.m4 too.
26598
26599 2009-01-12  Eric Blake  <ebb9@byu.net>
26600
26601         tests: IRIX 6.2 cc can't compile -0.0 into .data
26602         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
26603         rather than at compile-time.
26604         * tests/test-floorl.c (minus_zero): Likewise.
26605         * tests/test-frexpl.c (minus_zero): Likewise.
26606         * tests/test-isnan.c (minus_zerol): Likewise.
26607         * tests/test-isnanl.h (minus_zero): Likewise.
26608         * tests/test-ldexpl.c (minus_zero): Likewise.
26609         * tests/test-roundl.c (minus_zero): Likewise.
26610         * tests/test-signbit.c (minus_zerol): Likewise.
26611         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26612         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26613         * tests/test-truncl.c (minus_zero): Likewise.
26614         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26615         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26616         Reported by Tom G. Christensen and Nelson H. F. Beebe.
26617
26618 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26619
26620         regex: fix glibc bug 9697
26621         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
26622         handling.
26623
26624 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26625
26626         regex: fix glibc bug 697
26627         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
26628         being NULL also if there are no backreferences.
26629
26630 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26631
26632         regex: merge glibc changes
26633         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
26634         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
26635         re_string_skip_chars, re_string_reconstruct): Likewise.
26636         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
26637
26638 2009-01-07  Jim Meyering  <meyering@redhat.com>
26639
26640         poll: filter through cppi
26641         * lib/poll.c: Indent cpp directives to reflect nesting.
26642
26643 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
26644
26645         poll: don't return uninitialized
26646         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
26647
26648 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
26649
26650         avoid compile failure on AIX 6.1
26651         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
26652         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
26653
26654 2009-01-04  Jim Meyering  <meyering@redhat.com>
26655
26656         remove duplicate inclusion of <stdio.h>
26657         * tests/test-fprintf-posix.c: Likewise.
26658         * tests/test-printf-posix.c: Likewise.
26659         * tests/test-snprintf-posix.c: Likewise.
26660         * tests/test-sprintf-posix.c: Likewise.
26661         * tests/test-vasprintf-posix.c: Likewise.
26662         * tests/test-vfprintf-posix.c: Likewise.
26663         * tests/test-vprintf-posix.c: Likewise.
26664         * tests/test-vsnprintf-posix.c: Likewise.
26665         * tests/test-vsprintf-posix.c: Likewise.
26666
26667 2009-01-03  Jim Meyering  <meyering@redhat.com>
26668
26669         gnulib-tool: fix sed-based filtering
26670         * gnulib-tool (func_filter_filelist): Remove extra backslash
26671         in sed_fff_filter definition.
26672
26673 2009-01-02  Jim Meyering  <meyering@redhat.com>
26674
26675         strftime: avoid compilation failure on Solaris 2.6
26676         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
26677         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
26678         Don't #define mbrlen or mbsinit, since now they're guaranteed to
26679         be available.  Reported by Tom G. Christensen.  Details in
26680         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
26681
26682 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26683             Bruno Haible  <bruno@clisp.org>
26684
26685         Speed up gnulib-tool by doing more string processing through shell
26686         built-ins.
26687         * gnulib-tool (fast_func_append): New variable.
26688         (func_remove_prefix, func_remove_suffix): New functions.
26689         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
26690         (func_filter_filelist): New function.
26691         (func_get_dependencies): Use func_remove_suffix instead of sed.
26692         (func_get_automake_snippet): Use func_filter_filelist instead of a
26693         subshell and sed invocation.
26694
26695 2009-01-01  Bruno Haible  <bruno@clisp.org>
26696
26697         Fix a security bug.
26698         * gnulib-tool (func_import, import, update): Don't allow the characters
26699         '"', '$', '`', '\' in macro arguments that become part of commands that
26700         are evaluated.
26701
26702 2009-01-01  Bruno Haible  <bruno@clisp.org>
26703
26704         * gnulib-tool (func_reset_sigpipe): Add more comments.
26705
26706 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26707
26708         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
26709         func_emit_tests_Makefile_am, func_import): Abort loops early if we
26710         already know the answer.
26711
26712 2009-01-01  Jim Meyering  <meyering@redhat.com>
26713
26714         * lib/version-etc.c (version_etc_va): Update copyright year.
26715
26716 2008-12-30  Bruno Haible  <bruno@clisp.org>
26717
26718         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
26719         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
26720         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
26721
26722 2008-12-29  Eric Blake  <ebb9@byu.net>
26723
26724         multiarch: avoid autoconf AC_REQUIRE bug
26725         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
26726         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
26727         2.63 and older.
26728         Reported by Bruno Haible, and analyzed in
26729         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
26730
26731 2008-12-29  Bruno Haible  <bruno@clisp.org>
26732
26733         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
26734         files in subdirectories correctly.
26735         Reported by Ralf Wildenhues.
26736
26737 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26738
26739         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
26740         rather than 'join FILE -', for Solaris join.
26741
26742 2008-12-29  Bruno Haible  <bruno@clisp.org>
26743
26744         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
26745         quoting.
26746         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26747         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26748         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26749         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
26750         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26751         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26752         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26753         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26754         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26755         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26756         * m4/nls.m4 (AM_NLS): Likewise.
26757         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
26758         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26759         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26760         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26761         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26762         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26763         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
26764         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26765         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26766         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26767         * m4/xsize.m4 (gl_XSIZE): Likewise.
26768         Suggested by Jim Meyering.
26769
26770 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26771
26772         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
26773         * lib/parse-duration.c: use a switch instead of cascading if's.
26774
26775 2008-12-29  Eric Blake  <ebb9@byu.net>
26776
26777         wchar.h: supply WEOF on Irix 5.3
26778         * lib/wchar.in.h (wint_t): Also supply WEOF.
26779         * lib/wctype.in.h (wint_t): Likewise.
26780         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
26781         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
26782         Reported by Tom G. Christensen.
26783
26784 2008-12-26  Bruno Haible  <bruno@clisp.org>
26785
26786         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
26787         i486, i586, i686.
26788
26789 2008-12-26  Bruno Haible  <bruno@clisp.org>
26790
26791         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
26792
26793 2008-12-26  Bruno Haible  <bruno@clisp.org>
26794
26795         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
26796         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
26797         not __STDC_CONSTANT_MACROS.
26798         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26799
26800 2008-12-25  Bruno Haible  <bruno@clisp.org>
26801
26802         Add support for universal builds to vasnprintf.
26803         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
26804         universal builds, guess no.
26805         * modules/vasnprintf-posix (Depends-on): Add multiarch.
26806         * modules/vasprintf-posix (Depends-on): Likewise.
26807         * modules/fprintf-posix (Depends-on): Likewise.
26808         * modules/vfprintf-posix (Depends-on): Likewise.
26809         * modules/snprintf-posix (Depends-on): Likewise.
26810         * modules/vsnprintf-posix (Depends-on): Likewise.
26811         * modules/sprintf-posix (Depends-on): Likewise.
26812         * modules/vsprintf-posix (Depends-on): Likewise.
26813         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26814         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26815         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26816         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26817         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26818         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26819         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26820
26821         Add support for universal builds to <inttypes.h>.
26822         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
26823         _SCNu64_PREFIX): In Apple
26824         universal builds, define directly, using _LP64.
26825         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
26826         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
26827         * modules/inttypes (Depends-on): Add multiarch.
26828         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
26829
26830         Add support for universal builds to <stdint.h>.
26831         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
26832         universal builds, define directly, using _LP64.
26833         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
26834         Apple universal builds, don't test for the size and suffix of ptrdiff_t
26835         and size_t.
26836         * modules/stdint (Depends-on): Add multiarch.
26837         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
26838
26839         New module 'multiarch'.
26840         * modules/multiarch: New file.
26841         * m4/multiarch.m4: New file.
26842
26843 2008-12-25  Bruno Haible  <bruno@clisp.org>
26844
26845         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
26846
26847 2008-12-25  Bruno Haible  <bruno@clisp.org>
26848
26849         * modules/btowc (License): Relicense under LGPLv2+.
26850         * modules/mbsinit (License): Likewise.
26851         * modules/mbrtowc (License): Likewise.
26852         * modules/wcrtomb (License): Likewise.
26853         * modules/streq (License): Likewise.
26854         Reported by David Lutterkort <lutter@redhat.com>.
26855
26856 2008-12-23  Bruno Haible  <bruno@clisp.org>
26857
26858         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
26859
26860 2008-12-23  Bruno Haible  <bruno@clisp.org>
26861
26862         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
26863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
26864         GETADDRINFO_LIB, not in LIBS.
26865         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
26866         * modules/canon-host (Link): Likewise.
26867         * NEWS: Mention the change.
26868         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
26869         GETADDRINFO_LIB.
26870
26871 2008-12-22  Bruno Haible  <bruno@clisp.org>
26872
26873         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
26874         * doc/posix-functions/iswalpha_l.texi: Likewise.
26875         * doc/posix-functions/iswblank_l.texi: Likewise.
26876         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26877         * doc/posix-functions/iswctype_l.texi: Likewise.
26878         * doc/posix-functions/iswdigit_l.texi: Likewise.
26879         * doc/posix-functions/iswgraph_l.texi: Likewise.
26880         * doc/posix-functions/iswlower_l.texi: Likewise.
26881         * doc/posix-functions/iswprint_l.texi: Likewise.
26882         * doc/posix-functions/iswpunct_l.texi: Likewise.
26883         * doc/posix-functions/iswspace_l.texi: Likewise.
26884         * doc/posix-functions/iswupper_l.texi: Likewise.
26885         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26886         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
26887         * doc/posix-functions/open_wmemstream.texi: Likewise.
26888         * doc/posix-functions/swscanf.texi: Likewise.
26889         * doc/posix-functions/towctrans_l.texi: Likewise.
26890         * doc/posix-functions/towlower.texi: Likewise.
26891         * doc/posix-functions/towlower_l.texi: Likewise.
26892         * doc/posix-functions/towupper.texi: Likewise.
26893         * doc/posix-functions/towupper_l.texi: Likewise.
26894         * doc/posix-functions/vfwprintf.texi: Likewise.
26895         * doc/posix-functions/vfwscanf.texi: Likewise.
26896         * doc/posix-functions/vswscanf.texi: Likewise.
26897         * doc/posix-functions/vwprintf.texi: Likewise.
26898         * doc/posix-functions/vwscanf.texi: Likewise.
26899         * doc/posix-functions/wcpcpy.texi: Likewise.
26900         * doc/posix-functions/wcpncpy.texi: Likewise.
26901         * doc/posix-functions/wcscasecmp.texi: Likewise.
26902         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
26903         * doc/posix-functions/wcscoll_l.texi: Likewise.
26904         * doc/posix-functions/wcsdup.texi: Likewise.
26905         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26906         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
26907         * doc/posix-functions/wcsnlen.texi: Likewise.
26908         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26909         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26910         * doc/posix-functions/wctrans_l.texi: Likewise.
26911         * doc/posix-functions/wctype_l.texi: Likewise.
26912         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
26913         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
26914         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
26915         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
26916         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
26917         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
26918         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
26919         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
26920         * doc/glibc-functions/wcschrnul.texi: Likewise.
26921         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26922         * doc/glibc-functions/wcstod_l.texi: Likewise.
26923         * doc/glibc-functions/wcstof_l.texi: Likewise.
26924         * doc/glibc-functions/wcstol_l.texi: Likewise.
26925         * doc/glibc-functions/wcstold_l.texi: Likewise.
26926         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26927         * doc/glibc-functions/wcstoq.texi: Likewise.
26928         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26929         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26930         * doc/glibc-functions/wcstouq.texi: Likewise.
26931         * doc/glibc-functions/wmempcpy.texi: Likewise.
26932
26933 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
26934             Eric Blake  <ebb9@byu.net>
26935             Paolo Bonzini  <bonzini@gnu.org>
26936             Bruno Haible  <bruno@clisp.org>
26937
26938         Make c-stack work on Haiku.
26939         * lib/c-stack.c (SA_ONSTACK): Define fallback.
26940         (c_stack_action): Use SA_ONSTACK flag.
26941
26942 2008-12-22  Bruno Haible  <bruno@clisp.org>
26943
26944         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
26945
26946 2008-12-22  Bruno Haible  <bruno@clisp.org>
26947
26948         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
26949         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
26950         being overridden.
26951         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
26952         New macros.
26953         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
26954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
26955         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
26956         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
26957
26958 2008-12-22  Bruno Haible  <bruno@clisp.org>
26959
26960         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
26961         from test code.
26962
26963 2008-12-22  Eric Blake  <ebb9@byu.net>
26964
26965         Avoid gcc warnings on cygwin.
26966         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
26967         Avoid unused variable.
26968         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
26969         Likewise.
26970
26971 2008-12-22  Bruno Haible  <bruno@clisp.org>
26972
26973         Remove HAVE_MBRTOWC conditionals.
26974         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
26975         (mbscasecmp): Assume mbrtowc function.
26976         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
26977         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
26978         * lib/mbschr.c: Include mbuiter.h unconditionally.
26979         (mbschr): Assume mbrtowc function.
26980         * lib/mbscspn.c: Include mbuiter.h unconditionally.
26981         (mbscspn): Assume mbrtowc function.
26982         * lib/mbslen.c: Include mbuiter.h unconditionally.
26983         (mbslen): Assume mbrtowc function.
26984         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
26985         (mbsncasecmp): Assume mbrtowc function.
26986         * lib/mbsnlen.c: Include mbiter.h unconditionally.
26987         (mbsnlen): Assume mbrtowc function.
26988         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
26989         (mbspbrk): Assume mbrtowc function.
26990         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
26991         (mbspcasecmp): Assume mbrtowc function.
26992         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
26993         (mbsrchr): Assume mbrtowc function.
26994         * lib/mbssep.c: Include mbuiter.h unconditionally.
26995         (mbssep): Assume mbrtowc function.
26996         * lib/mbsspn.c: Include mbuiter.h unconditionally.
26997         (mbsspn): Assume mbrtowc function.
26998         * lib/mbsstr.c: Include mbuiter.h unconditionally.
26999         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27000         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27001         (mbstok_r): Assume mbrtowc function.
27002         * lib/propername.c: Include mbuiter.h unconditionally.
27003         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27004         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27005         (trim2): Assume mbrtowc function.
27006         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27007         (mbsnwidth): Assume mbrtowc function.
27008         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27009         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27010         fallback definitions.
27011         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27012
27013 2008-12-22  Bruno Haible  <bruno@clisp.org>
27014
27015         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27016
27017 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27018
27019         * modules/regex: Request emulations for the mb*/wc* functions we need.
27020         * m4/regex.m4: Don't look for those functions here.
27021         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27022
27023 2008-12-22  Bruno Haible  <bruno@clisp.org>
27024
27025         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27026
27027 2008-12-21  Bruno Haible  <bruno@clisp.org>
27028
27029         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27030         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27031         (Include): Remove conditionalization.
27032         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27033         (Include): Remove conditionalization.
27034         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27035         (Include): Remove conditionalization.
27036         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27037         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27038         * NEWS: Mention the change.
27039         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27040         via Sergey Poznyakoff <gray@gnu.org.ua>.
27041
27042 2008-12-21  Bruno Haible  <bruno@clisp.org>
27043
27044         * MODULES.html.sh (Extended multibyte and wide character utilities
27045         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
27046         wcrtomb, wcsrtombs.
27047         (Support for systems lacking POSIX:2008): Add accept, bind, close,
27048         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
27049         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
27050         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
27051
27052 2008-12-21  Bruno Haible  <bruno@clisp.org>
27053
27054         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
27055
27056 2008-12-21  Bruno Haible  <bruno@clisp.org>
27057
27058         * modules/wcsnrtombs-tests: New file.
27059         * tests/test-wcsnrtombs1.sh: New file.
27060         * tests/test-wcsnrtombs2.sh: New file.
27061         * tests/test-wcsnrtombs3.sh: New file.
27062         * tests/test-wcsnrtombs4.sh: New file.
27063         * tests/test-wcsnrtombs.c: New file.
27064
27065         New module 'wcsnrtombs'.
27066         * lib/wchar.in.h (wcsnrtombs): New declaration.
27067         * lib/wcsnrtombs.c: New file.
27068         * lib/wcsrtombs-state.c: New file.
27069         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
27070         (internal_state): Remove variable.
27071         * m4/wcsnrtombs.m4: New file.
27072         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
27073         compilation units.
27074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
27075         HAVE_WCSNRTOMBS.
27076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
27077         HAVE_WCSNRTOMBS.
27078         * modules/wcsnrtombs: New file.
27079         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
27080         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
27081
27082 2008-12-21  Bruno Haible  <bruno@clisp.org>
27083
27084         * modules/wcsrtombs-tests: New file.
27085         * tests/test-wcsrtombs1.sh: New file.
27086         * tests/test-wcsrtombs2.sh: New file.
27087         * tests/test-wcsrtombs3.sh: New file.
27088         * tests/test-wcsrtombs4.sh: New file.
27089         * tests/test-wcsrtombs.c: New file.
27090
27091         New module 'wcsrtombs'.
27092         * lib/wchar.in.h (wcsrtombs): New declaration.
27093         * lib/wcsrtombs.c: New file.
27094         * m4/wcsrtombs.m4: New file.
27095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
27096         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
27098         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27099         * modules/wcsrtombs: New file.
27100         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
27101         bugs.
27102
27103 2008-12-21  Bruno Haible  <bruno@clisp.org>
27104
27105         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
27106         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
27107         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
27108         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
27109         if not correct.
27110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
27111         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
27112         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27113         m4/locale-zh.m4, m4/codeset.m4.
27114         * doc/posix-functions/wcrtomb.texi: Document the bug.
27115
27116 2008-12-21  Bruno Haible  <bruno@clisp.org>
27117
27118         Work around a btowc() bug on IRIX 6.5.
27119         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
27120         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
27121         REPLACE_WTOBC if not.
27122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
27123         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
27124         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
27125
27126 2008-12-21  Bruno Haible  <bruno@clisp.org>
27127
27128         * modules/wcrtomb-tests: New file.
27129         * tests/test-wcrtomb.sh: New file.
27130         * tests/test-wcrtomb.c: New file.
27131
27132         New module 'wcrtomb'.
27133         * lib/wchar.in.h (wcrtomb): New declaration.
27134         * lib/wcrtomb.c: New file.
27135         * m4/wcrtomb.m4: New file.
27136         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
27137         HAVE_WCRTOMB.
27138         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
27139         HAVE_WCRTOMB.
27140         * modules/wcrtomb: New file.
27141         * doc/posix-functions/wcrtomb.texi: Mention the new module.
27142
27143 2008-12-21  Bruno Haible  <bruno@clisp.org>
27144
27145         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
27146         * modules/mbsrtowcs (Files): Likewise.
27147         * modules/wctob (Files): Likewise.
27148         * modules/c-strcase-tests (Files): Likewise.
27149         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27150         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27151         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27152         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27153         * modules/vasnprintf-posix-tests (Files): Likewise.
27154
27155 2008-12-21  William Pursell  <bill.pursell@gmail.com>
27156
27157         gitlog-to-changelog: pass all command-line arguments to git-log
27158         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
27159         it is sometimes convenient to filter the commits in various ways.
27160         gitlog-to-changelog only allows --since to specify a start date,
27161         but git-log itself supports many other filtering mechanisms.
27162         At the moment, I want to filter by branch name.  Rather than
27163         adding a --branch option to gitlog-to-changelog, it seems more
27164         flexible to simply pass all options directly to git-log and let
27165         git do the work.  Notice that this effectively makes --since a
27166         redundant option for gitlog-to-changelog, but removing it would
27167         require current usage to change since calls would then require
27168         an additional '--'.
27169
27170 2008-12-21  Bruno Haible  <bruno@clisp.org>
27171
27172         * modules/mbsnrtowcs-tests: New file.
27173         * tests/test-mbsnrtowcs1.sh: New file.
27174         * tests/test-mbsnrtowcs2.sh: New file.
27175         * tests/test-mbsnrtowcs3.sh: New file.
27176         * tests/test-mbsnrtowcs4.sh: New file.
27177         * tests/test-mbsnrtowcs.c: New file.
27178
27179         New module 'mbsnrtowcs'.
27180         * lib/wchar.in.h (mbsnrtowcs): New declaration.
27181         * lib/mbsnrtowcs.c: New file.
27182         * lib/mbsrtowcs-state.c: New file.
27183         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
27184         (internal_state): Remove variable.
27185         * m4/mbsnrtowcs.m4: New file.
27186         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
27187         compilation units.
27188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
27189         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27190         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
27191         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27192         * modules/mbsnrtowcs: New file.
27193         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
27194         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
27195         portability problem.
27196
27197 2008-12-21  Bruno Haible  <bruno@clisp.org>
27198
27199         Work around mbsrtowcs bug.
27200         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
27201         (gl_FUNC_MBSRTOWCS): Invoke it.
27202         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27203         m4/locale-zh.m4.
27204         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
27205
27206 2008-12-21  Bruno Haible  <bruno@clisp.org>
27207
27208         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
27209
27210 2008-12-21  Bruno Haible  <bruno@clisp.org>
27211
27212         Update doc for AIX.
27213         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
27214         16-bit wchar_t type.
27215         * doc/posix-functions/btowc.texi: Likewise.
27216         * doc/posix-functions/fgetwc.texi: Likewise.
27217         * doc/posix-functions/fgetws.texi: Likewise.
27218         * doc/posix-functions/fputwc.texi: Likewise.
27219         * doc/posix-functions/fputws.texi: Likewise.
27220         * doc/posix-functions/fwide.texi: Likewise.
27221         * doc/posix-functions/fwprintf.texi: Likewise.
27222         * doc/posix-functions/fwscanf.texi: Likewise.
27223         * doc/posix-functions/getwchar.texi: Likewise.
27224         * doc/posix-functions/getwc.texi: Likewise.
27225         * doc/posix-functions/iswalnum.texi: Likewise.
27226         * doc/posix-functions/iswalpha.texi: Likewise.
27227         * doc/posix-functions/iswblank.texi: Likewise.
27228         * doc/posix-functions/iswcntrl.texi: Likewise.
27229         * doc/posix-functions/iswctype.texi: Likewise.
27230         * doc/posix-functions/iswdigit.texi: Likewise.
27231         * doc/posix-functions/iswgraph.texi: Likewise.
27232         * doc/posix-functions/iswlower.texi: Likewise.
27233         * doc/posix-functions/iswprint.texi: Likewise.
27234         * doc/posix-functions/iswpunct.texi: Likewise.
27235         * doc/posix-functions/iswspace.texi: Likewise.
27236         * doc/posix-functions/iswupper.texi: Likewise.
27237         * doc/posix-functions/iswxdigit.texi: Likewise.
27238         * doc/posix-functions/mbrtowc.texi: Likewise.
27239         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27240         * doc/posix-functions/mbstowcs.texi: Likewise.
27241         * doc/posix-functions/mbtowc.texi: Likewise.
27242         * doc/posix-functions/putwchar.texi: Likewise.
27243         * doc/posix-functions/putwc.texi: Likewise.
27244         * doc/posix-functions/swprintf.texi: Likewise.
27245         * doc/posix-functions/tolower.texi: Likewise.
27246         * doc/posix-functions/toupper.texi: Likewise.
27247         * doc/posix-functions/towctrans.texi: Likewise.
27248         * doc/posix-functions/ungetwc.texi: Likewise.
27249         * doc/posix-functions/vswprintf.texi: Likewise.
27250         * doc/posix-functions/wcrtomb.texi: Likewise.
27251         * doc/posix-functions/wcscat.texi: Likewise.
27252         * doc/posix-functions/wcschr.texi: Likewise.
27253         * doc/posix-functions/wcscmp.texi: Likewise.
27254         * doc/posix-functions/wcscoll.texi: Likewise.
27255         * doc/posix-functions/wcscpy.texi: Likewise.
27256         * doc/posix-functions/wcscspn.texi: Likewise.
27257         * doc/posix-functions/wcsftime.texi: Likewise.
27258         * doc/posix-functions/wcslen.texi: Likewise.
27259         * doc/posix-functions/wcsncat.texi: Likewise.
27260         * doc/posix-functions/wcsncmp.texi: Likewise.
27261         * doc/posix-functions/wcsncpy.texi: Likewise.
27262         * doc/posix-functions/wcspbrk.texi: Likewise.
27263         * doc/posix-functions/wcsrchr.texi: Likewise.
27264         * doc/posix-functions/wcsrtombs.texi: Likewise.
27265         * doc/posix-functions/wcsspn.texi: Likewise.
27266         * doc/posix-functions/wcsstr.texi: Likewise.
27267         * doc/posix-functions/wcstod.texi: Likewise.
27268         * doc/posix-functions/wcstof.texi: Likewise.
27269         * doc/posix-functions/wcstoimax.texi: Likewise.
27270         * doc/posix-functions/wcstok.texi: Likewise.
27271         * doc/posix-functions/wcstold.texi: Likewise.
27272         * doc/posix-functions/wcstoll.texi: Likewise.
27273         * doc/posix-functions/wcstol.texi: Likewise.
27274         * doc/posix-functions/wcstombs.texi: Likewise.
27275         * doc/posix-functions/wcstoull.texi: Likewise.
27276         * doc/posix-functions/wcstoul.texi: Likewise.
27277         * doc/posix-functions/wcstoumax.texi: Likewise.
27278         * doc/posix-functions/wcswidth.texi: Likewise.
27279         * doc/posix-functions/wcsxfrm.texi: Likewise.
27280         * doc/posix-functions/wctob.texi: Likewise.
27281         * doc/posix-functions/wctomb.texi: Likewise.
27282         * doc/posix-functions/wctrans.texi: Likewise.
27283         * doc/posix-functions/wctype.texi: Likewise.
27284         * doc/posix-functions/wcwidth.texi: Likewise.
27285         * doc/posix-functions/wmemchr.texi: Likewise.
27286         * doc/posix-functions/wmemcmp.texi: Likewise.
27287         * doc/posix-functions/wmemcpy.texi: Likewise.
27288         * doc/posix-functions/wmemmove.texi: Likewise.
27289         * doc/posix-functions/wmemset.texi: Likewise.
27290         * doc/posix-functions/wprintf.texi: Likewise.
27291         * doc/posix-functions/wscanf.texi: Likewise.
27292
27293 2008-12-21  Bruno Haible  <bruno@clisp.org>
27294
27295         Update doc for HP-UX 11.11.
27296         * doc/posix-functions/btowc.texi: Clarify that the function is missing
27297         in HP-UX version 11.00, not in all versions of HP-UX 11.
27298         * doc/posix-functions/fwide.texi: Likewise.
27299         * doc/posix-functions/fwprintf.texi: Likewise.
27300         * doc/posix-functions/fwscanf.texi: Likewise.
27301         * doc/posix-functions/inet_ntop.texi: Likewise.
27302         * doc/posix-functions/inet_pton.texi: Likewise.
27303         * doc/posix-functions/mbrlen.texi: Likewise.
27304         * doc/posix-functions/mbrtowc.texi: Likewise.
27305         * doc/posix-functions/mbsinit.texi: Likewise.
27306         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27307         * doc/posix-functions/swprintf.texi: Likewise.
27308         * doc/posix-functions/swscanf.texi: Likewise.
27309         * doc/posix-functions/towctrans.texi: Likewise.
27310         * doc/posix-functions/vfwprintf.texi: Likewise.
27311         * doc/posix-functions/vswprintf.texi: Likewise.
27312         * doc/posix-functions/vwprintf.texi: Likewise.
27313         * doc/posix-functions/wcrtomb.texi: Likewise.
27314         * doc/posix-functions/wcsrtombs.texi: Likewise.
27315         * doc/posix-functions/wcsstr.texi: Likewise.
27316         * doc/posix-functions/wctob.texi: Likewise.
27317         * doc/posix-functions/wctrans.texi: Likewise.
27318         * doc/posix-functions/wmemchr.texi: Likewise.
27319         * doc/posix-functions/wmemcmp.texi: Likewise.
27320         * doc/posix-functions/wmemcpy.texi: Likewise.
27321         * doc/posix-functions/wmemmove.texi: Likewise.
27322         * doc/posix-functions/wmemset.texi: Likewise.
27323         * doc/posix-functions/wprintf.texi: Likewise.
27324         * doc/posix-functions/wscanf.texi: Likewise.
27325
27326 2008-12-21  Bruno Haible  <bruno@clisp.org>
27327
27328         Work around a portability problem.
27329         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
27330         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
27331
27332 2008-12-20  Bruno Haible  <bruno@clisp.org>
27333
27334         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
27335         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
27336         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
27337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
27338         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
27339
27340         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
27341         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
27342         set.
27343         (GNULIB_defined_mbstate_t): New macro.
27344         (mbsinit): Redefine if REPLACE_MBSINIT is set.
27345         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
27346         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
27347         reuses the system's mbrtowc function but works around the bugs.
27348         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
27349         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
27350         macros.
27351         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
27352         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
27353         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
27354         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
27355         REPLACE_MBSINIT if mbsinit needs to be overridden.
27356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
27357         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27358         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
27359         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27360         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27361         m4/locale-zh.m4.
27362         (Depends): Add mbsinit.
27363         * modules/mbsinit (Depends): Add mbrtowc.
27364         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
27365
27366 2008-12-20  Bruno Haible  <bruno@clisp.org>
27367
27368         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
27369         so that there are no conversion errors on AIX.
27370         * tests/test-mbsrtowcs.c (main): LIkewise.
27371
27372 2008-12-20  Bruno Haible  <bruno@clisp.org>
27373
27374         Work around wctob bug on Solaris <= 9.
27375         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
27376         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
27377         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
27378         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
27379         * modules/wctob (Files): Add m4/locale-fr.m4.
27380         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
27381
27382 2008-12-20  Bruno Haible  <bruno@clisp.org>
27383
27384         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
27385         /dev/null.
27386         * tests/test-select-in.sh: Likewise.
27387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27388
27389 2008-12-20  Bruno Haible  <bruno@clisp.org>
27390
27391         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
27392         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
27393         Cygwin 1.5.x.
27394
27395 2008-12-20  Bruno Haible  <bruno@clisp.org>
27396
27397         Ensure mbstate_t is defined on HP-UX 11.11.
27398         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
27399         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
27400         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
27401         AC_USE_SYSTEM_EXTENSIONS.
27402         * modules/fnmatch (Depends-on): Add extensions.
27403         * modules/mbrlen (Depends-on): Likewise.
27404         * modules/mbrtowc (Depends-on): Likewise.
27405         * modules/mbsinit (Depends-on): Likewise.
27406         * modules/mbsrtowcs (Depends-on): Likewise.
27407         * modules/mbswidth (Depends-on): Likewise.
27408         * modules/quotearg (Depends-on): Likewise.
27409         * modules/strftime (Depends-on): Likewise.
27410
27411 2008-12-20  Bruno Haible  <bruno@clisp.org>
27412
27413         Ensure wctob is declared on IRIX 6.5.
27414         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
27415         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
27416         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
27417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
27418         of HAVE_WCTOB.
27419         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
27420         HAVE_WCTOB.
27421         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
27422
27423 2008-12-19  Bruno Haible  <bruno@clisp.org>
27424
27425         * modules/mbsrtowcs-tests: New file.
27426         * tests/test-mbsrtowcs1.sh: New file.
27427         * tests/test-mbsrtowcs2.sh: New file.
27428         * tests/test-mbsrtowcs3.sh: New file.
27429         * tests/test-mbsrtowcs4.sh: New file.
27430         * tests/test-mbsrtowcs.c: New file.
27431
27432         New module 'mbsrtowcs'.
27433         * lib/wchar.in.h (mbsrtowcs): New declaration.
27434         * lib/mbsrtowcs.c: New file.
27435         * m4/mbsrtowcs.m4: New file.
27436         * modules/mbsrtowcs: New file.
27437         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
27438         HAVE_MBSRTOWCS.
27439         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
27440         HAVE_MBSRTOWCS.
27441         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
27442
27443 2008-12-19  Bruno Haible  <bruno@clisp.org>
27444
27445         New module 'mbrlen'.
27446         * lib/wchar.in.h (mbrlen): New declaration.
27447         * lib/mbrlen.c: New file.
27448         * m4/mbrlen.m4: New file.
27449         * modules/mbrlen: New file.
27450         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
27451         HAVE_MBRLEN.
27452         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
27453         HAVE_MBRLEN.
27454         * doc/posix-functions/mbrlen.texi: Document the new module.
27455
27456 2008-12-19  Bruno Haible  <bruno@clisp.org>
27457
27458         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
27459         * modules/mbrtowc (Depends-on): Add verify.
27460         Suggested by Paul Eggert.
27461
27462 2008-12-18  Bruno Haible  <bruno@clisp.org>
27463
27464         * modules/mbsinit-tests: New file.
27465         * tests/test-mbsinit.sh: New file.
27466         * tests/test-mbsinit.c: New file.
27467
27468 2008-12-18  Bruno Haible  <bruno@clisp.org>
27469
27470         * modules/mbrtowc-tests: New file.
27471         * tests/test-mbrtowc1.sh: New file.
27472         * tests/test-mbrtowc2.sh: New file.
27473         * tests/test-mbrtowc3.sh: New file.
27474         * tests/test-mbrtowc4.sh: New file.
27475         * tests/test-mbrtowc.c: New file.
27476
27477         New module 'mbrtowc'.
27478         * lib/wchar.in.h (mbstate_t): Override when the system does not have
27479         mbsinit and mbrtowc.
27480         (mbrtowc): New declaration.
27481         * lib/mbrtowc.c: New file.
27482         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
27483         * modules/mbrtowc: New file.
27484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
27485         HAVE_MBRTOWC.
27486         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
27487         HAVE_MBRTOWC.
27488         * doc/posix-functions/mbrtowc.texi: Document the new module.
27489
27490 2008-12-18  Bruno Haible  <bruno@clisp.org>
27491
27492         New module 'wctob'.
27493         * lib/wchar.in.h (wctob): New declaration.
27494         * lib/wctob.c: New file.
27495         * m4/wctob.m4: New file.
27496         * modules/wctob: New file.
27497         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
27498         HAVE_WCTOB.
27499         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
27500         * doc/posix-functions/wctob.texi: Document the new module.
27501
27502 2008-12-18  Bruno Haible  <bruno@clisp.org>
27503
27504         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
27505         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
27506
27507 2008-12-18  Simon Josefsson  <simon@josefsson.org>
27508
27509         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
27510         G. Christensen" <tgc@jupiterrise.com>.
27511
27512         * lib/flock.c: Need to include errno.h.  Reported by "Tom
27513         G. Christensen" <tgc@jupiterrise.com>.
27514
27515         * lib/flock.c: Need to include string.h.  Reported by "Tom
27516         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
27517         <ebb9@byu.net>.
27518
27519 2008-12-18  Bruno Haible  <bruno@clisp.org>
27520
27521         * m4/locale-ja.m4: New file, from GNU gettext.
27522
27523 2008-12-17  Bruno Haible  <bruno@clisp.org>
27524
27525         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
27526         Suggested by Eric Blake.
27527
27528 2008-12-17  Bruno Haible  <bruno@clisp.org>
27529
27530         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
27531
27532 2008-12-17  Bruno Haible  <bruno@clisp.org>
27533
27534         * lib/mbsinit.c: Include verify.h. Verify an assumption.
27535         * modules/mbsinit (Depends-on): Add verify.
27536         Suggested by Paul Eggert.
27537
27538 2008-12-17  Bruno Haible  <bruno@clisp.org>
27539
27540         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
27541         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
27542         gl_FUNC_MBRTOWC.
27543         * m4/mbiter.m4 (gl_MBITER): LIkewise.
27544         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
27545         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
27546         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
27547         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
27548         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
27549         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
27550         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
27551         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
27552         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
27553         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
27554         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
27555         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
27556         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
27557         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
27558         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27559         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
27560         * modules/trim (configure.ac): Likewise.
27561
27562 2008-12-17  Bruno Haible  <bruno@clisp.org>
27563
27564         * modules/btowc-tests: New file.
27565         * tests/test-btowc1.sh: New file.
27566         * tests/test-btowc2.sh: New file.
27567         * tests/test-btowc.c: New file.
27568
27569         New module 'btowc'.
27570         * lib/wchar.in.h (btowc): New declaration.
27571         * lib/btowc.c: New file.
27572         * m4/btowc.m4: New file.
27573         * modules/btowc: New file.
27574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
27575         HAVE_BTOWC.
27576         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
27577         * doc/posix-functions/btowc.texi: Document the new module.
27578
27579 2008-12-17  Bruno Haible  <bruno@clisp.org>
27580
27581         New module 'mbsinit'.
27582         * lib/wchar.in.h (mbsinit): New declaration.
27583         * lib/mbsinit.c: New file.
27584         * m4/mbsinit.m4: New file.
27585         * modules/mbsinit: New file.
27586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
27587         HAVE_MBSINIT.
27588         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
27589         HAVE_MBSINIT.
27590         * doc/posix-functions/mbsinit.texi: Document the new module.
27591
27592 2008-12-16  Bruno Haible  <bruno@clisp.org>
27593
27594         * lib/unistd.in.h: Add comment.
27595         * tests/test-environ.c: Don't include <stdlib.h>.
27596
27597 2008-12-16  Bruno Haible  <bruno@clisp.org>
27598
27599         * lib/parse-duration.h (parse_duration): Document return value
27600         convention.
27601         * lib/parse-duration.c: Include specification header first. Add
27602         comments.
27603         (_): Remove macro.
27604         (parse_year_month_day, parse_hour_minute_second): Move side effects
27605         outside of strchr call.
27606         (parse_non_iso8601): Move side effects outside of isspace call.
27607         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
27608         call.
27609
27610 2008-12-16  Bruno Haible  <bruno@clisp.org>
27611
27612         * tests/test-parse-duration.sh: Produce no output when the test
27613         succeeds.
27614
27615 2008-12-16  Bruno Haible  <bruno@clisp.org>
27616
27617         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
27618         expressions.
27619
27620 2008-12-15  Bruno Haible  <bruno@clisp.org>
27621
27622         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
27623         * doc/glibc-functions/flistxattr.texi: Likewise.
27624         * doc/glibc-functions/fopencookie.texi: Likewise.
27625         * doc/glibc-functions/fremovexattr.texi: Likewise.
27626         * doc/glibc-functions/fsetxattr.texi: Likewise.
27627         * doc/glibc-functions/getxattr.texi: Likewise.
27628         * doc/glibc-functions/lgetxattr.texi: Likewise.
27629         * doc/glibc-functions/listxattr.texi: Likewise.
27630         * doc/glibc-functions/llistxattr.texi: Likewise.
27631         * doc/glibc-functions/lremovexattr.texi: Likewise.
27632         * doc/glibc-functions/lsetxattr.texi: Likewise.
27633         * doc/glibc-functions/removexattr.texi: Likewise.
27634         * doc/glibc-functions/setxattr.texi: Likewise.
27635         * doc/posix-functions/open_memstream.texi: Likewise.
27636
27637 2008-12-15  Eric Blake  <ebb9@byu.net>
27638
27639         Update doc for cygwin 1.7.
27640         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
27641         functions.
27642         * doc/posix-functions/fchmodat.texi: Likewise.
27643         * doc/posix-functions/fchownat.texi: Likewise.
27644         * doc/posix-functions/fdopendir.texi: Likewise.
27645         * doc/posix-functions/fmemopen.texi: Likewise.
27646         * doc/posix-functions/freeaddrinfo.texi: Likewise.
27647         * doc/posix-functions/fstatat.texi: Likewise.
27648         * doc/posix-functions/futimens.texi: Likewise.
27649         * doc/posix-functions/gai_strerror.texi: Likewise.
27650         * doc/posix-functions/getaddrinfo.texi: Likewise.
27651         * doc/posix-functions/getnameinfo.texi: Likewise.
27652         * doc/posix-functions/if_freenameindex.texi: Likewise.
27653         * doc/posix-functions/if_indextoname.texi: Likewise.
27654         * doc/posix-functions/if_nameindex.texi: Likewise.
27655         * doc/posix-functions/if_nametoindex.texi: Likewise.
27656         * doc/posix-functions/insque.texi: Likewise.
27657         * doc/posix-functions/linkat.texi: Likewise.
27658         * doc/posix-functions/llrint.texi: Likewise.
27659         * doc/posix-functions/llrintf.texi: Likewise.
27660         * doc/posix-functions/llrintl.texi: Likewise.
27661         * doc/posix-functions/lockf.texi: Likewise.
27662         * doc/posix-functions/lrintl.texi: Likewise.
27663         * doc/posix-functions/mkdirat.texi: Likewise.
27664         * doc/posix-functions/mkfifoat.texi: Likewise.
27665         * doc/posix-functions/mknodat.texi: Likewise.
27666         * doc/posix-functions/mq_close.texi: Likewise.
27667         * doc/posix-functions/mq_getattr.texi: Likewise.
27668         * doc/posix-functions/mq_notify.texi: Likewise.
27669         * doc/posix-functions/mq_open.texi: Likewise.
27670         * doc/posix-functions/mq_receive.texi: Likewise.
27671         * doc/posix-functions/mq_send.texi: Likewise.
27672         * doc/posix-functions/mq_setattr.texi: Likewise.
27673         * doc/posix-functions/mq_timedreceive.texi: Likewise.
27674         * doc/posix-functions/mq_timedsend.texi: Likewise.
27675         * doc/posix-functions/mq_unlink.texi: Likewise.
27676         * doc/posix-functions/open_memstream.texi: Likewise.
27677         * doc/posix-functions/openat.texi: Likewise.
27678         * doc/posix-functions/posix_fadvise.texi: Likewise.
27679         * doc/posix-functions/posix_fallocate.texi: Likewise.
27680         * doc/posix-functions/posix_madvise.texi: Likewise.
27681         * doc/posix-functions/posix_memalign.texi: Likewise.
27682         * doc/posix-functions/posix_openpt.texi: Likewise.
27683         * doc/posix-functions/readlinkat.texi: Likewise.
27684         * doc/posix-functions/remque.texi: Likewise.
27685         * doc/posix-functions/renameat.texi: Likewise.
27686         * doc/posix-functions/rintl.texi: Likewise.
27687         * doc/posix-functions/sem_unlink.texi: Likewise.
27688         * doc/posix-functions/shm_open.texi: Likewise.
27689         * doc/posix-functions/shm_unlink.texi: Likewise.
27690         * doc/posix-functions/signgam.texi: Likewise.
27691         * doc/posix-functions/sigset.texi: Likewise.
27692         * doc/posix-functions/stpcpy.texi: Likewise.
27693         * doc/posix-functions/stpncpy.texi: Likewise.
27694         * doc/posix-functions/strerror.texi: Likewise.
27695         * doc/posix-functions/strtod.texi: Likewise.
27696         * doc/posix-functions/symlinkat.texi: Likewise.
27697         * doc/posix-functions/unlinkat.texi: Likewise.
27698         * doc/posix-functions/utimensat.texi: Likewise.
27699         * doc/glibc-functions/bindresvport.texi: Likewise.
27700         * doc/glibc-functions/dn_expand.texi: Likewise.
27701         * doc/glibc-functions/exp10.texi: Likewise.
27702         * doc/glibc-functions/exp10f.texi: Likewise.
27703         * doc/glibc-functions/fgetxattr.texi: Likewise.
27704         * doc/glibc-functions/flistxattr.texi: Likewise.
27705         * doc/glibc-functions/fopencookie.texi: Likewise.
27706         * doc/glibc-functions/freeifaddrs.texi: Likewise.
27707         * doc/glibc-functions/fremovexattr.texi: Likewise.
27708         * doc/glibc-functions/fsetxattr.texi: Likewise.
27709         * doc/glibc-functions/getifaddrs.texi: Likewise.
27710         * doc/glibc-functions/getxattr.texi: Likewise.
27711         * doc/glibc-functions/lgetxattr.texi: Likewise.
27712         * doc/glibc-functions/listxattr.texi: Likewise.
27713         * doc/glibc-functions/llistxattr.texi: Likewise.
27714         * doc/glibc-functions/lremovexattr.texi: Likewise.
27715         * doc/glibc-functions/lsetxattr.texi: Likewise.
27716         * doc/glibc-functions/pow10.texi: Likewise.
27717         * doc/glibc-functions/pow10f.texi: Likewise.
27718         * doc/glibc-functions/rcmd_af.texi: Likewise.
27719         * doc/glibc-functions/removexattr.texi: Likewise.
27720         * doc/glibc-functions/res_init.texi: Likewise.
27721         * doc/glibc-functions/res_mkquery.texi: Likewise.
27722         * doc/glibc-functions/res_query.texi: Likewise.
27723         * doc/glibc-functions/res_querydomain.texi: Likewise.
27724         * doc/glibc-functions/res_send.texi: Likewise.
27725         * doc/glibc-functions/rresvport_af.texi: Likewise.
27726         * doc/glibc-functions/setxattr.texi: Likewise.
27727         * doc/glibc-functions/strcasestr.texi: Likewise.
27728
27729 2008-12-15  Bruno Haible  <bruno@clisp.org>
27730
27731         Fix compilation error on OSF/1 4.0.
27732         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
27733         <sys/time.h>, simply delegate to the system header.
27734         Reported by Daniel Richard G. <oss@teragram.com>.
27735
27736 2008-12-15  Bruno Haible  <bruno@clisp.org>
27737
27738         * doc/posix-functions/openat.texi: Mention the 'openat' module.
27739         * doc/posix-functions/fchmodat.texi: Likewise.
27740         * doc/posix-functions/fchownat.texi: Likewise.
27741         * doc/posix-functions/fdopendir.texi: Likewise.
27742         * doc/posix-functions/fstatat.texi: Likewise.
27743         * doc/posix-functions/mkdirat.texi: Likewise.
27744         * doc/posix-functions/unlinkat.texi: Likewise.
27745
27746 2008-12-14  Bruno Haible  <bruno@clisp.org>
27747
27748         Update doc for POSIX:2008.
27749         * doc/posix-functions/faccessat.texi: New file.
27750         * doc/posix-functions/fchmodat.texi: New file.
27751         * doc/posix-functions/fchownat.texi: New file.
27752         * doc/posix-functions/fdopendir.texi: New file.
27753         * doc/posix-functions/fstatat.texi: New file.
27754         * doc/posix-functions/futimens.texi: New file.
27755         * doc/posix-functions/linkat.texi: New file.
27756         * doc/posix-functions/mkdirat.texi: New file.
27757         * doc/posix-functions/mkfifoat.texi: New file.
27758         * doc/posix-functions/mknodat.texi: New file.
27759         * doc/posix-functions/open_wmemstream.texi: New file.
27760         * doc/posix-functions/openat.texi: New file.
27761         * doc/posix-functions/psiginfo.texi: New file.
27762         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
27763         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
27764         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
27765         * doc/posix-functions/readlinkat.texi: New file.
27766         * doc/posix-functions/renameat.texi: New file.
27767         * doc/posix-functions/strerror_l.texi: New file.
27768         * doc/posix-functions/symlinkat.texi: New file.
27769         * doc/posix-functions/unlinkat.texi: New file.
27770         * doc/posix-functions/utimensat.texi: New file.
27771         * doc/gnulib.texi (Function Substitutes): Add these subsections.
27772
27773 2008-12-14  Bruno Haible  <bruno@clisp.org>
27774
27775         Update doc for POSIX:2008.
27776         * doc/posix-functions/alphasort.texi: Renamed from
27777         doc/glibc-functions/alphasort.texi.
27778         * doc/posix-functions/dirfd.texi: Renamed from
27779         doc/glibc-functions/dirfd.texi.
27780         * doc/posix-functions/dprintf.texi: Renamed from
27781         doc/glibc-functions/dprintf.texi.
27782         * doc/posix-functions/duplocale.texi: Renamed from
27783         doc/glibc-functions/duplocale.texi.
27784         * doc/posix-functions/fexecve.texi: Renamed from
27785         doc/glibc-functions/fexecve.texi.
27786         * doc/posix-functions/fmemopen.texi: Renamed from
27787         doc/glibc-functions/fmemopen.texi.
27788         * doc/posix-functions/freelocale.texi: Renamed from
27789         doc/glibc-functions/freelocale.texi.
27790         * doc/posix-functions/getdate_err.texi: Renamed from
27791         doc/glibc-functions/getdate_err.texi.
27792         * doc/posix-functions/isalnum_l.texi: Renamed from
27793         doc/glibc-functions/isalnum_l.texi.
27794         * doc/posix-functions/isalpha_l.texi: Renamed from
27795         doc/glibc-functions/isalpha_l.texi.
27796         * doc/posix-functions/isblank_l.texi: Renamed from
27797         doc/glibc-functions/isblank_l.texi.
27798         * doc/posix-functions/iscntrl_l.texi: Renamed from
27799         doc/glibc-functions/iscntrl_l.texi.
27800         * doc/posix-functions/isdigit_l.texi: Renamed from
27801         doc/glibc-functions/isdigit_l.texi.
27802         * doc/posix-functions/isgraph_l.texi: Renamed from
27803         doc/glibc-functions/isgraph_l.texi.
27804         * doc/posix-functions/islower_l.texi: Renamed from
27805         doc/glibc-functions/islower_l.texi.
27806         * doc/posix-functions/isprint_l.texi: Renamed from
27807         doc/glibc-functions/isprint_l.texi.
27808         * doc/posix-functions/ispunct_l.texi: Renamed from
27809         doc/glibc-functions/ispunct_l.texi.
27810         * doc/posix-functions/isspace_l.texi: Renamed from
27811         doc/glibc-functions/isspace_l.texi.
27812         * doc/posix-functions/isupper_l.texi: Renamed from
27813         doc/glibc-functions/isupper_l.texi.
27814         * doc/posix-functions/iswalnum_l.texi: Renamed from
27815         doc/glibc-functions/iswalnum_l.texi.
27816         * doc/posix-functions/iswalpha_l.texi: Renamed from
27817         doc/glibc-functions/iswalpha_l.texi.
27818         * doc/posix-functions/iswblank_l.texi: Renamed from
27819         doc/glibc-functions/iswblank_l.texi.
27820         * doc/posix-functions/iswcntrl_l.texi: Renamed from
27821         doc/glibc-functions/iswcntrl_l.texi.
27822         * doc/posix-functions/iswctype_l.texi: Renamed from
27823         doc/glibc-functions/iswctype_l.texi.
27824         * doc/posix-functions/iswdigit_l.texi: Renamed from
27825         doc/glibc-functions/iswdigit_l.texi.
27826         * doc/posix-functions/iswgraph_l.texi: Renamed from
27827         doc/glibc-functions/iswgraph_l.texi.
27828         * doc/posix-functions/iswlower_l.texi: Renamed from
27829         doc/glibc-functions/iswlower_l.texi.
27830         * doc/posix-functions/iswprint_l.texi: Renamed from
27831         doc/glibc-functions/iswprint_l.texi.
27832         * doc/posix-functions/iswpunct_l.texi: Renamed from
27833         doc/glibc-functions/iswpunct_l.texi.
27834         * doc/posix-functions/iswspace_l.texi: Renamed from
27835         doc/glibc-functions/iswspace_l.texi.
27836         * doc/posix-functions/iswupper_l.texi: Renamed from
27837         doc/glibc-functions/iswupper_l.texi.
27838         * doc/posix-functions/iswxdigit_l.texi: Renamed from
27839         doc/glibc-functions/iswxdigit_l.texi.
27840         * doc/posix-functions/isxdigit_l.texi: Renamed from
27841         doc/glibc-functions/isxdigit_l.texi.
27842         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
27843         doc/glibc-functions/mbsnrtowcs.texi.
27844         * doc/posix-functions/mkdtemp.texi: Renamed from
27845         doc/glibc-functions/mkdtemp.texi.
27846         * doc/posix-functions/newlocale.texi: Renamed from
27847         doc/glibc-functions/newlocale.texi.
27848         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
27849         doc/glibc-functions/nl_langinfo_l.texi.
27850         * doc/posix-functions/open_memstream.texi: Renamed from
27851         doc/glibc-functions/open_memstream.texi.
27852         * doc/posix-functions/opterr.texi: Renamed from
27853         doc/glibc-functions/opterr.texi.
27854         * doc/posix-functions/optind.texi: Renamed from
27855         doc/glibc-functions/optind.texi.
27856         * doc/posix-functions/optopt.texi: Renamed from
27857         doc/glibc-functions/optopt.texi.
27858         * doc/posix-functions/psignal.texi: Renamed from
27859         doc/glibc-functions/psignal.texi.
27860         * doc/posix-functions/scandir.texi: Renamed from
27861         doc/glibc-functions/scandir.texi.
27862         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
27863         doc/glibc-functions/sched_get_priority_min.texi.
27864         * doc/posix-functions/signgam.texi: Renamed from
27865         doc/glibc-functions/signgam.texi.
27866         * doc/posix-functions/stpcpy.texi: Renamed from
27867         doc/glibc-functions/stpcpy.texi.
27868         * doc/posix-functions/stpncpy.texi: Renamed from
27869         doc/glibc-functions/stpncpy.texi.
27870         * doc/posix-functions/strcasecmp_l.texi: Renamed from
27871         doc/glibc-functions/strcasecmp_l.texi.
27872         * doc/posix-functions/strcoll_l.texi: Renamed from
27873         doc/glibc-functions/strcoll_l.texi.
27874         * doc/posix-functions/strfmon_l.texi: Renamed from
27875         doc/glibc-functions/strfmon_l.texi.
27876         * doc/posix-functions/strftime_l.texi: Renamed from
27877         doc/glibc-functions/strftime_l.texi.
27878         * doc/posix-functions/strncasecmp_l.texi: Renamed from
27879         doc/glibc-functions/strncasecmp_l.texi.
27880         * doc/posix-functions/strndup.texi: Renamed from
27881         doc/glibc-functions/strndup.texi.
27882         * doc/posix-functions/strnlen.texi: Renamed from
27883         doc/glibc-functions/strnlen.texi.
27884         * doc/posix-functions/strsignal.texi: Renamed from
27885         doc/glibc-functions/strsignal.texi.
27886         * doc/posix-functions/strxfrm_l.texi: Renamed from
27887         doc/glibc-functions/strxfrm_l.texi.
27888         * doc/posix-functions/timer_gettime.texi: Renamed from
27889         doc/glibc-functions/timer_gettime.texi.
27890         * doc/posix-functions/tolower_l.texi: Renamed from
27891         doc/glibc-functions/tolower_l.texi.
27892         * doc/posix-functions/toupper_l.texi: Renamed from
27893         doc/glibc-functions/toupper_l.texi.
27894         * doc/posix-functions/towctrans_l.texi: Renamed from
27895         doc/glibc-functions/towctrans_l.texi.
27896         * doc/posix-functions/towlower_l.texi: Renamed from
27897         doc/glibc-functions/towlower_l.texi.
27898         * doc/posix-functions/towupper_l.texi: Renamed from
27899         doc/glibc-functions/towupper_l.texi.
27900         * doc/posix-functions/uselocale.texi: Renamed from
27901         doc/glibc-functions/uselocale.texi.
27902         * doc/posix-functions/vdprintf.texi: Renamed from
27903         doc/glibc-functions/vdprintf.texi.
27904         * doc/posix-functions/wcpcpy.texi:
27905         Renamed from doc/glibc-functions/wcpcpy.texi.
27906         * doc/posix-functions/wcpncpy.texi: Renamed from
27907         doc/glibc-functions/wcpncpy.texi.
27908         * doc/posix-functions/wcscasecmp.texi: Renamed from
27909         doc/glibc-functions/wcscasecmp.texi.
27910         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
27911         doc/glibc-functions/wcscasecmp_l.texi.
27912         * doc/posix-functions/wcscoll_l.texi: Renamed from
27913         doc/glibc-functions/wcscoll_l.texi.
27914         * doc/posix-functions/wcsdup.texi: Renamed from
27915         doc/glibc-functions/wcsdup.texi.
27916         * doc/posix-functions/wcsncasecmp.texi: Renamed from
27917         doc/glibc-functions/wcsncasecmp.texi.
27918         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
27919         doc/glibc-functions/wcsncasecmp_l.texi.
27920         * doc/posix-functions/wcsnlen.texi: Renamed from
27921         doc/glibc-functions/wcsnlen.texi.
27922         * doc/posix-functions/wcsnrtombs.texi: Renamed from
27923         doc/glibc-functions/wcsnrtombs.texi.
27924         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
27925         doc/glibc-functions/wcsxfrm_l.texi.
27926         * doc/posix-functions/wctrans_l.texi: Renamed from
27927         doc/glibc-functions/wctrans_l.texi.
27928         * doc/posix-functions/wctype_l.texi: Renamed from
27929         doc/glibc-functions/wctype_l.texi.
27930         * doc/gnulib.texi (Function Substitutes): Add these subsections.
27931         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
27932         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
27933         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
27934         these subsections.
27935         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
27936         Remove sections.
27937
27938 2008-12-14  Bruno Haible  <bruno@clisp.org>
27939
27940         Update doc for POSIX:2008.
27941         * doc/posix-functions/*.texi: Update URL of POSIX specification.
27942
27943 2008-12-14  Bruno Haible  <bruno@clisp.org>
27944
27945         Update doc for POSIX:2008.
27946         * doc/pastposix-functions/bcmp.texi: Renamed from
27947         doc/posix-functions/bcmp.texi.
27948         * doc/pastposix-functions/bcopy.texi: Renamed from
27949         doc/posix-functions/bcopy.texi.
27950         * doc/pastposix-functions/bsd_signal.texi: Renamed from
27951         doc/posix-functions/bsd_signal.texi.
27952         * doc/pastposix-functions/bzero.texi: Renamed from
27953         doc/posix-functions/bzero.texi.
27954         * doc/pastposix-functions/ecvt.texi: Renamed from
27955         doc/posix-functions/ecvt.texi.
27956         * doc/pastposix-functions/fcvt.texi: Renamed from
27957         doc/posix-functions/fcvt.texi.
27958         * doc/pastposix-functions/ftime.texi: Renamed from
27959         doc/posix-functions/ftime.texi.
27960         * doc/pastposix-functions/gcvt.texi: Renamed from
27961         doc/posix-functions/gcvt.texi.
27962         * doc/pastposix-functions/getcontext.texi: Renamed from
27963         doc/posix-functions/getcontext.texi.
27964         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
27965         doc/posix-functions/gethostbyaddr.texi.
27966         * doc/pastposix-functions/gethostbyname.texi: Renamed from
27967         doc/posix-functions/gethostbyname.texi.
27968         * doc/pastposix-functions/getwd.texi: Renamed from
27969         doc/posix-functions/getwd.texi.
27970         * doc/pastposix-functions/h_errno.texi: Renamed from
27971         doc/posix-functions/h_errno.texi.
27972         * doc/pastposix-functions/index.texi: Renamed from
27973         doc/posix-functions/index.texi.
27974         * doc/pastposix-functions/makecontext.texi: Renamed from
27975         doc/posix-functions/makecontext.texi.
27976         * doc/pastposix-functions/mktemp.texi: Renamed from
27977         doc/posix-functions/mktemp.texi.
27978         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
27979         doc/posix-functions/pthread_attr_getstackaddr.texi.
27980         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
27981         doc/posix-functions/pthread_attr_setstackaddr.texi.
27982         * doc/pastposix-functions/rindex.texi: Renamed from
27983         doc/posix-functions/rindex.texi.
27984         * doc/pastposix-functions/scalb.texi: Renamed from
27985         doc/posix-functions/scalb.texi.
27986         * doc/pastposix-functions/setcontext.texi: Renamed from
27987         doc/posix-functions/setcontext.texi.
27988         * doc/pastposix-functions/swapcontext.texi: Renamed from
27989         doc/posix-functions/swapcontext.texi.
27990         * doc/pastposix-functions/ualarm.texi: Renamed from
27991         doc/posix-functions/ualarm.texi.
27992         * doc/pastposix-functions/usleep.texi: Renamed from
27993         doc/posix-functions/usleep.texi.
27994         * doc/pastposix-functions/vfork.texi: Renamed from
27995         doc/posix-functions/vfork.texi.
27996         * doc/pastposix-functions/wcswcs.texi: Renamed from
27997         doc/posix-functions/wcswcs.texi.
27998         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
27999         (Function Substitutes): Update.
28000
28001 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28002
28003         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28004         m4/strerror.m4.
28005
28006 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28007             Bruno Haible  <bruno@clisp.org>
28008
28009         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28010
28011 2008-12-13  Bruno Haible  <bruno@clisp.org>
28012
28013         * modules/strtoull (Depends-on): Remove unistd.
28014
28015 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28016
28017         * modules/strtoull (Depends-on): Add stdlib.
28018
28019 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28020
28021         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28022
28023 2008-12-10  Jim Meyering  <meyering@redhat.com>
28024
28025         gl_ASSERT: don't say assertions are disabled when they're not
28026         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28027         "checking whether to enable assertions... no", when they are in
28028         fact enabled.  This is solely a bug in the output of configure.
28029         In spite of saying "no", NDEBUG was not defined in that case.
28030         Also, as noted by Eric Blake, leave assertions enabled upon
28031         --enable-assert=INVALID.
28032
28033 2008-12-10  Bruno Haible  <bruno@clisp.org>
28034
28035         Change MODULES.html to refer to POSIX:2008 where possible.
28036         * MODULES.html.sh (POSIX2008_URL): New variable.
28037         (posix_headers): Remove sys/timeb, ucontext.
28038         (posix2001_headers): New variable.
28039         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28040         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28041         index, makecontext, mktemp, pthread_attr_getstackaddr,
28042         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28043         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28044         (posix2001_functions): New variable.
28045         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
28046         otherwise.
28047
28048 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28049
28050         add missing include to parse-duration.c
28051         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
28052         * modules/parse-duration (Depends-on): Add xalloc.
28053
28054         fix sed script reading maint.mk
28055         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
28056         (syntax-check-rules): Use it.
28057
28058 2008-12-09  Bruno Haible  <bruno@clisp.org>
28059
28060         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
28061         MacOS X 10.4/PowerPC.
28062         Reported by Simon Josefsson.
28063
28064 2008-12-08  Jim Meyering  <meyering@redhat.com>
28065
28066         work around mingw's lack of some S_IF definitions
28067         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
28068         Reported by Simon Josefsson.
28069
28070 2008-12-08  Bruno Haible  <bruno@clisp.org>
28071
28072         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
28073         applied to variables. Needed on MacOS X 10.4/PowerPC.
28074         Reported by Simon Josefsson.
28075
28076 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
28077         and Eric Blake  <ebb9@byu.net>
28078
28079         assert: honor --enable-assert
28080         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
28081         order to honor --enable-assert, rather than treating it as a
28082         synonym for --disable-assert.
28083
28084 2008-12-08  Jim Meyering  <meyering@redhat.com>
28085
28086         * lib/posixtm.c: Remove now-useless declaration of mktime.
28087
28088         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
28089
28090 2008-12-07  Bruno Haible  <bruno@clisp.org>
28091
28092         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
28093         test_once): Mark functions as static.
28094         * tests/test-tls.c (test_tls): Likewise.
28095
28096 2008-12-07  Bruno Haible  <bruno@clisp.org>
28097
28098         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
28099         iconv_register_autodetect.
28100
28101 2008-12-07  Jim Meyering  <meyering@redhat.com>
28102
28103         posixtm.c: avoid a warning
28104         * lib/posixtm.c (posixtime): Don't initialize tm0.
28105         It's no longer needed to placate gcc4's -Wuninitialized,
28106         and the attempt to placate would elicit a new warning.
28107
28108         unicodeio.c: mark unused parameters
28109         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28110         (fallback_failure_callback): Likewise.
28111
28112 2008-12-07  Bruno Haible  <bruno@clisp.org>
28113
28114         * gnulib-tool (func_create_testdir): When building the tests
28115         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
28116         Reported by Simon Josefsson.
28117
28118 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28119
28120         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
28121
28122 2008-12-06  Bruno Haible  <bruno@clisp.org>
28123
28124         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
28125         Suggested by Eric Blake.
28126
28127 2008-12-06  Bruno Haible  <bruno@clisp.org>
28128
28129         Fix a c-stack test failure on MacOS X.
28130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
28131         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
28132         handler for SIGBUS as well.
28133         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
28134         install a signal handler for SIGBUS as well.
28135         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
28136
28137 2008-12-06  Bruno Haible  <bruno@clisp.org>
28138
28139         Advocacy documentation.
28140         * doc/gnulib-intro.texi (Benefits): New section.
28141         * doc/gnulib.texi: Update.
28142
28143 2008-12-06  Bruno Haible  <bruno@clisp.org>
28144
28145         Document the 'manywarnings' module.
28146         * doc/manywarnings.texi: New file.
28147         * doc/gnulib.texi: Include it.
28148
28149 2008-12-05  Eric Blake  <ebb9@byu.net>
28150
28151         tests: silence some gcc warnings
28152         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
28153         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28154         type mismatches.
28155
28156 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28157             Bruno Haible  <bruno@clisp.org>
28158
28159         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
28160
28161 2008-11-29  Jim Meyering  <meyering@redhat.com>
28162
28163         unicodeio.c: mark unused parameters
28164         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28165         (fallback_failure_callback): Likewise.
28166
28167         fts: fix a thinko
28168         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
28169         (set_stat_type): Return S_IF*-valued "type" directly.
28170         Prompted by James Youngman's spotting a related bug.
28171         Confirmed by further testing through find.
28172
28173         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
28174         * lib/fts.c (D_TYPE): Define.
28175         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
28176         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
28177         (s_ifmt_shift_bits): New function.
28178         (set_stat_type): New function.
28179         (fts_build): When not calling fts_stat, call set_stat_type
28180         to propagate dirent.d_type info to fts_read caller.
28181         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
28182         fts_statp->st_mode type information may be valid.
28183
28184 2008-11-28  Simon Josefsson  <simon@josefsson.org>
28185
28186         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
28187         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
28188         <sds@gnu.org>.
28189
28190 2008-11-20  Bruno Haible  <bruno@clisp.org>
28191
28192         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
28193         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
28194         INCLUDE_NEXT.
28195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
28196         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
28197         * modules/math (Makefile.am): Substitute
28198         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
28199         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28200
28201 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28202             Bruno Haible  <bruno@clisp.org>
28203
28204         * lib/stdint.in.h: Define all type macros so that their expansion is
28205         a single typedef'ed token. Fixes a compilation failure in Boost which
28206         does "using ::int8_t;".
28207
28208 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28209
28210         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
28211         gl_MANYWARN_ALL_GCC.
28212         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
28213         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
28214         * modules/manywarnings: New file.
28215         * MODULES.html.sh: Mention manywarnings module.
28216
28217 2008-11-18  Bruno Haible  <bruno@clisp.org>
28218
28219         * doc/gnulib-tool.texi (Unit tests): New section.
28220
28221 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28222
28223         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
28224         paths like 'lib/po/foo.po'.
28225
28226 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28227
28228         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
28229         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
28230
28231 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28232
28233         * m4/warnings.m4: Use CPPFLAGS to really check whether the
28234         parameter works.
28235
28236 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28237
28238         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
28239
28240 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28241
28242         * modules/parse-duration-tests: New file.
28243         * tests/test-parse-duration.sh: New file.
28244         * tests/test-parse-duration.c: New file.
28245
28246         New module 'parse-duration'.
28247         * lib/parse-duration.h: New file.
28248         * lib/parse-duration.c: New file.
28249         * modules/parse-duration: New file.
28250
28251 2008-11-17  Bruno Haible  <bruno@clisp.org>
28252
28253         * tests/test-select-out.sh: Comment out the first pipe test.
28254         Reported by Simon Josefsson.
28255
28256 2008-11-17  Bruno Haible  <bruno@clisp.org>
28257
28258         * modules/getaddrinfo (Depends-on): Add servent, hostent.
28259         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
28260         gl_HOSTENT.
28261
28262 2008-11-17  Bruno Haible  <bruno@clisp.org>
28263
28264         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
28265         -lnetwork and -lnet. Needed for Haiku and BeOS.
28266
28267 2008-11-16  Bruno Haible  <bruno@clisp.org>
28268
28269         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
28270
28271 2008-11-16  Bruno Haible  <bruno@clisp.org>
28272
28273         Avoid test failure on Haiku.
28274         * tests/test-fsync.c: Include <errno.h>.
28275         (main): Don't require that fsync (0) fails.
28276
28277 2008-11-15  Bruno Haible  <bruno@clisp.org>
28278
28279         New module 'hostent'.
28280         * modules/hostent: New file.
28281         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
28282
28283 2008-11-15  Bruno Haible  <bruno@clisp.org>
28284
28285         New module 'servent'.
28286         * modules/servent: New file.
28287         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
28288
28289 2008-11-15  Bruno Haible  <bruno@clisp.org>
28290
28291         Avoid generating same test program with two different rules.
28292         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
28293         test-frexp to test-frexp-nolibm.
28294         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
28295         test-frexpl to test-frexpl-nolibm.
28296
28297 2008-11-15  Bruno Haible  <bruno@clisp.org>
28298
28299         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
28300         $(FREXPL_LIBM).
28301
28302 2008-11-15  Bruno Haible  <bruno@clisp.org>
28303
28304         * lib/netdb.in.h: Activate the definitions also when the system's
28305         <netdb.h> has 'struct addrinfo'.
28306         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
28307         EAI_OVERFLOW or AI_NUMERICSERV.
28308         * doc/posix-headers/netdb.texi: Document the problem.
28309
28310 2008-11-15  Bruno Haible  <bruno@clisp.org>
28311
28312         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
28313
28314         Make the 'sched' module work on platforms where <sched.h> exists but
28315         is incomplete (such as Haiku).
28316         * lib/sched.in.h; Include the system's <sched.h> if it exists.
28317         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
28318         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
28319         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
28320         HAVE_STRUCT_SCHED_PARAM.
28321         * modules/sched (Depends-on): Add include_next.
28322         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
28323         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
28324         * doc/posix-headers/sched.texi: Document the issue.
28325
28326 2008-11-13  Jim Meyering  <meyering@redhat.com>
28327
28328         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
28329         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
28330         test would fail due to the difference in the Report bugs to ...
28331         line.  The expected address is empty, "<>", while the actual
28332         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
28333
28334 2008-11-12  Bruno Haible  <bruno@clisp.org>
28335
28336         lstat: don't compile lstat.c on systems lacking lstat
28337         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
28338         which don't have lstat; this is handled by lib/sys_stat.in.h already.
28339         Reported by Daniel P. Berrange via Jim Meyering.
28340
28341 2008-11-12  Jim Meyering  <meyering@redhat.com>
28342
28343         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
28344
28345 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28346
28347         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
28348         instead.
28349
28350 2008-11-12  Bruno Haible  <bruno@clisp.org>
28351
28352         * lib/unicodeio.c: Include unistr.h.
28353         (utf8_wctomb): Remove function.
28354         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
28355
28356 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28357
28358         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
28359         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
28360         <bruno@clisp.org>.
28361         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
28362
28363 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28364
28365         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
28366         * doc/gnulib.texi: Add section for warnings.
28367
28368 2008-11-11  Bruno Haible  <bruno@clisp.org>
28369
28370         * lib/sockets.h: Add a comment.
28371
28372 2008-11-11  Karl Berry  <karl@gnu.org>
28373
28374         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
28375
28376 2008-11-11  Eric Blake  <ebb9@byu.net>
28377
28378         fdl.texi: avoid git symlinks
28379         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
28380
28381 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28382
28383         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
28384
28385 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28386
28387         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
28388         (gl_WARN_ADD): Substitute $2 if literal.
28389
28390 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28391
28392         * m4/warning.m4: Remove.
28393
28394 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28395
28396         * m4/warnings.m4: Almost complete rewrite. :-)
28397
28398 2008-11-10  Simon Josefsson  <simon@josefsson.org>
28399
28400         * modules/warnings: New module.
28401         * m4/warnings.m4: New file.
28402         * MODULES.html.sh: Mention warnings module.
28403         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
28404         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28405
28406 2008-11-10  Eric Blake  <ebb9@byu.net>
28407
28408         fdl.texi: make a symlink to the latest version
28409         * doc/standards.texi: Revert today's earlier change.
28410         * doc/fdl-1.2.texi: Rename from old fdl.texi...
28411         * doc/fdl.texi: ...and replace this with a symlink to the newer
28412         fdl-1.3.texi.
28413
28414 2008-11-10  Bruno Haible  <bruno@clisp.org>
28415
28416         * tests/test-select-fd.c (main): Accept the result file name as fourth
28417         argument.
28418         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
28419         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
28420
28421 2008-11-10  Bruno Haible  <bruno@clisp.org>
28422
28423         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
28424         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
28425         as autoconf-substituted macros.
28426         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
28427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
28428         gl_NETDB_H_DEFAULTS. Set these variables.
28429         * modules/netdb (Makefile.am): Substitute these variables.
28430
28431 2008-11-10  Eric Blake  <ebb9@byu.net>
28432
28433         standards.texi: include correct file for FDL 1.3
28434         * doc/standards.texi (GNU Free Documentation License): Change
28435         include file to pull in FDL 1.3, not 1.2.
28436
28437         fdl.texi: revert accidental change to license
28438         * doc/fdl.texi: This is FDL 1.2, not 1.3.
28439
28440 2008-11-10  Bruno Haible  <bruno@clisp.org>
28441
28442         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
28443         cross-compiling guesses also when the native compile gives no result.
28444
28445 2008-11-10  Bruno Haible  <bruno@clisp.org>
28446
28447         * lib/spawni.c (__spawni): Force variable into the stack.
28448
28449 2008-11-10  Bruno Haible  <bruno@clisp.org>
28450
28451         Add support for Haiku.
28452         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
28453         glibc and BeOS, but also on Haiku.
28454         * lib/fpurge.c (fpurge): Likewise.
28455         * lib/freadable.c (freadable): Likewise.
28456         * lib/freadahead.c (freadahead): Likewise.
28457         * lib/freading.c (freading): Likewise.
28458         * lib/freadptr.c (freadptr): Likewise.
28459         * lib/freadseek.c (freadptrinc): Likewise.
28460         * lib/fseeko.c (rpl_fseeko): Likewise.
28461         * lib/fseterr.c (fseterr): Likewise.
28462         * lib/fwritable.c (fwritable): Likewise.
28463         * lib/fwriting.c (fwriting): Likewise.
28464         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
28465
28466 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28467
28468         * lib/config.charset: Treat Haiku like BeOS.
28469
28470 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28471
28472         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
28473         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
28474
28475 2008-11-08  Bruno Haible  <bruno@clisp.org>
28476
28477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
28478         AC_CACHE_CHECK.
28479
28480 2008-11-08  Bruno Haible  <bruno@clisp.org>
28481
28482         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
28483
28484 2008-11-08  Bruno Haible  <bruno@clisp.org>
28485
28486         * tests/test-select-fd.c: New file.
28487         * tests/test-select-in.sh: New file.
28488         * tests/test-select-out.sh: New file.
28489         * tests/test-select-stdin.c: New file.
28490         * modules/select-tests (Files): Add the new files.
28491         (Depends-on): Add gettimeofday.
28492         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
28493         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
28494         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
28495
28496 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
28497             Bruno Haible  <bruno@clisp.org>
28498
28499         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
28500
28501 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
28502
28503         * build-aux/pmccabe2html: Added support for C++ source files.
28504
28505 2008-11-05  Ben Pfaff  <blp@gnu.org>
28506
28507         Fix lib/close.c build on Windows.
28508         * modules/close (Files): Add lib/w32sock.h.
28509
28510 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
28511
28512         Accept Bison's NEWS format.
28513         * build-aux/announce-gen (print_news_deltas): Tweak
28514         $re_prefix.
28515
28516 2008-11-04  Bruno Haible  <bruno@clisp.org>
28517
28518         * modules/random_r (Maintainer): Add glibc.
28519
28520 2008-11-04  Simon Josefsson  <simon@josefsson.org>
28521
28522         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
28523         by karl@freefriends.org (Karl Berry).
28524         * doc/alloca.texi: Likewise.
28525         * doc/c-ctype.texi: Likewise.
28526         * doc/c-strcase.texi: Likewise.
28527         * doc/c-strcaseeq.texi: Likewise.
28528         * doc/c-strcasestr.texi: Likewise.
28529         * doc/c-strstr.texi: Likewise.
28530         * doc/c-strtod.texi: Likewise.
28531         * doc/c-strtold.texi: Likewise.
28532         * doc/ctime.texi: Likewise.
28533         * doc/error.texi: Likewise.
28534         * doc/fdl.texi: Likewise.
28535         * doc/gcd.texi: Likewise.
28536         * doc/getdate.texi: Likewise.
28537         * doc/gnulib-intro.texi: Likewise.
28538         * doc/gnulib-tool.texi: Likewise.
28539         * doc/gnulib.texi: Likewise.
28540         * doc/inet_ntoa.texi: Likewise.
28541         * doc/maintain.texi: Likewise.
28542         * doc/make-stds.texi: Likewise.
28543         * doc/quote.texi: Likewise.
28544         * doc/regexprops-generic.texi: Likewise.
28545         * doc/standards.texi: Likewise.
28546         * doc/verify.texi: Likewise.
28547         * doc/visibility.texi: Likewise.
28548         * doc/gnulib.texi (GNU Free Documentation License): Include
28549         fdl-1.3.texi instead of fdl.texi.
28550
28551 2008-11-04  Simon Josefsson  <simon@josefsson.org>
28552
28553         * doc/fdl-1.3.texi: New file, from
28554         <http://www.gnu.org/licenses/fdl-1.3.texi>.
28555         * modules/fdl-1.3: Add.
28556         * MODULES.html.sh: Add fdl-1.3.
28557
28558 2008-11-03  Bruno Haible  <bruno@clisp.org>
28559
28560         Make determination of absolute name of header file work with AIX xlc.
28561         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
28562         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
28563         preprocessing.
28564         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28565         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
28566
28567 2008-11-03  Simon Josefsson  <simon@josefsson.org>
28568
28569         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
28570         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
28571         <ludo@gnu.org>.
28572
28573 2008-11-02  Bruno Haible  <bruno@clisp.org>
28574
28575         Mark 'strpbrk' obsolete.
28576         * modules/strpbrk (Status, Notice): New sections.
28577         * modules/strtok_r (Depends-on): Add strpbrk.
28578
28579 2008-11-02  Bruno Haible  <bruno@clisp.org>
28580
28581         Mark 'strdup' obsolete.
28582         * modules/strdup (Status, Notice): New sections.
28583         * modules/findprog (Depends-on): Add strdup.
28584         * modules/getaddrinfo (Depends-on): Likewise.
28585         * modules/localename (Depends-on): Likewise.
28586         * modules/relocatable-lib (Depends-on): Likewise.
28587         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
28588         * modules/relocatable-prog (Depends-on): Likewise.
28589         * modules/trim (Depends-on): Likewise.
28590         * modules/unictype/gen-ctype (Depends-on): Likewise.
28591         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
28592
28593 2008-11-02  Bruno Haible  <bruno@clisp.org>
28594
28595         Mark 'strcspn' obsolete.
28596         * modules/strcspn (Status, Notice): New sections.
28597
28598 2008-11-02  Bruno Haible  <bruno@clisp.org>
28599
28600         Mark 'rmdir' obsolete.
28601         * modules/rmdir (Status, Notice): New sections.
28602         * modules/clean-temp (Depends-on): Add rmdir.
28603         * modules/openat (Depends-on): Likewise.
28604
28605 2008-11-02  Bruno Haible  <bruno@clisp.org>
28606
28607         Mark 'raise' obsolete.
28608         * modules/raise (Status, Notice): New sections.
28609         (Include): Specify <signal.h>.
28610         * modules/stdio (Depends-on): Add raise.
28611         * modules/write (Depends-on): Likewise.
28612
28613 2008-11-02  Bruno Haible  <bruno@clisp.org>
28614
28615         Mark 'memset' obsolete.
28616         * modules/memset (Status, Notice): New sections.
28617
28618 2008-11-02  Bruno Haible  <bruno@clisp.org>
28619
28620         Mark 'memmove' obsolete.
28621         * modules/memmove (Status, Notice): New sections.
28622         * modules/argp (Depends-on): Add memmove.
28623         * modules/argz (Depends-on): Likewise.
28624         * modules/canonicalize (Depends-on): Likewise.
28625         * modules/canonicalize-lgpl (Depends-on): Likewise.
28626         * modules/fts (Depends-on): Likewise.
28627         * modules/getcwd (Depends-on): Likewise.
28628         * modules/human (Depends-on): Likewise.
28629         * modules/regex (Depends-on): Likewise.
28630         * modules/striconveh (Depends-on): Likewise.
28631         * modules/trim (Depends-on): Likewise.
28632         * modules/unistr/u8-move (Depends-on): Likewise.
28633         * modules/unistr/u16-move (Depends-on): Likewise.
28634         * modules/unistr/u32-move (Depends-on): Likewise.
28635
28636 2008-11-02  Bruno Haible  <bruno@clisp.org>
28637
28638         Mark 'memcpy' obsolete.
28639         * modules/memcpy (Status, Notice): New sections.
28640
28641 2008-11-02  Bruno Haible  <bruno@clisp.org>
28642
28643         Mark 'memcmp' obsolete.
28644         * modules/memcmp (Status, Notice): New sections.
28645         * modules/argmatch (Depends-on): Add memchr.
28646         * modules/backupfile (Depends-on): Likewise.
28647         * modules/c-strcasestr (Depends-on): Likewise.
28648         * modules/crypto/des (Depends-on): Likewise.
28649         * modules/csharpcomp (Depends-on): Likewise.
28650         * modules/fnmatch (Depends-on): Likewise.
28651         * modules/git-merge-changelog (Depends-on): Likewise.
28652         * modules/isnand (Depends-on): Likewise.
28653         * modules/isnand-nolibm (Depends-on): Likewise.
28654         * modules/isnanf (Depends-on): Likewise.
28655         * modules/isnanf-nolibm (Depends-on): Likewise.
28656         * modules/isnanl (Depends-on): Likewise.
28657         * modules/isnanl-nolibm (Depends-on): Likewise.
28658         * modules/mbchar (Depends-on): Likewise.
28659         * modules/memcoll (Depends-on): Likewise.
28660         * modules/quotearg (Depends-on): Likewise.
28661         * modules/regex (Depends-on): Likewise.
28662         * modules/relocatable-prog (Depends-on): Likewise.
28663         * modules/same (Depends-on): Likewise.
28664         * modules/signbit (Depends-on): Likewise.
28665         * modules/strcasestr-simple (Depends-on): Likewise.
28666         * modules/unictype/gen-ctype (Depends-on): Likewise.
28667         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
28668         * modules/uniname/uniname (Depends-on): Likewise.
28669         * modules/unistr/u8-cmp (Depends-on): Likewise.
28670
28671 2008-11-02  Bruno Haible  <bruno@clisp.org>
28672
28673         Mark 'memchr' obsolete.
28674         * modules/memchr (Status, Notice): New sections.
28675         * modules/argp (Depends-on): Add memchr.
28676         * modules/base64 (Depends-on): Likewise.
28677         * modules/c-strcasestr (Depends-on): Likewise.
28678         * modules/chdir-long (Depends-on): Likewise.
28679         * modules/fnmatch (Depends-on): Likewise.
28680         * modules/getsubopt (Depends-on): Likewise.
28681         * modules/git-merge-changelog (Depends-on): Likewise.
28682         * modules/glob (Depends-on): Likewise.
28683         * modules/strcasestr-simple (Depends-on): Likewise.
28684         * modules/strnlen (Depends-on): Likewise.
28685
28686 2008-11-02  Bruno Haible  <bruno@clisp.org>
28687
28688         Mark 'atexit' obsolete.
28689         * modules/atexit (Status, Notice): New sections.
28690         * modules/chdir-long (Depends-on): Add atexit.
28691         * modules/wait-process (Depends-on): Likewise.
28692
28693 2008-11-02  Bruno Haible  <bruno@clisp.org>
28694
28695         * gnulib-tool: New option --with-obsolete.
28696         (func_usage): Document it.
28697         (func_modules_transitive_closure): Drop obsolete dependencies if
28698         incobsolete is not true.
28699         (func_import): Read and save the incobsolete variable to the cache.
28700
28701 2008-11-02  Bruno Haible  <bruno@clisp.org>
28702
28703         * modules/TEMPLATE-EXTENDED: New field 'Status'.
28704         * gnulib-tool: New option --extract-status.
28705         (func_usage): Document it.
28706         (sed_extract_prog): Recognize it.
28707         (func_get_status): New function.
28708
28709 2008-10-30  Simon Josefsson  <simon@josefsson.org>
28710
28711         * modules/sockets (License): Change from LGPL to LGPLv2+.
28712
28713 2008-10-28  Simon Josefsson  <simon@josefsson.org>
28714
28715         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
28716
28717 2008-10-28  Simon Josefsson  <simon@josefsson.org>
28718
28719         * MODULES.html.sh (Support for systems lacking POSIX:2001):
28720         Mention times and sys_times.
28721         * modules/sys_times, modules/sys_times-tests: New modules.
28722         * modules/times, modules/times-tests: Likewise
28723         * m4/sys_times_h.m4: New file.
28724         * lib/sys_times.in.h: Likewise
28725         * lib/times.c: Likewise.
28726         * tests/test-sys_times.c: Likewise.
28727         * tests/test-times.c: Likewise.
28728         * doc/posix-headers/sys_times.texi: Update.
28729         * doc/posix-functions/times.texi: Update.
28730
28731 2008-10-28  Jim Meyering  <meyering@redhat.com>
28732
28733         * modules/tempname (Depends-on): Add lstat.
28734
28735         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
28736
28737 2008-10-28  Simon Josefsson  <simon@josefsson.org>
28738
28739         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
28740         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
28741         using idiom used elsewhere in gnulib.
28742
28743 2008-10-27  Jim Meyering  <meyering@redhat.com>
28744
28745         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
28746
28747 2008-10-27  Simon Josefsson  <simon@josefsson.org>
28748
28749         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
28750         TESTS_ENVIRONMENT, for shell scripts that needs to call built
28751         programs.
28752         * tests/test-argp-2.sh: Use $EXEEXT when needed.
28753
28754 2008-10-27  Simon Josefsson  <simon@josefsson.org>
28755
28756         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
28757
28758 2008-10-27  Bruno Haible  <bruno@clisp.org>
28759
28760         * tests/test-lstat.c: Include <stdio.h>.
28761
28762 2008-10-27  Simon Josefsson  <simon@josefsson.org>
28763
28764         * modules/lstat-tests: New module.
28765         * tests/test-lstat.c: New file.
28766
28767 2008-10-26  Jim Meyering  <meyering@redhat.com>
28768
28769         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
28770
28771 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28772             Bruno Haible  <bruno@clisp.org>
28773
28774         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
28775         * modules/configmake (Include): Add a note that the include must come
28776         after all system headers.
28777         * lib/javaversion.c: Include configmake.h after all other includes.
28778
28779 2008-10-26  Bruno Haible  <bruno@clisp.org>
28780
28781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
28782         HAVE_STRUCT_RANDOM_DATA to 1.
28783         (gl_STDLIB_H): Simplify.
28784
28785 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28786
28787         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
28788         substitute HAVE_STRUCT_RANDOM_DATA.
28789         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
28790         random_data.
28791         * modules/stdlib (Makefile.am): Substitute
28792         HAVE_STRUCT_RANDOM_DATA.
28793
28794 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28795
28796         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
28797         * doc/gnulib-intro.texi (Copyright): Likewise.
28798
28799 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28800
28801         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
28802         findings.
28803
28804 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
28805             Bruno Haible  <bruno@clisp.org>
28806
28807         * lib/unistd.in.h: Include <winsock2.h>.
28808         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
28809         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
28810         Provide dummy declarations.
28811         (gethostname): Override.
28812         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
28813         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
28814         gl_PREREQ_SYS_H_WINSOCK2.
28815         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
28816         * doc/posix-functions/gethostname.texi: More details.
28817
28818 2008-10-25  Bruno Haible  <bruno@clisp.org>
28819
28820         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28821         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
28822         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
28823
28824         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
28825         here ...
28826         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
28827         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
28828         gl_UNISTD_H_DEFAULTS.
28829
28830 2008-10-25  Eric Blake  <ebb9@byu.net>
28831
28832         signbit: avoid spurious compiler failure
28833         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
28834         declarations inside function.
28835
28836 2008-10-24  Simon Josefsson  <simon@josefsson.org>
28837             Bruno Haible  <bruno@clisp.org>
28838
28839         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
28840         * modules/random_r (Depends-on): Add stdint.
28841
28842 2008-10-24  Bruno Haible  <bruno@clisp.org>
28843
28844         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
28845         Eggert.
28846         * modules/strerror (License): Likewise.
28847
28848 2008-10-24  Jim Meyering  <meyering@redhat.com>
28849
28850         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
28851         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
28852
28853 2008-10-24  Eric Blake  <ebb9@byu.net>
28854
28855         getgroups: fix compilation when getgroups is available
28856         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
28857         but with <config.h> override of getgroups disabled.
28858
28859 2008-10-24  Simon Josefsson  <simon@josefsson.org>
28860
28861         * doc/gnulib.texi (Header files): Add note about C++ problems.
28862         Explained by Bruno Haible <bruno@clisp.org>.
28863
28864 2008-10-23  Bruno Haible  <bruno@clisp.org>
28865
28866         Define a dummy SA_NODEFER macro on Interix.
28867         * lib/signal.in.h (SA_NODEFER): Define fallback.
28868         Reported by Aleksey Cheusov <cheusov@tut.by> via
28869         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
28870
28871 2008-10-23  Bruno Haible  <bruno@clisp.org>
28872
28873         * modules/freadahead (License): Change to LGPLv2+.
28874         Suggested by Simon Josefsson.
28875
28876 2008-10-23  Jim Meyering  <meyering@redhat.com>
28877
28878         random_r: new module
28879         * modules/random_r: New file.
28880         * m4/random_r.m4: New file.
28881         * lib/random_r.c: New file, from glibc.
28882         * modules/random_r-tests: New file.
28883         * tests/test-random_r.c: New file.
28884         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
28885          Declare.
28886         (RAND_MAX): Define.
28887         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
28888         * modules/stdlib: Substitute them, too.
28889         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
28890         * doc/glibc-functions/initstate_r.texi: Mention the new module.
28891         * doc/glibc-functions/random_r.texi: Likewise.
28892         * doc/glibc-functions/setstate_r.texi: Likewise.
28893         * doc/glibc-functions/srandom_r.texi: Likewise.
28894         * config/srclist.txt: Mention it.
28895
28896 2008-10-23  David Lutterkort  <lutter@redhat.com>
28897
28898         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
28899         link requirement
28900
28901 2008-10-23  Jim Meyering  <meyering@redhat.com>
28902
28903         selinux-h: mark parameters of stub functions as intentionally unused
28904         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
28905         * lib/se-context.in.h: Likewise.
28906
28907 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28908
28909         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
28910
28911 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28912
28913         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
28914
28915 2008-10-22  Eric Blake  <ebb9@byu.net>
28916
28917         glthread/thread: avoid compiler warning
28918         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
28919         Add unreachable abort to silence compiler.
28920
28921 2008-10-22  Eric Blake  <ebb9@byu.net>
28922
28923         netdb: also supply struct addrinfo for cygwin 1.5.x
28924         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
28925         older cygwin.
28926         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
28927         cygwin.
28928         * doc/posix-headers/netdb.texi (netdb.h): Document this.
28929
28930 2008-10-22  Bruno Haible  <bruno@clisp.org>
28931
28932         * users.txt: Update entry about pspp.
28933
28934 2008-10-21  Bruno Haible  <bruno@clisp.org>
28935
28936         Simplification.
28937         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
28938         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
28939
28940         Simplification.
28941         * lib/ioctl.c (ioctl): Don't undefine.
28942         * lib/socket.c (socket): Don't undefine.
28943
28944         Remove unused module indicator macros.
28945         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
28946         GNULIB_$1 as a C macro.
28947
28948         * doc/posix-functions/close.texi: Undo last change.
28949         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
28950         Windows platforms.
28951
28952 2008-10-21  Bruno Haible  <bruno@clisp.org>
28953
28954         Add gethostname() declaration to <unistd.h>.
28955         * lib/unistd.in.h (gethostname): New declaration.
28956         * lib/gethostname.c: Include <unistd.h>.
28957         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
28958         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
28959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
28960         and HAVE_GETHOSTNAME.
28961         * modules/gethostname (Depends-on): Add unistd.
28962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28963         (Include): Specify <unistd.h>.
28964         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
28965         HAVE_GETHOSTNAME.
28966         * tests/test-gethostname.c: Include <unistd.h> first.
28967
28968 2008-10-21  Bruno Haible  <bruno@clisp.org>
28969
28970         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
28971         * modules/select-tests (Depends-on): Likewise.
28972         Reported by Simon Josefsson.
28973
28974 2008-10-21  Simon Josefsson  <simon@josefsson.org>
28975
28976         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
28977         * lib/accept.c: New file, based on winsock.c.
28978         * lib/bind.c: New file, based on winsock.c.
28979         * lib/connect.c: New file, based on winsock.c.
28980         * lib/getpeername.c: New file, based on winsock.c.
28981         * lib/getsockname.c: New file, based on winsock.c.
28982         * lib/getsockopt.c: New file, based on winsock.c.
28983         * lib/ioctl.c: New file, based on winsock.c.
28984         * lib/listen.c: New file, based on winsock.c.
28985         * lib/recv.c: New file, based on winsock.c.
28986         * lib/recvfrom.c: New file, based on winsock.c.
28987         * lib/send.c: New file, based on winsock.c.
28988         * lib/sendto.c: New file, based on winsock.c.
28989         * lib/setsockopt.c: New file, based on winsock.c.
28990         * lib/shutdown.c: New file, based on winsock.c.
28991         * lib/socket.c: New file, based on winsock.c.
28992         * lib/w32sock.h: New file, based on winsock.c.
28993         * lib/winsock.c: Remove file.
28994         * modules/accept: Likewise.
28995         * modules/bind: Likewise.
28996         * modules/connect: Likewise.
28997         * modules/getpeername: Likewise.
28998         * modules/getsockname: Likewise.
28999         * modules/getsockopt: Likewise.
29000         * modules/ioctl: Likewise.
29001         * modules/listen: Likewise.
29002         * modules/recv: Likewise.
29003         * modules/recvfrom: Likewise.
29004         * modules/send: Likewise.
29005         * modules/sendto: Likewise.
29006         * modules/setsockopt: Likewise.
29007         * modules/shutdown: Likewise.
29008         * modules/socket: Use socket.c instead of winsock.c.
29009         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29010         * doc/posix-functions/accept.texi: Doc fix.
29011         * doc/posix-functions/bind.texi: Doc fix.
29012         * doc/posix-functions/close.texi: Doc fix.
29013         * doc/posix-functions/connect.texi: Doc fix.
29014         * doc/posix-functions/getpeername.texi: Doc fix.
29015         * doc/posix-functions/getsockname.texi: Doc fix.
29016         * doc/posix-functions/getsockopt.texi: Doc fix.
29017         * doc/posix-functions/ioctl.texi: Doc fix.
29018         * doc/posix-functions/listen.texi: Doc fix.
29019         * doc/posix-functions/recv.texi: Doc fix.
29020         * doc/posix-functions/recvfrom.texi: Doc fix.
29021         * doc/posix-functions/send.texi: Doc fix.
29022         * doc/posix-functions/sendto.texi: Doc fix.
29023         * doc/posix-functions/setsockopt.texi: Doc fix.
29024         * doc/posix-functions/shutdown.texi: Doc fix.
29025         * doc/posix-functions/socket.texi: Doc fix.
29026
29027 2008-10-20  Bruno Haible  <bruno@clisp.org>
29028
29029         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29030         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29031         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29032         as an alias for SIGABRT.
29033         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29034         (sigaction): Map it to SIGABRT.
29035         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29036
29037 2008-10-20  Bruno Haible  <bruno@clisp.org>
29038
29039         * lib/fts.c: Don't include lstat.h.
29040         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29041
29042         Move the lstat() declaration to <sys/stat.h>.
29043         * lib/lstat.h: Remove file.
29044         * lib/sys_stat.in.h: Add special invocation convention.
29045         (lstat): New declaration.
29046         * lib/lstat.c (orig_lstat): New function.
29047         (rpl_lstat): Use orig_lstat instead of lstat.
29048         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
29049         AC_C_INLINE. Set REPLACE_LSTAT.
29050         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
29051         and REPLACE_LSTAT.
29052         * modules/lstat (Files): Remove lib/lstat.h.
29053         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29054         (Include): Specify <sys/stat.h> instead of lstat.h.
29055         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
29056         REPLACE_LSTAT.
29057         * NEWS: Mention the change.
29058
29059 2008-10-20  Bruno Haible  <bruno@clisp.org>
29060
29061         * modules/posix_spawn-tests: New file.
29062         * tests/test-posix_spawn3.c: New file.
29063
29064 2008-10-20  Bruno Haible  <bruno@clisp.org>
29065
29066         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
29067         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29068         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
29069         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29070         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
29071
29072 2008-10-20  Bruno Haible  <bruno@clisp.org>
29073
29074         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
29075         of posix_spawn on AIX 5.3.
29076
29077 2008-10-20  Bruno Haible  <bruno@clisp.org>
29078
29079         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
29080
29081 2008-10-20  Bruno Haible  <bruno@clisp.org>
29082
29083         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
29084         of AC_LANG_PROGRAM.
29085
29086 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29087
29088         * lib/netdb.in.h: Don't define GNU specific constants until they
29089         are supported or needed.  Reported by Bruno Haible
29090         <bruno@clisp.org>.
29091
29092 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29093
29094         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
29095
29096 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29097
29098         * lib/getaddrinfo.h: Remove file.
29099         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
29100         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
29101         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
29102         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
29103         * modules/netdb: Substitute GNULIB_GETADDRINFO.
29104         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
29105         * tests/test-getaddrinfo.c: Likewise.
29106         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
29107         * NEWS: Mention change.
29108
29109 2008-10-19  Bruno Haible  <bruno@clisp.org>
29110
29111         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
29112
29113 2008-10-19  Bruno Haible  <bruno@clisp.org>
29114
29115         * lib/wait-process.c: Include simply <sys/wait.h>.
29116         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
29117         WIFSTOPPED): Remove fallback definitions.
29118         * modules/wait-process (Depends-on): Add sys_wait.
29119
29120         New module 'sys_wait'.
29121         * modules/sys_wait: New file.
29122         * lib/sys_wait.in.h: New file, partially copied from
29123         lib/wait-process.c.
29124         * m4/sys_wait_h.m4: New file.
29125         * doc/posix-headers/sys_wait.texi: Mention the new module.
29126
29127 2008-10-19  Bruno Haible  <bruno@clisp.org>
29128
29129         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
29130
29131 2008-10-19  Bruno Haible  <bruno@clisp.org>
29132
29133         Assume that waitpid() fills an 'int' status, not a 'union wait'.
29134         * lib/wait-process.c (WAIT_T): Remove type.
29135         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
29136         (wait_subprocess): Update.
29137
29138 2008-10-19  Bruno Haible  <bruno@clisp.org>
29139
29140         New module 'atoll'.
29141         * modules/atoll: New file.
29142         * lib/stdlib.in.h (atoll): New declaration.
29143         * lib/atoll.c: New file, from glibc with modifications.
29144         * m4/atoll.m4: New file.
29145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29146         HAVE_ATOLL.
29147         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
29148         * doc/posix-functions/atoll.texi: Mention the new module.
29149
29150 2008-10-19  Bruno Haible  <bruno@clisp.org>
29151
29152         Add strtoull() declaration to <stdlib.h>.
29153         * lib/stdlib.in.h (strtoull): New declaration.
29154         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29155         Set HAVE_STRTOULL.
29156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
29157         HAVE_STRTOULL.
29158         * modules/strtoull (Depends-on): Add stdlib.
29159         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29160         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
29161         HAVE_STRTOULL.
29162
29163 2008-10-19  Bruno Haible  <bruno@clisp.org>
29164
29165         Add strtoll() declaration to <stdlib.h>.
29166         * lib/stdlib.in.h (strtoll): New declaration.
29167         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29168         Set HAVE_STRTOLL.
29169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
29170         HAVE_STRTOLL.
29171         * modules/strtoll (Depends-on): Add stdlib.
29172         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29173         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
29174
29175 2008-10-19  Bruno Haible  <bruno@clisp.org>
29176
29177         * modules/bcopy (Depends-on): Add strings.
29178         (Include): Specify <strings.h>.
29179
29180 2008-10-19  Bruno Haible  <bruno@clisp.org>
29181
29182         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
29183
29184 2008-10-19  Bruno Haible  <bruno@clisp.org>
29185
29186         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
29187         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
29188         mingw.
29189
29190 2008-10-19  Bruno Haible  <bruno@clisp.org>
29191
29192         * lib/atanl.c: Don't include isnanl.h.
29193         * lib/cosl.c: Likewise.
29194         * lib/ldexpl.c: Likewise.
29195         * lib/logl.c: Likewise.
29196         * lib/sinl.c: Likewise.
29197         * lib/sqrtl.c: Likewise.
29198         * lib/tanl.c: Likewise.
29199
29200         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
29201         * lib/isnanf.h: Remove file.
29202         * lib/isnand.h: Remove file.
29203         * lib/isnanl.h: Remove file.
29204         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
29205         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
29206         macros.
29207         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
29208         HAVE_ISNANF, don't define it as a C macro.
29209         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
29210         HAVE_ISNAND, don't define it as a C macro.
29211         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
29212         HAVE_ISNANL, don't define it as a C macro.
29213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
29214         HAVE_ISNAN[FDL].
29215         * modules/isnanf (Files): Remove lib/isnanf.h.
29216         (Depends-on): Add math.
29217         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29218         (Include): Specify <math.h> instead of isnanf.h.
29219         * modules/isnand (Files): Remove lib/isnand.h.
29220         (Depends-on): Add math.
29221         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29222         (Include): Specify <math.h> instead of isnand.h.
29223         * modules/isnanl (Files): Remove lib/isnanl.h.
29224         (Depends-on): Add math.
29225         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29226         (Include): Specify <math.h> instead of isnanl.h.
29227         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
29228         HAVE_ISNAN[FDL].
29229         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
29230         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
29231         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
29232         * NEWS: Mention the change.
29233
29234 2008-10-18  Bruno Haible  <bruno@clisp.org>
29235
29236         Add getusershell(), setusershell(), endusershell() declarations to
29237         <unistd.h>.
29238         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
29239         declarations.
29240         * lib/getusershell.c: Include unistd.h.
29241         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
29242         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29243         HAVE_GETUSERSHELL.
29244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
29245         and HAVE_GETUSERSHELL.
29246         * modules/getusershell (Depends-on): Add unistd, extensions.
29247         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29248         (Include): Specify <unistd.h>.
29249         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
29250         HAVE_GETUSERSHELL.
29251
29252 2008-10-18  Bruno Haible  <bruno@clisp.org>
29253
29254         Add a getloadavg() declaration to <stdlib.h>.
29255         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
29256         getloadavg declaration.
29257         (getloadavg): New declaration.
29258         * lib/getloadavg.c: Include <stdlib.h> first.
29259         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
29260         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
29261         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
29262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
29263         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29264         * modules/getloadavg (Depends-on): Add stdlib, extensions.
29265         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29266         (Include): Specify <stdlib.h>.
29267         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
29268         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29269
29270 2008-10-18  Bruno Haible  <bruno@clisp.org>
29271
29272         * lib/dirchownmod.c: Don't include lchmod.h.
29273
29274         Move the lchmod() declaration to <sys/stat.h>.
29275         * lib/lchmod.h: Remove file.
29276         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
29277         (lchmod): New declaration, moved here from lib/lchown.h.
29278         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
29279         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
29280         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
29281         and HAVE_LCHMOD.
29282         * modules/lchmod (Files): Remove lib/lchmod.h.
29283         (Depends-on): Add sys_stat, extensions.
29284         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29285         (Include): Specify <sys/stat.h> instead of lchmod.h.
29286         * modules/sys_stat (Depends-on): Add link-warning.
29287         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
29288         definition of GL_LINK_WARNING.
29289         * NEWS: Mention the change.
29290
29291 2008-10-18  Bruno Haible  <bruno@clisp.org>
29292
29293         * lib/fchdir.c: Don't include dirfd.h.
29294         * lib/fts.c: Likewise.
29295         * lib/getcwd.c: Likewise.
29296         * lib/glob.c: Likewise.
29297
29298         Move the dirfd() declaration to <dirent.h>.
29299         * lib/dirfd.h: Remove file.
29300         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
29301         (dirfd): New declaration.
29302         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
29303         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
29304         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
29305         HAVE_DECL_DIRFD.
29306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
29307         HAVE_DECL_DIRFD.
29308         * modules/dirfd (Files): Remove lib/dirfd.h.
29309         (Depends-on): Add dirent, extensions.
29310         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
29311         (Include): Specify <dirent.h> instead of dirfd.h.
29312         * modules/dirent (Depends-on): Add link-warning.
29313         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
29314         definition of GL_LINK_WARNING.
29315         * NEWS: Mention the change.
29316
29317 2008-10-18  Bruno Haible  <bruno@clisp.org>
29318
29319         Move the euidaccess() declaration to <unistd.h>.
29320         * lib/euidaccess.h: Remove file.
29321         * lib/unistd.in.h (euidaccess): New declaration.
29322         * lib/euidaccess.c: Don't include euidaccess.h.
29323         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
29324         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
29325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
29326         and HAVE_EUIDACCESS.
29327         * modules/euidaccess (Files): Remove lib/euidaccess.h.
29328         (Depends-on): Add unistd.
29329         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29330         (Include): Specify <unistd.h> instead of euidaccess.h.
29331         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
29332         HAVE_EUIDACCESS.
29333         * NEWS: Mention the change.
29334
29335 2008-10-18  Bruno Haible  <bruno@clisp.org>
29336
29337         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
29338
29339         Move the getdomainname() declaration to <unistd.h>.
29340         * lib/getdomainname.h: Remove file.
29341         * lib/unistd.in.h (getdomainname): New declaration.
29342         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
29343         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29344         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29345         HAVE_GETDOMAINNAME.
29346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29347         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
29348         * modules/getdomainname (Files): Remove lib/getdomainname.h.
29349         (Depends-on): Add unistd, extensions.
29350         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29351         (Includes): Specify <unistd.h> instead of getdomainname.h.
29352         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
29353         HAVE_GETDOMAINNAME.
29354         * NEWS: Mention the change.
29355
29356 2008-10-18  Bruno Haible  <bruno@clisp.org>
29357
29358         * modules/dirent: New file.
29359         * m4/dirent_h.m4: New file.
29360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
29361         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
29362         * modules/fchdir (Files): Remove lib/dirent.in.h.
29363         (Depends-on): Add dirent.
29364         (Makefile.am): Move rules to modules/dirent.
29365         * doc/posix-headers/dirent.texi: Mention the new module.
29366
29367 2008-10-18  Bruno Haible  <bruno@clisp.org>
29368
29369         Avoid -Wunused-parameter warnings in public gnulib header files.
29370         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
29371         macro.
29372         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
29373
29374 2008-10-18  Bruno Haible  <bruno@clisp.org>
29375
29376         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
29377         * doc/glibc-functions/error.texi: Mention the module 'error'.
29378         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
29379         * doc/glibc-functions/getdomainname.texi: Mention the module
29380         'getdomainname'.
29381         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
29382         * doc/glibc-functions/getpagesize.texi: Mention the module
29383         'getpagesize'.
29384         * doc/glibc-functions/getusershell.texi: Mention the module
29385         'getusershell'.
29386         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
29387         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
29388         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
29389         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
29390         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
29391         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
29392         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
29393         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
29394         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
29395         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
29396         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
29397         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
29398         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
29399         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
29400
29401 2008-10-17  Bruno Haible  <bruno@clisp.org>
29402
29403         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
29404         HP-UX and IRIX, use -0.0L.
29405         * tests/test-ceill.c (minus_zero): Likewise.
29406         * tests/test-floorl.c (minus_zero): Likewise.
29407         * tests/test-frexpl.c (minus_zero): Likewise.
29408         * tests/test-isnan.c (minus_zerol): Likewise.
29409         * tests/test-isnanl.h (minus_zero): Likewise.
29410         * tests/test-ldexpl.c (minus_zero): Likewise.
29411         * tests/test-roundl.c (minus_zero): Likewise.
29412         * tests/test-signbit.c (minus_zerol): Likewise.
29413         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29414         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29415         * tests/test-truncl.c (minus_zero): Likewise.
29416         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29417         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29418         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
29419         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29420
29421 2008-10-17  Bruno Haible  <bruno@clisp.org>
29422
29423         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
29424         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
29425         that it gets activated only for gcc >= 3.0.
29426         * lib/dirent.in.h: Likewise.
29427         * lib/errno.in.h: Likewise.
29428         * lib/fcntl.in.h: Likewise.
29429         * lib/float.in.h: Likewise.
29430         * lib/iconv.in.h: Likewise.
29431         * lib/inttypes.in.h: Likewise.
29432         * lib/locale.in.h: Likewise.
29433         * lib/math.in.h: Likewise.
29434         * lib/netdb.in.h: Likewise.
29435         * lib/netinet_in.in.h: Likewise.
29436         * lib/search.in.h: Likewise.
29437         * lib/signal.in.h: Likewise.
29438         * lib/spawn.in.h: Likewise.
29439         * lib/stdarg.in.h: Likewise.
29440         * lib/stdint.in.h: Likewise.
29441         * lib/stdio.in.h: Likewise.
29442         * lib/stdlib.in.h: Likewise.
29443         * lib/string.in.h: Likewise.
29444         * lib/strings.in.h: Likewise.
29445         * lib/sys_file.in.h: Likewise.
29446         * lib/sys_ioctl.in.h: Likewise.
29447         * lib/sys_select.in.h: Likewise.
29448         * lib/sys_socket.in.h: Likewise.
29449         * lib/sys_stat.in.h: Likewise.
29450         * lib/sys_time.in.h: Likewise.
29451         * lib/sysexits.in.h: Likewise.
29452         * lib/time.in.h: Likewise.
29453         * lib/unistd.in.h: Likewise.
29454         * lib/wchar.in.h: Likewise.
29455         * lib/wctype.in.h: Likewise.
29456         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29457
29458 2008-10-17  Jim Meyering  <meyering@redhat.com>
29459
29460         ignore-value: don't depend on inline module
29461         * modules/ignore-value (Depends-on): Remove 'inline'.
29462         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
29463         Suggestion from Bruno Haible.
29464
29465 2008-10-17  Bruno Haible  <bruno@clisp.org>
29466
29467         New implementation of condition variables for Win32.
29468         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
29469         (gl_linked_waitqueue_t): New type.
29470         (gl_cond_t): Use it.
29471         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
29472         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
29473         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
29474         (glthread_cond_init_func, glthread_cond_wait_func,
29475         glthread_cond_timedwait_func, glthread_cond_signal_func,
29476         glthread_cond_broadcast_func, glthread_cond_destroy_func):
29477         Reimplemented on the basis of gl_linked_waitqueue_t.
29478         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
29479         gl_waitqueue_t.
29480         (gl_rwlock_t): Update.
29481         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
29482
29483 2008-10-17  Simon Josefsson  <simon@josefsson.org>
29484
29485         * modules/recvfrom (Depends-on): Add dependency on getpeername.
29486         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29487
29488 2008-10-17  Jim Meyering  <meyering@redhat.com>
29489
29490         ignore-value: new module
29491         * modules/ignore-value: New file.
29492         * lib/ignore-value.h: New file.
29493         * MODULES.html.sh (Compiler warning management): New section,
29494         just for this module.  More to come.
29495
29496 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29497
29498         open-safer.c: avoid 'signed and unsigned in conditional...' warning
29499         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
29500         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
29501
29502 2008-10-16  Jim Meyering  <meyering@redhat.com>
29503
29504         openat-die.c: avoid 'no previous prototype' warning
29505         * lib/openat-die.c: Include "openat.h".
29506         Reported by Reuben Thomas <rrt@sc3d.org>.
29507
29508 2008-10-16  Simon Josefsson  <simon@josefsson.org>
29509
29510         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
29511         * lib/netdb.in.h: Fix typo.
29512         Reported by Bruno Haible  <bruno@clisp.org>
29513
29514         * lib/netdb.in.h: Include sys/socket.h for platforms without
29515         netdb.h, to get structures like hostent on MinGW.
29516         * modules/netdb (Depends-on): Add sys_socket.
29517
29518 2008-10-15  Simon Josefsson  <simon@josefsson.org>
29519
29520         * modules/netdb, modules/netdb-tests: New file.
29521         * m4/netdb_h.m4: New file.
29522         * lib/netdb.in.h: Add, currently just an empty file pending
29523         definitions.
29524         * tests/test-netdb.c: New file.
29525         * doc/posix-headers/netdb.texi: Mention that we replace it if
29526         needed.
29527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29528         netdb.
29529
29530 2008-10-15  Simon Josefsson  <simon@josefsson.org>
29531
29532         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
29533         with code.
29534
29535 2008-10-13  Bruno Haible  <bruno@clisp.org>
29536
29537         * lib/glthread/cond.c (glthread_cond_wait_func,
29538         glthread_cond_timedwait_func): Add a comment.
29539
29540 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29541
29542         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
29543         * tests/test-select.c: Likewise,
29544
29545 2008-10-13  Bruno Haible  <bruno@clisp.org>
29546
29547         * lib/glthread/cond.c (glthread_cond_wait_func,
29548         glthread_cond_timedwait_func): Fix variable name.
29549         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29550
29551 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
29552
29553         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
29554         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
29555         struct sockaddr.sa_len.
29556         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
29557
29558 2008-10-13  Simon Josefsson  <simon@josefsson.org>
29559
29560         * build-aux/pmccabe2html: Add css and css_url parameters.
29561
29562 2008-10-12  Bruno Haible  <bruno@clisp.org>
29563
29564         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
29565         calling aclx_get.
29566         Reported by Rainer Tammer <tammer@tammer.net>.
29567
29568 2008-10-12  Bruno Haible  <bruno@clisp.org>
29569
29570         Use msvcrt aware primitives for creation/termination of Win32 threads.
29571         * lib/glthread/thread.c: Include <process.h>.
29572         (glthread_create_func): Use _beginthreadex instead of CreateThread.
29573         (wrapper_func): Update signature.
29574         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
29575
29576 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29577             Bruno Haible  <bruno@clisp.org>
29578
29579         Provide a Win32 implementation of the 'cond' module.
29580         * lib/glthread/cond.h [USE_WIN32]: New implementation.
29581         * lib/glthread/cond.c (glthread_cond_init_func,
29582         glthread_cond_wait_func, glthread_cond_timedwait_func,
29583         glthread_cond_signal_func, glthread_cond_broadcast_func,
29584         glthread_cond_destroy_func) [USE_WIN32]: New functions.
29585         * modules/cond (Dependencies): Add gettimeofday.
29586
29587 2008-10-11  Bruno Haible  <bruno@clisp.org>
29588
29589         Make sleep work on older versions of mingw.
29590         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
29591         only whether it exists.
29592         * doc/posix-functions/sleep.texi: Mention the problem with older
29593         versions of mingw.
29594
29595 2008-10-11  Bruno Haible  <bruno@clisp.org>
29596
29597         New module 'shutdown'.
29598         * modules/shutdown: New file.
29599         * lib/sys_socket.in.h (shutdown): New declaration.
29600         * lib/winsock.c (shutdown): New function.
29601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29602         GNULIB_SHUTDOWN.
29603         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
29604         * doc/posix-functions/shutdown.texi: Document the new module.
29605
29606 2008-10-11  Jim Meyering  <meyering@redhat.com>
29607
29608         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
29609
29610 2008-10-11  Bruno Haible  <bruno@clisp.org>
29611
29612         New module 'fclose'.
29613         * modules/fclose: New file.
29614         * lib/stdio.in.h (fclose): New declaration.
29615         * lib/fclose.c: New file.
29616         * m4/fclose.m4: New file.
29617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
29618         REPLACE_FCLOSE.
29619         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
29620         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
29621         REPLACE_FCLOSE.
29622         * modules/close (Depends-on): fclose.
29623         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
29624
29625 2008-10-11  Bruno Haible  <bruno@clisp.org>
29626
29627         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
29628         set errno and don't call _close.
29629
29630 2008-10-10  Bruno Haible  <bruno@clisp.org>
29631
29632         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
29633         ACL, not afterwards. Fixes test failure on Cygwin.
29634
29635 2008-10-09  Ben Pfaff  <blp@gnu.org>
29636
29637         * build-aux/announce-gen: Fix gnulib version related part of usage
29638         message.  Die with a useful error message if no tarballs are
29639         found.
29640
29641 2008-10-10  Jim Meyering  <meyering@redhat.com>
29642
29643         bootstrap: use git's --depth=N option only if it's supported
29644         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
29645         recognize the --depth option.  Reported by Pádraig Brady.
29646
29647 2008-10-09  Bruno Haible  <bruno@clisp.org>
29648
29649         New module 'ioctl'.
29650         * modules/ioctl: New file.
29651         * lib/sys_socket.in.h (ioctl): Remove declaration.
29652         * lib/winsock.c: Include <sys/ioctl.h>.
29653         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
29654         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29655         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
29656         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
29657         * doc/posix-functions/ioctl.texi: Mention the new module.
29658
29659 2008-10-09  Bruno Haible  <bruno@clisp.org>
29660
29661         New module 'sys_ioctl'.
29662         * lib/sys_ioctl.in.h: New file.
29663         * m4/sys_ioctl_h.m4: New file.
29664         * modules/sys_ioctl: New file.
29665         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
29666
29667 2008-10-09  Bruno Haible  <bruno@clisp.org>
29668
29669         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
29670         * lib/winsock.c: Include <stdarg.h>.
29671         (rpl_ioctl): Change to second argument 'int' and then varargs.
29672
29673 2008-10-09  Bruno Haible  <bruno@clisp.org>
29674
29675         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
29676         when the sys_socket module is present and the system has <winsock2.h>.
29677
29678 2008-10-09  Bruno Haible  <bruno@clisp.org>
29679
29680         * doc/posix-functions/close.texi: Mention module 'close' instead of
29681         module 'sys_socket'.
29682
29683 2008-10-09  Bruno Haible  <bruno@clisp.org>
29684
29685         * doc/glibc-headers/sys_ioctl.texi: New file.
29686         * doc/gnulib.texi: Include it.
29687
29688 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29689             Bruno Haible  <bruno@clisp.org>
29690
29691         Combine the two replacements of 'close'.
29692         * lib/sys_socket.in.h (close): Define to a reminder to include
29693         <unistd.h>.
29694         (_gl_close_fd_maybe_socket): New declaration.
29695         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
29696         * lib/winsock.c (close): Remove undefinition.
29697         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
29698         needed for the gnulib module 'close'.
29699         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
29700         define to an error symbol or to a warning, if suitable.
29701         * lib/close.c: Include <sys/socket.h>.
29702         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
29703         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
29704         UNISTD_H_HAVE_WINSOCK2_H.
29705         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
29706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29707         UNISTD_H_HAVE_WINSOCK2_H.
29708         * modules/sys_socket (Files): Add m4/unistd_h.m4.
29709         (configure.ac): Set a module indicator.
29710         (Makefile.am): Substitute GNULIB_CLOSE.
29711         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
29712         * modules/poll-tests (Depends-on): Add close.
29713         * modules/select-tests (Depends-on): Likewise.
29714
29715 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29716             Bruno Haible  <bruno@clisp.org>
29717
29718         New module 'close'.
29719         * modules/close: New file.
29720         * lib/unistd.in.h (close): Move declaration out of the
29721         FCHDIR_REPLACEMENT scope.
29722         (_gl_unregister_fd): New declaration.
29723         * lib/close.c: New file.
29724         * lib/fchdir.c (rpl_close): Remove function.
29725         * m4/close.m4: New file.
29726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
29727         close.
29728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
29729         REPLACE_CLOSE.
29730         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
29731         REPLACE_CLOSE.
29732         * modules/fchdir (Depends-on): Add close.
29733
29734 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29735             Bruno Haible  <bruno@clisp.org>
29736
29737         * lib/fcntl.in.h (open): Simplify conditionals.
29738         (_gl_register_fd): New declaration.
29739         * lib/fchdir.c (rpl_open): Remove function.
29740         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
29741         also.
29742         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
29743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
29744         open.
29745
29746 2008-10-09  Jim Meyering  <meyering@redhat.com>
29747
29748         GNUmakefile: use the more name-space-friendly "_version"
29749         * top/GNUmakefile (_dummy): Update.
29750         (_version): Rename from "version".
29751
29752 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29753             Bruno Haible  <bruno@clisp.org>
29754
29755         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
29756         rpl_close.
29757         (_gl_register_fd): New function, extracted from rpl_open.
29758         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
29759         (rpl_open, rpl_opendir): Use _gl_register_fd.
29760
29761 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29762
29763         Fix organization of 'open' replacement.
29764         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
29765         (gl_FUNC_OPEN): Use it.
29766         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
29767
29768 2008-10-08  Bruno Haible  <bruno@clisp.org>
29769
29770         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
29771
29772 2008-10-08  Simon Josefsson  <simon@josefsson.org>
29773
29774         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
29775         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
29776         listen).
29777
29778 2008-10-08  Eric Blake  <ebb9@byu.net>
29779
29780         GNUmakefile: add 'make version' target
29781         * top/GNUmakefile (_curr-ver): Split version update rules...
29782         (version): ...into a target.
29783
29784 2008-10-07  Bruno Haible  <bruno@clisp.org>
29785
29786         Use a more portable replacement expression for -0.0L.
29787         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
29788         instead of -0.0L. Fix m4 quotation.
29789
29790         * tests/test-signbit.c: Include <float.h>.
29791         (minus_zero): New variable.
29792         (test_signbitl): Use minus_zero instead of -zero.
29793         * modules/signbit-tests (Depends-on): Add float.
29794
29795         * tests/test-ceill.c: Include <float.h>.
29796         (zero): Remove variable.
29797         (minus_zero): New variable.
29798         (main): Use minus_zero instead of -zero.
29799         * modules/ceill-tests (Depends-on): Add float.
29800
29801         * tests/test-floorl.c: Include <float.h>.
29802         (zero): Remove variable.
29803         (minus_zero): New variable.
29804         (main): Use minus_zero instead of -zero.
29805         * modules/floorl-tests (Depends-on): Add float.
29806
29807         * tests/test-roundl.c: Include <float.h>.
29808         (zero): Remove variable.
29809         (minus_zero): New variable.
29810         (main): Use minus_zero instead of -zero.
29811         * modules/roundl-tests (Depends-on): Add float.
29812
29813         * tests/test-truncl.c: Include <float.h>.
29814         (zero): Remove variable.
29815         (minus_zero): New variable.
29816         (main): Use minus_zero instead of -zero.
29817         * modules/truncl-tests (Depends-on): Add float.
29818
29819         * tests/test-frexpl.c (zero): Remove variable.
29820         (minus_zero): New variable.
29821         (main): Use minus_zero instead of -zero.
29822         * modules/frexpl-tests (Depends-on): Add float.
29823
29824         * tests/test-isnan.c (zerol): Remove variable.
29825         (minus_zerol): New variable.
29826         (test_long_double): Use minus_zerol instead of -zerol.
29827         * modules/isnan-tests (Depends-on): Add float.
29828
29829         * tests/test-isnanl.h (zero): Remove variable.
29830         (minus_zero): New variable.
29831         (main): Use minus_zero instead of -zero.
29832         * modules/isnanl-nolibm-tests (Depends-on): Add float.
29833         * modules/isnanl-tests (Depends-on): Add float.
29834
29835         * tests/test-ldexpl.c (zero): Remove variable.
29836         (minus_zero): New variable.
29837         (main): Use minus_zero instead of -zero.
29838         * modules/ldexpl-tests (Depends-on): Add float.
29839
29840         * tests/test-snprintf-posix.h (zerol): Remove variable.
29841         (minus_zerol): New variable.
29842         (test_function): Use minus_zerol instead of -zerol.
29843         * modules/snprintf-posix-tests (Depends-on): Add float.
29844         * modules/vsnprintf-posix-tests (Depends-on): Add float.
29845
29846         * tests/test-sprintf-posix.h (zerol): Remove variable.
29847         (minus_zerol): New variable.
29848         (test_function): Use minus_zerol instead of -zerol.
29849         * modules/sprintf-posix-tests (Depends-on): Add float.
29850         * modules/vsprintf-posix-tests (Depends-on): Add float.
29851
29852         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
29853         (minus_zerol): New variable.
29854         (test_function): Use minus_zerol instead of -zerol.
29855         * modules/vasnprintf-posix-tests (Depends-on): Add float.
29856
29857         * tests/test-vasprintf-posix.c (zerol): Remove variable.
29858         (minus_zerol): New variable.
29859         (test_function): Use minus_zerol instead of -zerol.
29860         * modules/vasprintf-posix-tests (Depends-on): Add float.
29861
29862 2008-10-07  Simon Josefsson  <simon@josefsson.org>
29863
29864         * MODULES.html.sh (Support for building documentation): Mention
29865         pmccabe2html.  Sort entries.
29866
29867         Add pmccabe2html module, from gnupdf.
29868         * build-aux/pmccabe.css: New file.
29869         * build-aux/pmccabe2html: New file.
29870         * m4/pmccabe2html.m4: New file.
29871         * modules/pmccabe2html: New file.
29872
29873 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
29874
29875         flock: new module
29876         * MODULES.html.sh: Add to list of modules.
29877         * lib/flock.c: flock implementation for Windows and Unix systems
29878         which have fcntl.
29879         * doc/glibc-functions/flock.texi: Update documentation.
29880         * lib/sys_file.in.h: <sys/file.h> header file.
29881         * m4/flock.m4: M4 macros.
29882         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
29883         * modules/flock: flock module.
29884         * modules/flock-tests: flock tests module.
29885         * modules/sys_file: sys/file.h module.
29886         * tests/test-flock.c: test suite for flock.
29887
29888 2008-10-06  Jim Meyering  <meyering@redhat.com>
29889
29890         bootstrap: check for LT_INIT more portably still ;-)
29891         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
29892         Spotted by Bruno Haible.
29893
29894 2008-10-06  Eric Blake  <ebb9@byu.net>
29895
29896         test-signbit: avoid tripping Irix cc bug on -0.0L
29897         * tests/test-signbit.c (minus_zerol): Delete, and replace with
29898         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
29899         entire testsuite consistent and avoids an Irix 6.2 bug.
29900
29901 2008-10-05  Bruno Haible  <bruno@clisp.org>
29902             Jim Meyering  <jim@meyering.net>
29903
29904         Add an option for ignoring EPIPE during close_stdout.
29905         * lib/closeout.h: Include <stdbool.h>.
29906         (close_stdout_set_ignore_EPIPE): New declaration.
29907         * lib/closeout.c: Include <stdbool.h>.
29908         (ignore_EPIPE): New variable.
29909         (close_stdout_set_ignore_EPIPE): New function.
29910         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
29911         * lib/close-stream.c (close_stream): Mention the possible EPIPE
29912         failure.
29913         * modules/closeout (Depends-on): Add stdbool.
29914
29915 2008-10-05  Bruno Haible  <bruno@clisp.org>
29916
29917         * modules/accept: New file.
29918         * modules/bind: New file.
29919         * modules/connect: New file.
29920         * modules/getpeername: New file.
29921         * modules/getsockname: New file.
29922         * modules/getsockopt: New file.
29923         * modules/listen: New file.
29924         * modules/recv: New file.
29925         * modules/recvfrom: New file.
29926         * modules/send: New file.
29927         * modules/sendto: New file.
29928         * modules/setsockopt: New file.
29929         * modules/socket: New file.
29930         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
29931         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29932         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
29933         the particular module is requested. Add a link warning when the
29934         particular module is not requested.
29935         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
29936         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
29937         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
29938         the particular module is requested.
29939         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
29940         gl_SYS_SOCKET_H_DEFAULTS): New macros.
29941         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
29942         * modules/sys_socket (Depends-on): Add link-warning.
29943         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
29944         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
29945         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
29946         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
29947         GL_LINK_WARNING.
29948         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
29949         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
29950         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
29951         * doc/posix-functions/getpeername.texi: Mention the new module
29952         'getpeername'.
29953         * doc/posix-functions/getsockname.texi: Mention the new module
29954         'getsockname'.
29955         * doc/posix-functions/getsockopt.texi: Mention the new module
29956         'getsockopt'.
29957         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
29958         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
29959         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
29960         * doc/posix-functions/send.texi: Mention the new module 'send'.
29961         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
29962         * doc/posix-functions/setsockopt.texi: Mention the new module
29963         'setsockopt'.
29964         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
29965         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
29966         listen, connect, accept.
29967         * modules/select-tests (Depends-on): Likewise.
29968
29969 2008-10-05  Bruno Haible  <bruno@clisp.org>
29970
29971         * lib/winsock.c (strerror): Remove unused #undef.
29972         (rpl_close): Remove unused local variable.
29973
29974         * modules/sys_socket (Depends-on); Add errno.
29975
29976 2008-10-05  Bruno Haible  <bruno@clisp.org>
29977
29978         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
29979         (select): Add a link warning when the 'select' module is not used.
29980         * modules/sys_select (Depends-on): Add link-warning.
29981         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
29982         Suggested by Paolo Bonzini.
29983
29984 2008-10-05  Jim Meyering  <meyering@redhat.com>
29985
29986         bootstrap: check for LT_INIT more portably
29987         * build-aux/bootstrap: Avoid using grep -E, since it's not
29988         portable enough.  Suggestion from Bruno Haible.
29989
29990 2008-10-05  Bruno Haible  <bruno@clisp.org>
29991
29992         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
29993         as being fixed by gnulib.
29994
29995 2008-10-05  Bruno Haible  <bruno@clisp.org>
29996
29997         * modules/select-tests: New file, mostly copied from
29998         modules/sys_select-tests.
29999         * tests/test-select.c: New file, mostly copied from
30000         tests/test-sys_select.c.
30001         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30002         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30003         (Makefile.am): Remove test_sys_select_LDADD.
30004
30005         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30006         to an undefined symbol, for an error message.
30007         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30008         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30009         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30010         winsock-select.c here.
30011         * modules/sys_select (Files): Remove lib/winsock-select.c.
30012         (Depends-on): Remove alloca.
30013         (Makefile.am): Substitute GNULIB_SELECT.
30014         * modules/select: New file.
30015         * doc/posix-functions/select.texi: Update.
30016
30017 2008-10-05  Bruno Haible  <bruno@clisp.org>
30018
30019         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30020         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30021         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30022         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30023         getdtablesize.
30024         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30025         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30026
30027 2008-10-05  Bruno Haible  <bruno@clisp.org>
30028
30029         * modules/getdtablesize-tests: New file.
30030         * tests/test-getdtablesize.c: New file.
30031
30032         New module 'getdtablesize'.
30033         * lib/unistd.in.h (getdtablesize): New declaration.
30034         * lib/getdtablesize.c: New file.
30035         * m4/getdtablesize.m4: New file.
30036         * modules/getdtablesize: New file.
30037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30038         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30039         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30040         HAVE_GETDTABLESIZE.
30041         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30042
30043 2008-10-05  Bruno Haible  <bruno@clisp.org>
30044
30045         * modules/sched (Makefile.am): Fix typo.
30046         Reported by Simon Josefsson.
30047
30048 2008-10-05  Jim Meyering  <meyering@redhat.com>
30049
30050         bootstrap: check for LT_INIT, too
30051         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
30052         are deprecated.  Suggestion from Ralf Wildenhues.
30053
30054 2008-10-05  Bruno Haible  <bruno@clisp.org>
30055
30056         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
30057         overriding them by ours.
30058         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
30059
30060 2008-10-05  Jim Meyering  <meyering@redhat.com>
30061
30062         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
30063         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
30064         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
30065
30066 2008-10-04  Bruno Haible  <bruno@clisp.org>
30067
30068         * modules/dup2 (License): Change to LGPLv2+.
30069         * modules/sleep (License): Likewise.
30070         * modules/perror (License): Likewise.
30071         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
30072         Blake.
30073         * modules/signal (License): Likewise.
30074         * modules/sigprocmask (License): Likewise.
30075         * modules/raise (License): Change to LGPLv2+, with approval by Jim
30076         Meyering.
30077
30078 2008-10-04  Bruno Haible  <bruno@clisp.org>
30079
30080         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
30081         Reported by Rainer Tammer <tammer@tammer.net>.
30082
30083 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
30084             Bruno Haible  <bruno@clisp.org>
30085
30086         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
30087         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
30088         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
30089
30090 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
30091
30092         filevercmp: new module
30093         * lib/filevercmp.h: New function filevercmp comparing version strings.
30094         * lib/filevercmp.c: Implementation of filevercmp function.
30095         * modules/filevercmp: Module metadata.
30096         * tests/test-filevercmp.c: Unit test for new module.
30097         * modules/filevercmp-tests: Unit test metadata.
30098         * MODULES.html.sh: Add filevercmp module.
30099
30100 2008-10-03  Bruno Haible  <bruno@clisp.org>
30101
30102         * lib/c-ctype.h: Add comment.
30103         Reported by Jim Meyering.
30104
30105 2008-10-02  Bruno Haible  <bruno@clisp.org>
30106
30107         * modules/posix_spawn-internal (Depends-on): Add 'open'.
30108
30109 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30110
30111         * build-aux/bootstrap: Allow renaming bootstrap, and change the
30112         name of bootstrap.conf accordingly.
30113
30114 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30115
30116         * build-aux/bootstrap: Install git-merge-changelog configuration
30117         items into .gitconfig if needed.
30118
30119 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30120
30121         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
30122         git repository, and initialize/update it accordingly.
30123
30124 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
30125
30126         * modules/fsync-tests: New file.
30127         * tests/test-fsync.c: New file.
30128
30129         New module 'fsync'.
30130         * lib/fsync.c: New file.
30131         * m4/fsync.m4: New file.
30132         * modules/fsync: New file.
30133         * lib/unistd.in.h (fsync): New declaration.
30134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
30135         GNULIB_FSYNC and HAVE_FSYNC.
30136         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
30137         * MODULES.html.sh (posix_functions): Add fsync.
30138         * doc/posix-functions/fsync.texi: Mention the new module.
30139
30140 2008-10-02  Jim Meyering  <meyering@redhat.com>
30141
30142         fts.c: sync with similar code from coreutils' remove.c
30143         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
30144         Guard also with "#if defined __linux__", since for now at least,
30145         this code is Linux-kernel-specific.
30146
30147 2008-10-02  Jim Meyering  <meyering@redhat.com>
30148
30149         fts: bug fixes
30150         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
30151         Include <sys/vfs.h>, not <sys/statfs.h>.
30152
30153         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
30154         Include <sys/vfs.h>, not <sys/statfs.h>.
30155
30156 2008-10-01  Bruno Haible  <bruno@clisp.org>
30157
30158         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
30159         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
30160         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
30161         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
30162         * doc/posix-functions/posix_spawnp.texi: Likewise.
30163         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
30164         whether posix_spawn actually works.
30165         * m4/pipe.m4 (gl_PIPE): Likewise.
30166         * modules/execute (Files): Add m4/posix_spawn.m4.
30167         * modules/pipe (Files): Add m4/posix_spawn.m4.
30168         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
30169
30170 2008-10-01  Jim Meyering  <meyering@redhat.com>
30171
30172         remove trailing spaces
30173         * NEWS: Likewise.
30174         * lib/poll.c (poll): Likewise.
30175         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
30176         * lib/winsock.c (rpl_close): Likewise.
30177         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
30178         * modules/yield: Likewise.
30179         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
30180         * tests/test-sys_select.c (connect_to_socket): Likewise.
30181
30182         fts.c: adjust a new interface to be more generally useful
30183         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
30184         (fts_build): Adjust caller.
30185
30186 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30187
30188         * modules/cond-tests: New file.
30189         * tests/test-cond.c: New file.
30190
30191 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30192             Bruno Haible  <bruno@clisp.org>
30193
30194         * modules/cond (Dependencies): Add errno, time.
30195         * lib/glthread/cond.h: Include <time.h>.
30196         (gl_cond_define, gl_cond_define_initialized): Use the same definition
30197         across platforms.
30198
30199 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30200             Bruno Haible  <bruno@clisp.org>
30201
30202         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
30203
30204 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30205             Bruno Haible  <bruno@clisp.org>
30206
30207         * modules/tls-tests (Depends-on): Add thread, yield.
30208         (configure.ac): Remove all checks.
30209         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
30210         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30211         gl_thread_self): Remove definitions. Include glthread/thread.h and
30212         glthread/yield.h instead.
30213         (test_tls): Pass an additional NULL argument to gl_thread_join.
30214
30215 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30216             Bruno Haible  <bruno@clisp.org>
30217
30218         * modules/lock-tests (Depends-on): Add thread, yield.
30219         (configure.ac): Remove all checks.
30220         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
30221         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30222         gl_thread_self): Remove definitions. Include glthread/thread.h and
30223         glthread/yield.h instead.
30224         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
30225         additional NULL argument to gl_thread_join.
30226
30227 2008-09-30  Bruno Haible  <bruno@clisp.org>
30228
30229         Fix the Win32 implementation of the 'thread' module.
30230         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
30231         pointer type.
30232         (gl_thread_self): Invoke gl_thread_self_func.
30233         (gl_thread_self_func): New declaration.
30234         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
30235         (do_init_self_key, init_self_key): New functions.
30236         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
30237         Remove some fields.
30238         (running_threads, running_lock): Remove variables.
30239         (get_current_thread_handle): New function.
30240         (gl_thread_self_func, wrapper_func, glthread_create_func,
30241         glthread_join_func, gl_thread_exit_func): Largely rewritten and
30242         simplified.
30243
30244 2008-09-30  Bruno Haible  <bruno@clisp.org>
30245
30246         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
30247         files.
30248
30249 2008-09-30  Jim Meyering  <meyering@redhat.com>
30250
30251         fts.m4: correct the test for statfs.f_type
30252         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
30253         when checking for statfs.f_type.
30254
30255 2008-09-15  Simon Josefsson  <simon@josefsson.org>
30256
30257         tests: avoid some compiler warnings
30258         * tests/test-memchr.c (main): Pass NULL indirectly.
30259         * tests/test-getdate.c (main): Remove unused variable 'ret'.
30260
30261 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
30262
30263         getdate.y: disallow countable dayshifts like "4 yesterday ago"
30264         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
30265         exactly specified dayshifts.
30266         (dayshift): New rule.
30267         (rel): Add dayshift.
30268         (relative_time_table) [tomorrow, yesterday, today, now]:
30269         Use tDAY_SHIFT in place of tDAY_UNIT.
30270         * tests/test-getdate.c: Add tests for now-disallowed countable
30271         dayshifts, e.g., "4 yesterday ago".
30272
30273 2008-09-29  Bruno Haible  <bruno@clisp.org>
30274
30275         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
30276         * tests/test-posix_spawn1.in.sh: Renamed from
30277         tests/test-posix_spawn.in.sh.
30278         * tests/test-posix_spawn2.c: New file.
30279         * tests/test-posix_spawn2.in.sh: New file.
30280         * modules/posix_spawnp-tests (Files): Update.
30281         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
30282
30283 2008-09-29  Bruno Haible  <bruno@clisp.org>
30284
30285         Propagate effects of putenv/setenv/unsetenv to child processes.
30286         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
30287         * lib/pipe.c (create_pipe): Likewise.
30288
30289 2008-09-29  Bruno Haible  <bruno@clisp.org>
30290
30291         Enable use of shell scripts as executables in mingw.
30292         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
30293         run the program as a shell script.
30294         * lib/pipe.c (create_pipe): Likewise.
30295         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
30296         resulting array.
30297
30298 2008-09-29  Eric Blake  <ebb9@byu.net>
30299
30300         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
30301
30302 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
30303
30304         * doc/posix-functions/accept.texi: Update mingw problems.
30305         * doc/posix-functions/bind.texi: Update mingw problems.
30306         * doc/posix-functions/close.texi: Update mingw problems.
30307         * doc/posix-functions/connect.texi: Update mingw problems.
30308         * doc/posix-functions/getpeername.texi: Update mingw problems.
30309         * doc/posix-functions/getsockname.texi: Update mingw problems.
30310         * doc/posix-functions/getsockopt.texi: Update mingw problems.
30311         * doc/posix-functions/ioctl.texi: Update mingw problems.
30312         * doc/posix-functions/listen.texi: Update mingw problems.
30313         * doc/posix-functions/recv.texi: Update mingw problems.
30314         * doc/posix-functions/recvfrom.texi: Update mingw problems.
30315         * doc/posix-functions/select.texi: Update mingw problems.
30316         * doc/posix-functions/send.texi: Update mingw problems.
30317         * doc/posix-functions/sendto.texi: Update mingw problems.
30318         * doc/posix-functions/setsockopt.texi: Update mingw problems.
30319         * doc/posix-functions/socket.texi: Update mingw problems.
30320
30321 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
30322             Bruno Haible  <bruno@clisp.org>
30323
30324         * lib/sys_select.in.h: Include sys/time.h.
30325         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
30326         * modules/sys_select: Depend on sys_time.
30327         * tests/test-sys_select.c: Test that sys/select.h defines struct
30328         timeval fully.
30329
30330 2008-09-29  Bruno Haible  <bruno@clisp.org>
30331
30332         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
30333         * lib/sys_select.in.h: Likewise.
30334
30335 2008-09-29  Bruno Haible  <bruno@clisp.org>
30336
30337         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
30338
30339 2008-09-29  Bruno Haible  <bruno@clisp.org>
30340
30341         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
30342         Set LIBSOCKET instead of augmenting LIBS.
30343         * modules/sockets (Link): New section.
30344         * modules/sockets-tests (test_sockets_LDADD): New variable.
30345         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
30346         * modules/poll-tests (test_poll_LDADD): New variable.
30347         * NEWS: Document the change.
30348
30349 2008-09-29  Bruno Haible  <bruno@clisp.org>
30350
30351         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
30352         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
30353         ARPA_INET_H directly.
30354         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30355
30356 2008-09-28  Bruno Haible  <bruno@clisp.org>
30357
30358         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
30359         from gl_HEADER_SYS_SOCKET.
30360         (gl_HEADER_SYS_SOCKET): Invoke it.
30361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30362
30363 2008-09-28  Bruno Haible  <bruno@clisp.org>
30364
30365         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
30366         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
30367         Needed on OSF/1 4.0.
30368
30369 2008-09-28  Bruno Haible  <bruno@clisp.org>
30370
30371         Override open more carefully.
30372         * lib/open.c (orig_open): New function.
30373         (rpl_open): Use orig_open instead of open.
30374         * lib/fcntl.in.h: Add special invocation convention.
30375         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
30376         (gl_FUNC_OPEN): Invoke it.
30377
30378         Override freopen more carefully.
30379         * lib/freopen.c (orig_freopen): New function.
30380         (rpl_freopen): Use orig_freopen instead of freopen.
30381         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
30382         (gl_FUNC_FREOPEN): Invoke it.
30383
30384         Override fopen more carefully.
30385         * lib/fopen.c (orig_fopen): New function.
30386         (rpl_fopen): Use orig_fopen instead of fopen.
30387         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
30388         (gl_FUNC_FOPEN): Invoke it.
30389         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
30390
30391 2008-09-28  Bruno Haible  <bruno@clisp.org>
30392
30393         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
30394         SIGPIPE.
30395
30396 2008-09-28  Bruno Haible  <bruno@clisp.org>
30397
30398         * tests/test-sigaction.c (handler, main): Disable the check whether
30399         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
30400         glibc systems with LinuxThreads.
30401
30402 2008-09-28  Bruno Haible  <bruno@clisp.org>
30403
30404         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
30405
30406         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
30407         with AIX xlc.
30408         * lib/fcntl.in.h (open): Likewise.
30409         Reported by Rainer Tammer <tammer@tammer.net>.
30410
30411 2008-09-28  Bruno Haible  <bruno@clisp.org>
30412
30413         * modules/posix_spawnp-tests: New file.
30414         * tests/test-posix_spawn.c: New file.
30415         * tests/test-posix_spawn.in.sh: New file.
30416
30417         New module 'posix_spawnp'.
30418         * modules/posix_spawnp: New file.
30419         * lib/spawnp.c: New file, from GNU libc with modifications.
30420         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
30421
30422         New module 'posix_spawn'.
30423         * modules/posix_spawn: New file.
30424         * lib/spawn.c: New file, from GNU libc with modifications.
30425         * doc/posix-functions/posix_spawn.texi: Mention the new module.
30426
30427         New module 'posix_spawnattr_destroy'.
30428         * modules/posix_spawnattr_destroy: New file.
30429         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
30430         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
30431         module.
30432
30433         New module 'posix_spawnattr_setsigmask'.
30434         * modules/posix_spawnattr_setsigmask: New file.
30435         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
30436         modifications.
30437         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
30438         new module.
30439
30440         New module 'posix_spawnattr_getsigmask'.
30441         * modules/posix_spawnattr_getsigmask: New file.
30442         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
30443         modifications.
30444         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
30445         new module.
30446
30447         New module 'posix_spawnattr_setsigdefault'.
30448         * modules/posix_spawnattr_setsigdefault: New file.
30449         * lib/spawnattr_setdefault.c: New file, from GNU libc with
30450         modifications.
30451         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
30452         new module.
30453
30454         New module 'posix_spawnattr_getsigdefault'.
30455         * modules/posix_spawnattr_getsigdefault: New file.
30456         * lib/spawnattr_getdefault.c: New file, from GNU libc with
30457         modifications.
30458         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
30459         new module.
30460
30461         New module 'posix_spawnattr_setschedpolicy'.
30462         * modules/posix_spawnattr_setschedpolicy: New file.
30463         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
30464         modifications.
30465         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
30466         new module.
30467
30468         New module 'posix_spawnattr_getschedpolicy'.
30469         * modules/posix_spawnattr_getschedpolicy: New file.
30470         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
30471         modifications.
30472         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
30473         new module.
30474
30475         New module 'posix_spawnattr_setschedparam'.
30476         * modules/posix_spawnattr_setschedparam: New file.
30477         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
30478         modifications.
30479         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
30480         new module.
30481
30482         New module 'posix_spawnattr_getschedparam'.
30483         * modules/posix_spawnattr_getschedparam: New file.
30484         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
30485         modifications.
30486         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
30487         new module.
30488
30489         New module 'posix_spawnattr_setpgroup'.
30490         * modules/posix_spawnattr_setpgroup: New file.
30491         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
30492         modifications.
30493         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
30494         module.
30495
30496         New module 'posix_spawnattr_getpgroup'.
30497         * modules/posix_spawnattr_getpgroup: New file.
30498         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
30499         modifications.
30500         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
30501         module.
30502
30503         New module 'posix_spawnattr_setflags'.
30504         * modules/posix_spawnattr_setflags: New file.
30505         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
30506         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
30507         module.
30508
30509         New module 'posix_spawnattr_getflags'.
30510         * modules/posix_spawnattr_getflags: New file.
30511         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
30512         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
30513         module.
30514
30515         New module 'posix_spawnattr_init'.
30516         * modules/posix_spawnattr_init: New file.
30517         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
30518         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
30519         module.
30520
30521         New module 'posix_spawn_file_actions_destroy'.
30522         * modules/posix_spawn_file_actions_destroy: New file.
30523         * lib/spawn_faction_destroy.c: New file, from GNU libc with
30524         modifications.
30525         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
30526         the new module.
30527
30528         New module 'posix_spawn_file_actions_addopen'.
30529         * modules/posix_spawn_file_actions_addopen: New file.
30530         * lib/spawn_faction_addopen.c: New file, from GNU libc with
30531         modifications.
30532         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
30533         the new module.
30534
30535         New module 'posix_spawn_file_actions_adddup2'.
30536         * modules/posix_spawn_file_actions_adddup2: New file.
30537         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
30538         modifications.
30539         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
30540         the new module.
30541
30542         New module 'posix_spawn_file_actions_addclose'.
30543         * modules/posix_spawn_file_actions_addclose: New file.
30544         * lib/spawn_faction_addclose.c: New file, from GNU libc with
30545         modifications.
30546         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
30547         the new module.
30548
30549         New module 'posix_spawn_file_actions_init'.
30550         * modules/posix_spawn_file_actions_init: New file.
30551         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
30552         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
30553         new module.
30554
30555         New module 'posix_spawn-internal'.
30556         * modules/posix_spawn-internal: New file.
30557         * lib/spawn_int.h: New file, from GNU libc with modifications.
30558         * lib/spawni.c: New file, from GNU libc with modifications.
30559         * m4/posix_spawn.m4: New file.
30560
30561         New module 'spawn'.
30562         * modules/spawn: New file.
30563         * lib/spawn.in.h: New file, from GNU libc with modifications.
30564         * m4/spawn_h.m4: New file.
30565         * doc/posix-headers/spawn.texi: Mention the new module.
30566
30567 2008-09-28  Bruno Haible  <bruno@clisp.org>
30568
30569         * modules/sched-tests: New file.
30570         * tests/test-sched.c: New file.
30571
30572         New module 'sched'.
30573         * modules/sched: New file.
30574         * lib/sched.in.h: New file.
30575         * m4/sched_h.m4: New file.
30576         * doc/posix-headers/sched.texi: Mention the new module.
30577
30578 2008-09-27  Eric Blake  <ebb9@byu.net>
30579
30580         Fix previous patch, and tweak references to $0.
30581         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
30582         (func_version, func_gnulib_dir): Don't call this program
30583         gnulib-tool.
30584         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
30585         with using $0 in function.
30586         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
30587         (func_fatal_error): Reuse the name the user invoked us with.
30588
30589 2008-09-27  Bruno Haible  <bruno@clisp.org>
30590
30591         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
30592         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
30593         (gl_ICONV_H): Not here.
30594         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30595         instead of assigning ICONV_H directly.
30596
30597         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
30598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
30599         WCHAR_H directly.
30600
30601 2008-09-27  Bruno Haible  <bruno@clisp.org>
30602
30603         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
30604         * modules/arpa_inet (Depends-on): Add link-warning.
30605         (Makefile.am): Insert the definition of GL_LINK-WARNING.
30606         * modules/unistd (Makefile.am): Likewise.
30607
30608 2008-09-26  Bruno Haible  <bruno@clisp.org>
30609
30610         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
30611         variables.
30612         (func_version): Essentially copied from gnulib-tool.
30613         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
30614         func_readlink): Copied from gnulib-tool.
30615
30616 2008-09-26  Bruno Haible  <bruno@clisp.org>
30617
30618         * gnulib-tool (func_version): Change directory to $gnulib_dir before
30619         invoking git-version-gen.
30620
30621 2008-09-26  Bruno Haible  <bruno@clisp.org>
30622
30623         * posix-modules: Update to directory names changed on 2008-01-19.
30624         Remove commas in output before splitting into words. No more need to
30625         avoid 'ftruncate' since 2007-02-19.
30626
30627 2008-09-26  Bruno Haible  <bruno@clisp.org>
30628
30629         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
30630
30631 2008-09-26  Bruno Haible  <bruno@clisp.org>
30632
30633         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
30634         * modules/fwriteerror (Depends-on): Add errno.
30635
30636 2008-09-26  Bruno Haible  <bruno@clisp.org>
30637
30638         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
30639         * tests/test-vc-list-files-cvs.sh: Likewise.
30640
30641 2008-09-26  Bruno Haible  <bruno@clisp.org>
30642
30643         * doc/posix-headers/sys_resource.texi: Reorder items.
30644
30645 2008-09-26  Jim Meyering  <meyering@redhat.com>
30646
30647         fts: tweak inode comparison function
30648         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
30649         inode numbers, as documented.
30650
30651         fts: sort dirent entries on inode number before traversing
30652         This avoids a quadratic, seek-related performance penalty when
30653         operating on a directory containing many entries (measurable at 10k;
30654         3.5 hours at 2 million entries with a cold cache) on certain types
30655         of file systems, including ext3 and ext4, but not tmpfs.
30656         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
30657         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
30658         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
30659         (fs_handles_readdir_ordered_dirents_efficiently): New function.
30660         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
30661         (fts_build): Set the stat.st_ino member from D_INO.
30662         If it is likely to be useful, sort dirent entries on inode number.
30663
30664         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
30665         and the struct statfs.f_type member.
30666         * modules/fts (Depends-on): Add d-ino.
30667
30668 2008-09-26  Bruno Haible  <bruno@clisp.org>
30669
30670         * modules/sigpipe-die (Depends-on): Add sigpipe.
30671
30672         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
30673         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
30674         and GNULIB_STDIO_H_SIGPIPE are set.
30675         * lib/stdio-write.c: New file.
30676         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
30677         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
30678         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
30679         REPLACE_STDIO_WRITE_FUNCS.
30680         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
30681         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
30682         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
30683         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
30684         * modules/stdio (Files): Add lib/stdio-write.c.
30685         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
30686         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
30687         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
30688         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
30689         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
30690         REPLACE_FPRINTF_POSIX.
30691         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
30692         REPLACE_PRINTF_POSIX.
30693         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
30694         REPLACE_VFPRINTF_POSIX.
30695         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
30696         REPLACE_VPRINTF_POSIX.
30697         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
30698         SIGPIPE issue.
30699         * doc/posix-functions/fputc.texi: Likewise.
30700         * doc/posix-functions/fputs.texi: Likewise.
30701         * doc/posix-functions/fwrite.texi: Likewise.
30702         * doc/posix-functions/printf.texi: Likewise.
30703         * doc/posix-functions/putc.texi: Likewise.
30704         * doc/posix-functions/putchar.texi: Likewise.
30705         * doc/posix-functions/puts.texi: Likewise.
30706         * doc/posix-functions/vfprintf.texi: Likewise.
30707         * doc/posix-functions/vprintf.texi: Likewise.
30708
30709         * modules/safe-write (Depends-on): Add write.
30710
30711         * modules/sigpipe-tests: New file.
30712         * tests/test-sigpipe.c: New file.
30713         * tests/test-sigpipe.sh: New file.
30714
30715         * modules/write: New file.
30716         * lib/unistd.in.h: Include <sys/types.h>.
30717         (write): New declaration.
30718         * lib/write.c: New file.
30719         * m4/write.m4: New file.
30720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30721         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
30722         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
30723         GNULIB_WRITE, REPLACE_WRITE.
30724         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
30725         and the SIGPIPE issue.
30726
30727         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
30728         (raise): New declaration.
30729         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
30730         (ext_signal): New function.
30731         (rpl_raise): New function.
30732         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
30733         GNULIB_SIGNAL_H_SIGPIPE.
30734         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
30735         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
30736
30737         * modules/sigpipe: New file.
30738         * m4/sigpipe.m4: New file.
30739
30740 2008-09-25  Derek Price  <derek@ximbiot.com>
30741             Bruno Haible  <bruno@clisp.org>
30742
30743         * gnulib-tool (func_import): Report all license incompatibilities, not
30744         just the first one.
30745
30746 2008-09-25  Bruno Haible  <bruno@clisp.org>
30747
30748         * gnulib-tool (func_import): When computing the edits, consider not
30749         only the Makefile.ams that exist but also those that will be generated.
30750
30751 2008-09-25  Simon Josefsson  <simon@josefsson.org>
30752
30753         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
30754         fixes gnulib-tool --test warning about duplicate dependency.
30755
30756 2008-09-25  Bruno Haible  <bruno@clisp.org>
30757
30758         * gnulib-tool: Don't ask the user to perform edits in the generated
30759         Makefile.ams.
30760         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
30761         apply to the Makefile.am being generated.
30762         (func_emit_tests_Makefile_am): Execute edits that apply to the
30763         Makefile.am being generated.
30764         (func_import): Setup list of Makefile.am edits before emitting the
30765         Makefile.ams, not at the end.
30766         (func_create_testdir): Update.
30767         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30768
30769 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30770
30771         * gnulib-tool (func_import): Store the --tests-base option in the
30772         comment in gnulib-cache.m4.
30773
30774 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
30775
30776         * NEWS: Document increased portability that sys_select now provides.
30777
30778         * lib/sys_select.in.h: Install select wrapper.
30779         * lib/sys_socket.in.h: Use more descriptive name when there is no
30780         select wrapper.
30781         * lib/winsock-select.c: New.
30782         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
30783         Require gl_HEADER_SYS_SOCKET.
30784         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
30785         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
30786         * tests/test-sys_select.c: Add functional tests.
30787
30788 2008-09-24  Eric Blake  <ebb9@byu.net>
30789
30790         open, fopen: close fd leak in last patch
30791         * lib/open.c (rpl_open): Close fd before returning error.
30792         * lib/fopen.c (rpl_fopen): Close fd before returning error.
30793         * doc/posix-functions/open.texi (open): Document that Irix also
30794         has the bug.
30795         * doc/posix-functions/fopen.texi (fopen): Likewise.
30796         Reported by Paolo Bonzini.
30797
30798 2008-09-24  Bruno Haible  <bruno@clisp.org>
30799
30800         Ensure that a filename ending in a slash cannot be used to access a
30801         non-directory.
30802         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
30803         to check whether it's really a directory.
30804         * lib/fopen.c: Include fcntl.h, unistd.h.
30805         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
30806         and fdopen().
30807         * modules/fopen (Depends-on): Add unistd.
30808         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
30809         * tests/test-fopen.c (main): Likewise.
30810         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
30811         * doc/posix-functions/fopen.texi: Likewise.
30812         Reported by Eric Blake.
30813
30814 2008-09-23  Eric Blake  <ebb9@byu.net>
30815
30816         c-stack: avoid compiler optimizations when provoking overflow
30817         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
30818         recursion harder to optimize, to ensure a stack overflow occurs.
30819         * tests/test-c-stack.c (recurse): Likewise.
30820         Borrowed from libsigsegv.
30821
30822         c-stack: work around Irix sigaltstack bug
30823         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
30824         whether sigaltstack uses wrong end of stack_t (copied in part from
30825         libsigsegv).
30826         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
30827         Irix bug, without requiring an over-allocation.
30828         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
30829         bug.
30830
30831         fopen: document mingw bug on directories
30832         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
30833         not allowing a stream visiting a directory, even though reading
30834         from such a stream is not portable.
30835
30836 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
30837
30838         * lib/poll.c: Rewrite.
30839         * modules/poll: Depend on alloca.
30840
30841 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
30842
30843         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
30844         instead define prototypes for a full set of wrappers.  Ensure
30845         that Cygwin does not use the compatibility code, which is only
30846         for MinGW.
30847         * lib/winsock.c: New.
30848         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
30849         * modules/sys_socket: Add lib/winsock.c.
30850
30851         * modules/poll-tests: Add errno and perror.
30852         * tests/test-poll.c: Use ioctl, not ioctlsocket.
30853
30854 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
30855
30856         * tests/test-poll.c: Downgrade minimum needed Winsock version.
30857
30858 2008-09-23  Bruno Haible  <bruno@clisp.org>
30859
30860         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
30861         * doc/glibc-functions/*: Likewise.
30862
30863 2008-09-23  Simon Josefsson  <simon@josefsson.org>
30864
30865         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
30866         success.
30867
30868 2008-09-22  Eric Blake  <ebb9@byu.net>
30869             Bruno Haible  <bruno@clisp.org>
30870
30871         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
30872         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
30873         supply %A but mishandle pseudo-NaN.
30874         Reported by Simon Josefsson.
30875
30876 2008-09-21  Bruno Haible  <bruno@clisp.org>
30877
30878         * tests/test-lock.c (main): Tweak skip message.
30879         * tests/test-tls.c (main): Likewise.
30880
30881 2008-09-21  Bruno Haible  <bruno@clisp.org>
30882
30883         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
30884         whether 'struct sigaction' has sa_sigaction here...
30885         (gl_PREREQ_SIG_HANDLER_H): ... not here.
30886         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
30887
30888 2008-09-21  Bruno Haible  <bruno@clisp.org>
30889
30890         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
30891         section.
30892         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
30893         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
30894         the new section.
30895         (Support for obsolete systems lacking POSIX:2001): New section.
30896         (String handling <string.h>): Move strdup to the new section.
30897         Suggested by Simon Josefsson and Paolo Bonzini.
30898
30899 2008-09-21  Bruno Haible  <bruno@clisp.org>
30900
30901         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
30902         exponents in %e and %g results on 'long double'. Needed for mingw's
30903         improved *printf functions.
30904         * tests/test-vasprintf-posix.c (test_function): Likewise.
30905         * tests/test-snprintf-posix.h (test_function): Likewise.
30906         * tests/test-sprintf-posix.h (test_function): Likewise.
30907         Reported by Eric Blake.
30908
30909 2008-09-21  Bruno Haible  <bruno@clisp.org>
30910
30911         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
30912         * tests/test-sprintf-posix.h (test_function): Likewise.
30913
30914 2008-09-21  Bruno Haible  <bruno@clisp.org>
30915
30916         * modules/getpass (Depends-on): Add strdup-posix.
30917
30918         New module 'strdup-posix'.
30919         * modules/strdup-posix: New file.
30920         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
30921         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
30922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30923         REPLACE_STRDUP.
30924         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
30925         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
30926         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30927         strdup-posix.
30928
30929         * modules/strdup (Depends-on): Remove malloc-posix.
30930
30931 2008-09-20  Bruno Haible  <bruno@clisp.org>
30932
30933         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
30934         Wildenhues.
30935
30936 2008-09-20  Bruno Haible  <bruno@clisp.org>
30937
30938         Ensure that wint_t gets defined on IRIX 5.3.
30939         * lib/wchar.in.h (wint_t): Define if not defined by the system.
30940         * lib/wctype.in.h (wint_t): Likewise.
30941         (__wctype_wint_t): Remove type.
30942         (isw*): Use wint_t instead of __wctype_wint_t.
30943         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
30944         * modules/wchar (Files): Add m4/wint_t.m4.
30945         (Makefile.am): Substitute HAVE_WINT_T.
30946         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
30947         * tests/test-wctype.c: Check that wint_t is defined.
30948         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
30949         * doc/posix-headers/wctype.texi: Likewise.
30950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30951
30952 2008-09-18  Bruno Haible  <bruno@clisp.org>
30953
30954         * gnulib-tool (func_exit): Update comment.
30955
30956 2008-09-18  Simon Josefsson  <simon@josefsson.org>
30957
30958         * modules/getaddrinfo (Depends-on): Remove strdup, this module
30959         assumes strdup exists and does not depend on strdup to return
30960         ENOMEM on out of memory conditions.
30961
30962 2008-09-18  Bruno Haible  <bruno@clisp.org>
30963
30964         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
30965         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
30966         digits for the exponent.
30967
30968 2008-09-18  Jim Meyering  <meyering@redhat.com>
30969             Bruno Haible  <bruno@clisp.org>
30970
30971         * lib/vasnprintf.c (decimal_point_char): Define also if
30972         NEED_PRINTF_INFINITE_LONG_DOUBLE.
30973
30974 2008-09-16  Bruno Haible  <bruno@clisp.org>
30975         and Eric Blake  <ebb9@byu.net>
30976
30977         vasnprintf: support Irix 5.3
30978         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
30979         that mishandle long double infinity.
30980         Reported by Tom G. Christensen.
30981
30982 2008-09-16  Bruno Haible  <bruno@clisp.org>
30983
30984         * doc/glibc-functions/scandir.texi: Mention the function is missing on
30985         Solaris 9.
30986         * doc/glibc-functions/alphasort.texi: Likewise.
30987         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
30988
30989 2008-09-16  Jim Meyering  <meyering@redhat.com>
30990
30991         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
30992         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
30993         a umask modification leak out of a subshell.  Otherwise, the
30994         opensolaris /bin/sh would be accepted and thus cause unwarranted
30995         failures in the coreutils test suite.
30996
30997 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
30998
30999         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31000         to succeed.
31001
31002 2008-09-16  Jim Meyering  <meyering@redhat.com>
31003
31004         avoid spurious test failure when library is built without ACL support
31005         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31006         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31007         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31008         * tests/test-copy-acl.sh: Likewise.
31009
31010 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31011
31012         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31013         based on character occurrence counts.
31014
31015 2008-09-15  Eric Blake  <ebb9@byu.net>
31016
31017         tests: avoid some compiler warnings
31018         * tests/test-memchr.c (main): Pass NULL indirectly.
31019         * tests/test-closein.c (main): Avoid unused variable.
31020
31021 2008-09-15  Bruno Haible  <bruno@clisp.org>
31022
31023         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31024         are missing on OpenBSD 4.0 individually.
31025         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31026
31027 2008-09-15  Bruno Haible  <bruno@clisp.org>
31028
31029         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31030         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31031         * doc/posix-functions/perror.texi: Likewise.
31032         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31033         is missing.
31034         Reported by Eric Blake.
31035
31036         * lib/errno.in.h: Use replacement values >= 2000.
31037         Reported by Eric Blake.
31038
31039 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31040
31041         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31042         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31043         limit.
31044         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31045         compareseq was aborted.
31046
31047 2008-09-14  Bruno Haible  <bruno@clisp.org>
31048
31049         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
31050         yvec_edit_count.
31051         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
31052         (fstrcmp_bounded): Simplify result computation accordingly.
31053
31054 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31055
31056         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
31057         (fstrcmp): Define in terms of fstrcmp_bounded.
31058         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
31059         lower_bound argument.
31060         Return quickly if the result is certainly < lower_bound.
31061         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
31062
31063 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31064
31065         * lib/diffseq.h (EARLY_ABORT): New macro.
31066         (compareseq): Change return type to bool. Return true when EARLY_ABORT
31067         evaluates to true.
31068
31069 2008-09-14  Bruno Haible  <bruno@clisp.org>
31070
31071         * modules/perror-tests: New file.
31072         * tests/test-perror.sh: New file.
31073         * tests/test-perror.c: New file.
31074
31075         New module 'perror'.
31076         * lib/stdio.in.h (perror): New declaration.
31077         * lib/perror.c: New file.
31078         * m4/perror.m4: New file.
31079         * modules/perror: New file.
31080         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
31081         * doc/posix-functions/perror.texi: Mention the perror module.
31082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
31083         REPLACE_PERROR.
31084         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
31085         REPLACE_PERROR.
31086
31087 2008-09-14  Bruno Haible  <bruno@clisp.org>
31088
31089         * modules/stdio (Makefile.am): Reorder to match the order in
31090         lib/stdio.in.h.
31091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31092
31093 2008-09-13  Bruno Haible  <bruno@clisp.org>
31094
31095         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
31096
31097 2008-09-13  Bruno Haible  <bruno@clisp.org>
31098
31099         Extend strerror to cover the added errno values.
31100         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
31101         (rpl_strerror): Provide error messages for the added errno values and
31102         for the WSA* values.
31103         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
31104         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
31105         strerror.
31106         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
31107         * modules/strerror (Depends-on): Add errno.
31108         * doc/posix-functions/strerror.texi: Document the change.
31109         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
31110         and EOVERFLOW.
31111
31112 2008-09-13  Bruno Haible  <bruno@clisp.org>
31113
31114         * modules/EOVERFLOW: Remove file.
31115         * m4/eoverflow.m4: Remove file.
31116         * modules/EOVERFLOW-tests: Remove file.
31117         * tests/test-EOVERFLOW.c: Remove file.
31118         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
31119         * modules/ftell (Depends-on): Likewise.
31120         * modules/getdelim (Depends-on): Likewise.
31121         * modules/getugroups (Depends-on): Likewise.
31122         * modules/poll (Depends-on): Likewise.
31123         * modules/snprintf (Depends-on): Likewise.
31124         * modules/sprintf-posix (Depends-on): Likewise.
31125         * modules/vasnprintf (Depends-on): Likewise.
31126         * modules/vasprintf (Depends-on): Likewise.
31127         * modules/vfprintf-posix (Depends-on): Likewise.
31128         * modules/vsnprintf (Depends-on): Likewise.
31129         * modules/vsprintf-posix (Depends-on): Likewise.
31130         * modules/xvasprintf (Depends-on): Likewise.
31131         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31132         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
31133         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
31134         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
31135         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31136         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
31137         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
31138         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
31139         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31140         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
31141         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
31142         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
31143         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31144         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
31145         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
31146         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
31147         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31148         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
31149         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
31150         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
31151         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31152         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
31153         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
31154         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
31155         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
31156         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31157         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
31158         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
31159         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
31160         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
31161         * MODULES.html.sh: Remove EOVERFLOW.
31162         * NEWS: Mention the change.
31163
31164 2008-09-13  Bruno Haible  <bruno@clisp.org>
31165
31166         * modules/errno-tests: New file.
31167         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
31168
31169         * lib/errno.in.h: New file.
31170         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
31171         * modules/errno: New file.
31172         * doc/posix-headers/errno.texi: Update documentation.
31173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
31174
31175 2008-09-13  Bruno Haible  <bruno@clisp.org>
31176
31177         * tests/test-poll.c: Use #if for native Windows, rather than testing
31178         __MSVCRT__.
31179
31180 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31181             Bruno Haible  <bruno@clisp.org>
31182
31183         * lib/glob.c: Don't include <pwd.h> on native Windows.
31184         (WINDOWS32): New macro.
31185         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
31186
31187 2008-09-13  Bruno Haible  <bruno@clisp.org>
31188
31189         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
31190         (ETIMEDOUT): Remove macro.
31191         (glthread_cond_timedwait_multithreaded): New declaration.
31192         (glthread_cond_timedwait): Use it.
31193         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
31194         (glthread_cond_timedwait_multithreaded): New function.
31195
31196 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31197
31198         * modules/poll-tests: Do not check for io.h.
31199         * tests/test-poll.c: Check for __MSVCRT__ instead.
31200
31201 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31202
31203         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
31204         * modules/poll-tests: Add inet_pton, stdbool, sockets.
31205         * tests/test-poll.c: Use them.  Use _pipe on Windows.
31206
31207 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31208
31209         * modules/poll-tests: New.
31210         * tests/test-poll.c: New.
31211
31212 2008-09-12  Eric Blake  <ebb9@byu.net>
31213
31214         frexp: test for NetBSD failure on -0.0
31215         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
31216         not all, bugs from NetBSD 3.0 have been fixed.
31217         * doc/posix-functions/frexp.texi (frexp): Document bug.
31218         Reported by Thomas Klausner.
31219
31220         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
31221         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
31222         literal -0.0.
31223         Reported by Jonathan C. Patschke <jp@centtech.com>.
31224
31225 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31226
31227         * lib/glthread/cond.h: Use dummy implementation also if
31228         USE_WIN32_THREADS.
31229
31230 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31231
31232         * modules/fnmatch-posix (License): Change to LGPLv2+.
31233         * modules/fnmatch-gnu (License): Likewise.
31234
31235 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31236
31237         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
31238
31239 2008-09-11  Jim Meyering  <meyering@redhat.com>
31240
31241         * users.txt: Add gtk-vnc.
31242
31243 2008-09-08  Simon Josefsson  <simon@josefsson.org>
31244
31245         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
31246         rotate amounts.
31247
31248         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
31249         required for 16-bit and 8-bit rotates.
31250         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
31251         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
31252         UINT8_MAX instead of hard-coded constants.
31253         Suggested by Paul Eggert.
31254
31255 2008-09-07  Bruno Haible  <bruno@clisp.org>
31256
31257         * tests/test-striconveh.c (main): Check behaviour when converting from
31258         UTF-7.
31259
31260         Make striconveh work better with stateful encodings.
31261         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
31262         that iconv does not increment the inptr when returning -1/EINVAL.
31263
31264 2008-09-07  Bruno Haible  <bruno@clisp.org>
31265
31266         * build-aux/config.rpath: Update according to libtool-2.2.6.
31267         * build-aux/config.libpath: Likewise.
31268
31269 2008-09-06  Bruno Haible  <bruno@clisp.org>
31270
31271         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
31272         * lib/freadptr.c (freadptr): Likewise.
31273         * lib/freadseek.c (freadptrinc): Likewise.
31274         Reported by Simon Josefsson.
31275
31276 2008-09-06  Bruno Haible  <bruno@clisp.org>
31277
31278         * modules/freadptr (License): Change to LGPLv2+.
31279         * modules/freadseek (License): Likewise.
31280         Suggested by Eric Blake.
31281
31282         * modules/memchr2 (License): Change to LGPLv2+.
31283         Approved by Eric Blake.
31284
31285 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31286             Bruno Haible  <bruno@clisp.org>
31287
31288         Make gnulib-tool work with native 'sed' on AIX.
31289         * gnulib-tool (sed_noop): New variable.
31290         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
31291         func_add_or_update, func_create_testdir): Use it to initialize sed
31292         script variables.
31293         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31294
31295 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
31296             Bruno Haible  <bruno@clisp.org>
31297
31298         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
31299         also works after #include directives.
31300
31301 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
31302
31303         getdate.y: reject an out-of-range timezone value
31304         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
31305         the range [-24...+24].  When specified with only one or two digits,
31306         * tests/test-getdate.c: Tests for the fix.
31307         * doc/getdate.texi: Document this change.
31308
31309 2008-09-03  Bruno Haible  <bruno@clisp.org>
31310
31311         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
31312
31313 2008-09-02  Simon Josefsson  <simon@josefsson.org>
31314
31315         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
31316         <bruce.korb@gmail.com> with ideas from Ben Pfaff
31317         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
31318         Blake <ebb9@byu.net>.
31319
31320         * tests/test-bitrotate.c: Add more test vectors.
31321
31322 2008-09-02  Eric Blake  <ebb9@byu.net>
31323
31324         vasnprintf-posix: handle large precision via %.*d
31325         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
31326         when handling it ourselves.
31327         * tests/test-vasnprintf-posix.c (test_function): Add test.
31328         * tests/test-snprintf-posix.h (test_function): Likewise.
31329         * tests/test-sprintf-posix.h (test_function): Likewise.
31330         * tests/test-vasprintf-posix.c (test_function): Likewise.
31331         Reported by Alain Guibert.
31332
31333 2008-09-01  Eric Blake  <ebb9@byu.net>
31334
31335         c-stack: make configure-time check more robust
31336         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
31337         successful sigaction call.
31338         Reported by Tom G. Christensen.
31339
31340 2008-09-01  Bruno Haible  <bruno@clisp.org>
31341
31342         New module 'findprog-lgpl'.
31343         * modules/findprog-lgpl: New file.
31344         * lib/findprog-lgpl.c: New file.
31345         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
31346         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
31347         to decide whether to use strdup or xstrdup, concatenated_filename or
31348         xconcatenated_filename.
31349
31350 2008-09-01  Bruno Haible  <bruno@clisp.org>
31351
31352         Split module 'concat-filename' into 'concat-filename' (LGPL) and
31353         'xconcat-filename' (GPL).
31354         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
31355         (License): Change to LGPLv2+.
31356         * modules/xconcat-filename: New file.
31357         * lib/concat-filename.h (concatenated_filename): Change specification.
31358         (xconcatenated_filename): New declaration.
31359         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
31360         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
31361         memory situations.
31362         * lib/xconcat-filename.c: New file.
31363         * NEWS: Mention the change.
31364         * lib/findprog.c: Include concat-filename.h, not filename.h.
31365         (find_in_path): Use xconcatenated_filename instead of
31366         concatenated_filename.
31367         * lib/javacomp.c: Include concat-filename.h, not filename.h.
31368         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31369         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31370         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31371         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
31372         instead of concatenated_filename.
31373         * lib/javaexec.c: Include concat-filename.h, not filename.h.
31374         (execute_java_class): Use xconcatenated_filename instead of
31375         concatenated_filename.
31376         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
31377         * modules/javacomp (Depends-on): Likewise.
31378         * modules/javaexec (Depends-on): Likewise.
31379
31380 2008-09-01  Bruno Haible  <bruno@clisp.org>
31381
31382         Split module 'filename' into 'filename' and 'concat-filename'.
31383         * modules/filename: Keep only lib/filename.h.
31384         (License): Change to LGPLv2+.
31385         * modules/concat-filename: New file, extracted from modules/filename.
31386         * lib/filename.h (concatenated_filename): Remove declaration.
31387         * lib/concat-filename.h: New file, extracted from lib/filename.h.
31388         * lib/concat-filename.c: Include concat-filename.h.
31389         * NEWS: Mention the change.
31390
31391 2008-09-01  Simon Josefsson  <simon@josefsson.org>
31392
31393         * lib/bitrotate.h (rotl8, rotr8): Add.
31394
31395         * modules/bitrotate (configure.ac): Need
31396         AC_REQUIRE([AC_C_INLINE]).
31397         (Description): Mention stdint.h.  Reported by Bruno Haible
31398         <bruno@clisp.org>.
31399
31400         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
31401         Paolo Bonzini <bonzini@gnu.org>.
31402
31403 2008-08-31  Bruno Haible  <bruno@clisp.org>
31404
31405         Assume Solaris specific bi-arch conventions on Solaris systems.
31406         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
31407         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
31408         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
31409         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
31410         like acl_libdirstem.
31411         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
31412         acl_libdirstem.
31413         * NEWS: Mention the change.
31414         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
31415
31416 2008-08-31  Jim Meyering  <meyering@redhat.com>
31417
31418         * lib/strftime.h: Add comments describing the two added arguments.
31419
31420         remove duplicate #include directives
31421         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
31422         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
31423
31424 2008-08-31  Bruno Haible  <bruno@clisp.org>
31425
31426         New module 'sigpipe-die'.
31427         * modules/sigpipe-die: New file.
31428         * lib/sigpipe-die.h: New file.
31429         * lib/sigpipe-die.c: New file.
31430         * MODULES.html.sh (Signal handling): Add sigpipe-die.
31431
31432 2008-08-31  Bruno Haible  <bruno@clisp.org>
31433
31434         Don't override previously installed signal handlers.
31435         * lib/fatal-signal.c (saved_sigactions): New variable.
31436         (uninstall_handlers): Reset the signal to the saved handler, not
31437         to SIG_DFL (except when ignored).
31438         (install_handlers): Save the previous handlers.
31439
31440 2008-08-30  Bruno Haible  <bruno@clisp.org>
31441
31442         * gnulib-tool (func_reset_sigpipe): New function.
31443         (func_get_automake_snippet, func_modules_transitive_closure,
31444         func_import): Invoke it before a join command that reads from stdin,
31445         to avoid "echo: write error: Broken pipe" error messages on stderr.
31446         Reported by Sam Steingold <sds@gnu.org>.
31447
31448 2008-08-30  Bruno Haible  <bruno@clisp.org>
31449
31450         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
31451         Code copied from m4/open.m4.
31452         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
31453         access and the filename ends in a slash. Code copied from lib/open.c.
31454         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
31455         * tests/test-fopen.c (main): Check against bug with trailing slash.
31456
31457 2008-08-29  Bruno Haible  <bruno@clisp.org>
31458
31459         Avoid some "gcc -pedantic" warnings.
31460         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
31461         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
31462         * lib/dirent.in.h: Likewise.
31463         * lib/fcntl.in.h: Likewise.
31464         * lib/float.in.h: Likewise.
31465         * lib/iconv.in.h: Likewise.
31466         * lib/inttypes.in.h: Likewise.
31467         * lib/locale.in.h: Likewise.
31468         * lib/math.in.h: Likewise.
31469         * lib/netinet_in.in.h: Likewise.
31470         * lib/search.in.h: Likewise.
31471         * lib/signal.in.h: Likewise.
31472         * lib/stdarg.in.h: Likewise.
31473         * lib/stdint.in.h: Likewise.
31474         * lib/stdio.in.h: Likewise.
31475         * lib/stdlib.in.h: Likewise.
31476         * lib/string.in.h: Likewise.
31477         * lib/strings.in.h: Likewise.
31478         * lib/sys_select.in.h: Likewise.
31479         * lib/sys_socket.in.h: Likewise.
31480         * lib/sys_stat.in.h: Likewise.
31481         * lib/sys_time.in.h: Likewise.
31482         * lib/sysexits.in.h: Likewise.
31483         * lib/time.in.h: Likewise.
31484         * lib/unistd.in.h: Likewise.
31485         * lib/wchar.in.h: Likewise.
31486         * lib/wctype.in.h: Likewise.
31487         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
31488         * modules/fchdir (Makefile.am): Likewise.
31489         * modules/fcntl (Makefile.am): Likewise.
31490         * modules/float (Makefile.am): Likewise.
31491         * modules/iconv_open (Makefile.am): Likewise.
31492         * modules/inttypes (Makefile.am): Likewise.
31493         * modules/locale (Makefile.am): Likewise.
31494         * modules/math (Makefile.am): Likewise.
31495         * modules/netinet_in (Makefile.am): Likewise.
31496         * modules/search (Makefile.am): Likewise.
31497         * modules/signal (Makefile.am): Likewise.
31498         * modules/stdarg (Makefile.am): Likewise.
31499         * modules/stdint (Makefile.am): Likewise.
31500         * modules/stdio (Makefile.am): Likewise.
31501         * modules/stdlib (Makefile.am): Likewise.
31502         * modules/string (Makefile.am): Likewise.
31503         * modules/strings (Makefile.am): Likewise.
31504         * modules/sys_select (Makefile.am): Likewise.
31505         * modules/sys_socket (Makefile.am): Likewise.
31506         * modules/sys_stat (Makefile.am): Likewise.
31507         * modules/sys_time (Makefile.am): Likewise.
31508         * modules/sysexits (Makefile.am): Likewise.
31509         * modules/time (Makefile.am): Likewise.
31510         * modules/unistd (Makefile.am): Likewise.
31511         * modules/wchar (Makefile.am): Likewise.
31512         * modules/wctype (Makefile.am): Likewise.
31513         Reported by Reuben Thomas <rrt@sc3d.org>.
31514
31515 2008-08-29  Bruno Haible  <bruno@clisp.org>
31516
31517         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
31518         any more.
31519
31520 2008-08-29  Simon Josefsson  <simon@josefsson.org>
31521
31522         * MODULES.html.sh (Misc): Add bitrotate.
31523
31524         * modules/bitrotate: New file.
31525
31526         * lib/bitrotate.h: New file.
31527
31528         * modules/bitrotate-tests: New file.
31529
31530         * tests/test-bitrotate.c: New file.
31531
31532         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
31533         on the bitrotate module.
31534
31535         * lib/arctwo.c: Use new bitrotate module.
31536
31537 2008-08-29  Jim Meyering  <meyering@redhat.com>
31538
31539         bootstrap: merge changes from coreutils
31540         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
31541         of copied files.  Remove a kludge, now that this is fixed.
31542         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
31543         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
31544         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
31545
31546 2008-08-29  Bruno Haible  <bruno@clisp.org>
31547
31548         * MODULES.html.sh: Remove --cvs-urls option.
31549
31550 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
31551
31552         maint.mk: adjust to file name change
31553         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
31554
31555 2008-08-28  Jim Meyering  <meyering@redhat.com>
31556
31557         * modules/getndelim2 (License): Relicense to LGPLv2+.
31558         Approved by Richard Stallman for the version of 1995, and by
31559         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
31560
31561 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
31562
31563         * lib/getdelim.c (flockfile, funlockfile): Make all of them
31564         dummy if one is not available.  Do not touch them if
31565         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
31566         (getc_maybe_unlocked): New.
31567         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
31568
31569 2008-08-26  Eric Blake  <ebb9@byu.net>
31570
31571         doc/INSTALL: resync from autoconf
31572         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
31573         (INSTALL_PRELUDE): Delete; this is done more efficiently by
31574         moving...
31575         * install.texi [!autoconf]: ...here.  Resync from autoconf.
31576         * INSTALL: Regenerate.
31577         * INSTALL.ISO: New file.
31578         * INSTALL.UTF-8: Likewise.
31579
31580 2008-08-26  Jim Meyering  <meyering@redhat.com>
31581
31582         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
31583         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
31584         these definitions conditional, so that they may be overridden, too.
31585
31586 2008-08-26  Bruno Haible  <bruno@clisp.org>
31587
31588         Generate INSTALL file variants with prettier quotes.
31589         * doc/Makefile (INSTALL_PRELUDE): New macro.
31590         (INSTALL): Use it.
31591         (INSTALL.ISO, INSTALL.UTF-8): New rules.
31592
31593 2008-08-26  Bruno Haible  <bruno@clisp.org>
31594
31595         Run makeinfo in an English locale.
31596         * doc/Makefile (MAKEINFO): New variable.
31597
31598 2008-08-26  Bruno Haible  <bruno@clisp.org>
31599
31600         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
31601         Suggested by Eric Blake.
31602
31603 2008-08-25  Bruno Haible  <bruno@clisp.org>
31604
31605         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
31606
31607 2008-08-25  Eric Blake  <ebb9@byu.net>
31608
31609         c-stack: test that stack overflow can be caught
31610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
31611         that platform allows handling stack overflow; at least OS/2 EMX
31612         has sigaltstack, but crashes before transferring control to
31613         handler on stack overflow.
31614         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
31615         check for HAVE_STACK_OVERFLOW_HANDLING.
31616         Reported by Elbert Pol.
31617
31618 2008-08-25  Bruno Haible  <bruno@clisp.org>
31619
31620         * doc/posix-functions/strftime.texi: Fix description of strftime
31621         module.
31622
31623 2008-08-24  Bruno Haible  <bruno@clisp.org>
31624
31625         * tests/uniwidth/test-uc_width2.c: New file.
31626         * tests/uniwidth/test-uc_width2.sh: New file.
31627         * modules/uniwidth/width-tests (Files): Add the new files.
31628         (TESTS): Add uniwidth/test-uc_width2.sh.
31629         (TESTS_ENVIRONMENT): New variable.
31630         (check_PROGRAMS): Add test-uc_width2.
31631         (test_uc_width2_SOURCES): New variable.
31632
31633         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
31634         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
31635         not 0x00AB.
31636         Reported by Alexander V. Lukyanov <lav@netis.ru>.
31637
31638 2008-08-22  Eric Blake  <ebb9@byu.net>
31639
31640         test-lock, test-tls: mention why a test is skipped
31641         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
31642         skipped.
31643         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
31644
31645         count-one-bits: relax license
31646         * modules/count-one-bits (License): Relicense to LGPLv2+.
31647         Suggested by Ludovic Courtès, approved by Ben Pfaff.
31648
31649 2008-08-22  Andreas Schwab  <schwab@suse.de>
31650
31651         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31652         Remove spurious space in assignment.
31653
31654 2008-08-21  Simon Josefsson  <simon@josefsson.org>
31655
31656         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
31657         Paul Eggert <eggert@CS.UCLA.EDU>.
31658
31659 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
31660
31661         * modules/gettext: Add m4/threadlib.m4.
31662
31663 2008-08-19  Eric Blake  <ebb9@byu.net>
31664
31665         test-c-stack: fix compilation failure on FreeBSD 5.0
31666         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
31667         headers before <sys/resource.h>.
31668         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
31669         the bug.
31670         Reported by Nelson H. F. Beebe.
31671
31672         strverscmp: migrate from "strverscmp.h" to <string.h>
31673         * modules/string (Makefile.am): Add new hooks.
31674         * modules/strverscmp (Files): Remove strverscmp.h.
31675         (Depends-on): Add string.
31676         (configure.ac): Add indicator.
31677         (Include): Mention new header.
31678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
31679         defaults.
31680         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
31681         results.
31682         * lib/strverscmp.h: Delete.
31683         * lib/string.in.h (strverscmp): Provide declaration, when needed.
31684         * tests/test-strverscmp.c (includes): Adjust client.
31685         * lib/check-version.c (includes): Likewise.
31686         * NEWS: Document the change.
31687
31688         strverscmp: add unit test
31689         * modules/strverscmp-tests: New file.
31690         * tests/test-strverscmp.c: Likewise.
31691
31692 2008-08-19  Simon Josefsson  <simon@josefsson.org>
31693
31694         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
31695         regarding Windows crypto stuff, from Mono.
31696
31697 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
31698
31699         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
31700         if present, for intel RND.  Return error on failures.
31701
31702 2008-08-18  Ben Pfaff  <blp@gnu.org>
31703
31704         gitlog-to-changelog: give better diagnostic for failed pipe-open
31705         * build-aux/gitlog-to-changelog: Improve error message: suggest
31706         that the version of Git may be too old.
31707
31708 2008-08-18  Simon Josefsson  <simon@josefsson.org>
31709
31710         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
31711         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
31712
31713 2008-08-18  Bruno Haible  <bruno@clisp.org>
31714
31715         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
31716         pthread_in_use().
31717
31718 2008-08-18  Bruno Haible  <bruno@clisp.org>
31719
31720         * lib/glthread/threadlib.c: Include <pthread.h>.
31721
31722 2008-08-18  Bruno Haible  <bruno@clisp.org>
31723
31724         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
31725         glthread_recursive_lock_* macros.
31726         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
31727         Fix syntax error.
31728
31729 2008-08-18  Bruno Haible  <bruno@clisp.org>
31730
31731         * lib/glthread/thread.c: Avoid forcing a context switch right after
31732         thread creation.
31733
31734 2008-08-17  Bruno Haible  <bruno@clisp.org>
31735
31736         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
31737         * lib/glthread/thread.h: Provide Win32 specific implementation.
31738         * modules/thread (Files): Add lib/glthread/thread.c.
31739         (Depends-on): Add lock.
31740         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
31741
31742 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31743
31744         New module 'yield'.
31745         * modules/yield: New file.
31746         * lib/glthread/yield.h: New file.
31747         * m4/yield.m4: New file.
31748         * MODULES.html.sh (Multithreading): Add yield.
31749
31750 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31751
31752         New module 'thread'.
31753         * modules/thread: New file.
31754         * lib/glthread/thread.h: New file.
31755         * m4/thread.m4: New file.
31756         * MODULES.html.sh (Multithreading): Add thread.
31757
31758 2008-08-17  Bruno Haible  <bruno@clisp.org>
31759
31760         * lib/glthread/lock.h: Include <stdlib.h> always.
31761         * lib/glthread/tls.h: Likewise.
31762         * lib/glthread/cond.h: Likewise.
31763
31764 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31765
31766         New module 'cond'.
31767         * modules/cond: New file.
31768         * lib/glthread/cond.h: New file.
31769         * lib/glthread/cond.c: New file.
31770         * m4/cond.m4: New file.
31771         * MODULES.html.sh (Multithreading): Add cond.
31772
31773 2008-08-16  Eric Blake  <ebb9@byu.net>
31774
31775         c-stack: fix regression on Irix 5.3 from 2008-06-21
31776         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
31777         sa_sigaction...
31778         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
31779         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
31780         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
31781         * modules/signal (Makefile.am): Use the value.
31782         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
31783         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
31784         * doc/posix-headers/signal.texi (signal.h): Document this
31785         portability issue.
31786         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
31787         Reported by Tom G. Christensen.
31788
31789 2008-08-17  Bruno Haible  <bruno@clisp.org>
31790
31791         New module 'threadlib'.
31792         * modules/threadlib: New file.
31793         * lib/glthread/threadlib.c: New file, extracted from
31794         lib/glthread/lock.c.
31795         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
31796         functions.
31797         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
31798         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
31799         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
31800         macros.
31801         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
31802         (gl_DISABLE_THREADS): Remove macro.
31803         * modules/lock (Files): Remove build-aux/config.rpath.
31804         (Depends-on): Remove havelib. Add threadlib.
31805         (configure.ac-early): Remove section.
31806         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
31807         * modules/tls (Depends-on): Remove lock. Add threadlib.
31808         (Link): New section, copied from threadlib.
31809         * MODULES.html.sh (Multithreading): Add threadlib.
31810
31811 2008-08-14  Bruno Haible  <bruno@clisp.org>
31812
31813         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
31814         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
31815         glthread_rwlock_unlock, glthread_rwlock_destroy,
31816         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
31817         glthread_recursive_lock_destroy): Define as macros always.
31818         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
31819         glthread_lock_lock.
31820         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
31821         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
31822         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
31823         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
31824         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
31825         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
31826         (glthread_recursive_lock_lock_func): Renamed from
31827         glthread_recursive_lock_lock.
31828         (glthread_recursive_lock_unlock_func): Renamed from
31829         glthread_recursive_lock_unlock.
31830         (glthread_recursive_lock_destroy_func): Renamed from
31831         glthread_recursive_lock_destroy.
31832
31833 2008-08-14  Bruno Haible  <bruno@clisp.org>
31834
31835         * lib/glthread/lock.h: Renamed from lib/lock.h.
31836         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
31837         * lib/glthread/tls.h: Renamed from lib/tls.h.
31838         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
31839         * lib/fstrcmp.c: Update includes.
31840         * lib/strsignal.c: Update includes.
31841         * modules/lock (Files, Makefile.am): Update.
31842         (Include): Change to "glthread/lock.h".
31843         * modules/tls (Files, Makefile.am): Update.
31844         (Include): Change to "glthread/tls.h".
31845         * tests/test-lock.c: Update includes.
31846         * tests/test-tls.c: Update includes.
31847         * NEWS: Mention the renamed header files.
31848
31849 2008-08-11  Jim Meyering  <meyering@redhat.com>
31850
31851         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
31852
31853 2008-08-11  Eric Blake  <ebb9@byu.net>
31854
31855         test-c-stack: avoid C99-ism
31856         * tests/test-c-stack.c (main): Fix whitespace, move declaration
31857         before statement.
31858         Reported by Alain Guibert.
31859
31860 2008-08-10  Jim Meyering  <meyering@redhat.com>
31861
31862         ensure that return value of uinttostr et al are not ignored
31863         * lib/inttostr.h (__GNUC_PREREQ): Define.
31864         (__attribute_warn_unused_result__): Define.
31865         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
31866
31867 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
31868
31869         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
31870         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
31871
31872 2008-08-07  Jim Meyering  <meyering@redhat.com>
31873
31874         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
31875
31876         * modules/mkstemp (License): Relicense under LGPLv2+.
31877         * modules/tempname (License): Likewise.
31878
31879 2008-08-06  Bruno Haible  <bruno@clisp.org>
31880
31881         * lib/poll.c (poll): Further micro-optimization.
31882
31883 2008-08-06  Jim Meyering  <meyering@redhat.com>
31884
31885         inet_pton.c: use locale-independent tolower
31886         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
31887         (inet_pton6): Use c_tolower rather than tolower.
31888         * modules/inet_pton (Depends-on): Add c-ctype.
31889
31890 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
31891
31892         * lib/poll.c (poll): Avoid division when timeout is 0, cache
31893         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
31894
31895 2008-08-06  Jim Meyering  <meyering@redhat.com>
31896
31897         * modules/inet_pton (License): Relicense under LGPLv2+.
31898
31899 2008-08-03  Bruno Haible  <bruno@clisp.org>
31900
31901         Additional non-aborting API for lock and tls.
31902         * lib/lock.h: Include <errno.h>.
31903         (glthread_lock_init): New macro/function.
31904         (gl_lock_init): Define as wrapper around glthread_lock_init.
31905         (glthread_lock_lock): New macro/function.
31906         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
31907         (glthread_lock_unlock): New macro/function.
31908         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
31909         (glthread_lock_destroy): New macro/function.
31910         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
31911         (glthread_rwlock_init): New macro/function.
31912         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
31913         (glthread_rwlock_rdlock): New macro/function.
31914         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
31915         (glthread_rwlock_wrlock): New macro/function.
31916         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
31917         (glthread_rwlock_unlock): New macro/function.
31918         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
31919         (glthread_rwlock_destroy): New macro/function.
31920         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
31921         (glthread_recursive_lock_init): New macro/function.
31922         (gl_recursive_lock_init): Define as wrapper around
31923         glthread_recursive_lock_init.
31924         (glthread_recursive_lock_lock): New macro/function.
31925         (gl_recursive_lock_lock): Define as wrapper around
31926         glthread_recursive_lock_lock.
31927         (glthread_recursive_lock_unlock): New macro/function.
31928         (gl_recursive_lock_unlock): Define as wrapper around
31929         glthread_recursive_lock_unlock.
31930         (glthread_recursive_lock_destroy): New macro/function.
31931         (gl_recursive_lock_destroy): Define as wrapper around
31932         glthread_recursive_lock_destroy.
31933         (glthread_once): New macro/function.
31934         (gl_once): Define as wrapper around glthread_once.
31935         Update function declarations.
31936         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
31937         glthread_rwlock_init. Return error code.
31938         (glthread_rwlock_rdlock_multithreaded): Renamed from
31939         glthread_rwlock_rdlock. Return error code.
31940         (glthread_rwlock_wrlock_multithreaded): Renamed from
31941         glthread_rwlock_wrlock. Return error code.
31942         (glthread_rwlock_unlock_multithreaded): Renamed from
31943         glthread_rwlock_unlock. Return error code.
31944         (glthread_rwlock_destroy_multithreaded): Renamed from
31945         glthread_rwlock_destroy. Return error code.
31946         (glthread_recursive_lock_init_multithreaded): Renamed from
31947         glthread_recursive_lock_init. Return error code.
31948         (glthread_recursive_lock_lock_multithreaded): Renamed from
31949         glthread_recursive_lock_lock. Return error code.
31950         (glthread_recursive_lock_unlock_multithreaded): Renamed from
31951         glthread_recursive_lock_unlock. Return error code.
31952         (glthread_recursive_lock_destroy_multithreaded): Renamed from
31953         glthread_recursive_lock_destroy. Return error code.
31954         (glthread_once_call): Make static.
31955         (glthread_once_multithreaded): Renamed from glthread_once.
31956         * lib/tls.h: Include <errno.h>.
31957         (glthread_tls_key_init): New macro/function.
31958         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
31959         (glthread_tls_set): New macro/function.
31960         (gl_tls_set): Define as wrapper around glthread_tls_set.
31961         (glthread_tls_key_destroy): New macro/function.
31962         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
31963         Update function declarations.
31964         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
31965         glthread_tls_get.
31966         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31967
31968 2008-08-04  Eric Blake  <ebb9@byu.net>
31969
31970         gnumakefile: use space, not TAB, outside of targets
31971         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
31972
31973 2008-08-02  Jim Meyering  <meyering@redhat.com>
31974
31975         getdate.y: avoid locale-dependent date parsing failure
31976         In Turkish locales, getdate would fail to recognize keywords
31977         containing a lowercase "i".  The solution is not to rely on
31978         locale-sensitive case-conversion.
31979         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
31980         (lookup_word): Use c_toupper in place of toupper.
31981         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
31982         Reported by Vefa Bicakci <bicave@superonline.com> in
31983         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
31984         * modules/getdate (Depends-on): Add c-ctype.
31985
31986 2008-08-02  Bruno Haible  <bruno@clisp.org>
31987
31988         * gnulib-tool (func_import): When updating or creating a .gitignore
31989         file, prepend each added line with a slash, and ignore leading slashes
31990         from the existing lines.
31991         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31992
31993 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31994
31995         Portability fix for GNU make 3.79.1.
31996         * top/GNUmakefile: Avoid 'else COND', which older GNU make
31997         versions do not understand.
31998
31999 2008-08-01  Bruno Haible  <bruno@clisp.org>
32000
32001         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32002         * tests/test-isnanf.h (zero): New variable.
32003         (main): Avoid literal -0.0f.
32004         * tests/test-isnand.h (zero): New variable.
32005         (main): Avoid literal -0.0.
32006         * tests/test-isnanl.h (zero): New variable.
32007         (main): Avoid literal -0.0L.
32008         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32009         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32010         -0.0, -0.0L.
32011         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32012         (test_signbitd): Avoid literal -0.0.
32013         (test_signbitl): Avoid literal -0.0L.
32014         * tests/test-ceilf1.c (zero): New variable.
32015         (main): Avoid literal -0.0f.
32016         * tests/test-ceill.c (zero): New variable.
32017         (main): Avoid literal -0.0L.
32018         * tests/test-floorf1.c (zero): New variable.
32019         (main): Avoid literal -0.0f.
32020         * tests/test-floorl.c (zero): New variable.
32021         (main): Avoid literal -0.0L.
32022         * tests/test-roundf1.c (zero): New variable.
32023         (main): Avoid literal -0.0f.
32024         * tests/test-round1.c (zero): New variable.
32025         (main): Avoid literal -0.0.
32026         * tests/test-roundl.c (zero): New variable.
32027         (main): Avoid literal -0.0L.
32028         * tests/test-truncf1.c (zero): New variable.
32029         (main): Avoid literal -0.0f.
32030         * tests/test-trunc1.c (zero): New variable.
32031         (main): Avoid literal -0.0.
32032         * tests/test-truncl.c (zero): New variable.
32033         (main): Avoid literal -0.0L.
32034         * tests/test-frexp.c (zero): New variable.
32035         (main): Avoid literal -0.0.
32036         * tests/test-frexpl.c (zero): New variable.
32037         (main): Avoid literal -0.0L.
32038         * tests/test-ldexpl.c (zero): New variable.
32039         (main): Avoid literal -0.0L.
32040         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32041         (zerod, zerol): New variables.
32042         (test_function): Avoid literals -0.0, -0.0L.
32043         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32044         (zerod, zerol): New variables.
32045         (test_function): Avoid literals -0.0, -0.0L.
32046         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32047         (zerod, zerol): New variables.
32048         (test_function): Avoid literals -0.0, -0.0L.
32049         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32050         (zerod, zerol): New variables.
32051         (test_function): Avoid literals -0.0, -0.0L.
32052         * tests/test-strtod.c (zero): New variable.
32053         (main): Avoid literal -0.0.
32054         Reported by Jonathan C. Patschke <jp@centtech.com>.
32055
32056 2008-07-31  Jim Meyering  <meyering@redhat.com>
32057
32058         sha256.h: correct definition of SHA224_DIGEST_SIZE
32059         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
32060         Reported by Paulie Pena IV <paulie4@gmail.com>.
32061         Define as 224 / 8, rather than as a literal.
32062         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
32063         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
32064         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
32065
32066 2008-07-31  Bruno Haible  <bruno@clisp.org>
32067
32068         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
32069         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
32070         Reported by Jonathan Patschke <jp@centtech.com>.
32071
32072 2008-07-31  Bruno Haible  <bruno@clisp.org>
32073
32074         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
32075         Reported by Paolo Bonzini <bonzini@gnu.org>.
32076
32077 2008-07-30  Eric Blake  <ebb9@byu.net>
32078
32079         test-strtod: allow compilation without -lm
32080         * tests/test-strtod.c (main): Avoid link dependence on fabs.
32081         Reported by Dennis Clarke <blastwave@gmail.com>.
32082
32083 2008-07-28  Jim Meyering  <meyering@redhat.com>
32084
32085         bootstrap: work also when there are no .po files in po/
32086         * build-aux/bootstrap (update_po_files): Complete the change
32087         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
32088
32089 2008-07-27  Jim Meyering  <meyering@redhat.com>
32090
32091         * users.txt: Add zile.
32092
32093 2008-07-26  Ben Pfaff  <blp@gnu.org>
32094
32095         Add missing dependencies on new m4/exponent[fdl].m4 files.
32096         * modules/isnanf-nolibm: Add m4/exponentf.m4.
32097         * modules/isnand-nolibm: Add m4/exponentd.m4.
32098         * modules/isnanl-nolibm: Add m4/exponentl.m4.
32099         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
32100         m4/isnan[fdl].m4, because the macros actually used moved.
32101         Reported by Jim Meyering.
32102
32103 2008-07-14  Ben Pfaff  <blp@gnu.org>
32104
32105         Add isinf module.
32106         * lib/isinf.c: New file.
32107         * lib/math.in.h: Define isinf macro if we have decided to replace
32108         it.
32109         * m4/isinf.m4: New file.
32110         * m4/math_h.m4: Initialize and substitute variables for isinf
32111         module.
32112         * modules/isinf: New file.
32113         * modules/isinf-tests: New file.
32114         * modules/math: Add substitutions for new module.
32115         * tests/test-isinf.c: New file.
32116         * doc/posix-functions/isinf.texi: Mention new module.
32117         * MODULES.html.sh: Mention new module.
32118
32119 2008-07-14  Ben Pfaff  <blp@gnu.org>
32120
32121         Factor out some macros for use by additional modules.
32122         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
32123         exponentf.m4.
32124         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
32125         exponentd.m4.
32126         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
32127         file exponentl.m4.
32128         * m4/exponentf.m4: New file.
32129         * m4/exponentd.m4: New file.
32130         * m4/exponentl.m4: New file.
32131         * modules/isnanf: Use new file m4/exponentf.m4.
32132         * modules/isnand: Use new file m4/exponentd.m4.
32133         * modules/isnanl: Use new file m4/exponentl.m4.
32134
32135 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
32136
32137         mktime.c: normalize tp->tm_isdst value to -1/0/1.
32138         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
32139         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
32140         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
32141
32142         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
32143         readlink on platforms without PATH_MAX.
32144
32145 2008-07-21  Eric Blake  <ebb9@byu.net>
32146
32147         Warn, not fail, on stale version.
32148         * top/GNUmakefile (_curr-ver): Tone down previous patch.
32149
32150         Don't allow installation with stale devel version number.
32151         * top/GNUmakefile (_is-install-target): New macro.
32152         (_curr-ver): Forbid installation with stale version number.
32153
32154 2008-07-20  Bruno Haible  <bruno@clisp.org>
32155
32156         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
32157         TESTS_ENVIRONMENT.
32158         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
32159
32160 2008-07-20  Bruno Haible  <bruno@clisp.org>
32161
32162         * lib/c-stack.h (c_stack_action): Add documentation.
32163         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
32164
32165 2008-07-20  Bruno Haible  <bruno@clisp.org>
32166
32167         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
32168         * modules/readlink (License): Likewise.
32169
32170 2008-07-17  Eric Blake  <ebb9@byu.net>
32171
32172         * modules/c-stack (Link): Fix typo.
32173
32174         Make c-stack use libsigsegv, when available.
32175         * modules/c-stack (Depends-on): Add libsigsegv.
32176         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
32177         needed.
32178         * lib/c-stack.c (SIGSTKSZ): Define fallback.
32179         (segv_handler, overflow_handler, c_stack_action)
32180         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
32181         implementation when libsigsegv is available, but only when using
32182         the library is necessary.
32183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
32184         comment, explaining why XSI check fails on Linux.
32185         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
32186         * tests/test-c-stack2.sh: Tweak skip message.
32187         * NEWS: Document new link-time requirements.
32188
32189 2008-07-16  Eric Blake  <ebb9@byu.net>
32190
32191         c-stack: Expose false positives when not using libsigsegv.
32192         * modules/c-stack-tests (Files): Expand test.
32193         * tests/test-c-stack.c (main): Add means to conditionally trigger
32194         non-overflow SIGSEGV.
32195         * tests/test-c-stack2.sh: New file.
32196
32197 2008-07-14  Bruno Haible  <bruno@clisp.org>
32198
32199         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
32200         Reported by Eric Blake.
32201
32202 2008-07-14  Sam Steingold  <sds@gnu.org>
32203             Bruno Haible  <bruno@clisp.org>
32204
32205         New module libsigsegv.
32206         * modules/libsigsegv: New file.
32207         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
32208         modifications.
32209         * MODULES.html.sh (Signal handling): New section.
32210
32211 2008-07-14  Bruno Haible  <bruno@clisp.org>
32212
32213         * modules/unictype/ctype-* (Description): Add the word "function".
32214         Improves the resulting doc in MODULES.html.
32215
32216 2008-07-12  Ben Pfaff  <blp@gnu.org>
32217
32218         Add longlong module.
32219         * modules/longlong: New file.
32220
32221 2008-07-12  Bruno Haible  <bruno@clisp.org>
32222
32223         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
32224         to empty.
32225
32226 2008-07-10  Ben Pfaff  <blp@gnu.org>
32227
32228         Add isnan module.
32229         * doc/posix-functions/isnan.texi: Mention new module.
32230         * lib/math.in.h: Define isnan macro if we have decided to replace
32231         it.
32232         * m4/isnan.m4: New file.
32233         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
32234         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
32235         also.
32236         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
32237         redundancy.
32238         * m4/math_h.m4: Initialize and substitute variables for isnan
32239         module.
32240         * modules/isnan: New file.
32241         * modules/isnan-tests: New file.
32242         * modules/math: Add substitutions for new module.
32243         * tests/test-isnan.c: New file.
32244         * MODULES.html.sh: Mention new module.
32245
32246 2008-07-10  Ben Pfaff  <blp@gnu.org>
32247
32248         Add isnanf module.
32249         * lib/isnanf.m4: New file.
32250         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
32251         (gl_HAVE_ISNANF_IN_LIBM): New macro.
32252         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
32253         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
32254         * modules/isnanf: New file.
32255         * modules/isnanf-tests: New file.
32256         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
32257         files.
32258         * tests/test-isnanf-nolibm.c: factored most of its contents into
32259         new file tests/test-isnanf.h.
32260         * tests/test-isnanf.h: New file.
32261         * tests/test-isnanf.c: New file.
32262         * MODULES.html.sh: Mention new module.
32263         * doc/glibc-functions/isnanf.texi: Mention new module.
32264
32265 2008-07-10  Ben Pfaff  <blp@gnu.org>
32266
32267         Add isnand module.
32268         * lib/isnand.h: New file.
32269         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
32270         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
32271         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
32272         functionality also.
32273         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
32274         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
32275         (gl_HAVE_ISNAND_IN_LIBM): New macro.
32276         * modules/isnand: New file.
32277         * modules/isnand-tests: New file.
32278         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
32279         files.
32280         * tests/test-isnand-nolibm.c: factored most of its contents into
32281         new file tests/test-isnand.h.
32282         * tests/test-isnand.h: New file.
32283         * tests/test-isnand.c: New file.
32284         * MODULES.html.sh: Mention new module.
32285
32286 2008-07-10  Ben Pfaff  <blp@gnu.org>
32287
32288         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
32289         * lib/isnand.h: Rename lib/isnand-nolibm.h.
32290         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
32291         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
32292         * modules/isnanf-nolibm: Update references to renamed files.
32293         * modules/isnand-nolibm: Likewise.
32294         * modules/isnanf-nolibm-tests: Likewise.
32295         * modules/isnand-nolibm-tests: Likewise.
32296         * lib/frexp.c: Likewise.
32297         * lib/isfinite.c: Likewise.
32298         * lib/signbitd.c: Likewise.
32299         * lib/signbitf.c: Likewise.
32300         * lib/vasnprintf.c: Likewise.
32301         * tests/test-ceilf1.c: Likewise.
32302         * tests/test-ceilf2.c: Likewise.
32303         * tests/test-floorf1.c: Likewise.
32304         * tests/test-floorf2.c: Likewise.
32305         * tests/test-frexp.c: Likewise.
32306         * tests/test-round1.c: Likewise.
32307         * tests/test-round2.c: Likewise.
32308         * tests/test-roundf1.c: Likewise.
32309         * tests/test-strtod.c: Likewise.
32310         * tests/test-trunc1.c: Likewise.
32311         * tests/test-trunc2.c: Likewise.
32312         * tests/test-truncf1.c: Likewise.
32313         * tests/test-truncf2.c: Likewise.
32314         * NEWS: Mention the renamed header files.
32315
32316 2008-07-11  Jim Meyering  <meyering@redhat.com>
32317
32318         vc-list-files: make the last-resort awk code more portable
32319         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
32320         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
32321         does not support it.
32322
32323 2008-07-10  Eric Blake  <ebb9@byu.net>
32324
32325         Work with tar's bootstrap.
32326         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
32327         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
32328         an m4 comment.
32329
32330 2008-07-09  Jim Meyering  <meyering@redhat.com>
32331
32332         posix-shell.m4: fix typo that made this test malfunction
32333         * m4/posix-shell.m4: Remove capitalization in variable name.
32334
32335 2008-07-08  Bruno Haible  <bruno@clisp.org>
32336
32337         * m4/onceonly.m4: Update comments.
32338         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32339
32340 2008-07-04  Jim Meyering  <meyering@redhat.com>
32341
32342         * users.txt: Add vc-dwim.
32343         (bison, coreutils): Use the gitweb URL.
32344
32345 2008-07-03  Jim Meyering  <meyering@redhat.com>
32346
32347         * users.txt: Add libffcall.  From Sam Steingold.
32348
32349 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
32350
32351         getdate.y: do not ignore TZ with relative day, month or year offset
32352         * lib/getdate.y (get_date): Move the tz-handling block to follow the
32353         relative-date-handling, since otherwise, the latter would clobber the
32354         sole output (an updated Start value) of the tz-handling block.
32355         * tests/test-getdate.c: Tests for the fix
32356
32357 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32358
32359         Recognize 'foo_LIBRARIES += libgnu.a'.
32360         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
32361         makefile snippet has already specified an installation location,
32362         also using '+='.
32363
32364 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
32365
32366         getdate.y: factor out common actions
32367         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
32368         Use them in place of open-coded actions.
32369
32370 2008-07-01  Simon Josefsson  <simon@josefsson.org>
32371
32372         Add self-test for getdate module.
32373         * modules/getdate-tests: New file.
32374         * tests/test-getdate.c: New file.
32375
32376 2008-06-29  Bruno Haible  <bruno@clisp.org>
32377
32378         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
32379         .gitignore.
32380         Reported by Sylvain Beucler <beuc@beuc.net>.
32381
32382 2008-06-29  Bruno Haible  <bruno@clisp.org>
32383
32384         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
32385         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
32386
32387 2008-06-29  Bruno Haible  <bruno@clisp.org>
32388
32389         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
32390         EXTRA_DIST.
32391         Reported by Sylvain Beucler <beuc@beuc.net>.
32392
32393 2008-06-26  Jim Meyering  <meyering@redhat.com>
32394
32395         make several modules depend on the "open" module
32396         This provides slightly increased consistency when opening-for-write
32397         the name of a non-directory spelled with a trailing slash.
32398         * modules/chdir-safer: Likewise.
32399         * modules/chown: Likewise.
32400         * modules/clean-temp: Likewise.
32401         * modules/copy-file: Likewise.
32402         * modules/fchdir: Likewise.
32403         * modules/fcntl-safer: Likewise.
32404         * modules/pipe: Likewise.
32405         * modules/utime: Likewise.
32406         Prompted by Eric Blake and Bruno Haible.
32407
32408 2008-06-24  Andreas Schwab  <schwab@suse.de>
32409
32410         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
32411         literals can be used as initializers for global variables.
32412
32413 2008-06-23  Eric Blake  <ebb9@byu.net>
32414
32415         Make gnulib-cache.m4 easier to diff.
32416         * gnulib-tool (func_import): Allow newlines when reading cached
32417         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
32418
32419 2008-06-23  Bruno Haible  <bruno@clisp.org>
32420
32421         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
32422         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
32423         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
32424         m4/signalblocking.m4.
32425         (gl_PREREQ_SIGACTION): Don't invoke it.
32426         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
32427         gl_PREREQ_SIG_HANDLER_H.
32428         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32429         Don't check for sigaction here.
32430
32431 2008-06-23  Bruno Haible  <bruno@clisp.org>
32432
32433         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
32434         (install_handlers): Don't set the SA_RESETHAND flag.
32435
32436 2008-06-23  Bruno Haible  <bruno@clisp.org>
32437
32438         * m4/sigaction.m4: Comment fixes.
32439         * lib/signal.in.h: Likewise.
32440
32441 2008-06-23  Eric Blake  <ebb9@byu.net>
32442
32443         Fix typo.
32444         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
32445
32446         Avoid SA_ namespace.
32447         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
32448         Reported by Ralf Wildenhues.
32449
32450         Avoid test failure due to SA_RESTORER.
32451         * tests/test-sigaction.c (SA_MASK): New macro.
32452         (main): Avoid failing due to extension flags being set.
32453         Reported by Jim Meyering.
32454
32455         Revert use of sig-handler.h in sigprocmask.c.
32456         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
32457         it requires the existence of struct sigaction.
32458         * lib/sigprocmask.c (handler_t): Restore typedef.
32459         (rpl_signal, old_handlers): Use local type.
32460
32461 2008-06-22  Bruno Haible  <bruno@clisp.org>
32462
32463         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
32464         conditionally.
32465         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32466
32467 2008-06-22  Bruno Haible  <bruno@clisp.org>
32468
32469         * doc/posix-functions/siginterrupt.texi: Move note.
32470
32471         * lib/signal.in.h (SA_RESTART): New macro.
32472         * lib/sigaction.c: Update comment.
32473
32474         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
32475
32476         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
32477         (gl_PREREQ_SIGPROCMASK): Invoke it.
32478         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
32479
32480         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
32481
32482         * lib/sigprocmask.c: Update a comment.
32483
32484 2008-06-21  Eric Blake  <ebb9@byu.net>
32485
32486         Use sigaction module rather than signal().
32487         * modules/c-stack (Depends-on): Add sigaction.
32488         * modules/fatal-signal (Depends-on): Likewise.
32489         * modules/nanosleep (Depends-on): Likewise.
32490         * modules/sigprocmask (Files): Add sig-handler.h.
32491         * modules/sigaction (Files): Likewise.
32492         * lib/sig-handler.h (get_handler): New file, suggested by Paul
32493         Eggert.
32494         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
32495         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
32496         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
32497         (init_fatal_signals): Likewise.
32498         * lib/nanosleep.c (rpl_nanosleep): Likewise.
32499         (siginterrupt): Delete fallback.
32500         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
32501         instead.
32502         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
32503         siginterrupt.
32504
32505         New module sigaction, for mingw.
32506         * modules/sigaction: New module...
32507         * modules/sigaction-tests: ...and its test.
32508         * m4/sigaction.m4: New file.
32509         * lib/sigaction.c: Likewise.
32510         * tests/test-sigaction.c: Likewise.
32511         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
32512         * modules/signal (Makefile.am): Likewise.
32513         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
32514         needed.
32515         * doc/posix-headers/signal.texi (signal.h): Mention provided
32516         types.
32517         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
32518         that sigaction is preferable.
32519         * doc/posix-functions/sigaction.texi (sigaction): Mention new
32520         module.
32521         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32522         sigaction.
32523
32524         Improve robustness of sigprocmask by overriding signal.
32525         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
32526         is in use.
32527         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
32528         (SIGKILL, SIGSTOP): Provide fallbacks.
32529         (rpl_signal): Implement.
32530         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
32531         signal can be called inside handlers.
32532
32533         Fix nanosleep module on mingw.
32534         * modules/nanosleep (Depends-on): Add sys_select.
32535         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
32536
32537         Fix licensing of sigprocmask.
32538         * modules/raise (License): Relicense as LGPL.
32539
32540 2008-06-21  Bruno Haible  <bruno@clisp.org>
32541
32542         * lib/propername.c (proper_name_utf8): Don't use the transliterated
32543         result if it contains question marks.
32544         Reported by Michael Geng <linux@michaelgeng.de>.
32545
32546 2008-06-19  Bruno Haible  <bruno@clisp.org>
32547
32548         Fix CVS-ism.
32549         * doc/gnulib.texi: Include updated-stamp.texi.
32550         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
32551         (updated-stamp.texi): New rule.
32552         (gnulib.info): Depend on it.
32553         * doc/.gitignore: Add updated-stamp.texi.
32554         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
32555
32556 2008-06-19  Bruno Haible  <bruno@clisp.org>
32557
32558         * doc/Makefile (gnulib.info): Update and simplify dependencies.
32559         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32560
32561 2008-06-19  Eric Blake  <ebb9@byu.net>
32562
32563         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
32564         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
32565         Reported by Stepan Kasal.
32566
32567 2008-06-18  Bruno Haible  <bruno@clisp.org>
32568
32569         * lib/fatal-signal.c (init_fatal_signals): Add comment.
32570         Reported by Eric Blake.
32571
32572 2008-06-18  Eric Blake  <ebb9@byu.net>
32573
32574         Work around cygwin 1.5.25 strsignal bug.
32575         * tests/test-strsignal.c: Allow for const char *.
32576         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
32577
32578 2008-06-18  Simon Josefsson  <simon@josefsson.org>
32579
32580         * users.txt: Update URL to article and add author/date
32581         information.
32582
32583 2008-06-17  Bruno Haible  <bruno@clisp.org>
32584
32585         New macro gl_DISABLE_THREADS.
32586         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
32587         if the user did not pass --enable-threads or --disable-threads option.
32588         (gl_DISABLE_THREADS): New macro.
32589         Reported by Eric Blake <ebb9@byu.net>.
32590
32591 2008-06-17  Bruno Haible  <bruno@clisp.org>
32592
32593         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
32594         when the macro ignores it.
32595         Based on a patch by Eric Blake <ebb9@byu.net>.
32596
32597 2008-06-17  Bruno Haible  <bruno@clisp.org>
32598
32599         * modules/tls (License): Change to LGPLv2+.
32600         Reported by Eric Blake.
32601
32602 2008-06-17  Eric Blake  <ebb9@byu.net>
32603
32604         Simplify c-stack prerequisites.
32605         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
32606         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
32607         no longer requires <ucontext.h> to exist.  Optimize setrlimit
32608         check.
32609         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
32610         <sys/resource.h>.
32611
32612         Move c-stack test into testsuite.
32613         * modules/c-stack-tests: New file.
32614         * lib/c-stack.c [DEBUG]: Move test program...
32615         * tests/test-c-stack.c: ...into this new file.  Skip rather than
32616         fail test if sigaltstack is lacking.
32617         * tests/test-c-stack.sh: New driver file.
32618
32619 2008-06-16  Eric Blake  <ebb9@byu.net>
32620
32621         Use raise module consistently.
32622         * modules/fatal-signal (Depends-on): Add raise.
32623         * modules/sigprocmask (Depends-on): Likewise.
32624         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
32625         * lib/sigprocmask.c (sigprocmask): Likewise.
32626         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32627         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
32628
32629         Fix compliance bug in sigpending.
32630         * lib/sigprocmask.c (sigpending): Return pending array via
32631         parameter, not return value.
32632
32633 2008-06-14  Eric Blake  <ebb9@byu.net>
32634
32635         Improve obstack-printf test code.
32636         * tests/test-obstack-printf.c (test_function): Fix comment, and
32637         simplify usage of obstack_* in macros.  Add a test for coverage.
32638         Reported by Bruno Haible.
32639
32640 2008-06-14  Bruno Haible  <bruno@clisp.org>
32641
32642         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
32643         array size as a constant, not as a const variable.
32644         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
32645         AC_USE_SYSTEM_EXTENSIONS.
32646         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32647         Test whether the obstack_printf function actually exists.
32648         * modules/obstack-printf (Depends-on): Add extensions.
32649         (Include): Remove obstack.h.
32650         * modules/obstack-printf-posix (Depends-on): Add extensions.
32651         (Include): Remove obstack.h.
32652
32653 2008-06-13  Eric Blake  <ebb9@byu.net>
32654
32655         Add obstack-printf and obstack-printf-posix modules.
32656         * modules/obstack-printf: New file.
32657         * modules/obstack-printf-posix: Likewise.
32658         * MODULES.html.sh (Misc): Mention them.
32659         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32660         Likewise.
32661         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32662         Likewise.
32663         * modules/stdio (Makefile.am): Accomodate new modules.
32664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32665         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
32666         Declare.
32667         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
32668         functions.
32669         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
32670         (gl_REPLACE_OBSTACK_PRINTF): New macros
32671         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
32672         * tests/test-obstack-printf.c: New file.
32673         * modules/obstack-printf-tests: Likewise.
32674         * modules/obstack-printf-posix-tests: Likewise.
32675
32676 2008-06-11  Bruno Haible  <bruno@clisp.org>
32677
32678         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
32679         * lib/open.c: Include errno.h.
32680         (open): Fail when attempting to write to a file that has a trailing
32681         slash.
32682         * tests/test-open.c (main): Test against trailing slash bug.
32683         * doc/posix-functions/open.texi: Mention the trailing slash bug.
32684
32685 2008-06-10  Bruno Haible  <bruno@clisp.org>
32686
32687         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
32688         for $? to work inside the trap command, with various /bin/sh-s.
32689         * tests/test-vc-list-files-cvs.sh: Likewise.
32690
32691 2008-06-10  Bruno Haible  <bruno@clisp.org>
32692
32693         * lib/acl-internal.h: Don't include gettext.h here.
32694         * lib/set-mode-acl.c: Include gettext.h here.
32695         * lib/copy-acl.c: Likewise.
32696
32697 2008-06-10  Bruno Haible  <bruno@clisp.org>
32698
32699         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
32700         * lib/wait-process.c (wait_subprocess): Likewise.
32701         * lib/execute.h (execute): Add termsigp argument.
32702         * lib/execute.c (execute): Likewise.
32703         * lib/csharpcomp.c (compile_csharp_using_pnet,
32704         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
32705         * lib/csharpexec.c (execute_csharp_using_pnet,
32706         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
32707         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
32708         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
32709         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
32710         is_jikes_present): Update.
32711         * lib/javaexec.c (execute_java_class): Update.
32712         * lib/javaversion.c (execute_and_read_line): Update.
32713         * NEWS: Document the changes.
32714         Reported by Eric Blake.
32715
32716 2008-06-10  Eric Blake  <ebb9@byu.net>
32717
32718         Add missing include.
32719         * tests/test-strstr.c (includes): Add <signal.h>.
32720         * tests/test-strcasestr.c (includes): Likewise.
32721         * tests/test-memmem.c (includes): Likewise.
32722
32723 2008-06-10  Bruno Haible  <bruno@clisp.org>
32724
32725         * lib/wait-process.c (wait_subprocess): Add an assertion.
32726
32727 2008-06-10  Bruno Haible  <bruno@clisp.org>
32728
32729         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
32730
32731 2008-06-10  Bruno Haible  <bruno@clisp.org>
32732
32733         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
32734         using alarm().
32735         * tests/test-strcasestr.c (main): Likewise.
32736         * tests/test-strstr.c (main): Likewise.
32737
32738 2008-06-09  Bruno Haible  <bruno@clisp.org>
32739
32740         Work around the Solaris 10 ACE ACLs ABI change.
32741         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
32742         declare if ACL_NO_TRIVIAL is present.
32743         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
32744         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
32745         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
32746         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
32747         define if ACL_NO_TRIVIAL is present.
32748         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
32749         and use the current ABI.
32750         (file_has_acl): Use same #if condition as elsewhere.
32751         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
32752         in use, and use the current ABI.
32753         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
32754         Reported by Jim Meyering.
32755
32756 2008-06-09  Eric Blake  <ebb9@byu.net>
32757
32758         Work around environments that (stupidly) ignore SIGALRM.
32759         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
32760         before using alarm().
32761         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32762         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32763         Reported by Ian Beckwith <ianb@erislabs.net>.
32764
32765         Produce autobuild blurb earlier in log.
32766         * modules/autobuild (configure.ac-early): Move AB_INIT here.
32767
32768 2008-06-09  Jim Meyering  <meyering@redhat.com>
32769         and OndÅ™ej Vašík  <ovasik@redhat.com>
32770
32771         utimens.c: correct kernel bug work-around
32772         OndÅ™ej Vašík found that the invalid return value of 280 indicates
32773         failure, not success, and the kernel bug we're trying to work
32774         around affects not just the utimensat call, but also the fallback
32775         futimens call.
32776         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
32777         not success.
32778         [HAVE_FUTIMENS]: Use the same work-around, here.
32779
32780 2008-06-09  Jim Meyering  <meyering@redhat.com>
32781
32782         add more guards around definition of ACE_-related code
32783         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
32784         ALLOW and ACE_OWNER are also defined.
32785
32786 2008-06-08  Bruno Haible  <bruno@clisp.org>
32787
32788         * lib/acl-internal.h: Add me as co-author.
32789         * lib/file-has-acl.c: Likewise.
32790         * lib/set-mode-acl.c: Likewise.
32791         * lib/copy-acl.c: Likewise.
32792
32793 2008-06-08  Bruno Haible  <bruno@clisp.org>
32794
32795         Add support for AIX ACLs.
32796         * lib/acl-internal.h (acl_nontrivial): New declaration.
32797         * lib/file-has-acl.c (acl_nontrivial): New function.
32798         (file_has_acl): Add implementation using AIX 4 ACL API.
32799         * lib/set-mode-acl.c (qset_acl): Likewise.
32800         * lib/copy-acl.c (qcopy_acl): Likewise.
32801
32802 2008-06-08  Bruno Haible  <bruno@clisp.org>
32803
32804         Add support for HP-UX ACLs.
32805         * lib/acl-internal.h (acl_nontrivial): New declaration.
32806         * lib/file-has-acl.c (acl_nontrivial): New function.
32807         (file_has_acl): Add implementation using HP-UX 11 ACL API.
32808         * lib/set-mode-acl.c (qset_acl): Likewise.
32809         * lib/copy-acl.c (qcopy_acl): Likewise.
32810
32811 2008-06-08  Bruno Haible  <bruno@clisp.org>
32812
32813         Add support for Cygwin ACLs.
32814         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
32815         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
32816         the chmod_or_fchmod call.
32817         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
32818
32819 2008-06-08  Bruno Haible  <bruno@clisp.org>
32820
32821         Fix bug with setuid modes in Solaris 10+ code.
32822         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
32823         succeeded, when the mode contains some special bits.
32824
32825 2008-06-08  Bruno Haible  <bruno@clisp.org>
32826
32827         Add support for Solaris 7..10 ACLs.
32828         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
32829         declarations.
32830         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
32831         functions.
32832         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
32833         * lib/set-mode-acl.c (qset_acl): Likewise.
32834         * lib/copy-acl.c (qcopy_acl): Likewise.
32835
32836 2008-06-08  Bruno Haible  <bruno@clisp.org>
32837
32838         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
32839         declaration.
32840         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
32841         (acl_access_nontrivial): Remove MacOS X case.
32842         (file_has_acl): Use acl_extended_nontrivial.
32843         * lib/copy-acl.c (qcopy_acl): Likewise.
32844
32845 2008-06-08  Bruno Haible  <bruno@clisp.org>
32846
32847         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
32848
32849 2008-06-08  Jim Meyering  <meyering@redhat.com>
32850
32851         * modules/acl (Maintainer): Add Bruno Haible.
32852
32853 2008-06-07  Bruno Haible  <bruno@clisp.org>
32854
32855         Improve support for Tru64 ACLs.
32856         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
32857         ACL on OSF/1.
32858
32859 2008-06-07  Bruno Haible  <bruno@clisp.org>
32860
32861         Add support for MacOS X ACLs.
32862         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
32863         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
32864         * lib/set-mode-acl.c (qset_acl): Likewise.
32865         * lib/copy-acl.c (qcopy_acl): Likewise.
32866
32867 2008-06-07  Bruno Haible  <bruno@clisp.org>
32868
32869         Fix memory leak introduced on 2008-05-22.
32870         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
32871         use.
32872
32873 2008-06-07  Bruno Haible  <bruno@clisp.org>
32874
32875         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
32876         to construct an empty ACL.
32877
32878 2008-06-07  Bruno Haible  <bruno@clisp.org>
32879
32880         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
32881         precisely.
32882         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
32883
32884 2008-06-07  Bruno Haible  <bruno@clisp.org>
32885
32886         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
32887         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
32888
32889 2008-06-07  Bruno Haible  <bruno@clisp.org>
32890
32891         * doc/posix-functions/_setjmp.texi: Explain the use of this function
32892         regardless of POSIX.
32893         * doc/posix-functions/_longjmp.texi: Likewise.
32894         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
32895         SystemV platform in this case.
32896
32897 2008-06-06  Eric Blake  <ebb9@byu.net>
32898
32899         Document abort() bugs.
32900         * doc/posix-functions/abort.texi (abort): Mention anomalies.
32901
32902         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
32903         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
32904         sigsetjmp.
32905         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
32906         siglongjmp, but only as a macro.
32907         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
32908         is obsolete.
32909         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
32910
32911         Tweak documentation to cover cygwin argz bugs.
32912         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
32913         argz bug fix; no code change needed since no cygwin releases
32914         occurred between the last fix and the bug being tested.
32915         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
32916         module and recently fixed cygwin bugs.
32917         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
32918         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
32919         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
32920         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
32921         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
32922         Likewise.
32923         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
32924         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
32925         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
32926         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
32927         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
32928         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
32929         Likewise.
32930
32931         Avoid gcc warning on cygwin.
32932         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
32933         !ACL_NO_TRIVIAL]: Avoid unused variable.
32934
32935 2008-06-05  Eric Blake  <ebb9@byu.net>
32936
32937         Be tolerant of UNKNOWN version in gnulib-tool test dir.
32938         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
32939         git-version-gen fails to come up with a version.
32940         Reported by Simon Josefsson.
32941
32942 2008-06-05  Jim Meyering  <meyering@redhat.com>
32943             Paul Eggert  <eggert@cs.ucla.edu>
32944
32945         utimens.c: work around a probable Linux kernel bug
32946         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
32947         appears to be a kernel bug that causes utimensat to return 280
32948         instead of 0, indicating success.
32949
32950 2008-06-04  Bruno Haible  <bruno@clisp.org>
32951
32952         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
32953         2008-06-01 commit.
32954
32955 2008-06-04  Bruno Haible  <bruno@clisp.org>
32956
32957         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
32958         * lib/file-has-acl.c (acl_access_nontrivial): New function.
32959         (file_has_acl): Use it. Save errno afterwards.
32960         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
32961
32962 2008-06-03  Bruno Haible  <bruno@clisp.org>
32963
32964         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
32965         draft code. Simplify #ifs.
32966         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
32967         Put Solaris code after POSIX-draft code. Fix comments regarding
32968         Solaris 10, HP-UX. Mention Cygwin.
32969         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
32970
32971 2008-06-03  Eric Blake  <ebb9@byu.net>
32972
32973         Provide fallback for older kernels.
32974         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
32975         Provide runtime fallback if kernel lacks support.
32976         Reported by Mike Frysinger.
32977
32978 2008-06-02  Bruno Haible  <bruno@clisp.org>
32979
32980         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
32981         it exists.
32982
32983 2008-06-02  Bruno Haible  <bruno@clisp.org>
32984
32985         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
32986         * lib/copy-acl.c (qcopy_acl): Update comment.
32987
32988 2008-06-02  Bruno Haible  <bruno@clisp.org>
32989
32990         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
32991         like ACL APIs.
32992
32993 2008-06-02  Bruno Haible  <bruno@clisp.org>
32994
32995         * tests/test-file-has-acl.sh: Use different code for Cygwin.
32996         * tests/test-set-mode-acl.sh: Likewise.
32997         * tests/test-copy-acl.sh: Likewise.
32998         * tests/test-copy-file.sh: Likewise.
32999
33000 2008-06-02  Bruno Haible  <bruno@clisp.org>
33001
33002         * tests/test-file-has-acl.sh: Remove unused code.
33003
33004 2008-06-01  Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33007         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33008         messages.
33009         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33010
33011 2008-06-01  Bruno Haible  <bruno@clisp.org>
33012
33013         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33014         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33015         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33016         APIs.
33017         * modules/acl-tests (configure.ac): Remove tests now contained in
33018         m4/acl.m4.
33019
33020 2008-06-02  Jim Meyering  <meyering@redhat.com>
33021
33022         announce-gen: use a better key-server host name
33023         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33024         it may be more consistently reliable.  Suggested by Werner Koch
33025         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33026
33027 2008-06-01  Bruno Haible  <bruno@clisp.org>
33028
33029         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33030         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33031
33032 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33033
33034         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33035
33036 2008-06-01  Bruno Haible  <bruno@clisp.org>
33037
33038         New ACL tests.
33039         * tests/test-file-has-acl.sh: New file.
33040         * tests/test-file-has-acl.c: New file.
33041         * tests/test-set-mode-acl.sh: New file.
33042         * tests/test-set-mode-acl.c: New file.
33043         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33044         * tests/test-copy-acl.c: New file.
33045         * modules/acl-tests: New file, based on modules/copy-file-tests.
33046         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
33047         (Depends-on): Add acl-tests.
33048         (configure.ac): Remove checks.
33049         (Makefile.am): Don't create test-sameacls program here any more.
33050
33051 2008-06-01  Bruno Haible  <bruno@clisp.org>
33052
33053         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
33054         * tests/test-sameacls.c: Include progname.h.
33055         (main): Invoke set_program_name. Portability fixes for MacOS X,
33056         Solaris, HP-UX.
33057
33058 2008-06-01  Bruno Haible  <bruno@clisp.org>
33059
33060         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
33061         function.
33062         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
33063
33064 2008-06-01  Bruno Haible  <bruno@clisp.org>
33065
33066         * modules/rpmatch (Depends-on): Add strdup.
33067
33068 2008-06-01  Bruno Haible  <bruno@clisp.org>
33069
33070         * lib/pipe.c: Include unistd-safer.h.
33071         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
33072         * modules/pipe (Depends-on): Add unistd-safer.
33073
33074 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33075
33076         * modules/autobuild (configure.ac): Call AB_INIT.
33077
33078 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33079
33080         * tests/test-getaddrinfo.c: Don't print debug messages by default.
33081         Suggested by Bruno Haible <bruno@clisp.org>.
33082
33083 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33084
33085         * tests/test-base64.c: Cast size_t to unsigned long when invoking
33086         printf.  Use %lu instead of %d.  Reported by Bruno Haible
33087         <bruno@clisp.org>.
33088
33089 2008-05-29  Eric Blake  <ebb9@byu.net>
33090
33091         Prefer new POSIX 200x interfaces over futimesat.
33092         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
33093         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
33094         when available.
33095         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
33096
33097 2008-05-28  Bruno Haible  <bruno@clisp.org>
33098
33099         * modules/stpcpy (License): Change to LGPLv2+.
33100         Requested by David Lutterkort <dlutter@redhat.com>.
33101
33102 2008-05-27  Bruno Haible  <bruno@clisp.org>
33103
33104         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
33105         current mingw.
33106         Reported by Jose E. Marchesi <jemarch@gnu.org>.
33107
33108 2008-05-27  Bruno Haible  <bruno@clisp.org>
33109
33110         * modules/iconv_open (Link): New section, from module 'iconv'.
33111         * modules/striconv (Link): Likewise.
33112         * modules/striconveh (Link): Likewise.
33113         * modules/xstriconv (Link): Likewise.
33114         * modules/unicodeio (Link): Likewise.
33115         * modules/propername (Link): Likewise.
33116         Reported by Jim Meyering.
33117
33118 2008-05-26  Jim Meyering  <meyering@redhat.com>
33119
33120         sha256: do not artificially restrict buffer length to be < 2^32
33121         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
33122         uint32_t to size_t.
33123         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
33124         to match.
33125
33126         avoid unaligned access errors, e.g., on sparc
33127         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
33128         direct access through a possibly-unaligned uint64* pointer.
33129         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
33130         direct access through a possibly-unaligned uint32* pointer.
33131         Prompted by this patch from Tom "spot" Callaway:
33132         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
33133
33134         sha512.c: fix typo in comment
33135         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
33136
33137 2008-05-25  Bruno Haible  <bruno@clisp.org>
33138
33139         * lib/set-mode-acl.c: Renamed from lib/acl.c.
33140         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
33141         (Makefile.am): Update lib_SOURCES.
33142
33143 2008-05-25  Bruno Haible  <bruno@clisp.org>
33144
33145         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
33146
33147 2008-05-25  Jim Meyering  <meyering@redhat.com>
33148
33149         useless-if-before-free: freed expr may have white-space differences
33150         * build-aux/useless-if-before-free: Recognize cases in which the
33151         freed expression differs from the tested one in embedded white
33152         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
33153         $1 was used, so we can't make any regexp shy.  Improved tests now
33154         detect this.
33155
33156         useless-if-before-free: accept white space in the expression.
33157         * build-aux/useless-if-before-free: For now, any white space
33158         in the expression must be identical in the free argument.
33159
33160         useless-if-before-free: efficiency tweak
33161         * build-aux/useless-if-before-free: Make the expression-matching
33162         regexp "shy".
33163         Make the *outer* regexp shy, not the expr-matching one.
33164
33165         update code-in-comment to accept cast of free arg
33166         * build-aux/useless-if-before-free: Update regexp.
33167
33168 2008-05-25  Bruno Haible  <bruno@clisp.org>
33169
33170         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
33171         * modules/copy-file-tests (Files, Makefile.am): Update.
33172         * tests/test-copy-file.c (func_test_copy): Update.
33173
33174 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
33175
33176         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
33177
33178 2008-05-23  Bruno Haible  <bruno@clisp.org>
33179
33180         Improve support for ACLs on OSF/1.
33181         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
33182         Remove fallback for unknown flavors of ACLs.
33183
33184 2008-05-22  Bruno Haible  <bruno@clisp.org>
33185
33186         Add support for ACLs on OSF/1.
33187         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
33188         replacements.
33189         (acl_free_text): New macro fallback.
33190         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33191         acl_free.
33192         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
33193         acl_free_text function. Require AC_C_INLINE.
33194
33195 2008-05-22  Bruno Haible  <bruno@clisp.org>
33196
33197         Make copy_acl work on MacOS X 10.5.
33198         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
33199         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
33200         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
33201         If MODE_INSIDE_ACL, don't assume that every system has the same text
33202         representation for ACLs as FreeBSD.
33203         * lib/copy-acl.c (copy_acl): Add support for platforms with
33204         !MODE_INSIDE_ACL.
33205         * lib/file-has-acl.c (file_has_acl): Likewise.
33206         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
33207         FreeBSD, MacOS X, or IRIX, respectively.
33208
33209 2008-05-22  Bruno Haible  <bruno@clisp.org>
33210
33211         * lib/acl.h: Don't include <sys/acl.h>.
33212         (GETACLCNT): Move fallback to lib/acl-internal.h.
33213         * lib/acl-internal.h: Include <sys/acl.h> here.
33214         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
33215
33216 2008-05-22  Bruno Haible  <bruno@clisp.org>
33217
33218         Split off copy_acl function to separate file.
33219         * lib/copy-acl.c: New file, extracted from lib/acl.c.
33220         * lib/acl.c (copy_acl): Moved function to separate file.
33221         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
33222         * modules/acl (Files): Add lib/copy-acl.c.
33223         (Makefiles.am): Augment lib_SOURCES.
33224
33225 2008-05-22  Bruno Haible  <bruno@clisp.org>
33226
33227         * modules/copy-file-tests: New file.
33228         * tests/test-copy-file.sh: New file.
33229         * tests/test-copy-file.c: New file.
33230         * tests/test-copy-file-sameacls.c: New file.
33231
33232 2008-05-22  Eric Blake  <ebb9@byu.net>
33233
33234         Avoid gcc warning.
33235         * tests/test-memcmp.c (main): Pass NULL indirectly.
33236
33237 2008-05-21  Bruno Haible  <bruno@clisp.org>
33238
33239         Add reference doc about ACLs.
33240         * doc/acl-resources.txt: New file.
33241         * doc/acl-cygwin.txt: New file.
33242
33243 2008-05-21  Bruno Haible  <bruno@clisp.org>
33244
33245         Avoid one more warning from gcc.
33246         * lib/vasnprintf.c (IF_LINT): Update comments.
33247         (VASNPRINTF): Use it also for the 'prefix' array initializer.
33248
33249 2008-05-21  Jim Meyering  <meyering@redhat.com>
33250
33251         avoid a warning from gcc
33252         * lib/vasnprintf.c (IF_LINT): Define.
33253         (scale10_round_decimal_long_double):
33254         Use it to avoid a "may be used uninitialized" warning.
33255         (scale10_round_decimal_double): Likewise.
33256
33257 2008-05-21  Simon Josefsson  <simon@josefsson.org>
33258
33259         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
33260         declared.
33261
33262 2008-05-20  Bruno Haible  <bruno@clisp.org>
33263
33264         * tests/test-memcmp.c (main): Test also the sign of the result. Test
33265         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
33266
33267 2008-05-20  Simon Josefsson  <simon@josefsson.org>
33268
33269         * modules/memcmp-tests: New file.
33270         * tests/test-memcmp.c: New file.
33271
33272 2008-05-19  Bruno Haible  <bruno@clisp.org>
33273
33274         * modules/propername (Notice, configure.ac): Put quoted "..." into
33275         --keyword option.
33276         * lib/propername.h: Update comments accordingly.
33277         Reported by Eric Blake.
33278
33279 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
33280
33281         * modules/getpass-gnu (Depends-on): Add fseeko.
33282
33283 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33284
33285         * modules/base64-tests: New file.
33286
33287 2008-05-19  Bo Borgerson <gigabo@gmail.com>
33288
33289         * lib/base64.c (base64_decode_ctx): If a decode context structure
33290         was passed in use it to ignore newlines.  If a context structure
33291         was _not_ passed in, continue to treat newlines as garbage (this
33292         is the historical behavior).  Formerly base64_decode.
33293         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33294         takes a decode context structure.
33295         * lib/base64.h (base64_decode): Macro for four-argument calls.
33296         (base64_decode_alloc): Likewise.
33297         * lib/base64.c (base64_decode_ctx): If a decode context structure
33298         was passed in use it to ignore newlines.  If a context structure
33299         was _not_ passed in, continue to treat newlines as garbage (this
33300         is the historical behavior).  Formerly base64_decode.
33301         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33302         takes a decode context structure.
33303         * lib/base64.h (base64_decode): Macro for four-argument calls.
33304         (base64_decode_alloc): Likewise.
33305
33306 2008-05-19  Jim Meyering  <meyering@redhat.com>
33307
33308         avoid a warning from gcc
33309         * lib/trim.c (IF_LINT): Define.
33310         (trim2): Use it to avoid a "may be used uninitialized" warning.
33311
33312         Fix doc typo.
33313         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
33314
33315 2008-05-19  Bruno Haible  <bruno@clisp.org>
33316
33317         * doc/glibc-functions/getpass.texi: Document limits of other
33318         implementations.
33319
33320 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33321             Bruno Haible <bruno@clisp.org>
33322
33323         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
33324
33325 2008-05-18  Bruno Haible  <bruno@clisp.org>
33326
33327         * modules/propername: New file, from GNU gettext.
33328         * lib/propername.h: New file, from GNU gettext.
33329         * lib/propername.c: New file, from GNU gettext.
33330         * MODULES.html.sh (Internationalization functions): Add propername.
33331
33332 2008-05-16  Jim Meyering  <meyering@redhat.com>
33333             Bruno Haible  <bruno@clisp.org>
33334
33335         Avoid some warnings from "gcc -Wshadow".
33336         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
33337
33338 2008-05-15  Eric Blake  <ebb9@byu.net>
33339
33340         Extend previous patch to cygwin 1.7.0.
33341         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
33342         fast implementation in cygwin >= 1.7.0.
33343         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33344         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33345
33346 2008-05-15  Bruno Haible  <bruno@clisp.org>
33347
33348         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
33349         implementation in glibc >= 2.9.
33350         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33352
33353 2008-05-15  Bruno Haible  <bruno@clisp.org>
33354
33355         * MODULES.html.sh (Internationalization functions): Remove linebreak.
33356         (Unicode string functions): Add unilbrk/*.
33357         Reported by Karl Berry.
33358
33359 2008-05-15  Eric Blake  <ebb9@byu.net>
33360
33361         Fix violation of <stdbool.h> replacement in regex.
33362         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
33363         * lib/regexec.c (re_search_internal): Likewise.
33364         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
33365
33366 2008-05-15  Jim Meyering  <meyering@redhat.com>
33367
33368         avoid distracting test output when git or cvs is not found
33369         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
33370         * tests/test-vc-list-files-git.sh: Likewise.
33371
33372 2008-05-15  Eric Blake  <ebb9@byu.net>
33373
33374         Glibc finally accepted the memmem speedup code, bugzilla #5514.
33375         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
33376         glibc version.
33377         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33378         * doc/posix-functions/strstr.texi (strstr): Likewise.
33379         * lib/str-two-way.h (MAX): Sychronize with glibc.
33380
33381 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
33382
33383         * lib/regcomp.c (optimize_utf8): Add a note on why we test
33384         opr.ctx_type.
33385         (calc_first): Initialize constraint field.
33386         (duplicate_node_closure): Use it instead of special casing ANCHORS.
33387         Fix grammar.
33388         (duplicate_node): Merge constraint field for all node types.
33389         (calc_eclosure_iter): Look at constraint field for all node types.
33390         * lib/regex_internal.c (create_cd_newstate): Don't look at
33391         opr.ctx_type.
33392
33393 2008-05-14  Bruno Haible  <bruno@clisp.org>
33394
33395         Help GCC to do better code generation.
33396         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
33397         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
33398         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
33399         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
33400         Declare with attribute 'malloc' if supported.
33401
33402 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
33403
33404         use "echo STR|wc -c" rather than unportable "expr length STR"
33405         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
33406         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
33407
33408 2008-05-14  Jim Meyering  <meyering@redhat.com>
33409
33410         use dd ibs=$n count=1 ... rather than less-portable head -c$n
33411         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
33412         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
33413         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
33414         via Collin Lasse.
33415
33416 2008-05-14  Eric Blake  <ebb9@byu.net>
33417
33418         Avoid quadratic growth in gl_LIBSOURCES.
33419         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
33420         Suggested by Bruno Haible.
33421
33422         Test xmemdup0.
33423         * modules/xmemdup0-tests: New file.
33424         * tests/test-xmemdup0.c: Likewise.
33425
33426 2008-05-13  Eric Blake  <ebb9@byu.net>
33427
33428         Split xmemdup0 into its own module.
33429         * modules/xmemdup0: New file.
33430         * lib/xmemdup0.h: Likewise.
33431         * lib/xmemdup0.c: Likewise.
33432         * MODULES.html.sh (Memory management functions): Add xmemdup0.
33433         * lib/xalloc.h (xmemdup0): Remove.
33434         * lib/xmalloc.c (xmemdup0): Likewise.
33435
33436 2008-05-13  Eric Blake  <ebb9@byu.net>
33437             Bruno Haible  <bruno@clisp.org>
33438
33439         Reduce number of forks required during autoconf.
33440         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
33441         and gl_LIBSOURCES_DIR.
33442         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
33443         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
33444         m4_syscmd per file.
33445         <m4_foreach_w>: Move...
33446         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
33447
33448 2008-05-13  Eric Blake  <ebb9@byu.net>
33449
33450         * gnulib-tool: Fix various comment typos.
33451
33452 2008-05-12  Bruno Haible  <bruno@clisp.org>
33453
33454         Tailor the linebreaking algorithm.
33455         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
33456
33457 2008-05-12  Bruno Haible  <bruno@clisp.org>
33458
33459         Update to Unicode 5.0.0.
33460         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33461         LBP_JV, LBP_JT. Redistribute values.
33462         (unilbrk_table): Change size.
33463         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
33464         Unicode TR#14 rev. 22.
33465         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33466         LBP_JV, LBP_JT. Redistribute values.
33467         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
33468         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
33469         Update.
33470         * lib/unilbrk/lbrkprop1.h: Regenerated.
33471         * lib/unilbrk/lbrkprop2.h: Regenerated.
33472         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
33473         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
33474         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
33475         Likewise.
33476         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
33477         Likewise.
33478         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
33479         result.
33480         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
33481         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
33482         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
33483         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
33484         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
33485         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
33486
33487 2008-05-11  Bruno Haible  <bruno@clisp.org>
33488
33489         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
33490
33491 2008-05-11  Bruno Haible  <bruno@clisp.org>
33492
33493         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
33494         * modules/unilbrk/gen-lbrk: New file.
33495
33496 2008-05-11  Bruno Haible  <bruno@clisp.org>
33497
33498         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
33499         * m4/sha512.m4 (gl_SHA512): Likewise.
33500
33501 2008-05-11  Jim Meyering  <meyering@redhat.com>
33502
33503         New modules: crypto/sha256, crypto/sha512 (from coreutils)
33504         * modules/crypto/sha256: New file.
33505         * modules/crypto/sha512: Likewise.
33506         * lib/sha256.c: Likewise.
33507         * lib/sha256.h: Likewise.
33508         * lib/sha512.c: Likewise.
33509         * lib/sha512.h: Likewise.
33510         * lib/u64.h: Likewise.
33511         * m4/sha256.m4: Likewise.
33512         * m4/sha512.m4: Likewise.
33513         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
33514
33515 2008-05-10  Bruno Haible  <bruno@clisp.org>
33516
33517         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
33518         (Input/Output <stdio.h>): Add xprintf.
33519         (Signal handling <signal.h>): Add strsignal.
33520         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
33521         (Core language properties): Add func.
33522         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
33523         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
33524         strings.
33525         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
33526         (Input/output): New section.
33527         (File system functions): Add openat-die, stat-macros.
33528         (Networking functions): Add sockets.
33529         (Unicode string functions): Add unictype/*.
33530         (Support for building libraries and executables): Add gperf.
33531         (Support for building documentation): Add agpl-3.0.
33532         (Misc): Add nocrash.
33533
33534 2008-05-10  Bruno Haible  <bruno@clisp.org>
33535
33536         * modules/unictype/gen-ctype: New file.
33537
33538 2008-05-10  Jim Meyering  <meyering@redhat.com>
33539
33540         Make chdir-safer.c more efficient on a system with no symlinks.
33541         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
33542         also if ELOOP is zero.  Suggested by Bruno Haible.
33543
33544         Make chdir-safer.c slightly safer.
33545         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
33546         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
33547
33548         Avoid compile failure on systems without ELOOP (like mingw).
33549         * lib/chdir-safer.c (ELOOP): Define if not already defined.
33550         Reported by Bruno Haible.
33551
33552 2008-05-10  Bruno Haible  <bruno@clisp.org>
33553
33554         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
33555         (is_utf8_encoding): Use a case-insensitive comparison.
33556         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
33557         streq.
33558
33559 2008-05-10  Bruno Haible  <bruno@clisp.org>
33560
33561         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
33562         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
33563         * lib/unilbrk/ulc-common.h (iconv_string_length,
33564         iconv_string_keeping_offsets): Remove declarations.
33565         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
33566         Don't include <iconv.h>, streq.h, xsize.h.
33567         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
33568         conversion.
33569         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
33570         <iconv.h>, streq.h, xsize.h.
33571         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
33572         conversion.
33573         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
33574         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
33575         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
33576         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
33577
33578 2008-05-10  Bruno Haible  <bruno@clisp.org>
33579
33580         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
33581         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
33582
33583         * modules/unilbrk/u32-width-linebreaks-tests: New file.
33584         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
33585
33586         * modules/unilbrk/u16-width-linebreaks-tests: New file.
33587         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
33588
33589         * modules/unilbrk/u8-width-linebreaks-tests: New file.
33590         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
33591
33592         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
33593         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
33594
33595         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
33596         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
33597
33598         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
33599         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
33600
33601         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
33602         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
33603
33604 2008-05-10  Bruno Haible  <bruno@clisp.org>
33605
33606         Split up 'linebreak' module.
33607         * lib/unilbrk.h: New file, based on lib/linebreak.h.
33608         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
33609         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
33610         modifications.
33611         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
33612         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
33613         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
33614         lib/linebreak.c.
33615         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
33616         lib/linebreak.c.
33617         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
33618         lib/linebreak.c.
33619         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
33620         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
33621         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
33622         lib/linebreak.c.
33623         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
33624         lib/linebreak.c.
33625         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
33626         lib/linebreak.c.
33627         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
33628         lib/linebreak.c.
33629         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
33630         lib/linebreak.c.
33631         * modules/unilbrk/base: New file.
33632         * modules/unilbrk/tables: New file.
33633         * modules/unilbrk/u8-possible-linebreaks: New file.
33634         * modules/unilbrk/u16-possible-linebreaks: New file.
33635         * modules/unilbrk/u32-possible-linebreaks: New file.
33636         * modules/unilbrk/ulc-common: New file.
33637         * modules/unilbrk/ulc-possible-linebreaks: New file.
33638         * modules/unilbrk/u8-width-linebreaks: New file.
33639         * modules/unilbrk/u16-width-linebreaks: New file.
33640         * modules/unilbrk/u32-width-linebreaks: New file.
33641         * modules/unilbrk/ulc-width-linebreaks: New file.
33642         * lib/linebreak.h: Remove file.
33643         * lib/linebreak.c: Remove file.
33644         * m4/linebreak.m4: Remove file.
33645         * modules/linebreak: Remove file.
33646         * NEWS: Mention the changes.
33647
33648 2008-05-09  Eric Blake  <ebb9@byu.net>
33649
33650         Add xmemdup0.
33651         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
33652         implementation.
33653         * lib/xmalloc.c (xmemdup0): New C implementation.
33654
33655 2008-05-08  Bruno Haible  <bruno@clisp.org>
33656
33657         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
33658
33659 2008-05-07  Eric Blake  <ebb9@byu.net>
33660
33661         Support cross-compilation of <wctype.h>.
33662         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
33663         AC_CACHE_CHECK.
33664
33665 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
33666
33667         * build-aux/vc-list-files: Add support for bzr.
33668
33669 2008-05-03  Jim Meyering  <meyering@redhat.com>
33670
33671         avoid failed assertion with tight malloc
33672         * tests/test-getndelim2.c: Correct an off-by-one assertion.
33673
33674 2008-05-03  Simon Josefsson  <simon@josefsson.org>
33675
33676         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
33677         are needed from arpa/inet.h.
33678         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
33679         Reported by Bruno Haible.
33680
33681 2008-05-02  Jim Meyering  <meyering@redhat.com>
33682
33683         avoid compilation error on FreeBSD 6
33684         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
33685
33686 2008-05-01  Jim Meyering  <meyering@redhat.com>
33687
33688         useless-if-before-free: correct --help's exit status description
33689         * build-aux/useless-if-before-free (usage): Like grep, exit 0
33690         for one or more matches, etc.  Reported by Bruno Haible.
33691
33692         vc-list-files: make the stand-alone gnulib test work
33693         * modules/vc-list-files-tests (configure.ac):
33694         Define and AC_SUBST abs_aux_dir.
33695         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
33696         $(abs_top_srcdir) to each script and having each of them
33697         duplicate the work of setting PATH, set PATH here, using
33698         the new variable, abs_aux_dir instead.
33699         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
33700         * tests/test-vc-list-files-git.sh: Likewise.
33701         Reported by Bruno Haible.
33702
33703 2008-05-01  Bruno Haible  <bruno@clisp.org>
33704
33705         * lib/getndelim2.c (getndelim2): Fix newsize computation during
33706         reallocation. Rename 'done' to 'found_delimiter'.
33707
33708 2008-05-01  Jim Meyering  <meyering@redhat.com>
33709
33710         vc-list-files: accommodate /bin/sh like the one from Solaris 10
33711         * build-aux/vc-list-files: Use `...`, not $(...).
33712
33713 2008-04-30  Jim Meyering  <meyering@redhat.com>
33714
33715         add tests for vc-list-files
33716         * modules/vc-list-files-tests: New module.
33717         * tests/test-vc-list-files-cvs.sh: New file.
33718         * tests/test-vc-list-files-git.sh: New file.
33719
33720         avoid a warning from gcc
33721         * lib/getndelim2.c (IF_LINT): Define.
33722         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
33723
33724         vc-list-files: work properly with build-aux/cvsu, too
33725         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
33726         to all cvs-based clauses.
33727
33728         vc-list-files: work properly in the CVS+awk case, too
33729         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
33730
33731         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
33732         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
33733         take more than one file argument, so .  Add quotes, just in case $dir
33734         ever contains a shell meta-character.  Prompted by Soren Hansen in
33735         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
33736
33737 2008-04-29  Eric Blake  <ebb9@byu.net>
33738
33739         Optimize getndelim2 to use block operations when possible.
33740         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
33741         freadseek, and memchr2.
33742         * lib/getndelim2.c (getndelim2): Use them for block reads.
33743
33744 2008-04-29  Bruno Haible  <bruno@clisp.org>
33745
33746         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
33747         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33748         * modules/inet_ntop (Depends-on): Add extensions.
33749         * modules/inet_pton (Depends-on): Likewise.
33750         Reported by Simon Josefsson.
33751
33752 2008-04-29  Jim Meyering  <meyering@redhat.com>
33753
33754         When the is more than one match in a block, match all of them.
33755         * build-aux/useless-if-before-free: Iterate through each block
33756         until there are no more matches.
33757
33758         Fix broken useless-if-before-free script.
33759         * build-aux/useless-if-before-free: Fix typo: missing "?" after
33760         the expression to match cast of argument to free-like function.
33761
33762 2008-04-29  Eric Blake  <ebb9@byu.net>
33763
33764         Use new header.
33765         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
33766
33767 2008-04-29  Jim Meyering  <meyering@redhat.com>
33768
33769         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
33770         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
33771         by gnulib to exist and to declare e.g., inet_ntop.
33772         Don't include "inet_ntop.h", now removed.
33773
33774         * m4/arpa_inet_h.m4: Remove trailing blanks.
33775
33776 2008-04-29  Eric Blake  <ebb9@byu.net>
33777
33778         Silence valgrind on safe reads beyond potential array bounds.
33779         * lib/rawmemchr.valgrind: New file.
33780         * lib/strchrnul.valgrind: Likewise.
33781         * modules/rawmemchr (Files): Distribute new file.
33782         * modules/strchrnul (Files): Likewise.
33783         Suggested by Bruno Haible.
33784
33785 2008-04-29  Bruno Haible  <bruno@clisp.org>
33786
33787         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
33788         (inet_ntop, inet_pton): Change portability warning's wording.
33789         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
33790         Invoke gl_CHECK_NEXT_HEADERS.
33791         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
33792         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
33793         set ARPA_INET_H.
33794         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33795         * modules/arpa_inet (Description): No longer only for systems that
33796         lack it.
33797         (Depends-on): Add include_next.
33798         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
33799         HAVE_ARPA_INET_H.
33800
33801 2008-04-29  Jim Meyering  <meyering@redhat.com>
33802
33803         * modules/mkdir (License): Re-license as LGPLv2+.
33804
33805 2008-04-29  Bruno Haible  <bruno@clisp.org>
33806
33807         * modules/rawmemchr (Maintainer): Set to Eric.
33808         * modules/strchrnul (Maintainer): Likewise.
33809
33810 2008-04-29  Simon Josefsson  <simon@josefsson.org>
33811
33812         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
33813         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
33814
33815         * modules/arpa_inet (arpa/inet.h): Use them.
33816
33817 2008-04-28  Eric Blake  <ebb9@byu.net>
33818
33819         Test getndelim2.
33820         * modules/getndelim2-tests: New file.
33821         * tests/test-getndelim2.c: Likewise.
33822         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
33823         stream.
33824         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
33825
33826         * MODULES.html.sh: Document new module.
33827
33828 2008-04-20  Bruno Haible  <bruno@clisp.org>
33829
33830         * lib/c-stack.c (die): Use raise.
33831         * modules/c-stack (Depends-on): Add raise.
33832
33833 2008-04-28  Bruno Haible  <bruno@clisp.org>
33834
33835         Expect rpmatch to be declared.
33836         * lib/yesno.c (rpmatch): Remove declaration.
33837
33838         Declare rpmatch.
33839         * lib/stdlib.in.h (rpmatch): New declaration.
33840         * lib/rpmatch.c: Include <stdlib.h> first.
33841         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
33842         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
33843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
33844         HAVE_RPMATCH.
33845         * modules/rpmatch (Depends-on): Add stdlib, extensions.
33846         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33847         (Include): Set to <stdlib.h>.
33848         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
33849         HAVE_RPMATCH.
33850         * NEWS: Document the change.
33851
33852 2008-04-28  Bruno Haible  <bruno@clisp.org>
33853
33854         Change rpmatch to use nl_langinfo when appropriate.
33855         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
33856         (N_): New macro.
33857         (localized_pattern): New function/macro.
33858         (try): Remove match, nomatch arguments. Copy the pattern into safe
33859         memory before caching it.
33860         (rpmatch): Use localized_pattern. Add translator comments.
33861         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
33862         Suggested by Eric Blake.
33863         * modules/rpmatch (Depends-on): Add stdbool.
33864
33865 2008-04-28  Eric Blake  <ebb9@byu.net>
33866
33867         Add rawmemchr module, matching glibc.
33868         * modules/string (Makefile.am): New indicator.
33869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
33870         * lib/string.in.h (rawmemchr): Declare when appropriate.
33871         * modules/rawmemchr: New file.
33872         * m4/rawmemchr.m4: Likewise.
33873         * lib/rawmemchr.c: Likewise.
33874         * modules/rawmemchr-tests: Likewise.
33875         * tests/test-rawmemchr.c: Likewise.
33876         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
33877         module.
33878         * modules/strchrnul (Depends-on): Add rawmemchr.
33879         * lib/strchrnul.c (strchrnul): Optimize a corner case.
33880
33881         Whitespace cleanup.
33882         * tests/test-strchrnul.c: Reindent.
33883         * lib/strchrnul.c: Likewise.
33884
33885         Optimize and test strchrnul.
33886         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
33887         * modules/strchrnul-tests: New file.
33888         * tests/test-strchrnul.c: Likewise.
33889
33890         Remove intprops dependency.
33891         * modules/memchr (Depends-on): Remove intprops.
33892         * modules/memrchr (Depends-on): Likewise.
33893         * modules/memchr2 (Depends-on): Likewise.
33894         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
33895         * lib/memrchr.c (__memrchr): Likewise.
33896         * lib/memrchr2.c (memchr2): Likewise.
33897         Reported by Simon Josefsson.
33898
33899 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33900
33901         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
33902         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33903
33904 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33905
33906         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
33907
33908         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
33909
33910         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
33911
33912         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
33913         declarations.
33914         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
33915
33916         * m4/inet_pton.m4: Don't check for header files.
33917
33918         * m4/inet_ntop.m4: Don't check for header files.
33919
33920 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33921
33922         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
33923         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
33924         trigger for cygwin).
33925         Reported by Bruno Haible  <bruno@clisp.org>.
33926
33927 2008-04-28  Bruno Haible  <bruno@clisp.org>
33928
33929         * doc/posix-functions/strdup.texi: Mention mingw problem.
33930
33931 2008-04-27  Bruno Haible  <bruno@clisp.org>
33932
33933         * modules/stat-time-tests (Depends-on): Add sleep.
33934         * tests/test-stat-time.c (force_unlink): New function.
33935         (cleanup): Use it.
33936         (test_mtime): Remove the ctime related tests.
33937         (test_ctime): New function, containing the ctime related tests.
33938         (main): Call test_ctime, except on native Windows platforms.
33939
33940 2008-04-27  Bruno Haible  <bruno@clisp.org>
33941
33942         * lib/rpmatch.c (rpmatch): Add some comments.
33943         Reported by James Youngman <jay@gnu.org>.
33944
33945 2008-04-27  Bruno Haible  <bruno@clisp.org>
33946
33947         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
33948         quiet NaNs.
33949
33950 2008-04-27  Bruno Haible  <bruno@clisp.org>
33951
33952         Make test-yesno.sh work on mingw.
33953         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
33954         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
33955         (main): Set stdin to binary mode.
33956         * modules/yesno-tests (Depends-on): Add binary-io.
33957
33958 2008-04-27  Bruno Haible  <bruno@clisp.org>
33959
33960         Fix 'isfinite' on x86, x86_64, ia64 platforms.
33961         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
33962         argument that lie outside the IEEE 854 domain.
33963         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
33964         (gl_ISFINITE): Use it.
33965         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
33966
33967 2008-04-27  Bruno Haible  <bruno@clisp.org>
33968
33969         Allow local renaming in config.h.
33970         * lib/memrchr.c (memrchr): Don't undefine outside libc.
33971
33972 2008-04-27  Bruno Haible  <bruno@clisp.org>
33973
33974         * lib/memchr.c (__memchr): Change type of 'i'.
33975         * lib/memchr2.c (memchr2): Likewise.
33976
33977 2008-04-26  Eric Blake  <ebb9@byu.net>
33978         and Bruno Haible  <bruno@clisp.org>
33979
33980         Optimize and test memrchr.
33981         * modules/memrchr (Depends-on): Add intprops.
33982         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
33983         * modules/memrchr-tests: New file.
33984         * tests/test-memrchr.c: New file.
33985
33986 2008-04-26  Bruno Haible  <bruno@clisp.org>
33987
33988         Add tentative support for DragonFly BSD.
33989         * lib/stdio-impl.h: Add macros for DragonFly BSD.
33990         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
33991         fp.
33992         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
33993         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
33994         * lib/fpurge.c (fpurge): Likewise.
33995         * lib/freadable.c (freaadable): Likewise.
33996         * lib/freadahead.c (freadahead): Likewise.
33997         * lib/freading.c (freading): Likewise.
33998         * lib/freadptr.c (freadptr): Likewise.
33999         * lib/freadseek.c (freadptrinc): Likewise.
34000         * lib/fseeko.c (fseeko): Likewise.
34001         * lib/fseterr.c (fseterr): Likewise.
34002         * lib/fwritable.c (fwritable): Likewise.
34003         * lib/fwriting.c (fwriting): Likewise.
34004
34005 2008-04-26  Bruno Haible  <bruno@clisp.org>
34006
34007         * lib/stdio-impl.h: New file.
34008         * lib/fbufmode.c: Include stdio-impl.h.
34009         (fbufmode): Use fp_, remove redundant #defines.
34010         * lib/fflush.c: Include stdio-impl.h.
34011         (clear_ungetc_buffer): Remove redundant #defines.
34012         * lib/fpurge.c: Include stdio-impl.h.
34013         (fpurge): Remove redundant #defines.
34014         * lib/freadable.c: Include stdio-impl.h.
34015         (freadable): Remove redundant #defines.
34016         * lib/freadahead.c: Include stdio-impl.h.
34017         (freadahead): Remove redundant #defines.
34018         * lib/freading.c: Include stdio-impl.h.
34019         (freading): Remove redundant #defines.
34020         * lib/freadptr.c: Include stdio-impl.h.
34021         (freadptr): Remove redundant #defines.
34022         * lib/freadseek.c: Include stdio-impl.h.
34023         (freadptrinc): Remove redundant #defines.
34024         * lib/fseeko.c: Include stdio-impl.h.
34025         (rpl_fseeko): Remove redundant #defines.
34026         * lib/fseterr.c: Include stdio-impl.h.
34027         (fseterr): Remove redundant #defines.
34028         * lib/fwritable.c: Include stdio-impl.h.
34029         (fwritable: Remove redundant #defines.
34030         * lib/fwriting.c: Include stdio-impl.h.
34031         (fwriting): Remove redundant #defines.
34032         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34033         * modules/fflush (Files): Likewise.
34034         * modules/fpurge (Files): Likewise.
34035         * modules/freadable (Files): Likewise.
34036         * modules/freadahead (Files): Likewise.
34037         * modules/freading (Files): Likewise.
34038         * modules/freadptr (Files): Likewise.
34039         * modules/freadseek (Files): Likewise.
34040         * modules/fseeko (Files): Likewise.
34041         * modules/fseterr (Files): Likewise.
34042         * modules/fwritable (Files): Likewise.
34043         * modules/fwriting (Files): Likewise.
34044
34045 2008-04-26  Bruno Haible  <bruno@clisp.org>
34046
34047         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34048         restore_seek_optimization, update_fpos_cache): New functions, extracted
34049         from rpl_fflush.
34050         (rpl_fflush): Use them.
34051         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
34052         (gl_REPLACE_FFLUSH): Use it.
34053
34054 2008-04-26  Bruno Haible  <bruno@clisp.org>
34055
34056         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
34057         on Solaris.
34058         * tests/test-xstrtoimax.sh: Likewise.
34059         * tests/test-xstrtoumax.sh: Likewise.
34060         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34061
34062 2008-04-26  Bruno Haible  <bruno@clisp.org>
34063
34064         * modules/memchr-tests: New file.
34065         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
34066
34067 2008-04-26  Eric Blake  <ebb9@byu.net>
34068             Bruno Haible  <bruno@clisp.org>
34069
34070         * lib/memchr.c: Include intprops.h.
34071         (__memchr): Optimize parallel detection of matching bytes. Rename local
34072         variables. Add explanatory comments.
34073
34074 2008-04-26  Bruno Haible  <bruno@clisp.org>
34075
34076         Fix module 'memchr', broken since 2000-10-28.
34077         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
34078
34079 2008-04-26  Bruno Haible  <bruno@clisp.org>
34080
34081         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
34082         comments.
34083
34084 2008-04-25  Eric Blake  <ebb9@byu.net>
34085
34086         Use native fstatat on cygwin 1.7.0.
34087         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
34088         first.
34089
34090 2008-04-23  Eric Blake  <ebb9@byu.net>
34091
34092         Improve memchr2 performance.
34093         * lib/memchr2.c (memchr2): Further optimize parallel detection of
34094         NUL bytes.
34095         * modules/memchr2 (Depends-on): Use intprops.h.
34096
34097 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34098
34099         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
34100         an inline function instead of a CPP macro.  Patch by Ben Pfaff
34101         <blp@cs.stanford.edu>.
34102
34103 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34104
34105         * lib/arpa_inet.in.h: New file.
34106
34107         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
34108         (Makefile.am): Sed in substitute header file.
34109
34110         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
34111         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
34112
34113         * modules/inet_ntop (configure.ac): Use
34114         gl_ARPA_INET_MODULE_INDICATOR.
34115
34116         * modules/inet_pton (configure.ac): Use
34117         gl_ARPA_INET_MODULE_INDICATOR.
34118
34119 2008-04-22  Jim Meyering  <meyering@redhat.com>
34120
34121         * modules/verify (License): Re-license as LGPLv2+.
34122
34123 2008-04-22  Simon Josefsson  <simon@josefsson.org>
34124
34125         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
34126         parameter to void* as per POSIX standard (MinGW uses char*).
34127
34128 2008-04-21  Bruno Haible  <bruno@clisp.org>
34129
34130         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34131         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34132         Define to replacements if REPLACE_ISWCNTRL is 1.
34133         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
34134         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
34135         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
34136         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
34137         what it fixes.
34138         * doc/posix-functions/iswalpha.texi: Likewise.
34139         * doc/posix-functions/iswblank.texi: Likewise.
34140         * doc/posix-functions/iswcntrl.texi: Likewise.
34141         * doc/posix-functions/iswdigit.texi: Likewise.
34142         * doc/posix-functions/iswgraph.texi: Likewise.
34143         * doc/posix-functions/iswlower.texi: Likewise.
34144         * doc/posix-functions/iswprint.texi: Likewise.
34145         * doc/posix-functions/iswpunct.texi: Likewise.
34146         * doc/posix-functions/iswspace.texi: Likewise.
34147         * doc/posix-functions/iswupper.texi: Likewise.
34148         * doc/posix-functions/iswxdigit.texi: Likewise.
34149         Reported by Alain Guibert.
34150
34151 2008-04-21  Bruno Haible  <bruno@clisp.org>
34152
34153         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
34154         Patch by Alain Guibert.
34155
34156 2008-04-21  Bruno Haible  <bruno@clisp.org>
34157
34158         Fix test failures on mingw.
34159         * tests/test-xstrtol.c (print_no_progname): New function.
34160         (main): Install it in error_print_progname hook.
34161         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
34162         * tests/test-xstrtoimax.sh: Likewise.
34163         * tests/test-xstrtoumax.sh: Likewise.
34164
34165 2008-04-21  Bruno Haible  <bruno@clisp.org>
34166
34167         Fix test failure on mingw.
34168         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
34169
34170 2008-04-21  Bruno Haible  <bruno@clisp.org>
34171
34172         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
34173         Actually assign a value.
34174
34175 2008-04-20  Bruno Haible  <bruno@clisp.org>
34176
34177         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
34178         take 2.
34179         * lib/canonicalize.c (canonicalize_file_name): Elide if the
34180         'canonicalize-lgpl' module is also used.
34181         * lib/canonicalize-lgpl.c: Undo last change.
34182         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
34183
34184 2008-04-20  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
34187         config.h. Provide _mkdir based fallback for mingw.
34188         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
34189         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
34190         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
34191         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
34192         rather than defining mkdir in config.h.
34193         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
34194         (gl_SYS_STAT_H_DEFAULTS): New macro.
34195         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
34196         HAVE_IO_H any more.
34197         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
34198         HAVE_DECL_MKDIR and HAVE_IO_H.
34199
34200 2008-04-20  Bruno Haible  <bruno@clisp.org>
34201
34202         * lib/isapipe.c: Port to native Windows platforms.
34203
34204 2008-04-20  Bruno Haible  <bruno@clisp.org>
34205
34206         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
34207
34208 2008-04-21  Eric Blake  <ebb9@byu.net>
34209
34210         Work around preprocessors that don't handle UINTMAX_MAX.
34211         * lib/memchr2.c (memchr2): Avoid embedded #if.
34212         Reported by Alain Guibert, fix suggested by Bruno Haible.
34213
34214 2008-04-21  Simon Josefsson  <simon@josefsson.org>
34215
34216         * doc/posix-functions/strftime.texi (strftime): Explain better
34217         Windows incompatibility.  Suggested by Micah Cowan
34218         <micah@cowan.name>.
34219
34220 2008-04-20  Bruno Haible  <bruno@clisp.org>
34221
34222         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
34223         unistr/u8-mblen.
34224
34225 2008-04-20  Bruno Haible  <bruno@clisp.org>
34226
34227         Fix test failure on platforms with non-GNU iconv.
34228         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
34229         (U_TO_U8): Use it, rather than u16_to_u8.
34230         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
34231         units at the end of the input string.
34232         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
34233
34234 2008-04-20  Bruno Haible  <bruno@clisp.org>
34235
34236         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
34237         when the resulting length is 0.
34238         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
34239
34240 2008-04-20  Bruno Haible  <bruno@clisp.org>
34241
34242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
34243         works.
34244         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
34245
34246 2008-04-20  Bruno Haible  <bruno@clisp.org>
34247
34248         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
34249         * modules/tsearch-tests (configure.ac): Test for initstate function.
34250
34251 2008-04-20  Bruno Haible  <bruno@clisp.org>
34252
34253         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
34254         for nlink_t if missing.
34255         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
34256
34257 2008-04-19  Bruno Haible  <bruno@clisp.org>
34258
34259         Work around snprintf bug on Linux libc5.
34260         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
34261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34262         gl_SNPRINTF_SIZE1.
34263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34264         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
34265         that test failed.
34266         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34267         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
34268         * modules/snprintf (Files): Add m4/printf.m4.
34269         * modules/vsnprintf (Files): Likewise.
34270         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
34271         * doc/posix-functions/vsnprintf.texi: Likewise.
34272
34273 2008-04-19  Bruno Haible  <bruno@clisp.org>
34274
34275         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
34276         from 0.0058 to less than 10^-7.
34277
34278 2008-04-19  Bruno Haible  <bruno@clisp.org>
34279
34280         Fix rounding when a precision is given.
34281         * lib/vasnprintf.c (is_borderline): New function.
34282         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
34283         9...9x.
34284         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
34285         %e, %g.
34286         * tests/test-vasprintf-posix.c (test_function): Likewise.
34287         * tests/test-snprintf-posix.h (test_function): Likewise.
34288         * tests/test-sprintf-posix.h (test_function): Likewise.
34289         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
34290         * tests/test-printf-posix.h (test_function): Likewise.
34291         * tests/test-printf-posix.output: Update.
34292         Reported by John Darrington <john@darrington.wattle.id.au> via
34293         Ben Pfaff <blp@cs.stanford.edu>.
34294
34295 2008-04-18  Simon Josefsson  <simon@josefsson.org>
34296
34297         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
34298         Suggested by Bruno Haible <bruno@clisp.org>.
34299
34300 2008-04-17  Bruno Haible  <bruno@clisp.org>
34301
34302         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
34303         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
34304         implementation.
34305         Patch by Bruce Merry <bmerry@gmail.com>.
34306
34307 2008-04-17  Simon Josefsson  <simon@josefsson.org>
34308
34309         * doc/posix-functions/strftime.texi (strftime): Mention that %e
34310         doesn't work under Windows.
34311
34312 2008-04-16  Bruno Haible  <bruno@clisp.org>
34313
34314         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
34315         New macros.
34316         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
34317         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
34318         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
34319         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
34320         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
34321         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
34322         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
34323         macros.
34324         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
34325         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
34326         Northern Sotho, Uighur.
34327
34328 2008-04-16  Bruno Haible  <bruno@clisp.org>
34329
34330         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
34331         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
34332         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
34333         Reported by Daniel Bergström <daniel@octocode.com>.
34334
34335 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
34336             Bruno Haible  <bruno@clisp.org>
34337
34338         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
34339         function.
34340         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
34341         New functions, mostly extracted from gl_locale_name_default.
34342         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
34343
34344 2008-04-16  Eric Blake  <ebb9@byu.net>
34345
34346         Adjust strtod detection to catch glibc 2.7 bug.
34347         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
34348         Reported by John Gatewood Ham.
34349
34350 2008-04-16  Bruno Haible  <bruno@clisp.org>
34351
34352         Add tentative support for Linux libc5.
34353         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
34354         * lib/fpurge.c (fpurge): Likewise.
34355         * lib/freadable.c (freadable): Likewise.
34356         * lib/freadahead.c (freadahead): Likewise.
34357         * lib/freading.c (freading): Likewise.
34358         * lib/freadptr.c (freadptr): Likewise.
34359         * lib/freadseek.c (freadptrinc): Likewise.
34360         * lib/fseeko.c (rpl_fseeko): Likewise.
34361         * lib/fseterr.c (fseterr): Likewise.
34362         * lib/fwritable.c (fwritable): Likewise.
34363         * lib/fwriting.c (fwriting): Likewise.
34364         Reported by Alain Guibert <alguibert+bts@free.fr>.
34365
34366 2008-04-15  Bruno Haible  <bruno@clisp.org>
34367
34368         * modules/mathl (configure.ac): Define module indicator.
34369
34370 2008-04-15  Bruno Haible  <bruno@clisp.org>
34371
34372         * lib/logl.c (logl): Remove unused variables.
34373
34374 2008-04-15  Bruno Haible  <bruno@clisp.org>
34375
34376         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
34377         fails.
34378
34379 2008-04-15  Bruno Haible  <bruno@clisp.org>
34380
34381         * lib/trim.c (trim2): Fix argument of isspace() macro.
34382
34383 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
34384
34385         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
34386         to 0.
34387         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
34388
34389 2008-04-14  Bruno Haible  <bruno@clisp.org>
34390
34391         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
34392         AC_LANG_PROGRAM argument.
34393         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
34394         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
34395         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34396         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34397         * m4/math_h.m4 (gl_MATH_H): Likewise.
34398         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
34399         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34400         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34401         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
34402         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34403         * m4/regex.m4 (gl_REGEX): Likewise.
34404         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
34405         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
34406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34407         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
34408         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34409         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34410         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34411         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34412
34413 2008-04-14  Jim Meyering  <meyering@redhat.com>
34414
34415         test-strtod: fix typos: s/abs/fabs/
34416         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
34417
34418 2008-04-13  Bruno Haible  <bruno@clisp.org>
34419
34420         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
34421         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
34422         module is also used and while not building the reloc-wrapper.
34423
34424 2008-04-13  Bruno Haible  <bruno@clisp.org>
34425
34426         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
34427
34428 2008-04-13  Bruno Haible  <bruno@clisp.org>
34429
34430         Fix AIX compilation failure introduced on 2008-04-02.
34431         * tests/test-frexp.c (exp): Undefine before redefining.
34432         * tests/test-frexpl.c (exp): Likewise.
34433
34434 2008-04-13  Bruno Haible  <bruno@clisp.org>
34435
34436         Work around a HP-UX stdio bug.
34437         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
34438         * tests/test-ftello.c (main): Likewise.
34439         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
34440         * doc/posix-functions/ftello.texi: Likewise.
34441
34442 2008-04-13  Bruno Haible  <bruno@clisp.org>
34443
34444         Make test-signbit pass on HP-UX/hppa.
34445         * tests/test-signbit.c (minus_zerol): New variable.
34446         (test_signbitl): Use it.
34447
34448 2008-04-13  Bruno Haible  <bruno@clisp.org>
34449
34450         Make truncl work on OSF/1 4.0.
34451         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
34452         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34453         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
34455         HAVE_DECL_TRUNCL.
34456         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
34457         HAVE_DECL_TRUNCL.
34458         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
34459
34460 2008-04-13  Bruno Haible  <bruno@clisp.org>
34461
34462         * lib/unictype.h: Remove trailing comma from enumeration definitions.
34463
34464 2008-04-13  Bruno Haible  <bruno@clisp.org>
34465
34466         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
34467         expression, so as to avoid HP-UX 11 cc compiler bug.
34468
34469 2008-04-13  Bruno Haible  <bruno@clisp.org>
34470
34471         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
34472
34473 2008-04-13  Bruno Haible  <bruno@clisp.org>
34474
34475         * lib/git-merge-changelog.c: Remove empty declaration outside of
34476         functions.
34477
34478 2008-04-13  Bruno Haible  <bruno@clisp.org>
34479
34480         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
34481
34482 2008-04-13  Bruno Haible  <bruno@clisp.org>
34483
34484         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
34485         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
34486         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
34487         also if it exists but lacks definitions of the SHUT_* macros.
34488         * modules/sys_socket (Description): Update.
34489         Reported by Elbert Pol <e.pol@chello.nl>.
34490
34491 2008-04-13  Bruno Haible  <bruno@clisp.org>
34492
34493         * lib/localcharset.c (OS2): Don't redefine if already defined.
34494         Reported by Elbert Pol <e.pol@chello.nl>.
34495
34496 2008-04-13  Bruno Haible  <bruno@clisp.org>
34497
34498         * lib/binary-io.h [__EMX__]: Include <io.h>.
34499         Reported by Elbert Pol <e.pol@chello.nl>.
34500
34501 2008-04-12  Bruno Haible  <bruno@clisp.org>
34502
34503         * lib/fpucw.h: Enable the definitions also for x86_64.
34504         Needed for NetBSD/x86_64.
34505         Reported by Thomas Klausner <tk@giga.or.at>.
34506
34507 2008-04-12  Bruno Haible  <bruno@clisp.org>
34508
34509         * tests/test-strtod.c: Include isnand.h.
34510         (main): Use isnand instead of isnan.
34511         Reported by Jim Meyering.
34512
34513 2008-04-12  Bruno Haible  <bruno@clisp.org>
34514
34515         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
34516         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34517
34518 2008-04-12  Jim Meyering  <meyering@redhat.com>
34519
34520         * m4/math_h.m4 (gl_MATH_H): Fix typos.
34521
34522 2008-04-12  Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
34525         Reported by Elbert Pol <e.pol@chello.nl>.
34526
34527 2008-04-12  Eric Blake  <ebb9@byu.net>
34528
34529         Work around Solaris 10 math.h bug.
34530         * m4/math_h.m4 (gl_MATH_H): Check for bug.
34531         (gl_MATH_H_DEFAULTS): Set up default.
34532         * modules/math (Makefile.am): Replace new indicators.
34533         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
34534         * tests/test-math.c (main): Test this.
34535         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
34536         * doc/posix-headers/math.texi (math.h): Mention bug.
34537         Reported by Nelson H. F. Beebe and Jim Meyering.
34538
34539 2008-04-11  Bruno Haible  <bruno@clisp.org>
34540
34541         Adapt to future versions of Apple GCC.
34542         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
34543         Reported by Peter O'Gorman <peter@pogma.com>.
34544
34545 2008-04-11  Bruno Haible  <bruno@clisp.org>
34546
34547         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
34548
34549 2008-04-11  Bruno Haible  <bruno@clisp.org>
34550
34551         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
34552
34553         * modules/getaddrinfo-tests (Makefile.am): Define
34554         test_getaddrinfo_LDADD.
34555
34556 2008-04-11  Bruno Haible  <bruno@clisp.org>
34557
34558         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
34559         (init): Fix syntax error.
34560         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
34561         is declared.
34562
34563 2008-04-11  Bruno Haible  <bruno@clisp.org>
34564
34565         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
34566         * modules/glob (Depends-on): Add stdbool.
34567
34568 2008-04-11  Bruno Haible  <bruno@clisp.org>
34569
34570         * lib/trim.c: Include <string.h>.
34571
34572 2008-04-11  Eric Blake  <ebb9@byu.net>
34573
34574         Avoid compile failure on OS/2.
34575         * lib/regex_internal.h (internal_function): Disable optimization
34576         on OS/2 (__EMX__), where it caused compiler error.
34577         Reported by Elbert Pol.
34578
34579 2008-04-11  Bruno Haible  <bruno@clisp.org>
34580
34581         Flush the standard error stream before aborting. Needed on mingw.
34582         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
34583         * tests/test-array_list.c (ASSERT): Likewise.
34584         * tests/test-array_oset.c (ASSERT): Likewise.
34585         * tests/test-avltree_list.c (ASSERT): Likewise.
34586         * tests/test-avltree_oset.c (ASSERT): Likewise.
34587         * tests/test-avltreehash_list.c (ASSERT): Likewise.
34588         * tests/test-binary-io.c (ASSERT): Likewise.
34589         * tests/test-byteswap.c (ASSERT): Likewise.
34590         * tests/test-c-ctype.c (ASSERT): Likewise.
34591         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
34592         * tests/test-c-strcasestr.c (ASSERT): Likewise.
34593         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
34594         * tests/test-c-strstr.c (ASSERT): Likewise.
34595         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
34596         * tests/test-canonicalize.c (ASSERT): Likewise.
34597         * tests/test-carray_list.c (ASSERT): Likewise.
34598         * tests/test-ceilf1.c (ASSERT): Likewise.
34599         * tests/test-ceilf2.c (ASSERT): Likewise.
34600         * tests/test-ceill.c (ASSERT): Likewise.
34601         * tests/test-count-one-bits.c (ASSERT): Likewise.
34602         * tests/test-fbufmode.c (ASSERT): Likewise.
34603         * tests/test-fflush2.c (ASSERT): Likewise.
34604         * tests/test-floorf1.c (ASSERT): Likewise.
34605         * tests/test-floorf2.c (ASSERT): Likewise.
34606         * tests/test-floorl.c (ASSERT): Likewise.
34607         * tests/test-fopen.c (ASSERT): Likewise.
34608         * tests/test-fpending.c (ASSERT): Likewise.
34609         * tests/test-fprintf-posix.c (ASSERT): Likewise.
34610         * tests/test-fpurge.c (ASSERT): Likewise.
34611         * tests/test-freadable.c (ASSERT): Likewise.
34612         * tests/test-freadahead.c (ASSERT): Likewise.
34613         * tests/test-freading.c (ASSERT): Likewise.
34614         * tests/test-freadptr.c (ASSERT): Likewise.
34615         * tests/test-freadptr2.c (ASSERT): Likewise.
34616         * tests/test-freadseek.c (ASSERT): Likewise.
34617         * tests/test-freopen.c (ASSERT): Likewise.
34618         * tests/test-frexp.c (ASSERT): Likewise.
34619         * tests/test-frexpl.c (ASSERT): Likewise.
34620         * tests/test-fseek.c (ASSERT): Likewise.
34621         * tests/test-fseeko.c (ASSERT): Likewise.
34622         * tests/test-fstrcmp.c (ASSERT): Likewise.
34623         * tests/test-ftell.c (ASSERT): Likewise.
34624         * tests/test-ftello.c (ASSERT): Likewise.
34625         * tests/test-func.c (ASSERT): Likewise.
34626         * tests/test-fwritable.c (ASSERT): Likewise.
34627         * tests/test-fwriting.c (ASSERT): Likewise.
34628         * tests/test-getdelim.c (ASSERT): Likewise.
34629         * tests/test-getline.c (ASSERT): Likewise.
34630         * tests/test-i-ring.c (ASSERT): Likewise.
34631         * tests/test-iconv-utf.c (ASSERT): Likewise.
34632         * tests/test-iconv.c (ASSERT): Likewise.
34633         * tests/test-isfinite.c (ASSERT): Likewise.
34634         * tests/test-isnand.c (ASSERT): Likewise.
34635         * tests/test-isnanf.c (ASSERT): Likewise.
34636         * tests/test-isnanl.h (ASSERT): Likewise.
34637         * tests/test-ldexpl.c (ASSERT): Likewise.
34638         * tests/test-linked_list.c (ASSERT): Likewise.
34639         * tests/test-linkedhash_list.c (ASSERT): Likewise.
34640         * tests/test-localename.c (ASSERT): Likewise.
34641         * tests/test-lseek.c (ASSERT): Likewise.
34642         * tests/test-mbscasecmp.c (ASSERT): Likewise.
34643         * tests/test-mbscasestr1.c (ASSERT): Likewise.
34644         * tests/test-mbscasestr2.c (ASSERT): Likewise.
34645         * tests/test-mbscasestr3.c (ASSERT): Likewise.
34646         * tests/test-mbscasestr4.c (ASSERT): Likewise.
34647         * tests/test-mbschr.c (ASSERT): Likewise.
34648         * tests/test-mbscspn.c (ASSERT): Likewise.
34649         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
34650         * tests/test-mbspbrk.c (ASSERT): Likewise.
34651         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
34652         * tests/test-mbsrchr.c (ASSERT): Likewise.
34653         * tests/test-mbsspn.c (ASSERT): Likewise.
34654         * tests/test-mbsstr1.c (ASSERT): Likewise.
34655         * tests/test-mbsstr2.c (ASSERT): Likewise.
34656         * tests/test-mbsstr3.c (ASSERT): Likewise.
34657         * tests/test-memchr2.c (ASSERT): Likewise.
34658         * tests/test-memmem.c (ASSERT): Likewise.
34659         * tests/test-open.c (ASSERT): Likewise.
34660         * tests/test-printf-frexp.c (ASSERT): Likewise.
34661         * tests/test-printf-frexpl.c (ASSERT): Likewise.
34662         * tests/test-printf-posix.c (ASSERT): Likewise.
34663         * tests/test-quotearg.c (ASSERT): Likewise.
34664         * tests/test-rbtree_list.c (ASSERT): Likewise.
34665         * tests/test-rbtree_oset.c (ASSERT): Likewise.
34666         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
34667         * tests/test-round1.c (ASSERT): Likewise.
34668         * tests/test-roundf1.c (ASSERT): Likewise.
34669         * tests/test-roundl.c (ASSERT): Likewise.
34670         * tests/test-signbit.c (ASSERT): Likewise.
34671         * tests/test-sleep.c (ASSERT): Likewise.
34672         * tests/test-snprintf-posix.c (ASSERT): Likewise.
34673         * tests/test-snprintf.c (ASSERT): Likewise.
34674         * tests/test-sprintf-posix.c (ASSERT): Likewise.
34675         * tests/test-stat-time.c (ASSERT): Likewise.
34676         * tests/test-strcasestr.c (ASSERT): Likewise.
34677         * tests/test-strerror.c (ASSERT): Likewise.
34678         * tests/test-striconv.c (ASSERT): Likewise.
34679         * tests/test-striconveh.c (ASSERT): Likewise.
34680         * tests/test-striconveha.c (ASSERT): Likewise.
34681         * tests/test-strsignal.c (ASSERT): Likewise.
34682         * tests/test-strstr.c (ASSERT): Likewise.
34683         * tests/test-strtod.c (ASSERT): Likewise.
34684         * tests/test-trunc1.c (ASSERT): Likewise.
34685         * tests/test-trunc2.c (ASSERT): Likewise.
34686         * tests/test-truncf1.c (ASSERT): Likewise.
34687         * tests/test-truncf2.c (ASSERT): Likewise.
34688         * tests/test-truncl.c (ASSERT): Likewise.
34689         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
34690         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
34691         * tests/test-vasnprintf.c (ASSERT): Likewise.
34692         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
34693         * tests/test-vasprintf.c (ASSERT): Likewise.
34694         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
34695         * tests/test-vprintf-posix.c (ASSERT): Likewise.
34696         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
34697         * tests/test-vsnprintf.c (ASSERT): Likewise.
34698         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
34699         * tests/test-wcwidth.c (ASSERT): Likewise.
34700         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
34701         * tests/test-xprintf-posix.c (ASSERT): Likewise.
34702         * tests/test-xvasprintf.c (ASSERT): Likewise.
34703         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
34704         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
34705         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
34706         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
34707         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
34708         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
34709         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
34710         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
34711         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
34712         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
34713         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
34714         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
34715         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
34716         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
34717         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
34718         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
34719         * tests/unictype/test-block_list.c (ASSERT): Likewise.
34720         * tests/unictype/test-block_of.c (ASSERT): Likewise.
34721         * tests/unictype/test-block_test.c (ASSERT): Likewise.
34722         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
34723         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
34724         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
34725         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
34726         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
34727         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
34728         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
34729         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
34730         * tests/unictype/test-combining.c (ASSERT): Likewise.
34731         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
34732         * tests/unictype/test-digit.c (ASSERT): Likewise.
34733         * tests/unictype/test-mirror.c (ASSERT): Likewise.
34734         * tests/unictype/test-numeric.c (ASSERT): Likewise.
34735         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
34736         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
34737         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
34738         * tests/unictype/test-scripts.c (ASSERT): Likewise.
34739         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
34740         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
34741         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
34742         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
34743         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
34744         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
34745         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
34746         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
34747         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
34748         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
34749         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
34750         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
34751         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
34752         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
34753         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
34754         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
34755         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
34756         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
34757         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
34758         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
34759         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
34760         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
34761         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
34762         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
34763         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
34764         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
34765         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
34766         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
34767         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
34768         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
34769         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
34770         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
34771         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
34772         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
34773         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
34774         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
34775         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
34776         Reported by Eric Blake.
34777
34778 2008-04-11  Bruno Haible  <bruno@clisp.org>
34779
34780         * lib/wchar.in.h: Tweak comment.
34781
34782 2008-04-11  Bruno Haible  <bruno@clisp.org>
34783
34784         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
34785         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
34786         gl_COMMON.
34787         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
34788
34789 2008-04-11  Bruno Haible  <bruno@clisp.org>
34790
34791         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
34792
34793 2008-04-11  Simon Josefsson  <simon@josefsson.org>
34794
34795         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
34796         of attempting to use non-existing /dev/*random.  Based on patch
34797         from Adam Strzelecki <ono@java.pl> in
34798         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
34799
34800 2008-04-08  Bruno Haible  <bruno@clisp.org>
34801
34802         Add tentative support for emx+gcc.
34803         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
34804         * lib/fpurge.c (fpurge): Likewise.
34805         * lib/freadable.c (freadable): Likewise.
34806         * lib/freadahead.c (freadahead): Likewise.
34807         * lib/freading.c (freading): Likewise.
34808         * lib/freadptr.c (freadptr): Likewise.
34809         * lib/freadseek.c (freadptrinc): Likewise.
34810         * lib/fseeko.c (rpl_fseeko): Likewise.
34811         * lib/fseterr.c (fseterr): Likewise.
34812         * lib/fwritable.c (fwritable): Likewise.
34813         * lib/fwriting.c (fwriting): Likewise.
34814         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
34815
34816 2008-04-09  Eric Blake  <ebb9@byu.net>
34817
34818         Avoid some autoconf warnings.
34819         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
34820         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
34821         * m4/afs.m4 (gl_AFS): Likewise.
34822         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
34823         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
34824         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34825         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
34826         (gl_INTEGER_TYPE_SUFFIX): Likewise.
34827         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
34828         (AC_CHECK_DECLS_ONCE): Likewise.
34829         Rename file...
34830         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
34831         gnulib-tool requires autoconf 2.59 or better.
34832         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
34833
34834 2008-04-08  Eric Blake  <ebb9@byu.net>
34835
34836         Use 'git describe --match' if present (added in git 1.5.5).
34837         * build-aux/git-version-gen: Limit result to tags that match 'v*'
34838         if possible.
34839
34840 2008-04-08  Bruno Haible  <bruno@clisp.org>
34841
34842         Add tentative support for OpenServer.
34843         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
34844         _ptr, _cnt.
34845         * lib/fpurge.c (fpurge): Likewise.
34846         * lib/freadable.c (freadable): Likewise.
34847         * lib/freadahead.c (freadahead): Likewise.
34848         * lib/freading.c (freading): Likewise.
34849         * lib/freadptr.c (freadptr): Likewise.
34850         * lib/freadseek.c (freadptrinc): Likewise.
34851         * lib/fseeko.c (rpl_fseeko): Likewise.
34852         * lib/fseterr.c (fseterr): Likewise.
34853         * lib/fwritable.c (fwritable): Likewise.
34854         * lib/fwriting.c (fwriting): Likewise.
34855         Reported by Roger Cornelius <rac@tenzing.org> and
34856         Brian K. White <brian@aljex.com>.
34857
34858 2008-04-06  Jim Meyering  <meyering@redhat.com>
34859
34860         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
34861
34862 2008-04-06  Bruno Haible  <bruno@clisp.org>
34863
34864         Avoid possible error with non-ASCII bytes in UTF-8 locales.
34865         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
34866         * tests/test-printf-posix.sh: Likewise.
34867         * tests/test-vfprintf-posix.sh: Likewise.
34868         * tests/test-vprintf-posix.sh: Likewise.
34869         * tests/test-xprintf-posix.sh: Likewise.
34870
34871 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34872
34873         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
34874         hide error from 'ls', needed on OS/2.
34875         Report by Elbert Pol <elbert.pol@gmail.com>.
34876
34877 2008-04-04  Eric Blake  <ebb9@byu.net>
34878
34879         Make test-fseeko.c failures meaningful.
34880         * tests/test-fseeko.c: Print line number on failure.
34881         * tests/test-fseek.c: Likewise.
34882         Reported by Nelson H. F. Beebe.
34883
34884         Improve strtod bug detection check.
34885         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
34886         required for Solaris 10.
34887         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
34888
34889 2008-04-04  Bruno Haible  <bruno@clisp.org>
34890
34891         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
34892         by m4/setenv.m4.
34893
34894 2008-04-03  Eric Blake  <ebb9@byu.net>
34895
34896         Ensure sane .version contents.
34897         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
34898         version string.
34899         * build-aux/git-version-gen: Improve documentation.
34900
34901         Make GNU make output nicer.
34902         * top/GNUmakefile [!_have-Makefile]: Add dependency on
34903         MAKECMDGOALS to enforce message for all command line targets.  Set
34904         srcdir for use in maint.mk.
34905
34906         Another maintainer tweak.
34907         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
34908         a target that regenerates version.
34909
34910 2008-04-03  Jim Meyering  <meyering@redhat.com>
34911
34912         vc-list-files: don't cause coreutils "make po-check" failure
34913         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
34914
34915 2008-04-03  Eric Blake  <ebb9@byu.net>
34916
34917         Allow VPATH usage of vc-list-files.
34918         * build-aux/vc-list-files (scriptversion): Add timestamp.
34919         (options): Add --help, --version, -C.
34920         (CVS): Support installed cvsu.
34921
34922 2008-04-02  Bruno Haible  <bruno@clisp.org>
34923
34924         Avoid some "statement with no effect" warnings from gcc.
34925         * tests/test-wctype.c (main): Explicitly ignore unused values.
34926         Reported by Jim Meyering.
34927
34928 2008-04-02  Jim Meyering  <meyering@redhat.com>
34929
34930         Avoid some warnings from "gcc -Wshadow".
34931         * tests/test-frexp.c (exp): Define to a different identifier.
34932         * tests/test-frexpl.c (exp): Likewise.
34933
34934 2008-04-03  Jim Meyering  <meyering@redhat.com>
34935
34936         bootstrap: remove dangling *.[ch] symlinks from lib
34937         * build-aux/bootstrap [dangling symlink removal]: Move find's
34938         -depth option to precede all others, to avoid a warning.
34939         Remove *.[ch] files too, and from "$source_base" (usually lib/).
34940
34941 2008-04-02  Bruno Haible  <bruno@clisp.org>
34942
34943         Avoid some warnings from "gcc -Wshadow".
34944         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
34945         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
34946         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
34947         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
34948         Reported by Jim Meyering.
34949
34950 2008-04-01  Bruno Haible  <bruno@clisp.org>
34951
34952         Fix test to work on IRIX 6.5 with cc.
34953         * tests/test-math.c (numeric_equal): New function.
34954         (main): Use it.
34955
34956 2008-04-01  Bruno Haible  <bruno@clisp.org>
34957
34958         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
34959
34960 2008-04-01  Bruno Haible  <bruno@clisp.org>
34961
34962         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
34963         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34964         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
34965         (Depends-on): Remove math.
34966
34967         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
34968         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34969         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
34970         (Depends-on): Remove math.
34971
34972         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
34973         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34974         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
34975         (Depends-on): Remove math.
34976         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
34977         (Depends-on): Remove math.
34978
34979         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
34980         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34981         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
34982         (Depends-on): Remove math.
34983         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
34984         (Depends-on): Remove math.
34985
34986         * tests/test-round1.c: Include nan.h.
34987         (main): Use NaNd instead of NAN.
34988         * modules/round-tests (Files): Add tests/nan.h.
34989
34990         * tests/test-trunc1.c: Include nan.h.
34991         (main): Use NaNd instead of NAN.
34992         * modules/trunc-tests (Files): Add tests/nan.h.
34993
34994         * tests/test-roundf1.c: Include nan.h.
34995         (main): Use NaNf instead of NAN.
34996         * modules/roundf-tests (Files): Add tests/nan.h.
34997
34998         * tests/test-truncf1.c: Include nan.h.
34999         (main): Use NaNf instead of NAN.
35000         * modules/truncf-tests (Files): Add tests/nan.h.
35001
35002         * tests/test-ceilf1.c: Include nan.h.
35003         (main): Use NaNf instead of NAN.
35004         * modules/ceilf-tests (Files): Add tests/nan.h.
35005
35006         * tests/test-floorf1.c: Include nan.h.
35007         (main): Use NaNf instead of NAN.
35008         * modules/floorf-tests (Files): Add tests/nan.h.
35009
35010         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35011         (main): Use NaNf instead of NAN.
35012         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35013
35014         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35015         (main): Use NaNd instead of NAN.
35016         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35017
35018         * tests/test-frexp.c: Include nan.h.
35019         (main): Use NaNd instead of NAN.
35020         * modules/frexp-tests (Files): Add tests/nan.h.
35021
35022         * lib/isnan.c: Don't include <math.h>.
35023         (FUNC): Don't use NAN macro.
35024         * modules/isnand-nolibm (Depends-on): Remove math.
35025         * modules/isnanf-nolibm (Depends-on): Remove math.
35026         * modules/isnanl (Depends-on): Remove math.
35027         * modules/isnanl-nolibm (Depends-on): Remove math.
35028
35029         * tests/nan.h: New file.
35030
35031 2008-04-01  Eric Blake  <ebb9@byu.net>
35032
35033         Fix typos.
35034         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35035         values to be the right type.
35036
35037         For now, cater to gnulib strtod inaccuracies.
35038         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35039         fractional results.  While not as nice from a QoI perspective, it
35040         is a quicker patch than correctly implementing decimal to binary
35041         rounding.
35042
35043 2008-03-31  Eric Blake  <ebb9@byu.net>
35044
35045         Guarantee a definition of NAN.
35046         * lib/math.in.h (NAN): Define if missing.
35047         * tests/test-math.c (main): Test it.
35048         * doc/posix-headers/math.texi (math.h): Document this.
35049         * lib/isnan.c (rpl_isnand): Use it.
35050         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
35051         * tests/test-floorf1.c (NaN): Likewise.
35052         * tests/test-frexp.c (NaN): Likewise.
35053         * tests/test-isnand.c (NaN): Likewise.
35054         * tests/test-isnanf.c (NaN): Likewise.
35055         * tests/test-round1.c (NaN): Likewise.
35056         * tests/test-roundf1.c (NaN): Likewise.
35057         * tests/test-snprintf-posix.h (NaN): Likewise.
35058         * tests/test-sprintf-posix.h (NaN): Likewise.
35059         * tests/test-trunc1.c (NaN): Likewise.
35060         * tests/test-truncf1.c (NaN): Likewise.
35061         * tests/test-vasnprintf-posix.c (NaN): Likewise.
35062         * tests/test-vasprintf-posix.c (NaN): Likewise.
35063         * modules/isnand-nolibm (Depends-on): Add math.
35064         * modules/isnanf-nolibm (Depends-on): Likewise.
35065         * modules/isnanl (Depends-on): Likewise.
35066         * modules/isnanl-nolibm (Depends-on): Likewise.
35067         * modules/snprintf-posix-tests (Depends-on): Likewise.
35068         * modules/sprintf-posix-tests (Depends-on): Likewise.
35069         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
35070         * modules/vsprintf-posix-tests (Depends-on): Likewise.
35071         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
35072         * modules/vasprintf-posix-tests (Depends-on): Likewise.
35073
35074 2008-03-31  Bruno Haible  <bruno@clisp.org>
35075
35076         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
35077         * doc/posix-functions/strtod.texi: Likewise.
35078
35079 2008-03-31  Bruno Haible  <bruno@clisp.org>
35080
35081         * tests/test-strtod.c (main): Don't use C99 syntax.
35082
35083 2008-03-31  Bruno Haible  <bruno@clisp.org>
35084
35085         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
35086         Reported by Eric Blake.
35087
35088 2008-03-31  Jim Meyering  <meyering@redhat.com>
35089
35090         Don't compare actual signbit return values.
35091         * tests/test-strtod.c (main): Rather, compare only their
35092         zero/non-zero nature.
35093
35094 2008-03-31  Eric Blake  <ebb9@byu.net>
35095
35096         More strtod documentation.
35097         * doc/posix-functions/strtod.texi (strtod): Interpret more test
35098         failures as distinct bugs.
35099
35100 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35101
35102         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
35103         Problem reported by Erik Benada in
35104         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
35105
35106 2008-03-30  Bruno Haible  <bruno@clisp.org>
35107
35108         * tests/test-strtod.c: Add comments about which assertion fails on which
35109         platform.
35110         * doc/posix-functions/strtod.texi: Add info about many more platforms.
35111
35112 2008-03-30  Eric Blake  <ebb9@byu.net>
35113
35114         Test signbit behavior on zeros.
35115         * tests/test-signbit.c (test_signbitf): Add tests for zero.
35116         (test_signbitd, test_signbitl): Likewise.
35117
35118         More strtod touchups.
35119         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
35120         sign of negative underflow, for now.  Use .5, not .1.
35121         * doc/posix-functions/strtod.texi (strtod): Mention these
35122         limitations.
35123         Reported by Jim Meyering.
35124
35125 2008-03-30  Bruno Haible  <bruno@clisp.org>
35126
35127         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
35128         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
35129
35130 2008-03-30  Bruno Haible  <bruno@clisp.org>
35131
35132         Avoid failure when attempting to return empty iconv results on some
35133         platforms.
35134         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
35135         allocation, don't report ENOMEM when the resulting string is empty.
35136
35137 2008-03-30  Bruno Haible  <bruno@clisp.org>
35138
35139         Fix buffer overrun.
35140         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
35141         Don't consider the width for tmp_length. Check count against tmp_length
35142         before doing the padding. Ensure enough allocation during padding.
35143
35144 2008-03-30  Eric Blake  <ebb9@byu.net>
35145
35146         strtod touchups.
35147         * lib/strtod.c (strtod): Avoid compiler warnings.
35148         Reported by Jim Meyering.
35149
35150 2008-03-30  Bruno Haible  <bruno@clisp.org>
35151
35152         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
35153         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
35154         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
35155         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
35156         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
35157         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
35158         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35159         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
35160
35161         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
35162         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
35163         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
35164         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
35165         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
35166         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
35167         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
35168         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
35169
35170         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
35171         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
35172         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
35173         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
35174         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
35175         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
35176         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
35177         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
35178
35179         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
35180         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
35181
35182         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
35183         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
35184
35185         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
35186         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
35187
35188         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
35189         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
35190         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
35191
35192         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
35193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
35194         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
35195
35196         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
35197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
35198         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
35199
35200         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
35201         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
35202         * modules/vasprintf (Depends-on): Add EOVERFLOW.
35203
35204         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
35205         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
35206         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
35207         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
35208         (Depends-on): Add EOVERFLOW.
35209         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
35210         (Depends-on): Add EOVERFLOW.
35211         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35212         (Depends-on): Add EOVERFLOW.
35213         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35214         (Depends-on): Add EOVERFLOW.
35215         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35216         (Depends-on): Add EOVERFLOW.
35217         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35218         (Depends-on): Add EOVERFLOW.
35219         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35220         (Depends-on): Add EOVERFLOW.
35221         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35222         (Depends-on): Add EOVERFLOW.
35223
35224         * lib/sprintf.c (EOVERFLOW): Remove fallback.
35225         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
35226         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
35227
35228         * lib/snprintf.c (EOVERFLOW): Remove fallback.
35229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
35230         * modules/snprintf (Depends-on): Add EOVERFLOW.
35231
35232         * lib/poll.c (EOVERFLOW): Remove fallback.
35233         * modules/poll (Depends-on): Add EOVERFLOW.
35234
35235         * lib/getugroups.c (EOVERFLOW): Remove fallback.
35236         * modules/getugroups (Depends-on): Add EOVERFLOW.
35237
35238         * lib/getdelim.c (EOVERFLOW): Remove fallback.
35239         * modules/getdelim (Depends-on): Add EOVERFLOW.
35240
35241         * lib/ftell.c (EOVERFLOW): Remove fallback.
35242         * modules/ftell (Depends-on): Add EOVERFLOW.
35243
35244         * lib/fprintf.c (EOVERFLOW): Remove fallback.
35245         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
35246         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
35247
35248         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
35249
35250         * modules/EOVERFLOW-tests: New file.
35251         * tests/test-EOVERFLOW.c: New file.
35252
35253         * modules/EOVERFLOW: New file.
35254         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
35255
35256 2008-03-30  Bruno Haible  <bruno@clisp.org>
35257
35258         Fix bug introduced on 2007-06-10.
35259         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
35260         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
35261
35262 2008-03-30  Bruno Haible  <bruno@clisp.org>
35263
35264         Improve freadseek's efficiency after ungetc.
35265         * lib/freadseek.c: Include freadahead.h.
35266         (freadptrinc): New function, extracted from freadseek.
35267         (freadseek): Use it in a loop. Use freadahead to determine the number
35268         of loop iterations.
35269         * modules/freadseek (Depends-on): Add freadahead.
35270         (configure.ac): Require AC_C_INLINE.
35271
35272 2008-03-30  Bruno Haible  <bruno@clisp.org>
35273
35274         * lib/freadseek.c (freadseek): Don't ignore the return value of
35275         freadptr.
35276
35277 2008-03-29  Eric Blake  <ebb9@byu.net>
35278
35279         Add hex float support.
35280         * modules/strtod (Depends-on): Add c-ctype.
35281         (Link): Mention POW_LIB.
35282         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
35283         whitespace between 'e' and exponent.
35284         * tests/test-strtod.c (main): Enable hex float tests.
35285         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
35286         now provides.
35287
35288         Document various strtod bugs, with some fixes.
35289         * doc/posix-functions/strtod.texi (strtod): Document bugs with
35290         "-0x", "inf", "nan", and hex constants.
35291         * doc/posix-functions/atof.texi (atof): Likewise.
35292         * modules/stdlib (Makefile.am): Support strtod.
35293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35294         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
35295         detect additional strtod bugs.
35296         * lib/stdlib.in.h (rpl_strtod): Add declarations.
35297         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
35298         bool where appropriate.  Parse 'inf' and 'nan'.
35299         * tests/test-strtod.c: New file.
35300         * modules/strtod (Depends-on): Add stdbool, stdlib.
35301         (configure.ac): Turn on module indicator.
35302         * modules/strtod-tests: New module.
35303
35304 2008-03-29  Eric Blake  <ebb9@byu.net>
35305
35306         Fix ftell on mingw.
35307         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
35308         * modules/ftell-tests (Depends-on): Add binary-io.
35309         * modules/ftello-tests (Depends-on): Likewise.
35310         * tests/test-ftell.c (main): Enhance test to cover behavior after
35311         ungetc.  Enforce binary mode.
35312         * tests/test-ftello.c (main): Likewise.
35313
35314         Pass test-freadseek on cygwin.
35315         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
35316         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
35317         ungetc buffer.
35318
35319         * tests/test-fflush2.c (main): Fix typo.
35320
35321 2008-03-29  Bruno Haible  <bruno@clisp.org>
35322
35323         * tests/test-fflush2.c (main): Temporarily disable the contents of
35324         this test.
35325         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
35326         Reported by Eric Blake.
35327
35328 2008-03-28  Simon Josefsson  <simon@josefsson.org>
35329
35330         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
35331         (GC_SHA224_DIGEST_SIZE): Add.
35332
35333         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
35334         (gc_hash_digest_length): Likewise.
35335         (gc_hash_buffer): Likewise.
35336
35337 2008-03-25  Bruno Haible  <bruno@clisp.org>
35338
35339         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
35340         detail which gettext release to use.
35341         Reported by Simon Josefsson.
35342
35343 2008-03-26  Jim Meyering  <meyering@redhat.com>
35344
35345         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
35346         * modules/gnumakefile (clean-GNUmakefile): Also, use
35347         test ... && ... || : syntax rather than if-then ... fi.
35348
35349         gnumakefile: Don't double-quote-expand $(VPATH) value.
35350         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
35351
35352 2008-03-24  Eric Blake  <ebb9@byu.net>
35353
35354         Alter GNUmakefile to install into top directory.
35355         * modules/maintainer-makefile: Split, and add dependency...
35356         * modules/gnumakefile: to this new module.
35357         * build-aux/GNUmakefile: Move...
35358         * top/GNUmakefile: ...here.
35359         * build-aux/maint.mk: Move...
35360         * top/maint.mk: ...here.
35361         * MODULES.html.sh (Support for maintaining...): Document new
35362         module.
35363
35364 2008-03-23  Bruno Haible  <bruno@clisp.org>
35365
35366         * gnulib-tool: New options --vc-files, --no-vc-files.
35367         (func_usage): Document them.
35368         (vc_files): New variable.
35369         (func_import): Consider vc_files.
35370         (func_create_testdir): Set vc_files to empty.
35371         Suggested by Jim Meyering and Karl Berry.
35372
35373 2008-03-23  Bruno Haible  <bruno@clisp.org>
35374
35375         Fix regex compilation error on HP-UX 11.
35376         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
35377         * modules/regex (Files): Add m4/mbstate_t.m4.
35378         Reported by Ton Voon <ton.voon@altinity.com>.
35379
35380 2008-03-23  Bruno Haible  <bruno@clisp.org>
35381
35382         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
35383
35384 2008-03-23  Eric Blake  <ebb9@byu.net>
35385             Bruno Haible  <bruno@clisp.org>
35386
35387         Install files from top/ in the destination directory.
35388         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35389         augmentation also for the files from top/.
35390         (func_import, func_create_testdir): Rewrite file names:
35391         top/filename -> filename.
35392
35393 2008-03-23  Bruno Haible  <bruno@clisp.org>
35394
35395         Tweak "gnulib --version" output.
35396         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
35397
35398 2008-03-23  Bruno Haible  <bruno@clisp.org>
35399
35400         Tweak "gnulib --version" output.
35401         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
35402         rather than contents of ChangeLog, when possible.
35403
35404 2008-03-21  Eric Blake  <ebb9@byu.net>
35405
35406         More --version tweaks.
35407         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
35408         date of last ChangeLog entry.
35409
35410 2008-03-21  Jim Meyering  <meyering@redhat.com>
35411
35412         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
35413
35414 2008-03-20  Eric Blake  <ebb9@byu.net>
35415
35416         VPATH fix.
35417         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
35418
35419 2008-03-20  Simon Josefsson  <simon@josefsson.org>
35420
35421         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
35422         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
35423
35424 2008-03-20  Eric Blake  <ebb9@byu.net>
35425
35426         Sync GNUmakefile with coreutils.
35427         * build-aux/GNUmakefile (have-Makefile): Rename...
35428         (_have-Makefile): ...to this, for namespace consideration.
35429         (GNUmakefile.cfg): Include, if present.
35430         (_autoreconf): Define a default.
35431         (_is-dist-target): New rule for rebuilds to pick up intra-release
35432         version.
35433         (maint-cfg.mk): Rename...
35434         (cfg.mk): ...to this.
35435
35436 2008-03-18  Jim Meyering  <meyering@redhat.com>
35437
35438         New script and module: mktempd
35439         * MODULES.html.sh (maint+release support): Add mktempd.
35440         * build-aux/mktempd: New file.
35441         * modules/mktempd: New file.
35442
35443 2008-03-15  Jim Meyering  <meyering@redhat.com>
35444
35445         Undo last change.
35446         * lib/sha1.c, lib/md5.c: 63 != ~63.
35447         Reported by Andreas Schwab.
35448
35449         sha1.c, md5.c: Hoist a redundant expression.
35450         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
35451         "ctx->buflen" only once, before calling *_process_block.
35452         * lib/md5.c (md5_process_bytes): Likewise.
35453
35454 2008-03-14  Eric Blake  <ebb9@byu.net>
35455
35456         Bump copyright year in files generated by gnulib-tool.
35457         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
35458         gnulib-tool, rather than hard-coding it.
35459
35460         Fix 'gnulib-tool --version' output to work with git.
35461         * gnulib-tool (func_gnulib_dir): New function, extracted from...
35462         (startup): ...here.
35463         (func_version): Use it to invoke git-version-gen, rather than
35464         relying on CVS keyword expansion.  Modernize wording.
35465         (cvsdatestamp, last_checkin_date, version): Kill unused
35466         variables.
35467
35468 2008-03-12  Jim Meyering  <meyering@redhat.com>
35469
35470         Recognize optional cast of the argument to free.
35471         * build-aux/useless-if-before-free: Update regexps.
35472
35473         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
35474
35475 2008-03-11  Bruno Haible  <bruno@clisp.org>
35476
35477         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
35478         by a single package.
35479         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
35480         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
35481         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
35482         Reported by Sam Steingold <sds@gnu.org>.
35483
35484 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35485
35486         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
35487         repositories.
35488
35489 2008-03-11  Bruno Haible  <bruno@clisp.org>
35490
35491         Avoid conflicts between local macro definitions.
35492         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
35493         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
35494
35495 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
35496             Bruno Haible  <bruno@clisp.org>
35497
35498         Make va_copy work with some version of xlc on AIX 5.1.
35499         * lib/stdarg.in.h: New file.
35500         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
35501         On AIX, use a <stdarg.h> file substitute.
35502         * modules/stdarg (Files): Add lib/stdarg.in.h.
35503         (Depends-on): Add include_next.
35504         (Makefile.am): Build a stdarg.h substitute if requested.
35505         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
35506
35507 2008-03-10  Bruno Haible  <bruno@clisp.org>
35508
35509         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
35510         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35511         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
35512
35513 2008-03-10  Bruno Haible  <bruno@clisp.org>
35514
35515         * modules/stdlib (Depends-on): Add include_next, remove
35516         absolute-header.
35517
35518 2008-03-09  Bruno Haible  <bruno@clisp.org>
35519
35520         * lib/freadahead.h (freadahead): Document more precisely.
35521         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
35522         the sum of both buffer sizes.
35523         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
35524         * NEWS: Document the change.
35525
35526 2008-03-09  Bruno Haible  <bruno@clisp.org>
35527
35528         Extend freadptr to return also the buffer size.
35529         * lib/freadptr.h (freadptr): Add sizep argument.
35530         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
35531         (freadptr): Add sizep argument. Determine buffer size like freadahead
35532         does.
35533         * tests/test-freadptr.c: Don't include freadahead.h.
35534         (main): Adapt for new calling convention of freadptr.
35535         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
35536         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
35537         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
35538         tests/test-freadptr2.sh.
35539         (Depends): Remove freadahead.
35540         (TESTS): Add test-freadptr2.sh.
35541         (check_PROGRAMS): Add test-freadptr2.
35542
35543 2008-03-09  Bruno Haible  <bruno@clisp.org>
35544
35545         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
35546         Report and solution by Simon Josefsson.
35547
35548 2008-03-06  Bruno Haible  <bruno@clisp.org>
35549
35550         Make fflush after ungetc work on BSD platforms.
35551         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
35552         * tests/test-fflush2.c: New file.
35553         * tests/test-fflush2.sh: New file.
35554         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
35555         tests/test-fflush2.c.
35556         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
35557         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
35558
35559 2008-03-06  Eric Blake  <ebb9@byu.net>
35560
35561         Likewise for ftello.
35562         * modules/ftello (Dependencies): Add extensions.
35563         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
35564
35565 2008-03-06  Bruno Haible  <bruno@clisp.org>
35566
35567         * modules/fseeko (Dependencies): Add extensions.
35568         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
35569         Needed on glibc systems.
35570
35571 2008-03-06  Bruno Haible  <bruno@clisp.org>
35572
35573         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
35574         email address.
35575         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35576
35577 2008-03-06  Bruno Haible  <bruno@clisp.org>
35578
35579         * users.txt: Add libgnupdf.
35580
35581 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35582
35583         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
35584         (Header File Substitutes, Function Substitutes,
35585         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
35586         (Build robot for gnulib): Fix typo.
35587
35588 2008-03-06  Bruno Haible  <bruno@clisp.org>
35589
35590         * doc/gnulib-tool.texi (VCS Issues): Small updates.
35591         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35592
35593 2008-03-06  Bruno Haible  <bruno@clisp.org>
35594
35595         * doc/func.texi: New file, extracted from doc/gnulib.texi.
35596         * doc/gnulib.texi: Include it.
35597
35598 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35599
35600         * modules/func (License): Change license to unlimited; there was
35601         no LGPL parts in the module anyway.
35602
35603 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35604
35605         * modules/__func__: Renamed to modules/func.
35606         * modules/__func__-tests: Renamed to modules/func-tests.
35607         * tests/test-__func__.c: Renamed to tests/test-func.c.
35608         * m4/__func__.m4: Renamed to m4/func.m4.
35609         * doc/gnulib.texi (__func__): Section renamed to func.
35610         Suggested by Eric Blake <ebb9@byu.net>.
35611
35612 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35613
35614         * doc/gnulib.texi (__func__): Use C99 terminology when talking
35615         about __func__.  Make example self-contained.  Suggested by Eric
35616         Blake <ebb9@byu.net>.
35617
35618         * tests/test-__func__.c (main): Avoid extraneous () around __func.
35619         Suggested by Eric Blake <ebb9@byu.net>.
35620
35621 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35622
35623         * modules/__func__: New file.
35624         * modules/__func__-tests: New file.
35625         * tests/test-__func__.c: New file.
35626         * m4/__func__.m4: New file.
35627         * doc/gnulib.texi (__func__): Document __func__ module.
35628
35629 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35630
35631         * modules/byteswap (License): Re-license as LGPLv2+.
35632
35633 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35634
35635         * doc/Makefile: Add pdf target.
35636
35637 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35638
35639         * modules/inline (License): Use 'unlimited', since there are only
35640         *.m4 files in this module.
35641
35642 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
35643             Bruno Haible  <bruno@clisp.org>
35644
35645         Add support for HP C 7.1 on OpenVMS 8.3.
35646         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
35647
35648 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
35649
35650         Update VMS specifics.
35651         * lib/getopt.c [VMS]: Remove include of unixlib.h.
35652
35653 2008-03-02  Jim Meyering  <meyering@redhat.com>
35654
35655         Remove the last dependency on the "free" module.
35656         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
35657         Reported by Bob Proulx.
35658
35659         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
35660
35661         Remove useless "if" tests before free.  Deprecate "free" module.
35662         * doc/posix-functions/free.texi: Mention that this
35663         module is no longer useful.
35664         * modules/free (Notice): Say this module is obsolete.
35665         * modules/readutmp (Depends-on): Remove free.
35666         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
35667         * lib/putenv.c (putenv): Likewise.
35668         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
35669         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
35670         * tests/test-c-strcasestr.c (main): Likewise.
35671         * tests/test-c-strstr.c (main): Likewise.
35672         * tests/test-mbscasestr1.c (main): Likewise.
35673         * tests/test-mbscasestr2.c (main): Likewise.
35674         * tests/test-mbsstr1.c (main): Likewise.
35675         * tests/test-mbsstr2.c (main): Likewise.
35676         * tests/test-memmem.c (main): Likewise.
35677         * tests/test-strcasestr.c (main): Likewise.
35678         * tests/test-striconv.c (main): Likewise.
35679         * tests/test-striconveh.c (main): Likewise.
35680         * tests/test-striconveha.c (main): Likewise.
35681         * tests/test-strstr.c (main): Likewise.
35682
35683         * build-aux/git-version-gen: Adjust a comment and the Usage string.
35684
35685         bootstrap: sync from coreutils again
35686         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
35687
35688 2008-03-01  Jim Meyering  <meyering@redhat.com>
35689
35690         bootstrap: sync from coreutils
35691         * build-aux/bootstrap (update_po_files): Copy a .po file into place
35692         also when the target doesn't exist.
35693
35694 2008-03-01  Eric Blake  <ebb9@byu.net>
35695
35696         Fix bugs in last patch.
35697         * lib/memchr2.c (memchr2): Fix typo.
35698         * tests/test-memchr2.c: Test previous bug, and don't use GNU
35699         extension.
35700         Reported by Bruce Korb.
35701
35702         New module 'memchr2'.
35703         * modules/memchr2: New file.
35704         * modules/memchr2-tests: Likewise.
35705         * lib/memchr2.h: Likewise.
35706         * lib/memchr2.c: Likewise, based on memchr.c.
35707         * tests/test-memchr2.c: New test.
35708         * MODULES.html.sh (String handling): Add memchr2.
35709
35710 2008-02-29  Bruno Haible  <bruno@clisp.org>
35711
35712         * modules/freadseek-tests: New file.
35713         * tests/test-freadseek.sh: New file.
35714         * tests/test-freadseek.c: New file.
35715
35716         New module 'freadseek'.
35717         * modules/freadseek: New file.
35718         * lib/freadseek.h: New file.
35719         * lib/freadseek.c: New file.
35720         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
35721
35722 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35723
35724         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
35725         wydawca.
35726
35727         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
35728         program_invocation_name and program_invocation_short_name are
35729         present.
35730
35731 2008-02-28  Bruno Haible  <bruno@clisp.org>
35732
35733         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
35734         * tests/test-freadptr.sh: Also test non-seekable stdin.
35735
35736 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
35737
35738         * build-aux/bootstrap (source_base, m4_base)
35739         (doc_base, tests_base): New variables.
35740         (gnulib_tool_options): Do not hardcode base directories, use
35741         the above variables instead.
35742
35743 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
35744
35745         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
35746
35747 2008-02-28  Bruno Haible  <bruno@clisp.org>
35748
35749         * modules/freadptr-tests: New file.
35750         * tests/test-freadptr.sh: New file.
35751         * tests/test-freadptr.c: New file.
35752
35753         New module 'freadptr'.
35754         * modules/freadptr: New file.
35755         * lib/freadptr.h: New file.
35756         * lib/freadptr.c: New file.
35757         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
35758
35759 2008-02-26  Karl Berry  <karl@freefriends.org>
35760
35761         Sync from Libtool:
35762         * libltdl/argz.c (argz_add, argz_count): New functions.
35763         * libltdl/argz.in.h: Declare them.
35764         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
35765
35766 2008-02-22  Bruno Haible  <bruno@clisp.org>
35767
35768         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
35769         is a pointer type.  Needed for HP-UX 10.
35770         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
35771         * doc/posix-functions/gmtime_r.texi: Likewise.
35772         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
35773
35774 2008-02-24  Bruno Haible  <bruno@clisp.org>
35775
35776         * modules/environ-tests: New file.
35777         * tests/test-environ.c: New file.
35778
35779         New module 'environ'.
35780         * modules/environ: New file.
35781         * lib/unistd.in.h (environ): New declaration.
35782         * m4/environ.m4: New file.
35783         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
35784         after use.
35785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
35786         HAVE_DECL_ENVIRON.
35787         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
35788         HAVE_DECL_ENVIRON.
35789         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
35790         wrong claim that 'environ' is missing on some systems.
35791         * modules/execute (Depends-on): Add environ.
35792         * lib/execute.c (environ): Remove fallback declaration.
35793         * modules/pipe (Depends-on): Add environ.
35794         * lib/pipe.c (environ): Remove fallback declaration.
35795         * modules/setenv (Depends-on): Add environ.
35796         * lib/setenv.c (environ): Remove fallback declaration.
35797         * modules/unsetenv (Depends-on): Add environ.
35798         * lib/unsetenv.c (environ): Remove fallback declaration.
35799         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
35800         m4/environ.m4.
35801         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
35802         (gl_PREREQ_UNSETENV): Likewise.
35803
35804 2008-02-24  Bruno Haible  <bruno@clisp.org>
35805
35806         * doc/posix-functions/environ.texi: Document the MacOS X problem.
35807
35808 2008-02-20  Bob Proulx  <bob@proulx.com>
35809
35810         Enable use of older two part flavor 'git describe'.
35811         * build-aux/git-version-gen: If using the older two part flavor of
35812         git version then recreate the third part now present in the
35813         newer three part flavor of git describe.
35814
35815 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
35816
35817         * lib/fts.c (fts_build): Typo correction to comment.
35818
35819 2008-02-17  Bruno Haible  <bruno@clisp.org>
35820
35821         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
35822         generating no-op conflicts.
35823
35824 2008-02-17  Bruno Haible  <bruno@clisp.org>
35825
35826         Speed up by 10%.
35827         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
35828         result_entries, rather than an index-based loop.
35829
35830 2008-02-17  Bruno Haible  <bruno@clisp.org>
35831
35832         Speed up by 25%.
35833         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
35834         'hashcode_cached'.
35835         (entry_create): New function.
35836         (entry_hashcode): Use the cached hashcode if possible.
35837         (read_changelog_file, try_split_merged_entry): Use entry_create.
35838
35839 2008-02-17  Bruno Haible  <bruno@clisp.org>
35840
35841         Speed up from O(n^2) to O(n) for long ChangeLog files.
35842         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
35843         (read_changelog_file): Change implementation of entries_reversed list
35844         to rbtreehash.
35845         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
35846
35847 2008-02-17  Bruno Haible  <bruno@clisp.org>
35848
35849         New option --split-merged-entry.
35850         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
35851         (find_paragraph_end, try_split_merged_entry): New functions.
35852         (long_options): Add option --split-merged-entry.
35853         (usage): Document option --split-merged-entry.
35854         (main): Implement option --split-merged-entry.
35855         Reported by Eric Blake.
35856
35857 2008-02-17  Bruno Haible  <bruno@clisp.org>
35858
35859         * lib/git-merge-changelog.c: Include c-strstr.h.
35860         (main): Support the "git pull --rebase" situation.
35861         * modules/git-merge-changelog (Depends-on): Add c-strstr.
35862         Reported by Eric Blake.
35863
35864 2008-02-16  Eric Blake  <ebb9@byu.net>
35865
35866         Avoid doubling \ in common case of "c-maybe" quoting style.
35867         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
35868         eliding outer quotes.
35869         * lib/quotearg.h: Document this.
35870         * tests/test-quotearg.c (result_strings, inputs, results_g)
35871         (flag_results, locale_results): Test it by adding a new string to
35872         each test group.
35873         (compare_strings): Test new string.
35874
35875 2008-02-13  Eric Blake  <ebb9@byu.net>
35876
35877         Avoid trigraph quoting in default output.
35878         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
35879         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
35880         unless explicitly requested.
35881         * tests/test-quotearg.c (flag_results, main): Add additional tests.
35882
35883 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
35884
35885         Don't rely on signed integer overflowing to negative value.
35886         * lib/getugroups.c (getugroups): Include <limits.h>.
35887         Instead, compare against INT_MAX, and increment only if the test passes.
35888
35889 2008-02-13  Jim Meyering  <meyering@redhat.com>
35890         and Eric Blake  <ebb9@byu.net>
35891
35892         Avoid shadowing warning and compile errors on Linux.
35893         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
35894         forwarding macros on Linux.
35895         (dcgettext): Define a stub, for Linux.
35896         (results_g, main): Avoid warnings.
35897
35898 2008-02-12  Eric Blake  <ebb9@byu.net>
35899
35900         Silence warning in last patch.
35901         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
35902
35903         Quotearg part 4: add tests, fix c-maybe colon quoting.
35904         * lib/quotearg.h: Improve documentation.
35905         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
35906         escapes when adding outer quotes.  When quoting trigraphs, use
35907         valid C notation.  When quoting NUL, omit extra characters if next
35908         character is not digit.  Alter prototype.
35909         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
35910         callers.
35911         * modules/quotearg-tests: New module.
35912         * tests/test-quotearg.c: New test.
35913
35914 2008-02-07  Eric Blake  <ebb9@byu.net>
35915
35916         Quotearg part 3: add flag to control outer quote elision.
35917         * lib/quotearg.h (c_maybe_quoting_style): New style.
35918         (enum quoting_flags): Better documentation of flags.
35919         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
35920         c-maybe style.
35921         (quotearg_buffer_restyled): Handle new flag to elide outer
35922         quotes.
35923
35924         Quotearg part 2: add flag that can control NUL elision.
35925         * lib/quotearg.h (set_quoting_flags): New prototype.
35926         * lib/quotearg.c (struct quoting_options): Add flag field.
35927         (set_quoting_flags): New function.
35928         (quotearg_buffer_restyled): Add flags parameter.
35929         (quotearg_alloc_mem): Set the flag if length cannot be returned.
35930         (quotearg_n_options): Set the flag, since length cannot be
35931         returned.
35932         (quoting_options_from_style): Default flags correctly.
35933
35934         Quotearg part 1: more wrappers, restore quotearg_char state.
35935         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
35936         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
35937         (quotearg_colon_mem): New wrappers.
35938         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
35939         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
35940         functions.
35941         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
35942         (quotearg_colon_mem): New functions.
35943
35944 2008-02-11  Bruno Haible  <bruno@clisp.org>
35945
35946         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
35947         library in the current directory: it does not work with parallel make.
35948         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35949
35950 2008-02-11  Bruno Haible  <bruno@clisp.org>
35951
35952         * .gitattributes: New file.
35953
35954 2008-02-11  Jim Meyering  <meyering@redhat.com>
35955
35956         useless-if-before-free: Fix reversed exit values.
35957         * build-aux/useless-if-before-free: Use correct values
35958         for EXIT_MATCH and EXIT_NO_MATCH.
35959
35960         * build-aux/useless-if-before-free: Close stdout carefully.
35961
35962 2008-02-10  Bruno Haible  <bruno@clisp.org>
35963
35964         New module 'git-merge-changelog'.
35965         * modules/git-merge-changelog: New file.
35966         * lib/git-merge-changelog.c: New file.
35967
35968 2008-02-10  Jim Meyering  <meyering@redhat.com>
35969
35970         useless-if-before-free: New option: --list (-l).
35971
35972         useless-if-before-free: Don't exit immediately upon open failure.
35973         * build-aux/useless-if-before-free: Exit 2 for errors.
35974         Upon failure to open a file, don't exit immediately.
35975         Rather, just warn and continue with any remaining files.
35976
35977 2008-02-10  Bruno Haible  <bruno@clisp.org>
35978
35979         New abstract list operation 'node_set_value'.
35980         * lib/gl_list.h (gl_list_node_set_value): New function.
35981         (struct gl_list_implementation): New field node_set_value.
35982         * lib/gl_list.c (gl_list_node_set_value): New function.
35983         * lib/gl_array_list.c (gl_array_node_set_value): New function.
35984         (gl_array_list_implementation): Update.
35985         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
35986         (gl_carray_list_implementation): Update.
35987         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
35988         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
35989         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
35990         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
35991         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
35992         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
35993         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
35994         Update.
35995         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
35996         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
35997         (gl_sublist_list_implementation): Update.
35998
35999 2008-02-10  Bruno Haible  <bruno@clisp.org>
36000
36001         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36002         Needed when ELEMENT is #defined to 'some_type *'.
36003
36004 2008-02-10  Jim Meyering  <meyering@redhat.com>
36005
36006         New script and module: useless-if-before-free
36007         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36008         * build-aux/useless-if-before-free: New file.
36009         * modules/useless-if-before-free: New file.
36010
36011         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36012
36013         xstrtol_error: Fix typo.
36014         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36015         s/exit_failure/exit_status/.
36016
36017 2008-02-09  Jim Meyering  <meyering@redhat.com>
36018
36019         New script and module: gitlog-to-changelog
36020         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36021         * modules/gitlog-to-changelog: New file.
36022         * build-aux/gitlog-to-changelog: New file.
36023
36024 2008-02-08  Jim Meyering  <meyering@redhat.com>
36025
36026         Avoid two "parameter unused" warnings.
36027         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36028         Mark "st" as used.
36029
36030         Use "git COMMAND", not "git-COMMAND".
36031         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36032         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36033         * build-aux/git-version-gen: Use "git status", not "git-status".
36034
36035 2008-02-07  Bruno Haible  <bruno@clisp.org>
36036
36037         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36038         Avoids a crash on Windows Vista.
36039         Reported by Adam Strzelecki <ono@java.pl> via
36040         Simon Josefsson <simon@josefsson.org>.
36041
36042 2008-02-06  Bruno Haible  <bruno@clisp.org>
36043
36044         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36045         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
36046         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
36047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
36048         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36049         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36050         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
36051         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
36052         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36054         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36055         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36056         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36057         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36058         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36059         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
36060         left-adjust flag.
36061         * tests/test-snprintf-posix.h (test_function): Likewise.
36062         * tests/test-sprintf-posix.h (test_function): Likewise.
36063         * tests/test-vasprintf-posix.c (test_function): Likewise.
36064         * doc/posix-functions/fprintf.texi: Update.
36065         * doc/posix-functions/printf.texi: Update.
36066         * doc/posix-functions/snprintf.texi: Update.
36067         * doc/posix-functions/sprintf.texi: Update.
36068         * doc/posix-functions/vfprintf.texi: Update.
36069         * doc/posix-functions/vprintf.texi: Update.
36070         * doc/posix-functions/vsnprintf.texi: Update.
36071         * doc/posix-functions/vsprintf.texi: Update.
36072         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36073
36074 2008-02-06  Bruno Haible  <bruno@clisp.org>
36075
36076         Fix bug introduced on 2008-01-26.
36077         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
36078
36079 2008-02-06  Bruno Haible  <bruno@clisp.org>
36080
36081         Fix bug introduced on 2007-06-10.
36082         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
36083         !NEED_PRINTF_FLAG_ZERO.
36084
36085 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
36086
36087         getloadavg: use libperfstat on AIX5
36088         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
36089
36090 2008-02-03  Bruno Haible  <bruno@clisp.org>
36091
36092         * lib/diffseq.h: Add comments about required #includes.
36093         Reported by Michael Biggs <gnulib@doubleplum.net>.
36094
36095 2008-02-01  Bruno Haible  <bruno@clisp.org>
36096
36097         * users.txt: Add gnuit.
36098
36099 2008-01-31  Bruno Haible  <bruno@clisp.org>
36100
36101         * lib/md4.c (set_uint32): Mark as inline.
36102         * lib/md5.c (set_uint32): Likewise.
36103         * lib/sha1.c (set_uint32): Likewise.
36104         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
36105         * m4/md5.m4 (gl_MD5): Likewise.
36106         * m4/sha1.m4 (gl_SHA1): Likewise.
36107
36108 2008-01-31  Jim Meyering  <meyering@redhat.com>
36109
36110         Use "sizeof VAR", rather than a literal "4".
36111         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
36112         * lib/md4.c (md4_read_ctx): Likewise.
36113         * lib/sha1.c (sha1_read_ctx): Likewise.
36114
36115 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36116
36117         * tests/test-sha1.c: New file, based on test-md5.c.
36118
36119         * modules/crypto/sha1-tests: New file.
36120
36121 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36122
36123         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
36124
36125 2008-01-31  Jim Meyering  <meyering@redhat.com>
36126
36127         Prefer "sizeof v" over the equivalent "4".
36128         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
36129         * lib/md5.c (set_uint32): Likewise.
36130         * lib/sha1.c (set_uint32): Likewise.
36131
36132 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36133
36134         * lib/sha1.c (set_uint32): Mark function as static.
36135
36136 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36137
36138         md2: clarify comments to say that alignment is not required.
36139         * lib/md2.h: Remove warning about alignment in comment.
36140         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
36141         never been required.
36142
36143 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36144
36145         md4: adapt alignment constraint fix from sha1.
36146         * lib/md4.c (set_uint32): New function, from sha1.c
36147         (md4_read_ctx): Use it.
36148         (md4_finish_ctx): Doc fix.
36149         * lib/md4.h: Doc fix.
36150
36151 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36152
36153         md5: adapt alignment constraint fix from sha1.
36154         * lib/md5.c (set_uint32): New function, from sha1.c
36155         (md5_read_ctx): Use it.
36156         (md5_finish_ctx): Doc fix.
36157         * lib/md5.h: Doc fix.
36158
36159 2008-01-30  Peter Palfrader  <weasel@debian.org>
36160
36161         sha1: remove the result buffer alignment constraint
36162         * lib/sha1.c (set_uint32): New function.
36163         (sha1_read_ctx): Rewrite to remove the result buffer alignment
36164         constraint.
36165         (sha1_finish_ctx): Remove comment warning about alignment constraint.
36166         * lib/sha1.h: Likewise.
36167
36168 2008-01-30  Andreas Schwab  <schwab@suse.de>
36169             Bruno Haible  <bruno@clisp.org>
36170
36171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
36172         correct definition of LDBL_MIN_EXP.
36173
36174 2008-01-30  Karl Berry  <karl@gnu.org>
36175
36176         * config/srclist-update: try to preserve x bit on updates.
36177         * config/srclistvars.sh: update for karl.
36178
36179 2008-01-29  Jim Meyering  <meyering@redhat.com>
36180
36181         vasnprintf.c: Avoid warning about unused label
36182         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
36183         "overflow" label definition and associated code with the
36184         same cpp condition that guards the sole use of that label.
36185
36186 2008-01-26  Bruno Haible  <bruno@clisp.org>
36187
36188         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
36189         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
36190         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
36191         * lib/isnanl-nolibm.h (isnanl): Likewise.
36192         Reported by Paul Eggert <eggert@cs.ucla.edu>.
36193
36194 2008-01-26  Bruno Haible  <bruno@clisp.org>
36195
36196         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
36197         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
36198
36199 2008-01-26  Bruno Haible  <bruno@clisp.org>
36200
36201         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
36202         GCC >= 4.0 built-in.
36203         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
36204
36205 2008-01-26  Bruno Haible  <bruno@clisp.org>
36206
36207         Rename isnan, applicable to 'double' only, to isnand.
36208         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
36209         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
36210         (configure.ac): Update.
36211         (Include): Replace "isnan.h" with "isnand.h".
36212         * m4/isnand.m4: Renamed from m4/isnan.m4.
36213         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
36214         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
36215         instead of isnan.c.
36216         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
36217         instead of HAVE_ISNAN_IN_LIBC.
36218         (isnand): Renamed from isnan.
36219         * lib/isnand.c: New file.
36220         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
36221         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
36222         (Makefile.am): Update.
36223         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
36224         Include isnand.h instead of isnan.h.
36225         (main): Test isnand instead of isnan.
36226         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
36227         isnan-nolibm.
36228         * modules/frexp (Depends-on): Likewise.
36229         * modules/frexp-tests (Depends-on): Likewise.
36230         * modules/frexp-nolibm (Depends-on): Likewise.
36231         * modules/frexp-nolibm-tests (Depends-on): Likewise.
36232         * modules/isfinite (Depends-on): Likewise.
36233         * modules/round-tests (Depends-on): Likewise.
36234         * modules/signbit (Depends-on): Likewise.
36235         * modules/signbit-tests (Depends-on): Likewise.
36236         * modules/snprintf-posix (Depends-on): Likewise.
36237         * modules/sprintf-posix (Depends-on): Likewise.
36238         * modules/trunc-tests (Depends-on): Likewise.
36239         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36240         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36241         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36242         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36243         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36244         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36245         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36246         * modules/vasnprintf-posix (Depends-on): Likewise.
36247         * modules/vasprintf-posix (Depends-on): Likewise.
36248         * modules/vfprintf-posix (Depends-on): Likewise.
36249         * modules/vsnprintf-posix (Depends-on): Likewise.
36250         * modules/vsprintf-posix (Depends-on): Likewise.
36251         * lib/frexp.c: Include isnand.h instead of isnan.h.
36252         (ISNAN): Set to isnand instead of isnan.
36253         * lib/isfinite.c: Include isnand.h instead of isnan.h.
36254         (gl_isfinited): Use isnand instead of isnan.
36255         * lib/signbitd.c: Include isnand.h instead of isnan.h.
36256         (gl_signbitd): Use isnand instead of isnan.
36257         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
36258         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
36259         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
36260         (main): Use isnand instead of isnan.
36261         * tests/test-round1.c: Include isnand.h.
36262         (main): Use isnand instead of isnan.
36263         * tests/test-round2.c: Include isnand.h instead of isnan.h.
36264         (ISNAN): Set to isnand instead of isnan.
36265         * tests/test-trunc1.c: Include isnand.h.
36266         (main): Use isnand instead of isnan.
36267         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
36268         (equal): Use isnand instead of isnan.
36269         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
36270         isnand-nolibm.
36271         * NEWS: Mention the change.
36272
36273 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36274             Bruno Haible  <bruno@clisp.org>
36275
36276         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
36277         the GCC builtins for signbits are present and set
36278         REPLACE_SIGNBIT_USING_GCC if so.
36279         * lib/math.in.h (signbit): Define using GCC builtins if
36280         REPLACE_SIGNBIT_USING_GCC is set.
36281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
36282         REPLACE_SIGNBIT_USING_GCC.
36283         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
36284
36285 2008-01-25  Jim Meyering  <meyering@redhat.com>
36286
36287         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
36288         * lib/poll.c: Include <config.h>, not "config.h".
36289         * tests/test-getaddrinfo.c: Likewise.
36290
36291 2008-01-25  Simon Josefsson  <simon@josefsson.org>
36292
36293         * modules/sockets-tests: New file.
36294
36295 2008-01-24  Simon Josefsson  <simon@josefsson.org>
36296
36297         * modules/sockets: New module, can be used to call WSA_Startup and
36298         WSA_Cleanup when needed.
36299
36300         * lib/sockets.h, lib/sockets.c: New files.
36301
36302         * m4/sockets.m4: New file.
36303
36304         * tests/test-sockets.c: New file.
36305
36306 2008-01-19  Bruno Haible  <bruno@clisp.org>
36307
36308         * doc/posix-headers: Renamed from doc/headers.
36309         * doc/posix-functions: Renamed from doc/functions.
36310         * doc/gnulib.texi: Update.
36311
36312 2008-01-19  Bruno Haible  <bruno@clisp.org>
36313
36314         * doc/glibc-functions/strcasestr.texi: Include contents of
36315         doc/functions/strcasestr.texi, fixing the list of platforms.
36316         * doc/functions/strcasestr.texi: Remove file.
36317
36318 2008-01-19  Bruno Haible  <bruno@clisp.org>
36319
36320         * doc/glibc-functions/memmem.texi: Include contents of
36321         doc/functions/memmem.texi.
36322         * doc/functions/memmem.texi: Remove file.
36323
36324 2008-01-18  Bruno Haible  <bruno@clisp.org>
36325
36326         * doc/glibc-functions/*.texi: New files.
36327         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
36328         to use the new files.
36329
36330 2008-01-17  Bruno Haible  <bruno@clisp.org>
36331
36332         * tests/test-gethostname.c (main): Fix printf statement.
36333
36334 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36335
36336         * modules/gethostname-tests: New file.
36337
36338         * tests/test-gethostname.c: New file.
36339
36340 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36341
36342         * lib/gethostname.c: Include string.h unconditionally, strncpy is
36343         used by the UNAME case.  Reported by Bruno Haible
36344         <bruno@clisp.org>.
36345
36346 2008-01-17  Eric Blake  <ebb9@byu.net>
36347
36348         Convert c-strcasestr to be more efficient.
36349         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
36350         (Depends-on): Add c-strcase, remove malloca, strnlen.
36351         * tests/test-c-strcasestr.c (main): Enhance test.
36352         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
36353
36354 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36355
36356         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
36357         Use it in creating po/Makevars.
36358
36359 2008-01-15  Simon Josefsson  <simon@josefsson.org>
36360
36361         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
36362         Applications that requires it should initialize libgcrypt
36363         manually.
36364
36365 2008-01-16  Simon Josefsson  <simon@josefsson.org>
36366
36367         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
36368
36369 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36370
36371         Fix problem with getdate on mingw32 reported by Simon Josefsson
36372         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
36373         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
36374         tzname", when deciding whether to declare tzname.
36375         * lib/strftime.c (tzname): Likewise.
36376
36377 2008-01-15  Bruno Haible  <bruno@clisp.org>
36378
36379         Work around a MacOS X 10.5 bug in frexpl().
36380         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
36381         * doc/functions/frexpl.texi: Document the bug.
36382         Reported by Elias Pipping <pipping@gentoo.org>.
36383
36384 2008-01-14  Eric Blake  <ebb9@byu.net>
36385
36386         Touch up previous patch.
36387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
36388         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
36389
36390         Convert strcasestr module to use Two-Way algorithm.
36391         * modules/strcasestr-simple: New module, based on the old
36392         strcasestr, but with Two-Way rather than KMP.
36393         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
36394         * lib/string.in.h (rpl_strcasestr): Declare.
36395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
36396         performance.
36397         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
36398         * modules/string (Makefile.am): Support strcasestr.
36399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36400         * modules/strcasestr-tests (Depends-on): Check for alarm.
36401         * tests/test-strcasestr.c: Augment test.
36402         * lib/str-two-way.h: Clean up stray macro.
36403         * NEWS: Document new module.
36404         * MODULES.html.sh (string handling): Likewise.
36405         * doc/functions/strcasestr.texi: New file.
36406         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
36407         here, since it is not a POSIX function.
36408
36409 2008-01-14  Colin Watson  <cjwatson@debian.org>
36410             Bruno Haible  <bruno@clisp.org>
36411
36412         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
36413         works fine; if not, set REPLACE_STRSIGNAL.
36414         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
36415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36416         REPLACE_STRSIGNAL.
36417         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
36418         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
36419         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
36420
36421 2008-01-14  Bruno Haible  <bruno@clisp.org>
36422
36423         * modules/strsignal (Include): Change to <string.h>.
36424
36425 2008-01-14  Colin Watson  <cjwatson@debian.org>
36426
36427         * modules/argp (Notice): Add a notice recommending to change
36428         XGETTEXT_OPTIONS.
36429         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
36430
36431 2008-01-13  Colin Watson  <cjwatson@debian.org>
36432
36433         * modules/strsignal-tests: New file.
36434         * tests/test-strsignal.c: New file.
36435
36436         * lib/strsignal.c: New file, from glibc with modifications.
36437         * lib/siglist.h: New file, from glibc with modifications.
36438         * lib/string.in.h (strsignal): New declaration.
36439         * m4/strsignal.m4: New file.
36440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36441         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
36442         * modules/strsignal: New file.
36443         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
36444         HAVE_DECL_STRSIGNAL.
36445
36446 2008-01-13  Bruno Haible  <bruno@clisp.org>
36447
36448         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
36449         locale encoding is not ASCII. Needed for OpenBSD 4.0.
36450         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36451         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36452
36453 2008-01-13  Bruno Haible  <bruno@clisp.org>
36454
36455         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
36456         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
36457         * lib/argp.h (__attribute__): Likewise.
36458         * lib/c-stack.c (__attribute__): Likewise.
36459         * lib/error.h (__attribute__): Likewise.
36460         * lib/fts.c (__attribute__): Likewise.
36461         * lib/openat.h (__attribute__): Likewise.
36462         * lib/stdio.in.h (__attribute__): Likewise.
36463         * lib/string.in.h (__attribute__): Likewise.
36464         * lib/utimens.c (__attribute__): Likewise.
36465         * lib/vasnprintf.h (__attribute__): Likewise.
36466         * lib/xalloc.h (__attribute__): Likewise.
36467         * lib/xprintf.h (__attribute__): Likewise.
36468         * lib/xstrtol.h (__attribute__): Likewise.
36469         * lib/xvasprintf.h (__attribute__): Likewise.
36470
36471 2008-01-12  Bruno Haible  <bruno@clisp.org>
36472
36473         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
36474         * doc/glibc-headers/a.out.texi: New file.
36475         * doc/glibc-headers/aliases.texi: New file.
36476         * doc/glibc-headers/alloca.texi: New file.
36477         * doc/glibc-headers/ar.texi: New file.
36478         * doc/glibc-headers/argp.texi: New file.
36479         * doc/glibc-headers/argz.texi: New file.
36480         * doc/glibc-headers/byteswap.texi: New file.
36481         * doc/glibc-headers/crypt.texi: New file.
36482         * doc/glibc-headers/endian.texi: New file.
36483         * doc/glibc-headers/envz.texi: New file.
36484         * doc/glibc-headers/err.texi: New file.
36485         * doc/glibc-headers/error.texi: New file.
36486         * doc/glibc-headers/execinfo.texi: New file.
36487         * doc/glibc-headers/fpu_control.texi: New file.
36488         * doc/glibc-headers/fstab.texi: New file.
36489         * doc/glibc-headers/fts.texi: New file.
36490         * doc/glibc-headers/getopt.texi: New file.
36491         * doc/glibc-headers/ieee754.texi: New file.
36492         * doc/glibc-headers/ifaddrs.texi: New file.
36493         * doc/glibc-headers/libintl.texi: New file.
36494         * doc/glibc-headers/mcheck.texi: New file.
36495         * doc/glibc-headers/mntent.texi: New file.
36496         * doc/glibc-headers/obstack.texi: New file.
36497         * doc/glibc-headers/paths.texi: New file.
36498         * doc/glibc-headers/printf.texi: New file.
36499         * doc/glibc-headers/pty.texi: New file.
36500         * doc/glibc-headers/resolv.texi: New file.
36501         * doc/glibc-headers/shadow.texi: New file.
36502         * doc/glibc-headers/sysexits.texi: New file.
36503         * doc/glibc-headers/ttyent.texi: New file.
36504
36505 2008-01-12  Jim Meyering  <meyering@redhat.com>
36506
36507         announce-gen: emit Gnulib's git-based version string.
36508         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
36509         New option --gnulib-version=V, where V is expected to be
36510         the output of running git describe in the gnulib directory.
36511         (get_tool_versions): Request feedback on xdelta.  I suspect it's
36512         not useful, and plan to stop publishing an xdelta file with each
36513         coreutils release.
36514
36515         * build-aux/announce-gen: Also check for lzma-compressed files.
36516
36517 2008-01-11  Bruno Haible  <bruno@clisp.org>
36518
36519         * tests/test-memmem.c (main): Increase maximum allowed time.
36520         * tests/test-strstr.c (main): Likewise.
36521
36522 2008-01-11  Bruno Haible  <bruno@clisp.org>
36523
36524         * doc/functions/memmem.texi: Add more precisions about platforms.
36525         * doc/functions/strstr.texi: Likewise.
36526
36527 2008-01-10  Eric Blake  <ebb9@byu.net>
36528
36529         * m4/strstr.m4: Delete cruft from copy-n-paste.
36530         Reported by Bruno Haible.
36531
36532 2008-01-10  Bruno Haible  <bruno@clisp.org>
36533
36534         Make c-strstr rely on strstr.
36535         * lib/c-strstr.c: Don't include str-kmp.h.
36536         (c_strstr): Define in terms of strstr.
36537         * modules/c-strstr (Files): Remove lib/str-kmp.h.
36538         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
36539
36540 2008-01-10  Bruno Haible  <bruno@clisp.org>
36541
36542         * doc/gnulib.texi (String Functions in C Locale): New section.
36543         * doc/c-ctype.texi: New file.
36544         * doc/c-strcase.texi: New file.
36545         * doc/c-strcaseeq.texi: New file.
36546         * doc/c-strcasestr.texi: New file.
36547         * doc/c-strstr.texi: New file.
36548         * doc/c-strtod.texi: New file.
36549         * doc/c-strtold.texi: New file.
36550
36551 2008-01-10  Eric Blake  <ebb9@byu.net>
36552
36553         * lib/relocatable.h: Fix a comment.
36554
36555 2008-01-10  Eric Blake  <ebb9@byu.net>
36556
36557         Share two-way algorithm.
36558         * lib/str-two-way.h: New file, merged from...
36559         * lib/memmem.c: ...here...
36560         * lib/strstr.c: ...and here.
36561         * modules/memmem (Files): Use it.
36562         * modules/strstr (Files): Likewise.
36563
36564         Avoid quadratic strstr implementations.
36565         * lib/strstr.c: New file.
36566         * m4/strstr.m4: Likewise.
36567         * modules/strstr: Likewise.
36568         * modules/strstr-tests: Likewise.
36569         * tests/test-strstr.c: Likewise.
36570         * lib/string.in.h (rpl_strstr): Declare.
36571         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
36572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
36573         * modules/string (Makefile.am): Likewise.
36574         * MODULES.html.sh (string handling): Mention new module.
36575         * doc/functions/strstr.texi (strstr): Document the bug.
36576
36577 2008-01-10  Bruno Haible  <bruno@clisp.org>
36578
36579         * lib/relocatable.h (relocate): State whether result is freshly
36580         allocated or not.
36581         * lib/relocatable.c (relocate): Return a freshly allocated string
36582         instead of a pointer to a privately held string.
36583         Reported by Sylvain Beucler <beuc@gnu.org>.
36584
36585 2008-01-10  Colin Watson  <cjwatson@debian.org>
36586
36587         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
36588         s/S_ISNLK/S_ISLNK/.
36589
36590 2008-01-09  Bruno Haible  <bruno@clisp.org>
36591
36592         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
36593         and other files.
36594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
36595         if it's only a guess.
36596         * modules/memmem: Simplify by depending on memmem-simple.
36597
36598 2008-01-09  Bruno Haible  <bruno@clisp.org>
36599
36600         Work around OpenBSD 4.0 tdelete() bug.
36601         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
36602         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
36603         macros and don't redefine the enum values.
36604         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
36605         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
36606         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
36607
36608 2008-01-09  Bruno Haible  <bruno@clisp.org>
36609
36610         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
36611         (main): Don't perform the tests if setlocale did not install a UTF-8
36612         locale. Needed on OpenBSD 4.0.
36613         * modules/wcwidth-tests (Depends-on): Add localcharset.
36614
36615 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36616
36617         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
36618         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
36619         * NEWS: announce this.
36620         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
36621
36622 2008-01-09  Simon Josefsson  <simon@josefsson.org>
36623         and Eric Blake  <ebb9@byu.net>
36624
36625         Add memmem-simple module.
36626         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
36627         (gl_FUNC_MEMMEM): Separate performance from presence checks.
36628         * modules/memmem-simple: New file.
36629         * modules/memmem (Description): Tweak.
36630         * MODULES.html.sh (string handling): Mention new module.
36631         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
36632         addressed by memmem-simple.
36633         * NEWS: Document the difference.
36634
36635 2008-01-09  Eric Blake  <ebb9@byu.net>
36636
36637         Give gcc some memmem optimization hints.
36638         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
36639         (strcasestr): Declare as pure.
36640         * modules/memmem (Maintainer): Claim my implementation.
36641
36642 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36643
36644         Support AIX 6.1 and higher.
36645         * build-aux/config.libpath: Likewise.
36646         * build-aux/config.rpath: Likewise.
36647
36648 2008-01-08  Jim Meyering  <meyering@redhat.com>
36649             Bruno Haible  <bruno@clisp.org>
36650
36651         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
36652         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
36653         Reported by Peter Fales in
36654         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
36655
36656 2008-01-08  Bruno Haible  <bruno@clisp.org>
36657
36658         * modules/unictype/category-of (Depends-on): Add
36659         unictype/category-none.
36660         * modules/unictype/category-and-tests (Depends-on): Add
36661         unictype/category-{L,N,Lu,Nd}.
36662         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
36663         * modules/unictype/category-or-tests (Depends-on): Add
36664         unictype/category-{L,N}.
36665         * modules/unictype/category-name-tests (Depends-on): Add
36666         unictype/category-{Z,Nl}.
36667         Reported by Simon Josefsson.
36668
36669 2008-01-08  Bruno Haible  <bruno@clisp.org>
36670
36671         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
36672         convention better.
36673         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
36674         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
36675         Reported by Peter Miller <millerp@canb.auug.org.au>.
36676
36677 2008-01-08  Eric Blake  <ebb9@byu.net>
36678
36679         Rewrite memmem to guarantee linear complexity without malloc.
36680         * lib/memmem.c (memmem): Use Two-Way rather than
36681         Knuth-Morris-Pratt, to allow O(1) space usage.
36682         (critical_factorization, two_way_short_needle)
36683         (two_way_long_needle): New functions.
36684         (knuth_morris_pratt): Delete.
36685         * modules/memmem (Depends-on): No longer need malloca or stdbool.
36686         Add stdint.
36687         * tests/test-memmem.c (main): Add tests for periodic needle and
36688         sublinear performance.
36689         * doc/functions/memmem.texi (memmem): Document other deficiencies
36690         in cygwin and older glibc.
36691
36692 2008-01-08  Bruno Haible  <bruno@clisp.org>
36693
36694         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
36695         augmentation.
36696
36697 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
36698
36699         Add a configure time option: --disable-acl.
36700         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
36701         AC_ARG_ENABLE(acl).
36702
36703 2008-01-06  Simon Josefsson  <simon@josefsson.org>
36704
36705         * tests/test-localename.c: Don't include obsolete "setenv.h".
36706
36707         * modules/localename-tests (Depends-on): Need unsetenv.
36708
36709 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36710
36711         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
36712
36713 2008-01-06  Colin Watson  <cjwatson@debian.org>
36714
36715         * users.txt: Add man-db.
36716
36717 2008-01-07  Bruno Haible  <bruno@clisp.org>
36718
36719         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
36720         previous section name.
36721
36722 2008-01-07  Bruno Haible  <bruno@clisp.org>
36723
36724         * lib/progname.c (set_program_name): Don't strip off a leading
36725         "lt-" prefix outside a .libs directory.
36726         Suggested by Paul Eggert.
36727
36728 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
36729             Bruno Haible  <bruno@clisp.org>
36730
36731         Improve memory cleanup in 'relocatable' module.
36732         * lib/relocatable.h (compute_curr_prefix): Change return type to
36733         'char *'.
36734         * lib/relocatable.c (compute_curr_prefix): Change return type to
36735         'char *'. Free curr_installdir after use.
36736         (relocate): Free curr_prefix_better after use.
36737         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
36738
36739 2008-01-01  Bruno Haible  <bruno@clisp.org>
36740
36741         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
36742         failure on older glibc systems.
36743         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36744
36745 2008-01-05  Eric Blake  <ebb9@byu.net>
36746
36747         Avoid quadratic system memmem.
36748         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
36749         Reported by Ralf Wildenhues.
36750
36751         Fix memmem test for mingw.
36752         * modules/memmem-tests (configure.ac): Check for alarm.
36753         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
36754         it.
36755         * doc/functions/memmem.texi: New file.
36756         * doc/gnulib.texi (Function Substitutes): Add memmem.
36757         Reported by Bruno Haible.
36758
36759 2008-01-04  Bruno Haible  <bruno@clisp.org>
36760
36761         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
36762         Require gl_HEADER_STRINGS_H_DEFAULTS, not
36763         gl_HEADER_STRING_H_DEFAULTS.
36764
36765 2008-01-04  Eric Blake  <ebb9@byu.net>
36766
36767         Shorten duration of memmem test.
36768         * tests/test-memmem.c (main): Use alarm to declare failure if test
36769         is taking too long.
36770         Reported by Ralf Wildenhues.
36771
36772 2007-12-21  Simon Josefsson  <simon@josefsson.org>
36773
36774         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
36775         string, needed by strerror.
36776
36777 2008-01-03  Colin Watson  <cjwatson@debian.org>
36778             Bruno Haible  <bruno@clisp.org>
36779
36780         * doc/gnulib-tool.texi (Localization): New section.
36781
36782 2008-01-02  Bruno Haible  <bruno@clisp.org>
36783
36784         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
36785         variables to 'unsigned char *' type.
36786         Reported by Paul Eggert.
36787
36788 2008-01-02  Jim Meyering  <jim@meyering.net>
36789
36790         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
36791
36792 2007-12-31  Jim Meyering  <jim@meyering.net>
36793
36794         Avoid use of private FTS type name.
36795         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
36796
36797 2007-12-30  Karl Berry  <karl@gnu.org>
36798
36799         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
36800         work around defect in Texinfo and/or the standalone Info browser.
36801
36802 2007-12-30  Bruno Haible  <bruno@clisp.org>
36803
36804         Unify 5 copies of the KMP code.
36805         * lib/str-kmp.h: New file.
36806         * lib/c-strcasestr.c: Include str-kmp.h.
36807         (knuth_morris_pratt): Remove function.
36808         (c_strcasestr): Update.
36809         * lib/c-strstr.c: Include str-kmp.h.
36810         (knuth_morris_pratt): Remove function.
36811         (c_strcasestr): Update.
36812         * lib/mbscasestr.c: Include str-kmp.h.
36813         (knuth_morris_pratt_unibyte): Remove function.
36814         * lib/mbsstr.c: Include str-kmp.h.
36815         (knuth_morris_pratt_unibyte): Remove function.
36816         * lib/strcasestr.c: Include str-kmp.h.
36817         (knuth_morris_pratt): Remove function.
36818         (strcasestr): Update.
36819         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
36820         * modules/c-strstr (Files): Likewise.
36821         * modules/mbscasestr (Files): Likewise.
36822         * modules/mbsstr (Files): Likewise.
36823         * modules/strcasestr (Files): Likewise.
36824         Suggested by Paul Eggert.
36825
36826 2007-12-30  Bruno Haible  <bruno@clisp.org>
36827
36828         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
36829         defined.
36830
36831 2007-12-30  Bruno Haible  <bruno@clisp.org>
36832
36833         * lib/xmalloca.h: Include xalloc.h.
36834         (xnmalloca): New macro.
36835
36836 2007-12-30  Bruno Haible  <bruno@clisp.org>
36837
36838         * lib/malloca.h (nmalloca): New macro.
36839         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
36840         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
36841         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
36842         knuth_morris_pratt_multibyte): Likewise.
36843         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
36844         knuth_morris_pratt_multibyte): Likewise.
36845         * lib/memmem.c (knuth_morris_pratt): Likewise.
36846         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
36847
36848 2007-12-25  Bruno Haible  <bruno@clisp.org>
36849
36850         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
36851         * lib/glob.c: Don't include openat.h.
36852         (link_exists2_p): Add back the code that deals with the
36853         !GLOB_ALTDIRFUNC case.
36854         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
36855         let it do the filename concatenation.
36856         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
36857         * modules/glob (Depends-on): Remove openat.
36858
36859 2007-12-31  Bruno Haible  <bruno@clisp.org>
36860
36861         * modules/dirfd (License): Change to LGPLv2+.
36862         Approved by Jim Meyering.
36863
36864 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36865
36866         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
36867         when multiplying M by sizeof (size_t).
36868
36869 2007-12-10  Martin Lambers  <marlam@marlam.de>
36870
36871         Override getpagesize on mingw.
36872         * lib/getpagesize.c: New file.
36873         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
36874         * modules/getpagesize (Files): Add lib/getpagesize.c.
36875         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
36876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36877         REPLACE_GETPAGESIZE.
36878         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
36879
36880 2007-12-25  Bruno Haible  <bruno@clisp.org>
36881
36882         * modules/localcharset (Notice): New field.
36883         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
36884         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
36885
36886 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36887             Bruno Haible  <bruno@clisp.org>
36888
36889         Avoid using the syntax symbol() in formatted documentation.
36890         * MODULES.html.sh (func_module): When replacing symbol() with a
36891         hyperlink, remove the parentheses. Show an error if some remain.
36892         Recognize and render the '...' syntax.
36893         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
36894         Rework. Add paragraph about GCC's inlining.
36895         * doc/alloca.texi: Likewise.
36896         * doc/error.texi: Remove parentheses from symbol reference.
36897         * doc/gnulib-intro.texi: Likewise.
36898         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
36899         * modules/fnmatch (Description): Reword to say "the ... function".
36900         * modules/full-read (Description): Likewise.
36901         * modules/full-write (Description): Likewise.
36902         * modules/safe-read (Description): Likewise.
36903         * modules/safe-write (Description): Likewise.
36904         * modules/strchrnul (Description): Likewise.
36905         * modules/trim (Description): Likewise.
36906         * modules/error (Description): Remove parentheses from symbol
36907         references.
36908         * modules/verror (Description): Likewise.
36909         Reported by Karl Berry.
36910
36911 2007-12-25  Bruno Haible  <bruno@clisp.org>
36912
36913         Fixup after 2007-10-16 commit.
36914         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
36915
36916 2007-12-24  Bruno Haible  <bruno@clisp.org>
36917
36918         Make --enable-relocatable work with DESTDIR.
36919         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
36920         to compute installdir from destprog.
36921         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
36922         also set the RELOC_DESTDIR variable.
36923         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36924
36925 2007-12-24  Bruno Haible  <bruno@clisp.org>
36926
36927         Fix link error due to xalloc_die().
36928         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
36929         of xreadlink.
36930         * lib/relocwrapper.c: Update comments.
36931         * build-aux/install-reloc: Remove xreadlink.c from file list.
36932         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
36933         xreadlink.c.
36934         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36935
36936 2007-12-24  Bruno Haible  <bruno@clisp.org>
36937
36938         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
36939         * lib/setenv.h: Remove file.
36940         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
36941         lib/setenv.h.
36942         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
36943         (Depends-on): Add stdlib.
36944         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
36945         gl_FUNC_UNSETENV.
36946         (Include): Replace setenv.h with <stdlib.h>.
36947         * modules/unsetenv: New file.
36948         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
36949         * lib/unsetenv.c: Include <stdlib.h> first.
36950         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
36951         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
36952         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
36953         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
36954         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
36955         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
36957         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36958         * doc/functions/unsetenv.texi: Update.
36959         * modules/xsetenv (Depends-on): Add unsetenv.
36960         * modules/getdate (Depends-on): Likewise.
36961         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
36962         * lib/xsetenv.c: Don't include setenv.h.
36963         * lib/getdate.y: Likewise.
36964         * lib/relocwrapper.c: Likewise.
36965         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
36966         (Depends-on): Add stdlib.
36967         * NEWS: Mention the changes.
36968         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36969
36970 2007-12-23  Bruno Haible  <bruno@clisp.org>
36971
36972         * lib/memmem.c (memmem): Use lowercase variable names. Tab
36973         indentation.
36974
36975 2007-12-23  Bruno Haible  <bruno@clisp.org>
36976
36977         * lib/c-strcasestr.c: Add more comments.
36978         * lib/c-strstr.c: Likewise.
36979         * lib/mbscasestr.c: Likewise.
36980         * lib/mbsstr.c: Likewise.
36981         * lib/strcasestr.c: Likewise.
36982         * lib/memmem.c: Likewise.
36983
36984 2007-12-23  Bruno Haible  <bruno@clisp.org>
36985
36986         * tests/test-memmem.c: Include <string.h> first.
36987
36988 2007-12-22  Bruno Haible  <bruno@clisp.org>
36989
36990         * gnulib-tool (func_create_testdir): Change $auxdir while generating
36991         the contents of $testsbase.
36992         Reported by Ralf Wildenhues.
36993
36994 2007-12-22  Bruno Haible  <bruno@clisp.org>
36995
36996         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
36997         two variables local_ldadd_before, local_ldadd_last.
36998
36999 2007-12-20  Eric Blake  <ebb9@byu.net>
37000
37001         Work around circular library issue when cross-compiling.
37002         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37003         that progname.o does not need to pull in rpl_memcmp.
37004
37005 2007-12-19  Eric Blake  <ebb9@byu.net>
37006
37007         Fix memmem to avoid O(n^2) worst-case complexity.
37008         * lib/memmem.c (knuth_morris_pratt): New function.
37009         (memmem): Use it if first few naive iterations fail.
37010         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37011         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37012         * modules/memchr (License): Likewise.
37013         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37014         malloca.
37015         * tests/test-memmem.c: Rewrite, borrowing ideas from
37016         test-mbsstr1.c; the old version wouldn't even compile!
37017         * modules/memmem-tests: New file.
37018         * lib/string.in.h (rpl_memmem): Add declaration.
37019         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37021         REPLACE_MEMMEM.
37022
37023 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37024
37025         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37026         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37027         before any system include files, and undef after them all.  This
37028         should fix a problem on VMS reported by John E. Malmberg in
37029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37030
37031 2007-12-17  Eric Blake  <ebb9@byu.net>
37032
37033         Revert addition of verify, for BSD/OS.
37034         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37035         can't handle large files, for the sake of obsolete platforms.
37036         * modules/fseeko (Depends-on): Remove verify.
37037         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37038         * doc/functions/ftello.texi (ftello): Likewise.
37039         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37040         Reported by Larry Jones.
37041
37042 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37043
37044         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37045         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
37046
37047 2007-12-17  Jim Meyering  <meyering@redhat.com>
37048
37049         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
37050         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
37051         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
37052         * modules/getcwd (Depends-on): Add openat.
37053         Reported by Petr Salinger.
37054
37055 2007-12-17  Bruno Haible  <bruno@clisp.org>
37056
37057         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
37058         avoid a segmentation fault of the configure test on x86_64 systems.
37059
37060 2007-12-15  Jim Meyering  <meyering@redhat.com>
37061
37062         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
37063
37064 2007-12-13  Eric Blake  <ebb9@byu.net>
37065
37066         Another fseek test.
37067         * tests/test-fseek.c (main): Also test ungetc handling.
37068         * tests/test-fseeko.c (main): Likewise.
37069         * modules/fseeko (Depends-on): Add verify.
37070         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
37071         large.
37072         Reported by Larry Jones.
37073
37074         Fix fseeko on mingw.
37075         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
37076         seek.
37077
37078         Beef up fseek tests.
37079         * tests/test-fseek.c (main): Also test eof handling.
37080         * tests/test-fseeko.c (main): Likewise.
37081         Reported by Larry Jones.
37082
37083 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
37084
37085         Fix fseeko on BSD-based platforms.
37086         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
37087         successful seek.
37088
37089 2007-12-12  Eric Blake  <ebb9@byu.net>
37090
37091         Allow circular dependency of separate libtests.a
37092         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
37093         when use_libtests.
37094
37095 2007-12-11  Eric Blake  <ebb9@byu.net>
37096
37097         Fix bug with -0.0L in previous patch.
37098         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
37099         * tests/test-isnan.c (main): Also test on zeroes.
37100         * tests/test-isnanf.c (main): Likewise.
37101         * tests/test-isnanl.h (main): Likewise.
37102
37103         Detect pseudo-denormals on x86 even when cross-compiling.
37104         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
37105         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
37106         invalid bit patterns that happen to satisfy ==.
37107
37108         Avoid link failures with separate libtests.a.
37109         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
37110         last, to satisfy circular dependencies.
37111
37112 2007-12-11  Eric Blake  <ebb9@byu.net>
37113         and Bruno Haible  <bruno@clisp.org>
37114
37115         Fix OpenBSD 4.0 <float.h> handling of long double.
37116         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
37117         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
37118         * doc/headers/float.texi (float.h): Document OpenBSD bug.
37119
37120 2007-12-11  Jim Meyering  <meyering@redhat.com>
37121
37122         * users.txt: Add libvirt.
37123
37124         Support versions of autoconf prior to 2.59c.
37125         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
37126         if it is not already defined.
37127
37128 2007-12-09  Bruno Haible  <bruno@clisp.org>
37129
37130         Let 'gnulib-tool --import' collect sources needed for the tests in
37131         tests/ rather than in lib/.
37132         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
37133         argument. If true, add rules to generate libtests.a, and put libtests.a
37134         into $(LDADD). Consider source files in subdirectories and set
37135         uses_subdirs.
37136         (func_emit_initmacro_start, func_emit_initmacro_end,
37137         func_emit_initmacro_done): Pass all arguments explicitly.
37138         (func_import): Determine two module lists main_modules,
37139         testsrelated_modules. Determine use_libtests. Determine two variables
37140         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
37141         instead of just sed_transform_lib_file. Determine two variables
37142         main_files and testsrelated_files. Compute 'files' as the union of
37143         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
37144         func_add_or_update. In the generated gnulib-comp.m4, collect the
37145         object files for tests/ in different variables than those for lib/.
37146         Substitute LIBTESTS_LIBDEPS.
37147         (func_create_testdir): Combine the uses_subdirs results from
37148         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
37149
37150 2007-12-09  Bruno Haible  <bruno@clisp.org>
37151
37152         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
37153         the build-aux directory.
37154
37155 2007-12-09  Bruno Haible  <bruno@clisp.org>
37156
37157         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
37158         introduced on 2006-09-09.
37159
37160 2007-12-07  Jim Meyering  <meyering@redhat.com>
37161
37162         Let these macros work also with autoconf-2.59.
37163         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
37164         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
37165         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37166
37167 2007-12-06  Jim Meyering  <meyering@redhat.com>
37168
37169         Avoid a configure-time syntax error in gl_FUNC_ACL.
37170         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
37171         function in each branch, before testing the cache variable.
37172
37173 2007-12-04  Eric Blake  <ebb9@byu.net>
37174
37175         Make scripts executable.
37176         * build-aux/config.guess: Add execute permissions.
37177         * build-aux/config.sub: Likewise.
37178         * build-aux/gendocs.sh: Likewise.
37179
37180         Fix frexp on mingw.
37181         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
37182         cross-compiling.
37183         * doc/functions/frexp.texi (frexp): Document the bug.
37184
37185         Make cygwin fseeko check more reliable.
37186         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
37187         version numbers, rather than unrelated feature check.
37188         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
37189         * doc/functions/ftello.texi (ftello): Likewise.
37190         Reported by Bruno Haible.
37191
37192         * m4/strerror.m4: Bump version number.
37193
37194 2007-12-03  Bruno Haible  <bruno@clisp.org>
37195
37196         * doc/functions/mprotect.texi: Mention the mingw problem.
37197
37198 2007-12-03  Eric Blake  <ebb9@byu.net>
37199
37200         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
37201         REPLACE_STRERROR is initialized before this macro.
37202
37203 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37204
37205         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
37206         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
37207         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
37208         put -lsec in even for programs other than 'ls'.  This fixes a problem
37209         for gettext reported by Bruno Haible in
37210         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
37211         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
37212         Add support for Solaris 10.  This isn't efficient, but should get the
37213         job done for now.
37214
37215 2007-12-03  James Youngman  <jay@gnu.org>
37216
37217         * doc/regexprops-generic.texi: change "an close-group" to "a
37218         close-group" and "illegal" to "not allowed".
37219
37220 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37221
37222         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
37223         pr_byname.h. Needed for the rare case when the maintainer has done
37224         "make maintainer-clean" in the source directory and then attempts a
37225         build outside the source directory.
37226         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
37227         scripts_byname.h.
37228
37229 2007-12-02  Martin Lambers <marlam@marlam.de>
37230             Bruno Haible  <bruno@clisp.org>
37231
37232         * lib/getpagesize.h: Remove file.
37233         * lib/unistd.in.h: Include declaration of getpagesize here.
37234         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
37235         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
37236         HAVE_SYS_PARAM_H.
37237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
37238         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37239         * modules/getpagesize (Files): Remove lib/getpagesize.h.
37240         (Depends-on): Add unistd.
37241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37242         (Include): Use <unistd.h> instead of getpagesize.h.
37243         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
37244         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37245         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
37246         gl_GETPAGESIZE invocation, already handled by module dependency.
37247         * lib/pagealign_alloc.c: Don't include getpagesize.h.
37248
37249 2007-12-02  Bruno Haible  <bruno@clisp.org>
37250
37251         * modules/strings-tests: New file.
37252         * tests/test-strings.c: New file.
37253
37254         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
37255         * lib/strings.in.h: New file.
37256         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
37257         * m4/strings_h.m4: New file.
37258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
37259         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
37260         * modules/strings: New file.
37261         * modules/string (Makefile.am): Update.
37262         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
37263         Reported by Karl Berry.
37264
37265 2007-12-01  Eric Blake  <ebb9@byu.net>
37266
37267         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
37268         accomodate fix in cygwin 1.5.25.
37269
37270 2007-12-01  Jim Meyering  <meyering@redhat.com>
37271
37272         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
37273         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
37274         that would inhibit utf8-optimization of a regexp containing line-
37275         or buffer-anchors, e.g., `^', `$'.
37276
37277 2007-11-30  Bruno Haible  <bruno@clisp.org>
37278
37279         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
37280         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
37281         glthread_recursive_lock_init.
37282         * lib/lock.c (glthread_recursive_lock_init)
37283         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
37284         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37285
37286 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
37287
37288         New function qset_acl, like set_acl but with syscall semantics.
37289         * lib/acl.h (qset_acl): New decl.
37290         * lib/acl.c (qset_acl): New function.
37291         (set_acl): Use new function.  Use more-consistent diagnostics.
37292
37293 2007-11-28  Jim Meyering  <meyering@redhat.com>
37294
37295         * modules/physmem (License): Change from GPL to LGPLv2+.
37296
37297 2007-11-26  Bruno Haible  <bruno@clisp.org>
37298
37299         * lib/vasnprintf.c (decode_long_double): Don't abort if the
37300         'long double' type has excess precision.
37301         Reported by Jim Meyering in
37302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
37303
37304 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37305
37306         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
37307         Sync from <http://gnu.org/licenses>.
37308         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
37309         with license text from same location.
37310         * doc/maintain.texi, doc/standards.texi:  Sync from
37311         <http://savannah.gnu.org/projects/gnustandards>.
37312
37313 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
37314         and Jim Meyering  <meyering@redhat.com>
37315
37316         Adjust getdate' grammar to accept a slightly more regular language.
37317         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
37318         Before, the former was rejected.
37319         * lib/getdate.y (digits_to_date_time): New function, factored
37320         out of ...
37321         (number): ...here.  Just call digits_to_date_time.
37322         (hybrid): New non-terminal to handle an <unsigned number,
37323         signed relative offset> sequence consistently.
37324
37325 2007-11-18  Jim Meyering  <meyering@redhat.com>
37326
37327         Pull my changes from coreutils:
37328         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
37329         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
37330         use of $gnulib_tool_option_extras, so that it's separated from the
37331         preceding argument.
37332
37333         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
37334         * build-aux/bootstrap (cp_mark_as_generated): Create any required
37335         parent destination directories before copying a file into place.
37336
37337 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37338
37339         bootstrap: work also with 4-argument variant of AC_INIT
37340         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
37341
37342 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37343
37344         Port test-getaddrinfo to Solaris.
37345         Problem reported by Bruno Haible in
37346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
37347         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
37348         explanation of setting 'hints'.
37349         Don't reject an implementation merely because it returns EAI_SERVICE.
37350         (EAI_SERVICE): Define to 0 if not defined.
37351
37352 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37353
37354         The license of gnu-make and posix-shell is now "GPLed build tool".
37355         * modules/gnu-make (License): Likewise.
37356         * modules/posix-shell (License): Likewise.
37357
37358         New module posix-shell, for determining a POSIX shell
37359         or perhaps something that is close enough to a POSIX shell.
37360         * m4/posix-shell.m4: New file.
37361         * modules/posix-shell: New file.
37362
37363         * MODULES.html.sh: Mention new module.
37364
37365         New module gnu-make, for determining whether we're using GNU Make.
37366         * m4/gnu-make.m4: New file.
37367         * modules/gnu-make: New file.
37368         * MODULES.html.sh: Mention new module.
37369
37370 2007-11-14  Jim Meyering  <meyering@redhat.com>
37371
37372         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
37373         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
37374         use this macro to create a function _definition_.
37375         Remove useless "#undef ARGMATCH_DIE".
37376
37377 2007-11-14  Bruno Haible  <bruno@clisp.org>
37378
37379         * lib/config.charset: Update for OpenBSD 4.1.
37380         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
37381
37382 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
37383
37384         Document 64-bit #if problems in stdint.texi.
37385         * doc/headers/stdint.texi (stdint.h): Mention problems with
37386         64-bit-#if, and how to work around them.
37387
37388         Don't insist on 'long long int' support in the preprocessor.  It
37389         breaks too many things.  For example, PRIdMAX still uses a 'long
37390         long int' format with the latest Sun compiler, even though
37391         HAVE_LONG_LONG_INT isn't defined due to that compiler's
37392         preprocessor problem.  This causes the latest coreutils to dump
37393         core on Solaris 10 sparc with the Sun C compiler.
37394         Instead, fix the 2007-10-16 problem in a different way, by evaluating
37395         the troublesome expressions at configure-time, not at #if-time.
37396         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
37397         preprocessor.
37398         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
37399         compile-time C checks, done at 'configure'-time.
37400         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
37401         * modules/inttypes (Makefile): Substitute the new symbols that
37402         gl_INTTYPES_H now generates.
37403         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
37404
37405 2007-11-12  Bruno Haible  <bruno@clisp.org>
37406
37407         Tests for Unicode character classification functions.
37408
37409         * modules/unictype/bidicategory-byname-tests: New file.
37410         * modules/unictype/bidicategory-name-tests: New file.
37411         * modules/unictype/bidicategory-of-tests: New file.
37412         * modules/unictype/bidicategory-test-tests: New file.
37413         * modules/unictype/block-list-tests: New file.
37414         * modules/unictype/block-of-tests: New file.
37415         * modules/unictype/block-test-tests: New file.
37416         * modules/unictype/category-C-tests: New file.
37417         * modules/unictype/category-Cc-tests: New file.
37418         * modules/unictype/category-Cf-tests: New file.
37419         * modules/unictype/category-Cn-tests: New file.
37420         * modules/unictype/category-Co-tests: New file.
37421         * modules/unictype/category-Cs-tests: New file.
37422         * modules/unictype/category-L-tests: New file.
37423         * modules/unictype/category-Ll-tests: New file.
37424         * modules/unictype/category-Lm-tests: New file.
37425         * modules/unictype/category-Lo-tests: New file.
37426         * modules/unictype/category-Lt-tests: New file.
37427         * modules/unictype/category-Lu-tests: New file.
37428         * modules/unictype/category-M-tests: New file.
37429         * modules/unictype/category-Mc-tests: New file.
37430         * modules/unictype/category-Me-tests: New file.
37431         * modules/unictype/category-Mn-tests: New file.
37432         * modules/unictype/category-N-tests: New file.
37433         * modules/unictype/category-Nd-tests: New file.
37434         * modules/unictype/category-Nl-tests: New file.
37435         * modules/unictype/category-No-tests: New file.
37436         * modules/unictype/category-P-tests: New file.
37437         * modules/unictype/category-Pc-tests: New file.
37438         * modules/unictype/category-Pd-tests: New file.
37439         * modules/unictype/category-Pe-tests: New file.
37440         * modules/unictype/category-Pf-tests: New file.
37441         * modules/unictype/category-Pi-tests: New file.
37442         * modules/unictype/category-Po-tests: New file.
37443         * modules/unictype/category-Ps-tests: New file.
37444         * modules/unictype/category-S-tests: New file.
37445         * modules/unictype/category-Sc-tests: New file.
37446         * modules/unictype/category-Sk-tests: New file.
37447         * modules/unictype/category-Sm-tests: New file.
37448         * modules/unictype/category-So-tests: New file.
37449         * modules/unictype/category-Z-tests: New file.
37450         * modules/unictype/category-Zl-tests: New file.
37451         * modules/unictype/category-Zp-tests: New file.
37452         * modules/unictype/category-Zs-tests: New file.
37453         * modules/unictype/category-and-not-tests: New file.
37454         * modules/unictype/category-and-tests: New file.
37455         * modules/unictype/category-byname-tests: New file.
37456         * modules/unictype/category-name-tests: New file.
37457         * modules/unictype/category-none-tests: New file.
37458         * modules/unictype/category-of-tests: New file.
37459         * modules/unictype/category-or-tests: New file.
37460         * modules/unictype/category-test-withtable-tests: New file.
37461         * modules/unictype/combining-class-tests: New file.
37462         * modules/unictype/ctype-alnum-tests: New file.
37463         * modules/unictype/ctype-alpha-tests: New file.
37464         * modules/unictype/ctype-blank-tests: New file.
37465         * modules/unictype/ctype-cntrl-tests: New file.
37466         * modules/unictype/ctype-digit-tests: New file.
37467         * modules/unictype/ctype-graph-tests: New file.
37468         * modules/unictype/ctype-lower-tests: New file.
37469         * modules/unictype/ctype-print-tests: New file.
37470         * modules/unictype/ctype-punct-tests: New file.
37471         * modules/unictype/ctype-space-tests: New file.
37472         * modules/unictype/ctype-upper-tests: New file.
37473         * modules/unictype/ctype-xdigit-tests: New file.
37474         * modules/unictype/decimal-digit-tests: New file.
37475         * modules/unictype/digit-tests: New file.
37476         * modules/unictype/mirror-tests: New file.
37477         * modules/unictype/numeric-tests: New file.
37478         * modules/unictype/property-alphabetic-tests: New file.
37479         * modules/unictype/property-ascii-hex-digit-tests: New file.
37480         * modules/unictype/property-bidi-arabic-digit-tests: New file.
37481         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
37482         * modules/unictype/property-bidi-block-separator-tests: New file.
37483         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
37484         * modules/unictype/property-bidi-common-separator-tests: New file.
37485         * modules/unictype/property-bidi-control-tests: New file.
37486         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
37487         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
37488         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
37489         * modules/unictype/property-bidi-european-digit-tests: New file.
37490         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
37491         * modules/unictype/property-bidi-left-to-right-tests: New file.
37492         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
37493         * modules/unictype/property-bidi-other-neutral-tests: New file.
37494         * modules/unictype/property-bidi-pdf-tests: New file.
37495         * modules/unictype/property-bidi-segment-separator-tests: New file.
37496         * modules/unictype/property-bidi-whitespace-tests: New file.
37497         * modules/unictype/property-byname-tests: New file.
37498         * modules/unictype/property-combining-tests: New file.
37499         * modules/unictype/property-composite-tests: New file.
37500         * modules/unictype/property-currency-symbol-tests: New file.
37501         * modules/unictype/property-dash-tests: New file.
37502         * modules/unictype/property-decimal-digit-tests: New file.
37503         * modules/unictype/property-default-ignorable-code-point-tests: New file.
37504         * modules/unictype/property-deprecated-tests: New file.
37505         * modules/unictype/property-diacritic-tests: New file.
37506         * modules/unictype/property-extender-tests: New file.
37507         * modules/unictype/property-format-control-tests: New file.
37508         * modules/unictype/property-grapheme-base-tests: New file.
37509         * modules/unictype/property-grapheme-extend-tests: New file.
37510         * modules/unictype/property-grapheme-link-tests: New file.
37511         * modules/unictype/property-hex-digit-tests: New file.
37512         * modules/unictype/property-hyphen-tests: New file.
37513         * modules/unictype/property-id-continue-tests: New file.
37514         * modules/unictype/property-id-start-tests: New file.
37515         * modules/unictype/property-ideographic-tests: New file.
37516         * modules/unictype/property-ids-binary-operator-tests: New file.
37517         * modules/unictype/property-ids-trinary-operator-tests: New file.
37518         * modules/unictype/property-ignorable-control-tests: New file.
37519         * modules/unictype/property-iso-control-tests: New file.
37520         * modules/unictype/property-join-control-tests: New file.
37521         * modules/unictype/property-left-of-pair-tests: New file.
37522         * modules/unictype/property-line-separator-tests: New file.
37523         * modules/unictype/property-logical-order-exception-tests: New file.
37524         * modules/unictype/property-lowercase-tests: New file.
37525         * modules/unictype/property-math-tests: New file.
37526         * modules/unictype/property-non-break-tests: New file.
37527         * modules/unictype/property-not-a-character-tests: New file.
37528         * modules/unictype/property-numeric-tests: New file.
37529         * modules/unictype/property-other-alphabetic-tests: New file.
37530         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
37531         * modules/unictype/property-other-grapheme-extend-tests: New file.
37532         * modules/unictype/property-other-id-continue-tests: New file.
37533         * modules/unictype/property-other-id-start-tests: New file.
37534         * modules/unictype/property-other-lowercase-tests: New file.
37535         * modules/unictype/property-other-math-tests: New file.
37536         * modules/unictype/property-other-uppercase-tests: New file.
37537         * modules/unictype/property-paired-punctuation-tests: New file.
37538         * modules/unictype/property-paragraph-separator-tests: New file.
37539         * modules/unictype/property-pattern-syntax-tests: New file.
37540         * modules/unictype/property-pattern-white-space-tests: New file.
37541         * modules/unictype/property-private-use-tests: New file.
37542         * modules/unictype/property-punctuation-tests: New file.
37543         * modules/unictype/property-quotation-mark-tests: New file.
37544         * modules/unictype/property-radical-tests: New file.
37545         * modules/unictype/property-sentence-terminal-tests: New file.
37546         * modules/unictype/property-soft-dotted-tests: New file.
37547         * modules/unictype/property-space-tests: New file.
37548         * modules/unictype/property-terminal-punctuation-tests: New file.
37549         * modules/unictype/property-test-tests: New file.
37550         * modules/unictype/property-titlecase-tests: New file.
37551         * modules/unictype/property-unassigned-code-value-tests: New file.
37552         * modules/unictype/property-unified-ideograph-tests: New file.
37553         * modules/unictype/property-uppercase-tests: New file.
37554         * modules/unictype/property-variation-selector-tests: New file.
37555         * modules/unictype/property-white-space-tests: New file.
37556         * modules/unictype/property-xid-continue-tests: New file.
37557         * modules/unictype/property-xid-start-tests: New file.
37558         * modules/unictype/property-zero-width-tests: New file.
37559         * modules/unictype/scripts-tests: New file.
37560         * modules/unictype/syntax-c-ident-tests: New file.
37561         * modules/unictype/syntax-c-whitespace-tests: New file.
37562         * modules/unictype/syntax-java-ident-tests: New file.
37563         * modules/unictype/syntax-java-whitespace-tests: New file.
37564         * tests/unictype/test-bidi_byname.c: New file.
37565         * tests/unictype/test-bidi_name.c: New file.
37566         * tests/unictype/test-bidi_of.c: New file.
37567         * tests/unictype/test-bidi_test.c: New file.
37568         * tests/unictype/test-block_list.c: New file.
37569         * tests/unictype/test-block_of.c: New file.
37570         * tests/unictype/test-block_test.c: New file.
37571         * tests/unictype/test-categ_and.c: New file.
37572         * tests/unictype/test-categ_and_not.c: New file.
37573         * tests/unictype/test-categ_byname.c: New file.
37574         * tests/unictype/test-categ_name.c: New file.
37575         * tests/unictype/test-categ_none.c: New file.
37576         * tests/unictype/test-categ_of.c: New file.
37577         * tests/unictype/test-categ_or.c: New file.
37578         * tests/unictype/test-categ_test_withtable.c: New file.
37579         * tests/unictype/test-combining.c: New file.
37580         * tests/unictype/test-decdigit.c: New file.
37581         * tests/unictype/test-digit.c: New file.
37582         * tests/unictype/test-mirror.c: New file.
37583         * tests/unictype/test-numeric.c: New file.
37584         * tests/unictype/test-pr_byname.c: New file.
37585         * tests/unictype/test-pr_test.c: New file.
37586         * tests/unictype/test-predicate-part1.h: New file.
37587         * tests/unictype/test-predicate-part2.h: New file.
37588         * tests/unictype/test-scripts.c: New file.
37589         * tests/unictype/test-sy_c_ident.c: New file.
37590         * tests/unictype/test-sy_java_ident.c: New file.
37591
37592         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
37593         for Unicode 5.0.0.
37594         * tests/unictype/test-categ_Cc.c: Likewise.
37595         * tests/unictype/test-categ_Cf.c: Likewise.
37596         * tests/unictype/test-categ_Cn.c: Likewise.
37597         * tests/unictype/test-categ_Co.c: Likewise.
37598         * tests/unictype/test-categ_Cs.c: Likewise.
37599         * tests/unictype/test-categ_L.c: Likewise.
37600         * tests/unictype/test-categ_Ll.c: Likewise.
37601         * tests/unictype/test-categ_Lm.c: Likewise.
37602         * tests/unictype/test-categ_Lo.c: Likewise.
37603         * tests/unictype/test-categ_Lt.c: Likewise.
37604         * tests/unictype/test-categ_Lu.c: Likewise.
37605         * tests/unictype/test-categ_M.c: Likewise.
37606         * tests/unictype/test-categ_Mc.c: Likewise.
37607         * tests/unictype/test-categ_Me.c: Likewise.
37608         * tests/unictype/test-categ_Mn.c: Likewise.
37609         * tests/unictype/test-categ_N.c: Likewise.
37610         * tests/unictype/test-categ_Nd.c: Likewise.
37611         * tests/unictype/test-categ_Nl.c: Likewise.
37612         * tests/unictype/test-categ_No.c: Likewise.
37613         * tests/unictype/test-categ_P.c: Likewise.
37614         * tests/unictype/test-categ_Pc.c: Likewise.
37615         * tests/unictype/test-categ_Pd.c: Likewise.
37616         * tests/unictype/test-categ_Pe.c: Likewise.
37617         * tests/unictype/test-categ_Pf.c: Likewise.
37618         * tests/unictype/test-categ_Pi.c: Likewise.
37619         * tests/unictype/test-categ_Po.c: Likewise.
37620         * tests/unictype/test-categ_Ps.c: Likewise.
37621         * tests/unictype/test-categ_S.c: Likewise.
37622         * tests/unictype/test-categ_Sc.c: Likewise.
37623         * tests/unictype/test-categ_Sk.c: Likewise.
37624         * tests/unictype/test-categ_Sm.c: Likewise.
37625         * tests/unictype/test-categ_So.c: Likewise.
37626         * tests/unictype/test-categ_Z.c: Likewise.
37627         * tests/unictype/test-categ_Zl.c: Likewise.
37628         * tests/unictype/test-categ_Zp.c: Likewise.
37629         * tests/unictype/test-categ_Zs.c: Likewise.
37630         * tests/unictype/test-ctype_alnum.c: Likewise.
37631         * tests/unictype/test-ctype_alpha.c: Likewise.
37632         * tests/unictype/test-ctype_blank.c: Likewise.
37633         * tests/unictype/test-ctype_cntrl.c: Likewise.
37634         * tests/unictype/test-ctype_digit.c: Likewise.
37635         * tests/unictype/test-ctype_graph.c: Likewise.
37636         * tests/unictype/test-ctype_lower.c: Likewise.
37637         * tests/unictype/test-ctype_print.c: Likewise.
37638         * tests/unictype/test-ctype_punct.c: Likewise.
37639         * tests/unictype/test-ctype_space.c: Likewise.
37640         * tests/unictype/test-ctype_upper.c: Likewise.
37641         * tests/unictype/test-ctype_xdigit.c: Likewise.
37642         * tests/unictype/test-decdigit.h: Likewise.
37643         * tests/unictype/test-digit.h: Likewise.
37644         * tests/unictype/test-numeric.h: Likewise.
37645         * tests/unictype/test-pr_alphabetic.c: Likewise.
37646         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
37647         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
37648         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
37649         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
37650         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
37651         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
37652         * tests/unictype/test-pr_bidi_control.c: Likewise.
37653         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
37654         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
37655         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
37656         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
37657         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
37658         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
37659         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
37660         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
37661         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
37662         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
37663         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
37664         * tests/unictype/test-pr_combining.c: Likewise.
37665         * tests/unictype/test-pr_composite.c: Likewise.
37666         * tests/unictype/test-pr_currency_symbol.c: Likewise.
37667         * tests/unictype/test-pr_dash.c: Likewise.
37668         * tests/unictype/test-pr_decimal_digit.c: Likewise.
37669         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
37670         * tests/unictype/test-pr_deprecated.c: Likewise.
37671         * tests/unictype/test-pr_diacritic.c: Likewise.
37672         * tests/unictype/test-pr_extender.c: Likewise.
37673         * tests/unictype/test-pr_format_control.c: Likewise.
37674         * tests/unictype/test-pr_grapheme_base.c: Likewise.
37675         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
37676         * tests/unictype/test-pr_grapheme_link.c: Likewise.
37677         * tests/unictype/test-pr_hex_digit.c: Likewise.
37678         * tests/unictype/test-pr_hyphen.c: Likewise.
37679         * tests/unictype/test-pr_id_continue.c: Likewise.
37680         * tests/unictype/test-pr_id_start.c: Likewise.
37681         * tests/unictype/test-pr_ideographic.c: Likewise.
37682         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
37683         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
37684         * tests/unictype/test-pr_ignorable_control.c: Likewise.
37685         * tests/unictype/test-pr_iso_control.c: Likewise.
37686         * tests/unictype/test-pr_join_control.c: Likewise.
37687         * tests/unictype/test-pr_left_of_pair.c: Likewise.
37688         * tests/unictype/test-pr_line_separator.c: Likewise.
37689         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
37690         * tests/unictype/test-pr_lowercase.c: Likewise.
37691         * tests/unictype/test-pr_math.c: Likewise.
37692         * tests/unictype/test-pr_non_break.c: Likewise.
37693         * tests/unictype/test-pr_not_a_character.c: Likewise.
37694         * tests/unictype/test-pr_numeric.c: Likewise.
37695         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
37696         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
37697         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
37698         * tests/unictype/test-pr_other_id_continue.c: Likewise.
37699         * tests/unictype/test-pr_other_id_start.c: Likewise.
37700         * tests/unictype/test-pr_other_lowercase.c: Likewise.
37701         * tests/unictype/test-pr_other_math.c: Likewise.
37702         * tests/unictype/test-pr_other_uppercase.c: Likewise.
37703         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
37704         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
37705         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
37706         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
37707         * tests/unictype/test-pr_private_use.c: Likewise.
37708         * tests/unictype/test-pr_punctuation.c: Likewise.
37709         * tests/unictype/test-pr_quotation_mark.c: Likewise.
37710         * tests/unictype/test-pr_radical.c: Likewise.
37711         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
37712         * tests/unictype/test-pr_soft_dotted.c: Likewise.
37713         * tests/unictype/test-pr_space.c: Likewise.
37714         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
37715         * tests/unictype/test-pr_titlecase.c: Likewise.
37716         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
37717         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
37718         * tests/unictype/test-pr_uppercase.c: Likewise.
37719         * tests/unictype/test-pr_variation_selector.c: Likewise.
37720         * tests/unictype/test-pr_white_space.c: Likewise.
37721         * tests/unictype/test-pr_xid_continue.c: Likewise.
37722         * tests/unictype/test-pr_xid_start.c: Likewise.
37723         * tests/unictype/test-pr_zero_width.c: Likewise.
37724         * tests/unictype/test-sy_c_whitespace.c: Likewise.
37725         * tests/unictype/test-sy_java_whitespace.c: Likewise.
37726
37727 2007-11-12  Bruno Haible  <bruno@clisp.org>
37728
37729         Unicode character classification functions.
37730         * lib/unictype.h: New file.
37731         * modules/unictype/base: New file.
37732         * modules/unictype/category-L: New file.
37733         * modules/unictype/category-Lu: New file.
37734         * modules/unictype/category-Ll: New file.
37735         * modules/unictype/category-Lt: New file.
37736         * modules/unictype/category-Lm: New file.
37737         * modules/unictype/category-Lo: New file.
37738         * modules/unictype/category-M: New file.
37739         * modules/unictype/category-Mn: New file.
37740         * modules/unictype/category-Mc: New file.
37741         * modules/unictype/category-Me: New file.
37742         * modules/unictype/category-N: New file.
37743         * modules/unictype/category-Nd: New file.
37744         * modules/unictype/category-Nl: New file.
37745         * modules/unictype/category-No: New file.
37746         * modules/unictype/category-P: New file.
37747         * modules/unictype/category-Pc: New file.
37748         * modules/unictype/category-Pd: New file.
37749         * modules/unictype/category-Ps: New file.
37750         * modules/unictype/category-Pe: New file.
37751         * modules/unictype/category-Pi: New file.
37752         * modules/unictype/category-Pf: New file.
37753         * modules/unictype/category-Po: New file.
37754         * modules/unictype/category-S: New file.
37755         * modules/unictype/category-Sm: New file.
37756         * modules/unictype/category-Sc: New file.
37757         * modules/unictype/category-Sk: New file.
37758         * modules/unictype/category-So: New file.
37759         * modules/unictype/category-Z: New file.
37760         * modules/unictype/category-Zs: New file.
37761         * modules/unictype/category-Zl: New file.
37762         * modules/unictype/category-Zp: New file.
37763         * modules/unictype/category-C: New file.
37764         * modules/unictype/category-Cc: New file.
37765         * modules/unictype/category-Cf: New file.
37766         * modules/unictype/category-Cs: New file.
37767         * modules/unictype/category-Co: New file.
37768         * modules/unictype/category-Cn: New file.
37769         * modules/unictype/category-or: New file.
37770         * modules/unictype/category-of: New file.
37771         * modules/unictype/category-test: New file.
37772         * modules/unictype/category-test-withtable: New file.
37773         * modules/unictype/category-byname: New file.
37774         * modules/unictype/category-none: New file.
37775         * modules/unictype/category-and: New file.
37776         * modules/unictype/category-and-not: New file.
37777         * modules/unictype/category-name: New file.
37778         * modules/unictype/combining-class: New file.
37779         * modules/unictype/category-all: New file.
37780         * modules/unictype/bidicategory-all: New file.
37781         * modules/unictype/bidicategory-byname: New file.
37782         * modules/unictype/bidicategory-name: New file.
37783         * modules/unictype/bidicategory-of: New file.
37784         * modules/unictype/bidicategory-test: New file.
37785         * modules/unictype/decimal-digit: New file.
37786         * modules/unictype/digit: New file.
37787         * modules/unictype/numeric: New file.
37788         * modules/unictype/mirror: New file.
37789         * modules/unictype/property-white-space: New file.
37790         * modules/unictype/property-alphabetic: New file.
37791         * modules/unictype/property-other-alphabetic: New file.
37792         * modules/unictype/property-not-a-character: New file.
37793         * modules/unictype/property-default-ignorable-code-point: New file.
37794         * modules/unictype/property-other-default-ignorable-code-point: New
37795         file.
37796         * modules/unictype/property-deprecated: New file.
37797         * modules/unictype/property-logical-order-exception: New file.
37798         * modules/unictype/property-variation-selector: New file.
37799         * modules/unictype/property-private-use: New file.
37800         * modules/unictype/property-unassigned-code-value: New file.
37801         * modules/unictype/property-uppercase: New file.
37802         * modules/unictype/property-other-uppercase: New file.
37803         * modules/unictype/property-lowercase: New file.
37804         * modules/unictype/property-other-lowercase: New file.
37805         * modules/unictype/property-titlecase: New file.
37806         * modules/unictype/property-soft-dotted: New file.
37807         * modules/unictype/property-id-start: New file.
37808         * modules/unictype/property-other-id-start: New file.
37809         * modules/unictype/property-id-continue: New file.
37810         * modules/unictype/property-other-id-continue: New file.
37811         * modules/unictype/property-xid-start: New file.
37812         * modules/unictype/property-xid-continue: New file.
37813         * modules/unictype/property-pattern-white-space: New file.
37814         * modules/unictype/property-pattern-syntax: New file.
37815         * modules/unictype/property-join-control: New file.
37816         * modules/unictype/property-grapheme-base: New file.
37817         * modules/unictype/property-grapheme-extend: New file.
37818         * modules/unictype/property-other-grapheme-extend: New file.
37819         * modules/unictype/property-grapheme-link: New file.
37820         * modules/unictype/property-bidi-control: New file.
37821         * modules/unictype/property-bidi-left-to-right: New file.
37822         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
37823         * modules/unictype/property-bidi-arabic-right-to-left: New file.
37824         * modules/unictype/property-bidi-european-digit: New file.
37825         * modules/unictype/property-bidi-eur-num-separator: New file.
37826         * modules/unictype/property-bidi-eur-num-terminator: New file.
37827         * modules/unictype/property-bidi-arabic-digit: New file.
37828         * modules/unictype/property-bidi-common-separator: New file.
37829         * modules/unictype/property-bidi-block-separator: New file.
37830         * modules/unictype/property-bidi-segment-separator: New file.
37831         * modules/unictype/property-bidi-whitespace: New file.
37832         * modules/unictype/property-bidi-non-spacing-mark: New file.
37833         * modules/unictype/property-bidi-boundary-neutral: New file.
37834         * modules/unictype/property-bidi-pdf: New file.
37835         * modules/unictype/property-bidi-embedding-or-override: New file.
37836         * modules/unictype/property-bidi-other-neutral: New file.
37837         * modules/unictype/property-hex-digit: New file.
37838         * modules/unictype/property-ascii-hex-digit: New file.
37839         * modules/unictype/property-ideographic: New file.
37840         * modules/unictype/property-unified-ideograph: New file.
37841         * modules/unictype/property-radical: New file.
37842         * modules/unictype/property-ids-binary-operator: New file.
37843         * modules/unictype/property-ids-trinary-operator: New file.
37844         * modules/unictype/property-zero-width: New file.
37845         * modules/unictype/property-space: New file.
37846         * modules/unictype/property-non-break: New file.
37847         * modules/unictype/property-iso-control: New file.
37848         * modules/unictype/property-format-control: New file.
37849         * modules/unictype/property-dash: New file.
37850         * modules/unictype/property-hyphen: New file.
37851         * modules/unictype/property-punctuation: New file.
37852         * modules/unictype/property-line-separator: New file.
37853         * modules/unictype/property-paragraph-separator: New file.
37854         * modules/unictype/property-quotation-mark: New file.
37855         * modules/unictype/property-sentence-terminal: New file.
37856         * modules/unictype/property-terminal-punctuation: New file.
37857         * modules/unictype/property-currency-symbol: New file.
37858         * modules/unictype/property-math: New file.
37859         * modules/unictype/property-other-math: New file.
37860         * modules/unictype/property-paired-punctuation: New file.
37861         * modules/unictype/property-left-of-pair: New file.
37862         * modules/unictype/property-combining: New file.
37863         * modules/unictype/property-composite: New file.
37864         * modules/unictype/property-decimal-digit: New file.
37865         * modules/unictype/property-numeric: New file.
37866         * modules/unictype/property-diacritic: New file.
37867         * modules/unictype/property-extender: New file.
37868         * modules/unictype/property-ignorable-control: New file.
37869         * modules/unictype/property-test: New file.
37870         * modules/unictype/property-byname: New file.
37871         * modules/unictype/property-all: New file.
37872         * modules/unictype/scripts: New file.
37873         * modules/unictype/scripts-all: New file.
37874         * modules/unictype/block-of: New file.
37875         * modules/unictype/block-test: New file.
37876         * modules/unictype/block-list: New file.
37877         * modules/unictype/block-all: New file.
37878         * modules/unictype/syntax-c-whitespace: New file.
37879         * modules/unictype/syntax-java-whitespace: New file.
37880         * modules/unictype/syntax-c-ident: New file.
37881         * modules/unictype/syntax-java-ident: New file.
37882         * modules/unictype/ctype-alnum: New file.
37883         * modules/unictype/ctype-alpha: New file.
37884         * modules/unictype/ctype-cntrl: New file.
37885         * modules/unictype/ctype-digit: New file.
37886         * modules/unictype/ctype-graph: New file.
37887         * modules/unictype/ctype-lower: New file.
37888         * modules/unictype/ctype-print: New file.
37889         * modules/unictype/ctype-punct: New file.
37890         * modules/unictype/ctype-space: New file.
37891         * modules/unictype/ctype-upper: New file.
37892         * modules/unictype/ctype-xdigit: New file.
37893         * modules/unictype/ctype-blank: New file.
37894         * lib/unictype/bidi_byname.c: New file.
37895         * lib/unictype/bidi_name.c: New file.
37896         * lib/unictype/bidi_of.c: New file.
37897         * lib/unictype/bidi_test.c: New file.
37898         * lib/unictype/bitmap.h: New file.
37899         * lib/unictype/block_test.c: New file.
37900         * lib/unictype/blocks.c: New file.
37901         * lib/unictype/categ_C.c: New file.
37902         * lib/unictype/categ_Cc.c: New file.
37903         * lib/unictype/categ_Cf.c: New file.
37904         * lib/unictype/categ_Cn.c: New file.
37905         * lib/unictype/categ_Co.c: New file.
37906         * lib/unictype/categ_Cs.c: New file.
37907         * lib/unictype/categ_L.c: New file.
37908         * lib/unictype/categ_Ll.c: New file.
37909         * lib/unictype/categ_Lm.c: New file.
37910         * lib/unictype/categ_Lo.c: New file.
37911         * lib/unictype/categ_Lt.c: New file.
37912         * lib/unictype/categ_Lu.c: New file.
37913         * lib/unictype/categ_M.c: New file.
37914         * lib/unictype/categ_Mc.c: New file.
37915         * lib/unictype/categ_Me.c: New file.
37916         * lib/unictype/categ_Mn.c: New file.
37917         * lib/unictype/categ_N.c: New file.
37918         * lib/unictype/categ_Nd.c: New file.
37919         * lib/unictype/categ_Nl.c: New file.
37920         * lib/unictype/categ_No.c: New file.
37921         * lib/unictype/categ_P.c: New file.
37922         * lib/unictype/categ_Pc.c: New file.
37923         * lib/unictype/categ_Pd.c: New file.
37924         * lib/unictype/categ_Pe.c: New file.
37925         * lib/unictype/categ_Pf.c: New file.
37926         * lib/unictype/categ_Pi.c: New file.
37927         * lib/unictype/categ_Po.c: New file.
37928         * lib/unictype/categ_Ps.c: New file.
37929         * lib/unictype/categ_S.c: New file.
37930         * lib/unictype/categ_Sc.c: New file.
37931         * lib/unictype/categ_Sk.c: New file.
37932         * lib/unictype/categ_Sm.c: New file.
37933         * lib/unictype/categ_So.c: New file.
37934         * lib/unictype/categ_Z.c: New file.
37935         * lib/unictype/categ_Zl.c: New file.
37936         * lib/unictype/categ_Zp.c: New file.
37937         * lib/unictype/categ_Zs.c: New file.
37938         * lib/unictype/categ_and.c: New file.
37939         * lib/unictype/categ_and_not.c: New file.
37940         * lib/unictype/categ_byname.c: New file.
37941         * lib/unictype/categ_name.c: New file.
37942         * lib/unictype/categ_none.c: New file.
37943         * lib/unictype/categ_of.c: New file.
37944         * lib/unictype/categ_or.c: New file.
37945         * lib/unictype/categ_test.c: New file.
37946         * lib/unictype/combining.c: New file.
37947         * lib/unictype/ctype_alnum.c: New file.
37948         * lib/unictype/ctype_alpha.c: New file.
37949         * lib/unictype/ctype_blank.c: New file.
37950         * lib/unictype/ctype_cntrl.c: New file.
37951         * lib/unictype/ctype_digit.c: New file.
37952         * lib/unictype/ctype_graph.c: New file.
37953         * lib/unictype/ctype_lower.c: New file.
37954         * lib/unictype/ctype_print.c: New file.
37955         * lib/unictype/ctype_punct.c: New file.
37956         * lib/unictype/ctype_space.c: New file.
37957         * lib/unictype/ctype_upper.c: New file.
37958         * lib/unictype/ctype_xdigit.c: New file.
37959         * lib/unictype/decdigit.c: New file.
37960         * lib/unictype/digit.c: New file.
37961         * lib/unictype/identsyntaxmap.h: New file.
37962         * lib/unictype/mirror.c: New file.
37963         * lib/unictype/numeric.c: New file.
37964         * lib/unictype/pr_alphabetic.c: New file.
37965         * lib/unictype/pr_ascii_hex_digit.c: New file.
37966         * lib/unictype/pr_bidi_arabic_digit.c: New file.
37967         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
37968         * lib/unictype/pr_bidi_block_separator.c: New file.
37969         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
37970         * lib/unictype/pr_bidi_common_separator.c: New file.
37971         * lib/unictype/pr_bidi_control.c: New file.
37972         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
37973         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
37974         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
37975         * lib/unictype/pr_bidi_european_digit.c: New file.
37976         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
37977         * lib/unictype/pr_bidi_left_to_right.c: New file.
37978         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
37979         * lib/unictype/pr_bidi_other_neutral.c: New file.
37980         * lib/unictype/pr_bidi_pdf.c: New file.
37981         * lib/unictype/pr_bidi_segment_separator.c: New file.
37982         * lib/unictype/pr_bidi_whitespace.c: New file.
37983         * lib/unictype/pr_byname.c: New file.
37984         * lib/unictype/pr_byname.gperf: New file.
37985         * lib/unictype/pr_combining.c: New file.
37986         * lib/unictype/pr_composite.c: New file.
37987         * lib/unictype/pr_currency_symbol.c: New file.
37988         * lib/unictype/pr_dash.c: New file.
37989         * lib/unictype/pr_decimal_digit.c: New file.
37990         * lib/unictype/pr_default_ignorable_code_point.c: New file.
37991         * lib/unictype/pr_deprecated.c: New file.
37992         * lib/unictype/pr_diacritic.c: New file.
37993         * lib/unictype/pr_extender.c: New file.
37994         * lib/unictype/pr_format_control.c: New file.
37995         * lib/unictype/pr_grapheme_base.c: New file.
37996         * lib/unictype/pr_grapheme_extend.c: New file.
37997         * lib/unictype/pr_grapheme_link.c: New file.
37998         * lib/unictype/pr_hex_digit.c: New file.
37999         * lib/unictype/pr_hyphen.c: New file.
38000         * lib/unictype/pr_id_continue.c: New file.
38001         * lib/unictype/pr_id_start.c: New file.
38002         * lib/unictype/pr_ideographic.c: New file.
38003         * lib/unictype/pr_ids_binary_operator.c: New file.
38004         * lib/unictype/pr_ids_trinary_operator.c: New file.
38005         * lib/unictype/pr_ignorable_control.c: New file.
38006         * lib/unictype/pr_iso_control.c: New file.
38007         * lib/unictype/pr_join_control.c: New file.
38008         * lib/unictype/pr_left_of_pair.c: New file.
38009         * lib/unictype/pr_line_separator.c: New file.
38010         * lib/unictype/pr_logical_order_exception.c: New file.
38011         * lib/unictype/pr_lowercase.c: New file.
38012         * lib/unictype/pr_math.c: New file.
38013         * lib/unictype/pr_non_break.c: New file.
38014         * lib/unictype/pr_not_a_character.c: New file.
38015         * lib/unictype/pr_numeric.c: New file.
38016         * lib/unictype/pr_other_alphabetic.c: New file.
38017         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38018         * lib/unictype/pr_other_grapheme_extend.c: New file.
38019         * lib/unictype/pr_other_id_continue.c: New file.
38020         * lib/unictype/pr_other_id_start.c: New file.
38021         * lib/unictype/pr_other_lowercase.c: New file.
38022         * lib/unictype/pr_other_math.c: New file.
38023         * lib/unictype/pr_other_uppercase.c: New file.
38024         * lib/unictype/pr_paired_punctuation.c: New file.
38025         * lib/unictype/pr_paragraph_separator.c: New file.
38026         * lib/unictype/pr_pattern_syntax.c: New file.
38027         * lib/unictype/pr_pattern_white_space.c: New file.
38028         * lib/unictype/pr_private_use.c: New file.
38029         * lib/unictype/pr_punctuation.c: New file.
38030         * lib/unictype/pr_quotation_mark.c: New file.
38031         * lib/unictype/pr_radical.c: New file.
38032         * lib/unictype/pr_sentence_terminal.c: New file.
38033         * lib/unictype/pr_soft_dotted.c: New file.
38034         * lib/unictype/pr_space.c: New file.
38035         * lib/unictype/pr_terminal_punctuation.c: New file.
38036         * lib/unictype/pr_test.c: New file.
38037         * lib/unictype/pr_titlecase.c: New file.
38038         * lib/unictype/pr_unassigned_code_value.c: New file.
38039         * lib/unictype/pr_unified_ideograph.c: New file.
38040         * lib/unictype/pr_uppercase.c: New file.
38041         * lib/unictype/pr_variation_selector.c: New file.
38042         * lib/unictype/pr_white_space.c: New file.
38043         * lib/unictype/pr_xid_continue.c: New file.
38044         * lib/unictype/pr_xid_start.c: New file.
38045         * lib/unictype/pr_zero_width.c: New file.
38046         * lib/unictype/scripts.c: New file.
38047         * lib/unictype/sy_c_ident.c: New file.
38048         * lib/unictype/sy_c_whitespace.c: New file.
38049         * lib/unictype/sy_java_ident.c: New file.
38050         * lib/unictype/sy_java_whitespace.c: New file.
38051
38052         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
38053         Unicode 5.0.0.
38054         * lib/unictype/blocks.h: Likewise.
38055         * lib/unictype/categ_C.h: Likewise.
38056         * lib/unictype/categ_Cc.h: Likewise.
38057         * lib/unictype/categ_Cf.h: Likewise.
38058         * lib/unictype/categ_Cn.h: Likewise.
38059         * lib/unictype/categ_Co.h: Likewise.
38060         * lib/unictype/categ_Cs.h: Likewise.
38061         * lib/unictype/categ_L.h: Likewise.
38062         * lib/unictype/categ_Ll.h: Likewise.
38063         * lib/unictype/categ_Lm.h: Likewise.
38064         * lib/unictype/categ_Lo.h: Likewise.
38065         * lib/unictype/categ_Lt.h: Likewise.
38066         * lib/unictype/categ_Lu.h: Likewise.
38067         * lib/unictype/categ_M.h: Likewise.
38068         * lib/unictype/categ_Mc.h: Likewise.
38069         * lib/unictype/categ_Me.h: Likewise.
38070         * lib/unictype/categ_Mn.h: Likewise.
38071         * lib/unictype/categ_N.h: Likewise.
38072         * lib/unictype/categ_Nd.h: Likewise.
38073         * lib/unictype/categ_Nl.h: Likewise.
38074         * lib/unictype/categ_No.h: Likewise.
38075         * lib/unictype/categ_P.h: Likewise.
38076         * lib/unictype/categ_Pc.h: Likewise.
38077         * lib/unictype/categ_Pd.h: Likewise.
38078         * lib/unictype/categ_Pe.h: Likewise.
38079         * lib/unictype/categ_Pf.h: Likewise.
38080         * lib/unictype/categ_Pi.h: Likewise.
38081         * lib/unictype/categ_Po.h: Likewise.
38082         * lib/unictype/categ_Ps.h: Likewise.
38083         * lib/unictype/categ_S.h: Likewise.
38084         * lib/unictype/categ_Sc.h: Likewise.
38085         * lib/unictype/categ_Sk.h: Likewise.
38086         * lib/unictype/categ_Sm.h: Likewise.
38087         * lib/unictype/categ_So.h: Likewise.
38088         * lib/unictype/categ_Z.h: Likewise.
38089         * lib/unictype/categ_Zl.h: Likewise.
38090         * lib/unictype/categ_Zp.h: Likewise.
38091         * lib/unictype/categ_Zs.h: Likewise.
38092         * lib/unictype/categ_of.h: Likewise.
38093         * lib/unictype/combining.h: Likewise.
38094         * lib/unictype/ctype_alnum.h: Likewise.
38095         * lib/unictype/ctype_alpha.h: Likewise.
38096         * lib/unictype/ctype_blank.h: Likewise.
38097         * lib/unictype/ctype_cntrl.h: Likewise.
38098         * lib/unictype/ctype_digit.h: Likewise.
38099         * lib/unictype/ctype_graph.h: Likewise.
38100         * lib/unictype/ctype_lower.h: Likewise.
38101         * lib/unictype/ctype_print.h: Likewise.
38102         * lib/unictype/ctype_punct.h: Likewise.
38103         * lib/unictype/ctype_space.h: Likewise.
38104         * lib/unictype/ctype_upper.h: Likewise.
38105         * lib/unictype/ctype_xdigit.h: Likewise.
38106         * lib/unictype/decdigit.h: Likewise.
38107         * lib/unictype/digit.h: Likewise.
38108         * lib/unictype/mirror.h: Likewise.
38109         * lib/unictype/numeric.h: Likewise.
38110         * lib/unictype/pr_alphabetic.h: Likewise.
38111         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38112         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38113         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38114         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38115         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38116         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38117         * lib/unictype/pr_bidi_control.h: Likewise.
38118         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38119         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38120         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38121         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38122         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38123         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38124         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38125         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38126         * lib/unictype/pr_bidi_pdf.h: Likewise.
38127         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38128         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38129         * lib/unictype/pr_combining.h: Likewise.
38130         * lib/unictype/pr_composite.h: Likewise.
38131         * lib/unictype/pr_currency_symbol.h: Likewise.
38132         * lib/unictype/pr_dash.h: Likewise.
38133         * lib/unictype/pr_decimal_digit.h: Likewise.
38134         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38135         * lib/unictype/pr_deprecated.h: Likewise.
38136         * lib/unictype/pr_diacritic.h: Likewise.
38137         * lib/unictype/pr_extender.h: Likewise.
38138         * lib/unictype/pr_format_control.h: Likewise.
38139         * lib/unictype/pr_grapheme_base.h: Likewise.
38140         * lib/unictype/pr_grapheme_extend.h: Likewise.
38141         * lib/unictype/pr_grapheme_link.h: Likewise.
38142         * lib/unictype/pr_hex_digit.h: Likewise.
38143         * lib/unictype/pr_hyphen.h: Likewise.
38144         * lib/unictype/pr_id_continue.h: Likewise.
38145         * lib/unictype/pr_id_start.h: Likewise.
38146         * lib/unictype/pr_ideographic.h: Likewise.
38147         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38148         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38149         * lib/unictype/pr_ignorable_control.h: Likewise.
38150         * lib/unictype/pr_iso_control.h: Likewise.
38151         * lib/unictype/pr_join_control.h: Likewise.
38152         * lib/unictype/pr_left_of_pair.h: Likewise.
38153         * lib/unictype/pr_line_separator.h: Likewise.
38154         * lib/unictype/pr_logical_order_exception.h: Likewise.
38155         * lib/unictype/pr_lowercase.h: Likewise.
38156         * lib/unictype/pr_math.h: Likewise.
38157         * lib/unictype/pr_non_break.h: Likewise.
38158         * lib/unictype/pr_not_a_character.h: Likewise.
38159         * lib/unictype/pr_numeric.h: Likewise.
38160         * lib/unictype/pr_other_alphabetic.h: Likewise.
38161         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38162         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38163         * lib/unictype/pr_other_id_continue.h: Likewise.
38164         * lib/unictype/pr_other_id_start.h: Likewise.
38165         * lib/unictype/pr_other_lowercase.h: Likewise.
38166         * lib/unictype/pr_other_math.h: Likewise.
38167         * lib/unictype/pr_other_uppercase.h: Likewise.
38168         * lib/unictype/pr_paired_punctuation.h: Likewise.
38169         * lib/unictype/pr_paragraph_separator.h: Likewise.
38170         * lib/unictype/pr_pattern_syntax.h: Likewise.
38171         * lib/unictype/pr_pattern_white_space.h: Likewise.
38172         * lib/unictype/pr_private_use.h: Likewise.
38173         * lib/unictype/pr_punctuation.h: Likewise.
38174         * lib/unictype/pr_quotation_mark.h: Likewise.
38175         * lib/unictype/pr_radical.h: Likewise.
38176         * lib/unictype/pr_sentence_terminal.h: Likewise.
38177         * lib/unictype/pr_soft_dotted.h: Likewise.
38178         * lib/unictype/pr_space.h: Likewise.
38179         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38180         * lib/unictype/pr_titlecase.h: Likewise.
38181         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38182         * lib/unictype/pr_unified_ideograph.h: Likewise.
38183         * lib/unictype/pr_uppercase.h: Likewise.
38184         * lib/unictype/pr_variation_selector.h: Likewise.
38185         * lib/unictype/pr_white_space.h: Likewise.
38186         * lib/unictype/pr_xid_continue.h: Likewise.
38187         * lib/unictype/pr_xid_start.h: Likewise.
38188         * lib/unictype/pr_zero_width.h: Likewise.
38189         * lib/unictype/scripts.h: Likewise.
38190         * lib/unictype/scripts_byname.gperf: Likewise.
38191         * lib/unictype/sy_c_ident.h: Likewise.
38192         * lib/unictype/sy_c_whitespace.h: Likewise.
38193         * lib/unictype/sy_java_ident.h: Likewise.
38194         * lib/unictype/sy_java_whitespace.h: Likewise.
38195
38196         * lib/unictype/Makefile: New file.
38197         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
38198         glibc.
38199         * lib/unictype/3level.h: New file, copied from glibc.
38200         * lib/unictype/3levelbit.h: New file.
38201
38202 2007-11-11  Bruno Haible  <bruno@clisp.org>
38203
38204         * modules/gperf: New file.
38205         * modules/iconv_open (Depends-on): Add it.
38206         (Makefile.am): Remove the GPERF definition.
38207
38208 2007-11-11  Bruno Haible  <bruno@clisp.org>
38209
38210         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
38211         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
38212
38213 2007-11-11  Bruno Haible  <bruno@clisp.org>
38214
38215         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
38216         (usage): Remove function.
38217
38218 2007-11-11  Bruno Haible  <bruno@clisp.org>
38219
38220         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
38221         gl_FUNC_CEILF_LIBS.
38222         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
38223         gl_FUNC_CEIL_LIBS.
38224         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
38225         gl_FUNC_CEILL_LIBS.
38226         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
38227         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
38228         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
38229
38230 2007-11-11  Bruno Haible  <bruno@clisp.org>
38231
38232         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
38233         roundf were declared but do not exist on functions.
38234         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
38235         roundl were declared but do not exist on functions.
38236         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
38237         HAVE_FLOORL_AND_CEILL, respectively.
38238         Needed for Sun C on Solaris 10.
38239
38240 2007-11-11  Bruno Haible  <bruno@clisp.org>
38241
38242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
38243         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
38244         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
38245         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
38246         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
38247         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
38248         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
38249         HAVE_DECL_ROUNDF.
38250         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
38251         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
38252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
38253         of HAVE_DECL_ROUND*.
38254         * modules/math (Makefile.am): Update.
38255
38256 2007-11-10  Bruno Haible  <bruno@clisp.org>
38257
38258         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
38259         ptrdiff_t as m4/intl.m4.
38260
38261 2007-11-10  Jim Meyering  <meyering@redhat.com>
38262
38263         Avoid link failure for the argmatch test.
38264         * tests/test-argmatch.c (usage): Define function to avoid a link
38265         failure: argmatch_die requires a usage function.
38266
38267 2007-11-09  Bruno Haible  <bruno@clisp.org>
38268
38269         * doc/functions/snprintf.texi: Mention BeOS deficiency.
38270         * doc/functions/vsnprintf.texi: Likewise.
38271         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
38272         with a size argument < 2.
38273
38274 2007-11-09  Bruno Haible  <bruno@clisp.org>
38275
38276         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
38277         buffer. Fixes an inefficiency introduced on 2007-11-03.
38278
38279 2007-11-09  Bruno Haible  <bruno@clisp.org>
38280
38281         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
38282         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
38283
38284 2007-11-08  Jim Meyering  <meyering@redhat.com>
38285
38286         Change cache variable name prefix "jm_" to "gl_" everywhere.
38287         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
38288         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
38289         * m4/uptime.m4: s/gl_/jm_/
38290
38291 2007-11-07  Bruno Haible  <bruno@clisp.org>
38292
38293         Update to GNU gettext 0.17.
38294         * m4/intl.m4: Update to GNU gettext 0.17.
38295         * m4/po.m4: Likewise.
38296         * modules/gettext (Files): Remove m4/ulonglong.m4.
38297         (configure.ac): Require gettext infrastructure from version 0.17.
38298
38299 2007-11-06  Bruno Haible  <bruno@clisp.org>
38300
38301         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
38302         symbolic values are not defined in a public header.
38303         * lib/freadable.c (freadable) [QNX]: Likewise.
38304         * lib/freadahead.c (freadahead) [QNX]: Likewise.
38305         * lib/freading.c (freading) [QNX]: Likewise.
38306         * lib/fseterr.c (fseterr) [QNX]: Likewise.
38307         * lib/fwritable.c (fwritable) [QNX]: Likewise.
38308         * lib/fwriting.c (fwriting) [QNX]: Likewise.
38309         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
38310         Reported by Alain Magloire.
38311
38312         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
38313
38314 2007-11-05  Bruno Haible  <bruno@clisp.org>
38315
38316         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
38317         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
38318         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
38319         Reported by Eric Blake.
38320
38321 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38322             Bruno Haible  <bruno@clisp.org>
38323
38324         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
38325         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
38326         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
38327         (malloc): Undefine also before including <stdlib.h>.
38328         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
38329         Needed on OSF/1 4.0.
38330
38331 2007-11-05  Jim Meyering  <meyering@redhat.com>
38332
38333         git-version-gen: sync from coreutils.
38334         * build-aux/git-version-gen: Add comments.
38335         Change the first '-' to '.' in the snapshot version string,
38336         e.g., 6.9-377-08144 -> 6.9.377-08144
38337         Remove first parameter.
38338         Don't declare a version "-dirty" merely because a time
38339         stamp has changed.
38340
38341 2007-11-04  Bruno Haible  <bruno@clisp.org>
38342
38343         * lib/lock.h: Protect all macro definitions containing an 'if'
38344         statement through a "do { ... } while (0)".
38345         * lib/tls.h: Likewise.
38346
38347 2007-11-04  Bruno Haible  <bruno@clisp.org>
38348
38349         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
38350
38351 2007-11-04  Bruno Haible  <bruno@clisp.org>
38352
38353         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
38354         * modules/fprintf-posix (Depends-on): Add nocrash.
38355         * modules/snprintf-posix (Depends-on): Likewise.
38356         * modules/sprintf-posix (Depends-on): Likewise.
38357         * modules/vasnprintf-posix (Depends-on): Likewise.
38358         * modules/vasprintf-posix (Depends-on): Likewise.
38359         * modules/vfprintf-posix (Depends-on): Likewise.
38360         * modules/vsnprintf-posix (Depends-on): Likewise.
38361         * modules/vsprintf-posix (Depends-on): Likewise.
38362         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38363         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38364         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38365         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38366         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38367         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38368         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38369
38370 2007-11-04  Bruno Haible  <bruno@clisp.org>
38371
38372         * modules/nocrash: New file.
38373         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
38374         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
38375
38376 2007-11-04  Bruno Haible  <bruno@clisp.org>
38377
38378         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
38379         precision handling.
38380         * tests/test-vasprintf-posix.c (test_function): Likewise.
38381         * tests/test-snprintf-posix.h (test_function): Likewise.
38382         * tests/test-sprintf-posix.h (test_function): Likewise.
38383
38384         Fix *printf behaviour for large precisions on mingw and BeOS.
38385         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
38386         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
38387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
38388         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38390         gl_PRINTF_PRECISION and test its result. Invoke
38391         gl_PREREQ_VASNPRINTF_PRECISION.
38392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38399         * doc/functions/fprintf.texi: Update.
38400         * doc/functions/printf.texi: Update.
38401         * doc/functions/snprintf.texi: Update.
38402         * doc/functions/sprintf.texi: Update.
38403         * doc/functions/vfprintf.texi: Update.
38404         * doc/functions/vprintf.texi: Update.
38405         * doc/functions/vsnprintf.texi: Update.
38406         * doc/functions/vsprintf.texi: Update.
38407
38408 2007-11-04  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
38411
38412 2007-11-04  Bruno Haible  <bruno@clisp.org>
38413
38414         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
38415         Reported by Sylvain Beucler <beuc@gnu.org>.
38416
38417 2007-11-03  Bruno Haible  <bruno@clisp.org>
38418
38419         * tests/test-fprintf-posix2.sh: New file.
38420         * tests/test-fprintf-posix2.c: New file.
38421         * modules/fprintf-posix-tests (Files): Add them.
38422         (TESTS): Add test-fprintf-posix2.sh.
38423         (configure.ac): Check for getrlimit and setrlimit.
38424         (check_PROGRAMS): Add test-fprintf-posix2.
38425
38426         * tests/test-printf-posix2.sh: New file.
38427         * tests/test-printf-posix2.c: New file.
38428         * modules/printf-posix-tests (Files): Add them.
38429         (TESTS): Add test-printf-posix2.sh.
38430         (configure.ac): Check for getrlimit and setrlimit.
38431         (check_PROGRAMS): Add test-printf-posix2.
38432
38433         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
38434         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
38435         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
38436         (decode_double): New function, copied from decode_long_double.
38437         (scale10_round_decimal_decoded): New function, extracted from
38438         scale10_round_decimal_long_double.
38439         (scale10_round_decimal_long_double): Use it.
38440         (scale10_round_decimal_double): New function.
38441         (floorlog10): New function.
38442         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
38443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
38444         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38445         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38446         gl_PRINTF_ENOMEM and test its result. Invoke
38447         gl_PREREQ_VASNPRINTF_ENOMEM.
38448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38453         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38454         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38455         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
38456         * modules/snprintf-posix (Depends-on): Likewise.
38457         * modules/sprintf-posix (Depends-on): Likewise.
38458         * modules/vasnprintf-posix (Depends-on): Likewise.
38459         * modules/vasprintf-posix (Depends-on): Likewise.
38460         * modules/vfprintf-posix (Depends-on): Likewise.
38461         * modules/vsnprintf-posix (Depends-on): Likewise.
38462         * modules/vsprintf-posix (Depends-on): Likewise.
38463         * doc/functions/fprintf.texi: Update.
38464         * doc/functions/printf.texi: Update.
38465         * doc/functions/snprintf.texi: Update.
38466         * doc/functions/sprintf.texi: Update.
38467         * doc/functions/vfprintf.texi: Update.
38468         * doc/functions/vprintf.texi: Update.
38469         * doc/functions/vsnprintf.texi: Update.
38470         * doc/functions/vsprintf.texi: Update.
38471
38472 2007-11-03  Bruno Haible  <bruno@clisp.org>
38473
38474         * modules/frexp-nolibm-tests: New file.
38475
38476         * modules/frexp-nolibm: New file.
38477         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
38478
38479 2007-11-03  Bruno Haible  <bruno@clisp.org>
38480
38481         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
38482         value is C99 compliant.
38483         Needed for OSF/1 5.1.
38484
38485 2007-11-03  Bruno Haible  <bruno@clisp.org>
38486
38487         Fix out-of-memory handling of vasnprintf.
38488         * lib/printf-parse.c: Include <errno.h>.
38489         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
38490         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
38491         is already set.
38492
38493 2007-11-02  Eric Blake  <ebb9@byu.net>
38494
38495         Fix tests on cygwin.
38496         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
38497
38498 2007-11-01  Bruno Haible  <bruno@clisp.org>
38499
38500         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
38501         warning.
38502         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
38503         needed for POSIX compatibility.
38504
38505 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
38506
38507         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
38508         for compatibility with GNU.
38509
38510 2007-11-01  Bruno Haible  <bruno@clisp.org>
38511
38512         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
38513         (putenv): Renamed from rpl_putenv. Change argument type from
38514         'const char *' to 'char *'.
38515         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
38516         of defining putenv in config.h, just set REPLACE_PUTENV.
38517         * modules/putenv (Depends-on): Add stdlib.
38518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38519         (Include): Use <stdlib.h>.
38520         * lib/stdlib.in.h (putenv): New declaration.
38521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
38522         REPLACE_PUTENV.
38523         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
38524         REPLACE_PUTENV.
38525         Needed for MacOS X 10.5.0.
38526         Reported by Peter O'Gorman <peter@pogma.com>.
38527
38528 2007-11-01  Jim Meyering  <meyering@redhat.com>
38529
38530         Treat an empty date string exactly like "0".
38531         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
38532         if the remaining date string (to be parsed) is empty, use "0".
38533         Reported by Mischa Molhoek and discussed in this thread:
38534         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
38535
38536 2007-10-31  Bruno Haible  <bruno@clisp.org>
38537
38538         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
38539         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
38540         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
38541         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
38542         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
38543         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
38544
38545 2007-10-31  Bruno Haible  <bruno@clisp.org>
38546
38547         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
38548         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
38549         (AC_TYPE_LONG_LONG_INT): Use it.
38550         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
38551         it as well.
38552         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
38553         to m4/longlong.m4.
38554         * modules/stdint (Files): Remove m4/ulonglong.m4.
38555         * modules/strtoull (Files): Use m4/longlong.m4 instead of
38556         m4/ulonglong.m4.
38557         * modules/strtoumax (Files): Likewise.
38558
38559 2007-10-30  Bruno Haible  <bruno@clisp.org>
38560
38561         * modules/xvasprintf-posix: New file.
38562         Suggested by Eric Blake.
38563
38564 2007-10-30  Bruno Haible  <bruno@clisp.org>
38565
38566         * modules/xprintf-posix-tests: New file.
38567         * tests/test-xprintf-posix.sh: New file.
38568         * tests/test-xprintf-posix.c: New file.
38569         * tests/test-xfprintf-posix.c: New file.
38570
38571         * modules/xprintf-posix: New file.
38572
38573 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38574
38575         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
38576         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
38577         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
38578
38579 2007-10-29  Bruno Haible  <bruno@clisp.org>
38580
38581         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
38582         contain the special marker '_cv_'.
38583         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38584         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38585         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38586         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
38587         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38588         Reported by Ralf Wildenhues.
38589
38590 2007-10-29  Bruno Haible  <bruno@clisp.org>
38591
38592         * gnulib-tool (func_import): When --lgpl is not specified, set
38593         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
38594         GPLv3.
38595         Reported by Simon Josefsson.
38596
38597 2007-10-28  Bruno Haible  <bruno@clisp.org>
38598
38599         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
38600         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
38601         HAVE_DECL_ISFINITE.
38602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
38603         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
38604         HAVE_DECL_ISFINITE.
38605
38606 2007-10-28  Bruno Haible  <bruno@clisp.org>
38607
38608         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
38609         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
38610
38611 2007-10-28  Bruno Haible  <bruno@clisp.org>
38612
38613         Fix link errors with Sun C 5.0 on Solaris 10.
38614         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
38615         function is declared but not present in the compiler's libm.
38616         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
38617         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
38618         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
38619         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
38620         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
38621         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
38622         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
38623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
38624         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
38625         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
38626         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
38627         HAVE_DECL_FLOORL.
38628
38629 2007-10-28  Bruno Haible  <bruno@clisp.org>
38630
38631         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
38632         gl_FUNC_FLOORL. Cache the result.
38633         (gl_FUNC_FLOORL): Use it.
38634         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
38635         gl_FUNC_CEILL. Cache the result.
38636         (gl_FUNC_CEILL): Use it.
38637
38638         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
38639         gl_FUNC_FLOOR. Cache the result.
38640         (gl_FUNC_FLOOR): Use it.
38641         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
38642         gl_FUNC_CEIL. Cache the result.
38643         (gl_FUNC_CEIL): Use it.
38644
38645         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
38646         gl_FUNC_FLOORF. Cache the result.
38647         (gl_FUNC_FLOORF): Use it.
38648         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
38649         gl_FUNC_CEILF. Cache the result.
38650         (gl_FUNC_CEILF): Use it.
38651
38652 2007-10-28  Bruno Haible  <bruno@clisp.org>
38653
38654         * gnulib-tool: Allow specifying the LGPL version number through
38655         --lgpl=2 or --lgpl=3.
38656         (func_usage): Document --lgpl with argument.
38657         Handle --lgpl=... arguments.
38658         (func_import): Recognize also gl_LGPL calls with an argument. When
38659         --lgpl=2 is used and the module's license is just LGPL, report an
38660         error. Set sed_transform_lib_file according to the lgpl variable. In
38661         the generated files, use --lgpl or gl_LGPL invocations with argument,
38662         if necessary.
38663         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
38664         an LGPv2+ license.
38665         * doc/gnulib-tool.texi (Modified imports): Update explanation of
38666         gl_LGPL macro.
38667
38668 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38669             Bruno Haible  <bruno@clisp.org>
38670
38671         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
38672         (u16_uctomb_aux): Likewise.
38673         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
38674         !HAVE_INLINE.
38675         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
38676
38677 2007-10-28  Bruno Haible  <bruno@clisp.org>
38678
38679         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
38680         Invoke AM_GETTEXT_OPTION if it exists.
38681         * modules/vasprintf: Likewise.
38682         * modules/verror: Likewise.
38683         * modules/xprintf: Likewise.
38684         * modules/xvasprintf: Likewise.
38685
38686 2007-10-27  Ben Pfaff  <blp@gnu.org>
38687
38688         * lib/math.in.h: Define isfinite macro and prototypes for
38689         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
38690         implementations.
38691         * m4/math_h.m4: New substitutions for isfinite module.
38692         * lib/isfinite.c: New file.
38693         * m4/isfinite.m4: New file.
38694         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
38695         * modules/isfinite: New file.
38696         * modules/isfinite-tests: New file.
38697         * tests/tests-isfinite.c: New file.
38698         * doc/functions/isfinite.texi: Mention isfinite module.
38699         * MODULES.html.sh: Mention new module.
38700
38701 2007-10-27  Ben Pfaff  <blp@gnu.org>
38702
38703         Ralf Wildenhues reported that Tru64 4.0D declares the round
38704         functions but does not have definitions.
38705         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
38706         cannot be found in any library, set the output variable to
38707         "missing" instead of "".
38708         * m4/round.m4: Also use our substitute if we cannot find round in
38709         any library, even if it is declared.
38710         * m4/roundf.m4: Likewise for roundf.
38711         * m4/roundl.m4: Likewise for roundl.
38712         * lib/math.in.h: Undefine roundf, round, roundl before defining
38713         their replacements, to allow for hypothetical systems where these
38714         may be defined as macros but not available in libraries.
38715
38716 2007-10-27  Bruno Haible  <bruno@clisp.org>
38717
38718         * doc/gnulib.texi: Invoke @firstparagraphindent.
38719         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
38720         changes in gnulib.
38721         (Source changes): New section.
38722
38723 2007-10-26  Bruno Haible  <bruno@clisp.org>
38724
38725         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
38726         borrowed from autoconf.
38727
38728 2007-10-26  Bruno Haible  <bruno@clisp.org>
38729
38730         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
38731         strerror returned the empty string. Needed on HP-UX 11.00.
38732
38733 2007-10-24  Micah Cowan  <micah@cowan.name>
38734
38735         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
38736         * build-aux/bootstrap: Remove support for now-unnecessary option,
38737         --cvs-user, and envvars CVS_USER, CVS_RSH.
38738
38739 2007-10-24  Jim Meyering  <meyering@redhat.com>
38740
38741         Avoid diagnostics from sha1sum when there is no cached checksum.
38742         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
38743         if the po.s1 file hasn't been created yet.
38744
38745         * build-aux/bootstrap: Sync from coreutils:
38746         2007-10-24  Jim Meyering  <meyering@redhat.com>
38747         Get gnulib from the git repository, not from an obsolete cvs one.
38748         * build-aux/bootstrap: Suggestion from Micah Cowan.
38749         2007-10-04  Jim Meyering  <jim@meyering.net>
38750         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
38751         (update_po_files): Work also when there are no .po files in po/.
38752
38753 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38754
38755         * README: Append ".git" to git and cg examples.
38756         Problem reported by Benoit Sigoure.
38757
38758 2007-10-23  Micah Cowan  <micah@cowan.name>
38759
38760         * users.txt: Add wget.
38761
38762 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38763
38764         Fix linking of some unistdio tests on FreeBSD.
38765         * modules/unistdio/u16-vsnprintf-tests
38766         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
38767         * modules/unistdio/u16-vsprintf-tests
38768         (test_u16_vsnprintf1_LDADD): Likewise.
38769         * modules/unistdio/u32-vsnprintf-tests
38770         (test_u32_vsnprintf1_LDADD): Likewise.
38771         * modules/unistdio/u32-vsprintf-tests
38772         (test_u32_vsprintf1_LDADD): Likewise.
38773         * modules/unistdio/u8-vsnprintf-tests
38774         (test_u8_vsnprintf1_LDADD): Likewise.
38775         * modules/unistdio/u8-vsprintf-tests
38776         (test_u8_vsprintf1_LDADD): Likewise.
38777         * modules/unistdio/ulc-vsnprintf-tests
38778         (test_ulc_vsnprintf1_LDADD): Likewise.
38779         * modules/unistdio/ulc-vsprintf-tests
38780         (test_ulc_vsprintf1_LDADD): Likewise.
38781
38782         Fix linking of some uniconv tests on FreeBSD.
38783         * modules/uniconv/u16-conv-from-enc-tests
38784         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
38785         * modules/uniconv/u16-conv-to-enc-tests
38786         (test_u16_conv_to_enc_LDADD): Likewise.
38787         * modules/uniconv/u16-strconv-from-enc-tests
38788         (test_u16_strconv_from_enc_LDADD): Likewise.
38789         * modules/uniconv/u16-strconv-to-enc-tests
38790         (test_u16_strconv_to_enc_LDADD): Likewise.
38791         * modules/uniconv/u32-conv-from-enc-tests
38792         (test_u32_conv_from_enc_LDADD): Likewise.
38793         * modules/uniconv/u32-conv-to-enc-tests
38794         (test_u32_conv_to_enc_LDADD): Likewise.
38795         * modules/uniconv/u32-strconv-from-enc-tests
38796         (test_u32_strconv_from_enc_LDADD): Likewise.
38797         * modules/uniconv/u32-strconv-to-enc-tests
38798         (test_u32_strconv_to_enc_LDADD): Likewise.
38799         * modules/uniconv/u8-conv-from-enc-tests
38800         (test_u8_conv_from_enc_LDADD): Likewise.
38801         * modules/uniconv/u8-conv-to-enc-tests
38802         (test_u8_conv_to_enc_LDADD): Likewise.
38803         * modules/uniconv/u8-strconv-from-enc-tests
38804         (test_u8_strconv_from_enc_LDADD): Likewise.
38805         * modules/uniconv/u8-strconv-to-enc-tests
38806         (test_u8_strconv_to_enc_LDADD): Likewise.
38807
38808 2007-10-22  Bruno Haible  <bruno@clisp.org>
38809
38810         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
38811         size.
38812
38813 2007-10-22  Eric Blake  <ebb9@byu.net>
38814
38815         Tweak x*printf documentation.
38816         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
38817         variable name and comments.
38818         Suggested by Bruno Haible.
38819
38820 2007-10-22  Bruno Haible  <bruno@clisp.org>
38821
38822         * lib/acl.c (copy_acl): Fix file name in comment.
38823
38824 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
38825
38826         Fix Tru64 problem with stdbool.h.
38827         * lib/stdbool.in.h (false, true):
38828         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
38829         Don't declare as an enum in this situation; it runs afoul of Tru64.
38830         Problem reported by Steven M. Schweda in
38831         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
38832
38833 2007-10-22  Eric Blake  <ebb9@byu.net>
38834
38835         Also wrap vf?printf.
38836         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
38837         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
38838         (xvprintf, xvfprintf): New functions.
38839
38840 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38841
38842         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
38843         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
38844
38845         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
38846         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
38847
38848 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
38849
38850         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
38851         by Bruno Haible.
38852
38853 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38854
38855         * lib/getloadavg.c
38856         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
38857         Undef `sys' after including sys/table.h, for Tru64 4.0D.
38858
38859         * tests/test-i-ring.c: Work for C89.
38860
38861 2007-10-22  Bruno Haible  <bruno@clisp.org>
38862
38863         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
38864         -1u, in preprocessor expression, so that we don't test for the bug
38865         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
38866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
38867
38868 2007-10-22  Eric Blake  <ebb9@byu.net>
38869
38870         * tests/test-yesno.sh: Silence stderr during test.
38871
38872 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38873
38874         * modules/crypto/gc-camellia: New file.
38875
38876         * m4/gc-camellia.m4: New file.
38877
38878         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
38879
38880         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
38881
38882 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38883
38884         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
38885         --help to stdout.  Reported by sms@antinode.org (Steven
38886         M. Schweda).
38887
38888 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38889
38890         * users.txt: Fix link to libksba.
38891
38892 2007-10-21  Ben Pfaff  <blp@gnu.org>
38893
38894         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
38895         round.c roundf implementation that depends on floorf and ceilf to
38896         be tested unconditionally.
38897
38898 2007-10-21  Ben Pfaff  <blp@gnu.org>
38899
38900         * m4/check-libm-func.m4: Removed.
38901         * m4/check-math-lib.m4: New file.
38902         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
38903         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
38904         definition and lack of AC_LIBOBJ([roundf]).
38905         * m4/roundl.m4: Ditto, and similarly for roundl.
38906         * modules/round: Reference new m4 file.
38907         * modules/roundf: Ditto.
38908         * modules/roundl: Ditto.
38909         * tests/test-round2.c (main): Use ROUND instead of round.
38910         Bug report from Bruno Haible.
38911
38912 2007-10-21  Bruno Haible  <bruno@clisp.org>
38913
38914         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
38915         context.
38916
38917 2007-10-21  Bruno Haible  <bruno@clisp.org>
38918
38919         * tests/test-wcwidth.c (main): Allow negative result for some control
38920         characters.
38921
38922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
38923         Needed on OSF/1 5.1.
38924
38925 2007-10-21  Bruno Haible  <bruno@clisp.org>
38926
38927         * tests/test-floorf1.c: Include isnanf.h.
38928         (main): Use isnanf() instead of isnan().
38929         * tests/test-ceilf1.c: Include isnanf.h.
38930         (main): Use isnanf() instead of isnan().
38931         * tests/test-truncf1.c: Include isnanf.h.
38932         (main): Use isnanf() instead of isnan().
38933         * tests/test-roundf1.c: Include isnanf.h.
38934         (main): Use isnanf() instead of isnan().
38935
38936 2007-10-21  Eric Blake  <ebb9@byu.net>
38937
38938         * users.txt: Update URL for m4.
38939
38940 2007-10-21  Bruno Haible  <bruno@clisp.org>
38941
38942         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
38943
38944 2007-10-21  Bruno Haible  <bruno@clisp.org>
38945
38946         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
38947         Git's management files if the CVS files are not present.
38948
38949 2007-10-20  Bruno Haible  <bruno@clisp.org>
38950
38951         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
38952         gcc-3.4.x.
38953
38954 2007-10-20  Ben Pfaff  <blp@gnu.org>
38955
38956         * lib/math.in.h: Declare round, roundf, roundl if we are providing
38957         implementations.
38958         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
38959         * lib/round.c: New file.
38960         * lib/roundf.c: New file.
38961         * lib/roundl.c: New file.
38962         * m4/round.m4: New file.
38963         * m4/roundf.m4: New file.
38964         * m4/roundl.m4: New file.
38965         * m4/check-libm-func-m4: New file.
38966         * modules/math: Replace round, roundf, roundl related @VARS@ in
38967         math.in.h.
38968         * modules/round: New file.
38969         * modules/round-tests: New file.
38970         * modules/roundf: New file.
38971         * modules/roundf-tests: New file.
38972         * modules/roundl: New file.
38973         * modules/roundl-tests: New file.
38974         * tests/test-round1.c: New file.
38975         * tests/test-round2.c: New file.
38976         * tests/test-roundf1.c: New file.
38977         * tests/test-roundf2.c: New file.
38978         * tests/test-roundl.c: New file.
38979         * doc/functions/round.texi: Mention round module.
38980         * doc/functions/roundf.texi: Mention roundf module.
38981         * doc/functions/roundl.texi: Mention roundl module.
38982         * MODULES.html.sh: Mention new modules.
38983         Thanks to Bruno Haible for suggestions.
38984
38985 2007-10-20  Jim Meyering  <meyering@redhat.com>
38986
38987         * lib/xprintf.c: Include <config.h> unconditionally.
38988
38989         Change xprintf's license to GPL.
38990         * modules/xprintf (License): s/LGPL/GPL/, since this module
38991         depends on modules (exit and exitfail) which are GPL.
38992         Suggestion from Bruno Haible.
38993
38994         xprintf fixes.
38995         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
38996         Use a clearer diagnostic.
38997         Patch from Bruno Haible.
38998
38999 2007-10-20  Bruno Haible  <bruno@clisp.org>
39000
39001         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39002         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39003         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39004
39005 2007-10-20  Bruno Haible  <bruno@clisp.org>
39006
39007         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39008         precision in the comparison result > x - 1 or similar.
39009         * tests/test-ceilf2.c (correct_result_p): Likewise.
39010         * tests/test-truncf2.c (correct_result_p): Likewise.
39011         * tests/test-trunc2.c (correct_result_p): Likewise.
39012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39013
39014 2007-10-20  Bruno Haible  <bruno@clisp.org>
39015
39016         * modules/ceil: New file.
39017         * m4/ceil.m4: New file.
39018         * doc/functions/ceil.texi: Mention the 'ceil' module.
39019
39020 2007-10-20  Bruno Haible  <bruno@clisp.org>
39021
39022         * modules/floor: New file.
39023         * m4/floor.m4: New file.
39024         * doc/functions/floor.texi: Mention the 'floor' module.
39025
39026 2007-10-20  Bruno Haible  <bruno@clisp.org>
39027
39028         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39029         of %a.
39030         * modules/floorf-tests (Depends-on): Likewise.
39031         * modules/truncf-tests (Depends-on): Likewise.
39032         * modules/trunc-tests (Depends-on): Likewise.
39033         Reported by Ben Pfaff.
39034
39035 2007-10-19  Jim Meyering  <meyering@redhat.com>
39036
39037         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39038         Don't bother testing specific errno values.  Just test ferror.
39039
39040         New module: xprintf
39041         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39042
39043 2007-10-19  Bruno Haible  <bruno@clisp.org>
39044
39045         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
39046         syntax.
39047         * modules/javaexec (Makefile.am): Likewise.
39048         * modules/relocatable-prog (Makefile.am): Likewise.
39049         Suggested by Jim Meyering.
39050
39051 2007-10-18  Bruno Haible  <bruno@clisp.org>
39052
39053         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
39054         Reported by Jim Meyering.
39055
39056 2007-10-18  Eric Blake  <ebb9@byu.net>
39057
39058         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
39059
39060 2007-10-18  Bruno Haible  <bruno@clisp.org>
39061
39062         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
39063         the format string into writable memory. Needed in Fortify conditions.
39064
39065 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
39066             Bruno Haible  <bruno@clisp.org>
39067
39068         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
39069         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
39070         * modules/trim (Depends-on): Add mbchar.
39071         (configure.ac): Add gl_FUNC_MBRTOWC.
39072         (Makefile.am): Augment lib_SOURCES.
39073
39074 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39075
39076         Modify glob.c to use fstatat and dirfd, to simplify it.
39077         Suggested by Eric Blake.
39078         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
39079         Don't include <stdbool.h>; not used.
39080         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
39081         (link_exists_p): Simplify implementation, since we can now assume
39082         dirfd and fstatat.
39083         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
39084
39085 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39086
39087         * gnulib-tool (func_get_dependencies): Fix sed script to
39088         match only tests.
39089
39090 2007-10-17  Bruno Haible  <bruno@clisp.org>
39091
39092         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
39093         allow locale names without encoding suffix.
39094         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39095         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39096
39097 2007-10-16  Bruno Haible  <bruno@clisp.org>
39098
39099         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
39100         * lib/getgroups.c (getgroups): Likewise.
39101         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
39102
39103 2007-10-16  Bruno Haible  <bruno@clisp.org>
39104
39105         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
39106         * modules/malloc-posix (License): Likewise.
39107         * modules/realloc-posix (License): Likewise.
39108         * modules/calloc-posix (License): Likewise.
39109         * modules/intprops (License): Change from GPL to LGPL, with
39110         Paul Eggert's approval.
39111
39112 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39113
39114         Merge glibc changes into lib/glob.c.
39115
39116         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
39117         2007-10-15 04:59:03 UTC.  Here are the changes:
39118
39119         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
39120
39121         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
39122
39123         * lib/glob.c: Add some branch prediction throughout.
39124
39125         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
39126
39127         [BZ #5103]
39128         * lib/glob.c (glob): Recognize patterns starting \/.
39129
39130         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
39131
39132         [BZ #3996]
39133         * lib/glob.c (attribute_hidden): Define if not defined.
39134         (glob): Unescape dirname, filename or username when needed and not
39135         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
39136         is NULL.  Handle unescaped [ in pattern without closing ].
39137         Don't pass GLOB_CHECK down to recursive glob for directories.
39138         (__glob_pattern_type): New function.
39139         (__glob_pattern_p): Implement using __glob_pattern_type.
39140         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
39141         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
39142         Remove unreachable code.
39143
39144         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
39145
39146         * lib/glob.c (glob_in_dir): Add some comments and asserts to
39147         explain why there are no leaks.
39148
39149         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
39150
39151         [BZ #3253]
39152         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
39153         time, rather allocate increasingly bigger arrays of pointers, if
39154         possible with alloca, if too large with malloc.
39155
39156 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39157
39158         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
39159         Problem reported by H.Merijn Brand in
39160         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
39161         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
39162         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39163
39164 2007-10-15  Bruno Haible  <bruno@clisp.org>
39165
39166         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
39167         with explicit rpl_ prefix.
39168         * lib/fopen.c (fopen): Likewise.
39169         * lib/freopen.c (freopen): Likewise.
39170         * lib/iconv.c (iconv): Likewise.
39171         * lib/iconv_close.c (iconv_close): Likewise.
39172
39173 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39174
39175         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
39176
39177 2007-10-15  Bruno Haible  <bruno@clisp.org>
39178
39179         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
39180         <stddef.h> instead of <stdlib.h> since we only need NULL.
39181         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39182
39183 2007-10-15  Bruno Haible  <bruno@clisp.org>
39184
39185         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
39186         Replace paragraph talking about LIBOBJS.
39187         Reported by Colin Watson <cjwatson@debian.org>.
39188
39189 2007-10-15  Bruno Haible  <bruno@clisp.org>
39190
39191         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
39192         <stdlib.h> before using NULL.
39193
39194 2007-10-15  Simon Josefsson  <simon@josefsson.org>
39195
39196         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
39197         Reported by Albert Chin <china@thewrittenword.com>.
39198
39199 2007-10-14  Bruno Haible  <bruno@clisp.org>
39200
39201         * modules/iconv_open-utf-tests: New file.
39202         * tests/test-iconv-utf.c: New file.
39203
39204         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
39205         * modules/iconv_open-utf: New file.
39206         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
39207         (iconv, iconv_close): New declarations.
39208         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
39209         be defined.
39210         (iconv_open): Add special handling of conversion between UTF-8 and
39211         UTF-{16,32}{BE,LE}.
39212         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
39213         * lib/iconv_close.c: New file.
39214         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
39215         gl_FUNC_ICONV_OPEN.
39216         (gl_FUNC_ICONV_OPEN): Use it.
39217         (gl_FUNC_ICONV_OPEN_UTF): New macro.
39218         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
39219         and REPLACE_ICONV_UTF.
39220         * modules/iconv_open (Depends-on): Add c-strcase.
39221         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
39222         ICONV_CONST.
39223         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
39224
39225 2007-10-13  Albert Chin  <china@thewrittenword.com>
39226             Bruno Haible  <bruno@clisp.org>
39227
39228         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
39229         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
39230
39231 2007-10-13  Bruno Haible  <bruno@clisp.org>
39232
39233         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
39234         defined, use the ISO C99 inline semantics.
39235         * lib/argp.h (ARGP_EI): Likewise.
39236
39237 2007-10-13  Bruno Haible  <bruno@clisp.org>
39238
39239         Handle 'inline' change in gcc 4.3.0.
39240         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
39241         argp_fmtstream_write, argp_fmtstream_set_lmargin,
39242         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
39243         argp_fmtstream_point): Disable 'extern' declaration if the function
39244         definition is going to be provided inline.
39245         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
39246         semantics, not the ISO C99 inline semantics.
39247         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
39248         'extern' declaration if the function definition is going to be provided
39249         inline.
39250         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
39251         the GNU C inline semantics, not the ISO C99 inline semantics. With
39252         GCC 4.2, avoid a warning.
39253
39254 2007-10-13  Bruno Haible  <bruno@clisp.org>
39255
39256         * lib/freading.h (freading): Enable the use of __freading for
39257         glibc >= 2.7.
39258         * lib/freading.c (freading): Likewise.
39259
39260 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39261
39262         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
39263         "warning: C99 inline functions are not supported; using GNU89".
39264
39265 2007-10-12  Bruno Haible  <bruno@clisp.org>
39266
39267         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
39268         of 2.
39269         * tests/test-ceilf2.c: New file.
39270         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
39271
39272         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
39273         * modules/ceilf-tests: Update.
39274
39275 2007-10-12  Bruno Haible  <bruno@clisp.org>
39276
39277         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
39278         of 2.
39279         * tests/test-floorf2.c: New file.
39280         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
39281
39282         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
39283         * modules/floorf-tests: Update.
39284
39285 2007-10-12  Bruno Haible  <bruno@clisp.org>
39286
39287         * tests/test-trunc2.c: New file.
39288         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
39289
39290         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
39291         * modules/trunc-tests: Update.
39292
39293 2007-10-12  Bruno Haible  <bruno@clisp.org>
39294
39295         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
39296         of 2.
39297         * tests/test-truncf2.c: New file.
39298         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
39299
39300         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
39301         * modules/truncf-tests: Update.
39302
39303 2007-10-11  Eric Blake  <ebb9@byu.net>
39304
39305         Don't claim strerror is broken on Interix.
39306         * doc/functions/strerror.texi (strerror): Known broken systems are
39307         now Solaris 8, and not Interix.
39308         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
39309         Interix on cross-compile.
39310         Reported by Martin Koeppe in
39311         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
39312
39313 2007-10-11  Bruno Haible  <bruno@clisp.org>
39314
39315         * modules/i-ring-tests: New file.
39316         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
39317         instead of assert.
39318
39319 2007-10-11  Bruno Haible  <bruno@clisp.org>
39320
39321         * modules/filenamecat-tests: New file.
39322         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
39323         * lib/filenamecat.c: Remove test code.
39324
39325 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39326
39327         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
39328
39329         * lib/strerror.c: Include <string.h> always, to test interface,
39330         and to remove the need for the dummy.
39331         Include intprops.h to compute width instead of doing it ourselves
39332         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
39333         (strerror): Define it to return NULL if there's no system strerror.
39334         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
39335         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
39336         ancient pre-strerror Unix systems well any more.  Saying "unknown
39337         system error" is enough.
39338         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
39339         simpler strerror.c implementation.
39340         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
39341         Simplify the tests to reflect the simpler strerror implementation.
39342         * modules/strerror (Depends-on): Add intprops.
39343
39344 2007-10-09  Eric Blake  <ebb9@byu.net>
39345
39346         Silence test-fpending.
39347         * modules/fpending-tests (Files): Add wrapper script.
39348         * tests/test-fpending.sh: New file.
39349
39350 2007-10-09  Bruno Haible  <bruno@clisp.org>
39351
39352         * MODULES.html.sh (func_module): Don't create a hyperlink for
39353         function names like 'printf_frexp'.
39354         (Misc): Add crc, memxor.
39355         (Characteristics of floating types): New section.
39356         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
39357         isnanf-nolibm, signbit, trunc, truncf, truncl.
39358         (Enhancements for ISO C 99 functions): New subsection Input/output.
39359         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
39360         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
39361         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
39362         (Compatibility checks for POSIX:2001 functions): Add clock-time.
39363         (Enhancements for POSIX:2001 functions): Add chdir-long.
39364         (File system functions): Add areadlink, chdir-safer, read-file.
39365         Remove cycle-check.
39366         (File system as inode set): New section.
39367         (Date and time): Add gethrxtime.
39368         (Multithreading): Add openmp.
39369         (Internationalization functions): Add localename.
39370         (Unicode string functions): Add unistr/u*-mbsnlen.
39371         (Support for maintaining and releasing projects): Add git-version-gen.
39372         (Lone files): Remove directories.
39373
39374 2007-10-08  Ben Pfaff  <blp@gnu.org>
39375
39376         * lib/xmalloca.h: Fix typo in comment.
39377
39378 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39379
39380         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
39381         when avoiding problems with integer overflow.  Use a portable test
39382         instead.
39383
39384 2007-10-08  Simon Josefsson  <simon@josefsson.org>
39385
39386         * modules/dummy (License): Change to LGPLv2+.
39387         * modules/float (License): Likewise
39388         * modules/realloc (License): Likewise
39389         * modules/stdlib (License): Likewise
39390
39391 2007-10-07  Bruno Haible  <bruno@clisp.org>
39392
39393         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
39394         * floor.c (TWO_MANT_DIG): Likewise.
39395         * ceil.c (TWO_MANT_DIG): Likewise.
39396         Reported by Ben Pfaff.
39397
39398 2007-10-07  Bruno Haible  <bruno@clisp.org>
39399
39400         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
39401         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
39402         * lib/frexp.c (FUNC): Likewise.
39403         * lib/printf-frexp.h (printf_frexp): Likewise.
39404         * lib/printf-frexpl.h (printf_frexpl): Likewise.
39405         * lib/printf-frexp.c (FUNC): Likewise.
39406         Suggested by Jim Meyering.
39407
39408 2007-10-07  Jim Meyering  <meyering@redhat.com>
39409
39410         Make xnanosleep's integer overflow test more robust.
39411         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
39412         so that gcc-4.3.0 doesn't optimize away this test for overflow.
39413
39414 2007-10-07  Bruno Haible  <bruno@clisp.org>
39415
39416         * NEWS: Mention the license change.
39417
39418         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
39419         abbreviations in the modules files.
39420
39421         Change copyright notice from GPLv2+ to GPLv3+.
39422         * README: Change copyright notice.
39423         * MODULES.html.sh: Likewise.
39424         * build-aux/bootstrap.conf: Likewise.
39425         * build-aux/config.libpath: Likewise.
39426         * build-aux/csharpcomp.sh.in: Likewise.
39427         * build-aux/csharpexec.sh.in: Likewise.
39428         * build-aux/install-reloc: Likewise.
39429         * build-aux/javacomp.sh.in: Likewise.
39430         * build-aux/javaexec.sh.in: Likewise.
39431         * build-aux/ldd.sh.in: Likewise.
39432         * build-aux/reloc-ldflags: Likewise.
39433         * build-aux/relocatable.sh.in: Likewise.
39434         * build-aux/x-to-1.in: Likewise.
39435         * check-module: Likewise.
39436         * config/srclistvars.sh: Likewise.
39437         * gnulib-tool: Likewise.
39438         * lib/acl-internal.h: Likewise.
39439         * lib/acl.c: Likewise.
39440         * lib/acl.h: Likewise.
39441         * lib/acl_entries.c: Likewise.
39442         * lib/areadlink-with-size.c: Likewise.
39443         * lib/areadlink.c: Likewise.
39444         * lib/areadlink.h: Likewise.
39445         * lib/argmatch.c: Likewise.
39446         * lib/argmatch.h: Likewise.
39447         * lib/argp-ba.c: Likewise.
39448         * lib/argp-eexst.c: Likewise.
39449         * lib/argp-fmtstream.c: Likewise.
39450         * lib/argp-fmtstream.h: Likewise.
39451         * lib/argp-fs-xinl.c: Likewise.
39452         * lib/argp-help.c: Likewise.
39453         * lib/argp-namefrob.h: Likewise.
39454         * lib/argp-parse.c: Likewise.
39455         * lib/argp-pin.c: Likewise.
39456         * lib/argp-pv.c: Likewise.
39457         * lib/argp-pvh.c: Likewise.
39458         * lib/argp-xinl.c: Likewise.
39459         * lib/argp.h: Likewise.
39460         * lib/at-func.c: Likewise.
39461         * lib/atanl.c: Likewise.
39462         * lib/backupfile.c: Likewise.
39463         * lib/backupfile.h: Likewise.
39464         * lib/basename.c: Likewise.
39465         * lib/binary-io.h: Likewise.
39466         * lib/byteswap.in.h: Likewise.
39467         * lib/c-stack.c: Likewise.
39468         * lib/c-stack.h: Likewise.
39469         * lib/c-strcasestr.c: Likewise.
39470         * lib/c-strcasestr.h: Likewise.
39471         * lib/c-strstr.c: Likewise.
39472         * lib/c-strstr.h: Likewise.
39473         * lib/c-strtod.c: Likewise.
39474         * lib/calloc.c: Likewise.
39475         * lib/canon-host.c: Likewise.
39476         * lib/canon-host.h: Likewise.
39477         * lib/canonicalize-lgpl.c: Likewise.
39478         * lib/canonicalize.c: Likewise.
39479         * lib/canonicalize.h: Likewise.
39480         * lib/ceil.c: Likewise.
39481         * lib/ceilf.c: Likewise.
39482         * lib/ceill.c: Likewise.
39483         * lib/chdir-long.c: Likewise.
39484         * lib/chdir-long.h: Likewise.
39485         * lib/chdir-safer.c: Likewise.
39486         * lib/chdir-safer.h: Likewise.
39487         * lib/chown.c: Likewise.
39488         * lib/classpath.c: Likewise.
39489         * lib/classpath.h: Likewise.
39490         * lib/clean-temp.c: Likewise.
39491         * lib/clean-temp.h: Likewise.
39492         * lib/cloexec.c: Likewise.
39493         * lib/close-stream.c: Likewise.
39494         * lib/closein.c: Likewise.
39495         * lib/closein.h: Likewise.
39496         * lib/closeout.c: Likewise.
39497         * lib/closeout.h: Likewise.
39498         * lib/concat-filename.c: Likewise.
39499         * lib/copy-file.c: Likewise.
39500         * lib/copy-file.h: Likewise.
39501         * lib/count-one-bits.h: Likewise.
39502         * lib/crc.c: Likewise.
39503         * lib/crc.h: Likewise.
39504         * lib/creat-safer.c: Likewise.
39505         * lib/csharpcomp.c: Likewise.
39506         * lib/csharpcomp.h: Likewise.
39507         * lib/csharpexec.c: Likewise.
39508         * lib/csharpexec.h: Likewise.
39509         * lib/cycle-check.c: Likewise.
39510         * lib/cycle-check.h: Likewise.
39511         * lib/diacrit.c: Likewise.
39512         * lib/diacrit.h: Likewise.
39513         * lib/diffseq.h: Likewise.
39514         * lib/dirchownmod.c: Likewise.
39515         * lib/dirent.in.h: Likewise.
39516         * lib/dirfd.c: Likewise.
39517         * lib/dirfd.h: Likewise.
39518         * lib/dirname.c: Likewise.
39519         * lib/dirname.h: Likewise.
39520         * lib/dummy.c: Likewise.
39521         * lib/dup-safer.c: Likewise.
39522         * lib/dup2.c: Likewise.
39523         * lib/eealloc.h: Likewise.
39524         * lib/error.c: Likewise.
39525         * lib/error.h: Likewise.
39526         * lib/euidaccess.c: Likewise.
39527         * lib/exclude.c: Likewise.
39528         * lib/exclude.h: Likewise.
39529         * lib/execute.c: Likewise.
39530         * lib/execute.h: Likewise.
39531         * lib/exitfail.c: Likewise.
39532         * lib/exitfail.h: Likewise.
39533         * lib/expl.c: Likewise.
39534         * lib/fatal-signal.c: Likewise.
39535         * lib/fatal-signal.h: Likewise.
39536         * lib/fbufmode.c: Likewise.
39537         * lib/fbufmode.h: Likewise.
39538         * lib/fchdir.c: Likewise.
39539         * lib/fchmodat.c: Likewise.
39540         * lib/fchownat.c: Likewise.
39541         * lib/fcntl--.h: Likewise.
39542         * lib/fcntl-safer.h: Likewise.
39543         * lib/fcntl.in.h: Likewise.
39544         * lib/fd-safer.c: Likewise.
39545         * lib/fflush.c: Likewise.
39546         * lib/file-has-acl.c: Likewise.
39547         * lib/file-set.c: Likewise.
39548         * lib/file-type.c: Likewise.
39549         * lib/file-type.h: Likewise.
39550         * lib/fileblocks.c: Likewise.
39551         * lib/filemode.c: Likewise.
39552         * lib/filemode.h: Likewise.
39553         * lib/filename.h: Likewise.
39554         * lib/filenamecat.c: Likewise.
39555         * lib/filenamecat.h: Likewise.
39556         * lib/findprog.c: Likewise.
39557         * lib/findprog.h: Likewise.
39558         * lib/float.in.h: Likewise.
39559         * lib/floor.c: Likewise.
39560         * lib/floorf.c: Likewise.
39561         * lib/floorl.c: Likewise.
39562         * lib/fopen-safer.c: Likewise.
39563         * lib/fopen.c: Likewise.
39564         * lib/fpending.c: Likewise.
39565         * lib/fpending.h: Likewise.
39566         * lib/fprintf.c: Likewise.
39567         * lib/fprintftime.h: Likewise.
39568         * lib/fpucw.h: Likewise.
39569         * lib/fpurge.c: Likewise.
39570         * lib/fpurge.h: Likewise.
39571         * lib/freadable.c: Likewise.
39572         * lib/freadable.h: Likewise.
39573         * lib/freadahead.c: Likewise.
39574         * lib/freadahead.h: Likewise.
39575         * lib/freading.c: Likewise.
39576         * lib/freading.h: Likewise.
39577         * lib/free.c: Likewise.
39578         * lib/freopen.c: Likewise.
39579         * lib/frexp.c: Likewise.
39580         * lib/frexpl.c: Likewise.
39581         * lib/fseek.c: Likewise.
39582         * lib/fseterr.c: Likewise.
39583         * lib/fseterr.h: Likewise.
39584         * lib/fstatat.c: Likewise.
39585         * lib/fstrcmp.c: Likewise.
39586         * lib/fstrcmp.h: Likewise.
39587         * lib/fsusage.c: Likewise.
39588         * lib/fsusage.h: Likewise.
39589         * lib/ftell.c: Likewise.
39590         * lib/ftello.c: Likewise.
39591         * lib/fts-cycle.c: Likewise.
39592         * lib/fts.c: Likewise.
39593         * lib/fts_.h: Likewise.
39594         * lib/full-read.c: Likewise.
39595         * lib/full-read.h: Likewise.
39596         * lib/full-write.c: Likewise.
39597         * lib/full-write.h: Likewise.
39598         * lib/fwritable.c: Likewise.
39599         * lib/fwritable.h: Likewise.
39600         * lib/fwriteerror.c: Likewise.
39601         * lib/fwriteerror.h: Likewise.
39602         * lib/fwriting.c: Likewise.
39603         * lib/fwriting.h: Likewise.
39604         * lib/gcd.c: Likewise.
39605         * lib/gcd.h: Likewise.
39606         * lib/getcwd.c: Likewise.
39607         * lib/getdate.h: Likewise.
39608         * lib/getdate.y: Likewise.
39609         * lib/getdomainname.c: Likewise.
39610         * lib/getdomainname.h: Likewise.
39611         * lib/getgroups.c: Likewise.
39612         * lib/gethostname.c: Likewise.
39613         * lib/gethrxtime.c: Likewise.
39614         * lib/gethrxtime.h: Likewise.
39615         * lib/getloadavg.c: Likewise.
39616         * lib/getndelim2.c: Likewise.
39617         * lib/getndelim2.h: Likewise.
39618         * lib/getnline.c: Likewise.
39619         * lib/getnline.h: Likewise.
39620         * lib/getopt.c: Likewise.
39621         * lib/getopt.in.h: Likewise.
39622         * lib/getopt1.c: Likewise.
39623         * lib/getopt_int.h: Likewise.
39624         * lib/getpagesize.h: Likewise.
39625         * lib/getsubopt.c: Likewise.
39626         * lib/gettime.c: Likewise.
39627         * lib/getugroups.c: Likewise.
39628         * lib/getugroups.h: Likewise.
39629         * lib/getusershell.c: Likewise.
39630         * lib/gl_anyavltree_list1.h: Likewise.
39631         * lib/gl_anyavltree_list2.h: Likewise.
39632         * lib/gl_anyhash_list1.h: Likewise.
39633         * lib/gl_anyhash_list2.h: Likewise.
39634         * lib/gl_anylinked_list1.h: Likewise.
39635         * lib/gl_anylinked_list2.h: Likewise.
39636         * lib/gl_anyrbtree_list1.h: Likewise.
39637         * lib/gl_anyrbtree_list2.h: Likewise.
39638         * lib/gl_anytree_list1.h: Likewise.
39639         * lib/gl_anytree_list2.h: Likewise.
39640         * lib/gl_anytree_oset.h: Likewise.
39641         * lib/gl_anytreehash_list1.h: Likewise.
39642         * lib/gl_anytreehash_list2.h: Likewise.
39643         * lib/gl_array_list.c: Likewise.
39644         * lib/gl_array_list.h: Likewise.
39645         * lib/gl_array_oset.c: Likewise.
39646         * lib/gl_array_oset.h: Likewise.
39647         * lib/gl_avltree_list.c: Likewise.
39648         * lib/gl_avltree_list.h: Likewise.
39649         * lib/gl_avltree_oset.c: Likewise.
39650         * lib/gl_avltree_oset.h: Likewise.
39651         * lib/gl_avltreehash_list.c: Likewise.
39652         * lib/gl_avltreehash_list.h: Likewise.
39653         * lib/gl_carray_list.c: Likewise.
39654         * lib/gl_carray_list.h: Likewise.
39655         * lib/gl_linked_list.c: Likewise.
39656         * lib/gl_linked_list.h: Likewise.
39657         * lib/gl_linkedhash_list.c: Likewise.
39658         * lib/gl_linkedhash_list.h: Likewise.
39659         * lib/gl_list.c: Likewise.
39660         * lib/gl_list.h: Likewise.
39661         * lib/gl_oset.c: Likewise.
39662         * lib/gl_oset.h: Likewise.
39663         * lib/gl_rbtree_list.c: Likewise.
39664         * lib/gl_rbtree_list.h: Likewise.
39665         * lib/gl_rbtree_oset.c: Likewise.
39666         * lib/gl_rbtree_oset.h: Likewise.
39667         * lib/gl_rbtreehash_list.c: Likewise.
39668         * lib/gl_rbtreehash_list.h: Likewise.
39669         * lib/gl_sublist.c: Likewise.
39670         * lib/gl_sublist.h: Likewise.
39671         * lib/group-member.c: Likewise.
39672         * lib/group-member.h: Likewise.
39673         * lib/hard-locale.c: Likewise.
39674         * lib/hard-locale.h: Likewise.
39675         * lib/hash-pjw.c: Likewise.
39676         * lib/hash-pjw.h: Likewise.
39677         * lib/hash-triple.c: Likewise.
39678         * lib/hash.c: Likewise.
39679         * lib/hash.h: Likewise.
39680         * lib/human.c: Likewise.
39681         * lib/human.h: Likewise.
39682         * lib/i-ring.c: Likewise.
39683         * lib/i-ring.h: Likewise.
39684         * lib/idcache.c: Likewise.
39685         * lib/imaxabs.c: Likewise.
39686         * lib/imaxdiv.c: Likewise.
39687         * lib/inet_pton.c: Likewise.
39688         * lib/inet_pton.h: Likewise.
39689         * lib/intprops.h: Likewise.
39690         * lib/inttostr.c: Likewise.
39691         * lib/inttostr.h: Likewise.
39692         * lib/inttypes.in.h: Likewise.
39693         * lib/isapipe.c: Likewise.
39694         * lib/isdir.c: Likewise.
39695         * lib/isnan.c: Likewise.
39696         * lib/isnan.h: Likewise.
39697         * lib/isnanf.c: Likewise.
39698         * lib/isnanf.h: Likewise.
39699         * lib/isnanl-nolibm.h: Likewise.
39700         * lib/isnanl.c: Likewise.
39701         * lib/isnanl.h: Likewise.
39702         * lib/javacomp.c: Likewise.
39703         * lib/javacomp.h: Likewise.
39704         * lib/javaexec.c: Likewise.
39705         * lib/javaexec.h: Likewise.
39706         * lib/javaversion.c: Likewise.
39707         * lib/javaversion.h: Likewise.
39708         * lib/javaversion.java: Likewise.
39709         * lib/lbrkprop.h: Likewise.
39710         * lib/lchmod.h: Likewise.
39711         * lib/lchown.c: Likewise.
39712         * lib/ldexpl.c: Likewise.
39713         * lib/linebreak.c: Likewise.
39714         * lib/linebreak.h: Likewise.
39715         * lib/linebuffer.c: Likewise.
39716         * lib/linebuffer.h: Likewise.
39717         * lib/locale.in.h: Likewise.
39718         * lib/logl.c: Likewise.
39719         * lib/long-options.c: Likewise.
39720         * lib/long-options.h: Likewise.
39721         * lib/lstat.c: Likewise.
39722         * lib/lstat.h: Likewise.
39723         * lib/math.in.h: Likewise.
39724         * lib/mbchar.c: Likewise.
39725         * lib/mbchar.h: Likewise.
39726         * lib/mbfile.h: Likewise.
39727         * lib/mbiter.h: Likewise.
39728         * lib/mbscasecmp.c: Likewise.
39729         * lib/mbscasestr.c: Likewise.
39730         * lib/mbschr.c: Likewise.
39731         * lib/mbscspn.c: Likewise.
39732         * lib/mbslen.c: Likewise.
39733         * lib/mbsncasecmp.c: Likewise.
39734         * lib/mbsnlen.c: Likewise.
39735         * lib/mbspbrk.c: Likewise.
39736         * lib/mbspcasecmp.c: Likewise.
39737         * lib/mbsrchr.c: Likewise.
39738         * lib/mbssep.c: Likewise.
39739         * lib/mbsspn.c: Likewise.
39740         * lib/mbsstr.c: Likewise.
39741         * lib/mbstok_r.c: Likewise.
39742         * lib/mbswidth.c: Likewise.
39743         * lib/mbswidth.h: Likewise.
39744         * lib/mbuiter.h: Likewise.
39745         * lib/memcasecmp.c: Likewise.
39746         * lib/memcasecmp.h: Likewise.
39747         * lib/memchr.c: Likewise.
39748         * lib/memcmp.c: Likewise.
39749         * lib/memcoll.c: Likewise.
39750         * lib/memcoll.h: Likewise.
39751         * lib/memcpy.c: Likewise.
39752         * lib/memrchr.c: Likewise.
39753         * lib/mkancesdirs.c: Likewise.
39754         * lib/mkdir-p.c: Likewise.
39755         * lib/mkdir-p.h: Likewise.
39756         * lib/mkdir.c: Likewise.
39757         * lib/mkdirat.c: Likewise.
39758         * lib/mkdtemp.c: Likewise.
39759         * lib/mkstemp-safer.c: Likewise.
39760         * lib/mkstemp.c: Likewise.
39761         * lib/modechange.c: Likewise.
39762         * lib/modechange.h: Likewise.
39763         * lib/mountlist.c: Likewise.
39764         * lib/mountlist.h: Likewise.
39765         * lib/mpsort.c: Likewise.
39766         * lib/nanosleep.c: Likewise.
39767         * lib/obstack.c: Likewise.
39768         * lib/obstack.h: Likewise.
39769         * lib/open-safer.c: Likewise.
39770         * lib/open.c: Likewise.
39771         * lib/openat-die.c: Likewise.
39772         * lib/openat-priv.h: Likewise.
39773         * lib/openat-proc.c: Likewise.
39774         * lib/openat.c: Likewise.
39775         * lib/openat.h: Likewise.
39776         * lib/pagealign_alloc.c: Likewise.
39777         * lib/pagealign_alloc.h: Likewise.
39778         * lib/physmem.c: Likewise.
39779         * lib/physmem.h: Likewise.
39780         * lib/pipe-safer.c: Likewise.
39781         * lib/pipe.c: Likewise.
39782         * lib/pipe.h: Likewise.
39783         * lib/posixtm.c: Likewise.
39784         * lib/posixtm.h: Likewise.
39785         * lib/posixver.c: Likewise.
39786         * lib/printf-frexp.c: Likewise.
39787         * lib/printf-frexp.h: Likewise.
39788         * lib/printf-frexpl.c: Likewise.
39789         * lib/printf-frexpl.h: Likewise.
39790         * lib/printf.c: Likewise.
39791         * lib/progname.c: Likewise.
39792         * lib/progname.h: Likewise.
39793         * lib/progreloc.c: Likewise.
39794         * lib/putenv.c: Likewise.
39795         * lib/quote.c: Likewise.
39796         * lib/quote.h: Likewise.
39797         * lib/quotearg.c: Likewise.
39798         * lib/quotearg.h: Likewise.
39799         * lib/raise.c: Likewise.
39800         * lib/readline.c: Likewise.
39801         * lib/readline.h: Likewise.
39802         * lib/readlink.c: Likewise.
39803         * lib/readtokens.c: Likewise.
39804         * lib/readtokens.h: Likewise.
39805         * lib/readtokens0.c: Likewise.
39806         * lib/readtokens0.h: Likewise.
39807         * lib/readutmp.c: Likewise.
39808         * lib/readutmp.h: Likewise.
39809         * lib/realloc.c: Likewise.
39810         * lib/relocwrapper.c: Likewise.
39811         * lib/rename-dest-slash.c: Likewise.
39812         * lib/rename.c: Likewise.
39813         * lib/rmdir.c: Likewise.
39814         * lib/rpmatch.c: Likewise.
39815         * lib/safe-read.c: Likewise.
39816         * lib/safe-read.h: Likewise.
39817         * lib/safe-write.c: Likewise.
39818         * lib/safe-write.h: Likewise.
39819         * lib/same-inode.h: Likewise.
39820         * lib/same.c: Likewise.
39821         * lib/same.h: Likewise.
39822         * lib/save-cwd.c: Likewise.
39823         * lib/save-cwd.h: Likewise.
39824         * lib/savedir.c: Likewise.
39825         * lib/savedir.h: Likewise.
39826         * lib/savewd.c: Likewise.
39827         * lib/savewd.h: Likewise.
39828         * lib/search.in.h: Likewise.
39829         * lib/setenv.c: Likewise.
39830         * lib/setenv.h: Likewise.
39831         * lib/settime.c: Likewise.
39832         * lib/sh-quote.c: Likewise.
39833         * lib/sh-quote.h: Likewise.
39834         * lib/sig2str.c: Likewise.
39835         * lib/sig2str.h: Likewise.
39836         * lib/signal.in.h: Likewise.
39837         * lib/signbitd.c: Likewise.
39838         * lib/signbitf.c: Likewise.
39839         * lib/signbitl.c: Likewise.
39840         * lib/sigprocmask.c: Likewise.
39841         * lib/sincosl.c: Likewise.
39842         * lib/sleep.c: Likewise.
39843         * lib/sprintf.c: Likewise.
39844         * lib/sqrtl.c: Likewise.
39845         * lib/stat-time.h: Likewise.
39846         * lib/stdio--.h: Likewise.
39847         * lib/stdio-safer.h: Likewise.
39848         * lib/stdlib--.h: Likewise.
39849         * lib/stdlib-safer.h: Likewise.
39850         * lib/stdlib.in.h: Likewise.
39851         * lib/stpcpy.c: Likewise.
39852         * lib/stpncpy.c: Likewise.
39853         * lib/strchrnul.c: Likewise.
39854         * lib/strcspn.c: Likewise.
39855         * lib/strerror.c: Likewise.
39856         * lib/strftime.c: Likewise.
39857         * lib/strftime.h: Likewise.
39858         * lib/striconveh.c: Likewise.
39859         * lib/striconveh.h: Likewise.
39860         * lib/striconveha.c: Likewise.
39861         * lib/striconveha.h: Likewise.
39862         * lib/stripslash.c: Likewise.
39863         * lib/strnlen1.c: Likewise.
39864         * lib/strnlen1.h: Likewise.
39865         * lib/strtod.c: Likewise.
39866         * lib/strtoimax.c: Likewise.
39867         * lib/strtok_r.c: Likewise.
39868         * lib/strtol.c: Likewise.
39869         * lib/strtoll.c: Likewise.
39870         * lib/strtoul.c: Likewise.
39871         * lib/strtoull.c: Likewise.
39872         * lib/sysexits.in.h: Likewise.
39873         * lib/tempname.c: Likewise.
39874         * lib/tempname.h: Likewise.
39875         * lib/timespec.h: Likewise.
39876         * lib/tls.c: Likewise.
39877         * lib/tls.h: Likewise.
39878         * lib/tmpdir.c: Likewise.
39879         * lib/tmpdir.h: Likewise.
39880         * lib/tmpfile-safer.c: Likewise.
39881         * lib/tmpfile.c: Likewise.
39882         * lib/trigl.c: Likewise.
39883         * lib/trigl.h: Likewise.
39884         * lib/trim.c: Likewise.
39885         * lib/trim.h: Likewise.
39886         * lib/trunc.c: Likewise.
39887         * lib/truncf.c: Likewise.
39888         * lib/truncl.c: Likewise.
39889         * lib/tsearch.c: Likewise.
39890         * lib/unicodeio.c: Likewise.
39891         * lib/unicodeio.h: Likewise.
39892         * lib/unistd--.h: Likewise.
39893         * lib/unistd-safer.h: Likewise.
39894         * lib/unistdio/ulc-fprintf.c: Likewise.
39895         * lib/unistdio/ulc-vfprintf.c: Likewise.
39896         * lib/unlinkdir.c: Likewise.
39897         * lib/unlinkdir.h: Likewise.
39898         * lib/unlocked-io.h: Likewise.
39899         * lib/unsetenv.c: Likewise.
39900         * lib/userspec.c: Likewise.
39901         * lib/utime.c: Likewise.
39902         * lib/utimecmp.c: Likewise.
39903         * lib/utimecmp.h: Likewise.
39904         * lib/utimens.c: Likewise.
39905         * lib/verify.h: Likewise.
39906         * lib/verror.c: Likewise.
39907         * lib/verror.h: Likewise.
39908         * lib/version-etc-fsf.c: Likewise.
39909         * lib/version-etc.c: Likewise.
39910         * lib/version-etc.h: Likewise.
39911         * lib/vfprintf.c: Likewise.
39912         * lib/vprintf.c: Likewise.
39913         * lib/vsprintf.c: Likewise.
39914         * lib/w32spawn.h: Likewise.
39915         * lib/wait-process.c: Likewise.
39916         * lib/wait-process.h: Likewise.
39917         * lib/wcwidth.c: Likewise.
39918         * lib/write-any-file.c: Likewise.
39919         * lib/xalloc-die.c: Likewise.
39920         * lib/xalloc.h: Likewise.
39921         * lib/xasprintf.c: Likewise.
39922         * lib/xgetcwd.c: Likewise.
39923         * lib/xgetcwd.h: Likewise.
39924         * lib/xgetdomainname.c: Likewise.
39925         * lib/xgetdomainname.h: Likewise.
39926         * lib/xgethostname.c: Likewise.
39927         * lib/xmalloc.c: Likewise.
39928         * lib/xmalloca.c: Likewise.
39929         * lib/xmalloca.h: Likewise.
39930         * lib/xmemcoll.c: Likewise.
39931         * lib/xnanosleep.c: Likewise.
39932         * lib/xreadlink.c: Likewise.
39933         * lib/xreadlink.h: Likewise.
39934         * lib/xsetenv.c: Likewise.
39935         * lib/xsetenv.h: Likewise.
39936         * lib/xstriconv.c: Likewise.
39937         * lib/xstriconv.h: Likewise.
39938         * lib/xstrndup.c: Likewise.
39939         * lib/xstrndup.h: Likewise.
39940         * lib/xstrtod.c: Likewise.
39941         * lib/xstrtod.h: Likewise.
39942         * lib/xstrtol-error.c: Likewise.
39943         * lib/xstrtol.c: Likewise.
39944         * lib/xstrtol.h: Likewise.
39945         * lib/xtime.h: Likewise.
39946         * lib/xvasprintf.c: Likewise.
39947         * lib/xvasprintf.h: Likewise.
39948         * lib/yesno.c: Likewise.
39949         * lib/yesno.h: Likewise.
39950         * posix-modules: Likewise.
39951         * tests/test-alloca-opt.c: Likewise.
39952         * tests/test-arcfour.c: Likewise.
39953         * tests/test-arctwo.c: Likewise.
39954         * tests/test-argmatch.c: Likewise.
39955         * tests/test-argp-2.sh: Likewise.
39956         * tests/test-argp.c: Likewise.
39957         * tests/test-arpa_inet.c: Likewise.
39958         * tests/test-array_list.c: Likewise.
39959         * tests/test-array_oset.c: Likewise.
39960         * tests/test-atexit.c: Likewise.
39961         * tests/test-avltree_list.c: Likewise.
39962         * tests/test-avltree_oset.c: Likewise.
39963         * tests/test-avltreehash_list.c: Likewise.
39964         * tests/test-base64.c: Likewise.
39965         * tests/test-binary-io.c: Likewise.
39966         * tests/test-byteswap.c: Likewise.
39967         * tests/test-c-ctype.c: Likewise.
39968         * tests/test-c-strcasecmp.c: Likewise.
39969         * tests/test-c-strcasestr.c: Likewise.
39970         * tests/test-c-strncasecmp.c: Likewise.
39971         * tests/test-c-strstr.c: Likewise.
39972         * tests/test-canonicalize-lgpl.c: Likewise.
39973         * tests/test-canonicalize.c: Likewise.
39974         * tests/test-carray_list.c: Likewise.
39975         * tests/test-ceilf.c: Likewise.
39976         * tests/test-ceill.c: Likewise.
39977         * tests/test-count-one-bits.c: Likewise.
39978         * tests/test-crc.c: Likewise.
39979         * tests/test-dirname.c: Likewise.
39980         * tests/test-fbufmode.c: Likewise.
39981         * tests/test-fcntl.c: Likewise.
39982         * tests/test-fflush.c: Likewise.
39983         * tests/test-floorf.c: Likewise.
39984         * tests/test-floorl.c: Likewise.
39985         * tests/test-fopen.c: Likewise.
39986         * tests/test-fprintf-posix.c: Likewise.
39987         * tests/test-fprintf-posix.h: Likewise.
39988         * tests/test-fpurge.c: Likewise.
39989         * tests/test-freadable.c: Likewise.
39990         * tests/test-freadahead.c: Likewise.
39991         * tests/test-freading.c: Likewise.
39992         * tests/test-freopen.c: Likewise.
39993         * tests/test-frexp.c: Likewise.
39994         * tests/test-frexpl.c: Likewise.
39995         * tests/test-fseek.c: Likewise.
39996         * tests/test-fseeko.c: Likewise.
39997         * tests/test-fseterr.c: Likewise.
39998         * tests/test-fstrcmp.c: Likewise.
39999         * tests/test-ftell.c: Likewise.
40000         * tests/test-ftello.c: Likewise.
40001         * tests/test-fwritable.c: Likewise.
40002         * tests/test-fwriting.c: Likewise.
40003         * tests/test-getaddrinfo.c: Likewise.
40004         * tests/test-getpass.c: Likewise.
40005         * tests/test-gettimeofday.c: Likewise.
40006         * tests/test-hmac-md5.c: Likewise.
40007         * tests/test-hmac-sha1.c: Likewise.
40008         * tests/test-iconv.c: Likewise.
40009         * tests/test-iconvme.c: Likewise.
40010         * tests/test-inttypes.c: Likewise.
40011         * tests/test-isnan.c: Likewise.
40012         * tests/test-isnanf.c: Likewise.
40013         * tests/test-isnanl-nolibm.c: Likewise.
40014         * tests/test-isnanl.c: Likewise.
40015         * tests/test-isnanl.h: Likewise.
40016         * tests/test-ldexpl.c: Likewise.
40017         * tests/test-linked_list.c: Likewise.
40018         * tests/test-linkedhash_list.c: Likewise.
40019         * tests/test-locale.c: Likewise.
40020         * tests/test-localename.c: Likewise.
40021         * tests/test-lock.c: Likewise.
40022         * tests/test-lseek.c: Likewise.
40023         * tests/test-malloca.c: Likewise.
40024         * tests/test-math.c: Likewise.
40025         * tests/test-mbscasecmp.c: Likewise.
40026         * tests/test-mbscasestr1.c: Likewise.
40027         * tests/test-mbscasestr2.c: Likewise.
40028         * tests/test-mbscasestr3.c: Likewise.
40029         * tests/test-mbscasestr4.c: Likewise.
40030         * tests/test-mbschr.c: Likewise.
40031         * tests/test-mbscspn.c: Likewise.
40032         * tests/test-mbsncasecmp.c: Likewise.
40033         * tests/test-mbspbrk.c: Likewise.
40034         * tests/test-mbspcasecmp.c: Likewise.
40035         * tests/test-mbsrchr.c: Likewise.
40036         * tests/test-mbsspn.c: Likewise.
40037         * tests/test-mbsstr1.c: Likewise.
40038         * tests/test-mbsstr2.c: Likewise.
40039         * tests/test-mbsstr3.c: Likewise.
40040         * tests/test-md5.c: Likewise.
40041         * tests/test-memmem.c: Likewise.
40042         * tests/test-netinet_in.c: Likewise.
40043         * tests/test-open.c: Likewise.
40044         * tests/test-printf-frexp.c: Likewise.
40045         * tests/test-printf-frexpl.c: Likewise.
40046         * tests/test-printf-posix.c: Likewise.
40047         * tests/test-printf-posix.h: Likewise.
40048         * tests/test-rbtree_list.c: Likewise.
40049         * tests/test-rbtree_oset.c: Likewise.
40050         * tests/test-rbtreehash_list.c: Likewise.
40051         * tests/test-read-file.c: Likewise.
40052         * tests/test-rijndael.c: Likewise.
40053         * tests/test-search.c: Likewise.
40054         * tests/test-signbit.c: Likewise.
40055         * tests/test-sleep.c: Likewise.
40056         * tests/test-snprintf-posix.c: Likewise.
40057         * tests/test-snprintf-posix.h: Likewise.
40058         * tests/test-snprintf.c: Likewise.
40059         * tests/test-sprintf-posix.c: Likewise.
40060         * tests/test-sprintf-posix.h: Likewise.
40061         * tests/test-stat-time.c: Likewise.
40062         * tests/test-stdbool.c: Likewise.
40063         * tests/test-stdint.c: Likewise.
40064         * tests/test-stdio.c: Likewise.
40065         * tests/test-stdlib.c: Likewise.
40066         * tests/test-stpncpy.c: Likewise.
40067         * tests/test-strcasestr.c: Likewise.
40068         * tests/test-striconv.c: Likewise.
40069         * tests/test-striconveh.c: Likewise.
40070         * tests/test-striconveha.c: Likewise.
40071         * tests/test-string.c: Likewise.
40072         * tests/test-sys_select.c: Likewise.
40073         * tests/test-sys_socket.c: Likewise.
40074         * tests/test-sys_stat.c: Likewise.
40075         * tests/test-sys_time.c: Likewise.
40076         * tests/test-sysexits.c: Likewise.
40077         * tests/test-time.c: Likewise.
40078         * tests/test-tls.c: Likewise.
40079         * tests/test-trunc.c: Likewise.
40080         * tests/test-truncf.c: Likewise.
40081         * tests/test-truncl.c: Likewise.
40082         * tests/test-unistd.c: Likewise.
40083         * tests/test-vasnprintf-posix.c: Likewise.
40084         * tests/test-vasnprintf-posix2.c: Likewise.
40085         * tests/test-vasnprintf.c: Likewise.
40086         * tests/test-vasprintf-posix.c: Likewise.
40087         * tests/test-vasprintf.c: Likewise.
40088         * tests/test-verify.c: Likewise.
40089         * tests/test-vfprintf-posix.c: Likewise.
40090         * tests/test-vprintf-posix.c: Likewise.
40091         * tests/test-vsnprintf-posix.c: Likewise.
40092         * tests/test-vsnprintf.c: Likewise.
40093         * tests/test-vsprintf-posix.c: Likewise.
40094         * tests/test-wchar.c: Likewise.
40095         * tests/test-wctype.c: Likewise.
40096         * tests/test-wcwidth.c: Likewise.
40097         * tests/test-xstrtol.c: Likewise.
40098         * tests/test-xvasprintf.c: Likewise.
40099         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40100         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40101         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40102         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40103         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40104         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40105         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40106         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40107         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40108         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40109         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40110         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40111         * tests/uniname/test-uninames.c: Likewise.
40112         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40113         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
40114         * tests/unistdio/test-u16-printf1.h: Likewise.
40115         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40116         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40117         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40118         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40119         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40120         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40121         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40122         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
40123         * tests/unistdio/test-u32-printf1.h: Likewise.
40124         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40125         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40126         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40127         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40128         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40129         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40130         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40131         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
40132         * tests/unistdio/test-u8-printf1.h: Likewise.
40133         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40134         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40135         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40136         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40137         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40138         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40139         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40140         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
40141         * tests/unistdio/test-ulc-printf1.h: Likewise.
40142         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40143         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40144         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40145         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40146         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40147         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40148         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40149         * tests/uniwidth/test-u16-width.c: Likewise.
40150         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40151         * tests/uniwidth/test-u32-width.c: Likewise.
40152         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40153         * tests/uniwidth/test-u8-width.c: Likewise.
40154         * tests/uniwidth/test-uc_width.c: Likewise.
40155         * config/srclist-update: Likewise.
40156         (fixlicense): Update to GPLv3+.
40157
40158         Change copyright notice from LGPLv2.1+ to LGPLv3+.
40159         * tests/test-tsearch.c: Change copyright notice.
40160
40161         Change copyright notice from LGPLv2.0+ to LGPLv3+.
40162         * lib/c-strcaseeq.h: Change copyright notice.
40163         * lib/streq.h: Likewise.
40164         * lib/uniconv.h: Likewise.
40165         * lib/uniconv/u-conv-from-enc.h: Likewise.
40166         * lib/uniconv/u-conv-to-enc.h: Likewise.
40167         * lib/uniconv/u-strconv-from-enc.h: Likewise.
40168         * lib/uniconv/u-strconv-to-enc.h: Likewise.
40169         * lib/uniconv/u16-conv-from-enc.c: Likewise.
40170         * lib/uniconv/u16-conv-to-enc.c: Likewise.
40171         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
40172         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
40173         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
40174         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
40175         * lib/uniconv/u32-conv-from-enc.c: Likewise.
40176         * lib/uniconv/u32-conv-to-enc.c: Likewise.
40177         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
40178         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
40179         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
40180         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
40181         * lib/uniconv/u8-conv-from-enc.c: Likewise.
40182         * lib/uniconv/u8-conv-to-enc.c: Likewise.
40183         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
40184         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
40185         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
40186         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
40187         * lib/uniname.h: Likewise.
40188         * lib/uniname/uniname.c: Likewise.
40189         * lib/unistdio.h: Likewise.
40190         * lib/unistdio/u-asnprintf.h: Likewise.
40191         * lib/unistdio/u-asprintf.h: Likewise.
40192         * lib/unistdio/u-printf-args.c: Likewise.
40193         * lib/unistdio/u-printf-args.h: Likewise.
40194         * lib/unistdio/u-printf-parse.h: Likewise.
40195         * lib/unistdio/u-snprintf.h: Likewise.
40196         * lib/unistdio/u-sprintf.h: Likewise.
40197         * lib/unistdio/u-vasprintf.h: Likewise.
40198         * lib/unistdio/u-vsnprintf.h: Likewise.
40199         * lib/unistdio/u-vsprintf.h: Likewise.
40200         * lib/unistdio/u16-asnprintf.c: Likewise.
40201         * lib/unistdio/u16-asprintf.c: Likewise.
40202         * lib/unistdio/u16-printf-parse.c: Likewise.
40203         * lib/unistdio/u16-snprintf.c: Likewise.
40204         * lib/unistdio/u16-sprintf.c: Likewise.
40205         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
40206         * lib/unistdio/u16-u16-asprintf.c: Likewise.
40207         * lib/unistdio/u16-u16-snprintf.c: Likewise.
40208         * lib/unistdio/u16-u16-sprintf.c: Likewise.
40209         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
40210         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
40211         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
40212         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
40213         * lib/unistdio/u16-vasnprintf.c: Likewise.
40214         * lib/unistdio/u16-vasprintf.c: Likewise.
40215         * lib/unistdio/u16-vsnprintf.c: Likewise.
40216         * lib/unistdio/u16-vsprintf.c: Likewise.
40217         * lib/unistdio/u32-asnprintf.c: Likewise.
40218         * lib/unistdio/u32-asprintf.c: Likewise.
40219         * lib/unistdio/u32-printf-parse.c: Likewise.
40220         * lib/unistdio/u32-snprintf.c: Likewise.
40221         * lib/unistdio/u32-sprintf.c: Likewise.
40222         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
40223         * lib/unistdio/u32-u32-asprintf.c: Likewise.
40224         * lib/unistdio/u32-u32-snprintf.c: Likewise.
40225         * lib/unistdio/u32-u32-sprintf.c: Likewise.
40226         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
40227         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
40228         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
40229         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
40230         * lib/unistdio/u32-vasnprintf.c: Likewise.
40231         * lib/unistdio/u32-vasprintf.c: Likewise.
40232         * lib/unistdio/u32-vsnprintf.c: Likewise.
40233         * lib/unistdio/u32-vsprintf.c: Likewise.
40234         * lib/unistdio/u8-asnprintf.c: Likewise.
40235         * lib/unistdio/u8-asprintf.c: Likewise.
40236         * lib/unistdio/u8-printf-parse.c: Likewise.
40237         * lib/unistdio/u8-snprintf.c: Likewise.
40238         * lib/unistdio/u8-sprintf.c: Likewise.
40239         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
40240         * lib/unistdio/u8-u8-asprintf.c: Likewise.
40241         * lib/unistdio/u8-u8-snprintf.c: Likewise.
40242         * lib/unistdio/u8-u8-sprintf.c: Likewise.
40243         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
40244         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
40245         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
40246         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
40247         * lib/unistdio/u8-vasnprintf.c: Likewise.
40248         * lib/unistdio/u8-vasprintf.c: Likewise.
40249         * lib/unistdio/u8-vsnprintf.c: Likewise.
40250         * lib/unistdio/u8-vsprintf.c: Likewise.
40251         * lib/unistdio/ulc-asnprintf.c: Likewise.
40252         * lib/unistdio/ulc-asprintf.c: Likewise.
40253         * lib/unistdio/ulc-printf-parse.c: Likewise.
40254         * lib/unistdio/ulc-snprintf.c: Likewise.
40255         * lib/unistdio/ulc-sprintf.c: Likewise.
40256         * lib/unistdio/ulc-vasnprintf.c: Likewise.
40257         * lib/unistdio/ulc-vasprintf.c: Likewise.
40258         * lib/unistdio/ulc-vsnprintf.c: Likewise.
40259         * lib/unistdio/ulc-vsprintf.c: Likewise.
40260         * lib/unistr.h: Likewise.
40261         * lib/unistr/u-cpy-alloc.h: Likewise.
40262         * lib/unistr/u-cpy.h: Likewise.
40263         * lib/unistr/u-endswith.h: Likewise.
40264         * lib/unistr/u-move.h: Likewise.
40265         * lib/unistr/u-set.h: Likewise.
40266         * lib/unistr/u-startswith.h: Likewise.
40267         * lib/unistr/u-stpcpy.h: Likewise.
40268         * lib/unistr/u-stpncpy.h: Likewise.
40269         * lib/unistr/u-strcat.h: Likewise.
40270         * lib/unistr/u-strcpy.h: Likewise.
40271         * lib/unistr/u-strcspn.h: Likewise.
40272         * lib/unistr/u-strdup.h: Likewise.
40273         * lib/unistr/u-strlen.h: Likewise.
40274         * lib/unistr/u-strncat.h: Likewise.
40275         * lib/unistr/u-strncpy.h: Likewise.
40276         * lib/unistr/u-strnlen.h: Likewise.
40277         * lib/unistr/u-strpbrk.h: Likewise.
40278         * lib/unistr/u-strspn.h: Likewise.
40279         * lib/unistr/u-strstr.h: Likewise.
40280         * lib/unistr/u-strtok.h: Likewise.
40281         * lib/unistr/u16-check.c: Likewise.
40282         * lib/unistr/u16-chr.c: Likewise.
40283         * lib/unistr/u16-cmp.c: Likewise.
40284         * lib/unistr/u16-cpy-alloc.c: Likewise.
40285         * lib/unistr/u16-cpy.c: Likewise.
40286         * lib/unistr/u16-endswith.c: Likewise.
40287         * lib/unistr/u16-mblen.c: Likewise.
40288         * lib/unistr/u16-mbsnlen.c: Likewise.
40289         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40290         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40291         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40292         * lib/unistr/u16-mbtouc.c: Likewise.
40293         * lib/unistr/u16-mbtoucr.c: Likewise.
40294         * lib/unistr/u16-move.c: Likewise.
40295         * lib/unistr/u16-next.c: Likewise.
40296         * lib/unistr/u16-prev.c: Likewise.
40297         * lib/unistr/u16-set.c: Likewise.
40298         * lib/unistr/u16-startswith.c: Likewise.
40299         * lib/unistr/u16-stpcpy.c: Likewise.
40300         * lib/unistr/u16-stpncpy.c: Likewise.
40301         * lib/unistr/u16-strcat.c: Likewise.
40302         * lib/unistr/u16-strchr.c: Likewise.
40303         * lib/unistr/u16-strcmp.c: Likewise.
40304         * lib/unistr/u16-strcpy.c: Likewise.
40305         * lib/unistr/u16-strcspn.c: Likewise.
40306         * lib/unistr/u16-strdup.c: Likewise.
40307         * lib/unistr/u16-strlen.c: Likewise.
40308         * lib/unistr/u16-strmblen.c: Likewise.
40309         * lib/unistr/u16-strmbtouc.c: Likewise.
40310         * lib/unistr/u16-strncat.c: Likewise.
40311         * lib/unistr/u16-strncmp.c: Likewise.
40312         * lib/unistr/u16-strncpy.c: Likewise.
40313         * lib/unistr/u16-strnlen.c: Likewise.
40314         * lib/unistr/u16-strpbrk.c: Likewise.
40315         * lib/unistr/u16-strrchr.c: Likewise.
40316         * lib/unistr/u16-strspn.c: Likewise.
40317         * lib/unistr/u16-strstr.c: Likewise.
40318         * lib/unistr/u16-strtok.c: Likewise.
40319         * lib/unistr/u16-to-u32.c: Likewise.
40320         * lib/unistr/u16-to-u8.c: Likewise.
40321         * lib/unistr/u16-uctomb-aux.c: Likewise.
40322         * lib/unistr/u16-uctomb.c: Likewise.
40323         * lib/unistr/u32-check.c: Likewise.
40324         * lib/unistr/u32-chr.c: Likewise.
40325         * lib/unistr/u32-cmp.c: Likewise.
40326         * lib/unistr/u32-cpy-alloc.c: Likewise.
40327         * lib/unistr/u32-cpy.c: Likewise.
40328         * lib/unistr/u32-endswith.c: Likewise.
40329         * lib/unistr/u32-mblen.c: Likewise.
40330         * lib/unistr/u32-mbsnlen.c: Likewise.
40331         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40332         * lib/unistr/u32-mbtouc.c: Likewise.
40333         * lib/unistr/u32-mbtoucr.c: Likewise.
40334         * lib/unistr/u32-move.c: Likewise.
40335         * lib/unistr/u32-next.c: Likewise.
40336         * lib/unistr/u32-prev.c: Likewise.
40337         * lib/unistr/u32-set.c: Likewise.
40338         * lib/unistr/u32-startswith.c: Likewise.
40339         * lib/unistr/u32-stpcpy.c: Likewise.
40340         * lib/unistr/u32-stpncpy.c: Likewise.
40341         * lib/unistr/u32-strcat.c: Likewise.
40342         * lib/unistr/u32-strchr.c: Likewise.
40343         * lib/unistr/u32-strcmp.c: Likewise.
40344         * lib/unistr/u32-strcpy.c: Likewise.
40345         * lib/unistr/u32-strcspn.c: Likewise.
40346         * lib/unistr/u32-strdup.c: Likewise.
40347         * lib/unistr/u32-strlen.c: Likewise.
40348         * lib/unistr/u32-strmblen.c: Likewise.
40349         * lib/unistr/u32-strmbtouc.c: Likewise.
40350         * lib/unistr/u32-strncat.c: Likewise.
40351         * lib/unistr/u32-strncmp.c: Likewise.
40352         * lib/unistr/u32-strncpy.c: Likewise.
40353         * lib/unistr/u32-strnlen.c: Likewise.
40354         * lib/unistr/u32-strpbrk.c: Likewise.
40355         * lib/unistr/u32-strrchr.c: Likewise.
40356         * lib/unistr/u32-strspn.c: Likewise.
40357         * lib/unistr/u32-strstr.c: Likewise.
40358         * lib/unistr/u32-strtok.c: Likewise.
40359         * lib/unistr/u32-to-u16.c: Likewise.
40360         * lib/unistr/u32-to-u8.c: Likewise.
40361         * lib/unistr/u32-uctomb.c: Likewise.
40362         * lib/unistr/u8-check.c: Likewise.
40363         * lib/unistr/u8-chr.c: Likewise.
40364         * lib/unistr/u8-cmp.c: Likewise.
40365         * lib/unistr/u8-cpy-alloc.c: Likewise.
40366         * lib/unistr/u8-cpy.c: Likewise.
40367         * lib/unistr/u8-endswith.c: Likewise.
40368         * lib/unistr/u8-mblen.c: Likewise.
40369         * lib/unistr/u8-mbsnlen.c: Likewise.
40370         * lib/unistr/u8-mbtouc-aux.c: Likewise.
40371         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40372         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40373         * lib/unistr/u8-mbtouc.c: Likewise.
40374         * lib/unistr/u8-mbtoucr.c: Likewise.
40375         * lib/unistr/u8-move.c: Likewise.
40376         * lib/unistr/u8-next.c: Likewise.
40377         * lib/unistr/u8-prev.c: Likewise.
40378         * lib/unistr/u8-set.c: Likewise.
40379         * lib/unistr/u8-startswith.c: Likewise.
40380         * lib/unistr/u8-stpcpy.c: Likewise.
40381         * lib/unistr/u8-stpncpy.c: Likewise.
40382         * lib/unistr/u8-strcat.c: Likewise.
40383         * lib/unistr/u8-strchr.c: Likewise.
40384         * lib/unistr/u8-strcmp.c: Likewise.
40385         * lib/unistr/u8-strcpy.c: Likewise.
40386         * lib/unistr/u8-strcspn.c: Likewise.
40387         * lib/unistr/u8-strdup.c: Likewise.
40388         * lib/unistr/u8-strlen.c: Likewise.
40389         * lib/unistr/u8-strmblen.c: Likewise.
40390         * lib/unistr/u8-strmbtouc.c: Likewise.
40391         * lib/unistr/u8-strncat.c: Likewise.
40392         * lib/unistr/u8-strncmp.c: Likewise.
40393         * lib/unistr/u8-strncpy.c: Likewise.
40394         * lib/unistr/u8-strnlen.c: Likewise.
40395         * lib/unistr/u8-strpbrk.c: Likewise.
40396         * lib/unistr/u8-strrchr.c: Likewise.
40397         * lib/unistr/u8-strspn.c: Likewise.
40398         * lib/unistr/u8-strstr.c: Likewise.
40399         * lib/unistr/u8-strtok.c: Likewise.
40400         * lib/unistr/u8-to-u16.c: Likewise.
40401         * lib/unistr/u8-to-u32.c: Likewise.
40402         * lib/unistr/u8-uctomb-aux.c: Likewise.
40403         * lib/unistr/u8-uctomb.c: Likewise.
40404         * lib/unitypes.h: Likewise.
40405         * lib/uniwidth.h: Likewise.
40406         * lib/uniwidth/cjk.h: Likewise.
40407         * lib/uniwidth/u16-strwidth.c: Likewise.
40408         * lib/uniwidth/u16-width.c: Likewise.
40409         * lib/uniwidth/u32-strwidth.c: Likewise.
40410         * lib/uniwidth/u32-width.c: Likewise.
40411         * lib/uniwidth/u8-strwidth.c: Likewise.
40412         * lib/uniwidth/u8-width.c: Likewise.
40413         * lib/uniwidth/width.c: Likewise.
40414
40415 2007-10-07  Bruno Haible  <bruno@clisp.org>
40416
40417         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
40418         The file is still under LGPL (see modules/inttypes).
40419
40420 2007-10-06  Bruno Haible  <bruno@clisp.org>
40421
40422         * modules/trunc (Dependencies): Add 'extensions'.
40423         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
40424         Reported by Ben Pfaff <blp@gnu.org>.
40425
40426 2007-10-06  Bruno Haible  <bruno@clisp.org>
40427
40428         * modules/freopen-tests: New file.
40429         * tests/test-freopen.c: New file.
40430
40431         * modules/fopen-tests: New file.
40432         * tests/test-fopen.c: New file.
40433
40434         * modules/fopen: New file.
40435         * lib/fopen.c: New file.
40436         * m4/fopen.m4: New file.
40437         * modules/freopen: New file.
40438         * lib/freopen.c: New file.
40439         * m4/freopen.m4: New file.
40440         * lib/stdio.in.h (fopen, freopen): New declarations.
40441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
40442         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40443         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
40444         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40445         * doc/functions/fopen.texi: Mention the 'fopen' module.
40446         * doc/functions/freopen.texi: Mention the 'freopen' module.
40447
40448 2007-10-06  Bruno Haible  <bruno@clisp.org>
40449
40450         * modules/open-tests: New file.
40451         * tests/test-open.c: New file.
40452
40453         * modules/open: New file.
40454         * lib/open.c: New file.
40455         * m4/open.m4: New file.
40456         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
40457         lib/open.c does.
40458         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
40459         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
40460         macros.
40461         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
40462         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
40463         REPLACE_OPEN.
40464         * doc/functions/open.texi: Mention the 'open' module.
40465
40466 2007-10-04  Bruno Haible  <bruno@clisp.org>
40467
40468         * modules/ceill-tests: New file.
40469         * tests/test-ceill.c: New file.
40470
40471         * modules/ceill: New file.
40472         * lib/ceill.c: Replace entire file.
40473         * m4/ceill.m4: New file.
40474         * lib/math.in.h (ceill): Replace declaration.
40475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
40476         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
40477         * doc/functions/ceill.texi: Mention the 'ceill' module.
40478         * modules/mathl (Files): Remove lib/ceill.c.
40479         (Depends-on): Add ceill.
40480
40481 2007-10-04  Bruno Haible  <bruno@clisp.org>
40482
40483         * modules/ceilf-tests: New file.
40484         * tests/test-ceilf.c: New file.
40485
40486         * modules/ceilf: New file.
40487         * lib/ceil.c: New file.
40488         * lib/ceilf.c: New file.
40489         * m4/ceilf.m4: New file.
40490         * lib/math.in.h (ceilf): New declaration.
40491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
40492         HAVE_DECL_CEILF.
40493         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
40494         HAVE_DECL_CEILF.
40495         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
40496
40497 2007-10-04  Bruno Haible  <bruno@clisp.org>
40498
40499         * modules/floorl-tests: New file.
40500         * tests/test-floorl.c: New file.
40501
40502         * modules/floorl: New file.
40503         * lib/floorl.c: Replace entire file.
40504         * m4/floorl.m4: New file.
40505         * lib/math.in.h (floorl): Replace declaration.
40506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
40507         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
40508         * doc/functions/floorl.texi: Mention the 'floorl' module.
40509         * modules/mathl (Files): Remove lib/floorl.c.
40510         (Depends-on): Add floorl.
40511
40512 2007-10-04  Bruno Haible  <bruno@clisp.org>
40513
40514         * modules/floorf-tests: New file.
40515         * tests/test-floorf.c: New file.
40516
40517         * modules/floorf: New file.
40518         * lib/floor.c: New file.
40519         * lib/floorf.c: New file.
40520         * m4/floorf.m4: New file.
40521         * lib/math.in.h (floorf): New declaration.
40522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
40523         HAVE_DECL_FLOORF.
40524         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
40525         HAVE_DECL_FLOORF.
40526         * doc/functions/floorf.texi: Mention the 'floorf' module.
40527
40528 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
40529             Bruno Haible  <bruno@clisp.org>
40530
40531         Advertise for the Git server instead of the CVS server.
40532         * doc/gnulib-intro.texi (Steady Development): Mention the Git
40533         repository instead of the CVS one.
40534         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
40535         about all VCS systems generically.
40536         * doc/gnulib.texi (Introduction): Capitalize `Git'.
40537
40538 2007-10-04  Bruno Haible  <bruno@clisp.org>
40539
40540         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
40541         means.
40542         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
40543
40544 2007-10-04  Bruno Haible  <bruno@clisp.org>
40545
40546         * modules/truncl-tests: New file.
40547         * tests/test-truncl.c: New file.
40548
40549         * modules/truncl: New file.
40550         * lib/truncl.c: New file.
40551         * m4/truncl.m4: New file.
40552         * lib/math.in.h (truncl): New declaration.
40553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
40554         HAVE_DECL_TRUNCL.
40555         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
40556         HAVE_DECL_TRUNCL.
40557         * doc/functions/truncl.texi: Mention the 'truncl' module.
40558
40559 2007-10-04  Bruno Haible  <bruno@clisp.org>
40560
40561         * modules/truncf-tests: New file.
40562         * tests/test-truncf.c: New file.
40563
40564         * modules/truncf: New file.
40565         * lib/trunc.c: Make paramerizable through USE_* macros.
40566         * lib/truncf.c: New file.
40567         * m4/truncf.m4: New file.
40568         * lib/math.in.h (truncf): New declaration.
40569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
40570         HAVE_DECL_TRUNCF.
40571         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
40572         HAVE_DECL_TRUNCF.
40573         * doc/functions/truncf.texi: Mention the 'truncf' module.
40574
40575 2007-10-03  Bruno Haible  <bruno@clisp.org>
40576
40577         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40578         augmentation also for tests modules.
40579         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
40580         * modules/atexit-tests (Makefile.am): Likewise.
40581         * modules/binary-io-tests (Makefile.am): Likewise.
40582         * modules/c-strcase-tests (Makefile.am): Likewise.
40583         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
40584         * modules/canonicalize-tests (Makefile.am): Likewise.
40585         * modules/closein-tests (Makefile.am): Likewise.
40586         * modules/fprintf-posix-tests (Makefile.am): Likewise.
40587         * modules/freadahead-tests (Makefile.am): Likewise.
40588         * modules/fseek-tests (Makefile.am): Likewise.
40589         * modules/fseeko-tests (Makefile.am): Likewise.
40590         * modules/ftell-tests (Makefile.am): Likewise.
40591         * modules/ftello-tests (Makefile.am): Likewise.
40592         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
40593         * modules/isnanl-tests (Makefile.am): Likewise.
40594         * modules/lseek-tests (Makefile.am): Likewise.
40595         * modules/mbscasecmp-tests (Makefile.am): Likewise.
40596         * modules/mbscasestr-tests (Makefile.am): Likewise.
40597         * modules/mbschr-tests (Makefile.am): Likewise.
40598         * modules/mbscspn-tests (Makefile.am): Likewise.
40599         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
40600         * modules/mbspbrk-tests (Makefile.am): Likewise.
40601         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
40602         * modules/mbsrchr-tests (Makefile.am): Likewise.
40603         * modules/mbsspn-tests (Makefile.am): Likewise.
40604         * modules/mbsstr-tests (Makefile.am): Likewise.
40605         * modules/printf-posix-tests (Makefile.am): Likewise.
40606         * modules/snprintf-posix-tests (Makefile.am): Likewise.
40607         * modules/sprintf-posix-tests (Makefile.am): Likewise.
40608         * modules/tsearch-tests (Makefile.am): Likewise.
40609         * modules/uniname/uniname-tests (Makefile.am): Likewise.
40610         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
40611         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
40612         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
40613         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
40614         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
40615         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
40616         * modules/vprintf-posix-tests (Makefile.am): Likewise.
40617         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
40618         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
40619         * modules/xstrtoimax-tests (Makefile.am): Likewise.
40620         * modules/xstrtol-tests (Makefile.am): Likewise.
40621         * modules/xstrtoumax-tests (Makefile.am): Likewise.
40622         * modules/yesno-tests (Makefile.am): Likewise.
40623
40624 2007-10-03  Bruno Haible  <bruno@clisp.org>
40625
40626         * modules/trunc-tests: New file.
40627         * tests/test-trunc.c: New file.
40628
40629         * modules/trunc: New file.
40630         * lib/trunc.c: New file.
40631         * m4/trunc.m4: New file.
40632         * lib/math.in.h (trunc): New declaration.
40633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
40634         HAVE_DECL_TRUNC.
40635         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
40636         HAVE_DECL_TRUNC.
40637         * doc/functions/trunc.texi: Mention the 'trunc' module.
40638
40639 2007-10-03  Bruno Haible  <bruno@clisp.org>
40640
40641         * tests/test-fpending.c: New file, mostly copied
40642         from coreutils/lib/t-fpending.c.
40643         * modules/fpending-tests: New file.
40644
40645 2007-10-03  Bruno Haible  <bruno@clisp.org>
40646
40647         Port the stdio extensions to QNX (untested).
40648         * lib/fseterr.c (fseterr): Add support for QNX.
40649         * lib/fbufmode.c (fbufmode): Likewise.
40650         * lib/freadable.c (freadable): Likewise.
40651         * lib/fwritable.c (fwritable): Likewise.
40652         * lib/freading.c (freading): Likewise.
40653         * lib/fwriting.c (fwriting): Likewise.
40654         * lib/freadahead.c (freadahed): Likewise.
40655         * lib/fpurge.c (fpurge): Likewise.
40656         * lib/fseeko.c (rpl_fseeko): Likewise.
40657
40658 2007-10-03  Bruno Haible  <bruno@clisp.org>
40659             Jim Meyering  <jim@meyering.net>
40660             Eric Blake  <ebb9@byu.net>
40661
40662         * doc/relocatable.texi: Use @command instead of @program.
40663
40664 2007-10-02  Jim Meyering  <jim@meyering.net>
40665
40666         Perform one more "_.h" -> ".in.h" substitution.
40667         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
40668         instead of unistd_.h here, too.
40669
40670 2007-10-01  Bruno Haible  <bruno@clisp.org>
40671
40672         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
40673         Needed for the alloca-opt module.
40674
40675 2007-09-30  Bruno Haible  <bruno@clisp.org>
40676
40677         * lib/alloca.in.h: Renamed from lib/alloca_.h.
40678         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
40679         alloca_.h.
40680         * lib/argz.in.h: Renamed from lib/argz_.h.
40681         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
40682         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
40683         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
40684         byteswap_.h.
40685         * lib/dirent.in.h: Renamed from lib/dirent_.h.
40686         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
40687         dirent_.h.
40688         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
40689         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
40690         fcntl_.h.
40691         * lib/float.in.h: Renamed from lib/float_.h.
40692         * modules/float (Files, Makefile.am): Use float.in.h instead of
40693         float_.h.
40694         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
40695         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
40696         fnmatch_.h.
40697         * lib/getopt.in.h: Renamed from lib/getopt_.h.
40698         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
40699         getopt_.h.
40700         * lib/glob.in.h: Renamed from lib/glob_.h.
40701         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
40702         * lib/iconv.in.h: Renamed from lib/iconv_.h.
40703         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
40704         iconv_.h.
40705         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
40706         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
40707         inttypes_.h.
40708         * lib/locale.in.h: Renamed from lib/locale_.h.
40709         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
40710         locale_.h.
40711         * lib/math.in.h: Renamed from lib/math_.h.
40712         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
40713         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
40714         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
40715         of netinet_in_.h. Add dependency.
40716         * lib/poll.in.h: Renamed from lib/poll_.h.
40717         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
40718         * lib/search.in.h: Renamed from lib/search_.h.
40719         * modules/search (Files, Makefile.am): Use search.in.h instead of
40720         search_.h.
40721         * lib/signal.in.h: Renamed from lib/signal_.h.
40722         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
40723         _signal.h.
40724         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
40725         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
40726         stdbool_.h.
40727         * lib/stdint.in.h: Renamed from lib/stdint_.h.
40728         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
40729         stdint_.h.
40730         * lib/stdio.in.h: Renamed from lib/stdio_.h.
40731         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
40732         stdio_.h.
40733         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
40734         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
40735         stdlib_.h.
40736         * lib/string.in.h: Renamed from lib/string_.h.
40737         * modules/string (Files, Makefile.am): Use string.in.h instead of
40738         string_.h.
40739         * doc/gnulib-tool.texi (Initial import): Update.
40740         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
40741         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
40742         of sys_select_.h. Add dependency.
40743         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
40744         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
40745         of sys_socket_.h.
40746         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
40747         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
40748         sys_stat_.h.
40749         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
40750         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
40751         sys_time_.h.
40752         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
40753         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
40754         sysexits_.h.
40755         * lib/time.in.h: Renamed from lib/time_.h.
40756         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
40757         * lib/unistd.in.h: Renamed from lib/unistd_.h.
40758         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
40759         unistd_.h.
40760         * lib/wchar.in.h: Renamed from lib/wchar_.h.
40761         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
40762         wchar_.h.
40763         * lib/wctype.in.h: Renamed from lib/wctype_.h.
40764         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
40765         wctype_.h.
40766         * build-aux/bootstrap (slurp): Update.
40767         * lib/.cppi-disable: Update.
40768
40769 2007-09-30  Bruno Haible  <bruno@clisp.org>
40770
40771         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
40772         Needed on BeOS.
40773
40774 2007-09-30  Bruno Haible  <bruno@clisp.org>
40775
40776         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
40777
40778 2007-09-29  Bruno Haible  <bruno@clisp.org>
40779
40780         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
40781
40782 2007-09-29  Bruno Haible  <bruno@clisp.org>
40783
40784         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
40785         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
40786         * build-aux/install-reloc: Compile also areadlink.c.
40787         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
40788
40789 2007-09-29  Bruno Haible  <bruno@clisp.org>
40790
40791         * gnulib-tool (func_emit_initmacro_done): Indentation.
40792
40793 2007-09-29  Bruno Haible  <bruno@clisp.org>
40794
40795         * README: Add CVS checkout update instructions.
40796         Info from Bob Proulx <bob@proulx.com>.
40797
40798 2007-09-28  Eric Blake  <ebb9@byu.net>
40799
40800         Provide move-if-change.
40801         * build-aux/move-if-change: New file, based on best practice
40802         rather than any canonical upstream location.
40803
40804 2007-09-28  Jim Meyering  <jim@meyering.net>
40805
40806         Fix canonicalize loop-detection corner case.
40807         Do not attempt to stat the symlink values stored via seen_triple.
40808         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
40809         on linux-2.6.18, (but not 2.6.22).
40810         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
40811         triple_compare.  The former compares dev,ino,filename, while the latter
40812         would actually stat dirname(filename) when dev and ino were equal.
40813         * lib/hash-triple.c: Install <string.h>.
40814         (STREQ): Define.
40815         (triple_compare_ino_str): New function.
40816         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
40817
40818 2007-09-28  Eric Blake  <ebb9@byu.net>
40819
40820         Enforce that AC_REPLACE_FUNCS files exist.
40821         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
40822         override check for typos.
40823
40824         Fix test-closein on Solaris 10.
40825         * tests/test-closein.c (main): Don't assume stdin can be inherited
40826         closed on all systems.
40827         * tests/test-closein.sh: Likewise.
40828         Reported by Piotr Tarnowski.
40829
40830 2007-09-28  Jim Meyering  <jim@meyering.net>
40831
40832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
40833
40834 2007-09-27  Jim Meyering  <jim@meyering.net>
40835
40836         canonicalize: Avoid a false-positive cycle failure.
40837         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
40838         Sort.  Remove cycle-check.
40839         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
40840         not cycle-check.h.
40841         (seen_triple): New function.
40842         (canonicalize_filename_mode): Use it instead of cycle-check.
40843         * tests/test-canonicalize.c: Add a test for this bug.
40844         * tests/test-canonicalize.sh: Set up and run the test.
40845
40846         New module, file-set, from coreutils.
40847         * modules/file-set: Define it.
40848         * lib/file-set.c, lib/file-set.h: Implement.
40849
40850         New module, hash-triple, from coreutils.
40851         * modules/hash-triple: Define it.
40852         * lib/hash-triple.c, lib/hash-triple.h: Implement.
40853
40854 2007-09-25  Eric Blake  <ebb9@byu.net>
40855
40856         Fix strerror on Interix.
40857         * lib/string_.h (strerror): Declare replacement.
40858         * doc/functions/strerror.texi (strerror): Document the Interix
40859         shortcoming.
40860         * modules/string (Makefile.am): Support new hooks.
40861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
40862         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
40863         gl_FUNC_STRERROR_SEPARATE.
40864         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
40865         * lib/strerror.c (rpl_strerror): Provide replacement.
40866         * modules/strerror (Depends-on): Add string.
40867         (configure.ac): Detect use of module.
40868         * tests/test-strerror.c: New file.
40869         * modules/strerror-tests: New test module.
40870         * modules/argp (Depends-on): Add strerror.
40871         * modules/error (Depends-on): Likewise.
40872         Reported by Martin Koeppe.
40873
40874 2007-09-24  Bruno Haible  <bruno@clisp.org>
40875
40876         * README: Update git instructions.
40877
40878 2007-09-24  Eric Blake  <ebb9@byu.net>
40879
40880         Revert fpending breakage from 2007-09-08.
40881         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
40882         __fpending.c.
40883
40884 2007-09-24  Jim Meyering  <jim@meyering.net>
40885
40886         filenamecat.c: Add a test.
40887         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
40888         showing how the function works when DIR is the empty string.
40889
40890 2007-09-21  Simon Josefsson  <simon@josefsson.org>
40891
40892         * tests/test-canonicalize.sh: Turn on executable bit.
40893
40894 2007-09-19  Eric Blake  <ebb9@byu.net>
40895
40896         * README: Update CVS instructions.
40897
40898 2007-09-18  Bruno Haible  <bruno@clisp.org>
40899
40900         * modules/areadlink: New file.
40901         * lib/areadlink.h (areadlink): New declaration.
40902         * lib/areadlink.c: New file, based on lib/xreadlink.c.
40903
40904 2007-09-17  Jim Meyering  <jim@meyering.net>
40905
40906         * lib/savewd.c (ESTALE) [!defined]: Define.
40907         Reported to be required on Interix by Martin Koeppe.
40908
40909 2007-09-17  Bruno Haible  <bruno@clisp.org>
40910
40911         * gnulib-tool (func_version): Use $version.
40912
40913 2007-09-16  Bruno Haible  <bruno@clisp.org>
40914
40915         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
40916         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
40917         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
40918         Reported by Greg Schafer <gschafer@zip.com.au>.
40919
40920 2007-09-15  Bruno Haible  <bruno@clisp.org>
40921
40922         * gnulib-tool (sed): Try a little harder to make bash understand the
40923         alias.
40924         Reported by Bruce Korb <bruce.korb@gmail.com>.
40925
40926 2007-09-13  Eric Blake  <ebb9@byu.net>
40927
40928         * ChangeLog: Remove conflict markers.
40929
40930 2007-09-13  Simon Josefsson  <simon@josefsson.org>
40931
40932         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
40933         Reported by Bruno Haible <bruno@clisp.org>.
40934
40935 2007-09-12  Bruno Haible  <bruno@clisp.org>
40936
40937         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
40938         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
40939         is not defined.
40940
40941 2007-09-12  Eric Blake  <ebb9@byu.net>
40942
40943         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
40944         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
40945         Autoconf definition.
40946         * modules/euidaccess (Depends-on): Add extensions, for
40947         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
40948         * modules/fnmatch (Depends-on): Likewise.
40949         * modules/getaddrinfo (Depends-on): Likewise.
40950         * modules/getdelim (Depends-on): Likewise.
40951         * modules/getline (Depends-on): Likewise.
40952         * modules/getsubopt (Depends-on): Likewise.
40953         * modules/gettext (Depends-on): Likewise.
40954         * modules/group-member (Depends-on): Likewise.
40955         * modules/mbchar (Depends-on): Likewise.
40956         * modules/memmem (Depends-on): Likewise.
40957         * modules/mempcpy (Depends-on): Likewise.
40958         * modules/memrchr (Depends-on): Likewise.
40959         * modules/pagealign_alloc (Depends-on): Likewise.
40960         * modules/readutmp (Depends-on): Likewise.
40961         * modules/stpcpy (Depends-on): Likewise.
40962         * modules/stpncpy (Depends-on): Likewise.
40963         * modules/strchrnul (Depends-on): Likewise.
40964         * modules/strndup (Depends-on): Likewise.
40965         * modules/strsep (Depends-on): Likewise.
40966         * modules/strverscmp (Depends-on): Likewise.
40967         * modules/vasprintf (Depends-on): Likewise.
40968         * modules/wcwidth (Depends-on): Likewise.
40969         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
40970         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
40971         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
40972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
40973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40974         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40975         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
40976         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
40977         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
40978         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40979         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40980         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
40981         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
40982         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
40983         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
40984         * m4/readutmp.m4 (gl_READUTMP): Likewise.
40985         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40986         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
40987         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40988         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
40989         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40990         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
40991         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
40992         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
40993         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
40994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40995         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
40996         so that lock.m4 can be used in gettext without extensions module.
40997
40998 2007-09-11  Bruno Haible  <bruno@clisp.org>
40999
41000         * m4/isc-posix.m4: Remove file.
41001         Suggested by Eric Blake.
41002
41003 2007-09-11  Eric Blake  <ebb9@byu.net>
41004
41005         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41006
41007 2007-09-10  Bruno Haible  <bruno@clisp.org>
41008
41009         * posix-modules: Fix typo in error message.
41010         Reported by Matt <mkraai@beckman.com>.
41011
41012 2007-09-09  Bruno Haible  <bruno@clisp.org>
41013
41014         * doc/functions/getdelim.texi: Update list of platforms lacking the
41015         function.
41016         * doc/functions/getline.texi: Likewise.
41017
41018 2007-09-09  Jim Meyering  <jim@meyering.net>
41019
41020         * lib/hash.c (hash_initialize): Detect calloc failure.
41021         Reported by Bruno Haible.
41022
41023 2007-09-09  Bruno Haible  <bruno@clisp.org>
41024
41025         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41026         malloc or realloc fails.
41027
41028 2007-09-09  Bruno Haible  <bruno@clisp.org>
41029
41030         * modules/getcwd (Depends-on): Add malloc-posix.
41031         * modules/glob (Depends-on): Likewise.
41032         * modules/putenv (Depends-on): Likewise.
41033         * modules/strdup (Depends-on): Likewise.
41034         * modules/getdelim (Depends-on): Add realloc-posix.
41035         * modules/read-file (Depends-on): Likewise.
41036
41037 2007-09-09  Bruno Haible  <bruno@clisp.org>
41038
41039         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41040         (gl_FUNC_MALLOC_POSIX): Require it.
41041         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41042         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41043         * modules/realloc (Files): Add m4/malloc.m4.
41044         * modules/calloc (Files): Likewise.
41045
41046 2007-09-09  Bruno Haible  <bruno@clisp.org>
41047
41048         * modules/malloc-posix: New file.
41049         * modules/malloc (Depends-on): Add malloc-posix.
41050         * lib/malloc.c: Include errno.h.
41051         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
41052         and a POSIX-compatible malloc into a single function. Set ENOMEM
41053         when returning NULL.
41054         * m4/malloc.m4: New file.
41055         * doc/functions/malloc.texi: Mention the malloc-posix module.
41056         * lib/stdlib_.h (malloc): New declaration.
41057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41058         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
41059         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
41060         and HAVE_MALLOC_POSIX.
41061
41062 2007-09-09  Bruno Haible  <bruno@clisp.org>
41063
41064         * modules/realloc-posix: New file.
41065         * modules/realloc (Depends-on): Add realloc-posix.
41066         * lib/realloc.c: Include errno.h.
41067         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
41068         and a POSIX-compatible realloc into a single function. Set ENOMEM
41069         when returning NULL.
41070         * m4/realloc.m4: New file.
41071         * doc/functions/realloc.texi: Mention the realloc-posix module.
41072         * lib/stdlib_.h (realloc): New declaration.
41073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41074         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
41075         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
41076         and HAVE_REALLOC_POSIX.
41077
41078 2007-09-09  Bruno Haible  <bruno@clisp.org>
41079
41080         * modules/calloc-posix: New file.
41081         * modules/calloc (Depends-on): Add calloc-posix.
41082         * lib/calloc.c: Include errno.h.
41083         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
41084         and a POSIX-compatible calloc into a single function. Set ENOMEM
41085         when returning NULL.
41086         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
41087         * doc/functions/calloc.texi: Mention the calloc-posix module.
41088         * lib/stdlib_.h (calloc): New declaration.
41089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41090         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
41091         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
41092         and HAVE_CALLOC_POSIX.
41093
41094 2007-09-09  Bruno Haible  <bruno@clisp.org>
41095
41096         Allow for modules to show an arbitrary notice.
41097         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
41098         * gnulib-tool: New option --extract-notice.
41099         (func_usage): Document it.
41100         (sed_extract_prog): Update.
41101         (func_get_notice): New function.
41102         (func_modules_notice): New function.
41103         (func_import, func_create_testdir): Invoke it.
41104         Suggested by Jim Meyering.
41105
41106 2007-09-09  Bruno Haible  <bruno@clisp.org>
41107
41108         * gnulib-tool: New options --verbose, --quiet.
41109         (func_usage): Document them.
41110         (verbose): New variable.
41111         (func_execute_command): New function.
41112         (func_import): Don't show the module list and the file list if
41113         $verbose < 0.
41114         (func_create_testdir): Likewise. Use func_execute_command.
41115         (func_create_megatestdir): Use func_execute_command.
41116
41117 2007-09-08  Bruno Haible  <bruno@clisp.org>
41118
41119         * gnulib-tool (func_import): Prefer rsync over wget when available,
41120         for fetching the PO files.
41121
41122 2007-09-08  Bruno Haible  <bruno@clisp.org>
41123
41124         * posix-modules: New file. Portions copied from gnulib-tool.
41125         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
41126
41127 2007-09-08  Jim Meyering  <jim@meyering.net>
41128
41129         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
41130         * lib/fpending.h: Rename from __fpending.h.
41131         * lib/fpending.c: Rename from __fpending.c.
41132         Include "fpending.h", not "__fpending.h".
41133         * lib/__fpending.h, lib/__fpending.c: Remove files.
41134         * modules/fpending (Files): Reflect new file names.
41135         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
41136
41137 2007-09-08  Bruno Haible  <bruno@clisp.org>
41138
41139         * m4/inttypes-h.m4: Remove stub file.
41140
41141 2007-09-07  Simon Josefsson  <simon@josefsson.org>
41142
41143         * doc/headers/stdint.texi: Discuss #include_next issue.
41144
41145 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41146
41147         * build-aux/bootstrap: Remove obsolete comment about wget --help.
41148
41149 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41150
41151         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
41152         in variable name.
41153
41154 2007-09-03  Jim Meyering  <jim@meyering.net>
41155
41156         New module: git-version-gen.
41157         * modules/git-version-gen: New file.
41158
41159         Import changes from coreutils for bootstrap script.
41160
41161         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
41162
41163         bootstrap: uses rsync to download the .po files
41164         * build-aux/bootstrap (po_download_command_format): New global.
41165         (download_po_files): Use rsync.
41166         (update_po_files): Don't remove .po files after download,
41167         so future rsync runs can take advantage of the copies.
41168
41169         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
41170
41171         Solve the unnecessary-.po-file-regeneration problem once and for all.
41172         * build-aux/bootstrap (download_po_files): New function, renamed from
41173         get_translations.  Now, downloads, but doesn't update LINGUAS.
41174         (update_po_files): New function.
41175
41176         bootstrap: Ignore more.
41177         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
41178         uniwidth to e.g., lib/.gitignore.
41179         (slurp): Handle the sys_stat_.h -> sys mapping, too.
41180
41181         * build-aux/bootstrap: New setting: vc_ignore.
41182         (insert_sorted_if_absent): Create $file if absent.
41183         Adapt to new, possibly empty, list: $vc_ignore.
41184
41185         bootstrap: generate more ignorable names
41186         * build-aux/bootstrap (slurp): When generating ignorable names,
41187         also map .sin to .sed, .gperf to .c, and .y to .c.
41188
41189 2007-09-03  Jim Meyering  <jim@meyering.net>
41190
41191         * build-aux/git-version-gen: New file, from coreutils.  For details, see
41192         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
41193
41194 2007-09-02  Bruno Haible  <bruno@clisp.org>
41195
41196         Fix mis-recognition of 'mcs' on QNX 6.
41197         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
41198         output contains the string "Mono".
41199         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
41200         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
41201
41202 2007-09-01  Bruno Haible  <bruno@clisp.org>
41203
41204         Fix collision between uniwidth/* and linebreak modules.
41205         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
41206         u32_width): Remove declarations.
41207         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
41208         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
41209         streq3, streq2, streq1, streq0): Remove functions.
41210         (STREQ): Remove macro.
41211         (is_cjk_encoding): Remove function.
41212         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
41213         (uc_width, u8_width, u16_width, u32_width): Remove functions.
41214         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
41215         * NEWS: Document the change.
41216
41217 2007-09-01  Bruno Haible  <bruno@clisp.org>
41218
41219         * lib/streq.h: Add double-inclusion guard.
41220
41221 2007-09-01  Karl Berry  <karl@gnu.org>
41222
41223         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
41224
41225 2007-08-28  Jim Meyering  <jim@meyering.net>
41226
41227         Rename mreadlink_with_size to areadlink_with_size.
41228         * NEWS: Document the change.
41229         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
41230         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
41231         * lib/mreadlink.h: Rename this to...
41232         * lib/areadlink.h: ...this.
41233         * modules/mreadlink-with-size: Rename this to...
41234         * modules/areadlink-with-size: ...this.
41235         * lib/canonicalize.c: Reflect the renaming.
41236         * modules/canonicalize: Likewise.
41237
41238 2007-08-26  Bruno Haible  <bruno@clisp.org>
41239
41240         * gnulib-tool (func_import): When deciding which files to remove,
41241         consider also dangling symbolic links.
41242         Reported by Eric Blake.
41243
41244 2007-08-26  Bruno Haible  <bruno@clisp.org>
41245
41246         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
41247
41248 2007-08-23  Simon Josefsson  <simon@josefsson.org>
41249
41250         * lib/readline.c: Don't include getline.h, the prototype is now
41251         found in stdio.h.
41252
41253 2007-08-23  Jim Meyering  <jim@meyering.net>
41254
41255         Getdelim touchup.
41256         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
41257         around the funlockfile call, since funlockfile never sets errno.
41258         Don't set errno upon failed realloc.
41259
41260 2007-08-22  Eric Blake  <ebb9@byu.net>
41261
41262         Getline touchups.
41263         * lib/getdelim.c (getdelim): Revert regression that required *n to
41264         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
41265         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
41266         getdelim, rather than whether implementation is missing.
41267         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
41268         * lib/stdio_.h (getline): Also declare if replacement is
41269         required.
41270         * doc/functions/getdelim.texi: New file.
41271         * doc/functions/getline.texi: Likewise.
41272         * doc/gnulib.texi (Function Substitutes): Add new files.
41273         Reported by Bruno Haible.
41274
41275 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
41276
41277         * users.txt: Add Guile.
41278
41279 2007-08-22  Eric Blake  <ebb9@byu.net>
41280
41281         * tests/test-getdelim.c (main): Use remove, not unlink.
41282         * tests/test-getline.c (main): Likewise.
41283
41284         Move getline and getdelim into stdio.h, per POSIX 200x.
41285         * modules/getline (Files): Remove getline.h.
41286         (Depends-on): Add stdio.
41287         (configure.ac): Add module indicator.
41288         * modules/getdelim (Files): Remove getdelim.h.
41289         (Depends-on): Add stdio.
41290         (configure.ac): Add module indicator.
41291         * modules/stdio (Makefile.am): Work with new indicators.
41292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41293         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
41294         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41295         * lib/getdelim.h: Delete.
41296         * lib/getline.h: Delete.
41297         * lib/stdio_.h (getdelim, getline): Declare.
41298         * modules/getdelim-tests: New module.
41299         * modules/getline-tests: Likewise.
41300         * tests/test-getdelim.c: New file.
41301         * tests/test-getline.c: Likewise.
41302         * NEWS: Document the change.
41303         * lib/getline.c: Update choice of header.
41304         * lib/csharpcomp.c: Likewise.
41305         * lib/getpass.c: Likewise.
41306         * lib/javacomp.c: Likewise.
41307         * lib/javaversion.c: Likewise.
41308         * lib/yesno.c: Likewise.
41309         * lib/getdelim.c: Likewise.
41310         (getdelim): Set errno on failure, and avoid memory leak.
41311
41312 2007-08-19  Bruno Haible  <bruno@clisp.org>
41313
41314         * modules/closein (Depends-on): Add freadahead.
41315         * lib/closein.c: Include freadahead.h.
41316         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
41317         is zero.
41318
41319 2007-08-19  Bruno Haible  <bruno@clisp.org>
41320
41321         * modules/freadahead-tests: New file.
41322         * tests/test-freadahead.sh: New file.
41323         * tests/test-freadahead.c: New file.
41324
41325         * modules/freadahead: New file.
41326         * lib/freadahead.h: New file.
41327         * lib/freadahead.c: New file.
41328         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
41329         fbufmode, fpurge, freadable, fwritable.
41330
41331 2007-08-19  Eric Blake  <ebb9@byu.net>
41332
41333         Test yesno in combination with closein.
41334         * lib/yesno.c (yesno): Document use of stdin.
41335         * modules/yesno-tests (Files): New module.
41336         * tests/test-yesno.c (main): New file.
41337         * tests/test-yesno.sh: Likewise.
41338
41339 2007-08-19  Bruno Haible  <bruno@clisp.org>
41340
41341         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
41342         * lib/fseeko.c (rpl_fseeko): Likewise.
41343         * lib/fseterr.c (fseterr): Likewise.
41344
41345 2007-08-19  Bruno Haible  <bruno@clisp.org>
41346
41347         * tests/test-lseek.c (main): Disable a test for BeOS.
41348         * doc/functions/lseek.texi: Document the BeOS bug.
41349
41350 2007-08-19  Bruno Haible  <bruno@clisp.org>
41351             Eric Blake  <ebb9@byu.net>
41352
41353         * lib/lseek.c: Include <sys/stat.h>.
41354         (rpl_lseek): Add workaround code also for Unix platforms.
41355         Needed for BeOS.
41356         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
41357         * doc/functions/lseek.texi: Document BeOS definiency.
41358
41359 2007-08-18  Bruno Haible  <bruno@clisp.org>
41360
41361         * modules/fstrcmp-tests: New file.
41362         * tests/test-fstrcmp.c: New file.
41363
41364 2007-08-18  Bruno Haible  <bruno@clisp.org>
41365
41366         * modules/fstrcmp: New file, from GNU gettext with modifications.
41367         * lib/fstrcmp.h: New file, from GNU gettext.
41368         * lib/fstrcmp.c: New file, from GNU gettext.
41369         * MODULES.html.sh (String handling): Add fstrcmp.
41370
41371 2007-08-18  Bruno Haible  <bruno@clisp.org>
41372
41373         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
41374         'bool'.
41375         (diag, compareseq): Remove const from the ctxt argument.
41376         (USE_HEURISTIC): Undefine at the end.
41377
41378 2007-08-18  Jim Meyering  <jim@meyering.net>
41379
41380         New file: lib/idcache.h
41381         * NEWS: Mention the addition.
41382         * modules/idcache (Files): Add lib/idcache.h
41383         * lib/idcache.c: Include "idcache.h".
41384         Don't include <sys/types.h>.
41385         Add a FIXME comment.
41386         Move file-scoped "static" declarations to the top.
41387         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
41388
41389 2007-08-17  Bruno Haible  <bruno@clisp.org>
41390         and Paul Eggert  <eggert@cs.ucla.edu>
41391
41392         * MODULES.html.sh: Add diffseq.
41393         * modules/diffseq: New file.
41394         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
41395         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
41396
41397 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41398
41399         Import changes from coreutils for bootstrap script.
41400
41401         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
41402
41403         * build-aux/bootstrap (slurp): Work even in environments where
41404         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
41405         current code does not slurp files whose names start with ".", and
41406         this looks like it might be a troublesome area.
41407
41408         2007-07-11  Jim Meyering  <jim@meyering.net>
41409
41410         If there's a GPL vN copyright comment, require that N == 3.
41411
41412         2007-07-08  Jim Meyering  <jim@meyering.net>
41413
41414         Run the coreutils-specific code only if tests/Makefile.am.in exists.
41415         * build-aux/bootstrap (mam_template): Move definition out of loop.
41416
41417         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
41418
41419         * build-aux/bootstrap (symlink_to_dir): Rename function from
41420         symlink_to_gnulib.  Add a directory parameter.  Update all
41421         callers.
41422         (cp_mark_as_generated): Also check for -- and link to -- files in
41423         gl/.
41424
41425         2007-07-08  Jim Meyering  <jim@meyering.net>
41426
41427         Adapt to deeper hierarchy in gnulib.
41428         * build-aux/bootstrap (symlink_to_dir): If the destination
41429         directory doesn't exist, create it. This is required at least for
41430         "lib/uniwidth/cjk.h".
41431
41432         2007-05-15  Jim Meyering  <jim@meyering.net>
41433
41434         * build-aux/bootstrap: Now that generated Makefile.am files
41435         are no longer under version control, they must be created at
41436         bootstrap time.
41437
41438 2007-08-14  Ben Pfaff  <blp@gnu.org>
41439
41440         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
41441
41442 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41443
41444         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
41445         given the changes below.
41446         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
41447         even on hosts that have padding bits beyond the supported 64.
41448
41449 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41450
41451         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
41452         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
41453         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
41454         depends on it.
41455         (xstrtol_error): Remove.
41456         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
41457         but with a different signature.
41458         (ATTRIBUTE_NORETURN, __attribute__): New macros.
41459         * lib/xstrtol-error.c: Include exitfail.h.
41460         (xstrtol_fatal): New function, with a different signature from the
41461         old xstrtol_error, so that the caller need not worry about passing
41462         in an exit status, or about storage management of the option argument.
41463         (xstrtol_error): Now a static function.  Redo signature to
41464         implement xstrtol_fatal.  Output the correct number of hyphens in
41465         front of the option so that the caller need not worry about
41466         storage management.
41467         (N_): New macro.
41468         (_): Remove; not used now.
41469         * modules/xstrtol: Depend on getopt.
41470         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
41471         of old STRTOL_FATAL_ERROR macro.
41472         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
41473         of test program.
41474         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
41475         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
41476
41477 2007-08-08  Eric Blake  <ebb9@byu.net>
41478
41479         * lib/xstrtol-error.c: Add missing include.
41480
41481         Move xstrtol messages into gnulib domain, when --pobase is used.
41482         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
41483         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
41484         * modules/xstrtol (Files): Distribute new file.
41485         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
41486         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
41487         * tests/test-xstrtol.c: ...into new file.
41488         * tests/test-xstrtoul.c: Also test xstrtoul.
41489         * tests/test-xstrtoimax.c: Also test xstrtoimax.
41490         * tests/test-xstrtoumax.c: Also test xstrtoumax.
41491         * tests/test-xstrtol.sh: Drive the tests.
41492         * tests/test-xstrtoimax.sh: Likewise.
41493         * tests/test-xstrtoumax.sh: Likewise.
41494         * modules/xstrtol-tests: New module.
41495         * modules/xstrtoimax-tests: Likewise.
41496         * modules/xstrtoumax-tests: Likewise.
41497
41498 2007-08-08  Jim Meyering  <jim@meyering.net>
41499
41500         New function: mfile_name_concat.
41501         * lib/filenamecat.c (mfile_name_concat): New function, just like
41502         file_name_concat, but return NULL upon failure rather than exiting
41503         with a diagnostic.
41504         * lib/filenamecat.h: Declare it.
41505
41506 2007-08-07  Bruno Haible  <bruno@clisp.org>
41507
41508         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
41509         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
41510         warning from gcc.
41511         Reported by Eric Blake.
41512
41513 2007-08-07  Simon Josefsson  <simon@josefsson.org>
41514
41515         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
41516         * modules/crypto/arcfour (License): Likewise.
41517         * modules/crypto/des-tests (License): Likewise.
41518         * modules/crypto/gc-arctwo-tests (License): Likewise.
41519         * modules/crypto/gc-des-tests (License): Likewise.
41520         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
41521         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
41522         * modules/crypto/gc-md2-tests (License): Likewise.
41523         * modules/crypto/gc-md4-tests (License): Likewise.
41524         * modules/crypto/gc-md5-tests (License): Likewise.
41525         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
41526         * modules/crypto/gc-rijndael-tests (License): Likewise.
41527         * modules/crypto/gc-sha1-tests (License): Likewise.
41528         * modules/crypto/gc-tests (License): Likewise.
41529         * modules/crypto/hmac-md5 (License): Likewise.
41530         * modules/crypto/hmac-sha1 (License): Likewise.
41531         * modules/crypto/md2-tests (License): Likewise.
41532         * modules/crypto/md4-tests (License): Likewise.
41533         * modules/crypto/md5 (License): Likewise.
41534         * modules/crypto/rijndael (License): Likewise.
41535         * modules/crypto/sha1 (License): Likewise.
41536         * modules/memxor (License): Likewise.
41537
41538 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41539         and Bruno Haible  <bruno@clisp.org>
41540
41541         * NEWS: Describe interface changes to human, xstrtol.
41542         * lib/human.h: Include <xstrtol.h>.
41543         (human_options): Return enum strtol_error, not int.  Remove
41544         bool arg; take int * instead.
41545         * lib/human.c: Don't include "gettext.h".
41546         (_): Remove; no longer used.
41547         Don't include <xstrtol.h>, since human.h does it.
41548         (human_options): Adjust to abovementioned interface changes.
41549         Do not report error to stderr; that's now the caller's
41550         responsibility.
41551         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
41552         interface change.
41553         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
41554         Str, Argument_type_string.  All uses changed.  Put " argument"
41555         in diagnostics to make them clearer.  Change wording of suffix
41556         message for clarity.
41557         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
41558         Argument_type_string.
41559         (STRTOL_FATAL_WARN): Remove; no longer used.
41560         * modules/human (Depends-on): Remove gettext-h.
41561
41562 2007-08-06  Simon Josefsson  <simon@josefsson.org>
41563
41564         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
41565
41566 2007-07-31  Bruno Haible  <bruno@clisp.org>
41567
41568         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
41569         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
41570         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
41571
41572 2007-07-31  Bruno Haible  <bruno@clisp.org>
41573
41574         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
41575         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
41576
41577 2007-07-30  Bruno Haible  <bruno@clisp.org>
41578
41579         * modules/base64 (License): Use the synonymous term "LGPLv2+".
41580         * modules/c-ctype (License): Likewise.
41581         * modules/c-strcase (License): Likewise.
41582         * modules/check-version (License): Likewise.
41583         * modules/iconv (License): Likewise.
41584         * modules/iconv_open (License): Likewise.
41585         * modules/read-file (License): Likewise.
41586         * modules/striconv (License): Likewise.
41587         * modules/strverscmp (License): Likewise.
41588         * modules/vasprintf (License): Likewise.
41589         * modules/crypto/des (License): Likewise.
41590         * modules/crypto/gc (License): Likewise.
41591         * modules/crypto/gc-arcfour (License): Likewise.
41592         * modules/crypto/gc-arctwo (License): Likewise.
41593         * modules/crypto/gc-des (License): Likewise.
41594         * modules/crypto/gc-hmac-md5 (License): Likewise.
41595         * modules/crypto/gc-hmac-sha1 (License): Likewise.
41596         * modules/crypto/gc-md2 (License): Likewise.
41597         * modules/crypto/gc-md4 (License): Likewise.
41598         * modules/crypto/gc-md5 (License): Likewise.
41599         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
41600         * modules/crypto/gc-random (License): Likewise.
41601         * modules/crypto/gc-rijndael (License): Likewise.
41602         * modules/crypto/gc-sha1 (License): Likewise.
41603         * modules/crypto/md2 (License): Likewise.
41604         * modules/crypto/md4 (License): Likewise.
41605
41606 2007-07-30  Jim Meyering  <jim@meyering.net>
41607
41608         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
41609         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
41610         it has valid stat data.  This bug would cause du not to count the
41611         sizes of inaccessible directories.
41612         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
41613         in <http://bugzilla.redhat.com/250077>.
41614
41615 2007-07-25  Peter O'Gorman  <peter@pogma.com>
41616             Bruno Haible  <bruno@clisp.org>
41617
41618         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
41619         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
41620         #include_next, gives a diagnostic about it, but reports no error in
41621         the exit code.
41622         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41623
41624 2007-07-24  Ben Pfaff  <blp@gnu.org>
41625
41626         Improve name: "count-one-bits" is better than "popcount".
41627         * MODULES.html.sh: Update name.
41628         * lib/popcount.h: Renamed lib/count-one-bits.h.
41629         (popcount): Renamed count_one_bits.
41630         (popcountl): Renamed count_one_bits_l.
41631         (popcountll): Renamed count_one_bits_ll.
41632         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
41633         * modules/popcount: Renamed module/count-one-bits.
41634         * modules/popcount-tests: Renamed module/count-one-bits-tests.
41635         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
41636
41637 2007-07-23  Ben Pfaff  <blp@gnu.org>
41638
41639         * lib/popcount.h (popcount32): Reduce size of constants, to allow
41640         better code generation, and add U to large constants to avoid
41641         warnings, in non-GCC case.
41642         Suggested by Bruno Haible.
41643
41644 2007-07-23  Ben Pfaff  <blp@gnu.org>
41645
41646         * lib/popcount.h: Use verify_true instead of if...abort.
41647         * modules/popcount: Depend on verify module.
41648         Suggested by Jim Meyering.
41649
41650 2007-07-23  Bruno Haible  <bruno@clisp.org>
41651
41652         * gnulib-tool (func_import): Create a .cvsignore file also when the
41653         directory is not yet in CVS but the toplevel directory is. When
41654         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
41655         Reported by Karl Berry.
41656
41657 2007-07-22  Ben Pfaff  <blp@gnu.org>
41658
41659         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
41660         case.
41661         Suggested by Eric Blake.
41662
41663 2007-07-22  Ben Pfaff  <blp@gnu.org>
41664
41665         New module: popcount.
41666         * MODULES.html.sh: Add popcount.
41667         * modules/popcount: New file.
41668         * modules/popcount-tests: New file.
41669         * tests/test-popcount.c: New file.
41670         * lib/popcount.h: New file.
41671         * m4/popcount.m4: New file.
41672
41673 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41674
41675         * build-aux/announce-gen: Update to GPLv3.
41676
41677         * build-aux/config.guess: Update from config.
41678
41679 2007-07-21  Bruno Haible  <bruno@clisp.org>
41680
41681         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
41682         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
41683
41684 2007-07-20  Jim Meyering  <jim@meyering.net>
41685
41686         * check-module: Diagnose a self-dependency.
41687
41688 2007-07-19  Bruno Haible  <bruno@clisp.org>
41689
41690         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
41691         empty.
41692         Reported by Eric Blake.
41693
41694 2007-07-18  Bruno Haible  <bruno@clisp.org>
41695
41696         * gnulib-tool: New options --po-base, --po-domain.
41697         (func_usage): Document them.
41698         (pobase, po_domain): New variables.
41699         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
41700         DEFAULT_TEXT_DOMAIN.
41701         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
41702         (func_import): Consider pobase and po_domain. Create a po/ directory.
41703         (func_create_testdir): Set pobase and po_domain to empty.
41704         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
41705         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
41706
41707 2007-07-18  Bruno Haible  <bruno@clisp.org>
41708
41709         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41710         EXTRA_DIST augmentation for files in build-aux/.
41711
41712 2007-07-16  Bruno Haible  <bruno@clisp.org>
41713
41714         * modules/lseek (License): Use the synonymous term "LGPLv2+".
41715         * modules/getdelim (License): Likewise.
41716
41717 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41718
41719         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
41720         * modules/d-type (License): Likewise.
41721         * modules/extensions (License): Likewise.
41722         * modules/fnmatch (License): Likewise.
41723         * modules/fseeko (License): Likewise.
41724         * modules/getaddrinfo (License): Likewise.
41725         * modules/getline (License): Likewise.
41726         * modules/getlogin_r (License): Likewise.
41727         * modules/getpass (License): Likewise.
41728         * modules/gettimeofday (License): Likewise.
41729         * modules/glob (License): Likewise.
41730         * modules/inet_ntop (License): Likewise.
41731         * modules/malloc (License): Likewise.
41732         * modules/malloca (License): Likewise.
41733         * modules/memmem (License): Likewise.
41734         * modules/mempcpy (License): Likewise.
41735         * modules/memset (License): Likewise.
41736         * modules/minmax (License): Likewise.
41737         * modules/mktime (License): Likewise.
41738         * modules/netinet_in (License): Likewise.
41739         * modules/pathmax (License): Likewise.
41740         * modules/poll (License): Likewise.
41741         * modules/regex (License): Likewise.
41742         * modules/snprintf (License): Likewise.
41743         * modules/stdbool (License): Likewise.
41744         * modules/stdint (License): Likewise.
41745         * modules/stdio (License): Likewise.
41746         * modules/strcase (License): Likewise.
41747         * modules/strcasestr (License): Likewise.
41748         * modules/strdup (License): Likewise.
41749         * modules/string (License): Likewise.
41750         * modules/strndup (License): Likewise.
41751         * modules/strnlen (License): Likewise.
41752         * modules/strpbrk (License): Likewise.
41753         * modules/strptime (License): Likewise.
41754         * modules/strsep (License): Likewise.
41755         * modules/sys_select (License): Likewise.
41756         * modules/sys_socket (License): Likewise.
41757         * modules/sys_stat (License): Likewise.
41758         * modules/sys_time (License): Likewise.
41759         * modules/time (License): Likewise.
41760         * modules/time_r (License): Likewise.
41761         * modules/timegm (License): Likewise.
41762         * modules/unistd (License): Likewise.
41763         * modules/vsnprintf (License): Likewise.
41764         * modules/wctype (License): Likewise.
41765
41766 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41767
41768         * modules/argz (License): LGPLv2+.
41769
41770 2007-07-15  Karl Berry  <karl@gnu.org>
41771
41772         * doc/gnulib.texi: revise node structure per new fdl.texi.
41773
41774 2007-07-14  Bruno Haible  <bruno@clisp.org>
41775
41776         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
41777         the output file.
41778         * lib/uniname/uninames.h: Regenerated.
41779
41780 2007-07-14  Karl Berry  <karl@gnu.org>
41781
41782         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
41783         omitting sectioning and index commands.
41784
41785 2007-07-13  Bruno Haible  <bruno@clisp.org>
41786
41787         New gnulib-tool option --more-symlinks.
41788         * gnulib-tool (func_usage): Document --more-symlinks.
41789         (do_copyrights): New variable.
41790         Recognize option --more-symlinks.
41791         (func_import): Don't add a copyright notice transform to
41792         sed_transform_lib_file if do_copyrights is empty.
41793
41794 2007-07-13  Bruno Haible  <bruno@clisp.org>
41795
41796         * lib/vasnprintf.c (decimal_point_char): Define also if
41797         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
41798         && !NEED_PRINTF_DIRECTIVE_A.
41799         Reported by Clemens Koller <clemens.koller@anagramm.de> via
41800         Gary V. Vaughan <gary@gnu.org>.
41801
41802 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
41803
41804         * lib/inttypes_.h: Undo previous change, since it was fixed
41805         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
41806
41807 2007-07-13  Bruno Haible  <bruno@clisp.org>
41808
41809         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
41810         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
41811
41812 2007-07-13  Jim Meyering  <jim@meyering.net>
41813
41814         df: Don't fail for Tru64's "file-on-file mount".
41815         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
41816         so we fall through and use statfs instead.  Details here:
41817         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
41818         Reported by Albert Chin.
41819
41820 2007-07-13  Bruno Haible  <bruno@clisp.org>
41821
41822         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
41823         * modules/configmake (License): Likewise.
41824         * modules/gettext (License): Likewise.
41825         * modules/gettext-h (License): Likewise.
41826         * modules/include_next (License): Likewise.
41827         * modules/link-warning (License): Likewise.
41828         * modules/localcharset (License): Likewise.
41829         * modules/localename (License): Likewise.
41830         * modules/lock (License): Likewise.
41831         * modules/relocatable-lib-lgpl (License): Likewise.
41832         * modules/size_max (License): Likewise.
41833         * modules/vasnprintf (License): Likewise.
41834         * modules/wchar (License): Likewise.
41835         * modules/xsize (License): Likewise.
41836
41837 2007-07-13  Bruno Haible  <bruno@clisp.org>
41838
41839         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
41840         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
41841
41842 2007-07-12  Bruno Haible  <bruno@clisp.org>
41843
41844         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
41845         in the modules files.
41846
41847 2007-07-11  Karl Berry  <karl@gnu.org>
41848
41849         * MODULES.html.sh (func_module): use
41850          sed -e '\|^'"${includefile}"'$|d'
41851          instead of /.../d, to avoid errors on $includefile's containing /.
41852
41853 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41854
41855         * gnulib-tool (func_import): Avoid duplication of --avoid
41856         statements
41857         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
41858         names to `_' in variable names.
41859
41860 2007-07-10  Eric Blake  <ebb9@byu.net>
41861
41862         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
41863         * NEWS: Document this change.
41864
41865 2007-07-08  Bruno Haible  <bruno@clisp.org>
41866
41867         Update to Unicode 5.0.
41868         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
41869         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
41870         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
41871         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
41872         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
41873         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
41874         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
41875         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
41876         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
41877         U+10A3F, U+1D242..U+1D244.
41878         (nonspacing_table_ind): Update.
41879         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
41880         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
41881
41882 2007-07-08  Bruno Haible  <bruno@clisp.org>
41883
41884         Update to Unicode 5.0.
41885         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
41886         code transform. Extend the name index field of unicode_name_to_code and
41887         unicode_code_to_name from 16 to 24 bits.
41888         * lib/uniname/uniname.c (unicode_character_name,
41889         unicode_name_character): Add the range 0x12xxx to the code transform.
41890         * lib/uniname/uninames.h: Regenerated.
41891         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
41892
41893 2007-07-07  Bruno Haible  <bruno@clisp.org>
41894
41895         * modules/wcwidth-tests: New file.
41896         * tests/test-wcwidth.c: New file.
41897
41898         Work around MacOS X wcwidth() bug.
41899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
41900         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
41901         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
41902         original wcwidth in non-UTF-8 locales.
41903         * modules/wcwidth (Depends-on): Add localcharset, streq,
41904         uniwidth/width.
41905         * doc/functions/wcwidth.texi: Update.
41906
41907 2007-07-07  Bruno Haible  <bruno@clisp.org>
41908
41909         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
41910         (wcwidth): New declaration.
41911         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
41912         macros.
41913         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
41914         here. Prepare for creating <wchar.h> unconditionally.
41915         * modules/wchar (Depends-on): Add link-warning.
41916         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
41917         REPLACE_WCWIDTH, and GL_LINK_WARNING.
41918         * lib/wcwidth.h: Remove file.
41919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
41920         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
41921         * modules/wcwidth (Files): Remove lib/wcwidth.h.
41922         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
41923         (Include): Replace wcwidth.h with <wchar.h>.
41924         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
41925         * lib/mbchar.h: Don't include wcwidth.h.
41926         * lib/mbswidth.c: Likewise.
41927         * NEWS: Mention the change.
41928
41929 2007-07-07  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
41932         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
41933         definition with an external declaration.
41934         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
41935         defined as a function. Remove AC_C_INLINE requirement.
41936         * modules/wcwidth (Files): Add lib/wcwidth.c.
41937         (Makefile.am): Remove redundant statement.
41938
41939 2007-07-07  Bruno Haible  <bruno@clisp.org>
41940
41941         * MODULES.html.sh (Unicode string functions): Add the new modules.
41942
41943         * tests/uniwidth/test-u32-strwidth.c: New file.
41944         * modules/uniwidth/u32-strwidth-tests: New file.
41945
41946         * lib/uniwidth/u32-strwidth.c: New file.
41947         * modules/uniwidth/u32-strwidth: New file.
41948
41949         * tests/uniwidth/test-u16-strwidth.c: New file.
41950         * modules/uniwidth/u16-strwidth-tests: New file.
41951
41952         * lib/uniwidth/u16-strwidth.c: New file.
41953         * modules/uniwidth/u16-strwidth: New file.
41954
41955         * tests/uniwidth/test-u8-strwidth.c: New file.
41956         * modules/uniwidth/u8-strwidth-tests: New file.
41957
41958         * lib/uniwidth/u8-strwidth.c: New file.
41959         * modules/uniwidth/u8-strwidth: New file.
41960
41961         * tests/uniwidth/test-u32-width.c: New file.
41962         * modules/uniwidth/u32-width-tests: New file.
41963
41964         * lib/uniwidth/u32-width.c: New file.
41965         * modules/uniwidth/u32-width: New file.
41966
41967         * tests/uniwidth/test-u16-width.c: New file.
41968         * modules/uniwidth/u16-width-tests: New file.
41969
41970         * lib/uniwidth/u16-width.c: New file.
41971         * modules/uniwidth/u16-width: New file.
41972
41973         * tests/uniwidth/test-u8-width.c: New file.
41974         * modules/uniwidth/u8-width-tests: New file.
41975
41976         * lib/uniwidth/u8-width.c: New file.
41977         * modules/uniwidth/u8-width: New file.
41978
41979         * tests/uniwidth/test-uc_width.c: New file.
41980         * modules/uniwidth/width-tests: New file.
41981
41982         * lib/uniwidth/width.c: New file, from GNU libiconv.
41983         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
41984         * modules/uniwidth/width: New file.
41985
41986         * lib/uniwidth.h: New file, from GNU libiconv.
41987         * modules/uniwidth/base: New file.
41988
41989 2007-07-07  Bruno Haible  <bruno@clisp.org>
41990
41991         * lib/uniname.h: New file, from GNU gettext.
41992         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
41993         * lib/uniname/uninames.h: New file, from GNU gettext.
41994         * lib/uniname/uniname.c: New file, from GNU gettext.
41995         * tests/uniname/test-uninames.sh: New file.
41996         * tests/uniname/test-uninames.c: New file, from GNU gettext.
41997         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
41998         * modules/uniname/base: New file.
41999         * modules/uniname/uniname: New file.
42000         * modules/uniname/uniname-tests: New file.
42001         * MODULES.html.sh (Unicode string functions): Add the new modules.
42002
42003 2007-07-06  Bruno Haible  <bruno@clisp.org>
42004
42005         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42006
42007 2007-07-06  Bruno Haible  <bruno@clisp.org>
42008
42009         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42010         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42011         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42012         include <sys/time.h>.
42013         Reported by Eric Blake.
42014
42015 2007-07-06  Eric Blake  <ebb9@byu.net>
42016
42017         Fix testing canonicalize on cygwin.
42018         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42019         Revert patch from 2007-06-19.
42020         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42021         canonicalize module is also in use.
42022         * tests/test-canonicalize.c: New file.
42023         * tests/test-canonicalize.sh: Likewise.
42024         * modules/canonicalize-tests: Likewise.
42025
42026 2007-07-06  Jim Meyering  <jim@meyering.net>
42027
42028         * lib/getugroups.c (getugroups): Detect getgrent failure.
42029         Adjust comment to reflect reality: this function may return -1.
42030
42031 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42032
42033         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42034         the new TP address.
42035         (usage): Fix typo
42036         (gnulib_mk): New variable.
42037
42038 2007-07-05  Jim Meyering  <jim@meyering.net>
42039
42040         Don't let endgrent clobber errno, no matter how improbable.
42041         * lib/getugroups.c (getugroups): Save and restore errno around
42042         endgrent call.
42043
42044         Close the group DB even when failing with 2^31 or more members.
42045         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
42046
42047 2007-07-04  Jim Meyering  <jim@meyering.net>
42048
42049         * lib/getugroups.h: New file.
42050         * lib/getugroups.c: Include "getugroups.h".
42051         Remove uses of "register" keyword.
42052         Move local variable, "cp", down into scope where used.
42053         Give "username" parameter the "const" attribute.
42054         * modules/getugroups (Files): Add lib/getugroups.h
42055
42056 2007-07-04  Karl Berry  <karl@gnu.org>
42057
42058         * MODULES.html.sh (func_all_modules): Complete rename of
42059         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
42060
42061 2007-07-02  Bruno Haible  <bruno@clisp.org>
42062
42063         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
42064         mode, when inttypes.h comes from gnulib.
42065         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42066
42067 2007-07-02  Simon Josefsson  <simon@josefsson.org>
42068
42069         * NEWS: Mention lgpl module name change.
42070
42071         * modules/lgpl-2.1: Renamed from lgpl.
42072
42073         * NEWS: Mention gpl module name change.
42074
42075         * modules/gpl-3.0: New file, based on gpl-2.0.
42076
42077         * modules/gpl-2.0: Renamed from gpl.
42078
42079         * modules/gpl: Fix filename, doc/gpl.texi is now found at
42080         doc/gpl-2.0.texi.
42081
42082 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42083
42084         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
42085         #define __STDC_LIMIT_MACROS temporarily while including
42086         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
42087         Problem reported by Joel E. Denny in
42088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
42089
42090 2007-07-01  Bruno Haible  <bruno@clisp.org>
42091
42092         * lib/unistdio.h: New file.
42093         * lib/unistdio/u-asnprintf.h: New file.
42094         * lib/unistdio/u-asprintf.h: New file.
42095         * lib/unistdio/u-printf-args.c: New file.
42096         * lib/unistdio/u-printf-args.h: New file.
42097         * lib/unistdio/u-printf-parse.h: New file.
42098         * lib/unistdio/u-snprintf.h: New file.
42099         * lib/unistdio/u-sprintf.h: New file.
42100         * lib/unistdio/u-vasprintf.h: New file.
42101         * lib/unistdio/u-vsnprintf.h: New file.
42102         * lib/unistdio/u-vsprintf.h: New file.
42103         * lib/unistdio/ulc-asnprintf.c: New file.
42104         * lib/unistdio/ulc-asprintf.c: New file.
42105         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
42106         * lib/unistdio/ulc-printf-parse.c: New file.
42107         * lib/unistdio/ulc-snprintf.c: New file.
42108         * lib/unistdio/ulc-sprintf.c: New file.
42109         * lib/unistdio/ulc-vasnprintf.c: New file.
42110         * lib/unistdio/ulc-vasprintf.c: New file.
42111         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
42112         * lib/unistdio/ulc-vsnprintf.c: New file.
42113         * lib/unistdio/ulc-vsprintf.c: New file.
42114         * lib/unistdio/u8-asnprintf.c: New file.
42115         * lib/unistdio/u8-asprintf.c: New file.
42116         * lib/unistdio/u8-printf-parse.c: New file.
42117         * lib/unistdio/u8-snprintf.c: New file.
42118         * lib/unistdio/u8-sprintf.c: New file.
42119         * lib/unistdio/u8-vasnprintf.c: New file.
42120         * lib/unistdio/u8-vasprintf.c: New file.
42121         * lib/unistdio/u8-vsnprintf.c: New file.
42122         * lib/unistdio/u8-vsprintf.c: New file.
42123         * lib/unistdio/u8-u8-asnprintf.c: New file.
42124         * lib/unistdio/u8-u8-asprintf.c: New file.
42125         * lib/unistdio/u8-u8-snprintf.c: New file.
42126         * lib/unistdio/u8-u8-sprintf.c: New file.
42127         * lib/unistdio/u8-u8-vasnprintf.c: New file.
42128         * lib/unistdio/u8-u8-vasprintf.c: New file.
42129         * lib/unistdio/u8-u8-vsnprintf.c: New file.
42130         * lib/unistdio/u8-u8-vsprintf.c: New file.
42131         * lib/unistdio/u16-asnprintf.c: New file.
42132         * lib/unistdio/u16-asprintf.c: New file.
42133         * lib/unistdio/u16-printf-parse.c: New file.
42134         * lib/unistdio/u16-snprintf.c: New file.
42135         * lib/unistdio/u16-sprintf.c: New file.
42136         * lib/unistdio/u16-vasnprintf.c: New file.
42137         * lib/unistdio/u16-vasprintf.c: New file.
42138         * lib/unistdio/u16-vsnprintf.c: New file.
42139         * lib/unistdio/u16-vsprintf.c: New file.
42140         * lib/unistdio/u16-u16-asnprintf.c: New file.
42141         * lib/unistdio/u16-u16-asprintf.c: New file.
42142         * lib/unistdio/u16-u16-snprintf.c: New file.
42143         * lib/unistdio/u16-u16-sprintf.c: New file.
42144         * lib/unistdio/u16-u16-vasnprintf.c: New file.
42145         * lib/unistdio/u16-u16-vasprintf.c: New file.
42146         * lib/unistdio/u16-u16-vsnprintf.c: New file.
42147         * lib/unistdio/u16-u16-vsprintf.c: New file.
42148         * lib/unistdio/u32-asnprintf.c: New file.
42149         * lib/unistdio/u32-asprintf.c: New file.
42150         * lib/unistdio/u32-printf-parse.c: New file.
42151         * lib/unistdio/u32-snprintf.c: New file.
42152         * lib/unistdio/u32-sprintf.c: New file.
42153         * lib/unistdio/u32-vasnprintf.c: New file.
42154         * lib/unistdio/u32-vasprintf.c: New file.
42155         * lib/unistdio/u32-vsnprintf.c: New file.
42156         * lib/unistdio/u32-vsprintf.c: New file.
42157         * lib/unistdio/u32-u32-asnprintf.c: New file.
42158         * lib/unistdio/u32-u32-asprintf.c: New file.
42159         * lib/unistdio/u32-u32-snprintf.c: New file.
42160         * lib/unistdio/u32-u32-sprintf.c: New file.
42161         * lib/unistdio/u32-u32-vasnprintf.c: New file.
42162         * lib/unistdio/u32-u32-vasprintf.c: New file.
42163         * lib/unistdio/u32-u32-vsnprintf.c: New file.
42164         * lib/unistdio/u32-u32-vsprintf.c: New file.
42165         * tests/unistdio/test-ulc-asnprintf1.c: New file.
42166         * tests/unistdio/test-ulc-asnprintf1.h: New file.
42167         * tests/unistdio/test-ulc-printf1.h: New file.
42168         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
42169         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
42170         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
42171         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
42172         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
42173         * tests/unistdio/test-ulc-vasprintf1.c: New file.
42174         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
42175         * tests/unistdio/test-ulc-vsprintf1.c: New file.
42176         * tests/unistdio/test-u8-asnprintf1.c: New file.
42177         * tests/unistdio/test-u8-asnprintf1.h: New file.
42178         * tests/unistdio/test-u8-printf1.h: New file.
42179         * tests/unistdio/test-u8-vasnprintf1.c: New file.
42180         * tests/unistdio/test-u8-vasnprintf2.c: New file.
42181         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
42182         * tests/unistdio/test-u8-vasnprintf3.c: New file.
42183         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
42184         * tests/unistdio/test-u8-vasprintf1.c: New file.
42185         * tests/unistdio/test-u8-vsnprintf1.c: New file.
42186         * tests/unistdio/test-u8-vsprintf1.c: New file.
42187         * tests/unistdio/test-u16-asnprintf1.c: New file.
42188         * tests/unistdio/test-u16-asnprintf1.h: New file.
42189         * tests/unistdio/test-u16-printf1.h: New file.
42190         * tests/unistdio/test-u16-vasnprintf1.c: New file.
42191         * tests/unistdio/test-u16-vasnprintf2.c: New file.
42192         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
42193         * tests/unistdio/test-u16-vasnprintf3.c: New file.
42194         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
42195         * tests/unistdio/test-u16-vasprintf1.c: New file.
42196         * tests/unistdio/test-u16-vsnprintf1.c: New file.
42197         * tests/unistdio/test-u16-vsprintf1.c: New file.
42198         * tests/unistdio/test-u32-asnprintf1.c: New file.
42199         * tests/unistdio/test-u32-asnprintf1.h: New file.
42200         * tests/unistdio/test-u32-printf1.h: New file.
42201         * tests/unistdio/test-u32-vasnprintf1.c: New file.
42202         * tests/unistdio/test-u32-vasnprintf2.c: New file.
42203         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
42204         * tests/unistdio/test-u32-vasnprintf3.c: New file.
42205         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
42206         * tests/unistdio/test-u32-vasprintf1.c: New file.
42207         * tests/unistdio/test-u32-vsnprintf1.c: New file.
42208         * tests/unistdio/test-u32-vsprintf1.c: New file.
42209         * modules/unistdio/base: New file.
42210         * modules/unistdio/u-printf-args: New file.
42211         * modules/unistdio/ulc-asnprintf: New file.
42212         * modules/unistdio/ulc-asprintf: New file.
42213         * modules/unistdio/ulc-fprintf: New file.
42214         * modules/unistdio/ulc-printf-parse: New file.
42215         * modules/unistdio/ulc-snprintf: New file.
42216         * modules/unistdio/ulc-sprintf: New file.
42217         * modules/unistdio/ulc-vasnprintf: New file.
42218         * modules/unistdio/ulc-vasprintf: New file.
42219         * modules/unistdio/ulc-vfprintf: New file.
42220         * modules/unistdio/ulc-vsnprintf: New file.
42221         * modules/unistdio/ulc-vsprintf: New file.
42222         * modules/unistdio/u8-asnprintf: New file.
42223         * modules/unistdio/u8-asprintf: New file.
42224         * modules/unistdio/u8-printf-parse: New file.
42225         * modules/unistdio/u8-snprintf: New file.
42226         * modules/unistdio/u8-sprintf: New file.
42227         * modules/unistdio/u8-vasnprintf: New file.
42228         * modules/unistdio/u8-vasprintf: New file.
42229         * modules/unistdio/u8-vsnprintf: New file.
42230         * modules/unistdio/u8-vsprintf: New file.
42231         * modules/unistdio/u8-u8-asnprintf: New file.
42232         * modules/unistdio/u8-u8-asprintf: New file.
42233         * modules/unistdio/u8-u8-snprintf: New file.
42234         * modules/unistdio/u8-u8-sprintf: New file.
42235         * modules/unistdio/u8-u8-vasnprintf: New file.
42236         * modules/unistdio/u8-u8-vasprintf: New file.
42237         * modules/unistdio/u8-u8-vsnprintf: New file.
42238         * modules/unistdio/u8-u8-vsprintf: New file.
42239         * modules/unistdio/u16-asnprintf: New file.
42240         * modules/unistdio/u16-asprintf: New file.
42241         * modules/unistdio/u16-printf-parse: New file.
42242         * modules/unistdio/u16-snprintf: New file.
42243         * modules/unistdio/u16-sprintf: New file.
42244         * modules/unistdio/u16-vasnprintf: New file.
42245         * modules/unistdio/u16-vasprintf: New file.
42246         * modules/unistdio/u16-vsnprintf: New file.
42247         * modules/unistdio/u16-vsprintf: New file.
42248         * modules/unistdio/u16-u16-asnprintf: New file.
42249         * modules/unistdio/u16-u16-asprintf: New file.
42250         * modules/unistdio/u16-u16-snprintf: New file.
42251         * modules/unistdio/u16-u16-sprintf: New file.
42252         * modules/unistdio/u16-u16-vasnprintf: New file.
42253         * modules/unistdio/u16-u16-vasprintf: New file.
42254         * modules/unistdio/u16-u16-vsnprintf: New file.
42255         * modules/unistdio/u16-u16-vsprintf: New file.
42256         * modules/unistdio/u32-asnprintf: New file.
42257         * modules/unistdio/u32-asprintf: New file.
42258         * modules/unistdio/u32-printf-parse: New file.
42259         * modules/unistdio/u32-snprintf: New file.
42260         * modules/unistdio/u32-sprintf: New file.
42261         * modules/unistdio/u32-vasnprintf: New file.
42262         * modules/unistdio/u32-vasprintf: New file.
42263         * modules/unistdio/u32-vsnprintf: New file.
42264         * modules/unistdio/u32-vsprintf: New file.
42265         * modules/unistdio/u32-u32-asnprintf: New file.
42266         * modules/unistdio/u32-u32-asprintf: New file.
42267         * modules/unistdio/u32-u32-snprintf: New file.
42268         * modules/unistdio/u32-u32-sprintf: New file.
42269         * modules/unistdio/u32-u32-vasnprintf: New file.
42270         * modules/unistdio/u32-u32-vasprintf: New file.
42271         * modules/unistdio/u32-u32-vsnprintf: New file.
42272         * modules/unistdio/u32-u32-vsprintf: New file.
42273         * modules/unistdio/ulc-asnprintf-tests: New file.
42274         * modules/unistdio/ulc-vasnprintf-tests: New file.
42275         * modules/unistdio/ulc-vasprintf-tests: New file.
42276         * modules/unistdio/ulc-vsnprintf-tests: New file.
42277         * modules/unistdio/ulc-vsprintf-tests: New file.
42278         * modules/unistdio/u8-asnprintf-tests: New file.
42279         * modules/unistdio/u8-vasnprintf-tests: New file.
42280         * modules/unistdio/u8-vasprintf-tests: New file.
42281         * modules/unistdio/u8-vsnprintf-tests: New file.
42282         * modules/unistdio/u8-vsprintf-tests: New file.
42283         * modules/unistdio/u16-asnprintf-tests: New file.
42284         * modules/unistdio/u16-vasnprintf-tests: New file.
42285         * modules/unistdio/u16-vasprintf-tests: New file.
42286         * modules/unistdio/u16-vsnprintf-tests: New file.
42287         * modules/unistdio/u16-vsprintf-tests: New file.
42288         * modules/unistdio/u32-asnprintf-tests: New file.
42289         * modules/unistdio/u32-vasnprintf-tests: New file.
42290         * modules/unistdio/u32-vasprintf-tests: New file.
42291         * modules/unistdio/u32-vsnprintf-tests: New file.
42292         * modules/unistdio/u32-vsprintf-tests: New file.
42293         * MODULES.html.sh (Unicode string functions): Add the new modules.
42294
42295 2007-07-01  Bruno Haible  <bruno@clisp.org>
42296
42297         * lib/sprintf.c (sprintf): Limit the available length estimation,
42298         to avoid address wraparound.
42299         * lib/vsprintf.c (vsprintf): Likewise.
42300         * modules/sprintf-posix (Dependencies): Add stdint.
42301         * modules/vsprintf-posix (Dependencies): Likewise.
42302
42303 2007-07-01  Bruno Haible  <bruno@clisp.org>
42304
42305         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
42306         Windows PATH as well. Conservative double-quoting. Comments.
42307
42308 2007-07-01  Bruno Haible  <bruno@clisp.org>
42309             Eric Blake  <ebb9@byu.net>
42310             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42311
42312         * gnulib-tool (self_abspathname): Fix algorithm to cope with
42313         empty components in $PATH, denoting '.'.
42314
42315 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42316
42317         * gnulib-tool: Fix indentation.
42318         (func_create_megatestdir): Likewise.
42319         Report by Bruno Haible.
42320
42321 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42322
42323         Sync from Automake.
42324         * build-aux/gnupload: Fix shell portability issues with for loops.
42325         Report by Karl Berry.
42326
42327 2007-06-29  Simon Josefsson  <simon@josefsson.org>
42328
42329         * build-aux/maint.mk (POURL): Use translationproject.org.
42330
42331 2007-06-27  Simon Josefsson  <simon@josefsson.org>
42332             Bruno Haible  <bruno@clisp.org>
42333
42334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
42335         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
42336         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
42337         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
42338         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
42339
42340 2007-06-27  Bruno Haible  <bruno@clisp.org>
42341
42342         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
42343         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
42344
42345 2007-06-26  Karl Berry  <karl@gnu.org>
42346
42347         * MODULES.html.sh: remove xreadlink-with-size.
42348
42349 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42350
42351         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
42352         method that I hope also handles the double-include problem noted
42353         by Bruno Haible in
42354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
42355
42356 2007-06-23  Bruno Haible  <bruno@clisp.org>
42357
42358         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42359         Don't let the 'mostlyclean' target fail if the last subdirectory could
42360         not be removed.
42361         Reported by Karl Berry.
42362
42363 2007-06-23  Bruno Haible  <bruno@clisp.org>
42364
42365         * gnulib-tool (echo): Add a speedier workaround for ksh.
42366         * tests/test-echo.sh: Likewise.
42367
42368 2007-06-23  Bruno Haible  <bruno@clisp.org>
42369
42370         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
42371         * tests/test-echo.sh: Likewise.
42372
42373 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42374
42375         * gnulib-tool (IFS): Initialize early, so we don't set it to
42376         empty later.
42377         (self_abspathname): Rewrite algorithm to set it, reindent.
42378         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
42379         (func_create_megatestdir): Merge some sed scripts.
42380
42381 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42382
42383         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
42384         exposed by Sun Studio 11 cc on Solaris 8.
42385
42386 2007-06-22  Bruno Haible  <bruno@clisp.org>
42387
42388         * gnulib-tool (echo): Ensure the echo primitive does not interpret
42389         backslashes.
42390         * tests/test-echo.sh: New file.
42391
42392 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42393
42394         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
42395         simplify `sed_replace_build_aux' scripts, they are portable but
42396         echoing them with `echo' is not.
42397         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
42398
42399 2007-06-21  Karl Berry  <karl@gnu.org>
42400
42401         * config/srclist.txt: guess we can't handle the licenses via
42402         srclist at the moment.
42403
42404 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
42405
42406         * MODULES.html.sh: Add include_next.
42407         * modules/include_next: New file.
42408
42409 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42410
42411         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
42412         INCLUDE_NEXT.
42413         (gl_CHECK_NEXT_HEADERS): New macro.
42414         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
42415         the obsolescent gl_ABSOLUTE_HEADER.
42416         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
42417         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
42418         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42419         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42420         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
42421         * m4/math_h.m4 (gl_MATH_H): Likewise.
42422         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42423         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42424         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
42425         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42426         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
42427         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
42428         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
42429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
42432         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
42433         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42434         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
42435         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42436         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42437         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42438         * m4/inttypes.m4 (gl_INTTYPES_H): Define
42439         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
42440         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
42441         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
42442         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
42443         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
42444         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
42445         * lib/float_.h: Likewise.
42446         * lib/inttypes_.h: Likewise.
42447         * lib/math_.h: Likewise.
42448         * lib/search_.h: Likewise.
42449         * lib/signal_.h: Likewise.
42450         * lib/stdint_.h: Likewise.
42451         * lib/stdio_.h: Likewise.
42452         * lib/stdlib_.h: Likewise.
42453         * lib/string_.h: Likewise.
42454         * lib/sys_stat_.h: Likewise.
42455         * lib/sys_time_.h: Likewise.
42456         * lib/time_.h: Likewise.
42457         * lib/unistd_.h: Likewise.
42458         * lib/wchar_.h: Likewise.
42459         * lib/wctype_.h: Likewise.
42460         * lib/dirent_.h: Likewise.
42461         * lib/iconv_.h: Likewise.
42462         * lib/locale_.h: Likewise.
42463         * lib/netinet_in_.h: Likewise.
42464         * lib/sys_select_.h: Likewise.
42465         * lib/sys_socket_.h: Likewise.
42466         * lib/sysexits_.h: Likewise.
42467         * modules/fcntl (Depends-on): Depend on include_next, not
42468         absolute_header.
42469         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
42470         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
42471         * modules/fchdir: Likewise.
42472         * modules/float: Likewise.
42473         * modules/iconv_open: Likewise.
42474         * modules/inttypes: Likewise.
42475         * modules/locale: Likewise.
42476         * modules/math: Likewise.
42477         * modules/netinet_in: Likewise.
42478         * modules/search: Likewise.
42479         * modules/signal: Likewise.
42480         * modules/stdint: Likewise.
42481         * modules/stdio: Likewise.
42482         * modules/stdlib: Likewise.
42483         * modules/string: Likewise.
42484         * modules/sys_select: Likewise.
42485         * modules/sys_socket: Likewise.
42486         * modules/sys_stat: Likewise.
42487         * modules/sys_time: Likewise.
42488         * modules/sysexits: Likewise.
42489         * modules/time: Likewise.
42490         * modules/unistd: Likewise.
42491         * modules/wchar: Likewise.
42492         * modules/wctype: Likewise.
42493         * modules/sys_stat: Change maintainer to "all".
42494         * modules/unistd: Likewise.
42495
42496 2007-06-20  Karl Berry  <karl@gnu.org>
42497
42498         * config/srclist.txt: track www changes in license files.
42499
42500 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
42501
42502         * build-aux/bootstrap: Remove stray dot.
42503         Make sure build_aux settings are honored when linking
42504         gnulib_extra_files.
42505
42506 2007-06-19  Eric Blake  <ebb9@byu.net>
42507
42508         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42509         Allow compilation on cygwin.
42510
42511 2007-06-19  Jim Meyering  <jim@meyering.net>
42512
42513         xreadlink-with-size: Remove module.  No longer used.
42514         Ex-callers now use xreadlink or mreadlink-with-size.
42515         * modules/xreadlink-with-size: Remove module.
42516         * lib/xreadlink-with-size.c: Remove file.
42517         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
42518         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
42519         just before the function definition *is* accurate.
42520
42521         Eliminate one way canonicalize_filename_mode could exit.
42522         * lib/canonicalize.c (canonicalize_filename_mode):
42523         Use mreadlink_with_size, not xreadlink_with_size.
42524
42525 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
42526
42527         Detect porting problems to FreeBSD/arm, which has time_t wider than
42528         long int.  Original problem reported for GNU diff by Xin Li in
42529         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
42530         * modules/getdate (Depends-on): Add intprops, verify.
42531         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
42532         is an integer type no wider than long int.
42533
42534 2007-06-18  Jim Meyering  <jim@meyering.net>
42535
42536         New module: mreadlink-with-size.
42537         * MODULES.html.sh: Add mreadlink-with-size.
42538         * modules/mreadlink-with-size: New module
42539         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
42540         not xreadlink-with-size.
42541         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
42542
42543 2007-06-16  Bruno Haible  <bruno@clisp.org>
42544
42545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
42546         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
42547         Reported by Gary V. Vaughan <gary@gnu.org>.
42548
42549 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
42550
42551         Revamp lchown so that it lives in unistd.h where it belongs.
42552         * lib/lchown.h: Remove.
42553         * lib/dirchownmod.c: Don't include lib/lchown.h.
42554         * lib/fchownat.c: Likewise.
42555         * lib/openat.c: Likewise.
42556         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
42557         does not follow symlinks.
42558         (EOPNOTSUPP): Define if not defined.
42559         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
42560         is defined to 0.
42561         (lchown): New decl.
42562         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
42563         Do not check for lchown decl.
42564         Set REPLACE_LCHOWN.
42565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
42566         REPLACE_LCHOWN.
42567         * modules/chown: Make it clear it follows symlinks.
42568         * modules/lchown: Make it clear it doesn't follow symlinks.
42569         (Files): Remove lib/lchown.h
42570         (Depends-on): Add unistd.
42571         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
42572         (Include): Include <unistd.h>, not "lchown.h".
42573         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
42574         REPLACE_LCHOWN.
42575
42576 2007-06-15  Jim Meyering  <jim@meyering.net>
42577
42578         Change license (GPL to LGPL) of fsusage and dependents.
42579         * modules/fsusage (License): Change to LGPL.
42580         * modules/full-read (License): Likewise.
42581         * modules/full-write (License): Likewise.
42582         * modules/safe-read (License): Likewise.
42583         * modules/safe-write (License): Likewise.
42584
42585 2007-06-14  Ben Pfaff  <blp@gnu.org>
42586
42587         Missing part of allocsa -> malloca transition.
42588         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
42589         gl_MALLOCA.
42590
42591 2007-06-12  Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
42594         to ia64, x86_64, i386.
42595         Reported by Eric Blake.
42596
42597 2007-06-12  Bruno Haible  <bruno@clisp.org>
42598
42599         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
42600         cross-compiling to x86_64.
42601
42602 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
42603
42604         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
42605         glitch reported by Ralf Wildenhues in
42606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
42607
42608         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
42609         Vin Shelton.
42610
42611 2007-06-11  Bruno Haible  <bruno@clisp.org>
42612
42613         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
42614         replacement string.
42615         Reported by Eric Blake.
42616
42617 2007-06-10  Bruno Haible  <bruno@clisp.org>
42618
42619         Prepare vasnprintf code for use with Unicode strings.
42620         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
42621         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
42622         TYPE_U32_STRING.
42623         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
42624         a_u32_string variants.
42625         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
42626         * lib/printf-args.c: Don't include config.h and the specification
42627         header if PRINTF_FETCHARGS is already defined.
42628         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
42629         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
42630         TYPE_U16_STRING, TYPE_U32_STRING.
42631         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
42632         u16_directive, u16_directives, u32_directive, u32_directives): New
42633         types.
42634         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
42635         New declarations.
42636         * lib/printf-parse.c: Don't include config.h and the specification
42637         header if PRINTF_PARSE is already defined. Eliminate the set of
42638         parameters for WIDE_CHAR_VERSION; the user of this file must provide
42639         them now. Include c-ctype.h.
42640         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
42641         directive and CHAR_T_ONLY_ASCII.
42642         * lib/vasnprintf.c: Don't include config.h and the specification header
42643         if VASNPRINTF is already defined.
42644         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
42645         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
42646         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
42647         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
42648         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
42649         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
42650         code accordingly.
42651         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
42652         pad_ourselves also in this case, with the 'c' and 's' directives, and
42653         with a different notion of "width".
42654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
42655
42656 2007-06-10  Bruno Haible  <bruno@clisp.org>
42657
42658         * modules/unistr/u32-mbsnlen: New file.
42659         * lib/unistr/u32-mbsnlen.c: New file.
42660
42661         * modules/unistr/u16-mbsnlen: New file.
42662         * lib/unistr/u16-mbsnlen.c: New file.
42663
42664         * modules/unistr/u8-mbsnlen: New file.
42665         * lib/unistr/u8-mbsnlen.c: New file.
42666
42667         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
42668         declarations.
42669
42670 2007-06-10  Bruno Haible  <bruno@clisp.org>
42671
42672         * lib/string_.h (mbsnlen): New declaration.
42673         * lib/mbsnlen.c: New file.
42674         * m4/mbsnlen.m4: New file.
42675         * modules/mbsnlen: New file.
42676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
42677         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
42678         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
42679
42680 2007-06-10  Bruno Haible  <bruno@clisp.org>
42681
42682         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
42683
42684 2007-06-10  Bruno Haible  <bruno@clisp.org>
42685
42686         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
42687         * lib/mbuiter.h: Likewise.
42688
42689 2007-06-10  Bruno Haible  <bruno@clisp.org>
42690
42691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
42692         declaration.
42693
42694 2007-06-10  Karl Berry  <karl@gnu.org>
42695
42696         * config/srclist.txt: remove gettext entries, Bruno prefers
42697         to update individually.
42698
42699 2007-06-10  Bruno Haible  <bruno@clisp.org>
42700
42701         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
42702         'maxlen'. Ensure only length + width bytes are allocated, not
42703         length + 1 + width.
42704
42705 2007-06-09  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
42708         (CHAR_T): Remove macro.
42709         (VASNPRINTF): Update.
42710
42711 2007-06-09  Bruno Haible  <bruno@clisp.org>
42712
42713         * MODULES.html.sh (Unicode string functions): Add the new modules.
42714
42715         * modules/uniconv/u32-conv-to-enc: New file.
42716         * lib/uniconv/u32-conv-to-enc.c: New file.
42717         * modules/uniconv/u32-conv-to-enc-tests: New file.
42718         * tests/uniconv/test-u32-conv-to-enc.c: New file.
42719
42720         * modules/uniconv/u16-conv-to-enc: New file.
42721         * lib/uniconv/u16-conv-to-enc.c: New file.
42722         * lib/uniconv/u-conv-to-enc.h: New file.
42723         * modules/uniconv/u16-conv-to-enc-tests: New file.
42724         * tests/uniconv/test-u16-conv-to-enc.c: New file.
42725
42726         * modules/uniconv/u8-conv-to-enc: New file.
42727         * lib/uniconv/u8-conv-to-enc.c: New file.
42728         * modules/uniconv/u8-conv-to-enc-tests: New file.
42729         * tests/uniconv/test-u8-conv-to-enc.c: New file.
42730
42731         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
42732         u32_conv_to_encoding): New declarations.
42733
42734 2007-06-09  Bruno Haible  <bruno@clisp.org>
42735
42736         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
42737
42738 2007-06-09  Bruno Haible  <bruno@clisp.org>
42739
42740         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
42741         * modules/malloca: Renamed from modules/allocsa, updated.
42742         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
42743         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
42744         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
42745         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
42746         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
42747         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
42748         * modules/xmalloca: Renamed from modules/xallocsa, updated.
42749         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
42750         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
42751         * modules/c-strcasestr (Depends-on): Update.
42752         * lib/c-strcasestr.c: Update.
42753         * modules/c-strstr (Depends-on): Update.
42754         * lib/c-strstr.c: Update.
42755         * modules/canonicalize-lgpl (Depends-on): Update.
42756         * lib/canonicalize-lgpl.c: Update.
42757         * modules/clean-temp (Depends-on): Update.
42758         * lib/clean-temp.c: Update.
42759         * modules/csharpcomp (Depends-on): Update.
42760         * lib/csharpcomp.c: Update.
42761         * modules/csharpexec (Depends-on): Update.
42762         * lib/csharpexec.c: Update.
42763         * modules/javacomp (Depends-on): Update.
42764         * lib/javacomp.c: Update.
42765         * modules/javaexec (Depends-on): Update.
42766         * lib/javaexec.c: Update.
42767         * modules/mbscasestr (Depends-on): Update.
42768         * lib/mbscasestr.c: Update.
42769         * modules/mbsstr (Depends-on): Update.
42770         * lib/mbsstr.c: Update.
42771         * modules/setenv (Depends-on): Update.
42772         * lib/setenv.c: Update.
42773         * modules/strcasestr (Depends-on): Update.
42774         * lib/strcasestr.c: Update.
42775         * modules/striconveha (Depends-on): Update.
42776         * lib/striconveha.c: Update.
42777         * modules/relocatable-prog-wrapper (Files): Update.
42778         * lib/relocwrapper.c: Update.
42779         * build-aux/install-reloc: Update.
42780         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
42781
42782 2007-06-08  Bruno Haible  <bruno@clisp.org>
42783
42784         Port to uClibc.
42785         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
42786         * lib/fpurge.c (fpurge): Likewise.
42787         * lib/freading.c (freading): Likewise.
42788         * lib/fseeko.c (rpl_fseeko): Likewise.
42789         * lib/fseterr.c (fseterr): Likewise.
42790         * lib/fwriting.c (fwriting): Likewise.
42791         * tests/test-fflush.c (main): Avoid a failure on uClibc.
42792
42793 2007-06-08  Bruno Haible  <bruno@clisp.org>
42794
42795         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
42796         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
42797         * modules/gettext (Files): Add m4/intlmacosx.m4.
42798
42799 2007-06-07  Bruno Haible  <bruno@clisp.org>
42800
42801         * modules/localename-tests: New file.
42802         * tests/test-localename.c: New file.
42803
42804         New module 'localename'.
42805         * lib/localename.h: New file.
42806         * lib/localename.c: New file, from GNU gettext.
42807         * m4/localename.m4: New file.
42808         * modules/localename: New file.
42809
42810 2007-06-07  Bruno Haible  <bruno@clisp.org>
42811
42812         Work around the lack of <wchar.h> on some builds of uClibc.
42813         * doc/headers/wchar.texi: Update.
42814         * lib/wchar_.h: Include <wchar.h> only if it exists.
42815         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
42816         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
42817         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
42818         doesn't exist.
42819         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
42820         * modules/mbfile (Depends-on): Add wchar.
42821         * modules/mbiter (Depends-on): Likewise.
42822         * modules/mbuiter (Depends-on): Likewise.
42823         Reported by Simon Josefsson.
42824
42825 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
42826
42827         Work around problem reported by Steven M. Schweda in
42828         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
42829         Tru64 5.1B with the Compaq compiler environment installed declares
42830         an 'isblank' function but does not define it in the C library.
42831         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
42832         * lib/regex_internal.h (isblank): Likewise.
42833         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
42834         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42835
42836 2007-06-05  Bruno Haible  <bruno@clisp.org>
42837
42838         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
42839         ia64.
42840         * modules/printf-safe: New file.
42841         * modules/fprintf-posix (Depends-on): Add printf-safe.
42842         * modules/printf-posix (Depends-on): Likewise.
42843         * modules/snprintf-posix (Depends-on): Likewise.
42844         * modules/sprintf-posix (Depends-on): Likewise.
42845         * modules/vasnprintf-posix (Depends-on): Likewise.
42846         * modules/vasprintf-posix (Depends-on): Likewise.
42847         * modules/vfprintf-posix (Depends-on): Likewise.
42848         * modules/vprintf-posix (Depends-on): Likewise.
42849         * modules/vsnprintf-posix (Depends-on): Likewise.
42850         * modules/vsprintf-posix (Depends-on): Likewise.
42851         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42852         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
42853         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
42854         "no" on i386, x86_64, ia64.
42855         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
42856         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42857         on i386, x86_64, ia64.
42858         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
42859         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42860         on i386, x86_64, ia64.
42861         * tests/test-vasnprintf-posix.c: Include float.h.
42862         (LDBL80_WORDS): New macro.
42863         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42864         on i386, x86_64, ia64.
42865         * tests/test-vasprintf-posix.c: Include float.h.
42866         (LDBL80_WORDS): New macro.
42867         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42868         on i386, x86_64, ia64.
42869         * tests/test-snprintf-posix.c: Include float.h.
42870         * tests/test-sprintf-posix.c: Likewise.
42871         * tests/test-vsnprintf-posix.c: Likewise.
42872         * tests/test-vsprintf-posix.c: Likewise.
42873
42874 2007-06-05  Bruno Haible  <bruno@clisp.org>
42875
42876         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
42877         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
42878         non-IEEE numbers on i386, x86_64, ia64.
42879         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
42880         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
42881         * tests/test-isnanl.h: Include float.h.
42882         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
42883
42884 2007-06-05  Bruno Haible  <bruno@clisp.org>
42885
42886         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
42887         also the %a / %A. Handle the %a / %A code before this extra handling.
42888
42889 2007-06-05  Bruno Haible  <bruno@clisp.org>
42890
42891         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
42892         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
42893
42894 2007-06-05  Bruno Haible  <bruno@clisp.org>
42895
42896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
42897         typo in variable name.
42898
42899 2007-06-05  Eric Blake  <ebb9@byu.net>
42900
42901         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
42902         Reported by Simon Josefsson.
42903
42904 2007-06-04  Bruno Haible  <bruno@clisp.org>
42905
42906         Avoid test failures on some PowerPC platforms.
42907         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
42908         Define differently for PowerPC.
42909         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
42910         Reported by Gary V. Vaughan <gary@gnu.org>.
42911
42912 2007-06-02  Bruno Haible  <bruno@clisp.org>
42913
42914         Fix test-stdint failure on FreeBSD/ia64.
42915         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
42916         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
42917         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
42918         * doc/headers/stdint.texi: Update.
42919
42920 2007-06-01  Bruno Haible  <bruno@clisp.org>
42921
42922         * tests/test-binary-io.c (main): Pass a third argument to open().
42923         Reported by Gary V. Vaughan <gary@gnu.org>.
42924
42925 2007-06-01  Bruno Haible  <bruno@clisp.org>
42926
42927         * doc/functions/frexpl.texi: Update for mingw.
42928
42929 2007-06-01  Bruno Haible  <bruno@clisp.org>
42930
42931         * tests/test-lseek.c (main): Disable test of errno for invalid third
42932         argument.
42933         * doc/functions/lseek.texi: Update.
42934         Reported by Gary V. Vaughan <gary@gnu.org>.
42935
42936 2007-05-28  Bruno Haible  <bruno@clisp.org>
42937
42938         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
42939
42940 2007-05-31  Eric Blake  <ebb9@byu.net>
42941
42942         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
42943         cross compiling.
42944
42945 2007-05-30  Eric Blake  <ebb9@byu.net>
42946         and Bruno Haible  <bruno@clisp.org>
42947
42948         Work around mingw test failures exposed by m4-1.4.9b.
42949         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
42950         * tests/test-unistd.c: Disable uid_t and git_t tests for the
42951         moment.
42952
42953 2007-05-30  Bruno Haible  <bruno@clisp.org>
42954
42955         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
42956         assuming that they are closed. Needed on HP-UX 11.
42957
42958 2007-05-29  Bruno Haible  <bruno@clisp.org>
42959
42960         Fix a problem with #include_next.
42961         * lib/dirent_.h: Split the double-inclusion guard.
42962         * lib/fcntl_.h: Likewise.
42963         * lib/float_.h: Likewise.
42964         * lib/iconv_.h: Likewise.
42965         * lib/inttypes_.h: Likewise.
42966         * lib/locale_.h: Likewise.
42967         * lib/math_.h: Likewise.
42968         * lib/netinet_in_.h: Likewise.
42969         * lib/search_.h: Likewise.
42970         * lib/signal_.h: Likewise.
42971         * lib/stdint_.h: Likewise.
42972         * lib/stdio_.h: Likewise.
42973         * lib/stdlib_.h: Likewise.
42974         * lib/string_.h: Likewise.
42975         * lib/sys_select_.h: Likewise.
42976         * lib/sys_socket_.h: Likewise.
42977         * lib/sys_stat_.h: Likewise.
42978         * lib/sys_time_.h: Likewise.
42979         * lib/sysexits_.h: Likewise.
42980         * lib/time_.h: Likewise.
42981         * lib/unistd_.h: Likewise.
42982         * lib/wchar_.h: Likewise.
42983         * lib/wctype_.h: Likewise.
42984
42985 2007-05-29  Bruno Haible  <bruno@clisp.org>
42986
42987         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
42988         for the moment.
42989
42990 2007-05-29  Bruno Haible  <bruno@clisp.org>
42991
42992         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
42993         invocation.
42994         Reported by Eric Blake.
42995
42996 2007-05-29  Bruno Haible  <bruno@clisp.org>
42997
42998         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
42999         compiling case.
43000
43001 2007-05-29  Eric Blake  <ebb9@byu.net>
43002             Bruno Haible  <bruno@clisp.org>
43003
43004         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43005         cross compiles.
43006
43007 2007-05-28  Eric Blake  <ebb9@byu.net>
43008
43009         * modules/closein-tests (test_closein_LDADD): Support test on
43010         cygwin with libtool.
43011
43012 2007-05-28  Bruno Haible  <bruno@clisp.org>
43013
43014         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43015         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43016         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43017         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43018         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43019         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43020         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43021         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43022         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43023
43024 2007-05-28  Eric Blake  <ebb9@byu.net>
43025
43026         Unconditionally include <config.h> in unit tests.
43027         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43028         * tests/test-allocsa.c, tests/test-arcfour.c,
43029         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43030         tests/test-array_list.c, tests/test-array_oset.c,
43031         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43032         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43033         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43034         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43035         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43036         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43037         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43038         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43039         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43040         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43041         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43042         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43043         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43044         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43045         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
43046         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
43047         test-md5.c, test-memmem.c, test-printf-posix.c,
43048         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
43049         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
43050         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
43051         test-strcasestr.c, test-striconv.c, test-striconveh.c,
43052         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
43053         test-vasnprintf-posix2.c, test-vasnprintf.c,
43054         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
43055         test-vfprintf-posix.c, test-vprintf-posix.c,
43056         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
43057         test-xvasprintf.c: Likewise.
43058
43059 2007-05-28  Bruno Haible  <bruno@clisp.org>
43060
43061         * gnulib-tool (func_import): Remember the --with-tests command-line
43062         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
43063         Reported by Eric Blake.
43064
43065 2007-05-28  Bruno Haible  <bruno@clisp.org>
43066
43067         * modules/ftell-tests: New file.
43068         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
43069         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
43070
43071         * lib/ftell.c: New file.
43072         * modules/ftell: New file.
43073         * m4/ftell.m4: New file.
43074         * doc/functions/ftell.texi: Update.
43075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
43076         REPLACE_FTELL.
43077         * lib/stdio_.h (rpl_ftell): New declaration.
43078         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
43079         REPLACE_FTELL.
43080
43081 2007-05-28  Eric Blake  <ebb9@byu.net>
43082
43083         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
43084
43085 2007-05-28  Bruno Haible  <bruno@clisp.org>
43086
43087         * modules/fseek-tests: New file.
43088         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
43089         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
43090
43091         * lib/fseek.c: New file.
43092         * modules/fseek: New file.
43093         * m4/fseek.m4: New file.
43094         * doc/functions/fseek.texi: Update.
43095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
43096         REPLACE_FSEEK.
43097         * lib/stdio_.h (rpl_fseek): New declaration.
43098         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
43099         REPLACE_FSEEK.
43100
43101 2007-05-28  Bruno Haible  <bruno@clisp.org>
43102
43103         * lib/stdio_.h (fflush): More comments.
43104
43105 2007-05-28  Bruno Haible  <bruno@clisp.org>
43106
43107         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
43108         runtime test.
43109
43110 2007-05-28  Eric Blake  <ebb9@byu.net>
43111
43112         Improve lseek module.
43113         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
43114         * lib/unistd_.h (lseek): Scale back link warning message.
43115         * tests/test-lseek.c: Beef up test.
43116         * tests/test-lseek.sh: Exercise more facets of lseek.
43117         Reported by Bruno Haible.
43118
43119 2007-05-28  Bruno Haible  <bruno@clisp.org>
43120
43121         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
43122         to define.
43123
43124 2007-05-27  Bruno Haible  <bruno@clisp.org>
43125
43126         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
43127
43128 2007-05-27  Bruno Haible  <bruno@clisp.org>
43129
43130         * modules/openmp: New file.
43131         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
43132         Noah Misch.
43133
43134 2007-05-26  Bruno Haible  <bruno@clisp.org>
43135
43136         * modules/chdir-long (Depends-on): Add fchdir.
43137         * modules/chdir-safer (Depends-on): Likewise.
43138         * modules/fts (Depends-on): Likewise.
43139         * modules/fts-lgpl (Depends-on): Likewise.
43140         * modules/openat (Depends-on): Likewise.
43141         * modules/savewd (Depends-on): Likewise.
43142
43143 2007-05-24  Eric Blake  <ebb9@byu.net>
43144
43145         Fix lseek on mingw.
43146         * modules/lseek: New module.
43147         * m4/lseek.m4: New file.
43148         * lib/lseek.c: New file.
43149         * modules/lseek-tests: New file.
43150         * tests/test-lseek.c: New file.
43151         * tests/test-lseek.sh: New file.
43152         * MODULES.html.sh: Document lseek module.
43153         * modules/fflush (Depends-on): Add lseek, fseeko.
43154         * modules/fseeko (Depends-on): Likewise.
43155         * modules/ftello (Depends-on): Likewise.
43156         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
43157         broken.
43158         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
43159         broken.
43160         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
43161         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
43162         * lib/ftello.c (rpl_ftello): Likewise.
43163         * tests/test-fseeko.c (main): Test this.
43164         * tests/test-fseeko.sh: Likewise.
43165         * tests/test-ftello.c (main): Likewise.
43166         * tests/test-ftello.sh: Likewise.
43167         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
43168         implies replacing fseek.
43169         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
43170         HAVE_FTELLO.
43171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
43172         * modules/unistd (Makefile.am): Likewise.
43173         * lib/unistd_.h (lseek): Declare a replacement.
43174         * doc/functions/lseek.texi (lseek): Document this fix.
43175         * doc/functions/fseek.texi (fseek): Likewise.
43176         * doc/functions/ftell.texi (ftell): Likewise.
43177
43178 2007-05-24  Bruno Haible  <bruno@clisp.org>
43179
43180         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
43181         in the printed representation of a NaN.
43182         * tests/test-vasprintf-posix.c (test_function): Likewise.
43183         * tests/test-snprintf-posix.h (test_function): Likewise.
43184         * tests/test-sprintf-posix.h (test_function): Likewise.
43185         Reported by Eric Blake.
43186
43187 2007-05-23  Eric Blake  <ebb9@byu.net>
43188
43189         Fix fseeko/ftello on cygwin 1.5.24.
43190         * doc/functions/fseeko.texi (fseeko): Document the fix.
43191         * doc/functions/ftello.texi (ftello): Document the fix.
43192         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
43193         * doc/functions/stdout.text (stdout): New file.
43194         * doc/functions/stderr.text (stderr): New file.
43195         * doc/gnulib.texi (Function Substitutes): Use new files.
43196         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
43197         prior to 1.7.0.
43198         * tests/test-ftello.c (main): Likewise for ftello.
43199         * tests/test-fseeko.sh: New file.
43200         * tests/test-ftello.sh: New file.
43201         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
43202         with seekable stdin.
43203         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
43204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
43205         (gl_REPLACE_FSEEKO): New macro.
43206         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
43207         * modules/fseeko (Files): Distribute fseeko.c.
43208         * modules/ftello (Files): Distribute ftello.c.
43209         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
43210         mode.
43211         * lib/ftello.c (rpl_ftello): New file.
43212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
43213         fseeko, ftello.
43214         (gl_STDIN_LARGE_OFFSET): New macro.
43215         * modules/stdio (Makefile.am): Perform the replacement.
43216         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
43217
43218 2007-05-23  Bruno Haible  <bruno@clisp.org>
43219
43220         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
43221         GNULIB_POSIXCHECK is defined.
43222
43223 2007-05-21  Bruno Haible  <bruno@clisp.org>
43224
43225         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
43226         Check also the output for NaN arguments. When cross-compiling, guess
43227         no on IRIX.
43228         * lib/vasnprintf.c: Update comments.
43229         * tests/test-vasnprintf-posix.c (strisnan): New function.
43230         (test_function): Use it.
43231         * tests/test-vasprintf-posix.c (strisnan): New function.
43232         (test_function): Use it.
43233         * tests/test-snprintf-posix.h (strisnan): New function.
43234         (test_function): Use it.
43235         * tests/test-sprintf-posix.h (strisnan): New function.
43236         (test_function): Use it.
43237         Reported by Eric Blake.
43238
43239 2007-05-20  Bruno Haible  <bruno@clisp.org>
43240
43241         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
43242         numbers that fails on BeOS.
43243         * doc/functions/frexpl.texi: Update.
43244
43245 2007-05-20  Jim Meyering  <jim@meyering.net>
43246
43247         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
43248         forced upon us by glibc-2.6.
43249
43250 2007-05-20  Bruno Haible  <bruno@clisp.org>
43251
43252         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
43253         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
43254         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
43255         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
43256         NEED_PRINTF_INFINITE.
43257         (is_infinitel): New function.
43258         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
43259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
43260         gl_PREREQ_VASNPRINTF_INFINITE.
43261         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
43262         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43263         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
43264         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
43265         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
43266         gl_PREREQ_VASNPRINTF_INFINITE.
43267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43271         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43272         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43273         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43274         * doc/functions/fprintf.texi: Update.
43275         * doc/functions/printf.texi: Update.
43276         * doc/functions/snprintf.texi: Update.
43277         * doc/functions/sprintf.texi: Update.
43278         * doc/functions/vfprintf.texi: Update.
43279         * doc/functions/vprintf.texi: Update.
43280         * doc/functions/vsnprintf.texi: Update.
43281         * doc/functions/vsprintf.texi: Update.
43282
43283 2007-05-20  Bruno Haible  <bruno@clisp.org>
43284
43285         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
43286         was not found in libc.
43287         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43288
43289 2007-05-20  Bruno Haible  <bruno@clisp.org>
43290
43291         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43292         printed as "-nan" instead of "nan".
43293         * tests/test-vasprintf-posix.c (test_function): Likewise.
43294         * tests/test-snprintf-posix.h (test_function): Likewise.
43295         * tests/test-sprintf-posix.h (test_function): Likewise.
43296         Needed for HP-UX 11.
43297
43298 2007-05-20  Jim Meyering  <jim@meyering.net>
43299
43300         Fix buggy test for the fchownat-deref bug.
43301         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
43302         symlink required for the run-test.  Without it, this test would
43303         always declare that fchownat doesn't work, and client code would
43304         unnecessarily use the replacement function with fixed libc.
43305         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
43306         Reported by Greg Schafer.
43307
43308 2007-05-19  Bruno Haible  <bruno@clisp.org>
43309
43310         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
43311         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
43312         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
43313         Needed for IRIX 6.5 and Solaris 2.5.1.
43314
43315 2007-05-19  Bruno Haible  <bruno@clisp.org>
43316
43317         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
43318         (test_function): Skip tests involving -0.0 on platforms where
43319         -0.0 = 0.0.
43320         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
43321         (test_function): Skip tests involving -0.0 on platforms where
43322         -0.0 = 0.0.
43323         * tests/test-snprintf-posix.h (have_minus_zero): New function.
43324         (test_function): Skip tests involving -0.0 on platforms where
43325         -0.0 = 0.0.
43326         * tests/test-sprintf-posix.h (have_minus_zero): New function.
43327         (test_function): Skip tests involving -0.0 on platforms where
43328         -0.0 = 0.0.
43329         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
43330         tests.
43331         * tests/test-printf-posix.h (test_function): Likewise.
43332         * tests/test-printf-posix.output: Remove all -0.0 related results.
43333         Needed for IRIX 6.5.
43334
43335 2007-05-19  Bruno Haible  <bruno@clisp.org>
43336
43337         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43338         printed as "nan0x7fffffff" instead of "nan".
43339         * tests/test-vasprintf-posix.c (test_function): Likewise.
43340         * tests/test-snprintf-posix.h (test_function): Likewise.
43341         * tests/test-sprintf-posix.h (test_function): Likewise.
43342         * tests/test-fprintf-posix.h (NaN): Remove macro.
43343         (test_function): Remove all NaN related tests.
43344         * tests/test-printf-posix.h (NaN): Remove macro.
43345         (test_function): Remove all NaN related tests.
43346         * tests/test-printf-posix.output: Remove all NaN related results.
43347         Needed for IRIX 6.5.
43348
43349 2007-05-19  Bruno Haible  <bruno@clisp.org>
43350
43351         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
43352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43353
43354 2007-05-19  Bruno Haible  <bruno@clisp.org>
43355
43356         * lib/float_.h: New file.
43357         * m4/float_h.m4: New file.
43358         * modules/float: New file.
43359         * modules/isnanl (Dependencies): Add float.
43360         * modules/isnanl-nolibm (Dependencies): Likewise.
43361         * modules/mathl (Dependencies): Likewise.
43362         * modules/printf-frexpl (Dependencies): Likewise.
43363         * modules/signbit (Dependencies): Likewise.
43364         * modules/vasnprintf (Dependencies): Likewise.
43365         * doc/headers/float.texi: Update.
43366
43367 2007-05-19  Jim Meyering  <jim@meyering.net>
43368
43369         * lib/utimens.c (gl_futimens): Rename from futimens,
43370         now that glibc-2.6 declares futimens.
43371         * lib/utimens.h: Likewise.
43372
43373 2007-05-19  Bruno Haible  <bruno@clisp.org>
43374
43375         Avoid test failures on mingw.
43376         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
43377         * tests/test-printf-posix.sh: Likewise.
43378         * tests/test-vfprintf-posix.sh: Likewise.
43379         * tests/test-vprintf-posix.sh: Likewise.
43380
43381 2007-05-19  Bruno Haible  <bruno@clisp.org>
43382
43383         Fix *printf result for NaN, Inf, -0.0 on mingw.
43384         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
43385         * lib/vasnprintf.c: Include math.h and isnan.h.
43386         (is_infinite_or_zero): New function.
43387         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
43388         values in the %f, %F, %e, %E, %g, %G directives.
43389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
43390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43391         gl_PRINTF_INFINITE and test its result. Invoke
43392         gl_PREREQ_VASNPRINTF_INFINITE.
43393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43397         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43400         * doc/functions/fprintf.texi: Update.
43401         * doc/functions/printf.texi: Update.
43402         * doc/functions/snprintf.texi: Update.
43403         * doc/functions/sprintf.texi: Update.
43404         * doc/functions/vfprintf.texi: Update.
43405         * doc/functions/vprintf.texi: Update.
43406         * doc/functions/vsnprintf.texi: Update.
43407         * doc/functions/vsprintf.texi: Update.
43408
43409 2007-05-19  Bruno Haible  <bruno@clisp.org>
43410
43411         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
43412         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
43413         Instead of multiplying with 10^k, set extra_zeroes to k.
43414         (scale10_round_long_double): Remove function.
43415
43416 2007-05-18  Bruno Haible  <bruno@clisp.org>
43417
43418         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
43419         introduced on 2007-05-06.
43420
43421 2007-05-18  Bruno Haible  <bruno@clisp.org>
43422
43423         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
43424         %g directives.
43425         * tests/test-vasprintf-posix.c (test_function): Likewise.
43426         * tests/test-snprintf-posix.h (test_function): Likewise.
43427         * tests/test-sprintf-posix.h (test_function): Likewise.
43428
43429 2007-05-18  Bruno Haible  <bruno@clisp.org>
43430
43431         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
43432         (strmatch): New function.
43433         (test_function): Test the %f directive on numbers of various exponents.
43434         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
43435         (strmatch): New function.
43436         (test_function): Test the %f directive on numbers of various exponents.
43437         * tests/test-snprintf-posix.h (strmatch): New function.
43438         (test_function): Test the %f directive on numbers of various exponents.
43439         * tests/test-sprintf-posix.h (strmatch): New function.
43440         (test_function): Test the %f directive on numbers of various exponents.
43441         * tests/test-snprintf-posix.c (SIZEOF): New macro.
43442         * tests/test-sprintf-posix.c (SIZEOF): New macro.
43443         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
43444         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
43445
43446 2007-05-18  Bruno Haible  <bruno@clisp.org>
43447
43448         Add support for 'long double' number output.
43449         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
43450         * lib/vasnprintf.c: Include math.h and float+.h.
43451         (mp_limb_t): New type.
43452         (GMP_LIMB_BITS): New macro.
43453         (mp_twolimb_t): New type.
43454         (GMP_TWOLIMB_BITS): New macro.
43455         (mpn_t): New type.
43456         (multiply, divide, convert_to_decimal, decode_long_double,
43457         scale10_round_long_double, scale10_round_decimal_long_double,
43458         floorlog10l): New functions.
43459         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
43460         for the %f, %F, %e, %E, %g, %G directives.
43461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
43462         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43463         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
43464         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
43465         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43466         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43467         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43468         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43469         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43470         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43471         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43472         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
43473         * modules/snprintf-posix (Depends-on): Likewise.
43474         * modules/sprintf-posix (Depends-on): Likewise.
43475         * modules/vasnprintf-posix (Depends-on): Likewise.
43476         * modules/vasprintf-posix (Depends-on): Likewise.
43477         * modules/vfprintf-posix (Depends-on): Likewise.
43478         * modules/vsnprintf-posix (Depends-on): Likewise.
43479         * modules/vsprintf-posix (Depends-on): Likewise.
43480         * modules/vasnprintf (Files): Add lib/float+.h.
43481         * doc/functions/fprintf.texi: Update.
43482         * doc/functions/printf.texi: Update.
43483         * doc/functions/snprintf.texi: Update.
43484         * doc/functions/sprintf.texi: Update.
43485         * doc/functions/vfprintf.texi: Update.
43486         * doc/functions/vprintf.texi: Update.
43487         * doc/functions/vsnprintf.texi: Update.
43488         * doc/functions/vsprintf.texi: Update.
43489
43490 2007-05-18  Bruno Haible  <bruno@clisp.org>
43491
43492         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
43493
43494 2007-05-18  Bruno Haible  <bruno@clisp.org>
43495
43496         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
43497         for printing 64-bit integers. Needed for mingw.
43498
43499 2007-05-18  Bruno Haible  <bruno@clisp.org>
43500
43501         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43502         gl_FUNC_FREXPL_WORKS.
43503         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
43504
43505 2007-05-18  Bruno Haible  <bruno@clisp.org>
43506
43507         * modules/frexpl-nolibm-tests: New file.
43508
43509         * modules/frexpl-nolibm: New file.
43510         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
43511
43512 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43513
43514         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
43515         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
43516         GCC 4.2, which otherwise issues a lot of warnings.
43517         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
43518         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
43519         Likewise.
43520         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
43521         * modules/iconv_open (iconv.h): Likewise.
43522         * modules/locale (locale.h): Likewise.
43523         * modules/netinet_in (netinet/in.h): Likewise.
43524         * modules/sys_select (sys_select.h): Likewise.
43525         * modules/sys_socket (sys/socket.h): Likewise.
43526         * modules/sys_stat (sys/stat.h): Likewise.
43527         * modules/sysexits (sysexits.h): Likewise.
43528         * modules/unistd (unistd.h): Likewise.
43529
43530 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43531
43532         * modules/closein-tests (Makefile.am): Distribute
43533         `test-closein.sh'.
43534
43535 2007-05-17  Bruno Haible  <bruno@clisp.org>
43536
43537         * tests/test-printf-posix.output: Renamed from
43538         tests/test-fprintf-posix.out.
43539         * modules/fprintf-posix-tests: Update.
43540         * modules/printf-posix-tests: Update.
43541         * modules/vfprintf-posix-tests: Update.
43542         * modules/vprintf-posix-tests: Update.
43543         * tests/test-fprintf-posix.sh: Update.
43544         * tests/test-printf-posix.sh: Update.
43545         * tests/test-vfprintf-posix.sh: Update.
43546         * tests/test-vprintf-posix.sh: Update.
43547         Reported by Ralf Wildenhues.
43548
43549 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43550
43551         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
43552         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
43553         GCC 4.2, which otherwise issues a lot of warnings.
43554         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
43555         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
43556         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
43557         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
43558         it should no longer be needed.
43559         * lib/string_.h: Likewise.
43560         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
43561         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
43562         * modules/inttypes (inttypes.h): Likewise.
43563         * modules/math (math.h): Likewise.
43564         * modules/search (search.h): Likewise.
43565         * modules/signal (signal.h): Likewise.
43566         * modules/stdint (stdint.h): Likewise.
43567         * modules/stdio (stdio.h): Likewise.
43568         * modules/stdlib (stdlib.h): Likewise.
43569         * modules/string (string.h): Likewise.
43570         * modules/sys_time (sys/time.h): Likewise.
43571         * modules/time (time.h): Likewise.
43572         * modules/wchar (wchar.h): Likewise.
43573         * modules/wctype (wtype.h): Likewise.
43574
43575 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43576
43577         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
43578
43579 2007-05-13  Bruno Haible  <bruno@clisp.org>
43580
43581         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
43582         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43583         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
43584         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43585         (gl_PREREQ_STRTOK_R): Don't require it here.
43586
43587 2007-05-13  Bruno Haible  <bruno@clisp.org>
43588
43589         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
43590         when used in C++ mode.
43591
43592 2007-05-12  Bruno Haible  <bruno@clisp.org>
43593
43594         * lib/linebuffer.h: Tweak doc.
43595         * lib/linebuffer.c: Likewise.
43596
43597 2007-05-12  James Youngman  <jay@gnu.org>
43598
43599         * lib/linebuffer.c (readlinebuffer_delim): New function,
43600         like readlinebuffer, but use a caller-specified delimiter.
43601         (readlinebuffer): Just call readlinebuffer_delim with '\n'
43602         as the delimiter.
43603         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
43604
43605 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43606
43607         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
43608         * modules/openat (Files): Remove openat-die.c.
43609         (Depends-on): Add openat-die.
43610         * modules/openat-die: New module.
43611
43612 2007-05-06  Bruno Haible  <bruno@clisp.org>
43613
43614         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
43615         Update with info about Cygwin.
43616         * doc/functions/fprintf.texi: Update.
43617         * doc/functions/printf.texi: Update.
43618         * doc/functions/snprintf.texi: Update.
43619         * doc/functions/sprintf.texi: Update.
43620         * doc/functions/vfprintf.texi: Update.
43621         * doc/functions/vprintf.texi: Update.
43622         * doc/functions/vsnprintf.texi: Update.
43623         * doc/functions/vsprintf.texi: Update.
43624         Reported by Eric Blake.
43625
43626 2007-05-06  Bruno Haible  <bruno@clisp.org>
43627
43628         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
43629         padding ourselves for the floating-point directives.
43630         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
43631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
43632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43633         gl_PRINTF_FLAG_ZERO and test its result. Invoke
43634         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
43635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
43637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43641         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43642         * tests/test-snprintf-posix.h (test_function): Also check the width
43643         and some flags in the %f directive.
43644         * tests/test-sprintf-posix.h (test_function): Likewise.
43645         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43646         * tests/test-vasprintf-posix.c (test_function): Likewise.
43647         * doc/functions/fprintf.texi: Update.
43648         * doc/functions/printf.texi: Update.
43649         * doc/functions/snprintf.texi: Update.
43650         * doc/functions/sprintf.texi: Update.
43651         * doc/functions/vfprintf.texi: Update.
43652         * doc/functions/vprintf.texi: Update.
43653         * doc/functions/vsnprintf.texi: Update.
43654         * doc/functions/vsprintf.texi: Update.
43655
43656 2007-05-06  Bruno Haible  <bruno@clisp.org>
43657
43658         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
43659         pass the ' flag character to sprintf or snprintf.
43660         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
43661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
43662         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43663         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
43664         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
43665         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
43667         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43668         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43669         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43671         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43672         * tests/test-snprintf-posix.h (test_function): Also check the grouping
43673         flag.
43674         * tests/test-sprintf-posix.h (test_function): Likewise.
43675         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43676         * tests/test-vasprintf-posix.c (test_function): Likewise.
43677         * doc/functions/fprintf.texi: Update.
43678         * doc/functions/printf.texi: Update.
43679         * doc/functions/snprintf.texi: Update.
43680         * doc/functions/sprintf.texi: Update.
43681         * doc/functions/vfprintf.texi: Update.
43682         * doc/functions/vprintf.texi: Update.
43683         * doc/functions/vsnprintf.texi: Update.
43684         * doc/functions/vsprintf.texi: Update.
43685
43686 2007-05-01  Bruno Haible  <bruno@clisp.org>
43687
43688         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
43689
43690 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
43691
43692         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
43693         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
43694
43695 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43696
43697         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
43698         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
43699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
43700
43701 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
43702
43703         * lib/argp-help.c (struct hol_entry): New member `ord'.
43704         (HOL_ENTRY_PTRCMP): Use ord for comparison
43705         (hol_sort): Initialize ord.
43706
43707 2007-05-01  Bruno Haible  <bruno@clisp.org>
43708
43709         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
43710         Reported by Eric Blake.
43711         * doc/gnulib.texi (Function Substitutes): Update.
43712
43713 2007-05-01  Bruno Haible  <bruno@clisp.org>
43714
43715         * doc/functions.texi: Remove file, now redundant through
43716         doc/functions/*.texi.
43717
43718 2007-05-01  Bruno Haible  <bruno@clisp.org>
43719
43720         * modules/argp (Depends-on): Add sleep.
43721
43722 2007-05-01  Bruno Haible  <bruno@clisp.org>
43723
43724         * modules/sleep-tests: New file.
43725         * tests/test-sleep.c: New file.
43726
43727         * modules/sleep: New file.
43728         * lib/sleep.c: New file.
43729         * m4/sleep.m4: New file.
43730         * lib/unistd_.h (sleep): New declaration.
43731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
43732         HAVE_SLEEP.
43733         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
43734         * doc/functions/sleep.texi: Document the sleep module.
43735
43736 2007-05-01  Bruno Haible  <bruno@clisp.org>
43737
43738         * lib/sigprocmask.h: Remove file.
43739         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
43740         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
43741         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
43742         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
43743         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
43744         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
43745         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
43746         HAVE_SIGSET_T as a shell variable.
43747         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
43748         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
43749         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
43750         (Depends-on): Add signal. Remove verify.
43751         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
43752         (Include): Mention <signal.h> instead of sigprocmask.h.
43753         * NEWS: Mention the change.
43754         * lib/fatal-signal.c: Don't include sigprocmask.h.
43755
43756 2007-05-01  Bruno Haible  <bruno@clisp.org>
43757
43758         * modules/signal: New file.
43759         * lib/signal_.h: New file.
43760         * m4/signal_h.m4: New file.
43761
43762 2007-05-01  Bruno Haible  <bruno@clisp.org>
43763
43764         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
43765         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
43766         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
43767         HAVE_WCTYPE_CTMP_BUG into wctype.h.
43768
43769 2007-05-01  Bruno Haible  <bruno@clisp.org>
43770
43771         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
43772         configure time.
43773         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
43774         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
43775         * modules/sys_stat (Makefile.am): Substitute their values into
43776         sys/stat.h.
43777
43778 2007-05-01  Bruno Haible  <bruno@clisp.org>
43779
43780         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
43781         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
43782         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
43783
43784 2007-05-01  Bruno Haible  <bruno@clisp.org>
43785
43786         * doc/header/assert.texi: Undo last change: don't mention the gnulib
43787         'assert' module here.
43788
43789 2007-05-01  Bruno Haible  <bruno@clisp.org>
43790
43791         * doc/functions/*.texi: New files.
43792         * doc/functions/google-ranking.txt: New file.
43793         * doc/gnulib.texi (Function Substitutes): New chapter.
43794         (ctime, inet_ntoa): Remove sections.
43795         * doc/ctime.texi: Remove file.
43796         * doc/inet_ntoa.texi: Remove file.
43797         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
43798         dependencies.
43799         (%.info): New rule, specifying a --reference-limit.
43800
43801 2007-05-01  Bruno Haible  <bruno@clisp.org>
43802
43803         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
43804
43805 2007-05-01  Bruno Haible  <bruno@clisp.org>
43806
43807         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
43808         the portability of 'mkdir' to mingw systems.
43809
43810 2007-05-01  Bruno Haible  <bruno@clisp.org>
43811
43812         * doc/headers/google-ranking.txt: New file.
43813
43814 2007-04-30  Eric Blake  <ebb9@byu.net>
43815
43816         Prefer fseeko to fseek.
43817         * modules/getpass (Depends-on): Add fseeko.
43818         * lib/getpass.c (getpass): Use fseeko, not fseek.
43819
43820 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
43821
43822         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
43823         assumes the sorting is stable, while most qsort implementations
43824         are not.  Use argument addresses to ensure they never compare as
43825         equal.
43826
43827         * tests/test-argp-2.sh (usage-indent test): Fix output
43828         (func_compare): Restore diff options
43829         * tests/test-argp.c: Restore #include "progname.h"
43830
43831 2007-04-29  Bruno Haible  <bruno@clisp.org>
43832
43833         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
43834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43835         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
43836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43837         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
43838         (configure.ac): Define CHECK_SNPRINTF_POSIX.
43839         (TESTS, check_PROGRAMS): Add test-snprintf.
43840         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
43841         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
43842         (TESTS, check_PROGRAMS): Add test-vsnprintf.
43843         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
43844         assertions that fail on HP-UX, OSF/1, or IRIX.
43845         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
43846
43847 2007-04-29  Bruno Haible  <bruno@clisp.org>
43848
43849         * MODULES.html.sh (posix_functions): Remove 'contents'.
43850
43851 2007-04-29  Karl Berry  <karl@gnu.org>
43852
43853         * config/srclist.txt (gendocs_template_min): new entry.
43854
43855 2007-04-29  Bruno Haible  <bruno@clisp.org>
43856
43857         Work around fpurge bug on BSD systems.
43858         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
43859         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
43860         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
43861         fpurge to rpl_fpurge if the system already has this function.
43862         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
43863         the case where the system already has this function. Correct invariants
43864         on BSD systems.
43865         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
43866         BSD systems.
43867
43868 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43869
43870         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
43871         proposed by Sven Verdoolaege.
43872
43873         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
43874         options.
43875         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
43876         (usage and help tests): Update
43877
43878 2007-04-29  Bruno Haible  <bruno@clisp.org>
43879
43880         * tests/test-fflush.c (main): Use a file of size 17, not 10.
43881         Print more information in case of failure. Disable a test on BeOS.
43882
43883 2007-04-29  Bruno Haible  <bruno@clisp.org>
43884
43885         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
43886         This helps debugging on systems on which no gdb is available.
43887
43888 2007-04-29  Bruno Haible  <bruno@clisp.org>
43889
43890         * lib/freading.h: Improve comments.
43891         * lib/fwriting.h: Likewise.
43892         * tests/test-freading.c (main): Don't check freading immediately after
43893         repositioning. Needed for glibc.
43894
43895 2007-04-29  Bruno Haible  <bruno@clisp.org>
43896
43897         * lib/freading.c (freading): Trivial simplification.
43898
43899 2007-04-28  Bruno Haible  <bruno@clisp.org>
43900
43901         * tests/test-fwriting.c (main): Also test the interaction between
43902         fflush and fwriting.
43903         * modules/fwriting-tests (Depends-on): Add fflush.
43904
43905         * tests/test-freading.c (main): Also test the interaction between
43906         fflush and freading.
43907         * modules/freading-tests (Depends-on): Add fflush.
43908
43909 2007-04-28  Bruno Haible  <bruno@clisp.org>
43910
43911         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
43912         fseeko and ftello.
43913         Suggested by Eric Blake.
43914
43915 2007-04-28  Jim Meyering  <jim@meyering.net>
43916
43917         Avoid false-negative in gl_STDINT_H's C99 conformance test.
43918         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
43919         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
43920
43921 2007-04-27  Eric Blake  <ebb9@byu.net>
43922
43923         * doc/headers/assert.texi (assert.h): Document assert module use.
43924
43925 2007-04-27  Bruno Haible  <bruno@clisp.org>
43926
43927         * doc/headers/*.texi: New files.
43928         * doc/gnulib.texi (Header File Substitutes): New chapter.
43929         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
43930         dependencies.
43931         (standards.info ,standards.html, standards.dvi): Update dependencies.
43932         (mostlyclean, clean): New targets.
43933
43934 2007-04-27  Bruno Haible  <bruno@clisp.org>
43935
43936         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
43937         * modules/sysexits (Files, Makefile.am): Update.
43938
43939         * lib/sys_socket_.h: Renamed from lib/socket_.h.
43940         * modules/sys_socket (Files, Makefile.am): Update.
43941
43942         * lib/sys_stat_.h: Renamed from lib/stat_.h.
43943         * modules/sys_stat (Files, Makefile.am): Update.
43944
43945 2007-04-27  Eric Blake  <ebb9@byu.net>
43946
43947         * lib/freading.h: Improve comments.
43948         * lib/fwriting.h: Likewise.
43949         * lib/fflush.c: Likewise.
43950
43951         Fix closein for mingw.
43952         * modules/closein-tests: Add tests for closein.
43953         * tests/test-closein.c: New file.
43954         * tests/test-closein.sh: Likewise.
43955         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
43956         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
43957
43958 2007-04-27  Bruno Haible  <bruno@clisp.org>
43959
43960         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
43961         version is < 6.
43962         * lib/math_.h [__DECC]: Likewise.
43963         * lib/stdio_.h [__DECC]: Likewise.
43964         * lib/stdlib_.h [__DECC]: Likewise.
43965         * lib/string_.h [__DECC]: Likewise.
43966         * lib/time_.h [__DECC]: Likewise.
43967         * lib/wchar_.h [__DECC]: Likewise.
43968         * lib/wctype_.h [__DECC]: Likewise.
43969
43970 2007-04-27  Bruno Haible  <bruno@clisp.org>
43971
43972         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
43973
43974 2007-04-27  Bruno Haible  <bruno@clisp.org>
43975
43976         * lib/fflush.c: Add comments.
43977         * modules/fpurge-tests (Depends-on): Add fflush.
43978         * modules/freadable-tests (Depends-on): Likewise.
43979         * modules/fwritable-tests (Depends-on): Likewise.
43980
43981 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
43982
43983         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
43984         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
43985         Report by Bruno Haible <bruno@clisp.org>.
43986
43987 2007-04-26  Eric Blake  <ebb9@byu.net>
43988
43989         Fix fflush on mingw.
43990         * modules/fflush (Depends-on): Add freading.
43991         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
43992         but unread data.
43993
43994 2007-04-26  Eric Blake  <ebb9@byu.net>
43995         and Bruno Haible  <bruno@clisp.org>
43996
43997         Implement freading and fwriting.
43998         * lib/freading.c: New file.
43999         * lib/freading.h: Likewise.
44000         * m4/freading.m4: Likewise.
44001         * modules/freading: Likewise.
44002         * modules/freading-tests: Likewise.
44003         * tests/test-freading.c: Likewise.
44004         * lib/fwriting.c: New file.
44005         * lib/fwriting.h: Likewise.
44006         * m4/fwriting.m4: Likewise.
44007         * modules/fwriting: Likewise.
44008         * modules/fwriting-tests: Likewise.
44009         * tests/test-fwriting.c: Likewise.
44010         * MODULES.html.sh (File stream based Input/Output): Mention them.
44011
44012 2007-04-26  Bruno Haible  <bruno@clisp.org>
44013
44014         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44015         'long' when we assume it.
44016         Suggested by Eric Blake.
44017
44018 2007-04-26  Bruno Haible  <bruno@clisp.org>
44019
44020         Ensure fseeko, ftello are declared on glibc systems.
44021         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44022         * modules/fseeko (configure.ac-early): Likewise.
44023         * modules/ftello (configure.ac-early): Likewise.
44024         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44025         AC_FUNC_FSEEKO for this.
44026         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44027         (gl_CHECK_FSEEKO): Remove macro.
44028
44029 2007-04-26  Bruno Haible  <bruno@clisp.org>
44030
44031         * tests/test-fflush.c (main): Also check the ftell result after
44032         fflush and fseek/fseeko.
44033         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44034         file descriptor position cache in the stream.
44035         * lib/fseeko.c (rpl_fseeko): Likewise.
44036
44037 2007-04-26  Bruno Haible  <bruno@clisp.org>
44038
44039         * modules/fflush-tests (Depends-on): Add fseeko.
44040
44041 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44042             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44043
44044         * lib/argz_.h: ensure error_t definition is obtained in same
44045         mechanism system argz.h would have.
44046         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
44047         argz facilities are known bad.  Err on the side of caution if
44048         cross-compiling.
44049
44050 2007-04-25  Eric Blake  <ebb9@byu.net>
44051
44052         * lib/fpurge.c (includes): Use stdlib.h for free.
44053         * tests/test-fflush.c (main): Also test fflush-fseeko.
44054
44055 2007-04-25  Bruno Haible  <bruno@clisp.org>
44056
44057         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
44058         * lib/fseeko.c: New file.
44059         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
44060         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44061         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
44062         gl_FUNC_FSEEKO.
44063         (gl_FUNC_FSEEKO): Invoke it.
44064         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
44065         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
44066         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
44067
44068 2007-04-25  Bruno Haible  <bruno@clisp.org>
44069
44070         * modules/fflush (Depends-on): Add ftello.
44071
44072 2007-04-25  Bruno Haible  <bruno@clisp.org>
44073
44074         * modules/ftello-tests: New file.
44075         * tests/test-ftello.c: New file.
44076
44077         * modules/ftello: New file.
44078         * m4/ftello.m4: New file.
44079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
44080         HAVE_FTELLO.
44081         * lib/stdio_.h (ftello): New declaration.
44082         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
44083         HAVE_FTELLO.
44084
44085 2007-04-25  Bruno Haible  <bruno@clisp.org>
44086
44087         * modules/fseeko-tests: New file.
44088         * tests/test-fseeko.c: New file.
44089
44090         * modules/fseeko: New file.
44091         * m4/fseeko.m4: New file.
44092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
44093         HAVE_FSEEKO.
44094         * lib/stdio_.h (fseeko): New declaration.
44095         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
44096         HAVE_FSEEKO.
44097
44098 2007-04-25  Bruno Haible  <bruno@clisp.org>
44099
44100         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
44101
44102 2007-04-25  Bruno Haible  <bruno@clisp.org>
44103
44104         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
44105         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
44106         * tests/test-unistd.c: Likewise.
44107         * tests/test-fcntl.c: Likewise.
44108
44109 2007-04-23  Eric Blake  <ebb9@byu.net>
44110
44111         * lib/fflush.c: Fix missing include.
44112         Reported by Bruno Haible.
44113
44114 2007-04-23  Bruno Haible  <bruno@clisp.org>
44115
44116         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
44117         Reported by Eric Blake.
44118
44119 2007-04-23  Bruno Haible  <bruno@clisp.org>
44120
44121         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
44122
44123 2007-04-23  Bruno Haible  <bruno@clisp.org>
44124
44125         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
44126
44127 2007-04-23  Bruno Haible  <bruno@clisp.org>
44128
44129         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
44130         Needed on HP-UX 11.
44131
44132 2007-04-16  Eric Blake  <ebb9@byu.net>
44133
44134         Make fflush rely on fpurge.
44135         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
44136         open coding all variants.
44137         * modules/fflush (Depends-on): Add fpurge and unistd.
44138         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
44139         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
44140
44141         Fix --with-tests compilation on cygwin.
44142         * modules/argmatch-tests (Makefile.am): List gnulib library first
44143         in LDADD.
44144         * modules/argp-tests (Makefile.am): Likewise.
44145         * modules/array-list-tests (Makefile.am): Likewise.
44146         * modules/array-oset-tests (Makefile.am): Likewise.
44147         * modules/avltree-list-tests (Makefile.am): Likewise.
44148         * modules/avltree-oset-tests (Makefile.am): Likewise.
44149         * modules/avltreehash-list-tests (Makefile.am): Likewise.
44150         * modules/carray-list-tests (Makefile.am): Likewise.
44151         * modules/dirname-tests (Makefile.am): Likewise.
44152         * modules/frexp-tests (Makefile.am): Likewise.
44153         * modules/isnanl-tests (Makefile.am): Likewise.
44154         * modules/linked-list-tests (Makefile.am): Likewise.
44155         * modules/linkedhash-list-tests (Makefile.am): Likewise.
44156         * modules/lock-tests (Makefile.am): Likewise.
44157         * modules/rbtree-list-tests (Makefile.am): Likewise.
44158         * modules/rbtree-oset-tests (Makefile.am): Likewise.
44159         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
44160         * modules/tls-tests (Makefile.am): Likewise.
44161         * modules/tsearch-tests (Makefile.am): Likewise.
44162         * modules/xvasprintf-tests (Makefile.am): Likewise.
44163
44164         Fix fpurge for cygwin.
44165         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
44166         value.
44167         * modules/fpurge-tests (Depends-on): Clean up trash.
44168
44169 2007-04-16  Simon Josefsson  <simon@josefsson.org>
44170
44171         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
44172
44173         * m4/autobuild.m4: Re-indent.
44174
44175 2007-04-13  Bruno Haible  <bruno@clisp.org>
44176
44177         * modules/fpurge-tests: New file.
44178         * tests/test-fpurge.c: New file.
44179
44180         * modules/fpurge: New file.
44181         * lib/fpurge.h: New file.
44182         * lib/fpurge.c: New file.
44183         * m4/fpurge.m4: New file.
44184
44185 2007-04-13  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/fbufmode-tests: New file.
44188         * tests/test-fbufmode.c: New file.
44189
44190         * modules/fbufmode: New file.
44191         * lib/fbufmode.h: New file.
44192         * lib/fbufmode.c: New file.
44193         * m4/fbufmode.m4: New file.
44194
44195 2007-04-13  Bruno Haible  <bruno@clisp.org>
44196
44197         * modules/fwritable-tests: New file.
44198         * tests/test-fwritable.c: New file.
44199
44200         * modules/fwritable: New file.
44201         * lib/fwritable.h: New file.
44202         * lib/fwritable.c: New file.
44203         * m4/fwritable.m4: New file.
44204
44205 2007-04-13  Bruno Haible  <bruno@clisp.org>
44206
44207         * modules/freadable-tests: New file.
44208         * tests/test-freadable.c: New file.
44209
44210         * modules/freadable: New file.
44211         * lib/freadable.h: New file.
44212         * lib/freadable.c: New file.
44213         * m4/freadable.m4: New file.
44214
44215 2007-04-13  Bruno Haible  <bruno@clisp.org>
44216
44217         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
44218         MOSTLYCLEANFILES.
44219
44220 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44221
44222         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
44223         gzip bootstrap.conf to avoid dragging in i18n machinery.
44224         (gnulib_tool_option): Use it.
44225
44226 2007-04-13  Bruno Haible  <bruno@clisp.org>
44227
44228         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
44229         %F directives.
44230         * tests/test-vasprintf-posix.c (test_function): Likewise.
44231         * tests/test-snprintf-posix.h (test_function): Likewise.
44232         * tests/test-sprintf-posix.h (test_function): Likewise.
44233         * tests/test-fprintf-posix.h (test_function): Likewise.
44234         * tests/test-printf-posix.h (test_function): Likewise.
44235         * tests/test-fprintf-posix.out: Likewise.
44236
44237 2007-04-13  Bruno Haible  <bruno@clisp.org>
44238
44239         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
44240         * modules/tls-tests (configure.ac): Likewise.
44241         Reported by Arto C. Nirkko <anirkko@insel.ch>.
44242
44243 2007-04-13  Bruno Haible  <bruno@clisp.org>
44244
44245         * lib/tls.c (glthread_tls_get): Fix return type.
44246         Patch by Arto C. Nirkko <anirkko@insel.ch>.
44247
44248 2007-04-12  Eric Blake  <ebb9@byu.net>
44249
44250         * modules/gettime (Depends-on): Remove gettime.
44251         Reported by Dmitry V. Levin.
44252
44253 2007-04-12  Bruno Haible  <bruno@clisp.org>
44254
44255         * modules/fflush (Include): Mention <stdio.h>.
44256         * modules/strtoimax (Include): Mention <inttypes.h>.
44257         * modules/strtoumax (Include): Likewise.
44258
44259 2007-04-12  Eric Blake  <ebb9@byu.net>
44260
44261         * .cvsignore: New file.
44262         * .gitignore: Likewise.
44263
44264 2007-04-12  Bruno Haible  <bruno@clisp.org>
44265
44266         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
44267         not before, since $(LDADD) often contains libgnu.a.
44268         * modules/striconv-tests (test_striconv_LDADD): Likewise.
44269         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
44270         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
44271         Needed on Cygwin.
44272
44273 2007-04-12  Eric Blake  <ebb9@byu.net>
44274
44275         Work around glibc's failure to flush stdin on fclose.
44276         * lib/closein.c (close_stdin): Flush stdin before closing.
44277
44278         Work around glibc's failure to reset seekable stdin on exit.
44279         * modules/closein: New module.
44280         * lib/closein.c: New file.
44281         * lib/closein.h: Likewise.
44282         * m4/closein.m4: Likewise.
44283         * MODULES.html.sh (File stream based Input/Output): Document it.
44284
44285 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44286
44287         * gnulib-tool: Rename generated 'autobuild' script to
44288         'do-autobuild' in --create-megatestdir output.
44289
44290         * doc/gnulib.texi (Build robot for gnulib): Fix.
44291
44292 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44293
44294         * modules/sysexits (Depends-on): Add absolute-header.
44295
44296 2007-04-12  Eric Blake  <ebb9@byu.net>
44297
44298         No need to preserve errno on success.
44299         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
44300         Reported by Bruno Haible.
44301
44302 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44303
44304         * MODULES.html.sh (Support for maintaining and releasing
44305         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
44306
44307 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44308
44309         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
44310
44311 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44312
44313         * modules/autobuild: New module.
44314
44315         * m4/autobuild.m4: New file.
44316
44317 2007-04-11  Bruno Haible  <bruno@clisp.org>
44318
44319         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
44320         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
44321         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
44322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
44323         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44324         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44325         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44327         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44328         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44329         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
44330         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44331         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
44333         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44334         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44335         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
44336         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44337         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44338         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
44339         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44340         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
44342         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44343         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44344         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
44345         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44346         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44347         Reported by Eric Blake.
44348
44349 2007-04-11  Bruno Haible  <bruno@clisp.org>
44350
44351         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
44352
44353 2007-04-10  Bruno Haible  <bruno@clisp.org>
44354
44355         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
44356         for NaN and Infinity. Needed on FreeBSD 6.1.
44357         * tests/test-vasnprintf-posix.c (test_function): Undo last change
44358         regarding results for "%010a" of Infinity and NaN.
44359         * tests/test-vasprintf-posix.c (test_function): Likewise.
44360         * tests/test-snprintf-posix.h (test_function): Likewise.
44361         * tests/test-sprintf-posix.h (test_function): Likewise.
44362         * tests/test-fprintf-posix.h (test_function): Likewise.
44363         * tests/test-printf-posix.h (test_function): Likewise.
44364         * tests/test-fprintf-posix.out: Likewise.
44365
44366 2007-04-10  Bruno Haible  <bruno@clisp.org>
44367
44368         * modules/locale-tests: New file.
44369         * tests/test-locale.c: New file.
44370
44371         * modules/locale: New file.
44372         * lib/locale_.h: New file.
44373         * m4/locale_h.m4: New file.
44374
44375 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
44376             Bruno Haible  <bruno@clisp.org>
44377
44378         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
44379         be determined, test for availability of the copysignf, copysign,
44380         copysignl functions.
44381         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
44382         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
44383         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
44384
44385 2007-04-09  Eric Blake  <ebb9@byu.net>
44386
44387         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
44388         * modules/stdio (Makefile.am): Support fflush.
44389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44390         * modules/fflush: New file.
44391         * lib/fflush.c: Likewise.
44392         * m4/fflush.m4: Likewise.
44393         * modules/fflush-tests: New test.
44394         * tests/test-fflush.c: Likewise.
44395         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
44396
44397 2007-04-06  Bruno Haible  <bruno@clisp.org>
44398
44399         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
44400         (VASNPRINTF): Use signbit for faster determination whether to print a
44401         minus sign.
44402         * modules/vasnprintf (Files): Remove lib/float+.h.
44403         * modules/fprintf-posix (Depends-on): Add signbit.
44404         * modules/snprintf-posix (Depends-on): Likewise.
44405         * modules/sprintf-posix (Depends-on): Likewise.
44406         * modules/vasnprintf-posix (Depends-on): Likewise.
44407         * modules/vasprintf-posix (Depends-on): Likewise.
44408         * modules/vfprintf-posix (Depends-on): Likewise.
44409         * modules/vsnprintf-posix (Depends-on): Likewise.
44410         * modules/vsprintf-posix (Depends-on): Likewise.
44411
44412 2007-04-06  Bruno Haible  <bruno@clisp.org>
44413
44414         * tests/test-frexp.c (main): Test also the sign bit of zero results.
44415         * tests/test-frexpl.c (main): Likewise.
44416         * tests/test-ldexpl.c (main): Likewise.
44417         * modules/frexp-tests (Depends-on): Add signbit.
44418         * modules/frexpl-tests (Depdends-on): Likewise.
44419         * modules/ldexpl-tests (Depdends-on): Likewise.
44420
44421 2007-04-06  Bruno Haible  <bruno@clisp.org>
44422
44423         * modules/signbit-tests: New file.
44424         * tests/test-signbit.c: New file.
44425
44426         * modules/signbit: New file.
44427         * lib/signbitf.c: New file.
44428         * lib/signbitd.c: New file.
44429         * lib/signbitl.c: New file.
44430         * m4/signbit.m4: New file.
44431         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
44432         (signbit): New macro.
44433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
44434         REPLACE_SIGNBIT.
44435         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
44436         REPLACE_FREXPL into math.h.
44437
44438 2007-04-06  Bruno Haible  <bruno@clisp.org>
44439
44440         * modules/isnanf-nolibm-tests: New file.
44441         * tests/test-isnanf.c: New file.
44442
44443         * modules/isnanf-nolibm: New file.
44444         * lib/isnanf.h: New file.
44445         * lib/isnanf.c: New file.
44446         * lib/isnan.c: Consider the USE_FLOAT macro.
44447         * m4/isnanf.m4: New file.
44448
44449 2007-04-06  Bruno Haible  <bruno@clisp.org>
44450
44451         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
44452         (Link): New section.
44453
44454         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
44455
44456 2007-04-06  Bruno Haible  <bruno@clisp.org>
44457
44458         Assume the 'long double' type.
44459         * m4/longdouble.m4: Remove file.
44460         * config/srclist.txt: Don't mention longdouble.m4.
44461         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
44462         * lib/float+.h: Likewise.
44463         * lib/frexp.c: Likewise.
44464         * lib/printf-args.h: Likewise.
44465         * lib/printf-args.c: Likewise.
44466         * lib/printf-frexp.c: Likewise.
44467         * lib/printf-parse.c: Likewise.
44468         * lib/vasnprintf.c: Likewise.
44469         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
44470         * m4/intl.m4: Likewise.
44471         * m4/isnanl.m4: Likewise.
44472         * m4/printf.m4: Likewise.
44473         * m4/printf-frexpl.m4: Likewise.
44474         * m4/vasnprintf.m4: Likewise.
44475         * modules/allocsa (Files): Remove m4/longdouble.m4.
44476         * modules/gettext (Files): Likewise.
44477         * modules/relocatable-prog-wrapper (Files): Likewise.
44478         * modules/vasnprintf (Files): Likewise.
44479         * modules/isnanl (Files): Likewise.
44480         (Include): Simplify.
44481         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
44482         (Include): Simplify.
44483         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
44484         (Include): Simplify.
44485         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
44486         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44487         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
44488         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44489         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44490         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44491         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
44492         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44493         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44494         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44495         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
44496         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44497         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
44498         * tests/test-isnanl.c: Likewise.
44499         * tests/test-snprintf-posix.h: Likewise.
44500         * tests/test-sprintf-posix.h: Likewise.
44501         * tests/test-vasnprintf-posix.c: Likewise.
44502         * tests/test-vasnprintf-posix2.c: Likewise.
44503         * tests/test-vasprintf-posix.c: Likewise.
44504
44505 2007-04-06  Bruno Haible  <bruno@clisp.org>
44506
44507         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
44508         * lib/math_.h [__DECC]: Include the overridden include file through
44509         #include_next, outside the double-inclusion guard.
44510         * lib/stdio_.h [__DECC]: Likewise.
44511         * lib/stdlib_.h [__DECC]: Likewise.
44512         * lib/string_.h [__DECC]: Likewise.
44513         * lib/time_.h [__DECC]: Likewise.
44514         * lib/wchar_.h [__DECC]: Likewise.
44515         * lib/wctype_.h [__DECC]: Likewise.
44516         * lib/inttypes_.h [__DECC]: Likewise.
44517         Reported by Albert Chin <china@thewrittenword.com> in
44518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
44519
44520 2007-04-04  Eric Blake  <ebb9@byu.net>
44521
44522         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
44523         1.5.x.
44524
44525 2007-04-04  Bruno Haible  <bruno@clisp.org>
44526
44527         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
44528         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
44529
44530 2007-04-04  Bruno Haible  <bruno@clisp.org>
44531
44532         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
44533         results for "%010a" of Infinity and NaN.
44534         * tests/test-vasprintf-posix.c (test_function): Likewise.
44535         * tests/test-snprintf-posix.h (test_function): Likewise.
44536         * tests/test-sprintf-posix.h (test_function): Likewise.
44537         * tests/test-fprintf-posix.h (test_function): Remove these tests.
44538         * tests/test-printf-posix.h (test_function): Likewise.
44539         * tests/test-fprintf-posix.out: Update.
44540         Needed for FreeBSD 6.1.
44541
44542 2007-04-04  Bruno Haible  <bruno@clisp.org>
44543
44544         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
44545         directly used by the gnulib modules nor by gnulib-tool.
44546
44547 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
44548
44549         * DEPENDENCIES: Give overall description of version dependency
44550         desirability.  Use more-typical names for apps.
44551         Add shell, coreutils, diffutils, grep, tar, gzip.
44552
44553 2007-04-04  Simon Josefsson  <simon@josefsson.org>
44554
44555         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
44556
44557 2007-04-04  Karl Berry  <karl@gnu.org>
44558
44559         * MODULES.html.sh (func_module): missing '.
44560
44561 2007-04-03  Bruno Haible  <bruno@clisp.org>
44562
44563         * modules/argmatch-tests (Makefile.am): New variable
44564         test_argmatch_LDADD.
44565         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
44566         * modules/array-list-tests (Makefile.am): New variable
44567         test_array_list_LDADD.
44568         * modules/array-oset-tests (Makefile.am): New variable
44569         test_array_oset_LDADD.
44570         * modules/avltree-list-tests (Makefile.am): New variable
44571         test_avltree_list_LDADD.
44572         * modules/avltree-oset-tests (Makefile.am): New variable
44573         test_avltree_oset_LDADD.
44574         * modules/avltreehash-list-tests (Makefile.am): New variable
44575         test_avltreehash_list_LDADD.
44576         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
44577         test_canonicalize_lgpl_LDADD.
44578         * modules/carray-list-tests (Makefile.am): New variable
44579         test_carray_list_LDADD.
44580         * modules/dirname-tests (Makefile.am): New variable
44581         test_dirname_LDADD.
44582         * modules/linked-list-tests (Makefile.am): New variable
44583         test_linked_list_LDADD.
44584         * modules/linkedhash-list-tests (Makefile.am): New variable
44585         test_linkedhash_list_LDADD.
44586         * modules/rbtree-list-tests (Makefile.am): New variable
44587         test_rbtree_list_LDADD.
44588         * modules/rbtree-oset-tests (Makefile.am): New variable
44589         test_rbtree_oset_LDADD.
44590         * modules/rbtreehash-list-tests (Makefile.am): New variable
44591         test_rbtreehash_list_LDADD.
44592         * modules/xvasprintf-tests (Makefile.am): New variable
44593         test_xvasprintf_LDADD.
44594         Reported by Eric Blake.
44595
44596 2007-04-03  Eric Blake  <ebb9@byu.net>
44597
44598         * DEPENDENCIES: Weaken m4 requirements.
44599
44600 2007-04-03  Bruno Haible  <bruno@clisp.org>
44601
44602         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
44603         * modules/isnanl-tests (configure.ac): Likewise.
44604
44605 2007-04-03  Ben Pfaff  <blp@gnu.org>
44606
44607         * modules/iconv_open: Add $(srcdir)/ to source directory
44608         references in Makefile fragments that call gperf, to fix VPATH
44609         builds.
44610
44611 2007-04-03  Bruno Haible  <bruno@clisp.org>
44612
44613         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
44614         * lib/ldexpl.c: Undo last change.
44615
44616 2007-04-03  Bruno Haible  <bruno@clisp.org>
44617
44618         * modules/printf-frexpl (Depends-on): Undo last change.
44619         (Files): Add m4/ldexpl.m4.
44620
44621 2007-04-03  Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
44624         * modules/isnanl (Link): New section.
44625
44626         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
44627         * modules/frexp (Link): New section.
44628
44629         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
44630         * modules/frexpl (Link): New section.
44631
44632         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
44633         * modules/ldexpl (Link): New section.
44634
44635 2007-04-03  Bruno Haible  <bruno@clisp.org>
44636
44637         * modules/TEMPLATE-EXTENDED: New file.
44638         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
44639
44640 2007-04-03  Bruno Haible  <bruno@clisp.org>
44641
44642         * DEPENDENCIES: New file.
44643         Suggested by Simon Josefsson.
44644
44645 2007-04-03  Bruno Haible  <bruno@clisp.org>
44646
44647         * doc/gnulib.texi: Escape @.
44648
44649 2007-04-03  James Youngman  <jay@gnu.org>
44650         and Paul Eggert  <eggert@cs.ucla.edu>
44651
44652         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
44653         birthtime on all systems that have birthtime, not just those which
44654         use st_birthtimensec rather than st_birthtim.  Putting zero in
44655         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
44656         that the birth time is not available for files on an NFS mount.
44657
44658 2007-04-03  Simon Josefsson  <simon@josefsson.org>
44659
44660         * modules/memxor: Move back from crypto/, suggested by Bruno.
44661         * modules/crypto/hmac-sha1: Fix memxor dependency.
44662
44663         * modules/crypto/gc: Moved from ../.
44664
44665 2007-04-02  Eric Blake  <ebb9@byu.net>
44666
44667         * lib/ldexpl.c (includes): Avoid libm.
44668
44669         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
44670
44671 2007-04-02  Bruno Haible  <bruno@clisp.org>
44672
44673         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
44674         on IRIX.
44675
44676 2007-04-02  Bruno Haible  <bruno@clisp.org>
44677
44678         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
44679         x86 or x86_64 platforms running MacOS X.
44680         Reported by Ryan Schmidt <@ryandesign.com>.
44681
44682 2007-04-02  Bruno Haible  <bruno@clisp.org>
44683
44684         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
44685         i386.
44686
44687 2007-04-01  Simon Josefsson  <simon@josefsson.org>
44688
44689         * modules/crypto/arcfour: Moved from ../.
44690         * modules/crypto/arcfour-tests: Moved from ../.
44691         * modules/crypto/arctwo: Moved from ../.
44692         * modules/crypto/arctwo-tests: Moved from ../.
44693         * modules/crypto/des: Moved from ../.
44694         * modules/crypto/des-tests: Moved from ../.
44695         * modules/crypto/gc-arcfour: Moved from ../.
44696         * modules/crypto/gc-arcfour-tests: Moved from ../.
44697         * modules/crypto/gc-arctwo: Moved from ../.
44698         * modules/crypto/gc-arctwo-tests: Moved from ../.
44699         * modules/crypto/gc-des: Moved from ../.
44700         * modules/crypto/gc-des-tests: Moved from ../.
44701         * modules/crypto/gc-hmac-md5: Moved from ../.
44702         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
44703         * modules/crypto/gc-hmac-sha1: Moved from ../.
44704         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
44705         * modules/crypto/gc-md2: Moved from ../.
44706         * modules/crypto/gc-md2-tests: Moved from ../.
44707         * modules/crypto/gc-md4: Moved from ../.
44708         * modules/crypto/gc-md4-tests: Moved from ../.
44709         * modules/crypto/gc-md5: Moved from ../.
44710         * modules/crypto/gc-md5-tests: Moved from ../.
44711         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
44712         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
44713         * modules/crypto/gc-random: Moved from ../.
44714         * modules/crypto/gc-rijndael: Moved from ../.
44715         * modules/crypto/gc-rijndael-tests: Moved from ../.
44716         * modules/crypto/gc-sha1: Moved from ../.
44717         * modules/crypto/gc-sha1-tests: Moved from ../.
44718         * modules/crypto/gc-tests: Moved from ../.
44719         * modules/crypto/hmac-md5: Moved from ../.
44720         * modules/crypto/hmac-md5-tests: Moved from ../.
44721         * modules/crypto/hmac-sha1: Moved from ../.
44722         * modules/crypto/hmac-sha1-tests: Moved from ../.
44723         * modules/crypto/md2: Moved from ../.
44724         * modules/crypto/md2-tests: Moved from ../.
44725         * modules/crypto/md4: Moved from ../.
44726         * modules/crypto/md4-tests: Moved from ../.
44727         * modules/crypto/md5: Moved from ../.
44728         * modules/crypto/md5-tests: Moved from ../.
44729         * modules/crypto/memxor: Moved from ../.
44730         * modules/crypto/rijndael: Moved from ../.
44731         * modules/crypto/rijndael-tests: Moved from ../.
44732         * modules/crypto/sha1: Moved from ../.
44733
44734 2007-03-30  James Youngman  <jay@gnu.org>
44735
44736         * tests/test-stat-time.c (prepare_test): use chmod() rather than
44737         rename() to change the ctime of a file (because ctime is unaffected
44738         by rename on jfs2 on AIX 5.1).
44739         (main): Start by doing cleanup, in case a previous run failed leaving
44740         test files behind.
44741
44742 2007-03-31  Bruno Haible  <bruno@clisp.org>
44743
44744         Support old proprietary implementations of iconv.
44745         * modules/iconv_open: New file.
44746         * lib/iconv_.h: New file.
44747         * m4/iconv_h.m4: New file.
44748         * lib/iconv_open.c: New file.
44749         * lib/iconv_open-aix.gperf: New file.
44750         * lib/iconv_open-hpux.gperf: New file.
44751         * lib/iconv_open-irix.gperf: New file.
44752         * lib/iconv_open-osf.gperf: New file.
44753         * m4/iconv_open.m4: New file.
44754         * modules/linebreak (Depends-on): Add iconv_open.
44755         * modules/striconv (Depends-on): Likewise.
44756         * modules/striconveh (Depends-on): Likewise.
44757         * modules/unicodeio (Depends-on): Likewise.
44758         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
44759         (iconv_t)(-1).
44760         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
44761         conversion if cd is (iconv_t)(-1).
44762         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
44763         is not possible.
44764
44765 2007-03-31  Bruno Haible  <bruno@clisp.org>
44766
44767         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
44768         work on Solaris either. Protect also second use of "autodetect_jp".
44769
44770 2007-03-31  Bruno Haible  <bruno@clisp.org>
44771
44772         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
44773         the function is not present.
44774
44775 2007-03-31  Bruno Haible  <bruno@clisp.org>
44776
44777         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
44778         the function is not present.
44779
44780 2007-03-31  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
44783         a bug in HP-UX iconv_open().
44784
44785 2007-03-31  Bruno Haible  <bruno@clisp.org>
44786
44787         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
44788         (Mathematics <math.h>): New section, add fpieee.
44789         (Input/output <stdio.h>): Add fseterr.
44790         (Mathematics <math.h>): New section, add printf-frexp.
44791         (Container data structures): Add sublist.
44792         (Core language properties): Add fpucw, inline.
44793         (Functions for greatest-width integer types <inttypes.h>): Add
44794         imaxabs, imaxdiv, inttypes.
44795         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
44796         isnanl-nolibm, ldexp.
44797         (Mathematics <math.h>): New section, add printf-frexpl.
44798         (Support for systems lacking POSIX:2001): Add fprintf-posix,
44799         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
44800         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
44801         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
44802         (Unicode string functions): Add unistr/u*-mbtoucr.
44803         (Java): Add javacomp-script, javaexec-script.
44804         (C#): Add csharpcomp-script, csharpexec-script.
44805         (Support for building libraries and executables): Add havelib,
44806         relocatable-*.
44807         (Support for maintaining and releasing projects): Renamed from
44808         'Support for maintaining and release projects'. Add announce-gen.
44809
44810 2007-03-31  Bruno Haible  <bruno@clisp.org>
44811
44812         * README: Talk primarily about git.
44813         (git and CVS): Renamed from CVS.
44814         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
44815         gnulib is available through git.
44816         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
44817
44818 2007-03-30  Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
44821         * lib/poll_.h: Likewise.
44822         * lib/stat_.h: Likewise.
44823         * lib/sys_time_.h: Likewise.
44824         * lib/sysexit_.h: Likewise.
44825         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
44826         * lib/stdbool_.h: Likewise.
44827         * lib/byteswap_.h: Add double-inclusion guard.
44828
44829 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
44830
44831         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
44832
44833 2007-03-30  Karl Berry  <karl@gnu.org>
44834
44835         * config/srclist-update: double space after USA in the license
44836         substitution, since that's how it's usually (?) written.
44837
44838 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44839
44840         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
44841         reported by Bruno Haible.
44842
44843 2007-03-29  Bruno Haible  <bruno@clisp.org>
44844
44845         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
44846         a bug in AIX iconv().
44847
44848 2007-03-29  Bruno Haible  <bruno@clisp.org>
44849
44850         * modules/ldexpl-tests: New file.
44851         * tests/test-ldexpl.c: New file.
44852
44853 2007-03-29  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/ldexpl.c: Include fpucw.h.
44856         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
44857         multiplication.
44858         * modules/ldexpl (Depends-on): Add fpucw.
44859
44860 2007-03-29  Bruno Haible  <bruno@clisp.org>
44861
44862         * modules/ldexpl: New file.
44863         * m4/ldexpl.m4: New file.
44864         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
44865         set.
44866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
44867         REPLACE_LDEXPL.
44868         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
44869         REPLACE_LDEXPL.
44870         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44871         gl_FUNC_LDEXPL_WORKS.
44872         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
44873         * modules/mathl (Files): Remove lib/ldexpl.c.
44874         (Depends-on): Add ldexpl.
44875
44876 2007-03-29  Bruno Haible  <bruno@clisp.org>
44877
44878         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
44879
44880 2007-03-29  Bruno Haible  <bruno@clisp.org>
44881
44882         * tests/test-striconveh.c (main): Don't assume that a direct conversion
44883         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
44884         and possibly also HP-UX.
44885         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
44886         work on AIX, IRIX, HP-UX, OSF/1.
44887         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44888         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44889         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44890         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44891         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
44892         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44893
44894 2007-03-29  Bruno Haible  <bruno@clisp.org>
44895
44896         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
44897
44898 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44899
44900         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
44901         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
44902
44903 2007-03-29  Eric Blake  <ebb9@byu.net>
44904
44905         * lib/acl-internal.h: Remove redundant include.
44906         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
44907         Cygwin when a file is locked.
44908
44909 2007-03-29  Bruno Haible  <bruno@clisp.org>
44910
44911         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
44912         file.
44913         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
44914
44915 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44916
44917         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
44918         try to remove a parent directory if the child couldn't be removed
44919         (except for the first rmdir, which could fail because the child
44920         doesn't exist).  Problem reported by Jeff Blaine in
44921         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
44922
44923 2007-03-28  Bruno Haible  <bruno@clisp.org>
44924
44925         * lib/striconveh.c (utf8conv_carefully): New function.
44926         (mem_cd_iconveh_internal): Invoke it.
44927
44928 2007-03-28  Bruno Haible  <bruno@clisp.org>
44929
44930         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
44931         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
44932         input.
44933         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
44934         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
44935         unistr/u8-uctomb.
44936
44937 2007-03-28  Bruno Haible  <bruno@clisp.org>
44938
44939         * modules/unistr/u8-mbtoucr: New file.
44940         * lib/unistr/u8-mbtoucr.c: New file.
44941         * modules/unistr/u16-mbtoucr: New file.
44942         * lib/unistr/u16-mbtoucr.c: New file.
44943         * modules/unistr/u16-mbtoucr: New file.
44944         * lib/unistr/u16-mbtoucr.c: New file.
44945         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
44946
44947 2007-03-27  Simon Josefsson  <simon@josefsson.org>
44948             Bruno Haible  <bruno@clisp.org>
44949
44950         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
44951         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
44952         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
44953
44954         * m4/stdio_h.m4: Add stubs for vasprintf too.
44955
44956         * modules/stdio: Support vasprintf in sed command.
44957
44958         * modules/vasprintf: Depend on stdio for prototypes.  Remove
44959         vasprintf.h.  Add stdio module indicator.
44960
44961         * lib/stdio_.h: Declare asprintf and vasprintf, based on
44962         vasprintf.h.
44963
44964         * lib/vasprintf.h: File removed.
44965
44966         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
44967         * lib/vasprintf.c: Ditto.
44968         * lib/xvasprintf.c: Ditto.
44969         * tests/test-vasprintf-posix.c: Ditto.
44970         * tests/test-vasprintf.c: Ditto.
44971
44972 2007-03-27  Bruno Haible  <bruno@clisp.org>
44973
44974         Make vasnprintf multithread-safe.
44975         * lib/vasnprintf.c (decimal_point_char): New function.
44976         (VASNPRINTF): Use it.
44977         Suggested by Simon Josefsson.
44978
44979 2007-03-27  Eric Blake  <ebb9@byu.net>
44980
44981         Support sub-second birthtime on cygwin.
44982         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
44983         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
44984         (get_stat_birthtime): Also work with st_birthtim.
44985
44986 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
44987
44988         * lib/stat-time.h (USE_BIRTHTIME): Remove.
44989         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
44990         (get_stat_birthtime_ns): Do not try to use "spare" fields.
44991         (get_stat_birthtime_ns): Simplify compile-time tests.
44992         (get_stat_birthtime): Change the API to look like
44993         get_stat_mtime etc., except return a negative tv_nsec on error.
44994         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
44995         Don't check for "spare" fields.
44996         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
44997         or for struct stat.st_birthtime, as these tests aren't used.
44998         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
44999
45000 2007-03-27  Bruno Haible  <bruno@clisp.org>
45001
45002         * lib/stat-time.h: Include <sys/stat.h>.
45003
45004 2007-03-27  James Youngman  <jay@gnu.org>
45005
45006         * lib/stat-time.h (get_stat_birthtime): New function for
45007           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45008         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45009           and its variants.
45010         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45011         * modules/stat-time-test: New file.
45012         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45013
45014 2007-03-26  Bruno Haible  <bruno@clisp.org>
45015
45016         Better support of signalling NaNs.
45017         * lib/atanl.c: Include isnanl.h.
45018         (atanl): Perform test for NaN at the beginning of the function and
45019         through a call to isnanl.
45020         * lib/cosl.c: Include isnanl.h.
45021         (cosl): Perform test for NaN at the beginning of the function and
45022         through a call to isnanl.
45023         * lib/ldexpl.c: Include isnanl.h.
45024         (ldexpl): Perform test for NaN through a call to isnanl.
45025         * lib/logl.c: Include isnanl.h.
45026         (logl): Perform test for NaN at the beginning of the function and
45027         through a call to isnanl.
45028         * lib/sinl.c: Include isnanl.h.
45029         (sinl): Perform test for NaN at the beginning of the function and
45030         through a call to isnanl.
45031         * lib/sqrtl.c: Include isnanl.h.
45032         (sqrtl): Perform test for NaN at the beginning of the function and
45033         through a call to isnanl.
45034         * lib/tanl.c: Include isnanl.h.
45035         (tanl): Perform test for NaN at the beginning of the function and
45036         through a call to isnanl.
45037         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45038         * modules/mathl (Depends-on): Add isnanl.
45039
45040 2007-03-26  Eric Blake  <ebb9@byu.net>
45041
45042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45043         regression in logic sense of previous patch.
45044
45045 2007-03-26  Bruno Haible  <bruno@clisp.org>
45046
45047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
45048         unportable shell command "if ! ...".
45049         Reported by Ralf Wildenhues.
45050
45051 2007-03-25  Bruno Haible  <bruno@clisp.org>
45052
45053         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
45054         <sysexits.h> file, and only add EX_CONFIG.
45055         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
45056         absolute file name and whether it is sufficient. Substitute also
45057         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
45058         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
45059         ABSOLUTE_SYSEXITS_H into sysexits.h.
45060
45061 2007-03-25  Bruno Haible  <bruno@clisp.org>
45062
45063         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
45064         hints is NULL.
45065
45066 2007-03-25  Bruno Haible  <bruno@clisp.org>
45067
45068         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
45069         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
45070
45071 2007-03-25  Bruno Haible  <bruno@clisp.org>
45072
45073         * lib/vasnprintf.c: Include langinfo.h.
45074         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
45075         multithread-safe.
45076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
45077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
45078         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45079         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45080         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45081         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45082         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45083         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
45084         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45085         Reported by Simon Josefsson.
45086
45087 2007-03-25  Bruno Haible  <bruno@clisp.org>
45088
45089         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
45090         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
45091         * modules/vasnprintf (Depends-on): Add stdint.
45092
45093 2007-03-25  Bruno Haible  <bruno@clisp.org>
45094
45095         * modules/fpieee: New file.
45096         * m4/fpieee.m4: New file.
45097         * modules/isnan-nolibm (Depends-on): Add fpieee.
45098         * modules/isnanl-nolibm (Depends-on): Add fpieee.
45099         * modules/isnanl (Depends-on): Add fpieee.
45100
45101 2007-03-25  Bruno Haible  <bruno@clisp.org>
45102
45103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
45104
45105 2007-03-25  Bruno Haible  <bruno@clisp.org>
45106
45107         Avoid test failures on IRIX 6.5.
45108         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
45109         (main): Use it.
45110         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
45111         macros.
45112         (main): Use them.
45113
45114 2007-03-25  Bruno Haible  <bruno@clisp.org>
45115
45116         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
45117         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
45118         exists but doesn't work.
45119         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
45120         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
45121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
45122         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
45123
45124 2007-03-25  Bruno Haible  <bruno@clisp.org>
45125
45126         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
45127         returns inf. Needed on IRIX 6.5.
45128
45129 2007-03-25  Bruno Haible  <bruno@clisp.org>
45130
45131         * tests/test-frexpl.c: Include isnanl-nolibm.h.
45132         (main): Use isnanl instead of x != x idiom.
45133         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
45134
45135         * tests/test-frexp.c: Include isnan.h.
45136         (main): Use isnan instead of x != x idiom.
45137         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
45138
45139 2007-03-25  Bruno Haible  <bruno@clisp.org>
45140
45141         * tests/test-frexp.c (NaN): New function/macro.
45142         (main): Use it instead of 0.0 / 0.0.
45143         * tests/test-isnan.c (NaN): New function/macro.
45144         (main): Use it instead of 0.0 / 0.0.
45145         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
45146         (test_function): Use it instead of 0.0 / 0.0.
45147         * tests/test-vasprintf-posix.c (NaN): New function/macro.
45148         (test_function): Use it instead of 0.0 / 0.0.
45149         * tests/test-snprintf-posix.h (NaN): New function/macro.
45150         (test_function): Use it instead of 0.0 / 0.0.
45151         * tests/test-sprintf-posix.h (NaN): New function/macro.
45152         (test_function): Use it instead of 0.0 / 0.0.
45153         * tests/test-fprintf-posix.h (NaN): New function/macro.
45154         (test_function): Use it instead of 0.0 / 0.0.
45155         * tests/test-printf-posix.h (NaN): New function/macro.
45156         (test_function): Use it instead of 0.0 / 0.0.
45157
45158         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
45159
45160 2007-03-25  Bruno Haible  <bruno@clisp.org>
45161
45162         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
45163
45164 2007-03-25  Bruno Haible  <bruno@clisp.org>
45165
45166         * lib/regexec.c (merge_state_with_log): Make static.
45167
45168 2007-03-25  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/trigl.c (kernel_rem_pio2): Make static.
45171
45172 2007-03-25  Bruno Haible  <bruno@clisp.org>
45173
45174         * lib/sincosl.c (sincosl_table): Make static.
45175
45176 2007-03-25  Bruno Haible  <bruno@clisp.org>
45177
45178         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
45179         if the compiler does not support C99.
45180
45181 2007-03-25  Bruno Haible  <bruno@clisp.org>
45182
45183         * modules/time (Makefile.am): Ensure all rule action lines start with a
45184         tab.
45185
45186 2007-03-24  Bruno Haible  <bruno@clisp.org>
45187
45188         * modules/tsearch-tests: New file.
45189         * tests/test-tsearch.sh: New file.
45190         * tests/test-tsearch.c: New file, mostly copied from glibc.
45191
45192         * modules/search-tests: New file.
45193         * tests/test-search.c: New file.
45194
45195         * modules/search: New file.
45196         * lib/search_.h: New file, incorporating lib/tsearch.h.
45197         * m4/search_h.m4: New file.
45198         * lib/tsearch.h: Remove file.
45199         * lib/tsearch.c: Include search.h instead of tsearch.h.
45200         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
45201         HAVE_TSEARCH.
45202         * modules/tsearch (Files): Remove lib/tsearch.h.
45203         (Depends-on): Add search.
45204         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
45205         (Include): Change tsearch.h into search.h.
45206
45207 2007-03-24  Bruno Haible  <bruno@clisp.org>
45208
45209         * modules/fpucw: New file.
45210         * lib/fpucw.h: New file.
45211         * lib/frexp.c: Include fpucw.h.
45212         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45213         (FUNC): Use them.
45214         * lib/printf-frexp.c: Include fpucw.h.
45215         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45216         (FUNC): Use them.
45217         * lib/vasnprintf.c: Include fpucw.h.
45218         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
45219         'long double' calculations.
45220         * tests/test-frexpl.c: Include fpucw.h.
45221         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45222         * tests/test-printf-frexpl.c: Include fpucw.h.
45223         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45224         * modules/frexpl (Depends-on): Add fpucw.
45225         * modules/printf-frexpl (Depends-on): Likewise.
45226         * modules/fprintf-posix (Depends-on): Likewise.
45227         * modules/snprintf-posix (Depends-on): Likewise.
45228         * modules/sprintf-posix (Depends-on): Likewise.
45229         * modules/vasnprintf-posix (Depends-on): Likewise.
45230         * modules/vasprintf-posix (Depends-on): Likewise.
45231         * modules/vfprintf-posix (Depends-on): Likewise.
45232         * modules/vsnprintf-posix (Depends-on): Likewise.
45233         * modules/vsprintf-posix (Depends-on): Likewise.
45234         * modules/frexpl-tests (Depends-on): Likewise.
45235         * modules/printf-frexpl-tests (Depends-on): Likewise.
45236
45237 2007-03-24  Bruno Haible  <bruno@clisp.org>
45238
45239         * lib/float+.h: New file.
45240         * lib/isnan.c: Include float+.h.
45241         (SIZE): New macro.
45242         (FUNC): Compare only SIZE bytes of the value.
45243         * lib/vasnprintf.c: Include float+.h.
45244         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
45245         SIZEOF_LDBL or SIZEOF_DBL bytes.
45246         * modules/isnan-nolibm (Files): Add lib/float+.h.
45247         * modules/isnanl-nolibm (Files): Add lib/float+.h.
45248         * modules/isnanl (Files): Add lib/float+.h.
45249         * modules/vasnprintf (Files): Add lib/float+.h.
45250
45251 2007-03-24  Bruno Haible  <bruno@clisp.org>
45252
45253         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
45254         include isnanl-nolibm.h.
45255
45256 2007-03-24  Bruno Haible  <bruno@clisp.org>
45257
45258         * tests/test-read-file.c (main): Don't produce spurious output for
45259         expected situations. Make the test fail if it encountered unexpected
45260         results.
45261
45262 2007-03-24  Bruno Haible  <bruno@clisp.org>
45263
45264         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
45265         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
45266
45267 2007-03-24  Bruno Haible  <bruno@clisp.org>
45268
45269         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
45270
45271 2007-03-24  Bruno Haible  <bruno@clisp.org>
45272
45273         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
45274         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
45275
45276         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
45277         * modules/utf8-ucs4: Turn into a symbolic link to module
45278         unistr/u8-mbtouc.
45279
45280         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
45281         utf8-ucs4-unsafe.
45282         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
45283         unistr/u8-mbtouc-unsafe.
45284
45285         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
45286         * modules/utf16-ucs4: Turn into a symbolic link to module
45287         unistr/u16-mbtouc.
45288
45289         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
45290         utf16-ucs4-unsafe.
45291         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
45292         unistr/u16-mbtouc-unsafe.
45293
45294         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
45295         * modules/ucs4-utf8: Turn into a symbolic link to module
45296         unistr/u8-ubtomb.
45297
45298         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
45299         * modules/ucs4-utf16: Turn into a symbolic link to module
45300         unistr/u16-ubtomb.
45301
45302 2007-03-24  Bruno Haible  <bruno@clisp.org>
45303
45304         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
45305         Enable the function only if HAVE_INLINE.
45306         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
45307         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45308         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
45309         Enable the function only if HAVE_INLINE.
45310         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
45311         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45312         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
45313         Enable the function only if HAVE_INLINE.
45314         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
45315         Enable the function only if HAVE_INLINE.
45316         * modules/utf8-ucs4: Update.
45317         * modules/utf8-ucs4-unsafe: Update.
45318         * modules/utf16-ucs4: Update.
45319         * modules/utf16-ucs4-unsafe: Update.
45320         * modules/ucs4-utf8: Update.
45321         * modules/ucs4-utf16: Update.
45322
45323 2007-03-24  Bruno Haible  <bruno@clisp.org>
45324
45325         * lib/utf8-ucs4.h: Remove file.
45326         * lib/utf8-ucs4-unsafe.h: Remove file.
45327         * lib/utf16-ucs4.h: Remove file.
45328         * lib/utf16-ucs4-unsafe.h: Remove file.
45329         * lib/ucs4-utf8.h: Remove file.
45330         * lib/ucs4-utf16.h: Remove file.
45331         * lib/unistr.h: Include their previous contents.
45332         * m4/utf-ucs4.m4: Remove file.
45333         * m4/ucs4-utf.m4: Remove file.
45334         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
45335         (Depends-on): Add unistr/base.
45336         (configure.ac): Remove gl_UTF_UCS4.
45337         (Makefile.am): Update.
45338         (Include): Change to unistr.h.
45339         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
45340         (Depends-on): Add unistr/base.
45341         (configure.ac): Remove gl_UTF_UCS4.
45342         (Makefile.am): Update.
45343         (Include): Change to unistr.h.
45344         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
45345         (Depends-on): Add unistr/base.
45346         (configure.ac): Remove gl_UTF_UCS4.
45347         (Makefile.am): Update.
45348         (Include): Change to unistr.h.
45349         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
45350         (Depends-on): Add unistr/base.
45351         (configure.ac): Remove gl_UTF_UCS4.
45352         (Makefile.am): Update.
45353         (Include): Change to unistr.h.
45354         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
45355         (Depends-on): Add unistr/base.
45356         (configure.ac): Remove gl_UCS4_UTF.
45357         (Makefile.am): Update.
45358         (Include): Change to unistr.h.
45359         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
45360         (Depends-on): Add unistr/base.
45361         (configure.ac): Remove gl_UCS4_UTF.
45362         (Makefile.am): Update.
45363         (Include): Change to unistr.h.
45364         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
45365         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
45366         utf8-ucs4-unsafe.h.
45367         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
45368         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
45369         utf16-ucs4-unsafe.h.
45370         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
45371         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
45372         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
45373         * lib/unistr/u8-strchr.c: Likewise.
45374         * lib/unistr/u8-strrchr.c: Likewise.
45375         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
45376         * lib/unistr/u16-strchr.c: Likewise.
45377         * lib/unistr/u16-strrchr.c: Likewise.
45378         * lib/striconveh.c: Update.
45379         * lib/linebreak.c: Update.
45380
45381 2007-03-24  Bruno Haible  <bruno@clisp.org>
45382
45383         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
45384         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
45385
45386 2007-03-22  Bruno Haible  <bruno@clisp.org>
45387
45388         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
45389
45390 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
45391
45392         * MODULES.html.sh (File system functions): New module write-any-file.
45393         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
45394         * m4/write-any-file.m4: New files.
45395
45396 2007-03-23  Eric Blake  <ebb9@byu.net>
45397
45398         * gnulib-tool: Rearrange space-tab sequences, since some editors
45399         like to eat them.
45400
45401 2007-03-23  Eric Blake  <ebb9@byu.net>
45402
45403         * lib/version-etc.c (version_etc_va): Update license wording to
45404         be more concise.  Recommended by Richard Stallman.
45405
45406 2007-03-22  Bruno Haible  <bruno@clisp.org>
45407
45408         * lib/poll.c (MSG_PEEK): New fallback definition.
45409
45410 2007-03-22  Bruno Haible  <bruno@clisp.org>
45411
45412         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
45413         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
45414         (main): Update.
45415         Fixes a compilation error on BeOS.
45416
45417 2007-03-22  Bruno Haible  <bruno@clisp.org>
45418
45419         * modules/frexpl-tests: New file.
45420         * tests/test-frexpl.c: New file.
45421
45422         * modules/frexpl: New file.
45423         * m4/frexpl.m4: New file.
45424         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
45425         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
45426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
45427         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
45428         (Depends-on): Add frexpl. Remove isnanl-nolibm.
45429         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
45430
45431 2007-03-22  Bruno Haible  <bruno@clisp.org>
45432
45433         * lib/frexpl.c: Share code with lib/frexp.c.
45434         * modules/mathl (Files): Add lib/frexp.c.
45435         (Depends-on): Add isnanl-nolibm.
45436
45437 2007-03-22  Bruno Haible  <bruno@clisp.org>
45438
45439         * modules/printf-frexp (Files): Add m4/frexp.m4.
45440         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
45441         only if the found frexp function actually works.
45442
45443 2007-03-22  Bruno Haible  <bruno@clisp.org>
45444
45445         * lib/frexp.c: Remove older implementation that uses divisions.
45446
45447 2007-03-21  Bruno Haible  <bruno@clisp.org>
45448
45449         * modules/frexp-tests: New file.
45450         * tests/test-frexp.c: New file.
45451
45452         * modules/frexp: New file.
45453         * lib/frexp.c: New file.
45454         * m4/frexp.m4: New file.
45455         * lib/math_.h (frexp): New declaration.
45456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
45457         REPLACE_FREXP.
45458         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
45459
45460 2007-03-21  Bruno Haible  <bruno@clisp.org>
45461
45462         * modules/isnanl-tests: New file.
45463         * tests/test-isnanl.c: New file.
45464
45465         * modules/isnanl: New file.
45466         * lib/isnanl.h: New file.
45467         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
45468         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
45469         gl_FUNC_ISNANL_WORKS.
45470         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
45471         New macros.
45472
45473 2007-03-21  Bruno Haible  <bruno@clisp.org>
45474
45475         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
45476         lib/isnanl.h.
45477         (Include): Update.
45478         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
45479         * lib/vasnprintf.c: Update.
45480         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
45481         tests/test-isnanl.h, remove tests/test-isnanl.c.
45482         (Makefile.am): Update.
45483         * tests/test-isnanl-nolibm.c: New file.
45484         * tests/test-isnanl.h: New file.
45485         * tests/test-isnanl.c: Remove file.
45486
45487 2007-03-21  Jim Meyering  <jim@meyering.net>
45488
45489         When trying to open ".", treat ESTALE like EACCES.
45490         * lib/savewd.c (savewd_save): Resort to forking not just upon
45491         failure with EACCES, but also when errno is ESTALE.
45492
45493 2007-03-20  Bruno Haible  <bruno@clisp.org>
45494
45495         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
45496         Needed on AIX 5.1. Reported by Matthew Woehlke.
45497
45498 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45499
45500         Suggestions by Bruno Haible:
45501         * lib/acl-internal.h: Include "gettext.h" rather than rolling
45502         our own.
45503         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
45504         * modules/acl (Depends-on): Add gettext.
45505
45506 2007-03-19  Bruno Haible  <bruno@clisp.org>
45507
45508         * modules/iconvme: Remove file.
45509         * lib/iconvme.h: Remove file.
45510         * lib/iconvme.c: Remove file.
45511         * m4/iconvme.m4: Remove file.
45512
45513 2007-03-19  Bruno Haible  <bruno@clisp.org>
45514
45515         * doc/relocatable-maint.texi: Break long shell script line.
45516         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
45517
45518 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45519
45520         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
45521         handle file_has_acl.
45522         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
45523         * lib/acl.c: Move header inclusions and related macro defns into
45524         lib/acl-internal.h.
45525         (S_ISLNK): Remove defn, since that's now done for us.
45526         (file_has_acl): Move to lib/file-has-acl.c.
45527         Call acl_trivial if available.  This is the crucial part of the fix.
45528         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
45529         shared within the library.  Rewrite a bit, partly to make it compatible
45530         with the GNU coding style.
45531         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
45532         Remove unnecessary double-quotes.
45533         Don't test for acl_to_text; the build will catch that.
45534         Replace acl_entries if it doesn't exist and it is needed.
45535         Check for -lsec and acl_trivial (as used on Solaris 10).
45536         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
45537         lib/file-has-acl.c.
45538         (Depends-on): Add sys_stat, for S_ISLNK.
45539
45540 2007-03-19  Ben Pfaff  <blp@gnu.org>
45541
45542         * doc/gnulib.texi: Fix typos.
45543         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
45544
45545 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45546
45547         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
45548         If size is zero here, buf must be zero.
45549
45550 2007-03-19  Simon Josefsson  <simon@josefsson.org>
45551
45552         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
45553         <bruno@clisp.org>.
45554
45555 2007-03-18  Bruno Haible  <bruno@clisp.org>
45556
45557         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
45558         Suggested by Eric Blake.
45559
45560 2007-03-18  Ben Pfaff  <blp@gnu.org>
45561
45562         * doc/relocatable.texi: Recommend using as prefix a directory
45563         that does not exist and will never be created.  Based on
45564         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
45565         and others.
45566
45567 2007-03-17  Bruno Haible  <bruno@clisp.org>
45568
45569         * lib/fchownat.c: Include lchown.h.
45570
45571 2007-03-17  Bruno Haible  <bruno@clisp.org>
45572
45573         Fix endless loop when the given allocated size was > INT_MAX.
45574         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
45575         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
45576         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
45577         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
45578         * lib/sprintf.c (sprintf): Likewise.
45579
45580 2007-03-17  Bruno Haible  <bruno@clisp.org>
45581
45582         * tests/test-argp-2.sh (func_compare): Output a context diff.
45583
45584 2007-03-17  Bruno Haible  <bruno@clisp.org>
45585
45586         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
45587         locale's decimal-point character.
45588
45589 2007-03-17  Bruno Haible  <bruno@clisp.org>
45590
45591         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
45592         before comparing it. Needed because on some platforms (e.g. x86) a
45593         'long double' occupies less bytes than sizeof (long double).
45594
45595 2007-03-17  Bruno Haible  <bruno@clisp.org>
45596
45597         * tests/test-crc.c (main): Make printf statements 64-bit clean.
45598         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
45599         * tests/test-getaddrinfo.c (simple): Likewise.
45600         * tests/test-read-file.c (main): Likewise.
45601
45602 2007-03-17  Bruno Haible  <bruno@clisp.org>
45603
45604         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
45605
45606 2007-03-17  Bruno Haible  <bruno@clisp.org>
45607
45608         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
45609         unused variable.
45610
45611 2007-03-17  Bruno Haible  <bruno@clisp.org>
45612
45613         * tests/test-c-strcasecmp.c: Include c-strcase.h.
45614         * tests/test-c-strncasecmp.c: Likewise.
45615
45616 2007-03-17  Bruno Haible  <bruno@clisp.org>
45617
45618         * modules/stdlib (Depends-on): Add unistd.
45619         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
45620         Needed for MacOS X 10.3.
45621
45622 2007-03-17  Bruno Haible  <bruno@clisp.org>
45623
45624         * lib/unistr/u-strdup.h: Include <stdlib.h>.
45625
45626 2007-03-17  Bruno Haible  <bruno@clisp.org>
45627
45628         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
45629
45630 2007-03-17  Bruno Haible  <bruno@clisp.org>
45631
45632         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
45633         to reflect files copied from gnulib (with or without modifications).
45634         Suggested by Jim Meyering.
45635
45636 2007-03-17  Eric Blake  <ebb9@byu.net>
45637
45638         * NEWS: Document stdlib change from 2007-02-18.
45639
45640 2007-03-17  Jim Meyering  <jim@meyering.net>
45641
45642         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
45643         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
45644         someone uses a name containing shell meta-characters.
45645         Reported by Alfred M. Szmidt.
45646
45647         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
45648
45649 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
45650
45651         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
45652         and copy gettext configuration files only if configure.ac contains
45653         a use of AM_GNU_GETTEXT_VERSION.
45654
45655 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
45656
45657         * build-aux/bootstrap (gnulib_name): New variable.
45658         (gnulib_tool_options): Use it.
45659
45660 2007-03-13  Simon Josefsson  <simon@josefsson.org>
45661
45662         * tests/test-des.c: Use new namespace.
45663
45664 2007-03-15  Bruno Haible  <bruno@clisp.org>
45665
45666         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
45667         Reported by James Youngman <jay@gnu.org>.
45668
45669 2007-03-15  Bruno Haible  <bruno@clisp.org>
45670
45671         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
45672         declared prototype. Needed with cc on OSF/1 5.1.
45673
45674 2007-03-15  Bruno Haible  <bruno@clisp.org>
45675
45676         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
45677         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
45678         (struct gl_list_implementation): Add dispose_fn argument to the
45679         'create_empty', 'create' methods.
45680         (struct gl_list_impl_base): Add field 'dispose_fn'.
45681         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
45682         argument.
45683         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
45684         dispose_fn argument.
45685         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
45686         dispose_fn on the dropped values.
45687         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
45688         dispose_fn argument.
45689         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
45690         dropped values.
45691         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
45692         (gl_tree_remove_node): Call dispose_fn on the dropped value.
45693         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
45694         (gl_tree_remove_node): Call dispose_fn on the dropped value.
45695         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
45696         argument.
45697         (gl_tree_list_free): Call dispose_fn on the dropped values.
45698         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
45699         the dropped values.
45700         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
45701         Add dispose_fn argument.
45702         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
45703         Call dispose_fn on the dropped values.
45704         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
45705         Add dispose_fn argument.
45706         (gl_sublist_create): Initialize the 'dispose_fn' field.
45707         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
45708         * tests/test-array_list.c (main): Update.
45709         * tests/test-carray_list.c (main): Update.
45710         * tests/test-avltree_list.c (main): Update.
45711         * tests/test-rbtree_list.c (main): Update.
45712         * tests/test-avltreehash_list.c (main): Update.
45713         * tests/test-rbtreehash_list.c (main): Update.
45714         * tests/test-linked_list.c (main): Update.
45715         * tests/test-linkedhash_list.c (main): Update.
45716         * tests/test-array_oset.c (main): Update.
45717
45718 2007-03-15  Bruno Haible  <bruno@clisp.org>
45719
45720         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
45721         (gl_oset_create_empty): Add dispose_fn argument.
45722         (struct gl_oset_implementation): Add dispose_fn argument to
45723         'create_empty' method.
45724         (struct gl_oset_impl_base): Add dispose_fn field.
45725         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
45726         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
45727         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
45728         values.
45729         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
45730         (gl_tree_oset_free): Call dispose_fn on the dropped values.
45731         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
45732         dropped value.
45733         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
45734         dropped value.
45735         * tests/test-array_oset.c (main): Update.
45736         * tests/test-avltree_oset.c (main): Update.
45737         * tests/test-rbtree_oset.c (main): Update.
45738         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
45739
45740 2007-03-13  Bruno Haible  <bruno@clisp.org>
45741
45742         * tests/test-stdbool.c (i): Update after last patch.
45743
45744 2007-03-12  Bruno Haible  <bruno@clisp.org>
45745
45746         * lib/quotearg.c: Include <wctype.h> early, before the definition of
45747         the iswprint macro. Needed on Solaris 2.5.1.
45748
45749 2007-03-12  Bruno Haible  <bruno@clisp.org>
45750
45751         * tests/test-printf-frexp.c (main): Declare x as volatile.
45752
45753 2007-03-12  Simon Josefsson  <simon@josefsson.org>
45754
45755         * doc/gnulib.texi (Build robot for gnulib): New section.
45756
45757 2007-03-12  Jim Meyering  <jim@meyering.net>
45758
45759         * build-aux/bootstrap: New file.
45760         * build-aux/bootstrap.conf: New file, from coreutils.
45761
45762 2007-03-11  Bruno Haible  <bruno@clisp.org>
45763
45764         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
45765
45766 2007-03-12  Simon Josefsson  <simon@josefsson.org>
45767
45768         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
45769         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
45770         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
45771
45772 2007-03-11  Bruno Haible  <bruno@clisp.org>
45773
45774         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
45775         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
45776
45777 2007-03-11  Bruno Haible  <bruno@clisp.org>
45778
45779         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
45780         formula. Needed for SunPRO C 5.0.
45781
45782 2007-03-11  Bruno Haible  <bruno@clisp.org>
45783
45784         * modules/long-options (Depends-on): Add getopt.
45785
45786 2007-03-11  Bruno Haible  <bruno@clisp.org>
45787
45788         * modules/modechange (Depends-on): Add stdbool.
45789
45790 2007-03-11  Bruno Haible  <bruno@clisp.org>
45791
45792         * modules/i-ring (Depends-on): Add stdbool.
45793
45794 2007-03-11  Bruno Haible  <bruno@clisp.org>
45795
45796         * modules/gc-des (Depends-on): Add stdbool.
45797
45798 2007-03-11  Bruno Haible  <bruno@clisp.org>
45799
45800         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
45801
45802 2007-03-11  Bruno Haible  <bruno@clisp.org>
45803
45804         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
45805
45806 2007-03-11  Bruno Haible  <bruno@clisp.org>
45807
45808         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
45809
45810 2007-03-11  Bruno Haible  <bruno@clisp.org>
45811
45812         * lib/vasnprintf.c (sprintf): Undefine.
45813
45814 2007-03-11  Bruno Haible  <bruno@clisp.org>
45815
45816         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
45817         initializers in SunPRO C and Compaq C compilers.
45818
45819 2007-03-11  Bruno Haible  <bruno@clisp.org>
45820
45821         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
45822         decrementing code ANSI C compliant.
45823
45824 2007-03-11  Bruno Haible  <bruno@clisp.org>
45825
45826         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
45827         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
45828
45829 2007-03-11  Bruno Haible  <bruno@clisp.org>
45830
45831         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
45832         <stdbool.h> substitute doesn't pass.
45833
45834 2007-03-11  Bruno Haible  <bruno@clisp.org>
45835
45836         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
45837
45838 2007-03-11  Bruno Haible  <bruno@clisp.org>
45839
45840         * gnulib-tool (func_create_megatestdir): Create also an autobuild
45841         script, for submission to autobuild.josefsson.org.
45842
45843 2007-03-10  Bruno Haible  <bruno@clisp.org>
45844
45845         * modules/canonicalize-lgpl-tests: New file.
45846         * tests/test-canonicalize-lgpl.sh: New file.
45847         * tests/test-canonicalize-lgpl.c: New file.
45848
45849         * modules/c-strcase-tests: New file.
45850         * tests/test-c-strcase.sh: New file.
45851         * tests/test-c-strcasecmp.c: New file.
45852         * tests/test-c-strncasecmp.c: New file.
45853
45854         * modules/atexit-tests: New file.
45855         * tests/test-atexit.sh: New file.
45856         * tests/test-atexit.c: New file.
45857
45858 2007-03-10  Bruno Haible  <bruno@clisp.org>
45859
45860         * tests/test-binary-io.sh: Use temporary filenames that are not so
45861         likely to clash with those of other tests (in a parallel make).
45862         * tests/test-binary-io.c: Likewise.
45863
45864 2007-03-10  Bruno Haible  <bruno@clisp.org>
45865
45866         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
45867         fallback; use #error instead.
45868         Suggested by Simon Josefsson.
45869
45870 2007-03-10  Bruno Haible  <bruno@clisp.org>
45871
45872         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
45873         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
45874         first and the last.
45875
45876 2007-03-10  Bruno Haible  <bruno@clisp.org>
45877
45878         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
45879
45880 2007-03-10  Bruno Haible  <bruno@clisp.org>
45881
45882         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
45883         "make distcheck".
45884         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
45885         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
45886         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
45887
45888 2007-03-10  Bruno Haible  <bruno@clisp.org>
45889
45890         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
45891         variable.
45892         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
45893         variable.
45894
45895 2007-03-09  Eric Blake  <ebb9@byu.net>
45896         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
45897
45898         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
45899         types are not being provided by gnulib.
45900         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
45901         types are supported.
45902
45903 2007-03-10  Bruno Haible  <bruno@clisp.org>
45904
45905         * lib/stdio_.h (__attribute__): New macro.
45906         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
45907         vsprintf): Specify __attribute__ __format__ for GCC.
45908         Suggested by Eric Blake.
45909
45910 2007-03-09  Bruno Haible  <bruno@clisp.org>
45911
45912         * modules/printf-posix-tests: New file.
45913         * tests/test-printf-posix.sh: New file.
45914         * tests/test-printf-posix.c: New file.
45915
45916         * modules/printf-posix: New file.
45917         * lib/printf.c: New file.
45918         * m4/printf-posix-rpl.m4: New file.
45919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
45920         REPLACE_PRINTF.
45921         * lib/stdio_.h (printf): New declaration.
45922         (format, __format__, ____printf____, ____scanf____, ____strftime____,
45923         ____strfmon____): New macros.
45924         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
45925         REPLACE_PRINTF.
45926
45927 2007-03-09  Bruno Haible  <bruno@clisp.org>
45928
45929         * tests/test-vasnprintf-posix2.sh: New file.
45930         * tests/test-vasnprintf-posix2.c: New file.
45931         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
45932         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45933         (Makefile.am): Activate test-vasnprintf-posix2.sh.
45934
45935         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
45936         a locale dependent decimal point, rather than always '.'.
45937
45938 2007-03-09  Eric Blake  <ebb9@byu.net>
45939
45940         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
45941         spite of platforms like Tandem/NSK that define it to -1.
45942
45943 2007-03-08  Bruno Haible  <bruno@clisp.org>
45944
45945         * modules/vprintf-posix-tests: New file.
45946         * tests/test-vprintf-posix.sh: New file.
45947         * tests/test-vprintf-posix.c: New file.
45948         * tests/test-printf-posix.h: New file.
45949
45950         * modules/vprintf-posix: New file.
45951         * lib/vprintf.c: New file.
45952         * m4/vprintf-posix.m4: New file.
45953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
45954         REPLACE_VPRINTF.
45955         * lib/stdio_.h (vprintf): New declaration.
45956         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
45957         REPLACE_VPRINTF.
45958
45959 2007-03-08  Bruno Haible  <bruno@clisp.org>
45960
45961         * modules/fprintf-posix-tests: New file.
45962         * tests/test-fprintf-posix.sh: New file.
45963         * tests/test-fprintf-posix.c: New file.
45964
45965         * modules/fprintf-posix: New file.
45966         * lib/fprintf.c: New file.
45967         * m4/fprintf-posix.m4: New file.
45968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
45969         REPLACE_FPRINTF.
45970         * lib/stdio_.h (fprintf): New declaration.
45971         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
45972         REPLACE_FPRINTF.
45973
45974 2007-03-08  Bruno Haible  <bruno@clisp.org>
45975
45976         * modules/vfprintf-posix-tests: New file.
45977         * tests/test-vfprintf-posix.sh: New file.
45978         * tests/test-vfprintf-posix.c: New file.
45979         * tests/test-fprintf-posix.h: New file.
45980         * tests/test-fprintf-posix.out: New file.
45981
45982         * modules/vfprintf-posix: New file.
45983         * lib/vfprintf.c: New file.
45984         * m4/vfprintf-posix.m4: New file.
45985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
45986         REPLACE_VFPRINTF.
45987         * lib/stdio_.h (vfprintf): New declaration.
45988         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
45989         REPLACE_VFPRINTF.
45990
45991 2007-03-08  Bruno Haible  <bruno@clisp.org>
45992
45993         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
45994
45995 2007-03-08  Bruno Haible  <bruno@clisp.org>
45996
45997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
45998         instead of 'expr' invocations.
45999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46001         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46004         Suggested by Paul Eggert.
46005
46006 2007-03-08  Bruno Haible  <bruno@clisp.org>
46007
46008         * modules/fseterr-tests: New file.
46009         * tests/test-fseterr.c: New file.
46010
46011         * modules/fseterr: New file.
46012         * lib/fseterr.h: New file.
46013         * lib/fseterr.c: New file.
46014
46015 2007-03-08  Bruno Haible  <bruno@clisp.org>
46016
46017         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46018         * lib/getopt_.h: Likewise.
46019         * lib/mbswidth.h: Likewise.
46020         * lib/setenv.h: Likewise.
46021         * lib/vasnprintf.h: Likewise.
46022         * lib/vasprintf.h: Likewise.
46023         * lib/verror.h: Likewise.
46024         * lib/xsetenv.h: Likewise.
46025         * lib/xvasprintf.h: Likewise.
46026
46027 2007-03-08  Jim Meyering  <jim@meyering.net>
46028
46029         * users.txt: Add parted.
46030
46031         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46032
46033 2007-03-07  Bruno Haible  <bruno@clisp.org>
46034
46035         * m4/printf.m4: Make the shell script snippets copy&pastable.
46036
46037 2007-03-02  Bruno Haible  <bruno@clisp.org>
46038
46039         * lib/netinet_in_.h: New file.
46040         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46041         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46042         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46043         (Depends-on): Add absolute-header.
46044         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46045         into netinet/in.h.
46046
46047 2007-03-03  Bruno Haible  <bruno@clisp.org>
46048
46049         * lib/sys_select_.h: New file.
46050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
46051         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
46052         * modules/sys_select (Files): Add lib/sys_select_.h.
46053         (Depends-on): Add absolute-header.
46054         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
46055         into sys/select.h.
46056
46057 2007-03-02  Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
46060         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
46061         values.
46062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
46063         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
46064         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
46065         * modules/sys_socket (Depends-on): Add absolute-header.
46066         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
46067         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
46068         (Include): Remove requirement of inclusion of <sys/types.h>.
46069
46070 2007-03-02  Bruno Haible  <bruno@clisp.org>
46071
46072         * lib/byteswap_.h (bswap_32): Fix formula.
46073
46074 2007-03-06  Bruno Haible  <bruno@clisp.org>
46075
46076         * modules/sprintf-posix-tests: New file.
46077         * tests/test-sprintf-posix.c: New file.
46078
46079         * modules/sprintf-posix: New file.
46080         * lib/sprintf.c: New file.
46081         * m4/sprintf-posix.m4: New file.
46082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
46083         REPLACE_SPRINTF.
46084         * lib/stdio_.h (sprintf): New declaration.
46085         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
46086         REPLACE_SPRINTF.
46087
46088 2007-03-06  Bruno Haible  <bruno@clisp.org>
46089
46090         * modules/vsprintf-posix-tests: New file.
46091         * tests/test-vsprintf-posix.c: New file.
46092         * tests/test-sprintf-posix.h: New file.
46093
46094         * modules/vsprintf-posix: New file.
46095         * lib/vsprintf.c: New file.
46096         * m4/vsprintf-posix.m4: New file.
46097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
46098         REPLACE_VSPRINTF.
46099         * lib/stdio_.h (vsprintf): New declaration.
46100         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
46101         REPLACE_VSPRINTF.
46102
46103 2007-03-06  Bruno Haible  <bruno@clisp.org>
46104
46105         * modules/vsnprintf (Depend-on): Remove minmax.
46106
46107 2007-03-06  Bruno Haible  <bruno@clisp.org>
46108
46109         * modules/snprintf-posix-tests: New file.
46110         * tests/test-snprintf-posix.c: New file.
46111
46112         * modules/snprintf-posix: New file.
46113         * m4/snprintf-posix.m4: New file.
46114         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
46115         gl_FUNC_SNPRINTF.
46116         (gl_FUNC_SNPRINTF): Invoke it.
46117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
46118         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
46119         is set.
46120         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
46121
46122 2007-03-06  Bruno Haible  <bruno@clisp.org>
46123
46124         * modules/vsnprintf-posix-tests: New file.
46125         * tests/test-vsnprintf-posix.c: New file.
46126         * tests/test-snprintf-posix.h: New file.
46127
46128         * modules/vsnprintf-posix: New file.
46129         * m4/vsnprintf-posix.m4: New file.
46130         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
46131         gl_FUNC_VSNPRINTF.
46132         (gl_FUNC_VSNPRINTF): Invoke it.
46133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
46134         * lib/stdio_.h (vsnprintf): Define as a replacement if
46135         REPLACE_VSNPRINTF is set.
46136         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
46137
46138 2007-03-06  Bruno Haible  <bruno@clisp.org>
46139
46140         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
46141         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
46142
46143 2007-03-06  Bruno Haible  <bruno@clisp.org>
46144
46145         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
46146         (asinl): Declare also if HAVE_DECL_ASINL is set.
46147         (atanl): Declare also if HAVE_DECL_ATANL is set.
46148         (ceill): Declare also if HAVE_DECL_CEILL is set.
46149         (cosl): Declare also if HAVE_DECL_COSL is set.
46150         (expl): Declare also if HAVE_DECL_EXPL is set.
46151         (floorl): Declare also if HAVE_DECL_FLOORL is set.
46152         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
46153         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
46154         (logl): Declare also if HAVE_DECL_LOGL is set.
46155         (sinl): Declare also if HAVE_DECL_SINL is set.
46156         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
46157         (tanl): Declare also if HAVE_DECL_TANL is set.
46158         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
46159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
46160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
46161         declaration of frexpl, ldexpl.
46162         * modules/printf-frexpl (Depends-on): Add math.
46163         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
46164
46165 2007-03-05  Bruno Haible  <bruno@clisp.org>
46166
46167         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
46168         frexpl and ldexpl are declared.
46169         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
46170
46171 2007-03-05  Bruno Haible  <bruno@clisp.org>
46172
46173         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
46174         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
46175
46176 2007-03-05  Bruno Haible  <bruno@clisp.org>
46177
46178         * lib/stdio_.h: Include <stddef.h>.
46179
46180 2007-03-05  Bruno Haible  <bruno@clisp.org>
46181
46182         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
46183
46184 2007-03-05  Bruno Haible  <bruno@clisp.org>
46185
46186         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
46187         NetBSD 4, from Ralf Wildenhues.
46188
46189 2007-03-04  Bruno Haible  <bruno@clisp.org>
46190
46191         * lib/vasprintf.h: Update #if logic for the case when the functions
46192         exist but are overridden.
46193
46194 2007-03-04  Bruno Haible  <bruno@clisp.org>
46195
46196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
46197         implementations: glibc-2.4 and MacOS X 10.3.
46198         * tests/test-vasnprintf-posix.c (test_function): Test also the case
46199         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
46200         * tests/test-vasprintf-posix.c (test_function): Likewise.
46201
46202 2007-03-04  Bruno Haible  <bruno@clisp.org>
46203
46204         * modules/vasprintf-posix-tests: New file.
46205         * tests/test-vasprintf-posix.c: New file.
46206
46207         * modules/vasprintf-posix: New file.
46208         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
46209         defined.
46210         * m4/vasprintf-posix.m4: New file.
46211         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
46212         gl_FUNC_VASPRINTF.
46213         (gl_FUNC_VASPRINTF): Invoke it.
46214         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
46215         here.
46216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
46217
46218 2007-03-04  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
46221         REPLACE_GETTIMEOFDAY.
46222         * modules/sys_time (Makefile.am): Likewise.
46223         * m4/sys_time_h.m4: Likewise.
46224         * m4/gettimeofday.m4: Likewise.
46225
46226 2007-03-04  Bruno Haible  <bruno@clisp.org>
46227
46228         * modules/vasnprintf-posix-tests: New file.
46229         * tests/test-vasnprintf-posix.c: New file.
46230
46231         * modules/vasnprintf-posix: New file.
46232         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
46233         printf-frexpl.h.
46234         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
46235         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
46236         REPLACE_VASNPRINTF is defined.
46237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
46238         gl_FUNC_VASNPRINTF.
46239         (gl_FUNC_VASNPRINTF): Invoke it.
46240         * m4/vasnprintf-posix.m4: New file.
46241         * m4/printf.m4: New file.
46242
46243 2007-03-04  Bruno Haible  <bruno@clisp.org>
46244
46245         Compile progreloc.c only if --enable-relocatable is specified.
46246         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
46247         if --enable-relocatable was specified.
46248         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
46249         lib_SOURCES.
46250
46251 2007-03-04  Jim Meyering  <jim@meyering.net>
46252
46253         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
46254         Use it consistently, rather than enumerating errno constants.
46255
46256 2007-03-04  Bruno Haible  <bruno@clisp.org>
46257
46258         * modules/xvasprintf-tests: New file.
46259         * tests/test-xvasprintf.c: New file.
46260
46261         * modules/vasprintf-tests: New file.
46262         * tests/test-vasprintf.c: New file.
46263
46264         * modules/vasnprintf-tests: New file.
46265         * tests/test-vasnprintf.c: New file.
46266
46267         * modules/vsnprintf-tests: New file.
46268         * tests/test-vsnprintf.c: New file.
46269
46270         * modules/snprintf-tests: New file.
46271         * tests/test-snprintf.c: New file.
46272
46273 2007-03-04  Bruno Haible  <bruno@clisp.org>
46274
46275         Compile relocatable.c only if --enable-relocatable is specified.
46276         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
46277         gl_RELOCATABLE_LIBRARY.
46278         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
46279         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
46280         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
46281         gl_RELOCATABLE_LIBRARY.
46282         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
46283         (Makefile.am): Remove lib_SOURCES.
46284         * modules/relocatable-lib-lgpl (configure.ac): Invoke
46285         gl_RELOCATABLE_LIBRARY.
46286         (Makefile.am): Remove lib_SOURCES.
46287         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
46288         always.
46289         * modules/relocatable-prog-wrapper (configure.ac): Invoke
46290         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
46291
46292 2007-03-04  Bruno Haible  <bruno@clisp.org>
46293
46294         * modules/argmatch-tests: New file.
46295         * tests/test-argmatch.c: New file.
46296
46297         * tests/test-allocsa.c (main): Halve the number of loop runs.
46298
46299         * modules/alloca-opt-tests: New file.
46300         * tests/test-alloca-opt.c: New file.
46301
46302 2007-03-04  Jim Meyering  <jim@meyering.net>
46303
46304         Work around difference between Linux ACLs and Solaris 10 ZFS.
46305         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
46306         for EINVAL.
46307
46308 2007-03-03  Bruno Haible  <bruno@clisp.org>
46309
46310         * modules/relocatable-prog (Depends-on): Add back progreloc's
46311         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
46312
46313 2007-03-03  Bruno Haible  <bruno@clisp.org>
46314
46315         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
46316         * modules/relocatable-lib: New file.
46317
46318 2007-03-03  Bruno Haible  <bruno@clisp.org>
46319
46320         * modules/relocatable-prog: Renamed from modules/relocatable.
46321         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
46322
46323 2007-03-03  Bruno Haible  <bruno@clisp.org>
46324
46325         * modules/relocatable-script (Files): Add doc/relocatable.texi,
46326         m4/relocatable-lib.m4.
46327         (Depends-on): Remove 'relocatable'.
46328         (configure.ac): Add gl_RELOCATABLE_NOP.
46329
46330 2007-03-03  Bruno Haible  <bruno@clisp.org>
46331
46332         * modules/relocatable-prog-wrapper: New file.
46333         * modules/relocatable (Depends-on): Add it. Remove all other
46334         dependencies except progname.
46335         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
46336
46337         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
46338         (gl_FUNC_STRERROR): Nop.
46339         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
46340
46341         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
46342         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
46343
46344         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
46345         (gl_FUNC_READLINK): Update.
46346
46347         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
46348
46349 2007-03-03  Bruno Haible  <bruno@clisp.org>
46350
46351         * lib/xreadlink.c: Include <unistd.h> unconditionally.
46352         * modules/xreadlink (Depends-on): Add unistd.
46353         * modules/xreadlink-with-size (Depends-on): Likewise.
46354
46355 2007-03-03  Bruno Haible  <bruno@clisp.org>
46356
46357         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
46358         extracted from gt_FUNC_SETENV.
46359         (gt_FUNC_SETENV): Remove macro.
46360         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
46361         remove gt_FUNC_SETENV.
46362
46363 2007-03-03  Bruno Haible  <bruno@clisp.org>
46364
46365         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
46366         ENABLE_RELOCATABLE here.
46367         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
46368
46369 2007-03-03  Bruno Haible  <bruno@clisp.org>
46370
46371         * modules/rbtreehash-list-tests (Depends-on): Add progname.
46372         * tests/test-rbtreehash_list.c: Include progname.h.
46373         (main): Call set_program_name.
46374
46375         * modules/rbtree-oset-tests (Depends-on): Add progname.
46376         * tests/test-rbtree_oset.c: Include progname.h.
46377         (main): Call set_program_name.
46378
46379         * modules/rbtree-list-tests (Depends-on): Add progname.
46380         * tests/test-rbtree_list.c: Include progname.h.
46381         (main): Call set_program_name.
46382
46383         * modules/linked-list-tests (Depends-on): Add progname.
46384         * tests/test-linked_list.c: Include progname.h.
46385         (main): Call set_program_name.
46386
46387 2007-03-03  Bruno Haible  <bruno@clisp.org>
46388
46389         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
46390         All uses of __restrict changed to _Restrict_.
46391         * lib/glob_.h (__restrict): Remove macro.
46392
46393 2007-03-02  Bruno Haible  <bruno@clisp.org>
46394
46395         * modules/gettext (configure.ac): Require gettext infrastructure
46396         from version 0.16.1.
46397
46398 2007-03-02  Bruno Haible  <bruno@clisp.org>
46399
46400         * modules/linkedhash-list-tests (Depends-on): Add progname.
46401         * tests/test-linkedhash_list.c: Include progname.h.
46402         (main): Call set_program_name.
46403
46404         * modules/carray-list-tests (Depends-on): Add progname.
46405         * tests/test-carray_list.c: Include progname.h.
46406         (main): Call set_program_name.
46407
46408         * modules/avltreehash-list-tests (Depends-on): Add progname.
46409         * tests/test-avltreehash_list.c: Include progname.h.
46410         (main): Call set_program_name.
46411
46412         * modules/avltree-oset-tests (Depends-on): Add progname.
46413         * tests/test-avltree_oset.c: Include progname.h.
46414         (main): Call set_program_name.
46415
46416         * modules/avltree-list-tests (Depends-on): Add progname.
46417         * tests/test-avltree_list.c: Include progname.h.
46418         (main): Call set_program_name.
46419
46420         * modules/array-oset-tests (Depends-on): Add progname.
46421         * tests/test-array_oset.c: Include progname.h.
46422         (main): Call set_program_name.
46423
46424         * modules/array-list-tests (Depends-on): Add progname.
46425         * tests/test-array_list.c: Include progname.h.
46426         (main): Call set_program_name.
46427
46428         * modules/argp-tests (Depends-on): Add progname.
46429         * tests/test-argp.c: Include argp.h first. Include progname.h.
46430         (main): Call set_program_name.
46431
46432 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
46433
46434         * doc/gnulib-tool.texi (Initial import): Reword description of
46435         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
46436         limited effect even if defined after the first system include.
46437
46438 2007-03-01  Bruno Haible  <bruno@clisp.org>
46439
46440         * build-aux/config.libpath: Update to libtool-1.5.22.
46441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46442
46443 2007-03-01  Bruno Haible  <bruno@clisp.org>
46444
46445         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
46446         foo_CFLAGS.
46447         Reported by Ralf Wildenhues.
46448
46449 2007-03-01  Bruno Haible  <bruno@clisp.org>
46450
46451         * build-aux/install-reloc: Remove object files left over by some
46452         compilers.
46453         Reported by Ralf Wildenhues.
46454
46455 2007-03-01  Bruno Haible  <bruno@clisp.org>
46456
46457         * build-aux/install-reloc: Break long lines.
46458
46459 2007-03-01  Bruno Haible  <bruno@clisp.org>
46460
46461         * doc/relocatable.texi: Document that it may not work on OpenBSD.
46462         Reported by Ralf Wildenhues.
46463
46464 2007-03-01  Bruno Haible  <bruno@clisp.org>
46465
46466         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
46467         include ordering constraints.
46468
46469 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46470
46471         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
46472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
46473         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
46474         as another example.
46475         * lib/time_.h: Fix misspelling.
46476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46477         Require gl_HEADER_TIME_H_DEFAULTS.
46478         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
46479         * m4/time_r.m4 (gl_TIME_R): Likewise.
46480         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
46481
46482 2007-03-01  Bruno Haible  <bruno@clisp.org>
46483
46484         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
46485         * m4/utimens.m4 (gl_UTIMENS): Likewise.
46486
46487 2007-03-01  Jim Meyering  <jim@meyering.net>
46488
46489         * modules/xreadlink (Maintainer): Add my name.
46490         * modules/xreadlink-with-size (Depends-on): Alphabetize.
46491
46492 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
46493             Bruno Haible  <bruno@clisp.org>
46494
46495         * build-aux/install-reloc: Compile also c-ctype.c.
46496         * build-aux/relocatable.sh.in: New file.
46497         * doc/relocatable.texi: New file.
46498         * doc/relocatable-maint.texi: New file.
46499         * doc/gnulib.texi: Include relocatable-maint.texi.
46500         * lib/progreloc.c: Include unistd.h unconditionally.
46501         * lib/relocwrapper.c: Include unistd.h unconditionally.
46502         Include c-ctype.h.
46503         (add_dotbin): Use c_tolower.
46504         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
46505         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
46506         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
46507         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
46508         to m4/relocatable-lib.m4.
46509         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
46510         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
46511         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
46512         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
46513         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
46514         * modules/relocatable: New file.
46515         * modules/relocatable-lib: New file.
46516         * modules/relocatable-script: New file.
46517
46518 2007-02-28  Bruno Haible  <bruno@clisp.org>
46519
46520         Import --enable-relocatable infrastructure.
46521         * build-aux/config.libpath: New file, from GNU gettext.
46522         * build-aux/install-reloc: New file, from GNU gettext.
46523         * build-aux/reloc-ldflags: New file, from GNU gettext.
46524         * lib/relocatable.h: New file, from GNU gettext.
46525         * lib/relocatable.c: New file, from GNU gettext.
46526         * lib/relocwrapper.c: New file, from GNU gettext.
46527         * m4/relocatable.m4: New file, from GNU gettext.
46528
46529 2007-02-28  Bruno Haible  <bruno@clisp.org>
46530
46531         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
46532
46533         * modules/xreadlink: New file, from GNU gettext with modifications.
46534         * lib/xreadlink.c: New file, from GNU gettext.
46535         * lib/xreadlink.h: Add comments.
46536         (xreadlink): New declaration.
46537
46538         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
46539         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
46540         lib/xreadlink-with-size.c.
46541         (configure.ac): Remove gl_XREADLINK invocation.
46542         (Makefile.am): Augment lib_SOURCES.
46543         * m4/xreadlink.m4: Remove file.
46544         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
46545         (xreadlink_with_size): Renamed from xreadink.
46546         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
46547         * modules/canonicalize (Depends-on): Replace xreadlink with
46548         xreadlink-with-size.
46549         * lib/canonicalize.c (canonicalize_filename_mode): Update.
46550
46551 2007-02-25  Jim Meyering  <jim@meyering.net>
46552
46553         * build-aux/announce-gen: When complaining about excess arguments,
46554         list them.
46555
46556 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
46557
46558         * README: Document signed integer overflow situation more
46559         accurately.
46560
46561 2007-02-25  Bruno Haible  <bruno@clisp.org>
46562
46563         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
46564         'a' or 'A' conversion.
46565
46566 2007-02-25  Bruno Haible  <bruno@clisp.org>
46567
46568         * modules/filename: Renamed from modules/pathname.
46569         (Files): Replace lib/pathname.h with lib/filename.h. Replace
46570         lib/concatpath.c with lib/concat-filename.c.
46571         (Makefile.am): Update.
46572         (Include): Replace pathname.h with filename.h.
46573         * lib/filename.h: Renamed from lib/pathname.h.
46574         (concatenated_filename): Renamed from concatenated_pathname.
46575         * lib/concat-filename.c: Renamed from lib/concatpath.c.
46576         (concatenated_filename): Renamed from concatenated_pathname.
46577         * lib/findprog.c: Include filename.h instead of pathname.h.
46578         (find_in_path): Update.
46579         * lib/javacomp.c: Include filename.h instead of pathname.h.
46580         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46581         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46582         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46583         is_oldgcj_14_13_usable, is_javac_usable): Update.
46584         * lib/javaexec.c: Include filename.h instead of pathname.h.
46585         (execute_java_class): Update.
46586         * modules/findprog: Update.
46587         * modules/javacomp: Update.
46588         * modules/javaexec: Update.
46589         * MODULES.html.sh (File system functions): Add 'filename', remove
46590         'pathname'.
46591
46592 2007-02-25  Bruno Haible  <bruno@clisp.org>
46593
46594         * modules/printf-frexpl-tests: New file.
46595         * tests/test-printf-frexpl.c: New file.
46596
46597         * modules/printf-frexpl: New file.
46598         * lib/printf-frexpl.h: New file.
46599         * lib/printf-frexpl.c: New file.
46600         * m4/printf-frexpl.m4: New file.
46601
46602 2007-02-25  Bruno Haible  <bruno@clisp.org>
46603
46604         * modules/printf-frexp-tests: New file.
46605         * tests/test-printf-frexp.c: New file.
46606
46607         * modules/printf-frexp: New file.
46608         * lib/printf-frexp.h: New file.
46609         * lib/printf-frexp.c: New file.
46610         * m4/printf-frexp.m4: New file.
46611
46612 2007-02-25  Bruno Haible  <bruno@clisp.org>
46613
46614         Assume automake >= 1.10 for the tests.
46615         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
46616         * modules/arctwo-tests: Likewise.
46617         * modules/argp-tests: Likewise.
46618         * modules/avltree-list-tests: Likewise.
46619         * modules/avltree-oset-tests: Likewise.
46620         * modules/avltreehash-list-tests: Likewise.
46621         * modules/carray-list-tests: Likewise.
46622         * modules/crc-tests: Likewise.
46623         * modules/des-tests: Likewise.
46624         * modules/gc-arcfour-tests: Likewise.
46625         * modules/gc-arctwo-tests: Likewise.
46626         * modules/gc-des-tests: Likewise.
46627         * modules/gc-hmac-md5-tests: Likewise.
46628         * modules/gc-hmac-sha1-tests: Likewise.
46629         * modules/gc-md2-tests: Likewise.
46630         * modules/gc-md4-tests: Likewise.
46631         * modules/gc-md5-tests: Likewise.
46632         * modules/gc-pbkdf2-sha1-tests: Likewise.
46633         * modules/gc-rijndael-tests: Likewise.
46634         * modules/gc-sha1-tests: Likewise.
46635         * modules/gc-tests: Likewise.
46636         * modules/getaddrinfo-tests: Likewise.
46637         * modules/hmac-md5-tests: Likewise.
46638         * modules/hmac-sha1-tests: Likewise.
46639         * modules/linked-list-tests: Likewise.
46640         * modules/linkedhash-list-tests: Likewise.
46641         * modules/lock-tests: Likewise.
46642         * modules/md2-tests: Likewise.
46643         * modules/md4-tests: Likewise.
46644         * modules/md5-tests: Likewise.
46645         * modules/rbtree-list-tests: Likewise.
46646         * modules/rbtree-oset-tests: Likewise.
46647         * modules/rbtreehash-list-tests: Likewise.
46648         * modules/read-file-tests: Likewise.
46649         * modules/rijndael-tests: Likewise.
46650         * modules/stdint-tests: Likewise.
46651         * modules/tls-tests: Likewise.
46652
46653 2007-02-24  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
46656         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
46657         function; instead check whether isnan with a double argument links.
46658         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
46659         function; instead check whether isnan with a 'long double' argument
46660         links.
46661         Reported by Eric Blake <ebb9@byu.net>.
46662
46663 2007-02-24  Bruno Haible  <bruno@clisp.org>
46664
46665         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
46666         defined.
46667         * lib/isnanl.c: Remove all code. Just include isnan.c.
46668         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
46669
46670 2007-02-25  Jim Meyering  <jim@meyering.net>
46671
46672         Avoid conflicting types for 'unsetenv' on FreeBSD.
46673         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
46674         conflicting with FreeBSD's (5.0 and 6.1) function declaration
46675         in stdlib.h.
46676
46677 2007-02-24  Bruno Haible  <bruno@clisp.org>
46678
46679         * modules/isnanl-nolibm-tests: New file.
46680         * tests/test-isnanl.c: New file.
46681
46682         * modules/isnanl-nolibm: New file.
46683         * lib/isnanl.h: New file.
46684         * lib/isnanl.c: New file.
46685         * m4/isnanl.m4: New file.
46686
46687 2007-02-24  Bruno Haible  <bruno@clisp.org>
46688
46689         * modules/isnan-nolibm-tests: New file.
46690         * tests/test-isnan.c: New file.
46691
46692         * modules/isnan-nolibm: New file.
46693         * lib/isnan.h: New file.
46694         * lib/isnan.c: New file.
46695         * m4/isnan.m4: New file.
46696
46697 2007-02-24  Bruno Haible  <bruno@clisp.org>
46698
46699         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
46700         assume that an exponent fits in 20 bits.
46701
46702 2007-02-24  Jim Meyering  <jim@meyering.net>
46703
46704         * m4/regex.m4: Update the description of the configure-time option,
46705         --without-included-regex, to state accurately what the defaults are,
46706         and perhaps to give people an idea why using this option is risky.
46707
46708 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46709
46710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
46711         loops on small arguments.  This attempts to avoid the problem
46712         Bruno Haible reported for AIX 4.3.2 in
46713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
46714
46715 2007-02-23  Bruno Haible  <bruno@clisp.org>
46716
46717         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
46718         Needed for help2man.
46719
46720 2007-02-23  Karl Berry  <karl@gnu.org>
46721
46722         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
46723         exists, foo.h should be cvs-ignored, not committed.
46724
46725 2007-02-23  Eric Blake  <ebb9@byu.net>
46726
46727         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
46728         * lib/stat-time.h (includes): Likewise.
46729         * lib/utimecmp.c (includes): Likewise.
46730         * lib/utimens.h (includes): Likewise.
46731         * lib/getdate.y (includes): Also include "timespec.h" for use
46732         internal to the module.
46733         * modules/utimens (Depends-on): Revert yesterday's patch.
46734         * modules/nanosleep (Depends-on): Add missing dependency.
46735
46736 2007-02-22  Bruno Haible  <bruno@clisp.org>
46737
46738         * lib/glob.c: Don't include getlogin_r.h.
46739
46740 2007-02-22  Jim Meyering  <jim@meyering.net>
46741
46742         * modules/utimens (Depends-on): Add timespec, required for
46743         utimens.h's inclusion of timespec.h.
46744
46745 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
46746
46747         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
46748         long unreadable paths in GNU/Linux.  Problem reported by Andreas
46749         Schwab in
46750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
46751         I'll try to think of a better way to fix the Solaris problem.
46752
46753         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
46754         like glibc; on Solaris 10, it fails with errno == EINVAL.
46755         POSIX says the behavior is unspecified if the first argument is NULL,
46756         so play it safe and never pass NULL to the system getcwd.
46757
46758 2007-02-21  Jim Meyering  <jim@meyering.net>
46759
46760         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
46761         of gettimeofday.  It would conflict with the one now always
46762         provided via sys_time_.h.  Reported by Matthew Woehlke, as
46763         an IRIX 6.5 build failure.
46764
46765 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46766
46767         Minor fixups to port to Solaris 10 with Sun C 5.8.
46768         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
46769         * modules/getcwd (Depends-on): Add dirfd.
46770         * lib/putenv.c (putenv): #undef it.
46771         (rpl_putenv): New decl.
46772         (malloc, free): Include <stdlib.h> rather than prototyping separately.
46773
46774 2007-02-20  Bruno Haible  <bruno@clisp.org>
46775
46776         * modules/stdio-tests: New file.
46777         * tests/test-stdio.c: New file.
46778
46779         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
46780         (Depends-on): Add stdio.
46781         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
46782         (Include): Use <stdio.h> instead of vsnprintf.h.
46783         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
46784         HAVE_DECL_VSNPRINTF.
46785         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
46786
46787         * modules/snprintf (Files): Remove lib/snprintf.h.
46788         (Depends-on): Add stdio.
46789         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
46790         (Include): Use <stdio.h> instead of snprintf.h.
46791         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
46792         HAVE_DECL_SNPRINTF.
46793         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
46794         * lib/getaddrinfo.c: Likewise.
46795
46796         * modules/stdio: New file.
46797         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
46798         * lib/snprintf.h: Remove file.
46799         * lib/vsnprintf.h: Remove file.
46800         * lib/.cppi-disable: Remove snprintf.h.
46801         * m4/stdio_h.m4: New file.
46802         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
46803
46804 2007-02-20  Jim Meyering  <jim@meyering.net>
46805
46806         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
46807         used by e.g., mingw.  From Bruno Haible.
46808
46809 2007-02-19  Bruno Haible  <bruno@clisp.org>
46810
46811         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
46812         warnings.
46813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46814
46815 2007-02-19  Bruno Haible  <bruno@clisp.org>
46816
46817         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
46818         from mingw users.
46819
46820 2007-02-19  Bruno Haible  <bruno@clisp.org>
46821
46822         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
46823         warnings.
46824         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
46825
46826 2007-02-19  Jim Meyering  <jim@meyering.net>
46827
46828         Don't use FD after a successful "fdopendir (fd)".
46829         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
46830         Reset it by calling dirfd on the just-obtained DIR*.
46831
46832         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
46833         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
46834
46835 2007-02-18  Bruno Haible  <bruno@clisp.org>
46836
46837         * lib/readlink.c: Include <unistd.h>.
46838         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
46839         HAVE_READLINK.
46840         * modules/readlink (Depends-on): Add unistd.
46841         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46842         (Include): Add <unistd.h>.
46843
46844         * lib/getlogin_r.h: Remove file.
46845         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
46846         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
46847         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
46848         HAVE_DECL_GETLOGIN_R.
46849         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
46850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46851         (Include): Use <unistd.h> instead of getlogin_r.h.
46852
46853         * lib/getcwd.h: Remove file.
46854         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
46855         * lib/xgetcwd.c: Likewise.
46856         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
46857         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
46858         * modules/getcwd (Files): Remove lib/getcwd.h.
46859         (Depends-on): Add unistd.
46860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46861         (Include): Use <unistd.h> instad of getcwd.h.
46862
46863         * lib/ftruncate.c: Include <unistd.h> first.
46864         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
46865         Set HAVE_FTRUNCATE.
46866         * modules/ftruncate (Depends-on): Add unistd.
46867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46868
46869         * lib/fchdir.c: Include <unistd.h> first.
46870         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
46871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
46872         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
46873         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46874         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
46875
46876         * lib/dup2.c: Include <unistd.h> first.
46877         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
46878         HAVE_DUP2.
46879         * modules/dup2 (Depends-on): Add unistd.
46880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46881
46882         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
46883         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
46884         REPLACE_CHOWN. Don't define chown as a macro here.
46885         * modules/chown (Depends-on): Add unistd.
46886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46887
46888         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
46889         Add definition for GL_LINK_WARNING.
46890         (chown, dup2): New declarations.
46891         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
46892         link warning.
46893         (ftruncate): New declaration.
46894         (getcwd): New declaration, taken from old getcwd.h.
46895         (getlogin_r): New declaration, taken from old getlogin_r.h.
46896         (readlink): New declaration.
46897         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
46898         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
46899         (gl_PREREQ_UNISTD): Remove macro.
46900         (gl_UNISTD_MODULE_INDICATOR): New macro.
46901         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
46902         many new variables. Don't set UNISTD_H.
46903         * modules/unistd (Description): Change.
46904         (Depends-on): Add link-warning.
46905         (configure.ac): Update.
46906         (Makefile.am): Create unistd.h always. Substitute many new variables
46907         into it.
46908
46909 2007-02-18  Bruno Haible  <bruno@clisp.org>
46910
46911         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
46912         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
46913         HAVE_GETSUBOPT.
46914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
46915         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
46916         * lib/getsubopt.h: Remove file.
46917         * modules/getsubopt (Files): Remove lib/getsubopt.h.
46918         (Depends-on): Add stdlib.
46919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46920         (Includes): Use <stdlib.h> instead of getsubopt.h.
46921         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
46922         Set HAVE_GETSUBOPT.
46923         * lib/getsubopt.c: Don't include getsubopt.h.
46924
46925 2007-02-18  Bruno Haible  <bruno@clisp.org>
46926
46927         * modules/fchdir (Depends-on): Add dup2.
46928
46929 2007-02-18  Bruno Haible  <bruno@clisp.org>
46930
46931         * lib/stdlib_.h: Handle glibc's special invocation convention
46932         specially.
46933
46934 2007-02-18  Bruno Haible  <bruno@clisp.org>
46935
46936         * modules/stdlib-tests: New file.
46937         * tests/test-stdlib.c: New file.
46938
46939         * modules/mkstemp (Files): Remove lib/mkstemp.h.
46940         (Depends-on): Add stdlib.
46941         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46942         (Includes): Use <stdlib.h> instead of mkstemp.h.
46943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46944         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
46945         * lib/mkstemp.c: Don't include mkstemp.h.
46946         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
46947         * lib/stdlib--.h: Don't include mkstemp.h.
46948
46949         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
46950         (Depends-on): Add stdlib.
46951         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46952         (Includes): Use <stdlib.h> instead of mkdtemp.h.
46953         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46954         HAVE_MKDTEMP.
46955         * lib/mkdtemp.c: Don't include mkdtemp.h.
46956         * lib/clean-temp.c: Don't include mkdtemp.h.
46957
46958         * modules/exit (Files): Remove lib/exit.h.
46959         (Depends-on): Add stdlib.
46960         (Makefile.am): Remove lib_SOURCES.
46961         (Include): Use <stdlib.h> instead of exit.h.
46962         * lib/argmatch.c: Don't include exit.h.
46963         * lib/execute.c: Likewise.
46964         * lib/pagealign_alloc.c: Likewise.
46965         * lib/pipe.c: Likewise.
46966         * lib/wait-process.c: Likewise.
46967         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
46968         * lib/exitfail.c: Likewise.
46969         * lib/savewd.c: Likewise.
46970         * lib/xsetenv.c: Likewise.
46971
46972         * modules/stdlib: New file.
46973         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
46974         and extra comments about mkstemp().
46975         * lib/exit.h: Remove file.
46976         * lib/mkdtemp.h: Remove file.
46977         * lib/mkstemp.h: Remove file.
46978         * m4/stdlib_h.m4: New file.
46979         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
46980
46981 2007-02-18  Bruno Haible  <bruno@clisp.org>
46982
46983         * modules/math-tests: New file.
46984         * tests/test-math.c: New file.
46985
46986         * modules/math: New file.
46987         * modules/mathl (Files): Remove lib/mathl.h.
46988         (Depends-on): Add math.
46989         (Makefile.am): Don't mention mathl.h.
46990         (Include): Use <math.h> instead of mathl.h.
46991         * lib/math_.h: New file.
46992         * lib/mathl.h: Remove file.
46993         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
46994         mathl.h.
46995         * lib/asinl.c: Likewise.
46996         * lib/atanl.c: Likewise.
46997         * lib/ceill.c: Likewise.
46998         * lib/cosl.c: Likewise.
46999         * lib/expl.c: Likewise.
47000         * lib/floorl.c: Likewise.
47001         * lib/frexpl.c: Likewise.
47002         * lib/ldexpl.c: Likewise.
47003         * lib/logl.c: Likewise.
47004         * lib/sincosl.c: Likewise.
47005         * lib/sinl.c: Likewise.
47006         * lib/sqrtl.c: Likewise.
47007         * lib/tanl.c: Likewise.
47008         * lib/trigl.c: Likewise.
47009         * m4/math_h.m4: New file.
47010         * MODULES.html.sh (Mathematics): Add math.
47011
47012 2007-02-17  Bruno Haible  <bruno@clisp.org>
47013
47014         * modules/wctype-tests: New file.
47015         * tests/test-wctype.c: New file.
47016
47017         * modules/wchar-tests: New file.
47018         * tests/test-wchar.c: New file.
47019
47020         * modules/unistd-tests: New file.
47021         * tests/test-unistd.c: New file.
47022
47023         * modules/time-tests: New file.
47024         * tests/test-time.c: New file.
47025
47026         * modules/sysexits-tests: New file.
47027         * tests/test-sysexits.c: New file.
47028
47029         * modules/sys_time-tests: New file.
47030         * tests/test-sys_time.c: New file.
47031
47032         * modules/sys_stat-tests: New file.
47033         * tests/test-sys_stat.c: New file.
47034
47035         * modules/sys_socket-tests: New file.
47036         * tests/test-sys_socket.c: New file.
47037
47038         * modules/sys_select-tests: New file.
47039         * tests/test-sys_select.c: New file.
47040
47041         * modules/string-tests: New file.
47042         * tests/test-string.c: New file.
47043
47044         * modules/stdbool-tests: New file.
47045         * tests/test-stdbool.c: New file.
47046
47047         * modules/netinet_in-tests: New file.
47048         * tests/test-netinet_in.c: New file.
47049
47050         * modules/inttypes-tests: New file.
47051         * tests/test-inttypes.c: New file.
47052
47053         * modules/fcntl-tests: New file.
47054         * tests/test-fcntl.c: New file.
47055
47056         * modules/byteswap-tests: New file.
47057         * tests/test-byteswap.c: New file.
47058
47059         * modules/arpa_inet-tests: New file.
47060         * tests/test-arpa_inet.c: New file.
47061
47062 2007-02-17  Bruno Haible  <bruno@clisp.org>
47063
47064         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
47065         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
47066         if the corresponding module is not enabled. Emit link warnings if
47067         the function is used nevertheless.
47068         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
47069         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
47070         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
47071         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
47072         * modules/inttypes (Depends-on): Add link-warning.
47073         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47074         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
47075         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
47076         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
47077         * modules/imaxdiv (configure.ac): Likewise.
47078         * modules/strtoimax (configure.ac): Likewise.
47079         * modules/strtoumax (configure.ac): Likewise.
47080
47081 2007-02-17  Bruno Haible  <bruno@clisp.org>
47082
47083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
47084         gl_STRING_MODULE_INDICATOR_DEFAULTS.
47085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
47086         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
47087
47088 2007-02-17  Bruno Haible  <bruno@clisp.org>
47089
47090         * modules/link-warning: New file.
47091         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
47092         * lib/string_.h (GL_LINK_WARNING): Remove definition.
47093         * modules/string (Depends-on): Add link-warning.
47094         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47095         string.h.
47096         * MODULES.html.sh (Support for building libraries and executables): Add
47097         link-warning.
47098
47099 2007-02-17  Bruno Haible  <bruno@clisp.org>
47100
47101         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
47102         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
47103         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
47104         long lines.
47105
47106 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
47107             Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/tmpfile: New file.
47110         * lib/tmpfile.c: New file.
47111         * m4/tmpfile.m4: New file.
47112         * MODULES.html.sh (func_all_modules): New section "Input/output".
47113
47114 2007-02-15  Bruno Haible  <bruno@clisp.org>
47115
47116         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
47117         (supports_delete_on_close): New function.
47118         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
47119
47120 2007-02-14  Bruno Haible  <bruno@clisp.org>
47121
47122         * modules/mbspcasecmp-tests: New file.
47123         * tests/test-mbspcasecmp.sh: New file.
47124         * tests/test-mbspcasecmp.c: New file.
47125
47126         New module mbspcasecmp.
47127         * modules/mbspcasecmp: New file.
47128         * lib/mbspcasecmp.c: New file.
47129         * lib/string_.h (strncasecmp): Change warning message.
47130         (mbspcasecmp): New declaration.
47131         * m4/mbspcasecmp.m4: New file.
47132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47133         GNULIB_MBSPCASECMP.
47134         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
47135         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
47136
47137 2007-02-14  Bruno Haible  <bruno@clisp.org>
47138
47139         * modules/mbsncasecmp-tests: New file.
47140         * tests/test-mbsncasecmp.sh: New file.
47141         * tests/test-mbsncasecmp.c: New file.
47142
47143         New module mbsncasecmp.
47144         * modules/mbsncasecmp: New file.
47145         * lib/mbsncasecmp.c: New file.
47146         * lib/string_.h (mbsncasecmp): New declaration.
47147         * m4/mbsncasecmp.m4: New file.
47148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47149         GNULIB_MBSNCASECMP.
47150         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
47151         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
47152
47153 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47154
47155         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
47156         Verify that it doesn't overlap with our flags.
47157         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
47158         do not have the desired effect in multibyte locales; instead, use
47159         mbscasecmp.
47160         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
47161         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
47162         we don't require GNU fnmatch ourselves (if our users require it, they
47163         should do so explicitly).
47164
47165         Fix regex code so it doesn't rely on strcasecmp.
47166         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
47167         Otherwise, include gnulib's langinfo.h.
47168         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
47169         undesirable behavior in non-C locales.  Instead, rely on localecharset.
47170         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
47171         * modules/regex (FILES): Remove m4/codeset.m4.
47172         (Depends-on): Add localcharset.  Remove strcase.
47173
47174 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47175
47176         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
47177         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47178
47179 2007-02-13  Bruno Haible  <bruno@clisp.org>
47180
47181         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
47182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47183
47184 2007-02-12  Bruno Haible  <bruno@clisp.org>
47185
47186         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47187         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
47188         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
47189         time warning rather than a link error.
47190
47191 2007-02-12  Bruno Haible  <bruno@clisp.org>
47192
47193         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
47194         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47196
47197 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47198
47199         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
47200         args, not 2.
47201
47202 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47203
47204         New module 'time', so that apps can include <time.h> as per
47205         POSIX and GNU instead of separate include files like time_r.h
47206         and timegm.h.  This implementation tries out a simpler approach
47207         for replacing decls in standard include files (as compared to
47208         the string module), somewhat as an experiment.
47209
47210         * config/srclist.txt: Comment out mktime.c for now.
47211         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
47212         since it doesn't apply any more.  Use generic wording instead.
47213         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
47214         'time'.
47215         * lib/time_.h, m4/time_h.m4, modules/time: New files.
47216         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
47217         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
47218         Don't include <sys/types.h>; no longer needed since we assume C89.
47219         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
47220         * lib/strftime.c: Likewise.
47221         * lib/time_r.c: Likewise.
47222         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
47223         * lib/nanosleep.c: Include <time.h> first, to check interface.
47224         * lib/strptime.c: Likewise.
47225         * lib/time_r.c: Likewise.
47226         * lib/timegm.c: Likewise.
47227         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
47228         needed.
47229         * lib/timegm.c: Don't include timegm.h; no longer needed.
47230         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
47231         time.h now handles any problems in that area.
47232         (struct timespec, nanosleep): Remove; time.h now arranges for these.
47233         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
47234         that time.h defines struct timespec.
47235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
47236         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
47237         handles that.
47238         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
47239         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
47240         needed.  Set REPLACE_LOCALTIME.
47241         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
47242         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
47243         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
47244         nanosleep; time_h.m4 now does that.  Don't require
47245         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
47246         module handles this now.
47247         * modules/getdate (Depends-on): Remove timespec.  Add time.
47248         * modules/nanosleep (Depends-on): Likewise.
47249         * modules/stat-time (Depends-on): Likewise.
47250         * modules/nanosleep (Include): Include time.h, not timespec.h.
47251         * modules/strptime (Files): Remove lib/strptime.h.
47252         (Depends-on): Add extensions, time.
47253         (Include): Include time.h, not strptime.h.
47254         * modules/time_r (Files): Remove lib/time_r.h.
47255         (Depends-on): Add time.
47256         (Include): Include time.h, not time_r.h.
47257         * modules/timegm: Likewise.
47258         * modules/timespec (Description): Now does timespec-related decls
47259         of our own, instead of struct timespec itself.
47260         (Depends-on): Add time; remove extensions.
47261         (Maintainer): Add self.
47262         * modules/utimecmp (Depends-on): Add time; remove timespec.
47263         * modules/utimens (Depends-on): Likewise.
47264         * modules/xnanosleep (Depends-on): Likewise.
47265
47266 2007-02-11  Bruno Haible  <bruno@clisp.org>
47267
47268         * lib/c-strstr.c: Include allocsa.h.
47269         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47270         * lib/c-strcasestr.c: Include allocsa.h.
47271         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47272         * lib/strcasestr.c: Include allocsa.h.
47273         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47274         * lib/mbsstr.c: Include allocsa.h.
47275         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47276         allocsa/freesa instead of malloc/free.
47277         * lib/mbscasestr.c: Include allocsa.h.
47278         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47279         allocsa/freesa instead of malloc/free.
47280         * modules/c-strstr (Depends-on): Add allocsa.
47281         * modules/c-strcasestr (Depends-on): Likewise.
47282         * modules/strcasestr (Depends-on): Likewise.
47283         * modules/mbsstr (Depends-on): Likewise.
47284         * modules/mbscasestr (Depends-on): Likewise.
47285
47286 2007-02-11  Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
47289
47290         * modules/mbsspn-tests: New file.
47291         * tests/test-mbsspn.sh: New file.
47292         * tests/test-mbsspn.c: New file.
47293
47294 2007-02-11  Bruno Haible  <bruno@clisp.org>
47295
47296         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
47297
47298         * modules/mbspbrk-tests: New file.
47299         * tests/test-mbspbrk.sh: New file.
47300         * tests/test-mbspbrk.c: New file.
47301
47302 2007-02-11  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
47305         unneeded cast.
47306
47307         * modules/mbscspn-tests: New file.
47308         * tests/test-mbscspn.sh: New file.
47309         * tests/test-mbscspn.c: New file.
47310
47311 2007-02-11  Bruno Haible  <bruno@clisp.org>
47312
47313         * modules/mbscasecmp-tests: New file.
47314         * tests/test-mbscasecmp.sh: New file.
47315         * tests/test-mbscasecmp.c: New file.
47316
47317 2007-02-11  Bruno Haible  <bruno@clisp.org>
47318
47319         Ensure O(n) worst-case complexity of mbscasestr.
47320         * lib/mbscasestr.c: Include stdbool.h.
47321         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47322         functions.
47323         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
47324         the bookkeeping indicates that it's worth it.
47325         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
47326
47327         * modules/mbscasestr-tests: New file.
47328         * tests/test-mbscasestr1.c: New file.
47329         * tests/test-mbscasestr2.sh: New file.
47330         * tests/test-mbscasestr2.c: New file.
47331         * tests/test-mbscasestr3.sh: New file.
47332         * tests/test-mbscasestr3.c: New file.
47333         * tests/test-mbscasestr4.sh: New file.
47334         * tests/test-mbscasestr4.c: New file.
47335         * m4/locale-tr.m4: New file.
47336
47337 2007-02-11  Bruno Haible  <bruno@clisp.org>
47338
47339         Ensure O(n) worst-case complexity of mbsstr.
47340         * lib/mbsstr.c: Include stdbool.h.
47341         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47342         functions.
47343         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
47344         bookkeeping indicates that it's worth it.
47345         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
47346
47347         * modules/mbsstr-tests: New file.
47348         * tests/test-mbsstr1.c: New file.
47349         * tests/test-mbsstr2.sh: New file.
47350         * tests/test-mbsstr2.c: New file.
47351         * tests/test-mbsstr3.sh: New file.
47352         * tests/test-mbsstr3.c: New file.
47353         * m4/locale-fr.m4: New file.
47354
47355 2007-02-11  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/mbsrchr.c (mbsrchr): Fix bug.
47358
47359         * modules/mbsrchr-tests: New file.
47360         * tests/test-mbsrchr.sh: New file.
47361         * tests/test-mbsrchr.c: New file.
47362
47363 2007-02-11  Bruno Haible  <bruno@clisp.org>
47364
47365         * lib/mbschr.c (mbschr): Fix bug.
47366
47367         * modules/mbschr-tests: New file.
47368         * tests/test-mbschr.sh: New file.
47369         * tests/test-mbschr.c: New file.
47370         * m4/locale-zh.m4: New file.
47371
47372 2007-02-11  Bruno Haible  <bruno@clisp.org>
47373
47374         Support for copying multibyte string iterators.
47375         * lib/mbiter.h: Include <string.h>.
47376         (mbiter_multi_copy): New function.
47377         (mbi_copy): New macro.
47378         * lib/mbuiter.h: Include <string.h>.
47379         (mbuiter_multi_copy): New function.
47380         (mbui_copy): New macro.
47381
47382 2007-02-11  Bruno Haible  <bruno@clisp.org>
47383
47384         New module mbslen.
47385         * modules/mbslen: New file.
47386         * lib/mbslen.c: New file.
47387         * lib/string_.h (mbslen): New declaration.
47388         * m4/mbslen.m4: New file.
47389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47390         GNULIB_MBSLEN.
47391         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
47392         * MODULES.html.sh (Internationalization functions): Add mbslen.
47393
47394 2007-02-11  Bruno Haible  <bruno@clisp.org>
47395
47396         Ensure O(n) worst-case complexity of strcasestr substitute.
47397         * lib/strcasestr.c: Include stdbool.h.
47398         (knuth_morris_pratt): New function.
47399         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47400         bookkeeping indicates that it's worth it.
47401         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
47402
47403         * modules/strcasestr-tests: New file.
47404         * tests/test-strcasestr.c: New file.
47405
47406 2007-02-11  Bruno Haible  <bruno@clisp.org>
47407
47408         Ensure O(n) worst-case complexity of c_strcasestr.
47409         * lib/c-strcasestr.c: Include stdbool.h, string.h.
47410         (knuth_morris_pratt): New function.
47411         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
47412         the bookkeeping indicates that it's worth it.
47413         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
47414
47415         * modules/c-strcasestr-tests: New file.
47416         * tests/test-c-strcasestr.c: New file.
47417
47418 2007-02-11  Bruno Haible  <bruno@clisp.org>
47419
47420         Ensure O(n) worst-case complexity of c_strstr.
47421         * lib/c-strstr.c: Include stdbool.h, string.h.
47422         (knuth_morris_pratt): New function.
47423         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47424         bookkeeping indicates that it's worth it.
47425         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
47426
47427         * lib/c-strstr.c: Complete rewrite for maintainability.
47428
47429         * modules/c-strstr-tests: New file.
47430         * tests/test-c-strstr.c: New file.
47431
47432 2007-02-11  Bruno Haible  <bruno@clisp.org>
47433
47434         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
47435         5.2.1 and earlier, whereby \055 was treated just like the range
47436         delimiter '-'.
47437         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47438
47439 2007-02-08  Bruno Haible  <bruno@clisp.org>
47440
47441         * modules/regex (Depends-on): Add stdbool.
47442         Reported by Dalibor Topic <robilad@kaffe.org>.
47443
47444 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47445
47446         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
47447         Prefer returning from main to exiting from it.
47448         Remove unnecessary parens after sizeof.
47449
47450 2007-02-05  Bruno Haible  <bruno@clisp.org>
47451
47452         New module mbssep.
47453         * modules/mbssep: New file.
47454         * lib/mbssep.c: New file.
47455         * lib/string_.h (strsep): Add a conditional link warning.
47456         (mbssep): New declaration.
47457         * m4/mbssep.m4: New file.
47458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47459         GNULIB_MBSSEP.
47460         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
47461         * MODULES.html.sh (Internationalization functions): Add mbssep.
47462
47463 2007-02-05  Bruno Haible  <bruno@clisp.org>
47464
47465         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
47466         Optimize search in case of 1 delimiter.
47467
47468 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47469
47470         * lib/acl.h: Include sys/types.h before sys/acl.h.
47471
47472 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47473
47474         Merge upstream fix for glibc bugzilla #3957:
47475
47476         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
47477
47478         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
47479         bit for RE_HAT_LISTS_NOT_NEWLINE.
47480         (build_charclass_op): Remove bogus comment.
47481
47482 2007-02-05  Simon Josefsson  <simon@josefsson.org>
47483
47484         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
47485
47486 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
47487
47488         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
47489         * lib/memmem.c [!defined _LIBC]: Include config.h.
47490
47491 2007-02-04  Bruno Haible  <bruno@clisp.org>
47492
47493         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
47494         warning message.
47495
47496 2007-02-04  Bruno Haible  <bruno@clisp.org>
47497
47498         New module mbstok_r.
47499         * modules/mbstok_r: New file.
47500         * lib/mbstok_r.c: New file.
47501         * lib/string_.h (strtok_r): Change argument names to match the
47502         comments. Add a conditional link warning.
47503         (mbstok_r): New declaration.
47504         * m4/mbstok_r.m4: New file.
47505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47506         GNULIB_MBSTOK_R.
47507         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
47508         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
47509
47510 2007-02-04  Bruno Haible  <bruno@clisp.org>
47511
47512         New module mbsspn.
47513         * modules/mbsspn: New file.
47514         * lib/mbsspn.c: New file.
47515         * lib/string_.h (strspn): Add a conditional link warning.
47516         (mbsspn): New declaration.
47517         * m4/mbsspn.m4: New file.
47518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47519         GNULIB_MBSSPN.
47520         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
47521         * MODULES.html.sh (Internationalization functions): Add mbsspn.
47522
47523 2007-02-04  Bruno Haible  <bruno@clisp.org>
47524
47525         New module mbspbrk.
47526         * modules/mbspbrk: New file.
47527         * lib/mbspbrk.c: New file.
47528         * lib/string_.h (strpbrk): Add a conditional link warning.
47529         (mbspbrk): New declaration.
47530         * m4/mbspbrk.m4: New file.
47531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47532         GNULIB_MBSPBRK.
47533         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
47534         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
47535
47536 2007-02-04  Bruno Haible  <bruno@clisp.org>
47537
47538         New module mbscspn.
47539         * modules/mbscspn: New file.
47540         * lib/mbscspn.c: New file.
47541         * lib/string_.h (strcspn): Add a conditional link warning.
47542         (mbscspn): New declaration.
47543         * m4/mbscspn.m4: New file.
47544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47545         GNULIB_MBSCSPN.
47546         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
47547         * MODULES.html.sh (Internationalization functions): Add mbscspn.
47548
47549 2007-02-04  Bruno Haible  <bruno@clisp.org>
47550
47551         New module mbscasestr, reduced goal of strcasestr.
47552         * modules/mbscasestr: New file.
47553         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
47554         (mbscasestr): Renamed from strcasestr.
47555         * lib/strcasestr.c: Don't include mbuiter.h.
47556         (strcasestr): Remove support for multibyte locales.
47557         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
47558         Change the conditional link warning.
47559         (mbscasestr): New declaration.
47560         * m4/mbscasestr.m4: New file.
47561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
47562         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
47563         REPLACE_STRCASESTR.
47564         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
47565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47566         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
47567         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
47568         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
47569         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
47570         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
47571         (Depends-on): Remove mbuiter.
47572         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
47573
47574 2007-02-04  Bruno Haible  <bruno@clisp.org>
47575
47576         Simplify handling of strncasecmp.
47577         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
47578         the conditional link warning.
47579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47580         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
47581         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
47582         * modules/strcase (configure.ac): Don't invoke
47583         gl_STRING_MODULE_INDICATOR.
47584         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
47585
47586 2007-02-04  Bruno Haible  <bruno@clisp.org>
47587
47588         New module mbscasecmp, reduced goal of strcasecmp.
47589         * modules/mbscasecmp: New file.
47590         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
47591         (mbscasecmp): Renamed from strcasecmp.
47592         * lib/strcasecmp.c: Don't include mbuiter.h.
47593         (strcasecmp): Remove support for multibyte locales.
47594         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
47595         Change the conditional link warning.
47596         (mbscasecmp): New declaration.
47597         * m4/mbscasecmp.m4: New file.
47598         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
47599         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
47600         REPLACE_STRCASECMP.
47601         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
47602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47603         GNULIB_MBSCASECMP.
47604         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
47605         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
47606         * modules/strcase (Files): Remove m4/mbrtowc.m4.
47607         (Depends-on): Remove mbuiter.
47608         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
47609
47610 2007-02-04  Bruno Haible  <bruno@clisp.org>
47611
47612         New module mbsstr. Remove module strstr.
47613         * modules/mbsstr: New file.
47614         * modules/strstr: Remove file.
47615         * lib/mbsstr.c: Renamed from lib/strstr.c.
47616         (mbsstr): Renamed from strstr.
47617         * lib/string_.h (strstr): Remove declaration. Change the conditional
47618         link warning.
47619         (mbsstr): New declaration.
47620         * m4/mbsstr.m4: New file.
47621         * m4/strstr.m4: Remove file.
47622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
47623         REPLACE_STRSTR.
47624         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
47625         Don't initialize GNULIB_STRSTR.
47626         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
47627         substitute GNULIB_STRSTR and REPLACE_STRSTR.
47628         * MODULES.html.sh (Internationalization functions): Add mbsstr.
47629         (Support for systems lacking ANSI C 89): Remove strstr.
47630
47631 2007-02-04  Bruno Haible  <bruno@clisp.org>
47632
47633         New module mbsrchr.
47634         * modules/mbsrchr: New file.
47635         * lib/mbsrchr.c: New file.
47636         * lib/string_.h (strrchr): Add a conditional link warning.
47637         (mbsrchr): New declaration.
47638         * m4/mbsrchr.m4: New file.
47639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47640         GNULIB_MBSRCHR.
47641         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
47642         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
47643
47644 2007-02-04  Bruno Haible  <bruno@clisp.org>
47645
47646         New module mbschr.
47647         * modules/mbschr: New file.
47648         * lib/mbschr.c: New file.
47649         * lib/string_.h (strchr): Add a conditional link warning.
47650         (mbschr): New declaration.
47651         * m4/mbschr.m4: New file.
47652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47653         GNULIB_MBSCHR.
47654         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
47655         * MODULES.html.sh (Internationalization functions): Add mbschr.
47656
47657 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
47658
47659         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
47660
47661         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
47662
47663 2007-02-04  Bruno Haible  <bruno@clisp.org>
47664
47665         New module description section 'configure.ac-early'.
47666         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
47667         (func_get_autoconf_early_snippet): New function.
47668         (func_import, func_create_testdir): Use it. Remove special cases for
47669         modules 'extensions' and 'lock'.
47670         * modules/extensions (configure.ac-early): Require
47671         gl_USE_SYSTEM_EXTENSIONS.
47672         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
47673
47674 2007-02-04  Bruno Haible  <bruno@clisp.org>
47675
47676         Make use of gcj-4.3's -fsource and -ftarget option.
47677         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
47678         and if so try the options -fsource and -ftarget.
47679         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
47680         source_version, ftarget_option, target_version arguments.
47681         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
47682         (is_envjavac_oldgcj_14_14_usable): Renamed from
47683         is_envjavac_gcj_14_14_usable.
47684         (is_envjavac_oldgcj_14_13_usable): Renamed from
47685         is_envjavac_gcj_14_13_usable.
47686         (is_gcj_present): Update.
47687         (is_gcj_43, is_gcj43_usable): New functions.
47688         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
47689         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
47690         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
47691         try the options -fsource and -ftarget.
47692
47693 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
47694
47695         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
47696         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
47697         larger value.
47698
47699 2007-02-03  Jim Meyering  <jim@meyering.net>
47700
47701         Give tools a better chance to allocate space for very large buffers.
47702         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
47703
47704         Make pwd and readlink work also when run with an unreadable parent dir
47705         on systems with openat support.
47706         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
47707         provided getcwd function, even when we have openat support.
47708         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
47709
47710 2007-02-02  Bruno Haible  <bruno@clisp.org>
47711
47712         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47713         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
47714         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
47715         portability problems if one of these functions is only used on specific
47716         platforms.
47717         Reported by Paul Eggert.
47718
47719 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
47720
47721         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
47722         is causing more trouble than it's curing.
47723         * lib/regex_internal.h (__mempcpy): Remove.
47724         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
47725         (and make the code a tad smaller to boot).
47726         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
47727
47728 2007-02-02  Jim Meyering  <jim@meyering.net>
47729
47730         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
47731         section, not in the Makefile.am: one.
47732
47733 2007-02-02  Eric Blake  <ebb9@byu.net>
47734
47735         * lib/strchrnul.c: Always include config.h first.
47736
47737         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
47738         gnulib strstr is not necessary here.
47739
47740 2007-02-02  Simon Josefsson  <simon@josefsson.org>
47741
47742         * m4/socklen.m4: Fix typo.
47743
47744 2007-02-02  Eric Blake  <ebb9@byu.net>
47745
47746         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
47747         * modules/netinet_in (Makefile.am): Likewise.
47748
47749 2007-02-01  Bruno Haible  <bruno@clisp.org>
47750
47751         * lib/string_.h (GL_LINK_WARNING): New macro.
47752         (strcasecmp, strstr, strcasestr): If provided by the system,
47753         conditionally define as a macro that leads to a warning instead of to
47754         an error.
47755         (strncasecmp): Conditionally define as a macro that leads to a warning.
47756
47757 2007-02-01  Karl Berry  <karl@gnu.org>
47758
47759         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
47760
47761 2007-02-01  Bruno Haible  <bruno@clisp.org>
47762
47763         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
47764         renamings.
47765
47766 2007-02-01  Eric Blake  <ebb9@byu.net>
47767
47768         * modules/regex (Depends-on): Revert dependence on mempcpy.
47769         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
47770         module's definition of mempcpy.
47771         Reported by Paul Eggert.
47772
47773 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
47774
47775         * lib/string_.h: If the gnulib module XYZ is not present, undefine
47776         the symbol XYZ before redefining it.  This fixes a problem with
47777         programs that don't use XYZ, when compiled on systems that define
47778         XYZ to something else.
47779
47780 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
47781
47782         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
47783         occurs when "mkdir -m foo" creates a setgid directory that is (1)
47784         writeable to group or other and (2) is intended to have a special
47785         mode bit that is set or cleared.  In such a case, the directory
47786         should be neither group- nor other-writeable until the special
47787         mode bits are right.
47788
47789 2007-01-31  Eric Blake  <ebb9@byu.net>
47790
47791         * modules/mountlist (Depends-on): Add strstr.
47792
47793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
47794         bug.
47795         * modules/string (Makefile.am): Remove redundant replacement.
47796         * modules/regex (Depends-on): Add mempcpy.
47797
47798 2007-01-31  Bruno Haible  <bruno@clisp.org>
47799
47800         New module description field 'Link'.
47801         * gnulib-tool (func_usage): Document --extract-link-directive.
47802         (sed_extract_prog): Recognize 'Link' directive.
47803         (func_get_link_directive): New function.
47804         (func_import): Show summary of link directives.
47805         Handle --extract-link-directive option.
47806         * modules/acl (Link): New section.
47807         * modules/clock-time (Link): New section.
47808         * modules/euidaccess (Link): New section.
47809         * modules/gettext (Link): New section.
47810         * modules/iconv (Link): New section.
47811         * modules/lock (Link): New section.
47812         * modules/nanosleep (Link): New section.
47813         * modules/readline (Link): New section.
47814
47815 2007-01-27  Bruno Haible  <bruno@clisp.org>
47816
47817         Enforce the use of gnulib modules for unportable <string.h> functions.
47818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
47819         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
47820         (gl_HEADER_STRING_H_BODY): Require it.
47821         * lib/string_.h: If the gnulib module XYZ is not present, redefine
47822         the symbol XYZ to one that gives a link error.
47823         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
47824         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
47825         * modules/mempcpy (configure.ac): Likewise.
47826         * modules/memrchr (configure.ac): Likewise.
47827         * modules/stpcpy (configure.ac): Likewise.
47828         * modules/stpncpy (configure.ac): Likewise.
47829         * modules/strcase (configure.ac): Likewise.
47830         * modules/strcasestr (configure.ac): Likewise.
47831         * modules/strchrnul (configure.ac): Likewise.
47832         * modules/strdup (configure.ac): Likewise.
47833         * modules/strndup (configure.ac): Likewise.
47834         * modules/strnlen (configure.ac): Likewise.
47835         * modules/strpbrk (configure.ac): Likewise.
47836         * modules/strsep (configure.ac): Likewise.
47837         * modules/strstr (configure.ac): Likewise.
47838         * modules/strtok_r (configure.ac): Likewise.
47839
47840 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
47841
47842         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
47843
47844 2007-01-30  Jim Meyering  <jim@meyering.net>
47845
47846         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
47847
47848 2007-01-29  Bruno Haible  <bruno@clisp.org>
47849
47850         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
47851         * lib/execute.c: Likewise.
47852         * lib/pipe.c: Likewise.
47853         * lib/printf-args.h: Likewise.
47854         * lib/printf-args.c: Likewise.
47855         * lib/printf-parse.c: Likewise.
47856         * lib/vasnprintf.c: Likewise.
47857
47858 2007-01-29  Eric Blake  <ebb9@byu.net>
47859
47860         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
47861         declaration.
47862
47863 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
47864
47865         * lib/strptime.h (strptime): Use 'restrict' for args where
47866         POSIX requires this.
47867         * lib/strptime.c (strptime): Likewise.
47868         Change license notice from LGPL to GPL, since gnulib-tool will
47869         change this as needed.
47870         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
47871         defined.
47872         Include "strptime.h" first, to check interface.
47873         Do not #undef _LIBC and _NL_CURRENT.
47874         Do not include <stdlib.h>; no longer needed.
47875         Include "time_r.h" and declare ptime_locale_status
47876         only if _LIBC is not defined.
47877         (__P): Remove unused macro.
47878         (match_string): Bring back glibc version, but use it only if _LIBC
47879         is defined.
47880         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
47881         Remove unnecessary assertion and abort() call.
47882         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
47883         * m4/strptime.m4: Fix serial number comment.
47884         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
47885         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
47886         (Depends-on): Add time_r.
47887
47888 2007-01-29  Bruno Haible  <bruno@clisp.org>
47889
47890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47891         strptime.
47892         * modules/strptime (Depends-on): Add stdbool.
47893         * lib/strptime.h: Include <time.h> always. Add comments.
47894
47895 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47896
47897         * modules/strptime: New file.
47898         * lib/strptime.h: New file.
47899         * lib/strptime.c: New file.
47900         * m4/strptime.m4: New file.
47901
47902 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
47903
47904         * MODULES.html.sh: New module mpsort.
47905         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
47906
47907         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
47908         a circularity problem with HP-UX ia64 reported by Bob Proulx in
47909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
47910         All uses changed.
47911         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
47912         All uses changed.
47913         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
47914         to _Restrict_.
47915         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
47916         the parameter matches the prototype.
47917
47918 2007-01-28  Jim Meyering  <jim@meyering.net>
47919
47920         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
47921         sys/time.h here, reverting that part of the previous patch:
47922         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
47923
47924 2007-01-28  Bruno Haible  <bruno@clisp.org>
47925
47926         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
47927         value of $(SYS_TIME_H).
47928         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
47929         remove it conditionally, too. [added by Jim Meyering]
47930         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
47931         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47932         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
47933         GETTIMEOFDAY_REPLACEMENT to 1.
47934
47935 2007-01-28  Bruno Haible  <bruno@clisp.org>
47936
47937         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
47938         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
47939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
47940         Set UNISTD_H instead of UNISTD_H2.
47941         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
47942
47943 2007-01-28  Bruno Haible  <bruno@clisp.org>
47944
47945         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
47946         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
47947
47948 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47949
47950         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
47951         (func_create_testdir): Ensure C locale for `grep' and `tr'
47952         character ranges.
47953         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
47954         ACLOCAL_AMFLAGS parsing state machine.
47955
47956 2007-01-27  Bruno Haible  <bruno@clisp.org>
47957
47958         * modules/unistr/base: Update.
47959
47960 2007-01-27  Bruno Haible  <bruno@clisp.org>
47961
47962         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
47963         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
47964         * modules/unistr/u32-mbtouc-unsafe: Renamed from
47965         modules/unistr/u32-mbtouc.
47966         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
47967         * lib/unistr.h: Update.
47968         * lib/linebreak.c: Update.
47969         * modules/unistr/u32-mbtouc: Renamed from
47970         modules/unistr/u32-mbtouc-safe.
47971         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
47972         * lib/unistr.h: Update.
47973         * lib/unistr/u32-to-u8.c: Update.
47974         * lib/unistr/u32-to-u16.c: Update.
47975
47976 2007-01-27  Bruno Haible  <bruno@clisp.org>
47977
47978         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
47979         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
47980         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
47981         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
47982         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
47983         * modules/unistr/u16-mbtouc-unsafe: Renamed from
47984         modules/unistr/u16-mbtouc.
47985         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
47986         * lib/unistr.h: Update.
47987         * lib/linebreak.c: Update.
47988         * modules/linebreak: Update.
47989         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
47990         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
47991         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
47992         * modules/unistr/u16-mbtouc: Renamed from
47993         modules/unistr/u16-mbtouc-safe.
47994         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
47995         * lib/unistr.h: Update.
47996         * lib/unistr/u16-to-u8.c: Update.
47997         * modules/unistr/u16-to-u8: Update.
47998         * lib/unistr/u16-to-u32.c: Update.
47999         * modules/unistr/u16-to-u32: Update.
48000
48001 2007-01-27  Bruno Haible  <bruno@clisp.org>
48002
48003         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48004         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48005         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48006         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48007         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48008         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48009         modules/unistr/u8-mbtouc.
48010         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48011         * lib/unistr.h: Update.
48012         * lib/striconveh.c: Update.
48013         * modules/striconveh: Update.
48014         * lib/linebreak.c: Update.
48015         * modules/linebreak: Update.
48016         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48017         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48018         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48019         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48020         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48021         * lib/unistr.h: Update.
48022         * lib/striconveh.c: Update.
48023         * modules/striconveh: Update.
48024         * lib/unistr/u8-to-u16.c: Update.
48025         * modules/unistr/u8-to-u16: Update.
48026         * lib/unistr/u8-to-u32.c: Update.
48027         * modules/unistr/u8-to-u32: Update.
48028
48029 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48030
48031         Sync from Libtool.
48032         * lib/argz.c: Do not include strings.h nor memory.h, include
48033         string.h unconditionally.  Patch by Simon Josefsson.
48034
48035 2007-01-27  Bruno Haible  <bruno@clisp.org>
48036
48037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48038         from gl_HEADER_STRING_H_BODY.
48039         (gl_HEADER_STRING_H_BODY): Require it.
48040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48041         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48042         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48043         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48045         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
48046         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48047         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48048         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
48049         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48050         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48051         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
48052         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48053         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48054         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48055
48056 2007-01-27  Bruno Haible  <bruno@clisp.org>
48057
48058         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
48059         check_PROGRAMS into noinst_PROGRAMS.
48060         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
48061         check_PROGRAMS in this case.
48062         (func_import): Set for_test to false.
48063         (func_create_testdir): Set for_test to true.
48064
48065 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48066             Bruno Haible  <bruno@clisp.org>
48067
48068         * modules/strcasestr (Files): Remove lib/strcasestr.h.
48069         (Depends-on): Add string.
48070         (Includes): Use <string.h> instead of strcasestr.h.
48071         * modules/string (Makefile.am): Also substitute the value of
48072         REPLACE_STRCASESTR.
48073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
48074         assume strcasestr is declared in <string.h> not <strings.h>. Also
48075         set REPLACE_STRCASESTR.
48076         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
48077         REPLACE_STRCASESTR.
48078         * lib/strcasestr.h: Remove file.
48079         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
48080         * lib/string_.h (strcasestr): New declaration.
48081
48082 2007-01-27  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/string_.h: Use 'extern'.
48085
48086 2007-01-27  Jim Meyering  <jim@meyering.net>
48087
48088         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
48089         of set-but-not-used local, "q".
48090
48091         * lib/mempcpy.c: Include <config.h> before <string.h>.
48092         This fixes a compilation error on HP-UX, due to the system's
48093         "restrict"-using mempcpy prototype.
48094
48095 2007-01-26  Bruno Haible  <bruno@clisp.org>
48096
48097         Small optimization.
48098         * lib/javacomp.c: Include c-strstr.h.
48099          (is_envjavac_gcj): Use c_strstr instead of strstr.
48100         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
48101
48102 2007-01-26  Bruno Haible  <bruno@clisp.org>
48103
48104         * MODULES.html.sh (Unicode string functions): Add the new modules.
48105
48106         * modules/uniconv/u32-strconv-to-locale: New file.
48107         * lib/uniconv/u32-strconv-to-locale.c: New file.
48108
48109         * modules/uniconv/u16-strconv-to-locale: New file.
48110         * lib/uniconv/u16-strconv-to-locale.c: New file.
48111
48112         * modules/uniconv/u8-strconv-to-locale: New file.
48113         * lib/uniconv/u8-strconv-to-locale.c: New file.
48114
48115         * modules/uniconv/u32-strconv-from-locale: New file.
48116         * lib/uniconv/u32-strconv-from-locale.c: New file.
48117
48118         * modules/uniconv/u16-strconv-from-locale: New file.
48119         * lib/uniconv/u16-strconv-from-locale.c: New file.
48120
48121         * modules/uniconv/u8-strconv-from-locale: New file.
48122         * lib/uniconv/u8-strconv-from-locale.c: New file.
48123
48124         * modules/uniconv/u32-strconv-to-enc: New file.
48125         * lib/uniconv/u32-strconv-to-enc.c: New file.
48126         * modules/uniconv/u32-strconv-to-enc-tests: New file.
48127         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
48128
48129         * modules/uniconv/u16-strconv-to-enc: New file.
48130         * lib/uniconv/u16-strconv-to-enc.c: New file.
48131         * lib/uniconv/u-strconv-to-enc.h: New file.
48132         * modules/uniconv/u16-strconv-to-enc-tests: New file.
48133         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
48134
48135         * modules/uniconv/u8-strconv-to-enc: New file.
48136         * lib/uniconv/u8-strconv-to-enc.c: New file.
48137         * modules/uniconv/u8-strconv-to-enc-tests: New file.
48138         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
48139
48140         * modules/uniconv/u32-strconv-from-enc: New file.
48141         * lib/uniconv/u32-strconv-from-enc.c: New file.
48142         * modules/uniconv/u32-strconv-from-enc-tests: New file.
48143         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
48144
48145         * modules/uniconv/u16-strconv-from-enc: New file.
48146         * lib/uniconv/u16-strconv-from-enc.c: New file.
48147         * modules/uniconv/u16-strconv-from-enc-tests: New file.
48148         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
48149
48150         * modules/uniconv/u8-strconv-from-enc: New file.
48151         * lib/uniconv/u8-strconv-from-enc.c: New file.
48152         * lib/uniconv/u-strconv-from-enc.h: New file.
48153         * modules/uniconv/u8-strconv-from-enc-tests: New file.
48154         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
48155
48156         * modules/uniconv/u32-conv-from-enc: New file.
48157         * lib/uniconv/u32-conv-from-enc.c: New file.
48158         * modules/uniconv/u32-conv-from-enc-tests: New file.
48159         * tests/uniconv/test-u32-conv-from-enc.c: New file.
48160
48161         * modules/uniconv/u16-conv-from-enc: New file.
48162         * lib/uniconv/u16-conv-from-enc.c: New file.
48163         * lib/uniconv/u-conv-from-enc.h: New file.
48164         * modules/uniconv/u16-conv-from-enc-tests: New file.
48165         * tests/uniconv/test-u16-conv-from-enc.c: New file.
48166
48167         * modules/uniconv/u8-conv-from-enc: New file.
48168         * lib/uniconv/u8-conv-from-enc.c: New file.
48169         * modules/uniconv/u8-conv-from-enc-tests: New file.
48170         * tests/uniconv/test-u8-conv-from-enc.c: New file.
48171
48172         * modules/uniconv/base: New file.
48173         * lib/uniconv.h: New file.
48174
48175 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48176
48177         * doc/gnulib-tool.texi (Initial import): Update to match current
48178         behavior with strdup module.
48179         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
48180         * lib/memmem.h: Remove; all uses removed.  This is now done
48181         by <string.h>.
48182         * lib/mempcpy.h: Likewise.
48183         * lib/memrchr.h: Likewise.
48184         * lib/stpcpy.h: Likewise.
48185         * lib/stpncpy.h: Likewise.
48186         * lib/strcase.h: Likewise.
48187         * lib/strchrnul.h: Likewise.
48188         * lib/strdup.h: Likewise.
48189         * lib/strndup.h: Likewise.
48190         * lib/strnlen.h: Likewise.
48191         * lib/strpbrk.h: Likewise.
48192         * lib/strsep.h: Likewise.
48193         * lib/strstr.h: Likewise.
48194         * lib/strtok_r.h: Likewise.
48195         * lib/string_.h: New file.
48196         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
48197         Rely on <string.h> instead.
48198         * lib/canon-host.c: Likewise.
48199         * lib/chdir-long.c: Likewise.
48200         * lib/concatpath.c: Likewise.
48201         * lib/exclude.c: Likewise.
48202         * lib/fchdir.c: Likewise.
48203         * lib/getaddrinfo.c: Likewise.
48204         * lib/getcwd.c: Likewise.
48205         * lib/getsubopt.c: Likewise.
48206         * lib/glob.c: Likewise.
48207         * lib/hard-locale.c: Likewise.
48208         * lib/iconvme.c: Likewise.
48209         * lib/javacomp.c: Likewise.
48210         * lib/mempcpy.c: Likewise.
48211         * lib/memrchr.c: Likewise.
48212         * lib/regex_internal.h: Likewise.
48213         * lib/stpncpy.c: Likewise.
48214         * lib/strcasecmp.c: Likewise.
48215         * lib/strchrnul.c: Likewise.
48216         * lib/strdup.c: Likewise.
48217         * lib/striconv.c: Likewise.
48218         * lib/striconveh.c: Likewise.
48219         * lib/striconveha.c: Likewise.
48220         * lib/strncasecmp.c: Likewise.
48221         * lib/strndup.c: Likewise.
48222         * lib/strnlen.c: Likewise.
48223         * lib/strsep.c: Likewise.
48224         * lib/strstr.c: Likewise.
48225         * lib/strtok_r.c: Likewise.
48226         * lib/userspec.c: Likewise.
48227         * lib/w32spawn.h: Likewise.
48228         * lib/xstrndup.c: Likewise.
48229         * lib/mountlist.c (strstr): Remove decl.
48230         * m4/string_h.m4: New file.
48231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
48232         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
48233         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
48234         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
48235         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
48236         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
48237         Set REPLACE_STRCASECMP if necessary.
48238         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
48239         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
48240         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
48241         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
48242         HAVE_DECL_STRDUP if necessary.
48243         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
48244         since gl_FUNC_STRNDUP does that now.
48245         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
48246         Check for decl here...
48247         (gl_PREREQ_STRNLEN): ... not here.
48248         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
48249         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
48250         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
48251         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
48252         necessary.
48253         * modules/string: New file.
48254         * modules/memmem (Files): Remove special-purpose include file.
48255         (Depends-on): Add string.
48256         (Include): Include <string.h>, not the removed file.
48257         * modules/mempcpy: Likewise.
48258         * modules/memrchr: Likewise.
48259         * modules/stpcpy: Likewise.
48260         * modules/stpncpy: Likewise.
48261         * modules/strcase: Likewise.
48262         * modules/strchrnul: Likewise.
48263         * modules/strdup: Likewise.
48264         * modules/strndup: Likewise.
48265         * modules/strnlen: Likewise.
48266         * modules/strpbrk: Likewise.
48267         * modules/strsep: Likewise.
48268         * modules/strstr: Likewise.
48269         * modules/strtok_r: Likewise.
48270         * tests/test-dirname.c: Don't include "strdup.h", since
48271         <string.h> now suffices.
48272         * tests/test-memmem.c: Don't include "memmem.h", since
48273         <string.h> now suffices.
48274
48275 2007-01-25  Bruno Haible  <bruno@clisp.org>
48276
48277         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
48278         *resultp is 0.
48279
48280         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
48281         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
48282         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
48283         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
48284
48285         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
48286         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
48287         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
48288         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
48289         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
48290         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
48291
48292 2007-01-24  Bruno Haible  <bruno@clisp.org>
48293
48294         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
48295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
48296         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
48297         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
48298         gl_FUNC_FTS_CORE.
48299         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
48300         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
48301         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48302         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
48303         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
48304         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
48305         gl_FUNC_FCHOWNAT.
48306         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
48307         gl_FUNC_STRFTIME.
48308         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
48309         Reported by Ralf Wildenhues.
48310
48311 2007-01-24  Bruno Haible  <bruno@clisp.org>
48312
48313         Drop AC_REQUIRE calls that are redundant with the module dependencies.
48314         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
48315         gl_GETADDRINFO.
48316         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
48317         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
48318         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
48319
48320 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
48321
48322         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
48323         Don't use 'exit'; just return from 'main'.
48324         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
48325
48326         * lib/fnmatch_.h: Readjust white space and comments to match
48327         glibc, to avoid spurious diffs.
48328
48329 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48330
48331         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
48332         2004-12-01 change by Jakub Jelinek, since this code won't compile
48333         if !LIBC.  Problem reported by Bob Proulx.
48334
48335 2007-01-23  Bruno Haible  <bruno@clisp.org>
48336
48337         * lib/striconveh.c: Include c-strcaseeq.h.
48338         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
48339         * modules/striconveh (Depends-on): Add c-strcaseeq.
48340
48341 2007-01-23  Bruno Haible  <bruno@clisp.org>
48342
48343         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
48344
48345         * modules/c-strcaseeq: New file.
48346         * lib/c-strcaseeq.h: New file.
48347
48348         * modules/streq: New file.
48349         * lib/streq.h: New file.
48350
48351 2007-01-23  Bruno Haible  <bruno@clisp.org>
48352
48353         * modules/striconveha-tests: New file.
48354         * tests/test-striconveha.c: New file.
48355
48356         * lib/striconveha.h: Include <stdbool.h>.
48357         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
48358         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
48359         (mem_iconveha_notranslit): Renamed from mem_iconveha.
48360         (mem_iconveha): New function.
48361         (str_iconveha_notranslit): Renamed from str_iconveha.
48362         (str_iconveha): New function.
48363         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
48364         c-strcase.
48365
48366 2007-01-23  Bruno Haible  <bruno@clisp.org>
48367
48368         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
48369         encodings without forgiving before trying any encoding with handler.
48370         (str_iconveha): Try all encodings without forgiving before trying any
48371         encoding with handler.
48372
48373 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48374
48375         Import the following changes from libc.
48376
48377         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48378
48379         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
48380
48381         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
48382
48383         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
48384         normal_bracket label.
48385
48386         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
48387
48388         [BZ #361]
48389         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
48390         to normal_bracket after fetching the next character.
48391
48392 2007-01-22  Bruno Haible  <bruno@clisp.org>
48393
48394         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
48395         argument.
48396         * lib/striconveh.c (iconv_carefully_1): New function.
48397         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
48398         argument.
48399         (str_cd_iconveh): Update.
48400         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
48401         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
48402         * tests/test-striconveh.c (MAGIC): New macro.
48403         (new_offsets): New function.
48404         (main): Test call with and without offsets.
48405
48406 2007-01-22  Bruno Haible  <bruno@clisp.org>
48407
48408         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
48409         * modules/sys_select (Makefile.am): Likewise.
48410         * modules/sys_socket (Makefile.am): Likewise.
48411         * modules/sys_time (Makefile.am): Likewise.
48412
48413 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48414
48415         * modules/gettimeofday (License): Change from GPL to LGPL, since
48416         gettimeofday is a library function.
48417
48418 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48419
48420         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
48421
48422 2007-01-21  Bruno Haible  <bruno@clisp.org>
48423
48424         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
48425
48426 2007-01-21  Bruno Haible  <bruno@clisp.org>
48427
48428         * modules/striconveha: New file.
48429         * lib/striconveha.h: New file.
48430         * lib/striconveha.c: New file.
48431         * MODULES.html.sh (Internationalization functions): Add striconveha.
48432         * lib/striconv.c (str_iconv): Optimize the case of an empty input
48433         string.
48434         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
48435
48436 2007-01-21  Bruno Haible  <bruno@clisp.org>
48437
48438         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
48439         * lib/striconveh.c (str_iconveh): Likewise.
48440
48441 2007-01-21  Bruno Haible  <bruno@clisp.org>
48442
48443         * lib/striconveh.h (mem_iconveh): New declaration.
48444         * lib/striconveh.c (mem_iconveh): New function.
48445         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
48446
48447 2007-01-21  Bruno Haible  <bruno@clisp.org>
48448
48449         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
48450
48451         * lib/striconveh.h (mem_cd_iconveh): Change specification.
48452         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
48453         original result buffer.
48454         (str_cd_iconveh): Update.
48455         * tests/test-striconveh.c (main): Update.
48456
48457         * lib/striconv.h (mem_cd_iconv): Change specification.
48458         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
48459         result buffer.
48460         (str_cd_iconv): Update.
48461         * tests/test-striconv.c (main): Update.
48462
48463 2007-01-21  Bruno Haible  <bruno@clisp.org>
48464
48465         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
48466
48467 2007-01-20  Jim Meyering  <jim@meyering.net>
48468
48469         * lib/userspec.c (parse_with_separator): If a user or group string
48470         starts with "+", skip the corresponding name-to-ID look-up, since
48471         such a look-up must fail: user and group names may not include "+".
48472
48473 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
48474
48475         * lib/poll.c: Include sys/time.h and time.h unconditionally,
48476         since we now assume the sys_time module.
48477         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
48478         check for sys/time.h; no longer needed.
48479         * modules/poll (Depends-on): Depend on sys_time.
48480
48481 2007-01-18  Bruno Haible  <bruno@clisp.org>
48482
48483         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
48484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
48485
48486         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
48487         gettimeofday.
48488
48489         * tests/test-gettimeofday.c: Include <time.h>.
48490         (dummy): Remove variable.
48491
48492         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
48493         gl_HEADER_SYS_TIME_H.
48494         (gl_HEADER_SYS_TIME_H): New macro.
48495
48496         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
48497         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
48499         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
48500         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48501         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
48502         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
48503         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48504         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
48505         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
48506         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48507
48508         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
48509         last change; it caused a compilation error when cross-compiling to
48510         Cygwin.
48511
48512 2007-01-18  Jim Meyering  <jim@meyering.net>
48513
48514         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
48515         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
48516         than the race-prone "test -d sys || mkdir sys".
48517         (configure.ac): Use AC_PROG_MKDIR_P.
48518         * modules/sys_select: Likewise.
48519         * modules/sys_socket: Likewise.
48520         * modules/sys_time: Likewise.
48521
48522 2007-01-18  Eric Blake  <ebb9@byu.net>
48523
48524         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
48525         replace gettimeofday.
48526         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
48527         name, to avoid infinite recursion.
48528
48529 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
48530
48531         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
48532         module sys_time.
48533         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
48534         assume timespec.h defines struct timeval.
48535         * lib/settime.c: Likewise.
48536         * lib/utimens.c: Likewise.
48537         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
48538         since we now assume the gettimeofday module.
48539         * lib/tempname.c (__gen_tempname): Likewise.
48540         * lib/gettimeofday.h: Remove.
48541         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
48542         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
48543         Include <time.h>, for 'time()'.
48544         (localtime_buffer_addr): Also use this workaround if
48545         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
48546         to simplify the uses.  All uses changed.
48547         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
48548         that #undef is inside {}, and 'const' follows type name consistently.
48549         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
48550         (gettimeofday): Do not use the maximum possible value for
48551         tv->tv_usec, since that might break usages other than ls.c.
48552         Instead, we'll leave ls.c alone.  This undoes today's patch
48553         by Bruno.  Add a compile-time warning for 1s-clock resolution;
48554         we've never observed the problem but might as well keep the
48555         canary.
48556         * lib/nanosleep.c: Include timespec.h first, for interface check.
48557         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
48558         now assume the sys_time module.
48559         * lib/tempname.c: Likewise.
48560         * lib/timespec.h: Likewise.
48561         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
48562         needed.
48563         * lib/strftime.c: Likewise.
48564         * lib/timespec.h: Likewise.
48565         * lib/posixtm.c: Include posixtm.h first, for interface check.
48566         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
48567         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
48568         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
48569         * lib/sys_time_.h: New file.
48570         * lib/timespec.h (struct timespec): Use long int, not long.
48571         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48572         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
48573         Remove obsolescent call to AC_HEADER_TIME.
48574         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
48575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48576         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
48577         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
48578         Likewise.
48579         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
48580         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
48581         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
48582         into the sys_time module.  Check for gettimeofday just once.
48583         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
48584         for gettimeofday signature to just check the signature.  Merely
48585         compile it, since linking doesn't test signature.  Improve test for
48586         whether gettimeofday.o is actually needed.
48587         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
48588         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
48589         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
48590         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48591         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
48592         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
48593         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
48594         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
48595         than worrying about sys/time.h.
48596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48597         Don't bother worrying about TIME_WITH_SYS_TIME.
48598         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
48599         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
48600         * m4/sys_time_h.m4: New file.
48601         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
48602         Don't include sys/time.h.  Return from main rather than exiting.
48603         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
48604         all uses changed.
48605         * modules/gethrxtime (Depends-on): Add sys_time.
48606         * modules/gettime (Depends-on): Likewise.
48607         * modules/gettimeofday (Depends-on): Likewise.
48608         * modules/nanosleep (Depends-on): Likewise.
48609         * modules/settime (Depends-on): Likewise.
48610         * modules/tempname (Depends-on): Likewise.
48611         * modules/utimens (Depends-on): Likewise.
48612         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
48613         (Include:) Change back to <sys/time.h>.
48614         (Maintainer:) Add self.
48615         * modules/sys_time: New file.
48616         * modules/tempname (Depends-on): Add gettimeofday.
48617         * tests/test-gettimeofday.c: Include <sys/time.h>
48618         rather than gettimeofday.h.
48619
48620 2007-01-17  Bruno Haible  <bruno@clisp.org>
48621
48622         * gnulib-tool (func_get_license): Revert last patch. Instead, let
48623         the license default to GPL.
48624         (func_create_testdir): Don't complain if a module is LGPL and its
48625         tests module depends on GPLed modules.
48626
48627 2007-01-17  Bruno Haible  <bruno@clisp.org>
48628
48629         * lib/gettimeofday.c (gettimeofday): Add code for the case
48630         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
48631         maximum possible value for tv->tv_usec, rather than the minimum one.
48632
48633 2005-10-08  Martin Lambers  <marlam@marlam.de>
48634 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48635 2007-01-16  Bruno Haible  <bruno@clisp.org>
48636
48637         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
48638         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
48639         gl_FUNC_GETTIMEOFDAY.
48640         (Include): Add gettimeofday.h.
48641         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
48642         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
48643         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
48644         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
48645         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
48646         * lib/gettimeofday.h: New file.
48647         * lib/gettimeofday.c: Include <sys/timeb.h>.
48648         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
48649         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48650         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
48651         fall back on time().
48652
48653         * tests/test-gettimeofday.c: New file.
48654         * modules/gettimeofday-tests: New file.
48655
48656 2007-01-16  Eric Blake  <ebb9@byu.net>
48657
48658         * modules/fnmatch (Depends-on): Depend on wchar.
48659         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
48660         * m4/fnmatch.m4: Likewise.
48661         * modules/mbchar (Makefile.am): Assume <wchar.h>.
48662         * m4/mbchar.m4: Likewise.
48663         * modules/mbswidth (Depends-on): Depend on wchar.
48664         * lib/mbswidth.c: Assume <wchar.h>.
48665         * m4/mbswidth.m4: Likewise.
48666         * modules/quotearg (Depends-on): Depend on wchar.
48667         * lib/quotearg.c: Assume <wchar.h>.
48668         * m4/quotearg.m4: Likewise.
48669         * modules/regex (Depends-on): Depend on wchar.
48670         * lib/regex_internal.h: Assume <wchar.h>.
48671         * m4/regex.m4: Likewise.
48672         * modules/stdint (Depends-on): Depend on wchar.
48673         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
48674         * m4/stdint.m4: Likewise.
48675         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
48676         * modules/strftime (Depends-on): Depend on wchar.
48677         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
48678         * modules/strtol (Depends-on): Depend on wchar.
48679         * lib/strtol.c: Assume <wchar.h>.
48680         * modules/wcwidth (Depends-on): Depend on wchar.
48681         * lib/wcwidth.h: Assume <wchar.h>.
48682         * m4/wcwidth.m4: Likewise.
48683
48684 2007-01-16  Bruno Haible  <bruno@clisp.org>
48685
48686         * modules/csharpexec-script: New, created from...
48687         * modules/csharpexec: ... this.
48688
48689 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48690
48691         * modules/javaexec-script: New, created from...
48692         * modules/javaexec: ... this.
48693
48694 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48695
48696         * modules/poll (Dependencies): Add sys_select.
48697
48698 2007-01-15  Jim Meyering  <jim@meyering.net>
48699
48700         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
48701         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
48702         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
48703         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
48704
48705 2007-01-15  Bruno Haible  <bruno@clisp.org>
48706
48707         * modules/striconveh: New file.
48708         * lib/striconveh.h: New file.
48709         * lib/striconveh.c: New file.
48710         * MODULES.html.sh (Internationalization functions): Add striconveh.
48711
48712         * modules/striconveh-tests: New file.
48713         * tests/test-striconveh.c: New file.
48714
48715 2007-01-15  Bruno Haible  <bruno@clisp.org>
48716
48717         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
48718         not from GNU libiconv or GNU libc.
48719
48720 2007-01-15  Bruno Haible  <bruno@clisp.org>
48721
48722         * doc/gnulib-intro.texi (Copyright): Explain the different license
48723         terms for module descriptions, autoconf macros, tests, documentation.
48724
48725 2007-01-14  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/striconv-tests: New file.
48728         * tests/test-striconv.c: New file.
48729
48730 2007-01-14  Bruno Haible  <bruno@clisp.org>
48731
48732         * modules/iconv-tests: New file.
48733         * tests/test-iconv.c: New file.
48734
48735 2007-01-14  Bruno Haible  <bruno@clisp.org>
48736
48737         * gnulib-tool (func_get_license): For test modules, use the license of
48738         the main module.
48739
48740 2007-01-14  Bruno Haible  <bruno@clisp.org>
48741
48742         * modules/iconv (Include): Clarify that <iconv.h> can only be included
48743         if iconv is found to exist.
48744
48745 2007-01-14  Bruno Haible  <bruno@clisp.org>
48746
48747         * modules/c-ctype-tests: New file.
48748         * tests/test-c-ctype.c: New file.
48749
48750 2007-01-14  Bruno Haible  <bruno@clisp.org>
48751
48752         * modules/binary-io-tests: New file.
48753         * tests/test-binary-io.sh: New file.
48754         * tests/test-binary-io.c: New file.
48755
48756 2007-01-14  Bruno Haible  <bruno@clisp.org>
48757
48758         * modules/array-oset-tests: New file.
48759         * tests/test-array_oset.c: New file.
48760
48761 2007-01-14  Bruno Haible  <bruno@clisp.org>
48762
48763         * modules/array-list-tests: New file.
48764         * tests/test-array_list.c: New file.
48765
48766 2007-01-14  Bruno Haible  <bruno@clisp.org>
48767
48768         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
48769         and make.
48770         Reported by Simon Josefsson in
48771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
48772
48773 2007-01-14  Bruno Haible  <bruno@clisp.org>
48774
48775         * modules/allocsa-tests: New file.
48776         * tests/test-allocsa.c: New file.
48777
48778 2007-01-14  Bruno Haible  <bruno@clisp.org>
48779
48780         * modules/fchdir (Depends-on): Add absolute-header.
48781         * modules/unistd (Depends-on): Likewise.
48782
48783 2006-12-30  Bruno Haible  <bruno@clisp.org>
48784
48785         * modules/fchdir: New file.
48786         * modules/unistd (Files): Add lib/unistd_.h.
48787         (Makefile.am): Generate unistd.h from unistd_.h.
48788         * lib/fchdir.c: New file.
48789         * lib/dirent_.h: New file.
48790         * lib/unistd_.h: New file.
48791         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
48792         * m4/fchdir.m4: New file.
48793         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
48794         (gl_HEADER_UNISTD): Invoke it.
48795         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
48796         function.
48797         * lib/backupfile.c (opendir, closedir): Undefine.
48798         * lib/chown.c (open, close): Undefine.
48799         * lib/clean-temp.c (open, close): Undefine.
48800         * lib/copy-file.c (open, close): Undefine.
48801         * lib/execute.c (open, close): Undefine.
48802         * lib/fsusage.c (open, close): Undefine.
48803         * lib/gc-gnulib.c (open, close): Undefine.
48804         * lib/getcwd.c (opendir, closedir): Undefine.
48805         * lib/glob.c (opendir, closedir): Undefine.
48806         * lib/javacomp.c (open, close): Undefine.
48807         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
48808         * lib/openat-proc.c (open, close): Undefine.
48809         * lib/pagealign_alloc.c (open, close): Undefine.
48810         * lib/pipe.c (open, close): Undefine.
48811         * lib/progreloc.c (open, close): Undefine.
48812         * lib/savedir.c (opendir, closedir): Undefine.
48813         * lib/utime.c (open, close): Undefine.
48814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
48815
48816 2007-01-10  Bruno Haible  <bruno@clisp.org>
48817
48818         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
48819
48820 2007-01-12  Eric Blake  <ebb9@byu.net>
48821
48822         Provide a robust <wchar.h>.  Further simplifications are now
48823         possible in other modules, but not included here.
48824         * modules/wchar: New module.
48825         * m4/wchar.m4: New file.
48826         * lib/wchar_.h: Likewise.
48827         * modules/mbchar (Depends-on): Depend on wchar, as the first use
48828         of the new module.
48829         * MODULES.html.sh (Extended multibyte and wide character utilities):
48830         New section.
48831
48832 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
48833
48834         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
48835         to a reasonable default for memory allocation.
48836         (xreadlink): Don't allocate a huge buffer, to work around a buggy
48837         file system that reports garbage st_size values for symlinks.
48838         Problem reported by Liyang Hu.
48839
48840 2007-01-11  Simon Josefsson  <simon@josefsson.org>
48841
48842         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
48843         Emacs .#* auto-save files).
48844
48845 2007-01-11  Bruno Haible  <bruno@clisp.org>
48846
48847         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
48848         directory.
48849
48850 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48851
48852         Use @...@ consistently in lib/wctype_.h.
48853         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
48854         on it being set to 1 or 0.
48855         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
48856         go back to AC_SUBSTing it.
48857         * modules/wctype (Makefile.am): Undo previous change.
48858
48859 2007-01-10  Eric Blake  <ebb9@byu.net>
48860
48861         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
48862         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
48863         * modules/wctype (Makefile.am): Likewise.
48864         Reported by Chris McGuire.
48865
48866 2007-01-10  Jim Meyering  <jim@meyering.net>
48867
48868         fts.c: a small readability/maintainability improvement
48869         * lib/fts.c (fts_read): Make this code slightly more readable and
48870         maintainable by hoisting the "sp->fts_cur = p" assignments to
48871         immediately follow the statements that set P.  Derived from
48872         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
48873
48874 2007-01-10  Eric Blake  <ebb9@byu.net>
48875
48876         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
48877         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
48878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48879         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48880         Reported by Chris McGuire.
48881
48882 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48883
48884         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
48885         in sed script.
48886
48887 2007-01-09  Bruno Haible  <bruno@clisp.org>
48888
48889         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
48890         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
48891         variables.
48892         (func_module): Use them.
48893
48894 2007-01-09  Bruno Haible  <bruno@clisp.org>
48895
48896         * modules/unistr/base: New file.
48897         * lib/unistr.h: New file.
48898
48899         * modules/unistr/u8-to-u16: New file.
48900         * lib/unistr/u8-to-u16.c: New file.
48901
48902         * modules/unistr/u8-to-u32: New file.
48903         * lib/unistr/u8-to-u32.c: New file.
48904
48905         * modules/unistr/u16-to-u8: New file.
48906         * lib/unistr/u16-to-u8.c: New file.
48907
48908         * modules/unistr/u16-to-u32: New file.
48909         * lib/unistr/u16-to-u32.c: New file.
48910
48911         * modules/unistr/u32-to-u8: New file.
48912         * lib/unistr/u32-to-u8.c: New file.
48913
48914         * modules/unistr/u32-to-u16: New file.
48915         * lib/unistr/u32-to-u16.c: New file.
48916
48917         * modules/unistr/u8-check: New file.
48918         * modules/unistr/u16-check: New file.
48919         * modules/unistr/u32-check: New file.
48920         * lib/unistr/u8-check.c: New file.
48921         * lib/unistr/u16-check.c: New file.
48922         * lib/unistr/u32-check.c: New file.
48923
48924         * modules/unistr/u8-chr: New file.
48925         * modules/unistr/u16-chr: New file.
48926         * modules/unistr/u32-chr: New file.
48927         * lib/unistr/u8-chr.c: New file.
48928         * lib/unistr/u16-chr.c: New file.
48929         * lib/unistr/u32-chr.c: New file.
48930
48931         * modules/unistr/u8-cmp: New file.
48932         * modules/unistr/u16-cmp: New file.
48933         * modules/unistr/u32-cmp: New file.
48934         * lib/unistr/u8-cmp.c: New file.
48935         * lib/unistr/u16-cmp.c: New file.
48936         * lib/unistr/u32-cmp.c: New file.
48937
48938         * modules/unistr/u8-cpy: New file.
48939         * modules/unistr/u16-cpy: New file.
48940         * modules/unistr/u32-cpy: New file.
48941         * lib/unistr/u8-cpy.c: New file.
48942         * lib/unistr/u16-cpy.c: New file.
48943         * lib/unistr/u32-cpy.c: New file.
48944         * lib/unistr/u-cpy.h: New file.
48945
48946         * modules/unistr/u8-cpy-alloc: New file.
48947         * modules/unistr/u16-cpy-alloc: New file.
48948         * modules/unistr/u32-cpy-alloc: New file.
48949         * lib/unistr/u8-cpy-alloc.c: New file.
48950         * lib/unistr/u16-cpy-alloc.c: New file.
48951         * lib/unistr/u32-cpy-alloc.c: New file.
48952         * lib/unistr/u-cpy-alloc.h: New file.
48953
48954         * modules/unistr/u8-endswith: New file.
48955         * modules/unistr/u16-endswith: New file.
48956         * modules/unistr/u32-endswith: New file.
48957         * lib/unistr/u8-endswith.c: New file.
48958         * lib/unistr/u16-endswith.c: New file.
48959         * lib/unistr/u32-endswith.c: New file.
48960         * lib/unistr/u-endswith.h: New file.
48961
48962         * modules/unistr/u8-mblen: New file.
48963         * modules/unistr/u16-mblen: New file.
48964         * modules/unistr/u32-mblen: New file.
48965         * lib/unistr/u8-mblen.c: New file.
48966         * lib/unistr/u16-mblen.c: New file.
48967         * lib/unistr/u32-mblen.c: New file.
48968
48969         * modules/unistr/u8-mbtouc: New file.
48970         * modules/unistr/u16-mbtouc: New file.
48971         * modules/unistr/u32-mbtouc: New file.
48972         * lib/unistr/u8-mbtouc.c: New file.
48973         * lib/unistr/u16-mbtouc.c: New file.
48974         * lib/unistr/u32-mbtouc.c: New file.
48975
48976         * modules/unistr/u8-mbtouc-safe: New file.
48977         * modules/unistr/u16-mbtouc-safe: New file.
48978         * modules/unistr/u32-mbtouc-safe: New file.
48979         * lib/unistr/u8-mbtouc-safe.c: New file.
48980         * lib/unistr/u16-mbtouc-safe.c: New file.
48981         * lib/unistr/u32-mbtouc-safe.c: New file.
48982
48983         * modules/unistr/u8-move: New file.
48984         * modules/unistr/u16-move: New file.
48985         * modules/unistr/u32-move: New file.
48986         * lib/unistr/u8-move.c: New file.
48987         * lib/unistr/u16-move.c: New file.
48988         * lib/unistr/u32-move.c: New file.
48989         * lib/unistr/u-move.h: New file.
48990
48991         * modules/unistr/u8-next: New file.
48992         * modules/unistr/u16-next: New file.
48993         * modules/unistr/u32-next: New file.
48994         * lib/unistr/u8-next.c: New file.
48995         * lib/unistr/u16-next.c: New file.
48996         * lib/unistr/u32-next.c: New file.
48997
48998         * modules/unistr/u8-prev: New file.
48999         * modules/unistr/u16-prev: New file.
49000         * modules/unistr/u32-prev: New file.
49001         * lib/unistr/u8-prev.c: New file.
49002         * lib/unistr/u16-prev.c: New file.
49003         * lib/unistr/u32-prev.c: New file.
49004
49005         * modules/unistr/u8-set: New file.
49006         * modules/unistr/u16-set: New file.
49007         * modules/unistr/u32-set: New file.
49008         * lib/unistr/u8-set.c: New file.
49009         * lib/unistr/u16-set.c: New file.
49010         * lib/unistr/u32-set.c: New file.
49011         * lib/unistr/u-set.h: New file.
49012
49013         * modules/unistr/u8-startswith: New file.
49014         * modules/unistr/u16-startswith: New file.
49015         * modules/unistr/u32-startswith: New file.
49016         * lib/unistr/u8-startswith.c: New file.
49017         * lib/unistr/u16-startswith.c: New file.
49018         * lib/unistr/u32-startswith.c: New file.
49019         * lib/unistr/u-startswith.h: New file.
49020
49021         * modules/unistr/u8-stpcpy: New file.
49022         * modules/unistr/u16-stpcpy: New file.
49023         * modules/unistr/u32-stpcpy: New file.
49024         * lib/unistr/u8-stpcpy.c: New file.
49025         * lib/unistr/u16-stpcpy.c: New file.
49026         * lib/unistr/u32-stpcpy.c: New file.
49027         * lib/unistr/u-stpcpy.h: New file.
49028
49029         * modules/unistr/u8-stpncpy: New file.
49030         * modules/unistr/u16-stpncpy: New file.
49031         * modules/unistr/u32-stpncpy: New file.
49032         * lib/unistr/u8-stpncpy.c: New file.
49033         * lib/unistr/u16-stpncpy.c: New file.
49034         * lib/unistr/u32-stpncpy.c: New file.
49035         * lib/unistr/u-stpncpy.h: New file.
49036
49037         * modules/unistr/u8-strcat: New file.
49038         * modules/unistr/u16-strcat: New file.
49039         * modules/unistr/u32-strcat: New file.
49040         * lib/unistr/u8-strcat.c: New file.
49041         * lib/unistr/u16-strcat.c: New file.
49042         * lib/unistr/u32-strcat.c: New file.
49043         * lib/unistr/u-strcat.h: New file.
49044
49045         * modules/unistr/u8-strchr: New file.
49046         * modules/unistr/u16-strchr: New file.
49047         * modules/unistr/u32-strchr: New file.
49048         * lib/unistr/u8-strchr.c: New file.
49049         * lib/unistr/u16-strchr.c: New file.
49050         * lib/unistr/u32-strchr.c: New file.
49051
49052         * modules/unistr/u8-strcmp: New file.
49053         * modules/unistr/u16-strcmp: New file.
49054         * modules/unistr/u32-strcmp: New file.
49055         * lib/unistr/u8-strcmp.c: New file.
49056         * lib/unistr/u16-strcmp.c: New file.
49057         * lib/unistr/u32-strcmp.c: New file.
49058
49059         * modules/unistr/u8-strcpy: New file.
49060         * modules/unistr/u16-strcpy: New file.
49061         * modules/unistr/u32-strcpy: New file.
49062         * lib/unistr/u8-strcpy.c: New file.
49063         * lib/unistr/u16-strcpy.c: New file.
49064         * lib/unistr/u32-strcpy.c: New file.
49065         * lib/unistr/u-strcpy.h: New file.
49066
49067         * modules/unistr/u8-strcspn: New file.
49068         * modules/unistr/u16-strcspn: New file.
49069         * modules/unistr/u32-strcspn: New file.
49070         * lib/unistr/u8-strcspn.c: New file.
49071         * lib/unistr/u16-strcspn.c: New file.
49072         * lib/unistr/u32-strcspn.c: New file.
49073         * lib/unistr/u-strcspn.h: New file.
49074
49075         * modules/unistr/u8-strdup: New file.
49076         * modules/unistr/u16-strdup: New file.
49077         * modules/unistr/u32-strdup: New file.
49078         * lib/unistr/u8-strdup.c: New file.
49079         * lib/unistr/u16-strdup.c: New file.
49080         * lib/unistr/u32-strdup.c: New file.
49081         * lib/unistr/u-strdup.h: New file.
49082
49083         * modules/unistr/u8-strlen: New file.
49084         * modules/unistr/u16-strlen: New file.
49085         * modules/unistr/u32-strlen: New file.
49086         * lib/unistr/u8-strlen.c: New file.
49087         * lib/unistr/u16-strlen.c: New file.
49088         * lib/unistr/u32-strlen.c: New file.
49089         * lib/unistr/u-strlen.h: New file.
49090
49091         * modules/unistr/u8-strmblen: New file.
49092         * modules/unistr/u16-strmblen: New file.
49093         * modules/unistr/u32-strmblen: New file.
49094         * lib/unistr/u8-strmblen.c: New file.
49095         * lib/unistr/u16-strmblen.c: New file.
49096         * lib/unistr/u32-strmblen.c: New file.
49097
49098         * modules/unistr/u8-strmbtouc: New file.
49099         * modules/unistr/u16-strmbtouc: New file.
49100         * modules/unistr/u32-strmbtouc: New file.
49101         * lib/unistr/u8-strmbtouc.c: New file.
49102         * lib/unistr/u16-strmbtouc.c: New file.
49103         * lib/unistr/u32-strmbtouc.c: New file.
49104
49105         * modules/unistr/u8-strncat: New file.
49106         * modules/unistr/u16-strncat: New file.
49107         * modules/unistr/u32-strncat: New file.
49108         * lib/unistr/u8-strncat.c: New file.
49109         * lib/unistr/u16-strncat.c: New file.
49110         * lib/unistr/u32-strncat.c: New file.
49111         * lib/unistr/u-strncat.h: New file.
49112
49113         * modules/unistr/u8-strncmp: New file.
49114         * modules/unistr/u16-strncmp: New file.
49115         * modules/unistr/u32-strncmp: New file.
49116         * lib/unistr/u8-strncmp.c: New file.
49117         * lib/unistr/u16-strncmp.c: New file.
49118         * lib/unistr/u32-strncmp.c: New file.
49119
49120         * modules/unistr/u8-strncpy: New file.
49121         * modules/unistr/u16-strncpy: New file.
49122         * modules/unistr/u32-strncpy: New file.
49123         * lib/unistr/u8-strncpy.c: New file.
49124         * lib/unistr/u16-strncpy.c: New file.
49125         * lib/unistr/u32-strncpy.c: New file.
49126         * lib/unistr/u-strncpy.h: New file.
49127
49128         * modules/unistr/u8-strnlen: New file.
49129         * modules/unistr/u16-strnlen: New file.
49130         * modules/unistr/u32-strnlen: New file.
49131         * lib/unistr/u8-strnlen.c: New file.
49132         * lib/unistr/u16-strnlen.c: New file.
49133         * lib/unistr/u32-strnlen.c: New file.
49134         * lib/unistr/u-strnlen.h: New file.
49135
49136         * modules/unistr/u8-strpbrk: New file.
49137         * modules/unistr/u16-strpbrk: New file.
49138         * modules/unistr/u32-strpbrk: New file.
49139         * lib/unistr/u8-strpbrk.c: New file.
49140         * lib/unistr/u16-strpbrk.c: New file.
49141         * lib/unistr/u32-strpbrk.c: New file.
49142         * lib/unistr/u-strpbrk.h: New file.
49143
49144         * modules/unistr/u8-strrchr: New file.
49145         * modules/unistr/u16-strrchr: New file.
49146         * modules/unistr/u32-strrchr: New file.
49147         * lib/unistr/u8-strrchr.c: New file.
49148         * lib/unistr/u16-strrchr.c: New file.
49149         * lib/unistr/u32-strrchr.c: New file.
49150
49151         * modules/unistr/u8-strspn: New file.
49152         * modules/unistr/u16-strspn: New file.
49153         * modules/unistr/u32-strspn: New file.
49154         * lib/unistr/u8-strspn.c: New file.
49155         * lib/unistr/u16-strspn.c: New file.
49156         * lib/unistr/u32-strspn.c: New file.
49157         * lib/unistr/u-strspn.h: New file.
49158
49159         * modules/unistr/u8-strstr: New file.
49160         * modules/unistr/u16-strstr: New file.
49161         * modules/unistr/u32-strstr: New file.
49162         * lib/unistr/u8-strstr.c: New file.
49163         * lib/unistr/u16-strstr.c: New file.
49164         * lib/unistr/u32-strstr.c: New file.
49165         * lib/unistr/u-strstr.h: New file.
49166
49167         * modules/unistr/u8-strtok: New file.
49168         * modules/unistr/u16-strtok: New file.
49169         * modules/unistr/u32-strtok: New file.
49170         * lib/unistr/u8-strtok.c: New file.
49171         * lib/unistr/u16-strtok.c: New file.
49172         * lib/unistr/u32-strtok.c: New file.
49173         * lib/unistr/u-strtok.h: New file.
49174
49175         * modules/unistr/u8-uctomb: New file.
49176         * modules/unistr/u16-uctomb: New file.
49177         * modules/unistr/u32-uctomb: New file.
49178         * lib/unistr/u8-uctomb.c: New file.
49179         * lib/unistr/u16-uctomb.c: New file.
49180         * lib/unistr/u32-uctomb.c: New file.
49181
49182         * MODULES.html.sh (Unicode string functions): Add the new modules.
49183
49184 2007-01-08  Bruno Haible  <bruno@clisp.org>
49185
49186         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
49187         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
49188         subdirectories.
49189
49190 2007-01-08  Karl Berry  <karl@gnu.org>
49191
49192         * doc/error.texi: mention that main() fns must set program_name
49193         when progname is used.
49194
49195 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
49196
49197         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
49198         WCTYPE_H is empty, for the benefit of builds from non-distclean
49199         directories.  Problem reported by Eric Blake in
49200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
49201
49202 2007-01-08  Bruno Haible  <bruno@clisp.org>
49203
49204         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
49205         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
49206         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
49207         PROVIDE_CANONICALIZE_FILENAME_MODE.
49208         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
49209
49210 2007-01-08  Bruno Haible  <bruno@clisp.org>
49211
49212         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
49213         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
49214         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
49215         * lib/fts.c: Likewise.
49216         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
49217
49218 2006-12-25  Bruno Haible  <bruno@clisp.org>
49219
49220         * modules/utf8-ucs4-safe: New file.
49221         * lib/utf8-ucs4-safe.h: New file.
49222         * lib/unistr/utf8-ucs4-safe.c: New file.
49223
49224         * modules/utf16-ucs4-safe: New file.
49225         * lib/utf16-ucs4-safe.h: New file.
49226         * lib/unistr/utf16-ucs4-safe.c: New file.
49227
49228         * MODULES.html.sh (Unicode string functions): Add the new modules.
49229
49230 2007-01-08  Bruno Haible  <bruno@clisp.org>
49231
49232         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
49233         (Depends-on): Add unitypes.
49234         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49235         (u8_mbtouc_aux): Move out to separate file.
49236         (u8_mbtouc): Use ucs4_t, uint8_t types.
49237         * lib/unistr/utf8-ucs4.c: New file.
49238
49239         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
49240         (Depends-on): Add unitypes.
49241         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49242         (u16_mbtouc_aux): Move out to separate file.
49243         (u16_mbtouc): Use ucs4_t, uint16_t types.
49244         * lib/unistr/utf16-ucs4.c: New file.
49245
49246         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
49247         (Depends-on): Add unitypes.
49248         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
49249         (u8_uctomb_aux): Move out to separate file.
49250         (u8_uctomb): Use ucs4_t, uint8_t types.
49251         * lib/unistr/ucs4-utf8.c: New file.
49252
49253         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
49254         (Depends-on): Add unitypes.
49255         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
49256         (u16_uctomb_aux): Move out to separate file.
49257         (u16_uctomb): Use ucs4_t, uint16_t types.
49258         * lib/unistr/ucs4-utf16.c: New file.
49259
49260 2006-12-25  Bruno Haible  <bruno@clisp.org>
49261
49262         * modules/unitypes: New file.
49263         * lib/unitypes.h: New file.
49264         * MODULES.html.sh (func_all_modules): New section "Unicode string
49265         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
49266         this section. Add unitypes.
49267
49268 2007-01-08  Bruno Haible  <bruno@clisp.org>
49269
49270         Avoid variable names that conflict with those from libtool.
49271         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
49272         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
49273         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
49274         library_names_spec to acl_library_names_spec, hardcode_* to
49275         acl_hardcode_*.
49276         Reported by Ralf Wildenhues.
49277
49278 2007-01-08  Bruno Haible  <bruno@clisp.org>
49279
49280         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
49281         definition.
49282         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
49283         definition.
49284         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
49285         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
49286         definition.
49287         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
49288         definition.
49289         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
49290         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
49291         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
49292         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
49293         definition.
49294         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
49295         definition.
49296         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
49297         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
49298         GC_USE_<algorithm>.
49299         * lib/gc-libgcrypt.c: Likewise.
49300         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
49301         * modules/gc-arctwo (configure.ac): Likewise.
49302         * modules/gc-des (configure.ac): Likewise.
49303         * modules/gc-hmac-md5 (configure.ac): Likewise.
49304         * modules/gc-hmac-sha1 (configure.ac): Likewise.
49305         * modules/gc-md2 (configure.ac): Likewise.
49306         * modules/gc-md4 (configure.ac): Likewise.
49307         * modules/gc-md5 (configure.ac): Likewise.
49308         * modules/gc-random (configure.ac): Likewise.
49309         * modules/gc-rijndael (configure.ac): Likewise.
49310         * modules/gc-sha1 (configure.ac): Likewise.
49311
49312 2007-01-08  Bruno Haible  <bruno@clisp.org>
49313
49314         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
49315         macro definition.
49316         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
49317         definition.
49318         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
49319         definition.
49320         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
49321         * modules/fcntl-safer (configure.ac): Likewise.
49322         * modules/fopen-safer (configure.ac): Likewise.
49323         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
49324         GNULIB_FWRITEERROR macro definition.
49325
49326 2007-01-08  Bruno Haible  <bruno@clisp.org>
49327
49328         * m4/gnulib-common.m4: New file.
49329         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
49330         (func_get_filelist): Add m4/gnulib-common.m4.
49331
49332 2007-01-08  Bruno Haible  <bruno@clisp.org>
49333
49334         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
49335         command.
49336
49337 2007-01-08  Jim Meyering  <jim@meyering.net>
49338
49339         Use a more robust test for a "can't happen" condition.
49340         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
49341         narrowed the st_size value.  Presuming the "can't happen" condition
49342         is true, that narrowing could conceivably convert an invalid st_size
49343         value into a valid one.  Instead, use a change based on Matthew
49344         Woehlke's original patch.
49345
49346         Slight readability improvement: use an assert-like macro
49347         in place of literal "abort ()" uses.
49348         * lib/fts.c (fts_assert): Define.
49349         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
49350         Use this macro instead of a bare 'abort'.
49351
49352 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
49353
49354         Don't worry about using IRIX 5.3's wctype.h broken definitions;
49355         simply work around them.
49356         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
49357         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
49358         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
49359         declaring.
49360         Don't bother to define as macros, since the standard doesn't require it.
49361         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
49362         longer worry about IRIX 5.3.
49363         (HAVE_WCTYPE_CTMP_BUG): Remove.
49364
49365 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49366
49367         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
49368         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
49369         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49370         Problems reported by Georg Schwarz for IRIX 5.3.
49371
49372         * gnulib-tool (autoconf_minversion): Take the maximum version number
49373         found, not the minimum.  Problem reported by James Youngman.
49374
49375 2007-01-03  Karl Berry  <karl@gnu.org>
49376
49377         * doc/error.texi: new file, explaining interaction with progname.
49378         * doc/gnulib.texi: include it.  Update copyright.
49379
49380 2007-01-03  Simon Josefsson  <simon@josefsson.org>
49381
49382         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
49383         AC_CANONICAL_HOST, to improve autobuild outputs.
49384
49385 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
49386             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49387
49388         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
49389         sockets, server sockets, and other file descriptors.  Count errors
49390         to compute the return value.  Reorder the code a bit to be easier
49391         to follow.  Don't set event bits that were not requested (except
49392         POLLERR and POLLHUP).
49393
49394 2007-01-01  Bruno Haible  <bruno@clisp.org>
49395
49396         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
49397
49398 2007-01-03  Jim Meyering  <jim@meyering.net>
49399
49400         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
49401
49402 2007-01-02  Bruno Haible  <bruno@clisp.org>
49403
49404         * modules/settime (Include): Require timespec.h.
49405         * modules/nanosleep (Include): Likewise.
49406
49407 2007-01-01  Bruno Haible  <bruno@clisp.org>
49408
49409         * gnulib-tool (func_emit_copyright_notice): Bump year.
49410         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
49411
49412 2007-01-01  Bruno Haible  <bruno@clisp.org>
49413
49414         Improve support for OpenBSD.
49415         * build-aux/config.rpath (libname_spec): Export.
49416         (library_names_spec): New variable. Export.
49417         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
49418         library_names_spec from the config.rpath output. Locate shared library
49419         through the name pattern in library_names_spec.
49420
49421 2007-01-01  Eric Blake  <ebb9@byu.net>
49422
49423         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
49424
49425 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
49426
49427         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
49428         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
49429         assume the C locale, and avoid an "eval" that could cause trouble.
49430         Problem with SORT reported by Bob Proulx.
49431
49432         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
49433         Define.  Trivial patch from Henning Nielsen Lund, originally
49434         sent to bug-grep@gnu.org today.
49435
49436 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49437
49438         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
49439         struct stat.  Problem reported by Henning Nielsen Lund.
49440         * lib/acl.c: Include acl.h first, to check interface.  Don't
49441         bother to include sys/types.h and sys/stat.h again.
49442
49443 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49444
49445         Import the following change from libc; problem reported by
49446         Sven Verdoolaege.
49447
49448         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
49449
49450         [BZ #1373]
49451         * lib/argp.h: Remove __NTH for __argp_usage inline function.
49452
49453 2006-12-28  Jim Meyering  <jim@meyering.net>
49454
49455         * build-aux/announce-gen: Do not assume that the package
49456         builds any of tar.gz, tar.bz2, and .xdelta files.
49457         Suggestion from Simon Josefsson.
49458
49459 2006-12-28  Simon Josefsson  <simon@josefsson.org>
49460
49461         * modules/announce-gen: New file.
49462
49463 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
49464
49465         * lib/mbchar.h: Just include <wctype.h>; the wctype module
49466         handles its gotchas now.
49467         * lib/mbswidth.c: Likewise.
49468         * lib/wcwidth.h: Likewise.
49469         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
49470         and iswcntrl; the wctype module does this stuff now.
49471         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49473         * modules/mbchar (Depends-on): Add wctype.
49474         * modules/mbswidth (Depends-on): Likewise.
49475         * modules/wcwidth (Depends-on): Likewise.
49476
49477 2006-12-27  Eric Blake  <ebb9@byu.net>
49478
49479         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
49480         module uses more than what <wctype.h> is required to provide.
49481
49482 2006-12-26  Eric Blake  <ebb9@byu.net>
49483
49484         * gnulib-tool (sed_extract_prog): Avoid space-tab.
49485
49486 2006-12-26  Eric Blake  <ebb9@byu.net>
49487
49488         * modules/absolute-header: New module.
49489         * modules/fcntl (Depends-on): Depend on it.
49490         * modules/inttypes (Depends-on): Likewise.
49491         * modules/stdint (Depends-on): Likewise.
49492         * modules/sys_stat (Depends-on): Likewise.
49493         * modules/wctype (Depends-on): Likewise.
49494         * MODULES.html.sh (Support for building libraries and
49495         executables): Document it.
49496
49497 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49498
49499         * gnulib-tool (SED): Remove, undoing previous change.
49500         The problem was that it broke coreutils on Solaris, because
49501         "sed --posix" leaked into a makefile.
49502         (sed): New alias, if 'alias' and GNU sed.
49503
49504 2006-12-24  Jim Meyering  <jim@meyering.net>
49505
49506         Work around an fchownat bug in glibc-2.4:
49507         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
49508         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
49509         in spite of the -P option.
49510         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
49511         New macros.
49512         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
49513         * modules/openat (Files): Add lib/fchownat.c.
49514         * lib/openat.c (fchownat): Don't define here.  Move to...
49515         * lib/fchownat.c: ...this new file.
49516
49517 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49518
49519         Fix bug reported by Bruno Haible in
49520         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
49521         where quotearg.c didn't compile on Mac OS X 10.2 because it
49522         lacks <wchar.h> and wint_t.
49523         * lib/wctype_.h (__wctype_wint_t): New type.
49524         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
49525         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
49526         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
49527         Arg is now of type __wctype_wint_t, not wint_t.
49528         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
49529         substitute HAVE_WINT_T.
49530         * modules/wctype (Files): Add m4/wint_t.m4.
49531         (wctype.h): Substitute HAVE_WINT_T.
49532
49533 2006-12-23  Bruno Haible  <bruno@clisp.org>
49534
49535         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
49536
49537 2006-12-23  Bruno Haible  <bruno@clisp.org>
49538
49539         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
49540         S_ISLNK.
49541         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
49542         mingw.
49543
49544 2006-12-22  Bruno Haible  <bruno@clisp.org>
49545
49546         * lib/copy-file.c: Include acl.h.
49547         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
49548         Close the file descriptors only after being done with copy_acl.
49549         * modules/copy-file (Depends-on): Add acl.
49550
49551 2006-12-22  Bruno Haible  <bruno@clisp.org>
49552
49553         * gnulib-tool (SED): New variable.
49554         Use $SED instead of sed everywhere.
49555
49556 2006-12-22  Bruno Haible  <bruno@clisp.org>
49557
49558         * modules/no-c++: New file.
49559         * m4/no-c++.m4: New file.
49560         * MODULES.html.sh (Support for building libraries and executables):
49561         Add no-c++.
49562
49563 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
49564
49565         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49566         Include <limits.h>, and use its INT_MAX to rewrite the
49567         j loop so that it does not overflow 'int'.  Problem reported by
49568         Ralf Wildenhues in
49569         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
49570         Play it safe by shifting left by 1 rather than multiplying by 2,
49571         as GCC is less likely to optimize this away when the value
49572         is signed (when it assumes overflow leads to undefined behavior).
49573         Also, don't assume time_t uses two's complement.
49574
49575 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
49576
49577         * MODULES.html.sh: New module wctype.
49578         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
49579         * lib/fnmatch.c: Don't bother to include <wchar.h> before
49580         <wctype.h>, since the new wctype module should fix this.
49581         * lib/quotearg.c: Include <wctype.h> unconditionally, since
49582         the wctype module should arrange for it.
49583         * lib/regex_internal.h: Likewise.
49584         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
49585         since the wctype module should handle this now.
49586         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
49587         * modules/fnmatch (Depends-on): Add wctype.
49588         * modules/quotearg (Depends-on): Likewise.
49589         * modules/regex (Depends-on): Likewise.
49590
49591 2006-12-19  Bruno Haible  <bruno@clisp.org>
49592
49593         * lib/strdup.h [C++]: Wrap definitions in extern "C".
49594         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
49595
49596 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49597
49598         * modules/savewd (Depends-on): Fix dependency on fcntl.
49599
49600 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49601
49602         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
49603         conforms to C99, rather than relying on the user's environment
49604         setting of STDINT_H.
49605
49606 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49607         and Eric Blake  <ebb9@byu.net>
49608
49609         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
49610         This is more consistent with the other defines here.
49611         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
49612         Port to z/OS.  Problem reported by Paul Gilmartin.
49613         Change local vars to use gl_ prefix rather than ac_.
49614         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
49615         with other defines.
49616         * modules/double-slash-root: New module.
49617         * modules/dirname (Files): Remove m4/double-slash-root.m4.
49618         (Depends-on): Add double-slash-root.
49619         * MODULES.html.sh (File system functions): Mention new module.
49620
49621 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
49622
49623         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
49624         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
49625         This is for the benefit of gzip, which doesn't do i18n.
49626
49627 2006-12-12  Jim Meyering  <jim@meyering.net>
49628
49629         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
49630         Reported by Andreas Schwab <schwab@suse.de>.
49631
49632 2006-12-12  Bruno Haible  <bruno@clisp.org>
49633
49634         Merge these changes.
49635         2006-09-05  Bruno Haible  <bruno@clisp.org>
49636         * lib/iconvme.c (iconv_string): No need to save and restore errno when
49637         iconv_alloc succeeded.
49638         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
49639         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
49640         test for " && dest " at the end - dest is always != NULL there. Call
49641         iconv with 4xNULL arguments initially, to reset the state. Call iconv
49642         with 2xNULL arguments, also to flush the state storage. Handle the
49643         IRIX iconv behaviour. Realloc the final result, to throw away unused
49644         memory.
49645
49646 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
49647
49648         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
49649         and fchmodat unconditionally, since glibc 2.4 has them.
49650         Problem reported by Arkadiusz Miskiewicz.
49651
49652 2006-12-10  Bruno Haible  <bruno@clisp.org>
49653
49654         * gnulib-tool (func_import): Show the include files only for those
49655         modules that are copied and specified.
49656         Reported by Karl Berry.
49657
49658 2006-12-08  Jim Meyering  <jim@meyering.net>
49659
49660         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
49661         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
49662
49663         * build-aux/announce-gen: Add two new options, both optional:
49664         --bootstrap-tools=TOOL_LIST
49665               a comma-separated list of tools, e.g.,
49666               autoconf,automake,bison,gnulib
49667         --gnulib-snapshot-date=DATE
49668               if gnulib is in the bootstrap tool list,
49669               then report this as the snapshot date.
49670               If not specified, use the current date/time.
49671               If you specify a date here, be sure it's UTC.
49672
49673 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49674
49675         * tests/test-argp-2.sh: Fix test to match actual output.
49676         (func_compare): Fix sed script to be portable.
49677
49678 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
49679
49680         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
49681         workaround for this case.  It is not autoconfigured now; offhand
49682         it's hard to see how to autoconfigure it.
49683
49684 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49685
49686         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
49687         a directory that is about to be chowned.  Such a directory's
49688         initial file permissions should permit the owner only and this
49689         should not be changed until after the chown, since the group and
49690         other bits would be incorrect if they granted permission before
49691         the chown.
49692
49693         Fix porting problem for iswctype reported by Georg Schwarz in:
49694         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
49695         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
49696         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
49697         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
49698         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49699
49700 2006-12-03  Jim Meyering  <jim@meyering.net>
49701
49702         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
49703         p->fts_statp may not yet be defined.
49704         (fts_read): Instead, set it in the caller, once p->fts_statp is
49705         sure to be defined, and corresponds to a top-level directory.
49706         This bug made du -x fail.  Here's the coreutils test case:
49707         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
49708         Reported by Mike Frysinger.
49709
49710 2006-12-01  Jim Meyering  <jim@meyering.net>
49711
49712         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
49713         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
49714         Reported by Simon Josefsson.
49715
49716 2006-11-30  Jim Meyering  <jim@meyering.net>
49717
49718         * m4/warning.m4: Use the all-permissive copyright notice
49719         recommended by RMS (rather than LGPL).
49720         * m4/vararrays.m4: Likewise.
49721         * m4/flexmember.m4: Likewise.
49722
49723 2006-11-29  Bruno Haible  <bruno@clisp.org>
49724
49725         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49726         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
49727         using +=.
49728         Reported by Simon Josefsson <simon@josefsson.org>.
49729
49730 2006-11-28  James Youngman <jay@gnu.org>
49731
49732         * README: Advise users that they might find the bug-gnulib@gnu.org
49733         and autotools-announce@gnu.org mailing lists useful.
49734
49735 2006-11-28  Bruno Haible  <bruno@clisp.org>
49736
49737         * m4/ptrdiff_max.m4: Remove file.
49738
49739 2006-11-21  Bruno Haible  <bruno@clisp.org>
49740
49741         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
49742         _AC_COMPUTE_INT.
49743         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49744         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
49745         _AC_COMPUTE_INT.
49746         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49747         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
49748         _AC_COMPUTE_INT.
49749         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49750
49751 2006-11-28  Jim Meyering  <jim@meyering.net>
49752
49753         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
49754         warning from "gcc -Wshadow" about shadowing the builtin.
49755
49756 2006-11-27  Bruno Haible  <bruno@clisp.org>
49757
49758         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
49759         _AC_COMPUTE_INT.
49760         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49761
49762 2006-11-27  Bruno Haible  <bruno@clisp.org>
49763             Paul Eggert  <eggert@cs.ucla.edu>
49764
49765         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
49766
49767 2006-11-26  Bruno Haible  <bruno@clisp.org>
49768
49769         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49770         noinst_LTLIBRARIES.
49771
49772 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
49773             Bruno Haible  <bruno@clisp.org>
49774
49775         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
49776         if compiling with "gcc -ansi".
49777
49778 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
49779
49780         Fix some incompatibilities with gcc -ansi -pedantic.
49781         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
49782         if compiling pedantically with GCC, unless it's C99 or later.
49783         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
49784         it mishandles gcc -ansi -pedantic as well.
49785         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
49786         if gcc -pedantic.
49787         * lib/regexec.c (check_node_accept_bytes): Don't use auto
49788         initializers for struct if -pedantic, unless it's C99 or later.
49789
49790 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
49791
49792         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
49793         Don't close an fd more than once. Identical atimes indicate
49794         success, not failure.
49795
49796 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
49797
49798         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
49799
49800 2006-11-23  Jim Meyering  <jim@meyering.net>
49801
49802         * build-aux/announce-gen: New file.  From coreutils.
49803
49804 2006-11-22  Jim Meyering  <jim@meyering.net>
49805
49806         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
49807         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
49808         (fts_read): Use a temporary to narrow the overused st_size member
49809         before using it in a switch statement.  Reported by Matthew Woehlke.
49810
49811         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
49812         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
49813
49814 2006-11-20  Bruno Haible  <bruno@clisp.org>
49815
49816         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
49817         changequote instead of pairs of brackets.
49818         Reported by Andreas Schwab <schwab@suse.de>.
49819
49820 2006-11-21  Jim Meyering  <jim@meyering.net>
49821
49822         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
49823         so as to remain compatible with older compilers.
49824         Patch from Michael Deutschmann.
49825
49826 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
49827
49828         * MODULES.html.sh (File system functions): Add openat.
49829
49830         * lib/openat.h (rpl_fstatat): New macro, if
49831         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
49832         (fstatat): Define to rpl_fstatat under the same conditions,
49833         unless COMPILING_FSTATAT.
49834         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
49835         seems to have the bug.
49836         * lib/fstatat.c: New file.
49837         * modules/openat (Files): Add it.
49838
49839 2006-11-20  Bruno Haible  <bruno@clisp.org>
49840
49841         * Makefile: New file.
49842
49843 2006-11-20  Jim Meyering  <jim@meyering.net>
49844
49845         The beginnings of syntax-related checks for gnulib.
49846         * lib/Makefile: New file.
49847         * lib/t-idcache: New script.  Ensure that the two halves of
49848         idcache.c stay in sync.
49849
49850         * lib/idcache.c: Adjust comments in user- and group- portions to
49851         be more accurate, and to be consistent with one another.
49852
49853 2006-11-20  Jim Meyering  <jim@meyering.net>
49854
49855         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
49856         continue using the flexible array member (thus, this module performs
49857         half as many malloc calls), with the addition that...
49858         (getgroup, getuser): Consistently record a non-match via an empty
49859         "name" string, and map an empty string match to a NULL return value.
49860         * modules/idcache (Depends-on): Re-add flexmember.
49861
49862         * lib/idcache.c (getuser): Remove all uses of the register keyword.
49863         (getuidbyname, getgroup, getgidbyname): Likewise.
49864
49865         Use cleaner syntax: NULL rather than 0.
49866         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
49867
49868 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
49869
49870         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
49871         It mishandled the case where the group was missing.
49872         Problem reported by Greg Schafer.
49873         * modules/idcache: Likewise.
49874
49875 2006-11-18  Jim Meyering  <jim@meyering.net>
49876
49877         * check-module (%exempt_header): Add exception for some
49878         conditionally-included headers.
49879
49880         * modules/i-ring (Depends-on): Add verify.
49881         (License): Change to LGPL.
49882
49883 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49884
49885         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
49886         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
49887         and inttostr.h.  Use snprintf rather than uinttostr, so that
49888         LGPLed code doesn't depend on GPLed.
49889
49890 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
49891
49892         * modules/inline (License): Change from GPL to LGPL.
49893
49894 2006-11-17  Jim Meyering  <jim@meyering.net>
49895
49896         * modules/d-type (License): Switch to LGPL.
49897
49898 2006-11-15  Bruno Haible  <bruno@clisp.org>
49899
49900         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
49901
49902 2006-11-15  Eric Blake  <ebb9@byu.net>
49903
49904         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
49905         the module dependency.
49906
49907 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49908             Bruno Haible  <bruno@clisp.org>
49909
49910         * gnulib-tool (func_create_testdir): Add license consistency check.
49911
49912 2006-11-15  Eric Blake  <ebb9@byu.net>
49913
49914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
49915         random "(cached)" in configure output.
49916
49917 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49918
49919         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
49920         test for conforming inttypes.h is both announced and cached.
49921
49922         * MODULES.html.sh (seen_modules, seen_files): New variables.
49923         (func_module): Rewrite to use a few less gnulib-tool and sed
49924         invocations.  Avoid a couple of quadratic algorithms for ...
49925         (missed_modules, missed_files): ... these, with ...
49926         (func_append, func_tmpdir): ... these new functions, from
49927         gnulib-tool.  Analogously, install traps for cleanup.
49928
49929         * tests/test-gc.c (main): Remove unused variables.
49930         * tests/test-read-file.c: Include stdlib.h, for 'free'.
49931
49932 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
49933
49934         * modules/inttostr (License): Change to LGPL.
49935
49936 2006-11-14  Eric Blake  <ebb9@byu.net>
49937
49938         * modules/tempname (License): Change to LGPL.
49939
49940 2006-11-14  Eric Blake  <ebb9@byu.net>
49941
49942         * doc/functions.texi (Function Portability): *printf functions on
49943         Cygwin now understand all POSIX size specifiers.
49944
49945 2006-11-14  Bruno Haible  <bruno@clisp.org>
49946
49947         * modules/c-ctype (License): Change to LGPL.
49948
49949 2006-11-12  Bruno Haible  <bruno@clisp.org>
49950
49951         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49952         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
49953         for GNOME libraries, for which the include files are installed in
49954         subdirectories of $prefix/include.
49955
49956 2006-11-12  Bruno Haible  <bruno@clisp.org>
49957
49958         * m4/lib-link.m4: Require at least autoconf-2.54.
49959         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
49960         name to underscores for the --with option.
49961
49962 2006-11-13  Bruno Haible  <bruno@clisp.org>
49963
49964         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
49965         the tests directory.
49966         Reported by Ralf Wildenhues.
49967
49968 2006-11-13  Bruno Haible  <bruno@clisp.org>
49969
49970         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
49971         (func_emit_initmacro_end): Undo the override here.
49972         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
49973         Works around the famous automake error in coreutils.
49974
49975 2006-11-13  Eric Blake  <ebb9@byu.net>
49976
49977         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
49978         element, not its node.
49979
49980 2006-11-12  Bruno Haible  <bruno@clisp.org>
49981
49982         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
49983         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
49984
49985 2006-11-12  Bruno Haible  <bruno@clisp.org>
49986
49987         * gnulib-tool: New option --local-symlink.
49988         (func_usage): Document it.
49989         (lsymbolic): New variable.
49990         (func_import, func_create_testdir): If --symlink was not specified,
49991         test whether --local-symlink was specified and the file comes from
49992         the local_gnulib_dir.
49993
49994 2006-11-12  Bruno Haible  <bruno@clisp.org>
49995
49996         * gnulib-tool (func_ln): New function.
49997         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
49998
49999 2006-11-12  Bruno Haible  <bruno@clisp.org>
50000
50001         Finish support for source files in subdirectories.
50002         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50003         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50004         AUTOMAKE_OPTIONS.
50005         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50006
50007 2006-11-12  Bruno Haible  <bruno@clisp.org>
50008
50009         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50010         EXTRA_lib_SOURCES augmentation.
50011         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50012
50013 2006-11-12  Jim Meyering  <jim@meyering.net>
50014
50015         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50016         file descriptors.  This also averts a failure on systems with
50017         native openat support when a traversed directory lacks "x" access.
50018         * lib/fts_.h: Include "i-ring.h"
50019         (struct FTS) [fts_fd_ring]: New member.
50020         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50021         (FCHDIR): Add parentheses.
50022         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50023         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50024         When descending, rather than simply closing the previous
50025         fts_cwd_fd value, push that file descriptor onto the ring.
50026         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50027         (fts_open): Initialize the new fd_ring member.
50028         (fts_close): Clear the ring.
50029         (fts_safe_changedir): When possible, use our new fd_ring to skip
50030         the diropen and fstat and dev/ino comparison that would normally
50031         accompany a virtual `chdir ("..")'.
50032
50033         * modules/fts (Depends-on): Add i-ring.
50034         * modules/i-ring: New module.
50035         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50036         * m4/i-ring.m4: New file.
50037
50038 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50039
50040         * gnulib-tool (func_create_testdir): Fix replacement of
50041         `build-aux' in configure.ac.  Run autotools in gltests
50042         subdirectory.
50043         (func_create_testdir, func_create_megatestdir, test): There is
50044         no need for '--force' in most autotool invocations in a new
50045         tree.  Actually fail the whole test if any of the tools, or the
50046         configure or make stages fail.
50047
50048         Sync from Automake.
50049         * build-aux/gnupload: Revert last change.  Add pointer to upload
50050         instructions of the GNU Maintenance Instructions.
50051         Suggestion by Karl Berry.
50052
50053 2006-11-10  Jim Meyering  <jim@meyering.net>
50054
50055         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
50056
50057 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50058
50059         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
50060         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
50061         (bind_textdomain_codeset) [! ENABLE_NLS]:
50062         Evaluate all the arguments.  That way, callers get compatible behavior
50063         if the arguments have side effects.  Also, it avoids some GCC
50064         diagnostics in some cases; Joel E. Denny reported problems when Bison
50065         was configured with --enable-gcc-warnigs.
50066
50067 2006-11-10  Jim Meyering  <jim@meyering.net>
50068
50069         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
50070         relevant options in CFLAGS (like -O, -fno-inline) are taken into
50071         account.
50072
50073 2006-11-10  Jim Meyering  <jim@meyering.net>
50074
50075         * modules/inline: New file/module.
50076         * modules/xalloc (Files): Remove m4/inline.m4.
50077         (Depends-on): Add inline, instead.
50078         * modules/oset: Likewise.
50079         * modules/list: Likewise.
50080
50081 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50082
50083         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
50084         Problem reported by Matthew Woehlke.
50085
50086 2006-11-09  Bruno Haible  <bruno@clisp.org>
50087
50088         * lib/tempname.c (gen_tempname): Remove variant that invokes
50089         __gen_tempname.
50090         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
50091         __gen_tempname.
50092
50093 2006-11-08  Bruno Haible  <bruno@clisp.org>
50094
50095         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
50096         to 'yes' instead of 'cross-compiling'.
50097
50098 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
50099
50100         * lib/quotearg.h (quotearg_free): New decl.
50101         * lib/quotearg.c (quotearg_free): New function.
50102         (slot0, nslots, slotvec0, slotvec):
50103         Now file-scope so that quotearg_free can get at them.
50104
50105 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50106
50107         Sync from Automake.
50108         * build-aux/gnupload: Add missing 'gnu' to example URL.
50109         Report by Karl Berry.
50110
50111 2006-11-08  Bruno Haible  <bruno@clisp.org>
50112
50113         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
50114         Suggested by Paul Eggert.
50115
50116 2006-11-08  Jim Meyering  <jim@meyering.net>
50117
50118         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
50119         It's already included if !_LIBC.
50120         (fts_safe_changedir): Add a comment.
50121
50122 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50123
50124         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
50125         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
50126         Matthew Woehlke.
50127
50128         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
50129         definitions up, to avoid colliding with change below.
50130         (static_inline) [HAVE_INLINE]: New macro.
50131         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
50132         Provide extern decls when !HAVE_INLINE.  Do not define unless
50133         static_inline is defined, either by us or by xmalloc.c.  Use
50134         static_inline rather than static inline.
50135         (XCALLOC): Optimize sizeof(T) = 1 case.
50136         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
50137
50138 2006-11-07  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
50141         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
50142         AC_C_INLINE.
50143         * modules/xalloc (Files): Add m4/inline.m4.
50144
50145 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50146
50147         * README: Fix typo.
50148         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
50149         (Miscellanous Notes): ...from this.
50150
50151 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50152
50153         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
50154         Mention that offsetof should be used instead of sizeof.
50155         From Bruno Haible.
50156
50157 2006-11-07  Bruno Haible  <bruno@clisp.org>
50158
50159         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
50160
50161 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50162
50163         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50164         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
50165         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50166         (gl_tree_add_before, gl_tree_add_after):
50167         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
50168         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
50169         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50170         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
50171         (gl_linked_add_after, gl_linked_add_at): Likewise.
50172         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
50173         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50174         (gl_tree_add_before, gl_tree_add_after): Likewise.
50175         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
50176         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
50177         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
50178
50179 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50180
50181         * lib/gl_oset.h: Use C comment style, not C++ comment style.
50182
50183 2006-11-06  Bruno Haible  <bruno@clisp.org>
50184
50185         * m4/inline.m4: New file.
50186         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
50187         * modules/list (Files): Add m4/inline.m4.
50188         * modules/oset (Files): Likewise.
50189
50190 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50191
50192         * lib/idcache.c: Include <stddef.h>, for offsetof.
50193         (struct userid.name): Change from char * to a flexible array member.
50194         All uses changed.
50195         * modules/idcache (Depends-on): Add flexmember.
50196
50197         * MODULES.html.sh (Core language properties): New module flexmember.
50198         * modules/flexmember, m4/flexmember.m4: New files.
50199
50200         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
50201         inline functions that are identical with the old xnmalloc_inline,
50202         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
50203         that we can avoid some unnecessary integer multiplications and
50204         divisions in the common case where the element size is known at
50205         compile time.
50206         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
50207         needed.
50208         (xnboundedmalloc): Remove.
50209         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
50210         arguments, for consistency with rest of this header.
50211         (xcharalloc): Rewrite using XNMALLOC.
50212         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
50213         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
50214         versions have been moved to lib/xalloc.h and renamed to be the
50215         non-*_inline versions.
50216         (xmalloc, xrealloc): Implement without reference to the xnmalloc
50217         and xnrealloc functions, since those functions are now inline and
50218         now call us.
50219         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
50220         renaming described above.
50221         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
50222         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
50223         captures the dependency in AC_C_INLINE.
50224
50225         New module canonicalize-lgpl, proposed by Charles Wilson in
50226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
50227         with a few small changes afterwards.
50228         * MODULES.html.sh (File system functions): New module
50229         canonicalize-lgpl.
50230         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
50231         and canonicalize_file_name.
50232         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
50233         * modules/canonicalize-lgpl: New files.
50234
50235 2006-11-05  Bruno Haible  <bruno@clisp.org>
50236
50237         * gnulib-tool (func_import, func_create_testdir): Create directories
50238         also for files in subdirectories of lib/.
50239
50240 2006-11-05  Bruno Haible  <bruno@clisp.org>
50241
50242         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
50243         ANSI C compliant.
50244
50245 2006-11-03  Bruno Haible  <bruno@clisp.org>
50246
50247         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50248         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
50249         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
50250         (xnboundedmalloc): New inline function.
50251         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
50252         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
50253         xmalloc.
50254         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
50255         xmalloc.
50256         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
50257         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
50258         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
50259         xmalloc.
50260         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50261         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
50262         xmalloc.
50263         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
50264         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50265         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
50266         xmalloc.
50267         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50268         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
50269         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50270         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
50271         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
50272         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
50273         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
50274
50275 2006-11-03  Bruno Haible  <bruno@clisp.org>
50276
50277         * lib/c-ctype.h [C++]: Define functions without name mangling.
50278         * lib/fwriteerror.h [C++]: Likewise.
50279         * lib/gcd.h [C++]: Likewise.
50280         * lib/linebreak.h [C++]: Likewise.
50281
50282 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50283
50284         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
50285         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
50286         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
50287         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50288         Check for functions and headers just once.
50289         Check for declaration of canonicalize_file_name.
50290         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
50291
50292 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50293
50294         * gnulib-tool (func_import): Fix typo in actioncmd.
50295
50296 2006-11-02  Bruno Haible  <bruno@clisp.org>
50297
50298         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
50299         newline sequence in the Makefile.am snippet as a space, like "make"
50300         does.
50301         Reported by Roger Persson <perrog@gmail.com>.
50302
50303 2006-11-01  Bruno Haible  <bruno@clisp.org>
50304
50305         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
50306         already declared in <string.h>.
50307         * lib/strcase.h (strncasecmp): Don't declare it if yes.
50308
50309 2006-11-01  Bruno Haible  <bruno@clisp.org>
50310
50311         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
50312         * lib/strcase.h: Include <string.h>.
50313         (strcasecmp): Define to rpl_strcasecmp here.
50314
50315 2006-11-01  Bruno Haible  <bruno@clisp.org>
50316
50317         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
50318
50319 2006-11-01  Eric Blake  <ebb9@byu.net>
50320
50321         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
50322
50323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
50324
50325 2006-10-29  Bruno Haible  <bruno@clisp.org>
50326
50327         Make it compile in C++ mode.
50328         * lib/full-write.c (full_rw): Add a cast.
50329
50330 2006-11-01  Bruno Haible  <bruno@clisp.org>
50331
50332         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
50333         be POSIX compliant.
50334         Reported by Roger Persson <perrog@gmail.com>.
50335
50336 2006-11-01  Eric Blake  <ebb9@byu.net>
50337
50338         * lib/getopt_.h: Fix comments.
50339
50340 2006-10-31  Eric Blake  <ebb9@byu.net>
50341
50342         * modules/tmpdir (Depends-on): Add sys_stat.
50343         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
50344         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
50345         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
50346         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
50347         tempname.
50348
50349 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
50350
50351         Avoid some C++ diagnostics reported by Bruno Haible.
50352         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
50353         xmalloc.
50354         (quotearg_alloc): Use xcharalloc rather than xmalloc.
50355         (struct slotvec): Move to top level.
50356         (quotearg_n_options): Rewrite to avoid xmalloc.
50357         * lib/xalloc.h (xcharalloc): New function.
50358         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
50359         [defined __cplusplus]: Add function template that provides result
50360         type propagation.  This part of the change is from Bruno Haible.
50361
50362 2006-10-29  Bruno Haible  <bruno@clisp.org>
50363
50364         Make it compile in C++ mode.
50365         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
50366         * lib/strnlen1.c (strnlen1): Cast memchr result.
50367         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
50368         * lib/clean-temp.c (string_equals, string_hash): Add casts.
50369         (create_temp_dir): Rename local variable 'template'.
50370         (compile_csharp_using_sscli): Add cast.
50371         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
50372         * lib/findprog.c (find_in_path): Likewise.
50373         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
50374         * lib/wait-process.c (register_slave_subprocess): Likewise.
50375
50376 2006-10-22  Bruno Haible  <bruno@clisp.org>
50377
50378         * modules/tsearch: New file.
50379         * lib/tsearch.h: New file.
50380         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
50381         * m4/tsearch.m4: New file.
50382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
50383
50384 2006-10-29  Eric Blake  <ebb9@byu.net>
50385
50386         * lib/arcfour.c: Assume config.h.
50387         * lib/arctwo.c: Likewise.
50388         * lib/base64.c: Likewise.
50389         * lib/check-version.c: Likewise.
50390         * lib/crc.c: Likewise.
50391         * lib/des.c: Likewise.
50392         * lib/gc-gnulib.c: Likewise.
50393         * lib/gc-libgcrypt.c: Likewise.
50394         * lib/gc-pbkdf2-sha1.c: Likewise.
50395         * lib/getaddrinfo.c: Likewise.
50396         * lib/getdelim.c: Likewise.
50397         * lib/getline.c: Likewise.
50398         * lib/hmac-md5.c: Likewise.
50399         * lib/hmac-sha1.c: Likewise.
50400         * lib/iconvme.c: Likewise.
50401         * lib/md2.c: Likewise.
50402         * lib/md4.c: Likewise.
50403         * lib/memxor.c: Likewise.
50404         * lib/read-file.c: Likewise.
50405         * lib/readline.c: Likewise.
50406         * lib/rijndael-alg-fst.c: Likewise.
50407         * lib/rijndael-api-fst.c: Likewise.
50408         * lib/xgetdomainname.c: Likewise.
50409
50410 2006-10-28  Eric Blake  <ebb9@byu.net>
50411
50412         * lib/xstrndup.c: Assume config.h.
50413
50414 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
50415
50416         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
50417         stat-macros.h is now for our own macros, whereas stat_h is for
50418         macros in the <sys/stat.h> name space.
50419         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
50420         (STAT_MACROS_H): Remove.
50421         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
50422         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
50423         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
50424         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
50425         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
50426         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
50427         Move these macros to ...
50428         * lib/stat_.h: here.  Don't include stat-macros.h.
50429         * lib/canonicalize.c: Don't include stat-macros.h.
50430         * lib/chown.c: Likewise.
50431         * lib/euidaccess.c: Likewise.
50432         * lib/file-type.c: Likewise.
50433         * lib/filemode.c: Likewise.
50434         * lib/glob.c: Likewise.
50435         * lib/isapipe.c: Likewise.
50436         * lib/lchown.c: Likewise.
50437         * lib/lstat.c: Likewise.
50438         * lib/mkdir-p.c: Likewise.
50439         * lib/rmdir.c: Likewise.
50440         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
50441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
50442         unless mkdir isn't declared, to speed up 'configure'.
50443         Always create sys/stat.h, since it's unlikely any real sys/stat.h
50444         would define all the S_* symbols.
50445         * modules/canonicalize (Depends-on):
50446         Depend on sys_stat, not stat-macros.
50447         * modules/chown: Likewise.
50448         * modules/euidaccess: Likewise.
50449         * modules/filemode: Likewise.
50450         * modules/file-type: Likewise.
50451         * modules/glob: Likewise.
50452         * modules/isapipe: Likewise.
50453         * modules/lchown: Likewise.
50454         * modules/lstat: Likewise.
50455         * modules/mkancesdirs: Likewise.
50456         * modules/rmdir: Likewise.
50457         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
50458         * modules/modechange: Likewise.
50459         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
50460         (configure.ac): Remove gl_STAT_MACROS.
50461         * modules/sys_stat (Depends-on): Remove stat-macros.
50462
50463 2006-10-27  Bruno Haible  <bruno@clisp.org>
50464
50465         * m4/signed.m4: Remove file.
50466         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
50467         invocation.
50468         * modules/vasnprintf (Files): Remove m4/signed.m4.
50469
50470 2006-10-27  Bruno Haible  <bruno@clisp.org>
50471
50472         Update to GNU gettext 0.16.
50473         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
50474         m4/inttypes-h.m4, m4/signed.m4.
50475         * m4/gettext.m4: Update to GNU gettext 0.16.
50476         * m4/intl.m4: New file, from GNU gettext.
50477         * m4/intldir.m4: New file, from GNU gettext.
50478         * config/srclist.txt: Update
50479
50480 2006-10-27  Eric Blake  <ebb9@byu.net>
50481
50482         * MODULES.html.sh: Document tempname.
50483         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
50484         dependencies.
50485         (Files): Move lib/tempname.c...
50486         * modules/tempname: ...to this new module.
50487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
50488         (gl_PREREQ_TEMPNAME): Move...
50489         * m4/tempname.m4: ...to this new file.
50490         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
50491         * modules/sys_stat (Depends-on): Add stat-macros.
50492         * lib/stat_.h (includes): Pick up stat macros.
50493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
50494         if stat macros are broken.
50495         * lib/tempname.c (includes): No need to include "stat-macros.h".
50496         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
50497         (direxists, __path_search) [!_LIBC]: Don't compile these in
50498         gnulib; the tmpdir module covers that.
50499         * lib/tempname.h: New file.
50500
50501 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
50502
50503         * COPYING: Explain how gnulib-tool converts licence headers.
50504         Almost all wording by Eric Blake.
50505
50506 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
50507
50508         * lib/mbchar.h (is_basic_table): Make read-only.
50509         * lib/mbchar.c (is_basic_table): Likewise.
50510         Reported by John Darrington.
50511
50512 2006-10-25  Bruno Haible  <bruno@clisp.org>
50513
50514         * lib/progname.h (set_program_name): Undefine before defining.
50515
50516 2006-10-25  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
50519         false for non-gcc C++ compilers.
50520         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50521
50522 2006-10-24  Bruno Haible  <bruno@clisp.org>
50523
50524         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
50525         iconv implementations like Irix iconv.
50526
50527 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50528
50529         * modules/vararrays: New file.
50530         * m4/vararrays.m4: New file, taken from diffutils.
50531         * MODULES.html.sh: New module vararrays.
50532
50533 2006-10-24  Karl Berry  <karl@gnu.org>
50534
50535         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
50536         Don't call GNU Unix.
50537
50538 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50539
50540         * users.txt: Add Libtool.
50541
50542         Sync from Libtool:
50543
50544         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50545
50546         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
50547         to gnulib's policy of including config.h unconditionally.
50548
50549 2006-10-24  Bruno Haible  <bruno@clisp.org>
50550
50551         * modules/wcwidth (Files): Add m4/wint_t.m4.
50552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
50553         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
50554
50555 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50556
50557         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
50558         to pacify GCC with some -W flags enabled.  Problem reported by
50559         Bruno Haible.
50560
50561 2006-10-24  Jim Meyering  <jim@meyering.net>
50562
50563         * MODULES.html.sh: Remove uinttostr.  It's not a module.
50564         Reported by Karl Berry.
50565
50566 2006-10-23  Bruno Haible  <bruno@clisp.org>
50567
50568         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
50569
50570 2006-10-24  Bruno Haible  <bruno@clisp.org>
50571
50572         * lib/gl_list.h: Use C comment style, not C++ comment style.
50573
50574 2006-10-23  Eric Blake  <ebb9@byu.net>
50575
50576         * lib/getaddrinfo.c (includes): Add missing include.
50577
50578 2006-10-23  Bruno Haible  <bruno@clisp.org>
50579             Paul Eggert  <eggert@cs.ucla.edu>
50580
50581         Ability to rename obstack_free.
50582         * lib/obstack.h (__obstack_free): New macro. Declare instead of
50583         obstack_free.
50584         (obstack_free): Invoke the __obstack_free macro.
50585         * lib/obstack.c (obstack_free): Use __obstack_free macro.
50586
50587 2006-10-23  Bruno Haible  <bruno@clisp.org>
50588             Paul Eggert  <eggert@cs.ucla.edu>
50589
50590         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
50591         __argc, __argv from the declaration. (They are defined as macros on
50592         mingw.)
50593
50594 2006-10-22  Bruno Haible  <bruno@clisp.org>
50595
50596         * doc/gnulib-intro.texi: New file.
50597         * doc/gnulib.texi: Include it.
50598
50599 2006-10-21  Bruno Haible  <bruno@clisp.org>
50600
50601         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
50602         "Introduction", "Miscellanous Notes", "Particular Modules".
50603
50604 2006-10-21  Bruno Haible  <bruno@clisp.org>
50605
50606         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50607         Change mostlyclean-local rule to avoid sh syntax error from bash
50608         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
50609
50610 2006-10-23  Jim Meyering  <jim@meyering.net>
50611
50612         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
50613         in place of snprintf.
50614
50615         * modules/inttostr (Files): Add lib/uinttostr.c.
50616         * lib/uinttostr.c (inttostr): New file/function.
50617         * lib/inttostr.h (uinttostr): Declare.
50618         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
50619         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
50620         Add uinttostr.
50621         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
50622
50623 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
50624
50625         * lib/canonicalize.c (ELOOP): Define if not already defined.
50626         Problem reported by Bruno Haible in
50627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
50628
50629 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
50630
50631         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
50632         Problem reported by Perry Smith and Ville Laurikari.
50633
50634         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
50635         uses.
50636
50637 2006-10-19  Bruno Haible  <bruno@clisp.org>
50638
50639         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
50640         for mingw.
50641
50642 2006-10-19  Bruno Haible  <bruno@clisp.org>
50643
50644         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
50645         Needed for mingw.
50646
50647 2006-10-19  Bruno Haible  <bruno@clisp.org>
50648
50649         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
50650
50651 2006-10-19  Bruno Haible  <bruno@clisp.org>
50652
50653         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
50654         it.
50655
50656 2006-10-19  Bruno Haible  <bruno@clisp.org>
50657
50658         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
50659         invocation.
50660
50661 2006-10-19  Bruno Haible  <bruno@clisp.org>
50662
50663         * gnulib-tool (func_create_testdir): Don't include ftruncate and
50664         mountlist by default.
50665
50666 2006-10-16  Bruno Haible  <bruno@clisp.org>
50667
50668         * lib/c-strstr.c: Include c-strstr.h.
50669
50670 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50671
50672         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
50673         in a slash.
50674
50675 2006-10-18  Bruno Haible  <bruno@clisp.org>
50676
50677         * lib/lock.h [C++]: Wrap definitions in extern "C".
50678
50679 2006-10-18  Bruno Haible  <bruno@clisp.org>
50680
50681         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
50682         gl_LIBOBJS list.
50683
50684 2006-10-18  Bruno Haible  <bruno@clisp.org>
50685
50686         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
50687
50688 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
50689
50690         * lib/xstrtol.h: Include gettext.h.
50691         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
50692         Problem reported by Eric Blake.
50693         * modules/xstrtol (Depends-on): Add gettext-h.
50694
50695 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
50696
50697         * lib/strftime.c (advance): New macro.
50698         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
50699         incomplete type, so you can't add 0 to it.  Problem and patch
50700         reported by Eelco Dolstra for dietlibc.
50701
50702 2006-10-18  Jim Meyering  <jim@meyering.net>
50703
50704         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
50705         type for a local, and rename it: s/up/user_proc/.
50706
50707 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50708
50709         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
50710         READ_UTMP_USER_PROCESS.
50711         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
50712
50713 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
50716         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
50717
50718 2006-10-17  Eric Blake  <ebb9@byu.net>
50719
50720         * lib/sigprocmask.c (sigprocmask): Fix typo.
50721
50722         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
50723
50724         * modules/clean-temp (Makefile.am): Don't add to make output...
50725         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
50726         config.h.
50727
50728 2006-10-17  Bruno Haible  <bruno@clisp.org>
50729
50730         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
50731         differently if DEFAULT_TEXT_DOMAIN is set.
50732
50733 2006-10-16  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/clean-temp.c: Include fwriteerror.h.
50736
50737 2006-10-16  Bruno Haible  <bruno@clisp.org>
50738
50739         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
50740
50741 2006-10-16  Bruno Haible  <bruno@clisp.org>
50742
50743         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
50744         * lib/sigprocmask.h: Include <sys/types.h>.
50745         (sigset_t): Use the system's definition if present.
50746
50747 2006-10-17  Eric Blake  <ebb9@byu.net>
50748
50749         * lib/xvasprintf.c (includes): Assume config.h.
50750         * lib/xasprintf.c (includes): Likewise.
50751
50752 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50753
50754         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
50755         at least as wide as intmax_t.
50756
50757 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
50758
50759         (Imported from Automake.)
50760         * build-aux/gnupload: Update to version 1.1 of directive file.
50761
50762 2006-10-16  Eric Blake  <ebb9@byu.net>
50763
50764         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
50765         match Automake 1.10a.
50766
50767 2006-10-14  Bruno Haible  <bruno@clisp.org>
50768
50769         * modules/sigprocmask: New file.
50770         * lib/sigprocmask.h: New file.
50771         * lib/sigprocmask.c: New file.
50772         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
50773         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
50774         request sigprocmask.o.
50775         (gl_PREREQ_SIGPROCMASK): New macro.
50776         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
50777         (Depends-on): Add sigprocmask.
50778         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
50779         gt_SIGNALBLOCKING. Test for 'raise' only once.
50780         * lib/fatal-signal.c: Include sigprocmask.h.
50781         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
50782         unblock_fatal_signals): Define always.
50783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50784         sigprocmask.
50785
50786 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
50787
50788         Sync from Automake.
50789         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
50790         which incorrectly sets the mode of an existing destination
50791         directory.  In some cases the unpatched install-sh could do the
50792         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
50793         system.  We hope this is rare in practice, but it's clearly worth
50794         fixing.  Problem reported by Alex Unleashed in
50795         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
50796         Also, don't bother to check for -m bugs unless we're using -m;
50797         suggested by Stepan Kasal.
50798
50799 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50800
50801         Sync from Automake.
50802         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
50803         `-c' flag, so they appear at the same position as in %FASTDEP%
50804         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
50805         which ignores unknown options only after the first non-option.
50806         Bug report against M4 by Nelson H. F. Beebe.
50807
50808 2006-10-13  Jim Meyering  <jim@meyering.net>
50809
50810         Fix a bug in yesterday's change.
50811         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
50812         p->fts_statp->st_dev would be used uninitialized.
50813         Ensures that we always call fts_stat on the very first entry.
50814         Miklos Szeredi reported that find -xdev stopped working.
50815
50816 2006-10-12  Bruno Haible  <bruno@clisp.org>
50817
50818         * gnulib-tool (func_get_automake_snippet): Append an automatically
50819         computed EXTRA_DIST augmentation.
50820         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
50821         * modules/alloca-opt (Makefile.am): Likewise.
50822         * modules/allocsa (Makefile.am): Likewise.
50823         * modules/arcfour (Makefile.am): Likewise.
50824         * modules/arctwo (Makefile.am): Likewise.
50825         * modules/argmatch (Makefile.am): Likewise.
50826         * modules/argz (Makefile.am): Likewise.
50827         * modules/atexit (Makefile.am): Likewise.
50828         * modules/backupfile (Makefile.am): Likewise.
50829         * modules/byteswap (Makefile.am): Likewise.
50830         * modules/c-strtod (Makefile.am): Likewise.
50831         * modules/c-strtold (Makefile.am): Likewise.
50832         * modules/calloc (Makefile.am): Likewise.
50833         * modules/canon-host (Makefile.am): Likewise.
50834         * modules/canonicalize (Makefile.am): Likewise.
50835         * modules/chdir-long (Makefile.am): Likewise.
50836         * modules/chdir-safer (Makefile.am): Likewise.
50837         * modules/check-version (Makefile.am): Likewise.
50838         * modules/chown (Makefile.am): Likewise.
50839         * modules/cloexec (Makefile.am): Likewise.
50840         * modules/close-stream (Makefile.am): Likewise.
50841         * modules/closeout (Makefile.am): Likewise.
50842         * modules/crc (Makefile.am): Likewise.
50843         * modules/csharpexec (Makefile.am): Likewise.
50844         * modules/cycle-check (Makefile.am): Likewise.
50845         * modules/des (Makefile.am): Likewise.
50846         * modules/dev-ino (Makefile.am): Likewise.
50847         * modules/dirfd (Makefile.am): Likewise.
50848         * modules/dirname (Makefile.am): Likewise.
50849         * modules/dup2 (Makefile.am): Likewise.
50850         * modules/eealloc (Makefile.am): Likewise.
50851         * modules/error (Makefile.am): Likewise.
50852         * modules/euidaccess (Makefile.am): Likewise.
50853         * modules/exclude (Makefile.am): Likewise.
50854         * modules/exitfail (Makefile.am): Likewise.
50855         * modules/fcntl-safer (Makefile.am): Likewise.
50856         * modules/fcntl (Makefile.am): Likewise.
50857         * modules/file-type (Makefile.am): Likewise.
50858         * modules/fileblocks (Makefile.am): Likewise.
50859         * modules/filemode (Makefile.am): Likewise.
50860         * modules/filenamecat (Makefile.am): Likewise.
50861         * modules/fnmatch (Makefile.am): Likewise.
50862         * modules/fopen-safer (Makefile.am): Likewise.
50863         * modules/fpending (Makefile.am): Likewise.
50864         * modules/fprintftime (Makefile.am): Likewise.
50865         * modules/free (Makefile.am): Likewise.
50866         * modules/fsusage (Makefile.am): Likewise.
50867         * modules/ftruncate (Makefile.am): Likewise.
50868         * modules/fts (Makefile.am): Likewise.
50869         * modules/gc-arcfour (Makefile.am): Likewise.
50870         * modules/gc-des (Makefile.am): Likewise.
50871         * modules/gc-hmac-md5 (Makefile.am): Likewise.
50872         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
50873         * modules/gc-md4 (Makefile.am): Likewise.
50874         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
50875         * modules/gc-sha1 (Makefile.am): Likewise.
50876         * modules/gc (Makefile.am): Likewise.
50877         * modules/getaddrinfo (Makefile.am): Likewise.
50878         * modules/getcwd (Makefile.am): Likewise.
50879         * modules/getdelim (Makefile.am): Likewise.
50880         * modules/getdomainname (Makefile.am): Likewise.
50881         * modules/getgroups (Makefile.am): Likewise.
50882         * modules/gethostname (Makefile.am): Likewise.
50883         * modules/gethrxtime (Makefile.am): Likewise.
50884         * modules/getline (Makefile.am): Likewise.
50885         * modules/getloadavg (Makefile.am): Likewise.
50886         * modules/getlogin_r (Makefile.am): Likewise.
50887         * modules/getndelim2 (Makefile.am): Likewise.
50888         * modules/getopt (Makefile.am): Likewise.
50889         * modules/getpagesize (Makefile.am): Likewise.
50890         * modules/getpass-gnu (Makefile.am): Likewise.
50891         * modules/getpass (Makefile.am): Likewise.
50892         * modules/getsubopt (Makefile.am): Likewise.
50893         * modules/gettime (Makefile.am): Likewise.
50894         * modules/gettimeofday (Makefile.am): Likewise.
50895         * modules/getugroups (Makefile.am): Likewise.
50896         * modules/getusershell (Makefile.am): Likewise.
50897         * modules/glob (Makefile.am): Likewise.
50898         * modules/group-member (Makefile.am): Likewise.
50899         * modules/hard-locale (Makefile.am): Likewise.
50900         * modules/hash (Makefile.am): Likewise.
50901         * modules/hmac-md5 (Makefile.am): Likewise.
50902         * modules/hmac-sha1 (Makefile.am): Likewise.
50903         * modules/human (Makefile.am): Likewise.
50904         * modules/idcache (Makefile.am): Likewise.
50905         * modules/imaxabs (Makefile.am): Likewise.
50906         * modules/imaxdiv (Makefile.am): Likewise.
50907         * modules/inet_ntop (Makefile.am): Likewise.
50908         * modules/inet_pton (Makefile.am): Likewise.
50909         * modules/intprops (Makefile.am): Likewise.
50910         * modules/inttostr (Makefile.am): Likewise.
50911         * modules/inttypes (Makefile.am): Likewise.
50912         * modules/isapipe (Makefile.am): Likewise.
50913         * modules/javaversion (Makefile.am): Likewise.
50914         * modules/lchmod (Makefile.am): Likewise.
50915         * modules/lchown (Makefile.am): Likewise.
50916         * modules/localcharset (Makefile.am): Likewise.
50917         * modules/long-options (Makefile.am): Likewise.
50918         * modules/lstat (Makefile.am): Likewise.
50919         * modules/malloc (Makefile.am): Likewise.
50920         * modules/mathl (Makefile.am): Likewise.
50921         * modules/mbchar (Makefile.am): Likewise.
50922         * modules/md2 (Makefile.am): Likewise.
50923         * modules/md4 (Makefile.am): Likewise.
50924         * modules/md5 (Makefile.am): Likewise.
50925         * modules/memcasecmp (Makefile.am): Likewise.
50926         * modules/memchr (Makefile.am): Likewise.
50927         * modules/memcmp (Makefile.am): Likewise.
50928         * modules/memcoll (Makefile.am): Likewise.
50929         * modules/memcpy (Makefile.am): Likewise.
50930         * modules/memmem (Makefile.am): Likewise.
50931         * modules/memmove (Makefile.am): Likewise.
50932         * modules/mempcpy (Makefile.am): Likewise.
50933         * modules/memrchr (Makefile.am): Likewise.
50934         * modules/memset (Makefile.am): Likewise.
50935         * modules/memxor (Makefile.am): Likewise.
50936         * modules/mkancesdirs (Makefile.am): Likewise.
50937         * modules/mkdir-p (Makefile.am): Likewise.
50938         * modules/mkdir (Makefile.am): Likewise.
50939         * modules/mkdtemp (Makefile.am): Likewise.
50940         * modules/mkstemp (Makefile.am): Likewise.
50941         * modules/mktime (Makefile.am): Likewise.
50942         * modules/modechange (Makefile.am): Likewise.
50943         * modules/mountlist (Makefile.am): Likewise.
50944         * modules/nanosleep (Makefile.am): Likewise.
50945         * modules/obstack (Makefile.am): Likewise.
50946         * modules/openat (Makefile.am): Likewise.
50947         * modules/pagealign_alloc (Makefile.am): Likewise.
50948         * modules/pathmax (Makefile.am): Likewise.
50949         * modules/physmem (Makefile.am): Likewise.
50950         * modules/poll (Makefile.am): Likewise.
50951         * modules/posixtm (Makefile.am): Likewise.
50952         * modules/posixver (Makefile.am): Likewise.
50953         * modules/putenv (Makefile.am): Likewise.
50954         * modules/quote (Makefile.am): Likewise.
50955         * modules/quotearg (Makefile.am): Likewise.
50956         * modules/raise (Makefile.am): Likewise.
50957         * modules/read-file (Makefile.am): Likewise.
50958         * modules/readline (Makefile.am): Likewise.
50959         * modules/readlink (Makefile.am): Likewise.
50960         * modules/readtokens (Makefile.am): Likewise.
50961         * modules/readutmp (Makefile.am): Likewise.
50962         * modules/realloc (Makefile.am): Likewise.
50963         * modules/regex (Makefile.am): Likewise.
50964         * modules/rename-dest-slash (Makefile.am): Likewise.
50965         * modules/rename (Makefile.am): Likewise.
50966         * modules/rijndael (Makefile.am): Likewise.
50967         * modules/rmdir (Makefile.am): Likewise.
50968         * modules/rpmatch (Makefile.am): Likewise.
50969         * modules/safe-read (Makefile.am): Likewise.
50970         * modules/safe-write (Makefile.am): Likewise.
50971         * modules/same-inode (Makefile.am): Likewise.
50972         * modules/same (Makefile.am): Likewise.
50973         * modules/save-cwd (Makefile.am): Likewise.
50974         * modules/savedir (Makefile.am): Likewise.
50975         * modules/setenv (Makefile.am): Likewise.
50976         * modules/settime (Makefile.am): Likewise.
50977         * modules/sha1 (Makefile.am): Likewise.
50978         * modules/sig2str (Makefile.am): Likewise.
50979         * modules/snprintf (Makefile.am): Likewise.
50980         * modules/stat-macros (Makefile.am): Likewise.
50981         * modules/stat-time (Makefile.am): Likewise.
50982         * modules/stdbool (Makefile.am): Likewise.
50983         * modules/stdint (Makefile.am): Likewise.
50984         * modules/stdlib-safer (Makefile.am): Likewise.
50985         * modules/stpcpy (Makefile.am): Likewise.
50986         * modules/stpncpy (Makefile.am): Likewise.
50987         * modules/strcase (Makefile.am): Likewise.
50988         * modules/strcasestr (Makefile.am): Likewise.
50989         * modules/strchrnul (Makefile.am): Likewise.
50990         * modules/strcspn (Makefile.am): Likewise.
50991         * modules/strdup (Makefile.am): Likewise.
50992         * modules/strerror (Makefile.am): Likewise.
50993         * modules/strftime (Makefile.am): Likewise.
50994         * modules/strndup (Makefile.am): Likewise.
50995         * modules/strnlen (Makefile.am): Likewise.
50996         * modules/strpbrk (Makefile.am): Likewise.
50997         * modules/strsep (Makefile.am): Likewise.
50998         * modules/strstr (Makefile.am): Likewise.
50999         * modules/strtod (Makefile.am): Likewise.
51000         * modules/strtoimax (Makefile.am): Likewise.
51001         * modules/strtok_r (Makefile.am): Likewise.
51002         * modules/strtol (Makefile.am): Likewise.
51003         * modules/strtoll (Makefile.am): Likewise.
51004         * modules/strtoul (Makefile.am): Likewise.
51005         * modules/strtoull (Makefile.am): Likewise.
51006         * modules/strtoumax (Makefile.am): Likewise.
51007         * modules/strverscmp (Makefile.am): Likewise.
51008         * modules/sys_socket (Makefile.am): Likewise.
51009         * modules/sys_stat (Makefile.am): Likewise.
51010         * modules/sysexits (Makefile.am): Likewise.
51011         * modules/time_r (Makefile.am): Likewise.
51012         * modules/timegm (Makefile.am): Likewise.
51013         * modules/timespec (Makefile.am): Likewise.
51014         * modules/tmpfile-safer (Makefile.am): Likewise.
51015         * modules/trim (Makefile.am): Likewise.
51016         * modules/unistd-safer (Makefile.am): Likewise.
51017         * modules/unlinkdir (Makefile.am): Likewise.
51018         * modules/unlocked-io (Makefile.am): Likewise.
51019         * modules/userspec (Makefile.am): Likewise.
51020         * modules/utime (Makefile.am): Likewise.
51021         * modules/utimecmp (Makefile.am): Likewise.
51022         * modules/utimens (Makefile.am): Likewise.
51023         * modules/vasnprintf (Makefile.am): Likewise.
51024         * modules/vasprintf (Makefile.am): Likewise.
51025         * modules/vsnprintf (Makefile.am): Likewise.
51026         * modules/xalloc (Makefile.am): Likewise.
51027         * modules/xgetcwd (Makefile.am): Likewise.
51028         * modules/xnanosleep (Makefile.am): Likewise.
51029         * modules/xreadlink (Makefile.am): Likewise.
51030         * modules/xstrtod (Makefile.am): Likewise.
51031         * modules/xstrtol (Makefile.am): Likewise.
51032         * modules/xstrtold (Makefile.am): Likewise.
51033         * modules/yesno (Makefile.am): Likewise.
51034         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51035
51036 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51037
51038         * modules/error (Makefile.am): Distribute files through
51039         EXTRA_DIST, not lib_SOURCES.
51040
51041 2006-10-12  Eric Blake  <ebb9@byu.net>
51042
51043         * modules/error (Makefile.am): Distribute files in /lib.
51044         * modules/obstack (Makefile.am): Likewise.
51045
51046 2006-10-12  Bruno Haible  <bruno@clisp.org>
51047
51048         * modules/acl (Makefile.am): Distribute all files in lib/ through
51049         EXTRA_DIST.
51050         * modules/arcfour (Makefile.am): Likewise.
51051         * modules/arctwo (Makefile.am): Likewise.
51052         * modules/argmatch (Makefile.am): Likewise.
51053         * modules/argz (Makefile.am): Likewise.
51054         * modules/atexit (Makefile.am): Likewise.
51055         * modules/backupfile (Makefile.am): Likewise.
51056         * modules/c-strtod (Makefile.am): Likewise.
51057         * modules/c-strtold (Makefile.am): Likewise.
51058         * modules/calloc (Makefile.am): Likewise.
51059         * modules/canon-host (Makefile.am): Likewise.
51060         * modules/canonicalize (Makefile.am): Likewise.
51061         * modules/chdir-long (Makefile.am): Likewise.
51062         * modules/chdir-safer (Makefile.am): Likewise.
51063         * modules/check-version (Makefile.am): Likewise.
51064         * modules/chown (Makefile.am): Likewise.
51065         * modules/cloexec (Makefile.am): Likewise.
51066         * modules/close-stream (Makefile.am): Likewise.
51067         * modules/closeout (Makefile.am): Likewise.
51068         * modules/crc (Makefile.am): Likewise.
51069         * modules/cycle-check (Makefile.am): Likewise.
51070         * modules/des (Makefile.am): Likewise.
51071         * modules/dirfd (Makefile.am): Likewise.
51072         * modules/dirname (Makefile.am): Likewise.
51073         * modules/dup2 (Makefile.am): Likewise.
51074         * modules/euidaccess (Makefile.am): Likewise.
51075         * modules/exclude (Makefile.am): Likewise.
51076         * modules/exitfail (Makefile.am): Likewise.
51077         * modules/fcntl-safer (Makefile.am): Likewise.
51078         * modules/file-type (Makefile.am): Likewise.
51079         * modules/fileblocks (Makefile.am): Likewise.
51080         * modules/filemode (Makefile.am): Likewise.
51081         * modules/filenamecat (Makefile.am): Likewise.
51082         * modules/fnmatch (Makefile.am): Likewise.
51083         * modules/fopen-safer (Makefile.am): Likewise.
51084         * modules/fpending (Makefile.am): Likewise.
51085         * modules/fprintftime (Makefile.am): Likewise.
51086         * modules/free (Makefile.am): Likewise.
51087         * modules/fsusage (Makefile.am): Likewise.
51088         * modules/ftruncate (Makefile.am): Likewise.
51089         * modules/fts (Makefile.am): Likewise.
51090         * modules/gc (Makefile.am): Likewise.
51091         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51092         * modules/getaddrinfo (Makefile.am): Likewise.
51093         * modules/getcwd (Makefile.am): Likewise.
51094         * modules/getdelim (Makefile.am): Likewise.
51095         * modules/getdomainname (Makefile.am): Likewise.
51096         * modules/getgroups (Makefile.am): Likewise.
51097         * modules/gethostname (Makefile.am): Likewise.
51098         * modules/gethrxtime (Makefile.am): Likewise.
51099         * modules/getline (Makefile.am): Likewise.
51100         * modules/getloadavg (Makefile.am): Likewise.
51101         * modules/getlogin_r (Makefile.am): Likewise.
51102         * modules/getopt (Makefile.am): Likewise.
51103         * modules/getpass (Makefile.am): Likewise.
51104         * modules/getpass-gnu (Makefile.am): Likewise.
51105         * modules/getsubopt (Makefile.am): Likewise.
51106         * modules/gettime (Makefile.am): Likewise.
51107         * modules/gettimeofday (Makefile.am): Likewise.
51108         * modules/getugroups (Makefile.am): Likewise.
51109         * modules/getusershell (Makefile.am): Likewise.
51110         * modules/glob (Makefile.am): Likewise.
51111         * modules/group-member (Makefile.am): Likewise.
51112         * modules/hard-locale (Makefile.am): Likewise.
51113         * modules/hash (Makefile.am): Likewise.
51114         * modules/hmac-md5 (Makefile.am): Likewise.
51115         * modules/hmac-sha1 (Makefile.am): Likewise.
51116         * modules/human (Makefile.am): Likewise.
51117         * modules/idcache (Makefile.am): Likewise.
51118         * modules/imaxabs (Makefile.am): Likewise.
51119         * modules/imaxdiv (Makefile.am): Likewise.
51120         * modules/inet_ntop (Makefile.am): Likewise.
51121         * modules/inet_pton (Makefile.am): Likewise.
51122         * modules/inttostr (Makefile.am): Likewise.
51123         * modules/isapipe (Makefile.am): Likewise.
51124         * modules/lchown (Makefile.am): Likewise.
51125         * modules/long-options (Makefile.am): Likewise.
51126         * modules/lstat (Makefile.am): Likewise.
51127         * modules/malloc (Makefile.am): Likewise.
51128         * modules/mathl (Makefile.am): Likewise.
51129         * modules/mbchar (Makefile.am): Likewise.
51130         * modules/md2 (Makefile.am): Likewise.
51131         * modules/md4 (Makefile.am): Likewise.
51132         * modules/md5 (Makefile.am): Likewise.
51133         * modules/memcasecmp (Makefile.am): Likewise.
51134         * modules/memchr (Makefile.am): Likewise.
51135         * modules/memcmp (Makefile.am): Likewise.
51136         * modules/memcoll (Makefile.am): Likewise.
51137         * modules/memcpy (Makefile.am): Likewise.
51138         * modules/memmem (Makefile.am): Likewise.
51139         * modules/memmove (Makefile.am): Likewise.
51140         * modules/mempcpy (Makefile.am): Likewise.
51141         * modules/memrchr (Makefile.am): Likewise.
51142         * modules/memset (Makefile.am): Likewise.
51143         * modules/memxor (Makefile.am): Likewise.
51144         * modules/mkancesdirs (Makefile.am): Likewise.
51145         * modules/mkdir (Makefile.am): Likewise.
51146         * modules/mkdir-p (Makefile.am): Likewise.
51147         * modules/mkdtemp (Makefile.am): Likewise.
51148         * modules/mkstemp (Makefile.am): Likewise.
51149         * modules/mktime (Makefile.am): Likewise.
51150         * modules/modechange (Makefile.am): Likewise.
51151         * modules/mountlist (Makefile.am): Likewise.
51152         * modules/nanosleep (Makefile.am): Likewise.
51153         * modules/openat (Makefile.am): Likewise.
51154         * modules/pagealign_alloc (Makefile.am): Likewise.
51155         * modules/physmem (Makefile.am): Likewise.
51156         * modules/poll (Makefile.am): Likewise.
51157         * modules/posixtm (Makefile.am): Likewise.
51158         * modules/posixver (Makefile.am): Likewise.
51159         * modules/putenv (Makefile.am): Likewise.
51160         * modules/quote (Makefile.am): Likewise.
51161         * modules/quotearg (Makefile.am): Likewise.
51162         * modules/raise (Makefile.am): Likewise.
51163         * modules/read-file (Makefile.am): Likewise.
51164         * modules/readline (Makefile.am): Likewise.
51165         * modules/readlink (Makefile.am): Likewise.
51166         * modules/readtokens (Makefile.am): Likewise.
51167         * modules/readutmp (Makefile.am): Likewise.
51168         * modules/realloc (Makefile.am): Likewise.
51169         * modules/regex (Makefile.am): Likewise.
51170         * modules/rename (Makefile.am): Likewise.
51171         * modules/rename-dest-slash (Makefile.am): Likewise.
51172         * modules/rijndael (Makefile.am): Likewise.
51173         * modules/rmdir (Makefile.am): Likewise.
51174         * modules/rpmatch (Makefile.am): Likewise.
51175         * modules/safe-read (Makefile.am): Likewise.
51176         * modules/safe-write (Makefile.am): Likewise.
51177         * modules/same (Makefile.am): Likewise.
51178         * modules/save-cwd (Makefile.am): Likewise.
51179         * modules/savedir (Makefile.am): Likewise.
51180         * modules/setenv (Makefile.am): Likewise.
51181         * modules/settime (Makefile.am): Likewise.
51182         * modules/sha1 (Makefile.am): Likewise.
51183         * modules/sig2str (Makefile.am): Likewise.
51184         * modules/snprintf (Makefile.am): Likewise.
51185         * modules/stdlib-safer (Makefile.am): Likewise.
51186         * modules/stpcpy (Makefile.am): Likewise.
51187         * modules/stpncpy (Makefile.am): Likewise.
51188         * modules/strcase (Makefile.am): Likewise.
51189         * modules/strcasestr (Makefile.am): Likewise.
51190         * modules/strchrnul (Makefile.am): Likewise.
51191         * modules/strcspn (Makefile.am): Likewise.
51192         * modules/strdup (Makefile.am): Likewise.
51193         * modules/strerror (Makefile.am): Likewise.
51194         * modules/strftime (Makefile.am): Likewise.
51195         * modules/strndup (Makefile.am): Likewise.
51196         * modules/strnlen (Makefile.am): Likewise.
51197         * modules/strpbrk (Makefile.am): Likewise.
51198         * modules/strsep (Makefile.am): Likewise.
51199         * modules/strstr (Makefile.am): Likewise.
51200         * modules/strtod (Makefile.am): Likewise.
51201         * modules/strtoimax (Makefile.am): Likewise.
51202         * modules/strtok_r (Makefile.am): Likewise.
51203         * modules/strtol (Makefile.am): Likewise.
51204         * modules/strtoll (Makefile.am): Likewise.
51205         * modules/strtoul (Makefile.am): Likewise.
51206         * modules/strtoull (Makefile.am): Likewise.
51207         * modules/strtoumax (Makefile.am): Likewise.
51208         * modules/strverscmp (Makefile.am): Likewise.
51209         * modules/time_r (Makefile.am): Likewise.
51210         * modules/timegm (Makefile.am): Likewise.
51211         * modules/tmpfile-safer (Makefile.am): Likewise.
51212         * modules/unistd-safer (Makefile.am): Likewise.
51213         * modules/unlinkdir (Makefile.am): Likewise.
51214         * modules/userspec (Makefile.am): Likewise.
51215         * modules/utime (Makefile.am): Likewise.
51216         * modules/utimecmp (Makefile.am): Likewise.
51217         * modules/utimens (Makefile.am): Likewise.
51218         * modules/vasnprintf (Makefile.am): Likewise.
51219         * modules/vasprintf (Makefile.am): Likewise.
51220         * modules/vsnprintf (Makefile.am): Likewise.
51221         * modules/xalloc (Makefile.am): Likewise.
51222         * modules/xgetcwd (Makefile.am): Likewise.
51223         * modules/xnanosleep (Makefile.am): Likewise.
51224         * modules/xreadlink (Makefile.am): Likewise.
51225         * modules/xstrtod (Makefile.am): Likewise.
51226         * modules/xstrtol (Makefile.am): Likewise.
51227         * modules/xstrtold (Makefile.am): Likewise.
51228         * modules/yesno (Makefile.am): Likewise.
51229
51230 2006-10-12  Jim Meyering  <jim@meyering.net>
51231
51232         * m4/getloadavg.m4: Revert the change below.
51233
51234         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
51235         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
51236         fail with a symlink, which is what coreutils' ./bootstrap now
51237         creates by default.
51238
51239 2006-10-12  Bruno Haible  <bruno@clisp.org>
51240
51241         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
51242         mingw.
51243         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
51244         MSVC and mingw explicitly.
51245
51246 2006-10-11  Simon Josefsson  <jas@extundo.com>
51247             Bruno Haible  <bruno@clisp.org>
51248
51249         Add support for multiple gnulib-tool invocations in the scope of a
51250         single configure.ac file.
51251         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
51252         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
51253         with the same contents as the _LIBADD variable.
51254         (func_emit_initmacro_start, func_emit_initmacro_end,
51255         func_emit_initmacro_done): New functions.
51256         (func_import, func_create_testdir): Invoke them. Allow the identifiers
51257         gl_LIBOBJS and gl_LTLIBOBJS.
51258
51259 2006-10-11  Bruno Haible  <bruno@clisp.org>
51260
51261         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
51262         (func_create_testdir): Don't create po/Makefile.am, don't invoke
51263         autoreconf. Instead, invoke autopoint explicitly but move back the
51264         *.m4 files from gnulib.
51265
51266 2006-10-11  Bruno Haible  <bruno@clisp.org>
51267
51268         * gnulib-tool (func_usage): Make module names after --create-testdir
51269         optional.
51270         (func_create_testdir): If no module was specified, use nearly all
51271         modules.
51272
51273 2006-10-12  Jim Meyering  <jim@meyering.net>
51274
51275         Big performance improvement for fts-based tools that use FTS_NOSTAT.
51276         Avoid spurious inode-mismatch problems on non-POSIX file systems.
51277         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
51278         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
51279         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
51280         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
51281         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
51282         (fts_set_stat_required): New function.
51283         (fts_open): Defer the calls to fts_stat, if possible or requested.
51284         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
51285         into fts_stat itself.
51286         (fts_read): Perform any required (deferred) fts_stat call.
51287         (fts_build): Likewise, for the directory we're about to open and read.
51288         In the readdir loop, carefully decide whether each entry will require
51289         an eventual call to fts_stat, using dirent.d_type info if available.
51290         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
51291         a command line argument into this function.  Update all callers.
51292         Map a return value of FTS_DOT to FTS_D for a command line argument.
51293         * modules/fts (Depends-on): Add d-type.  Alphabetize.
51294         Thanks to Miklos Szeredi for his tenacity and for the initial
51295         bug report about "find" failing on a FUSE-based file system.
51296
51297         * lib/fts.c (fts_open): Use consistent indentation.
51298
51299 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51300
51301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
51302         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
51303         reported by Jim Meyering.  All uses of cache variables renamed
51304         to match Autoconf's.
51305         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
51306         the other one.
51307
51308         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
51309         Fix misspelling in diagnostic.
51310
51311 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51312
51313         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
51314         defined.  Problem reported by Matthew Woehlke.
51315
51316         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
51317         Add support for Tandem NonStop R series.
51318         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
51319         Use new macro.
51320
51321         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
51322         (has_trailing_slash): Omit size arg; all callers changed.
51323         Omit 'inline', since it doesn't help performance and we'd
51324         need to configure it.
51325         Don't count //, ///, etc. as having a trailing slash.
51326         As a side effect, this removes a C99ism reported by Matthew Woehlke.
51327         (rpl_rename_dest_slash): On failure, use rename's errno rather
51328         than (in some cases) an incorrect or junk errno.
51329         Simplify code by removing need to compute length; this does
51330         cause it to make two passes instead of one over the file name,
51331         but it's worth it.
51332
51333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
51334         change, since Autoconf's version may no longer be appropriate now
51335         that we are using CVS Autoconf's version.  Add support for Tandem.
51336
51337 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51338             Bruno Haible  <bruno@clisp.org>
51339
51340         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
51341         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
51342         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
51343         gl_AC_TYPE_LONG_LONG.
51344
51345         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
51346         instead of HAVE_LONG_LONG.
51347         * lib/printf-args.c (printf_fetchargs): Likewise.
51348         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
51349         * lib/vasnprintf.c (VASNPRINTF): Likewise.
51350         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
51351         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
51352         gl_AC_TYPE_LONG_LONG.
51353
51354 2006-10-11  Bruno Haible  <bruno@clisp.org>
51355
51356         * m4/longlong.m4: Add comments.
51357         * m4/ulonglong.m4: Likewise.
51358
51359 2006-10-10  Bruno Haible  <bruno@clisp.org>
51360
51361         Make it possible to #define stpcpy, strdup to aliases.
51362         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
51363         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
51364
51365 2006-10-10  Bruno Haible  <bruno@clisp.org>
51366
51367         Make it possible to #define gcd to an alias.
51368         * lib/gcd.c: Include config.h.
51369
51370 2006-10-10  Bruno Haible  <bruno@clisp.org>
51371
51372         Make it possible to #define c_isascii to an alias.
51373         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
51374         defined. Undefine the macros before defining them, to avoid gcc
51375         warnings.
51376         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
51377         define NO_C_CTYPE_MACROS early.
51378
51379 2006-10-10  Bruno Haible  <bruno@clisp.org>
51380
51381         Make it possible to #define set_program_name to an alias.
51382         * lib/progname.c: Don't undefine set_program_name; instead, undefine
51383         ENABLE_RELOCATABLE early.
51384
51385 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51386
51387         Port to Tandem NSK OSS, which has 64-bit signed int but at most
51388         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
51389         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
51390         More generally, don't assume that 64-bit signed int is available
51391         if unsigned int is, and vice versa.
51392         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
51393         unsigned symbols, not on their signed counterparts.
51394         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
51395         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
51396         (UINT64_C, UINTMAX_C):
51397         Likewise.
51398         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
51399         unsigned counterparts.
51400         (Have_long_long, Unsigned): New macros.
51401         (Int): Renamed from INT.
51402         (strtoimax): Use the new macros.
51403         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
51404         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
51405         * modules/inttypes (inttypes.h): Substitute
51406         HAVE_UNSIGNED_LONG_LONG_INT.
51407         * modules/stdint (stdint.h): Likewise.
51408         (Files): Add m4/ulonglong.m4.
51409
51410 2006-10-10  Bruno Haible  <bruno@clisp.org>
51411
51412         Fix a gcc -Wshadow warning.
51413         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
51414         to 'bucket'.
51415         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
51416         gl_linked_indexof_from_to): Likewise.
51417         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
51418         Likewise.
51419         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
51420         Likewise.
51421         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
51422         Reported by Eric Blake.
51423
51424 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
51425
51426         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
51427         for NetBSD.  Problem reported by Bruno Haible.
51428
51429 2006-10-09  Jim Meyering  <jim@meyering.net>
51430
51431         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
51432         Patch from Bruno Haible.
51433
51434 2006-10-09  Jim Meyering  <jim@meyering.net>
51435
51436         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
51437         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
51438         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
51439
51440 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51441
51442         Don't include <config.h> twice; this doesn't work in some cases,
51443         e.g., when config.h has "#define intmax_t long long int" and
51444         we include <config.h>, <inttypes.h>, <config.h> in that order.
51445         Problem reported by Matthew Woehlke in:
51446         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
51447         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
51448         * lib/fts-cycle.c: Don't include config.h.
51449         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
51450         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
51451         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
51452         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
51453         inttypes.h.
51454         * lib/xstrtoumax.c: Likewise.
51455         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
51456         __strtol and the like, so that this module is more like its siblings.
51457         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
51458         Remove; no longer needed now that we assume gnulib inttypes.h.
51459
51460 2006-10-08  Bruno Haible  <bruno@clisp.org>
51461
51462         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
51463         option.
51464
51465 2006-10-07  Jim Meyering  <jim@meyering.net>
51466
51467         * modules/inttypes (inttypes.h): Revert what seems to have been
51468         an inadvertent part of today's change: use "|", not "/" in the
51469         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
51470
51471 2006-10-07  Bruno Haible  <bruno@clisp.org>
51472
51473         * modules/sublist: New file.
51474
51475 2006-10-07  Bruno Haible  <bruno@clisp.org>
51476
51477         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
51478         * modules/argz (argz.h): Likewise.
51479         * modules/arpa_inet (arpa/inet.h): Likewise.
51480         * modules/byteswap (byteswap.h): Likewise.
51481         * modules/configmake (configmake.h): Likewise.
51482         * modules/fcntl (fcntl.h): Likewise.
51483         * modules/fnmatch (fnmatch.h): Likewise.
51484         * modules/getopt (getopt.h): Likewise.
51485         * modules/glob (glob.h): Likewise.
51486         * modules/inttypes (inttypes.h): Likewise.
51487         * modules/netinet_in (netinet/in.h): Likewise.
51488         * modules/poll (poll.h): Likewise.
51489         * modules/stdbool (stdbool.h): Likewise.
51490         * modules/stdint (stdint.h): Likewise.
51491         * modules/sys_select (sys/select.h): Likewise.
51492         * modules/sys_socket (sys/socket.h): Likewise.
51493         * modules/sys_stat (sys/stat.h): Likewise.
51494         * modules/sysexits (sysexits.h): Likewise.
51495         * modules/unistd (unistd.h): Likewise.
51496         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51497         Add a "DO NOT EDIT" comment to the generated file.
51498         (func_import): Likewise for gnulib-comp.m4.
51499
51500 2006-10-07  Bruno Haible  <bruno@clisp.org>
51501
51502         * lib/gl_sublist.h: New file.
51503         * lib/gl_sublist.c: New file.
51504
51505 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
51506
51507         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
51508         name (relative to the original working directory) and the file
51509         name component (relative to the temporary working directory).  All
51510         callers changed.
51511         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
51512         * lib/mkdir-p.c (make_dir_parents): Likewise.
51513         * lib/mkdir-p.h (make_dir_parents): Likewise.
51514
51515 2006-10-06  Eric Blake  <ebb9@byu.net>
51516
51517         Define several macros for use by the clean-temp module.
51518         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
51519         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
51520         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
51521
51522         * lib/clean-temp.h (close_stream_temp): New declaration.
51523         * lib/clean-temp.c (includes): Pull in headers according to what
51524         other modules are in use.
51525         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
51526
51527 2006-10-06  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
51530         instead of fopen, fwriteerror.
51531
51532 2006-10-06  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
51535         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
51536         int.
51537         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
51538         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
51539         Return an error indicator.
51540         Suggested by Eric Blake.
51541
51542 2006-10-06  Bruno Haible  <bruno@clisp.org>
51543
51544         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
51545         Reported by Eric Blake.
51546
51547 2006-10-06  Bruno Haible  <bruno@clisp.org>
51548
51549         * modules/closeout (Description): Mention stderr too.
51550
51551 2006-10-06  Bruno Haible  <bruno@clisp.org>
51552         and Paul Eggert  <eggert@cs.ucla.edu>
51553
51554         * lib/closeout.c (close_stdout): Also close stderr.
51555         * lib/closeout.h: Update comment.
51556
51557 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
51558
51559         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
51560         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
51561         * lib/dirchownmod.c: Include lchown.h.
51562         * lib/lchown.c: Don't include files that lchown.h now includes.
51563         Don't declare chown, since lchown.h now does that.
51564         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
51565         (lchown): Define to rpl_chown if lchown is declared but
51566         does not exist.  Declare using a prototype if lchown is not
51567         declared.  Add a copyright notice.
51568         * lib/mkstemp.h: Include <unistd.h>.
51569         * lib/openat.c: Include lchown.h.
51570
51571         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
51572         we now test for that separately.
51573         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
51574         rather than O_NOFOLLOW, when testing whether it's possible to
51575         avoid a race condition reliably.
51576         * lib/savewd.c (savewd_chdir): Likewise.
51577
51578         Remove macros that are no longer needed now that stdint.h is
51579         reliable.
51580         * lib/fsusage.c (UINTMAX_MAX): Remove.
51581         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
51582         * lib/utimecmp.c (SIZE_MAX): Remove.
51583
51584         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
51585
51586         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
51587         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
51588         O_NOATIME works.
51589
51590 2006-10-05  Bruno Haible  <bruno@clisp.org>
51591
51592         * lib/gl_list.h (gl_sortedlist_search_from_to,
51593         gl_sortedlist_indexof_from_to): New declarations.
51594         (gl_list_implementation): New fields sortedlist_search_from_to,
51595         sortedlist_indexof_from_to.
51596         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
51597         inline functions.
51598         * lib/gl_list.c (gl_sortedlist_search_from_to,
51599         gl_sortedlist_indexof_from_to): New functions.
51600         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
51601         function.
51602         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
51603         (gl_array_sortedlist_search_from_to): New function.
51604         (gl_array_list_implementation): Update.
51605         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
51606         function.
51607         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
51608         (gl_carray_sortedlist_search_from_to): New function.
51609         (gl_carray_list_implementation): Update.
51610         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
51611         gl_linked_sortedlist_indexof_from_to): New functions.
51612         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51613         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51614         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
51615         gl_tree_sortedlist_indexof_from_to): New functions.
51616         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51617         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51618         Update.
51619         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51620         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
51621         Update.
51622
51623 2006-10-05  Bruno Haible  <bruno@clisp.org>
51624
51625         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
51626         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
51627         (struct gl_list_implementation): Add fields search_from_to,
51628         indexof_from_to. Remove fields search, indexof.
51629         (gl_list_search): Use the search_from_to method.
51630         (gl_list_search_from, gl_list_search_from_to): New functions.
51631         (gl_list_indexof): Use the indexof_from_to method.
51632         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
51633         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
51634         (gl_list_search_from, gl_list_search_from_to): New functions.
51635         (gl_list_indexof): Use the indexof_from_to method.
51636         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
51637         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
51638         gl_array_indexof. Add start_index, end_index arguments.
51639         (gl_array_search_from_to): Renamed from gl_array_search. Add
51640         start_index, end_index arguments.
51641         (gl_array_remove, gl_array_list_implementation): Update.
51642         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
51643         gl_carray_indexof. Add start_index, end_index arguments.
51644         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
51645         start_index, end_index arguments.
51646         (gl_carray_remove, gl_carray_list_implementation): Update.
51647         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
51648         gl_linked_search. Add start_index, end_index arguments.
51649         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
51650         start_index, end_index arguments.
51651         (gl_linked_remove): Update.
51652         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51653         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51654         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
51655         field to 'size_t'.
51656         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
51657         gl_tree_search. Add start_index, end_index arguments.
51658         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
51659         start_index, end_index arguments.
51660         (gl_tree_remove): Update.
51661         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51662         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51663         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
51664         function.
51665         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
51666         gl_tree_search. Add start_index, end_index arguments.
51667         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
51668         start_index, end_index arguments.
51669         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51670         Update.
51671         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51672
51673 2006-10-05  Bruno Haible  <bruno@clisp.org>
51674
51675         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
51676
51677         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
51678         fwriteerror_temp): New declarations.
51679         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
51680         (descriptors): New variable.
51681         (cleanup): First, close the descriptors.
51682         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
51683         fclose_temp, fwriteerror_temp): New functions.
51684
51685 2006-10-04  Jim Meyering  <jim@meyering.net>
51686
51687         * lib/fts.c (fts_open): Tiny comment change.
51688
51689 2006-10-04  Bruno Haible  <bruno@clisp.org>
51690
51691         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
51692         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
51693         gl_LOCK_BODY.
51694         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
51695         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
51696         gl_LOCK_EARLY_BODY.
51697         (gl_LOCK): Require gl_LOCK_BODY.
51698
51699 2006-10-04  Bruno Haible  <bruno@clisp.org>
51700
51701         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
51702         (gl_oset_search_atleast): New declaration.
51703         (struct gl_oset_implementation): Add field 'search_atleast'.
51704         (gl_oset_search_atleast): New inline function.
51705         * lib/gl_oset.c (gl_oset_search_atleast): New function.
51706         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
51707         (gl_array_oset_implementation): Update.
51708         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
51709         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
51710         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
51711
51712 2006-10-04  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
51715
51716 2006-10-03  Bruno Haible  <bruno@clisp.org>
51717
51718         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
51719         from gl_avltreehash_list_implementation.
51720
51721 2006-10-03  Bruno Haible  <bruno@clisp.org>
51722
51723         * lib/gl_oset.c (gl_oset_add): Fix return type.
51724
51725 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
51726
51727         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
51728
51729 2006-10-02  Eric Blake  <ebb9@byu.net>
51730
51731         * modules/strnlen (Depends-on): Add extensions.
51732
51733 2006-10-02  Eric Blake  <ebb9@byu.net>
51734
51735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
51736         definition in 2.60+.
51737
51738 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
51739
51740         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
51741         checks.
51742
51743 2006-10-02  Bruno Haible  <bruno@clisp.org>
51744
51745         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
51746         to the AUTOMAKE_OPTIONS.
51747         Reported by Jim Meyering.
51748
51749 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
51750
51751         Work around bug in Solaris 10 /proc file system:
51752         /proc/self/fd/NNN/.. isn't the parent directory of
51753         the directory whose file descriptor is NNN.  This needs to
51754         be worked around at run time, not compile time, since a
51755         program might be built on Solaris 8, where things work, and
51756         run on Solaris 10.
51757         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
51758         to use the following interface instead:
51759         (OPENAT_BUFFER_SIZE): New macro.
51760         (openat_proc_name): New function.
51761         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
51762         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
51763         Likewise.
51764         * lib/openat-proc.c: New file.
51765         * modules/openat (Files): Add lib/openat-proc.c.
51766         (Depends-on): Add same-inode, stdbool.
51767         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
51768
51769 2006-09-29  Bruno Haible  <bruno@clisp.org>
51770
51771         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
51772         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
51773         argument. Set stdout_closed before testing for ferror, not after.
51774         (fwriteerror, fwriteerror_no_ebadf): New functions.
51775
51776 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51777
51778         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
51779
51780 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
51781
51782         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
51783         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
51784
51785 2006-09-28  Jim Meyering  <jim@meyering.net>
51786
51787         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
51788         Include <unistd.h>.
51789
51790 2006-09-28  Bruno Haible  <bruno@clisp.org>
51791
51792         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
51793         * modules/linkedhash-list (Depends-on): Likewise.
51794         * modules/rbtreehash-list (Depends-on): Likewise.
51795
51796 2006-09-28  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/strndup.h: Simplify the redefinition of strndup.
51799         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
51800         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
51801
51802 2006-09-28  Bruno Haible  <bruno@clisp.org>
51803
51804         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
51805         * lib/gl_linkedhash_list.c: Likewise.
51806         * lib/gl_rbtreehash_list.c: Likewise.
51807
51808 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
51809
51810         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
51811         getaddrinfo.
51812
51813         * lib/__fpending.h: Don't include <stdio_ext.h> unless
51814         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
51815         it causes <stdio_ext.h> to cause a compile-time error.
51816         Problem reported by Nelson H. F. Beebe.
51817         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
51818         of HAVE_DECL___PENDING.
51819
51820         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
51821         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
51822         declaration.
51823
51824 2006-09-27  Jim Meyering  <jim@meyering.net>
51825
51826         This file could end up with a definition for a function
51827         named __strndup, rather than rpl_strndup on a system with
51828         incomplete weak_alias support.
51829         * lib/strndup.c (strndup): Rename from __strndup.
51830         Remove #defines that used to map __strndup to strndup.
51831         Don't use K&R prototypes.
51832         Remove LIBC-related code, since this file is not sync'd with glibc.
51833         * lib/strndup.h: Revamp, accordingly.
51834         * m4/strndup.m4: Modernize.
51835
51836 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
51837
51838         * modules/savewd (Depends-on): Add 'raise'.
51839         * lib/savewd.c: Include <signal.h>, for 'raise'.
51840
51841 2006-09-26  Jim Meyering  <jim@meyering.net>
51842
51843         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
51844         when we detect Darwin 8.7.0's acl_get_file bug.
51845         Rearrange to perform the new (below) run-test while $LIBS
51846         contains any acl-related library.  Set USE_ACL at the end.
51847         (gl_ACL_GET_FILE): New function.
51848
51849 2006-09-26  Eric Blake  <ebb9@byu.net>
51850
51851         * lib/verror.c: Include <config.h> unconditionally.
51852
51853 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
51854
51855         * modules/clock-time (Maintainer): Add self.
51856         * modules/getlogin_r (Depends-on): Add extensions.
51857
51858 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51859
51860         * modules/clock-time: New module.
51861         * modules/nanosleep (Depends-on): Add clock-time.
51862         * modules/gethrxtime (Depends-on): Likewise.
51863         * modules/gettime (Depends-on): Likewise.
51864         * modules/settime (Depends-on): Likewise.
51865
51866         * modules/fts-lgpl: Depend on openat.
51867         * modules/mkancesdirs: Depend on savewd.
51868         * modules/mkdir-p: Likewise.
51869
51870 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51871
51872         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
51873
51874         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
51875         `gl_have_arbitrary_file_name_length_limit' to
51876         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
51877         actually works between configure runs.
51878
51879 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51880             Bruno Haible  <bruno@clisp.org>
51881
51882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
51883
51884 2006-09-25  Jim Meyering  <jim@meyering.net>
51885
51886         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
51887         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
51888
51889 2006-09-25  Eric Blake  <ebb9@byu.net>
51890
51891         * gnulib-tool (func_import, func_create_testdir): Fix typos in
51892         exec's in 2006-09-18 patch when shuffling fds.
51893
51894 2006-09-25  Bruno Haible  <bruno@clisp.org>
51895
51896         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
51897         Reported by Jim Meyering.
51898
51899 2006-09-24  Jim Meyering  <jim@meyering.net>
51900
51901         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
51902         compare a pointer against a literal "0".  That caused failures with
51903         at least HP-UX's hpcc.
51904
51905 2006-09-22  Simon Josefsson  <jas@extundo.com>
51906
51907         * modules/gc-sha1:
51908         * modules/gc-md4:
51909         * modules/gc-hmac-sha1:
51910         * modules/gc-hmac-md5:
51911         * modules/gc-des:
51912         * modules/gc-arcfour: Distribute more files.
51913
51914 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51915
51916         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
51917         (gl_linked_iterator_from_to): Initialize struct completely.
51918         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
51919         (gl_tree_iterator_from_to): Likewise
51920         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
51921         * lib/gl_array_list.c [lint] (gl_array_iterator)
51922         (gl_array_iterator_from_to): Likewise.
51923         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
51924         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
51925         (gl_carray_iterator_from_to): Likewise.
51926
51927         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
51928         * lib/md4.c (md4_process_block): Remove unused variable.
51929         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
51930         parentheses for clarity.
51931
51932 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51933
51934         * modules/bison-i18n (Depends-on): Add gettext.
51935
51936 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51937
51938         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
51939         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
51940         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
51941         also add missing comma that caused broken test.
51942         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
51943         stdlib.h, for `abort'.
51944         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
51945         variables.
51946         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
51947         include unistd.h if present, for `rmdir'.
51948         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
51949         variables.
51950         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
51951         in the process include standard headers for prototypes.
51952         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
51953         gets declared on GNU/Linux.
51954         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
51955         unistd.h, for `rmdir'.
51956         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
51957
51958         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
51959         always true.
51960         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
51961
51962         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
51963
51964 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51965
51966         * gnulib-tool (func_version): Create output all at once.  This
51967         may help avoid triggering unnecessary SIGPIPEs, and at any
51968         rate it doesn't hurt.
51969
51970 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51971             Bruno Haible  <bruno@clisp.org>
51972
51973         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
51974         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51975         * m4/signed.m4 (bh_C_SIGNED): Likewise.
51976
51977         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
51978         (gl_FUNC_VASPRINTF): Invoke it.
51979
51980 2006-09-22  Bruno Haible  <bruno@clisp.org>
51981
51982         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
51983         getloadavg.c as first argument.
51984
51985 2006-09-22  Bruno Haible  <bruno@clisp.org>
51986
51987         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
51988         at the beginning of the gl_INIT macro.
51989         * modules/getloadavg (configure.ac): Pass $gl_source_base to
51990         gl_GETLOADAVG.
51991
51992 2006-09-22  Bruno Haible  <bruno@clisp.org>
51993
51994         * gnulib-tool (func_create_megatestdir): Don't include the config-h
51995         module.
51996         Suggested by Ralf Wildenhues.
51997
51998 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51999
52000         Import this patch from libc:
52001
52002         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52003
52004         * lib/regex_internal.c (re_string_reconstruct): Handle
52005         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52006         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52007         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52008         re_string_context_at.
52009
52010         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52011         now requires it.
52012         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52013         gl_REGEX now does it for us.
52014         (gl_REGEX): Add test taken from
52015         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52016
52017         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52018         Check that large offsets work.  Modernize Autoconf usages.
52019         Prefer "yes" to mean a good thing rather than a bad.
52020         Don't put "#define mkstemp" in config.h, as this might interfere
52021         with standard system headers that "#define mkstemp mkstemp64".
52022
52023         * modules/mkstemp (Depends-on): Add extensions, so that
52024         mkstemp is visible on some platforms.
52025         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52026         (Include): Change to "mkstemp.h" from <stdlib.h>.
52027         (Files): Add mkstemp.h.
52028
52029         * lib/mkstemp.h: New file, since some standard headers
52030         #define mkstemp.
52031         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52032         Include "mkstemp.h".
52033         Make the _LIBC code resemble glibc original more,
52034         e.g., use K&R style.
52035         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52036         (mkstemp): Remove, since mkstemp.h does this for us.
52037         * lib/stdlib--.h: Include mkstemp.h.
52038
52039         Import this patch from libc:
52040
52041         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52042
52043         * lib/tempname.c (__gen_tempname): Change attempts_min
52044         into a macro.  Use preprocessor to decide how to initialize
52045         attempts [Coverity CID 67].
52046
52047 2006-09-20  Bruno Haible  <bruno@clisp.org>
52048
52049         * lib/mkdtemp.c: Import from libc.
52050         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52051                 * sysdeps/posix/tempname.c (__gen_tempname): Change
52052                 attempts_min into a macro.  Use preprocessor to decide how to
52053                 initialize attempts [Coverity CID 67].
52054         2001-11-27  Paul Eggert  <eggert@twinsun.com>
52055                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
52056                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
52057
52058 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52059
52060         * gnulib-tool (func_exit): New function, to allow to pass the
52061         exit status portably through the trap.  Use everywhere.
52062         (--help, --version): Signal a write error.
52063         (trap): catch SIGPIPE, for write errors.
52064         Exit at the end of the trap, with the correct exit status.
52065
52066 2006-09-19  Karl Berry  <karl@gnu.org>
52067
52068         * doc/gnulib.texi: note about the license texinfo files.
52069
52070 2006-09-19  Eric Blake  <ebb9@byu.net>
52071
52072         * gnulib-tool: Avoid space-tab.
52073
52074 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52075
52076         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
52077         that prevented coreutils 6.1 from building.  Problem reported
52078         by Petter Reinholdtsen.
52079
52080 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52081
52082         * gnulib-tool (avoidlist): Fix typo that broke options like
52083         --avoid=lock that are used by coreutils bootstrap.
52084
52085 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
52086
52087         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
52088         more systematically.
52089
52090 2006-09-18  Jim Meyering  <jim@meyering.net>
52091
52092         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
52093
52094 2006-09-18  Bruno Haible  <bruno@clisp.org>
52095
52096         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
52097
52098 2006-09-18  Bruno Haible  <bruno@clisp.org>
52099
52100         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
52101         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
52102         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
52103         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
52104         * m4/gettext.m4: Require autoconf >= 2.52.
52105         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
52106         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
52107         of gl_cv_header_inttypes_h.
52108
52109 2006-09-18  Bruno Haible  <bruno@clisp.org>
52110
52111         * lib/javaversion.c: Include configmake.h.
52112
52113 2006-09-18  Bruno Haible  <bruno@clisp.org>
52114
52115         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
52116         avoid that the while loops be executed in a subshell.
52117
52118 2006-09-18  Bruno Haible  <bruno@clisp.org>
52119
52120         * MODULES.html.sh (func_module): Break long lines.
52121         Suggested by Bruce Korb <bkorb@gnu.org>.
52122
52123 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52124
52125         Speed up by a factor of 1.12.
52126         * gnulib-tool (nl): New variable.
52127         (func_import): Rewrite include directive extraction to only read each
52128         directive once.
52129
52130 2006-09-17  Bruno Haible  <bruno@clisp.org>
52131
52132         * modules/javaversion (Makefile.am): Remove DEFS setting.
52133         (Depends-on): Add configmake, for PKGDATADIR definition.
52134
52135 2006-09-17  Bruno Haible  <bruno@clisp.org>
52136
52137         * gnulib-tool (func_create_testdir): Rewrite all files at once.
52138
52139 2006-09-17  Bruno Haible  <bruno@clisp.org>
52140
52141         * gnulib-tool (func_append): New function, stolen from libtool.m4.
52142         (func_modules_transitive_closure, func_modules_add_dummy,
52143         func_modules_to_filelist, func_import, func_create_testdir,
52144         func_create_megatestdir, ...): Use it wherever possible.
52145         Suggested by Ralf Wildenhues.
52146
52147 2006-09-16  Karl Berry  <karl@gnu.org>
52148
52149         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
52150         to avoid sectioning errors.
52151         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
52152         [ifinfo]: blank line after @center-ed titles.
52153         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
52154         Spell FSF address consistently with others.
52155         (These changes approved by rms.)
52156
52157 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52158
52159         Speed up by a factor of 1.61.
52160         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
52161         already checked module names again.
52162
52163 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52164
52165         Speed up by a factor of 1.13.
52166         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
52167         for new_files, and the input to func_add_or_update.
52168
52169 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52170
52171         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
52172         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
52173
52174 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52175
52176         * modules/mkancesdirs (Depends-on): Add fcntl.
52177         * modules/savewd: New file.
52178         * MODULES.html.sh (File system functions): Add savewd.
52179
52180         * modules/configmake (Makefile.am): Add support for the
52181         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
52182
52183 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52184
52185         * m4/savewd.m4: New file.
52186
52187 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52188
52189         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
52190         (dirchownmod): New arg FD.  All callers changed.
52191         Use FD rather than opening the directory ourself, as opening is
52192         now the caller's responsibility.
52193         * lib/dirchownmod.h: Likewise.
52194         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
52195         hosts that require <sys/types.h> before <sys/stat.h>.  Include
52196         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
52197         (test_dir): Remove.
52198         (mkancesdirs): Return length of prefix of FILE that has already
52199         been made, or -2 if there is a child doing the work.  Redo
52200         algorithm so that it is O(N) rather than O(N**2).  Optimize away
52201         ".", and treat ".." specially since it might stray back into
52202         already-created areas.  Use a subprocess if necessary.  New arg
52203         WD; all users changed.  MAKE_DIR function should now return 1
52204         if it creates a directory that is not readable.  Return -2 if
52205         a child process is spun off.
52206         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
52207         Adjust signature to match code.
52208         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
52209         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
52210         all users changed.
52211         * lib/savewd.c, lib/savewd.h: New files.
52212
52213 2006-09-15  Jim Meyering  <jim@meyering.net>
52214
52215         * modules/rename-dest-slash: New module.
52216         * MODULES.html.sh (posix_compat): Add it here.
52217
52218         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
52219
52220 2006-09-15  Jim Meyering  <jim@meyering.net>
52221
52222         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
52223         file.
52224
52225         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
52226
52227 2006-09-15  Jim Meyering  <jim@meyering.net>
52228
52229         * lib/rename-dest-slash.c (has_trailing_slash): Use
52230         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
52231         (rpl_rename_dest_slash): Perform the cheaper trailing slash
52232         test before testing whether SRC is a directory.
52233         Suggestions from Bruno Haible.
52234
52235         Avoid a warning about an unused variable.
52236         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
52237         into the #ifdef block where it's used.
52238
52239         * lib/rename-dest-slash.c: New file.
52240
52241 2006-09-14  Bruno Haible  <bruno@clisp.org>
52242
52243         * lib/allocsa.c: Include <config.h> unconditionally.
52244         * lib/asnprintf.c: Likewise.
52245         * lib/asprintf.c: Likewise.
52246         * lib/c-strcasecmp.c: Likewise.
52247         * lib/c-strcasestr.c: Likewise.
52248         * lib/c-strncasecmp.c: Likewise.
52249         * lib/c-strstr.c: Likewise.
52250         * lib/classpath.c: Likewise.
52251         * lib/clean-temp.c: Likewise.
52252         * lib/concatpath.c: Likewise.
52253         * lib/copy-file.c: Likewise.
52254         * lib/csharpcomp.c: Likewise.
52255         * lib/csharpexec.c: Likewise.
52256         * lib/execute.c: Likewise.
52257         * lib/fatal-signal.c: Likewise.
52258         * lib/findprog.c: Likewise.
52259         * lib/fwriteerror.c: Likewise.
52260         * lib/gl_array_list.c: Likewise.
52261         * lib/gl_array_oset.c: Likewise.
52262         * lib/gl_avltree_list.c: Likewise.
52263         * lib/gl_avltree_oset.c: Likewise.
52264         * lib/gl_avltreehash_list.c: Likewise.
52265         * lib/gl_carray_list.c: Likewise.
52266         * lib/gl_linked_list.c: Likewise.
52267         * lib/gl_linkedhash_list.c: Likewise.
52268         * lib/gl_list.c: Likewise.
52269         * lib/gl_oset.c: Likewise.
52270         * lib/gl_rbtree_list.c: Likewise.
52271         * lib/gl_rbtree_oset.c: Likewise.
52272         * lib/gl_rbtreehash_list.c: Likewise.
52273         * lib/imaxabs.c: Likewise.
52274         * lib/imaxdiv.c: Likewise.
52275         * lib/javacomp.c: Likewise.
52276         * lib/javaexec.c: Likewise.
52277         * lib/javaversion.c: Likewise.
52278         * lib/linebreak.c: Likewise.
52279         * lib/localcharset.c: Likewise.
52280         * lib/lock.c: Likewise.
52281         * lib/mbchar.c: Likewise.
52282         * lib/mbswidth.c: Likewise.
52283         * lib/mkdtemp.c: Likewise.
52284         * lib/pipe.c: Likewise.
52285         * lib/printf-args.c: Likewise.
52286         * lib/printf-parse.c: Likewise.
52287         * lib/progname.c: Likewise.
52288         * lib/progreloc.c: Likewise.
52289         * lib/readlink.c: Likewise.
52290         * lib/sh-quote.c: Likewise.
52291         * lib/stpcpy.c: Likewise.
52292         * lib/stpncpy.c: Likewise.
52293         * lib/strcasecmp.c: Likewise.
52294         * lib/strcasestr.c: Likewise.
52295         * lib/strcspn.c: Likewise.
52296         * lib/striconv.c: Likewise.
52297         * lib/strncasecmp.c: Likewise.
52298         * lib/strnlen1.c: Likewise.
52299         * lib/strstr.c: Likewise.
52300         * lib/strtok_r.c: Likewise.
52301         * lib/tls.c: Likewise.
52302         * lib/tmpdir.c: Likewise.
52303         * lib/unicodeio.c: Likewise.
52304         * lib/unsetenv.c: Likewise.
52305         * lib/vasnprintf.c: Likewise.
52306         * lib/vasprintf.c: Likewise.
52307         * lib/wait-process.c: Likewise.
52308         * lib/xallocsa.c: Likewise.
52309         * lib/xsetenv.c: Likewise.
52310         * lib/xstriconv.c: Likewise.
52311
52312 2006-09-13  Simon Josefsson  <jas@extundo.com>
52313
52314         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
52315         that internally, suggested by Ralf Wildenhues
52316         <Ralf.Wildenhues@gmx.de>.
52317
52318 2006-09-13  Simon Josefsson  <jas@extundo.com>
52319
52320         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
52321         @LIBOBJS@.
52322         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52323
52324 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52325
52326         * lib/_fpending.c: Include <config.h> unconditionally, since we no
52327         longer worry about uses that don't define HAVE_CONFIG_H.
52328         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
52329         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
52330         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
52331         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
52332         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
52333         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
52334         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
52335         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
52336         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
52337         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
52338         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
52339         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
52340         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
52341         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
52342         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
52343         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
52344         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
52345         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
52346         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
52347         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
52348         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
52349         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
52350         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
52351         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
52352         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
52353         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
52354         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
52355         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
52356         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
52357         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
52358         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
52359         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
52360         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
52361         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
52362         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
52363         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
52364         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
52365         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
52366         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
52367         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
52368         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
52369         Likewise.
52370
52371 2006-09-13  Eric Blake  <ebb9@byu.net>
52372
52373         * lib/getopt.c: Fix typo in last commit.
52374
52375 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52376
52377         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
52378         dgettext.
52379
52380 2006-09-12  Jim Meyering  <jim@meyering.net>
52381
52382         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
52383         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
52384         Reported by Nelson H. F. Beebe.
52385
52386 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52387
52388         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
52389         program_invocation_name and program_invocation_short_name are
52390         initialized.
52391         * lib/argp-namefrob.h: Move declarations of program_invocation_name
52392         and program_invocation_short_name to argp.h, so they are visible
52393         to user programs.
52394         * lib/argp.h: Likewise
52395
52396 2006-09-10  Bruno Haible  <bruno@clisp.org>
52397
52398         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52399         m4/inttypes_h.m4, m4/uintmax_t.m4.
52400
52401 2006-09-10  Bruno Haible  <bruno@clisp.org>
52402
52403         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
52404         gl_AC_TYPE_UINTMAX_T.
52405
52406 2006-09-10  Bruno Haible  <bruno@clisp.org>
52407
52408         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
52409
52410 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52411
52412         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
52413         convention.  Text proposed by Bruno Haible.
52414         (struct argp_option): Document the use of N_() wrappers.
52415
52416         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
52417         '\v', and translate the two parts separately, instead of feeding
52418         the whole string to gettext.  This allows to exclude
52419         '\v' from the strings visible to the translator by writing doc
52420         strings as N_("..") "\v" N_("..").
52421
52422 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
52423
52424         * config/srclist.txt: Undo latest change; the bug was fixed.
52425
52426 2006-09-09  Bruno Haible  <bruno@clisp.org>
52427
52428         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
52429         assignments if building a library without libtool.
52430         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
52431         in func_emit_lib_Makefile_am.
52432         (func_import): When building a static library libfoo.a, arrange to
52433         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
52434         (func_create_testdir): Likewise.
52435         * modules/gc (configure.ac, Makefile.am): If building statically,
52436         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
52437         * modules/iconvme (configure.ac, Makefile.am): Likewise.
52438         * modules/striconv (configure.ac, Makefile.am): Likewise.
52439         Based on a suggestion by Ralf Wildenhues.
52440
52441 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52442
52443         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52444         Check for unistd.h too, since Autoconf doesn't assume POSIX.
52445         Also:
52446
52447         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52448         Add year_2050_test to catch glibc bug 2821
52449         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52450
52451         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52452         Prefer #ifdef to #if.
52453
52454         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
52455         Return from 'main' instead of calling 'exit'.
52456
52457 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52458
52459         * lib/mktime.c (guess_time_tm): Fix bug where mktime
52460         returned the maximum time_t value rather than (time_t) -1.
52461         Problem originally reported by William Bardwell
52462         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52463
52464         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52465         Moved to here ...
52466         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52467         ... from here.
52468
52469 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52470
52471         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
52472         2821 is fixed.
52473
52474 2006-09-08  Jim Meyering  <jim@meyering.net>
52475
52476         Don't make generated files read-only.  That would bother too many
52477         people.  However, do retain the ability to work when targets are
52478         read-only: remove the destination and temporary files before writing
52479         them (when generated via sed or echo), or by using the -f option for
52480         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
52481         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52482         * modules/byteswap, modules/configmake, modules/fcntl:
52483         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52484         * modules/localcharset, modules/netinet_in, modules/poll:
52485         * modules/stdbool, modules/stdint, modules/sys_select:
52486         * modules/sys_socket, modules/sys_stat, modules/sysexits:
52487
52488 2006-09-08  Jim Meyering  <jim@meyering.net>
52489
52490         Avoid new build failure on FreeBSD 6.0.
52491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
52492         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
52493         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
52494
52495 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52496
52497         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
52498
52499 2006-09-07  Jim Meyering  <jim@meyering.net>
52500
52501         Fix global typo in last change: use chmod u-w, not chmod u-x.
52502         Spotted by Paul Eggert and Bruce Korb.
52503         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52504         * modules/byteswap, modules/configmake, modules/fcntl:
52505         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52506         * modules/localcharset, modules/netinet_in, modules/poll:
52507         * modules/stdbool, modules/stdint, modules/sys_select:
52508         * modules/sys_socket, modules/sys_stat, modules/sysexits:
52509
52510 2006-09-06  Jim Meyering  <jim@meyering.net>
52511
52512         Make generated files be read-only.
52513         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
52514         Ensure that each generated file is now read-only.
52515         * modules/argz: Likewise.
52516         * modules/arpa_inet: Likewise.
52517         * modules/byteswap: Likewise.
52518         * modules/configmake: Likewise.
52519         * modules/fcntl: Likewise.
52520         * modules/fnmatch: Likewise.
52521         * modules/getopt: Likewise.
52522         * modules/glob: Likewise.
52523         * modules/inttypes: Likewise.
52524         * modules/netinet_in: Likewise.
52525         * modules/poll: Likewise.
52526         * modules/stdbool: Likewise.
52527         * modules/stdint: Likewise.
52528         * modules/sys_select: Likewise.
52529         * modules/sys_socket: Likewise.
52530         * modules/sys_stat: Likewise.
52531         * modules/sysexits: Likewise.
52532         * modules/localcharset: Same as above, but continue using temporary
52533         file named "t-$@" (why different?) rather than the "$@-t" used
52534         everywhere else.
52535
52536         * modules/sysexits (Makefile.am): Replace literal occurrences
52537         of "sysexit.h" more readable, and more consistent, "$@".
52538
52539 2006-09-06  Bruno Haible  <bruno@clisp.org>
52540
52541         * modules/striconv: New file.
52542         * modules/xstriconv: New file.
52543         * MODULES.html.sh (Internationalization functions): Add striconv,
52544         xstriconv.
52545
52546 2006-09-06  Bruno Haible  <bruno@clisp.org>
52547
52548         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
52549         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
52550         not using libtool correctly.
52551
52552 2006-09-06  Bruno Haible  <bruno@clisp.org>
52553
52554         * lib/striconv.h: New file.
52555         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
52556         iconvstring.c.
52557         * lib/xstriconv.h: New file.
52558         * lib/xstriconv.c: New file.
52559
52560 2006-09-06  Bruno Haible  <bruno@clisp.org>
52561
52562         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52563         lib_..._LDFLAGS.
52564
52565 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52566
52567         * lib/argz_.h: Sync from Libtool.
52568
52569         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
52570                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52571
52572         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
52573
52574 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
52575
52576         * modules/trim: New file.
52577
52578 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
52579
52580         * lib/trim.h: New file.
52581         * lib/trim.c: New file.
52582
52583 2006-09-05  Bruno Haible  <bruno@clisp.org>
52584
52585         * MODULES.html.sh (String handling): Add trim.
52586
52587 2006-09-04  Karl Berry  <karl@gnu.org>
52588
52589         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
52590         until next release.
52591
52592 2006-09-03  Bruno Haible  <bruno@clisp.org>
52593
52594         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
52595         correctly.
52596
52597 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52598
52599         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
52600         not gl_GETLOADAVG.  Omit unneeded semicolons.
52601         Problems reported by Ralf Wildenhues in
52602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
52603         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
52604         at the end, which is the usual gnulib style.
52605
52606         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
52607         of doing all the work ourselves.
52608         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
52609         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
52610
52611 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52612
52613         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
52614         Problem reported by Ralf Wildenhues in
52615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
52616
52617         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
52618         HAVE_STRUCT_STATFS_F_FSTYPENAME.
52619
52620 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52621
52622         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
52623         yesterday's patch by changing test -n to test -z.
52624
52625 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52626
52627         * modules/getloadavg (Files): Add m4/getloadavg.m4.
52628         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
52629         the former is now obsolescent.
52630
52631         * modules/chdir-long (Depends-on): Add fcntl.
52632
52633 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52634
52635         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
52636         obsolescent, and programs should use gnulib instead.
52637         * m4/getloadavg.m4: New file, with contents taken from Autoconf
52638         but with prefixes changed.
52639
52640 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52641
52642         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
52643         or stdbool.h, because they might not exist while configuring.
52644
52645         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
52646         Don't include unistd.h or limits.h; not needed, since chdir-long.h
52647         does that for us.
52648         (O_DIRECTORY): Remove.
52649
52650 2006-08-31  Eric Blake  <ebb9@byu.net>
52651
52652         * gnulib-tool: Don't let emacs change spaces to TAB.
52653
52654 2006-08-31  Bruno Haible  <bruno@clisp.org>
52655
52656         * gnulib-tool: When calling func_import more than once, do it in a
52657         subshell.
52658         Reported by Eric Blake <ebb9@byu.net>.
52659
52660 2006-08-31  Bruno Haible  <bruno@clisp.org>
52661
52662         * gnulib-tool (nl): Remove variable.
52663         (sed_transform_lib_file): Use more robust test for config-h module.
52664         (func_import): Fix typo in 2006-08-25 patch.
52665
52666 2006-08-31  Bruno Haible  <bruno@clisp.org>
52667
52668         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
52669         specified, augment Makefile.am variables instead of assigning them.
52670
52671 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52672
52673         Work around a bug in both the Linux and SunOS 64-bit kernels:
52674         nanosleep mishandles sleeps for longer than 2**31 seconds.
52675         Problem reported by Frank v Waveren in
52676         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
52677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
52678         Check for nanosleep bug.
52679         (LIB_NANOSLEEP): Append clock_gettime library if needed.
52680
52681 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52682
52683         Work around a bug in both the Linux and SunOS 64-bit kernels:
52684         nanosleep mishandles sleeps for longer than 2**31 seconds.
52685         Problem reported by Frank v Waveren in
52686         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
52687         * lib/nanosleep.c (BILLION): New constant.
52688         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
52689         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
52690         implementation.
52691
52692 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52693
52694         * modules/nanosleep (Depends-on): Add gettime.
52695
52696 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52697         and Simon Josefsson  <jas@extundo.com>
52698         and Oskar Liljeblad  <oskar@osk.mine.nu>
52699
52700         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
52701         * gnulib-tool (func_import): New license type 'unmodifiable license
52702         text'.
52703         * modules/fdl: Use it.  Longer description.
52704         * module/gpl, module/lgpl: New files.
52705
52706 2006-08-30  Jim Meyering  <jim@meyering.net>
52707
52708         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
52709         shadowing the parameter.
52710
52711 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52712
52713         Sync from Libtool:
52714
52715         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52716
52717         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
52718         sharing with gnulib.  Report by Eric Blake.
52719
52720 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52721
52722         * modules/isapipe: New file.
52723         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
52724
52725 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52726
52727         * modules/configmake (Makefile.am): Add a comment, and omit
52728         the CONFIGMAKE_ prefix from generated macro names.  Suggested
52729         by Bruno Haible.
52730
52731 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52732
52733         * m4/isapipe.m4: New file.
52734
52735 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52736
52737         * lib/isapipe.c, lib/isapipe.h: New files.
52738
52739 2006-08-29  Jim Meyering  <jim@meyering.net>
52740
52741         * modules/configmake (Makefile.am): Make configmake.h depend on
52742         Makefile.  Otherwise, a stale configmake.h could hang around.
52743
52744 2006-08-29  Eric Blake  <ebb9@byu.net>
52745
52746         * lib/error.c (error_at_line, print_errno_message): Match libc, after
52747         resolution of upstream bug 3044.
52748
52749 2006-08-29  Bruno Haible  <bruno@clisp.org>
52750
52751         * modules/localcharset (Depends-on): Add configmake.
52752         (Makefile.am): Remove setting of LIBDIR through DEFS.
52753
52754 2006-08-29  Bruno Haible  <bruno@clisp.org>
52755
52756         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
52757         defined.
52758
52759 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52760
52761         * modules/fcntl: New file.
52762         * modules/chdir-safer (Depends-on): Add fcntl.
52763         * modules/fts: Likewise.
52764         * modules/mkdir-p: Likewise.
52765
52766         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
52767         This undoes the most recent change, since we're now addressing the
52768         problem in a different way.
52769
52770         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
52771         into output, since the output might be called Makefile.am even
52772         if $makefile_name is something different.
52773         (func_import): Use $makefile_am rather than
52774         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
52775         empty.
52776
52777         * modules/inttypes (Files): Add m4/inttypes-h.m4.
52778
52779 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52780
52781         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
52782         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
52783         recent change to stdint.m4, since we're now addressing the problem in a
52784         different way.
52785
52786 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52787
52788         * m4/fcntl_h.m4: New file.
52789
52790 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         * lib/fcntl_.h: New file.
52793         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
52794         the fcntl module.
52795         * lib/dirchownmod.c: Likewise.
52796         * lib/fts.c: Likewise.
52797
52798         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
52799         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
52800         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
52801         just before including <inttypes.h>, to avoid circular inclusion.
52802
52803 2006-08-28  Jim Meyering  <jim@meyering.net>
52804
52805         * doc/visibility.texi: Actually read and correct the grammar of the
52806         sentence affected by yesterday's change.
52807
52808 2006-08-28  Eric Blake  <ebb9@byu.net>
52809
52810         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
52811         needs wrapper.
52812
52813 2006-08-28  Eric Blake  <ebb9@byu.net>
52814
52815         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
52816
52817 2006-08-28  Eric Blake  <ebb9@byu.net>
52818
52819         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
52820
52821 2006-08-28  Bruno Haible  <bruno@clisp.org>
52822
52823         * modules/c-strstr: New file, from GNU gettext.
52824         * MODULES.html.sh (String handling): Add c-strstr.
52825
52826 2006-08-28  Bruno Haible  <bruno@clisp.org>
52827
52828         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
52829         macros.
52830         Reported by Eric Blake.
52831
52832 2006-08-28  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
52835         (VASNPRINTF): Return a string of length > INT_MAX without failing.
52836         * lib/vasprintf.c: Include errno.h, limits.h.
52837         (EOVERFLOW): New fallback definition.
52838         (vasprintf): Test here whether the string length is > INT_MAX.
52839         * lib/vsnprintf.c: Include errno.h, limits.h.
52840         (EOVERFLOW): New fallback definition.
52841         (vsnprintf): Fix bug when generated string was too long for the buffer.
52842         Test here whether the string length is > INT_MAX.
52843
52844 2006-08-28  Bruno Haible  <bruno@clisp.org>
52845
52846         * lib/inttypes_.h (SCNX*): Remove definitions.
52847         Reported by Eric Blake.
52848
52849 2006-08-28  Bruno Haible  <bruno@clisp.org>
52850
52851         * lib/c-strstr.h: New file, from GNU gettext.
52852         * lib/c-strstr.c: New file, from GNU gettext.
52853
52854 2006-08-28  Bruno Haible  <bruno@clisp.org>
52855
52856         * gnulib-tool: Reorder some statements.
52857
52858 2006-08-28  Bruno Haible  <bruno@clisp.org>
52859
52860         * gnulib-tool: New option --makefile-name.
52861         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
52862         $makefile_name.
52863         (func_import): Write $makefile_name to the cache file, and read it from
52864         there unless explicitly specified. Use $makefile_name as file name
52865         instead of Makefile.am. Adjust the recommendations accordingly.
52866
52867 2006-08-28  Bruno Haible  <bruno@clisp.org>
52868
52869         * gnulib-tool (func_verify_module): Check against misapplying patch.
52870
52871 2006-08-28  Bruno Haible  <bruno@clisp.org>
52872
52873         * gnulib-tool (func_relativize, func_relconcat): New functions.
52874         Give an error if --local-dir is given with --update.
52875         Remove trailing slashes from $local_gnulib_dir.
52876         (func_import): Store the relativized $local_gnulib_dir in
52877         gnulib-cache.m4, and read it from there if not specified explicitly.
52878
52879 2006-08-28  Bruno Haible  <bruno@clisp.org>
52880
52881         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
52882         is the current directory. Respect also $local_gnulib_dir.
52883
52884 2006-08-28  Bruno Haible  <bruno@clisp.org>
52885             Simon Josefsson  <jas@extundo.com>
52886
52887         BeOS portability.
52888         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
52889
52890 2006-08-27  Jim Meyering  <jim@meyering.net>
52891
52892         * doc/visibility.texi: Remove duplicate word: "pointer".
52893
52894 2006-08-26  Bruno Haible  <bruno@clisp.org>
52895
52896         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
52897         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
52898         (Makefile.am): Create inttypes.h from inttypes_.h.
52899         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
52900
52901         * modules/imaxabs: New file.
52902
52903         * modules/imaxdiv: New file.
52904
52905 2006-08-26  Bruno Haible  <bruno@clisp.org>
52906
52907         * m4/inttypes.m4: New file.
52908         * m4/_inttypes_h.m4: Remove file.
52909         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
52910         PRI_MACROS_BROKEN.
52911         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
52912
52913         * m4/imaxabs.m4: New file.
52914
52915         * m4/imaxdiv.m4: New file.
52916
52917 2006-08-26  Bruno Haible  <bruno@clisp.org>
52918
52919         * lib/inttypes_.h: New file.
52920         * lib/inttypes.h: Remove file.
52921         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
52922
52923         * lib/imaxabs.c: New file.
52924
52925         * lib/imaxdiv.c: New file.
52926
52927 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         New config-h module, so that "make" output needn't be cluttered
52930         by -DHAVE_CONFIG_H.
52931         * MODULES.html.sh (Support for building libraries and executables):
52932         Add config-h.
52933         * modules/config-h: New file.
52934         * gnulib-tool (nl, sed_transform_lib_file): New vars.
52935         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
52936         the config-h module is used.
52937
52938         New configmake module, so that "make" output needn't be cluttered
52939         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
52940         * MODULES.html.sh (Support for building libraries and executables):
52941         Add configmake.
52942         * modules/configmake: New file.
52943
52944 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52945
52946         * m4/config-h.m4: New file.
52947
52948 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         * config/srclist.txt: Add elisp-comp.
52951
52952 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52953
52954         * MODULES.html.sh (Support for building libraries and executables):
52955         Add elisp-comp.
52956         * build-aux/elisp-comp: New file.
52957         * modules/elisp-comp: New file.
52958
52959 2006-08-24  Bruno Haible  <bruno@clisp.org>
52960
52961         * gnulib-tool (func_create_testdir): Use non-default values of
52962         sourcebase and m4base.
52963
52964 2006-08-24  Bruno Haible  <bruno@clisp.org>
52965
52966         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
52967         HTML structure.
52968
52969 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52970
52971         * modules/openat (Depends-on): Add lchown.
52972
52973 2006-08-23  Bruno Haible  <bruno@clisp.org>
52974
52975         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
52976         of gl_LOCK_EARLY instead of gl_LOCK.
52977
52978 2006-08-23  Bruno Haible  <bruno@clisp.org>
52979
52980         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
52981         on OSF/1 to no.
52982         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
52983
52984 2006-08-23  Bruno Haible  <bruno@clisp.org>
52985
52986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
52987         as unusable.
52988
52989         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
52990         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
52991         (gl_LOCK): New macro.
52992
52993 2006-08-22  Simon Josefsson  <jas@extundo.com>
52994
52995         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
52996         to md5 module.
52997
52998 2006-08-22  Simon Josefsson  <jas@extundo.com>
52999
53000         * MODULES.html.sh: Add "Support for maintaining and release
53001         projects".
53002
53003         * build-aux/gnupload: New file, from coreutils.
53004
53005 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53006
53007         Avoid the need for AC_LIBSOURCES in m4 macros.
53008         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53009         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53010         * modules/check-version (EXTRA_DIST): Add check-version.h.
53011         * modules/crc (EXTRA_DIST): Add crc.h.
53012         * modules/des (EXTRA_DIST): Add des.h.
53013         * modules/gc (EXTRA_DIST): Add gc.h.
53014         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53015         * modules/getline (EXTRA_DIST): Add getline.h.
53016         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53017         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53018         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53019         * modules/md2 (EXTRA_DIST): Add md2.h.
53020         * modules/md4 (EXTRA_DIST): Add md4.h.
53021         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53022         * modules/read-file (EXTRA_DIST): Add read-file.h.
53023         * modules/readline (EXTRA_DIST): Add readline.h.
53024         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53025         rijndael-api-fst.h.
53026
53027 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53028
53029         * m4/rijndael.m4 (gl_ARCFOUR):
53030         * m4/arctwo.m4 (gl_ARCTWO):
53031         * m4/check-version.m4 (gl_CHECK_VERSION):
53032         * m4/crc.m4 (gl_CRC):
53033         * m4/des.m4 (gl_DES):
53034         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53035         * m4/gc.m4 (gl_GC):
53036         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53037         * m4/getline.m4 (gl_FUNC_GETLINE):
53038         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53039         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53040         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53041         * m4/md2.m4 (gl_MD2):
53042         * m4/md4.m4 (gl_MD4):
53043         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53044         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53045         * m4/readline.m4 (gl_FUNC_READLINE):
53046         * m4/rijndael.m4 (gl_RIJNDAEL):
53047         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53048         to get the necessary .h files and whatnot.
53049
53050 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53051
53052         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
53053         gnulib rather than the other way around.
53054         * config/srclistvars.sh (COREUTILS): Remove.
53055
53056 2006-08-22  Jim Meyering  <jim@meyering.net>
53057
53058         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
53059
53060         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
53061
53062 2006-08-22  Eric Blake  <ebb9@byu.net>
53063
53064         * modules/regexprops-generic: New file.
53065         * MODULES.html.sh (Support for building documentation): List it.
53066
53067 2006-08-22  Eric Blake  <ebb9@byu.net>
53068
53069         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
53070         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53071         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
53072         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
53073
53074 2006-08-22  Bruno Haible  <bruno@clisp.org>
53075
53076         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
53077         and lib_LTLIBRARIES like the other lib_* variables.
53078
53079 2006-08-22  Bruno Haible  <bruno@clisp.org>
53080
53081         * build-aux/x-to-1.in: New file, from GNU gettext.
53082
53083 2006-08-22  Bruno Haible  <bruno@clisp.org>
53084
53085         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
53086         <utmpx.h> exists.
53087
53088 2006-08-22  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
53091         <utmpx.h> exists.
53092
53093 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53094
53095         BeOS portability.
53096         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
53097         exist.
53098         Problem reported by Bruno Haible.
53099
53100 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53101
53102         Avoid the need for AC_LIBSOURCES in m4 macros.
53103         * modules/acl (EXTRA_DIST): Add acl.h.
53104         * modules/argmatch (Files): Add m4/argmatch.m4.
53105         (configure.ac): Add gl_ARGMATCH.
53106         (EXTRA_DIST): Renamed from lib_SOURCES, for
53107         consistency with the other modules.  Remove argmatch.c.
53108         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
53109         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
53110         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
53111         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
53112         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
53113         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
53114         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
53115         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
53116         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
53117         * modules/closeout (EXTRA_DIST): Add closeout.h.
53118         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
53119         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
53120         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
53121         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
53122         dirname.h; remove basename.c and stripslash.c.
53123         * modules/exclude (EXTRA_DIST): Add exclude.h.
53124         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
53125         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
53126         * modules/file-type (EXTRA_DIST): Add file-type.h.
53127         * modules/filemode (EXTRA_DIST): Add filemode.h.
53128         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
53129         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53130         * modules/fpending (EXTRA_DIST): Add __fpending.h.
53131         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
53132         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
53133         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
53134         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
53135         * modules/getdate (EXTRA_DIST): Add getdate.c.
53136         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
53137         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
53138         * modules/getpass (EXTRA_DIST): Add getpass.h.
53139         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
53140         * modules/group-member (EXTRA_DIST): Add group-member.h.
53141         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
53142         * modules/hash (EXTRA_DIST): Add hash.h.
53143         * modules/human (EXTRA_DIST): Add human.h.
53144         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
53145         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
53146         * modules/lchown (EXTRA_DIST): Add lchown.h.
53147         * modules/long-options (EXTRA_DIST): Add long-options.h.
53148         * modules/lstat (EXTRA_DIST): Add lstat.h.
53149         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
53150         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
53151         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
53152         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
53153         * modules/memxor (EXTRA_DIST): Add memxor.h.
53154         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
53155         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
53156         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
53157         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
53158         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
53159         * modules/physmem (EXTRA_DIST): Add physmem.h.
53160         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
53161         * modules/posixver (EXTRA_DIST): Add posixver.h.
53162         * modules/quote (EXTRA_DIST): Add quote.h.
53163         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
53164         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
53165         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
53166         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
53167         regex_internal.h regexec.c.
53168         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
53169         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
53170         * modules/same (EXTRA_DIST): Add same.h.
53171         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
53172         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
53173         * modules/savedir (EXTRA_DIST): Add savedir.h.
53174         * modules/sha1 (EXTRA_DIST): Add sha1.h.
53175         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
53176         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
53177         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
53178         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
53179         * modules/strdup (EXTRA_DIST): Add strdup.h.
53180         * modules/strftime (EXTRA_DIST): Add strftime.h.
53181         * modules/strndup (EXTRA_DIST): Add strndup.h.
53182         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
53183         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
53184         * modules/time_r (EXTRA_DIST): Add time_r.h.
53185         * modules/timespec (EXTRA_DIST): Add timespec.h.
53186         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53187         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
53188         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
53189         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
53190         * modules/userspec (EXTRA_DIST): Add userspec.h.
53191         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
53192         * modules/utimens (EXTRA_DIST): Add utimens.h.
53193         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
53194         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
53195         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
53196         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
53197         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
53198         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
53199         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
53200         * modules/yesno (EXTRA_DIST): Add yesno.h.
53201
53202 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53203
53204         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
53205
53206         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
53207         * m4/dev-ino.m4, same-inode.m4: Remove.
53208
53209         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
53210         * m4/acl.m4 (AC_FUNC_ACL):
53211         * m4/backupfile.m4 (gl_BACKUPFILE):
53212         * m4/c-strtod.m4 (gl_C99_STRTOLD):
53213         * m4/canon-host.m4 (gl_CANON_HOST):
53214         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53215         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
53216         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
53217         * m4/cloexec.m4 (gl_CLOEXEC):
53218         * m4/close-stream.m4 (gl_CLOSE_STREAM):
53219         * m4/closeout.m4 (gl_CLOSEOUT):
53220         * m4/dirfd.m4 (gl_FUNC_DIRFD):
53221         * m4/dirname.m4 (gl_DIRNAME):
53222         * m4/exclude.m4 (gl_EXCLUDE):
53223         * m4/exitfail.m4 (gl_EXITFAIL):
53224         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
53225         * m4/file-type.m4 (gl_FILE_TYPE):
53226         * m4/filemode.m4 (gl_FILEMODE):
53227         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
53228         * m4/fpending.m4 (gl_FUNC_FPENDING):
53229         * m4/fprintftime.m4 (gl_FPRINTFTIME):
53230         * m4/fts.m4 (gl_FUNC_FTS):
53231         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
53232         * m4/getdate.m4 (gl_GETDATE):
53233         * m4/gethrxtime.m4 (gl_GETHRXTIME):
53234         * m4/getpagesize.m4 (gl_GETPAGESIZE):
53235         * m4/getpass.m4 (gl_FUNC_GETPASS):
53236         * m4/gettime.m4 (gl_GETTIME):
53237         * m4/getugroups.m4 (gl_GETUGROUPS):
53238         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
53239         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
53240         * m4/hard-locale.m4 (gl_HARD_LOCALE):
53241         * m4/hash.m4 (gl_HASH):
53242         * m4/idcache.m4 (gl_IDCACHE):
53243         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
53244         * m4/lchown.m4 (gl_FUNC_LCHOWN):
53245         * m4/long-options.m4 (gl_LONG_OPTIONS):
53246         * m4/lstat.m4 (gl_FUNC_LSTAT):
53247         * m4/md5.m4 (gl_MD5):
53248         * m4/memcasecmp.m4 (gl_MEMCASECMP):
53249         * m4/memcoll.m4 (gl_MEMCOLL):
53250         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
53251         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
53252         * m4/memxor.m4 (gl_MEMXOR):
53253         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
53254         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
53255         * m4/modechange.m4 (gl_MODECHANGE):
53256         * m4/mountlist.m4 (gl_MOUNTLIST):
53257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53258         * m4/openat.m4 (gl_FUNC_OPENAT):
53259         * m4/pathmax.m4 (gl_PATHMAX):
53260         * m4/physmem.m4 (gl_PHYSMEM):
53261         * m4/posixtm.m4 (gl_POSIXTM):
53262         * m4/posixver.m4 (gl_POSIXVER):
53263         * m4/quote.m4 (gl_QUOTE):
53264         * m4/quotearg.m4 (gl_QUOTEARG):
53265         * m4/readtokens.m4 (gl_READTOKENS):
53266         * m4/readutmp.m4 (gl_READUTMP):
53267         * m4/regex.m4 (gl_REGEX):
53268         * m4/safe-read.m4 (gl_SAFE_READ):
53269         * m4/safe-write.m4 (gl_SAFE_WRITE):
53270         * m4/same.m4 (gl_SAME):
53271         * m4/save-cwd.m4 (gl_SAVE_CWD):
53272         * m4/savedir.m4 (gl_SAVEDIR):
53273         * m4/settime.m4 (gl_SETTIME):
53274         * m4/sha1.m4 (gl_SHA1):
53275         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
53276         * m4/stat-macros.m4 (gl_STAT_MACROS):
53277         * m4/stat-time.m4 (gl_STAT_TIME):
53278         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
53279         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
53280         * m4/strdup.m4 (gl_FUNC_STRDUP):
53281         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
53282         * m4/strndup.m4 (gl_FUNC_STRNDUP):
53283         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
53284         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
53285         * m4/time_r.m4 (gl_TIME_R):
53286         * m4/timespec.m4 (gl_TIMESPEC):
53287         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
53288         * m4/unlinkdir.m4 (gl_UNLINKDIR):
53289         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
53290         * m4/userspec.m4 (gl_USERSPEC):
53291         * m4/utimecmp.m4 (gl_UTIMECMP):
53292         * m4/utimens.m4 (gl_UTIMENS):
53293         * m4/xalloc.m4 (gl_XALLOC):
53294         * m4/xgetcwd.m4 (gl_XGETCWD):
53295         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
53296         * m4/xreadlink.m4 (gl_XREADLINK):
53297         * m4/xstrtod.m4 (gl_XSTRTOD):
53298         * m4/yesno.m4 (gl_YESNO):
53299         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53300         to get the necessary .h files and whatnot.
53301
53302 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
53303             Bruno Haible  <bruno@clisp.org>
53304
53305         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
53306         /bin/sh understanding of '!' conditional negation.
53307
53308 2006-08-21  Jim Meyering  <jim@meyering.net>
53309
53310         * modules/openat (Depends-on): Really alphabetize.
53311
53312         * modules/acl (Depends-on): Add error and quote.
53313
53314         * check-module (find_included_lib_files): Add at-func.c to the
53315         ok-to-include-more-than-once white list.
53316
53317         * modules/openat (Depends-on): Add lstat.  Alphabetize.
53318
53319 2006-08-21  Bruno Haible  <bruno@clisp.org>
53320
53321         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53322         Emit a pkgdata_DATA variable only if some snippets add contents to it.
53323         Reported by Martin Lambers <marlam@marlam.de>.
53324
53325 2006-08-21  Bruno Haible  <bruno@clisp.org>
53326
53327         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
53328         specify an installation location, don't emit a noinst_LIBRARIES or
53329         noinst_LTLIBRARIES assignment.
53330
53331 2006-08-21  Bruno Haible  <bruno@clisp.org>
53332
53333         BeOS portability.
53334         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
53335         BeOS has mbrtowc() but no <wctype.h>.
53336
53337 2006-08-21  Bruno Haible  <bruno@clisp.org>
53338
53339         BeOS portability.
53340         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
53341         exist.
53342
53343 2006-08-21  Bruno Haible  <bruno@clisp.org>
53344
53345         BeOS portability.
53346         * lib/mbchar.h: Include <wctype.h> only if it exists.
53347
53348 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53349
53350         Remove files that are no longer needed by their respective modules.
53351         * m4/obstack.m4: Remove.
53352         * m4/strerror_r.m4: Remove.
53353         * m4/uint32_t.m4: Remove.
53354         * m4/uintptr_t.m4: Remove.
53355         * m4/ullong_max.m4: Remove.
53356         * m4/xstrtoimax.m4: Remove.
53357         * m4/xstrtoumax.m4: Remove.
53358
53359         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
53360         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
53361         dependencies now capture this.
53362
53363         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
53364         Do not use AC_LIBSOURCES, since gnulib modules now do this.
53365         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
53366         * m4/human.m4 (gl_HUMAN): Likewise.
53367         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
53368         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
53369
53370         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
53371
53372         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
53373         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
53374         stdint.
53375         * m4/human.m4 (gl_HUMAN): Likewise.
53376         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
53377         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
53378         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53379         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53380         * m4/xstrtol (gl_XSTRTOL): Likewise.
53381
53382         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
53383         AC_TYPE_LONG_LONG_INT.
53384         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53385         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
53386         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
53387         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53388
53389         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
53390         on stdbool.
53391
53392         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
53393         (gl_PREREQ_XSTRTOUL): Remove.
53394
53395         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
53396
53397         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
53398         mode.
53399
53400 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53401
53402         Add and change modules to make it easier for coreutils to use
53403         gnulib-tool.
53404         * modules/backupfile (Files): Remove m4/d-ino.m4.
53405         (Depends-on): Add d-ino.
53406         * modules/cycle-check (Depends-on): Add stdint.
53407         (lib_SOURCES): Add cycle-check.h.
53408         * modules/d-ino: New module.
53409         * modules/d-type: New module.
53410         * modules/error (Files): Remove m4/strerror_r.m4.
53411         * modules/filemode (Files): Add m4/st_dm_mode.m4.
53412         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53413         m4/inttypes_h.m4, m4/uintmax_t.m4.
53414         (Depends-on): Add stdint.
53415         (lib_SOURCES): Add fsusage.h.
53416         * modules/getcwd (Files): Remove d-ino.m4.
53417         (Depends-on): Add d-ino.
53418         * modules/getndelim2 (Depends-on): Add stdint.
53419         * modules/glob (Files): Remove m4/d-type.m4.
53420         (Depends-on): Add d-type.
53421         * modules/host-os: New module.
53422         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
53423         m4/inttypes_h.m4, m4/uintmax_t.m4.
53424         * Depends-on: Add stdint.
53425         (lib_SOURCES): Add human.h.
53426         * modules/inttostr (Files): Remove m4/intmax_t.m4,
53427         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
53428         m4/uintmax_t.m4, m4/ulonglong.m4.
53429         (Depends-on): Add stdint.
53430         (EXTRA_DIST): Add inttostr.h.
53431         * modules/lchmod: New module.
53432         * modules/link-follow: New module.
53433         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
53434         (Depends-on): Add lchmod.
53435         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
53436         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
53437         (Depends-on): Add stdint.
53438         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
53439         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
53440         (Depends-on): Add stdint.
53441         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
53442         * modules/perl: New module.
53443         * modules/regex (Depends-on): Add stdint.
53444         * modules/rmdir-errno: New module.
53445         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53446         m4/intmax_t.m4.
53447         (Depends-on): Add stdint.
53448         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53449         m4/uintmax_t.m4.
53450         (Depends-on): Add stdint.
53451         * modules/unlink-busy: New module.
53452         * modules/utimecmp (Depends-on): Add stdint.
53453         * modules/uptime: New module.
53454         * modules/winsz-ioctl: New module.
53455         * modules/winsz-termios: New module.
53456         * modules/xnanosleep (Depends-on): Add nanosleep.
53457         * modules/ullong_max: Remove.
53458         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
53459         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
53460         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
53461         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
53462         (Depends-on): Add inttypes.
53463         (lib_SOURCES): Add xstrtol.h.
53464         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
53465         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
53466         * MODULES.html.sh: Move 'assert' into the assert section.
53467         Move 'dummy' into the linking section.
53468         Remove ullong_max.
53469         Add section for compatibility checks for POSIX:2001 functions,
53470         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
53471         winsz-ioctl, and winsz-termios into it.
53472         Add lchmod.
53473         Add top-level Misc section and put host-os, perl, and uptime
53474         into it.
53475
53476 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53477
53478         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
53479         now assume the stdint module.  Do not include inttypes.h.
53480         * lib/fsusage.h: Likewise.
53481         * lib/getndelim2.c: Likewise.
53482         * lib/human.h: Likewise.
53483         * lib/inttostr.h: Likewise.
53484         * lib/obstack.c: Likewise.
53485         * lib/regex_internal.h: Likewise.
53486         * lib/tempname.c: Likewise.
53487         * lib/utimecmp.c: Likewise.
53488         * lib/xstrtol.h: Likewise.
53489
53490         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
53491
53492         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
53493         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
53494         * lib/xtime.h: Likewise.
53495
53496 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53497
53498         * modules/openat (Files): Add lib/fchmodat.c.
53499         Fixes problem reported by Jay Youngman.
53500
53501 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53502
53503         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
53504         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
53505
53506 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
53507             Bruno Haible  <bruno@clisp.org>
53508
53509         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
53510         and is a script that invokes bison. Tighten the code. Add comments.
53511
53512 2006-08-18  Jim Meyering  <jim@meyering.net>
53513
53514         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
53515         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
53516         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
53517         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
53518
53519 2006-08-18  Bruno Haible  <bruno@clisp.org>
53520
53521         * modules/bison-i18n: New file.
53522         * MODULES.html.sh (Internationalization functions): Add it.
53523
53524 2006-08-18  Bruno Haible  <bruno@clisp.org>
53525
53526         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
53527         sys/statvfs.h. When getmntinfo was found, check its declaration and
53528         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
53529
53530 2006-08-18  Bruno Haible  <bruno@clisp.org>
53531
53532         * m4/bison-i18n.m4: New file, from bison.
53533
53534 2006-08-18  Bruno Haible  <bruno@clisp.org>
53535
53536         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
53537         (ME_DUMMY): Treat "kernfs" as a dummy.
53538         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
53539
53540 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53541
53542         Update from coreutils.
53543
53544         2006-08-15  Jim Meyering  <jim@meyering.net>
53545
53546         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
53547
53548         2006-01-17  Jim Meyering  <jim@meyering.net>
53549
53550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
53551
53552         2006-01-11  Jim Meyering  <jim@meyering.net>
53553
53554         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
53555         Check for the lchmod function.
53556
53557 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53558
53559         Update from coreutils.
53560
53561         * lib/__fpending.h: Add copyright notice.
53562         * lib/fprintftime.h: Likewise.
53563         * lib/savedir.c: Use (C) in copyright notice.
53564         * lib/savedir.h: Likewise.
53565
53566         2006-08-15  Jim Meyering  <jim@meyering.net>
53567
53568         * lib/at-func.c: New file, with the logic of all emulated at-functions.
53569         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
53570         in support of the EXPECTED_ERRNO macro.
53571         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
53572         definitions.  Instead, define the appropriate symbols and include
53573         "at-func.c".
53574         * lib/mkdirat.c (mkdirat): Likewise.
53575         * lib/fchmodat.c (fchmodat): Likewise.
53576         (ENOSYS): Remove definition.
53577         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
53578         it.  Don't include "unistd--.h" -- it wasn't ever used.
53579
53580         2006-01-17  Jim Meyering  <jim@meyering.net>
53581
53582         Rewrite fts.c not to change the current working directory,
53583         by using openat, fstatat, fdopendir, etc..
53584
53585         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
53586         (HAVE_OPENAT_SUPPORT): Define.
53587         [_LIBC] (fchdir): Don't undef or define; no longer used.
53588         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
53589         Now, this `function' always succeeds, and consumes its file descriptor
53590         parameter -- so callers must not close such FDs.  Update callers.
53591         (diropen_fd, opendirat, cwd_advance_fd): New functions.
53592         (diropen): Add parameter, SP.  Adjust all callers.
53593         Implement using diropen_fd, rather than open.
53594         (fts_open): Initialize new member, fts_cwd_fd.
53595         Remove fts_rft-setting code.
53596         (fts_close): Close fts_cwd_fd, if necessary.
53597         (__opendir2): Define in terms of opendir or opendirat,
53598         depending on whether the FST_NOCHDIR flag is set.
53599         (fts_build): Since fts_safe_changedir consumes its FD, and since
53600         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
53601         and close the dup'd file descriptor upon failure.
53602         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
53603         (fts_safe_changedir): Tweak semantics to reflect that this function
53604         now calls cwd_advance_fd and hence consumes its FD argument.
53605         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
53606         [struct FTS] (fts_rft): Remove now-unused member.
53607         [struct FTS] (fts_cycle.state): Improve comment.
53608
53609         * lib/openat.c (openat_needs_fchdir): New function.
53610         * lib/openat.h (openat_needs_fchdir): Declare it.
53611
53612 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
53613
53614         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
53615         Problem and fix reported by Pádraig Brady in
53616         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
53617
53618 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53619
53620         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
53621
53622 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53623
53624         * lib/memcoll.c (memcoll): Optimize for the common case where the
53625         arguments are bytewise equal.
53626
53627 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53628
53629         * doc/regexprops-generic.texi: Add a copyright notice.
53630
53631 2006-08-15  Bruno Haible  <bruno@clisp.org>
53632
53633         * modules/tmpdir (License): Change to LGPL.
53634
53635 2006-08-15  Bruno Haible  <bruno@clisp.org>
53636
53637         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
53638         module.
53639
53640 2006-08-14  Simon Josefsson  <jas@extundo.com>
53641
53642         * config/srclist.txt: Add gnupload.
53643
53644 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53645
53646         Change copyright notice from LGPL 2 to GPL 2, since that's the
53647         standard form used in the gnulib repository.
53648         * tests/test-lock.c: Likewise.
53649         * tests/test-stdint.c: Likewise.
53650         * tests/test-tls.c: Likewise.
53651
53652         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
53653         prelude-manager.  User shorter URLs for GNU projects, without '?'.
53654         Add copyright notice.
53655
53656         * check-module: Add copyright notice.  Output a copyright
53657         notice if "--version" is specified.
53658         * modules/COPYING: New file.
53659         * tests/test-getaddrinfo.c: Add copyright notice.
53660         * tests/test-verify.c: Likewise.
53661
53662 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         Change copyright notice from LGPL 2 to GPL 2, since that's the
53665         standard form used in the gnulib repository.
53666         * lib/lock.c: LGPL -> GPL.
53667         * lib/lock.h: Likewise.
53668         * lib/strnlen1.c: Likewise.
53669         * lib/strnlen1.h: Likewise.
53670         * lib/tls.c: Likewise.
53671         * lib/tls.h: Likewise.
53672         * lib/tmpdir.c: Likewise.
53673
53674         * lib/TODO: Remove; this belongs only in coreutils.
53675
53676 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         Add copyright notices to long-enough files that lack them, since
53679         otherwise the files aren't clearly free.  Use the same notice that
53680         getdate.texi already uses.
53681         * doc/alloca-opt.texi: Add copyright notice.
53682         * doc/alloca.texi: Likewise.
53683         * doc/ctime.texi: Likewise.
53684         * doc/functions.texi: Likewise.
53685         * doc/gcd.texi: Likewise.
53686         * doc/gnulib-tool.texi: Likewise.
53687         * doc/inet_ntoa.texi: Likewise.
53688         * doc/visibility.texi: Likewise.
53689
53690         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
53691         * doc/quote.texi: Add copyright notice.
53692
53693         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
53694         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
53695         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
53696         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
53697         is now obsolete, and give a pointer to the Sun list.
53698         Add copyright notice.
53699
53700 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53701
53702         * config/srclistvars.sh: Add copyright notice.
53703
53704 2006-08-14  Eric Blake  <ebb9@byu.net>
53705
53706         Import the following change from libc:
53707
53708         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
53709
53710         Upstream bug 2997.
53711         * lib/misc/error.c: Add space between program name and message if file
53712         name is missing.
53713
53714 2006-08-12  Karl Berry  <karl@gnu.org>
53715
53716         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
53717         remove, these originate in gnulib now.
53718
53719 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53720
53721         * doc/Makefile (standards.info standards.html standards.dvi):
53722         Also depend on make-stds.texi.
53723
53724 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
53727         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
53728
53729         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
53730         in wchar_t.  Problem reported by Eric Blake.
53731
53732         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
53733         LEN is smaller than SIZE.  Suggested by Bruno Haible.
53734         Also, help the compiler to keep LEN in a register.
53735
53736 2006-08-11  Eric Blake  <ebb9@byu.net>
53737
53738         * users.txt: Sort.  Add tar.
53739
53740 2006-08-11  Bruno Haible  <bruno@clisp.org>
53741
53742         * users.txt: New file.
53743
53744 2006-08-11  Bruno Haible  <bruno@clisp.org>
53745
53746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
53747         before <wchar.h>. Needed for OSF/1 and BSD/OS.
53748
53749 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53750
53751         * modules/snprintf (Depends-on): Remove minmax.
53752         (Maintainer): Add self and Bruno.
53753
53754 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         * lib/.cppi-disable: Add snprintf.h, socket_.h.
53757         * lib/snprintf.c: Include <errno.h> and <limits.h>.
53758         (EOVERFLOW): Define if the system does not.
53759         Do not include "minmax.h"; it wasn't used.
53760         (snprintf): Don't assume size_t promotes to an unsigned type.
53761         Fix bug when generated string was too long for the buffer: the
53762         buffer's contents are supposed to be the initial prefix of the
53763         output.  Don't assume vasnprintf returns EOVERFLOW if the size
53764         exceeds INT_MAX; do the check ourselves.
53765
53766         Import the following changes from libc:
53767
53768         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
53769
53770         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
53771         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
53772         set wc to the byte which couldn't be converted.
53773         (re_string_reconstruct): Don't clear valid_raw_len before calling
53774         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
53775         tip_context using re_string_context_at.
53776
53777         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
53778
53779         * lib/posix/regex.h: g++ still cannot handled [restrict].
53780
53781         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
53782
53783         * lib/posix/regex.h: Remove special handling for VMS.
53784
53785 2006-08-10  Jim Meyering  <jim@meyering.net>
53786
53787         * modules/same-inode: New module.
53788         * modules/dev-ino: New module.
53789         * modules/cycle-check: Depend on these modules, rather than simply
53790         including their .h files.
53791         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
53792         required via m4/cycle-check.m4.
53793         * modules/same: Depend on new same-inode module, rather than
53794         including same-inode.h.
53795         * modules/chdir-safer: New file.
53796
53797         * modules/chown (Depends-on): Add stat-macros.
53798
53799 2006-08-10  Jim Meyering  <jim@meyering.net>
53800
53801         * m4/cycle-check.m4: New file.
53802         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
53803         * m4/dev-ino.m4, m4/same-inode.m4: New files.
53804
53805 2006-08-10  Eric Blake  <ebb9@byu.net>
53806
53807         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
53808         in from original proposal.
53809
53810 2006-08-10  Eric Blake  <ebb9@byu.net>
53811         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53812
53813         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
53814         namespace.
53815
53816 2006-08-10  Bruno Haible  <bruno@clisp.org>
53817
53818         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
53819         as well.
53820
53821 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53822
53823         Sync from coreutils.
53824
53825         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
53826
53827         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
53828         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
53829
53830 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53831
53832         * modules/restrict: Remove; no longer needed now that we assume
53833         Autoconf 2.59 or later.
53834         * MODULES.html.sh: Remove 'restrict'.
53835         * modules/argp (Depends-on): Remove 'restrict'.
53836         * modules/base64 (Depends-on): Likewise.
53837         * modules/gc (Depends-on): Likewise.
53838         * modules/getaddrinfo (Depends-on): Likewise.
53839         * modules/glob (Depends-on): Likewise.
53840         * modules/inet_ntop (Depends-on): Likewise.
53841         * modules/inet_pton (Depends-on): Likewise.
53842         * modules/memxor (Depends-on): Likewise.
53843         * modules/regex (Depends-on): Likewise.
53844         * modules/strtok_r (Depends-on): Likewise.
53845         * modules/time_r (Depends-on): Likewise.
53846
53847 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53848
53849         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
53850         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
53851         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53852         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
53853         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
53854         * m4/memxor.m4 (gl_MEMXOR): Likewise.
53855         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
53856         gl_C_RESTRICT replaced by AC_C_RESTRICT.
53857
53858         Merge from coreutils.
53859         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
53860         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
53861         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53862         * m4/time_r.m4 (gl_TIME_R): Likewise.
53863
53864 2006-08-09  Karl Berry  <karl@gnu.org>
53865
53866         * config/srclist.txt: no more gettext-tools, per Bruno.
53867
53868 2006-08-08  Eric Blake  <ebb9@byu.net>
53869
53870         * modules/verror: New module.
53871         * MODULES.html.sh: Document it.
53872
53873 2006-08-08  Eric Blake  <ebb9@byu.net>
53874
53875         * lib/verror.h, lib/verror.c: New files.
53876
53877 2006-08-08  Eric Blake  <ebb9@byu.net>
53878
53879         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
53880         verror_at_line output complies with GNU Coding Standards even when
53881         file is NULL.
53882
53883 2006-08-07  Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
53886         versions of AIX.
53887         Reported by Ralf Wildenhues.
53888
53889 2006-08-07  Bruno Haible  <bruno@clisp.org>
53890
53891         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
53892         in an AC_DEFUN. Needed so that the autoconf snippets can use
53893         AC_REQUIRE.
53894
53895 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53896
53897         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53898         Initialize pkgdata_DATA.
53899         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
53900         overriding it.
53901
53902 2006-08-06  Eric Blake  <ebb9@byu.net>
53903
53904         * lib/error.h: Fold in some upstream changes from glibc.
53905         * lib/error.c: Likewise.
53906
53907 2006-08-04  Bruno Haible  <bruno@clisp.org>
53908
53909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53910         Make the mostlyclean-local rule depend on mostlyclean-generic.
53911         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
53912
53913 2006-07-31  Bruno Haible  <bruno@clisp.org>
53914
53915         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
53916         <stdlib.h>, <string.h>.
53917
53918 2006-07-30  Bruno Haible  <bruno@clisp.org>
53919
53920         * modules/readlink (License): Change to LGPL.
53921
53922 2006-07-30  Bruno Haible  <bruno@clisp.org>
53923
53924         * modules/javaversion (Makefile.am): Distribute javaversion.java and
53925         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
53926         set PKGDATADIR to point to it.
53927
53928 2006-07-30  Bruno Haible  <bruno@clisp.org>
53929
53930         * modules/csharpexec (configure.ac): Comment out macro invocation.
53931         * modules/javaexec (configure.ac): Likewise.
53932         * modules/javacomp-script (configure.ac): Likewise.
53933
53934         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
53935
53936 2006-07-30  Bruno Haible  <bruno@clisp.org>
53937
53938         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
53939         linked-list.
53940
53941 2006-07-30  Bruno Haible  <bruno@clisp.org>
53942
53943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
53944
53945 2006-07-30  Bruno Haible  <bruno@clisp.org>
53946
53947         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53948         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
53949         get removed.
53950
53951 2006-07-29  Bruno Haible  <bruno@clisp.org>
53952
53953         Make it possible for gnulib-tool to work with locally modified or
53954         augmented gnulib repositories.
53955         * gnulib-tool (func_usage): Document --local-dir option.
53956         (local_gnulib_dir): New variable.
53957         Handle --local-dir option.
53958         (func_lookup_file): New function.
53959         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
53960         (func_get_description, func_get_filelist, func_get_description,
53961         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
53962         func_get_automake_snippet, func_get_include_directive,
53963         func_get_license, func_get_maintainer): Use func_lookup_file.
53964         (func_import, func_create_testdir): Use func_lookup_file.
53965
53966 2006-07-29  Bruno Haible  <bruno@clisp.org>
53967
53968         * modules/setenv (Depends-on): Add unistd.
53969
53970 2006-07-29  Bruno Haible  <bruno@clisp.org>
53971
53972         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
53973
53974 2006-07-29  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
53977
53978 2006-07-29  Bruno Haible  <bruno@clisp.org>
53979
53980         * gnulib-tool (import, update): If there is no Makefile.am, look at
53981         aclocal.m4, instead of bailing out.
53982
53983 2006-07-29  Bruno Haible  <bruno@clisp.org>
53984
53985         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
53986         Categorize the options by when they are useful.
53987
53988 2006-07-29  Bruno Haible  <bruno@clisp.org>
53989
53990         * gnulib-tool (func_usage): Document option --no-libtool.
53991         Handle option --no-libtool.
53992         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
53993         for changed semantics of $libtool variable.
53994         (func_import): Likewise. If libtool is not used, show this through
53995         an option --no-libtool.
53996         (func_create_testdir): Update.
53997
53998 2006-07-29  Bruno Haible  <bruno@clisp.org>
53999
54000         * gnulib-tool (func_import): Extend error message about missing
54001         --doc-base.
54002
54003 2006-07-29  Bruno Haible  <bruno@clisp.org>
54004
54005         * gnulib-tool (func_import): Don't create the $docbase directory if
54006         there is no file to store there.
54007
54008 2006-07-29  Bruno Haible  <bruno@clisp.org>
54009
54010         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54011         relevant, look for configure.ac there, not in the current directory.
54012         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54013
54014 2006-07-29  Bruno Haible  <bruno@clisp.org>
54015
54016         * gnulib-tool (SORT): New variable.
54017         (func_usage): Undocument --assume-autoconf option.
54018         Remove --assume-autoconf option handling.
54019         (autoconf_minversion): Determine from the contents of configure.ac.
54020         (func_import): Remove autoconf_minversion handling.
54021         Suggested by Eric Blake.
54022
54023 2006-07-29  Bruno Haible  <bruno@clisp.org>
54024
54025         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54026
54027 2006-07-29  Bruno Haible  <bruno@clisp.org>
54028
54029         * config/srclist.txt (*setenv.[ch]): Remove rules.
54030
54031 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54032
54033         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54034
54035 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54036
54037         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54038         arpa/inet.h.
54039
54040 2006-07-28  Simon Josefsson  <jas@extundo.com>
54041
54042         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54043         * modules/inet_pton (Depends-on): Likewise.
54044
54045 2006-07-28  Simon Josefsson  <jas@extundo.com>
54046
54047         * m4/netinet_in_h.m4: New file.
54048
54049 2006-07-28  Simon Josefsson  <jas@extundo.com>
54050
54051         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
54052         #include's.
54053
54054 2006-07-28  Simon Josefsson  <jas@extundo.com>
54055
54056         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
54057         #include's.
54058
54059 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
54060
54061         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
54062         setgid on directories only if they set these bits.
54063         * lib/modechange.h: Remove obsolete comment about masks.
54064
54065 2006-07-28  Eric Blake  <ebb9@byu.net>
54066
54067         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
54068         macro expansion.
54069
54070 2006-07-28  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
54073
54074 2006-07-28  Bruno Haible  <bruno@clisp.org>
54075
54076         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
54077
54078 2006-07-28  Bruno Haible  <bruno@clisp.org>
54079
54080         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54081         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54082         Define fallbacks.
54083         Avoids link error on FreeBSD 4.x.
54084         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54085
54086         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
54087         encoding.
54088         * lib/mbswidth.c (iswcntrl): Likewise.
54089
54090 2006-07-27  Bruno Haible  <bruno@clisp.org>
54091
54092         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
54093         test.
54094
54095 2006-07-27  Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
54098         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
54099         defined.
54100
54101 2006-07-26  Eric Blake  <ebb9@byu.net>
54102
54103         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
54104
54105 2006-07-26  Eric Blake  <ebb9@byu.net>
54106
54107         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
54108         like mingw that lack mkstemp.
54109         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
54110         avoid compilation warning on mingw.
54111
54112 2006-07-26  Bruno Haible  <bruno@clisp.org>
54113
54114         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
54115         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
54116         INT_FAST*_MIN, INTPTR_MIN.
54117
54118 2006-07-25  Bruno Haible  <bruno@clisp.org>
54119
54120         * modules/version-etc (Depends-on): Add stdarg.
54121
54122 2006-07-25  Bruno Haible  <bruno@clisp.org>
54123
54124         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
54125         complex commands.
54126
54127 2006-07-25  Bruno Haible  <bruno@clisp.org>
54128
54129         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
54130         defined in <stdarg.h> or config.h.
54131
54132 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54133
54134         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
54135         (gl_STDIO_SAFER): Remove.
54136
54137 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54138
54139         * MODULES.html.sh (File stream based Input/Output):
54140         Add fopen-safer, tmpfile-safer; remove stdio-safer.
54141         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
54142         * modules/fopen-safer, modules/tmpfile-safer: New files.
54143         * modules/stdio-safer: Remove.
54144
54145 2006-07-24  Bruno Haible  <bruno@clisp.org>
54146
54147         * modules/tmpdir: New file.
54148         * MODULES.html.sh (File system functions): Add it.
54149
54150 2006-07-24  Bruno Haible  <bruno@clisp.org>
54151
54152         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
54153         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
54154
54155 2006-07-24  Bruno Haible  <bruno@clisp.org>
54156
54157         * modules/clean-temp: New file.
54158
54159 2006-07-24  Bruno Haible  <bruno@clisp.org>
54160
54161         * m4/tmpdir.m4: New file, from GNU gettext.
54162
54163 2006-07-24  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/tmpdir.h: New file, from GNU gettext.
54166         * lib/tmpdir.c: New file, from GNU gettext.
54167
54168 2006-07-24  Bruno Haible  <bruno@clisp.org>
54169
54170         * lib/clean-temp.h: New file, from GNU gettext.
54171         * lib/clean-temp.c: New file, from GNU gettext.
54172
54173 2006-07-23  Eric Blake  <ebb9@byu.net>
54174
54175         * modules/stdio-safer (Files): Add tmpfile-safer.c.
54176         (Depends-on): Add binary-io.
54177
54178 2006-07-23  Eric Blake  <ebb9@byu.net>
54179
54180         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
54181
54182 2006-07-23  Eric Blake  <ebb9@byu.net>
54183
54184         * lib/tmpfile-safer.c: New file.
54185         * lib/stdio-safer.h (fopen_safer): Add prototype.
54186         * lib/stdio--.h (tmpfile): Make safer.
54187
54188 2006-07-23  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
54191         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
54192         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
54193         gl_linked_remove_at): Use it.
54194
54195 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54196         and Simon Josefsson <jas@extundo.com>
54197
54198         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
54199
54200         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
54201
54202 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54203
54204         * modules/close-stream: New file.
54205         * modules/closeout (Description): Make it clear that it exits
54206         with a diagnostic on error.
54207         (Depends-on): Add close-stream.  Remove fpending, stdbool.
54208         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
54209
54210 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54211
54212         * m4/close-stream.m4: New file.
54213
54214 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54215
54216         * lib/close-stream.c, lib/close-stream.h: New files.
54217
54218 2006-07-22  Bruno Haible  <bruno@clisp.org>
54219
54220         Merge from GNU gettext 0.15.
54221
54222         2006-05-01  Bruno Haible  <bruno@clisp.org>
54223
54224                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
54225
54226         2006-07-22  Bruno Haible  <bruno@clisp.org>
54227
54228                 * modules/javaversion: New file.
54229                 * MODULES.html.sh (Java): Add javaversion.
54230
54231         2006-03-12  Bruno Haible  <bruno@clisp.org>
54232
54233                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
54234
54235         2005-12-04  Bruno Haible  <bruno@clisp.org>
54236
54237                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
54238                 (untested).
54239
54240         2006-06-21  Bruno Haible  <bruno@clisp.org>
54241
54242                 Avoid warnings from recent versions of mcs.
54243                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
54244                 -o, -L, -r any more. Use options documented since mcs-1.0
54245                 instead. Similarly for -g.
54246
54247         2005-12-04  Bruno Haible  <bruno@clisp.org>
54248
54249                 * build-aux/csharpcomp.sh.in: Suffix for resources is
54250                 .resources, not .resource.
54251
54252         2005-07-09  Bruno Haible  <bruno@clisp.org>
54253
54254                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
54255                 add a .dll suffix.
54256                 Reported by Mark Junker <mjscod@gmx.de>.
54257
54258         2006-07-22  Bruno Haible  <bruno@clisp.org>
54259
54260                 * modules/gettext: Upgrade to gettext-0.15.
54261                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
54262                 m4/visibility.m4.
54263                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
54264
54265 2006-07-22  Bruno Haible  <bruno@clisp.org>
54266
54267         Merge from GNU gettext 0.15.
54268
54269         2006-03-25  Bruno Haible  <bruno@clisp.org>
54270
54271                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
54272
54273         2006-07-21  Bruno Haible  <bruno@clisp.org>
54274
54275                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
54276                 "1.1".
54277
54278         2006-05-09  Bruno Haible  <bruno@clisp.org>
54279
54280                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
54281                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
54282                 for the conftestver execution.
54283
54284         2006-05-01  Bruno Haible  <bruno@clisp.org>
54285
54286                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
54287                 optional target-version argument. Verify that the compiler
54288                 groks source of the specified source-version, or add -source
54289                 option as necessary. Verify that the compiler produces
54290                 bytecode in the specified target-version, or add -target and
54291                 -source options as necessary. Make the result of the test
54292                 available as variable CONF_JAVAC. Also log error output in
54293                 config.log.
54294
54295         2006-03-11  Bruno Haible  <bruno@clisp.org>
54296
54297                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
54298
54299         2006-05-09  Bruno Haible  <bruno@clisp.org>
54300
54301                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
54302                 CLASSPATH_SEPARATOR to a semicolon.
54303
54304         2006-03-12  Bruno Haible  <bruno@clisp.org>
54305
54306                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
54307                 available as variable CONF_JAVA, for subsequent autoconf
54308                 tests. Also log error output in config.log.
54309
54310         2006-07-19  Bruno Haible  <bruno@clisp.org>
54311
54312                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
54313                 that getline works on glibc2 systems. Needed to avoid trouble
54314                 in relocatable.c.
54315                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
54316
54317         2005-12-04  Bruno Haible  <bruno@clisp.org>
54318
54319                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
54320                 launcher (untested).
54321
54322         2005-12-04  Bruno Haible  <bruno@clisp.org>
54323
54324                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
54325
54326         2006-07-22  Bruno Haible  <bruno@clisp.org>
54327
54328                 * gettext.m4: Update from GNU gettext-0.15.
54329                 * nls.m4: Likewise.
54330                 * po.m4: Likewise.
54331                 * inttypes-pri.m4: Likewise.
54332                 * inttypes-h.m4: Renamed from inttypes.m4.
54333                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
54334
54335 2006-07-22  Bruno Haible  <bruno@clisp.org>
54336
54337         Merge from GNU gettext 0.15.
54338
54339         2005-07-05  Bruno Haible  <bruno@clisp.org>
54340
54341                 * printf-args.c (printf_fetchargs): Work around broken
54342                 definition of wint_t on mingw.
54343
54344         2005-02-12  Bruno Haible  <bruno@clisp.org>
54345
54346                 * xallocsa.h: Add extern "C" for C++.
54347
54348         2006-05-17  Bruno Haible  <bruno@clisp.org>
54349
54350                 Cygwin portability.
54351                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
54352
54353         2006-04-30  Bruno Haible  <bruno@clisp.org>
54354
54355                 * progreloc.c: Include <mach-o/dyld.h> if available.
54356                 (find_executable): Use _NSGetExecutablePath when possible.
54357
54358         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54359
54360                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
54361                 function.
54362
54363         2005-12-29  Bruno Haible  <bruno@clisp.org>
54364
54365                 * progreloc.c (set_program_name_and_installdir): Fix
54366                 compilation error.
54367
54368         2005-12-04  Bruno Haible  <bruno@clisp.org>
54369
54370                 Cygwin portability.
54371                 * progreloc.c: Include <windows.h> also on Cygwin.
54372                 (find_executable): Add support for Cygwin.
54373                 (set_program_name_and_installdir): Handle also platforms with
54374                 nonempty EXEEXT.
54375
54376         2006-07-11  Bruno Haible  <bruno@clisp.org>
54377
54378                 * javacomp.c: Fix a comment.
54379                 Reported by Jim Meyering.
54380
54381         2006-04-30  Bruno Haible  <bruno@clisp.org>
54382
54383                 * javacomp.h (compile_java_class): Add source_version,
54384                 target_version arguments.
54385                 * javacomp.c: Rewritten to choose only a compiler that
54386                 respects the specified source_version and target_version.
54387
54388         2006-06-27  Bruno Haible  <bruno@clisp.org>
54389
54390                 Assume correct S_ISDIR macro.
54391                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
54392
54393         2006-07-22  Bruno Haible  <bruno@clisp.org>
54394
54395                 * javaversion.h: New file, from GNU gettext.
54396                 * javaversion.c: New file, from GNU gettext.
54397                 * javaversion.java: New file, from GNU gettext.
54398                 * javaversion.class: New file, from GNU gettext.
54399
54400         2006-05-17  Bruno Haible  <bruno@clisp.org>
54401
54402                 Cygwin portability.
54403                 * javaexec.c (execute_java_class): Test for jview program
54404                 also on Cygwin.
54405
54406         2006-04-09  Bruno Haible  <bruno@clisp.org>
54407
54408                 * fatal-signal.c: Don't include string.h.
54409                 (at_fatal_signal): Use a copying loop instead of memcpy.
54410
54411         2005-12-04  Bruno Haible  <bruno@clisp.org>
54412
54413                 * csharpexec.c: Add support for 'clix' launcher (untested).
54414                 (execute_csharp_using_sscli): New function.
54415                 (execute_csharp_program): Call it.
54416
54417         2006-06-21  Bruno Haible  <bruno@clisp.org>
54418
54419                 Avoid warnings from recent versions of mcs.
54420                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
54421                 -o, -L, -r any more. Use options documented since mcs-1.0
54422                 instead. Similarly for -g.
54423
54424         2005-07-09  Bruno Haible  <bruno@clisp.org>
54425
54426                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
54427                 add a .dll suffix.
54428                 Reported by Mark Junker <mjscod@gmx.de>.
54429
54430         2006-06-17  Bruno Haible  <bruno@clisp.org>
54431
54432                 * config.charset: Update for NetBSD 3.0.
54433
54434         2006-05-17  Bruno Haible  <bruno@clisp.org>
54435
54436                 Cygwin portability.
54437                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
54438
54439         2006-05-16  Bruno Haible  <bruno@clisp.org>
54440
54441                 * localcharset.c [CYGWIN]: Include <windows.h>.
54442                 (get_charset_aliases): For Cygwin, return the same CPxxx
54443                 aliases list as under WIN32.
54444                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
54445                 the environment variables. Fall back to GetACP().
54446
54447         2006-04-05  Bruno Haible  <bruno@clisp.org>
54448
54449                 * config.charset: Update Juan Manuel Guerrero's address.
54450
54451         2005-02-12  Bruno Haible  <bruno@clisp.org>
54452
54453                 * allocsa.h: Add extern "C" for C++.
54454
54455         2005-02-10  Bruno Haible  <bruno@clisp.org>
54456
54457                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
54458                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
54459
54460         2006-07-22  Bruno Haible  <bruno@clisp.org>
54461
54462                 * gettext.h: Update to GNU gettext-0.15.
54463
54464 2006-07-22  Bruno Haible  <bruno@clisp.org>
54465
54466         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
54467         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
54468         lib-prefix.m4, longdouble.m4, ssize_t.m4.
54469
54470 2006-07-21  Eric Blake  <ebb9@byu.net>
54471
54472         * modules/stdlib-safer: New file.
54473         * MODULES.html.sh (File stream based Input/Output): Add
54474         stdlib-safer.
54475
54476 2006-07-21  Eric Blake  <ebb9@byu.net>
54477
54478         * lib/stdlib-safer.h: New file from coreutils, required by
54479         stdlib--.h.
54480
54481 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
54482
54483         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
54484
54485 2006-07-20  Bruno Haible  <bruno@clisp.org>
54486
54487         * gnulib-tool: Recognize new option --assume-autoconf.
54488         (autoconf_minversion): New variable.
54489         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
54490
54491 2006-07-20  Bruno Haible  <bruno@clisp.org>
54492
54493         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
54494
54495 2006-07-19  Derek R. Price  <derek@ximbiot.com>
54496
54497         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
54498         Reindent and repaginate.
54499
54500 2006-07-19  Derek Price  <derek@ximbiot.com>
54501
54502         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
54503         Correct grammar.
54504
54505 2006-07-17  Bruno Haible  <bruno@clisp.org>
54506
54507         * modules/list: New file.
54508         * modules/array-list: New file.
54509         * modules/carray-list, modules/carray-list-tests: New files.
54510         * modules/linked-list, modules/linked-list-tests: New files.
54511         * modules/avltree-list, modules/avltree-list-tests: New files.
54512         * modules/rbtree-list, modules/rbtree-list-tests: New files.
54513         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
54514         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
54515         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
54516         * modules/oset: New file.
54517         * modules/array-oset: New file.
54518         * modules/avltree-oset, modules/avltree-oset-tests: New files.
54519         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
54520         * tests/test-carray_list.c: New file.
54521         * tests/test-linked_list.c: New file.
54522         * tests/test-avltree_list.c: New file.
54523         * tests/test-rbtree_list.c: New file.
54524         * tests/test-linkedhash_list.c: New file.
54525         * tests/test-avltreehash_list.c: New file.
54526         * tests/test-rbtreehash_list.c: New file.
54527         * tests/test-avltree_oset.c: New file.
54528         * tests/test-rbtree_oset.c: New file.
54529         * MODULES.html.sh (Container data structures): New section.
54530
54531 2006-07-17  Bruno Haible  <bruno@clisp.org>
54532
54533         * m4/gl_list.m4: New file.
54534
54535 2006-07-17  Bruno Haible  <bruno@clisp.org>
54536
54537         * lib/gl_list.h: New file.
54538         * lib/gl_list.c: New file.
54539         * lib/gl_array_list.h: New file.
54540         * lib/gl_array_list.c: New file.
54541         * lib/gl_carray_list.h: New file.
54542         * lib/gl_carray_list.c: New file.
54543         * lib/gl_linked_list.h: New file.
54544         * lib/gl_linked_list.c: New file.
54545         * lib/gl_anylinked_list1.h: New file.
54546         * lib/gl_anylinked_list2.h: New file.
54547         * lib/gl_avltree_list.h: New file.
54548         * lib/gl_avltree_list.c: New file.
54549         * lib/gl_anyavltree_list1.h: New file.
54550         * lib/gl_anyavltree_list2.h: New file.
54551         * lib/gl_rbtree_list.h: New file.
54552         * lib/gl_rbtree_list.c: New file.
54553         * lib/gl_anyrbtree_list1.h: New file.
54554         * lib/gl_anyrbtree_list2.h: New file.
54555         * lib/gl_anytree_list1.h: New file.
54556         * lib/gl_anytree_list2.h: New file.
54557         * lib/gl_linkedhash_list.h: New file.
54558         * lib/gl_linkedhash_list.c: New file.
54559         * lib/gl_anyhash_list1.h: New file.
54560         * lib/gl_anyhash_list2.h: New file.
54561         * lib/gl_avltreehash_list.h: New file.
54562         * lib/gl_avltreehash_list.c: New file.
54563         * lib/gl_rbtreehash_list.h: New file.
54564         * lib/gl_rbtreehash_list.c: New file.
54565         * lib/gl_anytreehash_list1.h: New file.
54566         * lib/gl_anytreehash_list2.h: New file.
54567
54568         * lib/gl_oset.h: New file.
54569         * lib/gl_oset.c: New file.
54570         * lib/gl_array_oset.h: New file.
54571         * lib/gl_array_oset.c: New file.
54572         * lib/gl_avltree_oset.h: New file.
54573         * lib/gl_avltree_oset.c: New file.
54574         * lib/gl_rbtree_oset.h: New file.
54575         * lib/gl_rbtree_oset.c: New file.
54576         * lib/gl_anytree_oset.h: New file.
54577
54578 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54579
54580         * m4/mkancesdirs.m4: New file.
54581         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
54582         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
54583         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
54584         it.
54585
54586 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54587
54588         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
54589         * lib/mkancesdirs.h: New files.
54590         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
54591         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
54592         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
54593         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
54594         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
54595         callers changed.  Revamp internals significantly, by not
54596         attempting to create directories that are temporarily more
54597         permissive than the final results.  Do not attempt to use
54598         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
54599         This removes some race conditions, fixes some bugs, and simplifies
54600         things.  Use new dirchownmod function to do owner and mode changes.
54601         * lib/mkdir-p.h: Likewise.
54602         * lib/modechange.c (octal_to_mode): New function.
54603         (struct mode_change): New member mentioned.
54604         (make_node_op_equals): New arg mentioned.  All callers changed.
54605         (mode_compile): Keep track of which mode bits the user has explicitly
54606         mentioned.
54607         (mode_adjust): New arg DIR, so that we implement the X op correctly.
54608         New arg PMODE_BITS, to keep track of which mode bits the user
54609         mentioned; it treats S_ISUID and S_ISGID speciall.
54610         All callers changed.
54611         * lib/modechange.h: Likewise.
54612
54613 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         * MODULES.html.sh: Add mkancestors.
54616         * modules/mkancesdirs: New module.
54617         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
54618         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
54619         The chdir-safer and afs files are now orphans; I'll remove them
54620         unless someone speaks up.
54621         Add lib/dirchownmod.c, lib/dirchownmod.h.
54622         (Depends-on): Remove alloca, chown, save-cwd, dirname.
54623         Add lchown, mkancesdirs.
54624         (Maintainer): Add self.
54625
54626 2006-07-15  Karl Berry  <karl@gnu.org>
54627
54628         * gnulib-tool: help message wording/arrangement.
54629
54630 2006-07-14  Simon Josefsson  <jas@extundo.com>
54631
54632         * doc/gnulib.texi (Libtool and Windows): New section.
54633
54634 2006-07-12  Simon Josefsson  <jas@extundo.com>
54635
54636         * modules/gendocs (License): Fix license, approved by Karl.
54637
54638 2006-07-12  Eric Blake  <ebb9@byu.net>
54639
54640         * MODULES.html.sh: Add gendocs.
54641
54642 2006-07-11  Eric Blake  <ebb9@byu.net>
54643
54644         * modules/fdl: New module, to install doc/fdl.texi.
54645         * MODULES.html.sh: Add new section for documentation modules.
54646         * gnulib-tool: Avoid space-tab.
54647         (--doc-base): New option, to manage files from doc.
54648
54649 2006-07-11  Eric Blake  <ebb9@byu.net>
54650
54651         * m4/absolute-header.m4: Fix comments to match recent change.
54652
54653 2006-07-11  Eric Blake  <ebb9@byu.net>
54654
54655         * gnulib-tool: List --doc-base before --tests-base.
54656
54657 2006-07-11  Derek R. Price  <derek@ximbiot.com>
54658
54659         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
54660
54661 2006-07-11  Bruno Haible  <bruno@clisp.org>
54662
54663         * README: Mention where to put documentation.
54664
54665 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54666
54667         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
54668
54669 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
54670
54671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
54672         to stdint.m4.
54673
54674 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
54675
54676         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
54677         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
54678         "no/such/file/stdint.h" when there is no such file, so that
54679         the resulting C code can be parsed by dodgy compilers.
54680         Problems reported by Bob Proulx.
54681
54682 2006-07-10  Derek R. Price  <derek@ximbiot.com>
54683
54684         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
54685         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
54686         macros into the GNU _D_EXACT_NAMLEN.
54687         * lib/savedir.c:  Likewise.
54688         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
54689
54690 2006-07-10  Derek R. Price  <derek@ximbiot.com>
54691         and Paul Eggert  <eggert@cs.ucla.edu>
54692
54693         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
54694         * m4/savedir.m4:
54695         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
54696         macros into the GNU _D_EXACT_NAMLEN.
54697
54698 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54699
54700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
54701         around the absolute name, to work around a problem with the HP-UX
54702         11.23 native C compiler, reported by Bob Proulx.
54703
54704 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54705
54706         * doc/maintain.texi, make-stds.texi: Sync from
54707         <http://savannah.gnu.org/projects/gnustandards>.
54708
54709 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54710
54711         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
54712
54713 2006-07-09  Jim Meyering  <jim@meyering.net>
54714
54715         * m4/glob.m4: Remove a doubled word in a comment.
54716
54717 2006-07-09  Jim Meyering  <jim@meyering.net>
54718
54719         * lib/argp-pv.c: Remove a doubled word in a comment.
54720         * lib/check-version.c (check_version): Likewise.
54721         * lib/javacomp.c (compile_java_class): Likewise.
54722
54723 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
54724
54725         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
54726         for the benefit of people using Autoconf 2.60.  If you want to
54727         support older Autoconf versions you can copy m4/onceonly_2_57.m4
54728         (or m4/onceonly.m4, if pre-2.57) manually.
54729
54730 2006-07-08  Jim Meyering  <jim@meyering.net>
54731
54732         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
54733         comment.
54734         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
54735         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
54736         comment.
54737
54738 2006-07-08  Jim Meyering  <jim@meyering.net>
54739
54740         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
54741
54742 2006-07-07  Simon Josefsson  <jas@extundo.com>
54743
54744         * tests/test-crc.c: Change expected crc value, the test vector
54745         were probably computed using the old broken crc.c?
54746
54747 2006-07-06  Simon Josefsson  <jas@extundo.com>
54748
54749         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
54750         now the canonical place for the M4 file).
54751
54752         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
54753         from the sys_socket dependency now.
54754
54755         * modules/inet_pton (Files): Ditto.
54756
54757         * modules/inet_ntop (Files): Ditto.
54758
54759 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54760
54761         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
54762         not gl_PREREQ_GETUSERSHELL.
54763
54764 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54765
54766         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
54767         with only one argument, for Autoconf 2.60.
54768         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
54769         expand to nothing, so add a shell command to avoid syntax error.
54770         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54771
54772 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54773
54774         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
54775
54776 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54777
54778         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
54779         no longer needed.  Check for isblank decl.
54780         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
54781         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
54782         of existence.
54783
54784 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54785
54786         * lib/getloadavg.c: Use __VMS, not VMS.
54787         * lib/getopt.c: Likewise.
54788         * lib/getpagesize.h: Likewise.
54789         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
54790         and probably does not work.
54791
54792 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54793
54794         * lib/.cppi-disable: Add wcwidth.
54795         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
54796         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
54797         (ISGRAPH): Remove.  All uses changed to isgraph.
54798         (FOLD) [!defined _LIBC]: Remove special case.
54799         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
54800         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
54801         HAVE_ISBLANK.
54802         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
54803         case.
54804
54805 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54806
54807         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
54808         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
54809         brackets.  Other minor changes to suppress some compiler
54810         warnings.
54811
54812 2006-07-06  Derek R. Price  <derek@ximbiot.com>
54813         and Paul Eggert  <eggert@cs.ucla.edu>
54814
54815         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
54816         of invoking obsolescent AC_HEADER_DIRENT macro.
54817         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
54818         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
54819         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
54820         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
54821         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
54822         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54823         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
54824         * m4/readdir.m4: Remove; no longer needed.
54825
54826 2006-07-06  Derek R. Price  <derek@ximbiot.com>
54827         and Paul Eggert  <eggert@cs.ucla.edu>
54828
54829         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
54830         Don't worry about this obsolete case any more.
54831         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
54832         directories.
54833         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
54834         worry about this obsolete case any more.
54835         * lib/fts.c: Likewise.
54836         * lib/getcwd.c: Likewise.
54837         * lib/glob.h: Likewise.
54838         * lib/savedir.c: Likewise.
54839
54840 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54841
54842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
54843         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
54844         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
54845         needed.
54846         All uses removed.
54847         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54848         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
54849         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
54850         needed.
54851         * m4/getdate.m4 (gl_GETDATE): Likewise.
54852         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
54853         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
54854         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54855         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54856         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
54857         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54858         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
54859         needed.
54860
54861 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         * lib/memcasecmp.c: Include <limits.h>.
54864         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
54865         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
54866         Don't assume isdigit succeeds only on '0' through '9'.
54867
54868 2006-07-05  Eric Blake  <ebb9@byu.net>
54869
54870         * modules/getaddrinfo (Depends-on): Add snprintf.
54871
54872 2006-07-05  Eric Blake  <ebb9@byu.net>
54873
54874         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
54875         to avoid 'header present but could not be compiled' on cygwin.
54876
54877 2006-07-05  Eric Blake  <ebb9@byu.net>
54878
54879         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
54880         missing from netdb.h.
54881         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
54882
54883 2006-07-05  Derek R. Price  <derek@ximbiot.com>
54884
54885         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
54886         no longer needed.
54887         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
54888         * m4/getdate.m4 (gl_GETDATE): Likewise.
54889         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
54890         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
54891         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54892         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54894
54895 2006-07-05  Derek R. Price  <derek@ximbiot.com>
54896
54897         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
54898         All uses of is_space replaced by isspace.
54899         * lib/exit.h: Don't talk about STDC_HEADERS.
54900         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
54901         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
54902         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
54903         replaced by isprint etc.
54904         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
54905         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54906         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
54907         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
54908         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
54909         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54910
54911 2006-07-05  Bruno Haible  <bruno@clisp.org>
54912
54913         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
54914         the function exists, before testing against AIX.
54915         Reported by Martin Lambers <marlam@marlam.de>.
54916
54917 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54918
54919         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
54920         From Mark D. Baushke.
54921
54922 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54923
54924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
54925         to the absolute name, not just one, to bypass Sun C 5.8's
54926         "warning: #include of /usr/include/... may be non-portable".
54927
54928 2006-07-04  Eric Blake  <ebb9@byu.net>
54929
54930         * modules/dirname-tests: New test module.
54931         * tests/test-dirname.c: New file, replacing dirname.c
54932         TEST_DIRNAME section that was recently deleted.
54933
54934 2006-07-04  Bruno Haible  <bruno@clisp.org>
54935
54936         Assume ANSI C header files and <ctype.h> functions.
54937         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
54938         (mbsnwidth): Use isprint, iscntrl instead.
54939
54940 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         Merge from coreutils.
54943         * MODULES.html.sh: Add xstrtold.
54944         * modules/xstrtold: New file.
54945         * modules/cycle-check (Files): Add lib/same-inode.h.
54946         * modules/dirname (Files): Add m4/double-slash-root.m4.
54947         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
54948         * modules/mkdir-p (Files): Add lib/same-inode.h.
54949         * modules/same (Files): Add lib/same-inode.h.
54950
54951 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54952
54953         * m4/absolute-header.m4: Renamed from full-header-path.m4.
54954         This is to keep the terminology clean; POSIX talks about
54955         "absolute pathnames", not "full pathnames", but the GNU
54956         Coding Standards say to use "path" for something else;
54957         so use "absolute" to keep both sides happy.
54958         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
54959         Set gl_absolute_header, not gl_full_header_path.
54960         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
54961         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
54962         All uses changed.
54963
54964         Merge from coreutils.
54965
54966         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
54967
54968         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
54969         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
54970         want to require the building of c-strtod.o.
54971         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
54972         needs -lm directly.
54973         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
54974
54975         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54976
54977         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
54978         --as-needed option if available.  Problem reported by Albert Chin in
54979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
54980         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
54981         cc merely issues a bunch of annoying warnings for --as-needed
54982         (this problem was reported by Bob Proulx).  Also, try linking with
54983         -lm to detect a bug in binutils 2.16 (this problem was reported
54984         by Ralf Wildenhues).
54985
54986         2006-06-18  Jim Meyering  <jim@meyering.net>
54987
54988         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
54989         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
54990         macro.
54991         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
54992         also check for glibc-2.4's abort-inducing bug.
54993
54994         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
54995         Low-probability clean-up should be to use rmdir to get rid of
54996         the just-created directory, not unlink.
54997
54998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
54999         configure fail, and request a bug report to inform us about it.
55000         Add a comment that, barring reports to the contrary, in 2007 we'll
55001         assume ftruncate is universally available.
55002
55003         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55004
55005         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55006
55007         2006-03-12  Jim Meyering  <jim@meyering.net>
55008
55009         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55010         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55011         * m4/same.m4 (gl_SAME): Likewise.
55012         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55013
55014         2006-03-11  Eric Blake  <ebb9@byu.net>
55015
55016         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55017         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55018         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55019         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55020
55021 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55022
55023         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55024         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55025         reported by Mark D. Baushke, one in
55026         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55027
55028         Merge from coreutils.
55029
55030         * lib/.cppi-disable: Add stdint_.h.
55031         * lib/.cvsignore: Add stdint.h.
55032
55033         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55034
55035         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55036         both double and long double versions.
55037         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55038         * lib/xstrtold.c: New file.
55039         * lib/xstrtod.h (xstrtold): New decl.
55040
55041         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55042
55043         * lib/filemode.c (setst): Remove.
55044         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55045         (arguably) clearer, and the generated code is a bit smaller on my
55046         Debian GNU/Linux stable x86 host.
55047
55048         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55049
55050         * lib/filemode.c: Include "filemode.h" first, to test the interface.
55051         Assume that filemode.h includes sys/types.h and sys/stat.h.
55052         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
55053         (ftypelet): Reorder to put common cases first, for efficiency.
55054         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
55055         to do 'M'.
55056         (strmode): Renamed from mode_string, and now stores 12 bytes instead
55057         of 10, for compatibility with FreeBSD.  All callers changed.
55058         (filemodestring): Now stores 12 bytes instead of 10, and sets file
55059         types that can't be deduced solely from st_mode.  First arg is now a
55060         const pointer.
55061         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
55062         (strmode): Renamed from mode_string.
55063         (filemodestring): New decl.
55064         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
55065         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
55066         needed.
55067         (S_ISPORT, S_ISWHT): New macros, if not already defined.
55068
55069         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55070
55071         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
55072         fsusage.h now does that.  Include fsusage.h first, to test interface.
55073         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
55074         at most one method (the old code could have generated decls that
55075         didn't conform to C89, not that this was ever exercised).
55076         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
55077
55078         2006-03-19  Jim Meyering  <jim@meyering.net>
55079
55080         Work even in a chroot where d_ino values for entries in "/"
55081         don't match the stat.st_ino values for the same names.
55082         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
55083         number, iterate through all entries again, using lstat instead.
55084         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
55085         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
55086
55087         * lib/getcwd.c (__getcwd): Clarify a comment.
55088         Use memcpy in place of a call to strcpy.
55089
55090         2006-03-12  Jim Meyering  <jim@meyering.net>
55091
55092         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
55093         matches that of the current directory (which we're about to chdir ".."
55094         out of), then save the dev-ino of the parent, instead.
55095
55096         * lib/same-inode.h (SAME_INODE): New file/macro.
55097         * lib/chdir-safer.c (SAME_INODE): Remove definition.
55098         Include "same-inode.h", instead.
55099         * lib/same.c: Likewise.
55100         * lib/cycle-check.h: Include "same-inode.h".
55101         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
55102         * lib/cycle-check.c (SAME_INODE): Remove definition.
55103         * lib/root-dev-ino.h: Include "same-inode.h".
55104
55105         2006-03-11  Eric Blake  <ebb9@byu.net>
55106
55107         * lib/same.c (same_name): s/base_name/last_component/
55108         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
55109         * lib/filenamecat.c (file_name_concat): Likewise.
55110
55111         2006-03-11  Eric Blake  <ebb9@byu.net>,
55112                     Paul Eggert  <eggert@cs.ucla.edu>
55113
55114         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
55115         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
55116         drive prefix.
55117         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
55118         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
55119         (last_component): New method.
55120         * lib/dirname.c (dir_len): Determine when drive letters need a
55121         subsequent slash.  Preserve // when it is special.
55122         (dir_name): Don't append dot when drive letter is absolute.
55123         [TEST_DIRNAME]: Move into a full-blown gnulib test.
55124         * lib/basename.c (base_name): New semantics - malloc the result.
55125         Preserve // when it is special.  Preserve relative files that look
55126         like drive letters.
55127         (base_len): Preserve // when it is special.
55128         (last_component): New method, similar to old base_name semantics.
55129         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
55130         base_name.  Strip redundant slashes from ///.
55131
55132 2006-07-03  Jim Meyering  <jim@meyering.net>
55133
55134         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
55135         macro is used before the first cycle_check call.
55136
55137 2006-07-03  Eric Blake  <ebb9@byu.net>
55138
55139         * modules/dirname (Depends-on): Add xstrndup.
55140
55141 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
55144         test cases, so that config.log is a bit easier to follow.
55145
55146 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55147
55148         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
55149         both are 64 bits, since this seems to be the tradition, and this
55150         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
55151         we ever run into a host that prefers long long to long in this
55152         case, we'll need another configure-time test.  Problem reported by
55153         Jim Meyering.
55154
55155 2006-07-02  Eric Blake  <ebb9@byu.net>
55156
55157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
55158
55159 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55160
55161         * modules/inttypes (Depends-on): No longer depends on stdint.
55162         * modules/stdint (Description): Say more about assumptions.
55163         Say that the fast types might differ.  Say macros are used.
55164         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
55165         (Makefile.am): Revise list of substituted symbols to match
55166         new stdint.m4.
55167         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
55168         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
55169         * tests/test-stdint.c (verify_same_types)
55170         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
55171         the code conforms to C99/C89.
55172         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
55173         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
55174
55175 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55176
55177         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
55178         but fix a bug, by requiring at least 64 bits.
55179         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55180         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
55181         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
55182         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
55183
55184         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
55185         changes.  Make 2.59 a prerequisite.  Check and substitute for
55186         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
55187         inttypes.h.  Do not use special include files; just use the
55188         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
55189         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
55190         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
55191         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
55192         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
55193         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
55194         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
55195         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
55196         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
55197         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
55198         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
55199         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
55200         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
55201         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
55202         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
55203         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
55204         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
55205         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
55206         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
55207         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
55208         WINT_MAX.  Check for C99 conformance more strictly, by detecting
55209         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
55210         not check for things that C99 does not require, e.g., int8_t.  If
55211         a test isn't needed unless <stdint.h> isn't working, and is
55212         unlikely to be needed for any other reason, then don't do it
55213         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
55214         size_t, since we assume C89 freestanding at least.  Do not check
55215         for sig_atomic_t, wchar_t, or wint_t, since the code now does
55216         the right thing even if the types are not defined.  Instead use:
55217         (gl_STDINT_TYPE_PROPERTIES): New macro.
55218         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
55219         testing whether <sys/types.h> clashes, as Autoconf does this for
55220         us now.  All uses removed.
55221         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
55222         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
55223         (gl_CHECK_TYPE_SAME):
55224         Remove; no longer needed.
55225         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
55226         exists, since we'll return 0 anyway in that case.
55227         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
55228
55229 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55230
55231         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
55232         possible collision with system files.
55233         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
55234         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
55235         WCHAR_MIN and WCHAR_MAX in this case.
55236         (<stddef.h>): Do not include; no longer needed.
55237         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
55238         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
55239         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
55240         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
55241         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
55242         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
55243         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
55244         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
55245         !defined(__c99))]: Include in this case too, since it's harmless
55246         now.
55247         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
55248         dangerous to do so.
55249         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
55250         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
55251         (_STDINT_MIN, _STDINT_MAX): New macros.
55252         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
55253         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
55254         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
55255         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
55256         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
55257         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
55258         macros, not typedefs; this simplifies things quite a bit.
55259         Use long int for all types narrower than int64_t.
55260         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
55261         Define in terms of long long int or int64_t or long int,
55262         not int64_t or int32_t.  This saves some compile-time testing.
55263         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
55264         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
55265         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
55266         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
55267         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
55268         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
55269         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
55270         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
55271         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
55272         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
55273         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55274         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55275         undef any previous version and define our own version, for
55276         simplicity and consistency with the new macros for types.
55277         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55278         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55279         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
55280         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
55281         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
55282         @WINT_T_SUFFIX@ to keep things simple here.
55283         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
55284         Simplify by assuming typical 8/16/32/64 host, since we're
55285         already doing that elsewhere anyway.
55286         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
55287         and assume long long int is 64 bits if available.  This
55288         speeds up 'configure'.
55289
55290 2006-07-01  Eric Blake  <ebb9@byu.net>
55291
55292         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
55293         Reported by Andreas Buening.
55294
55295 2006-07-01  Eric Blake  <ebb9@byu.net>
55296
55297         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
55298
55299 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55300
55301         * lib/getaddrinfo.c: fixed typo
55302
55303 2006-06-29  Jim Meyering  <jim@meyering.net>
55304
55305         * modules/strftime (Maintainer): Add my name, since with the
55306         FPRINTFTIME changes strftime.c has forked from glibc.
55307
55308 2006-06-29  Eric Blake  <ebb9@byu.net>
55309
55310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
55311
55312 2006-06-29  Eric Blake  <ebb9@byu.net>
55313
55314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
55315
55316 2006-06-29  Eric Blake  <ebb9@byu.net>
55317
55318         * lib/stat_.h: New file.
55319
55320 2006-06-29  Eric Blake  <ebb9@byu.net>
55321
55322         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
55323         unused static function.
55324
55325 2006-06-29  Eric Blake  <ebb9@byu.net>
55326
55327         * doc/functions.texi (Function Portability): Document missing lstat
55328         on mingw.
55329
55330 2006-06-29  Eric Blake  <ebb9@byu.net>
55331
55332         * MODULES.html.sh: Add sys_stat.
55333         * modules/sys_stat: New module.
55334         * modules/mkstemp (Depends-on): Add sys_stat.
55335
55336 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55337
55338         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
55339
55340 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55341
55342         * m4/c-bs-a.m4: Removed.
55343
55344 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55345
55346         * lib/strftime.c: Assume strftime() exists.
55347
55348 2006-06-29  Derek Price  <derek@ximbiot.com>
55349
55350         * modules/c-bs-a: Removed - \a is C89.
55351         * MODULES.html.sh: Remove c-bs-a.
55352
55353 2006-06-29  Bruno Haible  <bruno@clisp.org>
55354
55355         * modules/wcwidth (License): Change to LGPL.
55356
55357 2006-06-28  Simon Josefsson  <jas@extundo.com>
55358
55359         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
55360         on _WIN32.
55361
55362         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
55363         getnameinfo.
55364
55365 2006-06-28  Simon Josefsson  <jas@extundo.com>
55366
55367         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
55368
55369 2006-06-28  Simon Josefsson  <jas@extundo.com>
55370
55371         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
55372         functions there.  It will succeed on Windows XP, but on Windows
55373         2000 and (presumably) earlier, it will fail, and use the internal
55374         re-implementation.
55375         (use_win32_p): New function.
55376         (getaddrinfo): Use strtoul on servname, to support numeric ports.
55377         Support AI_NUMERICSERV to disable getservbyname.
55378         (getnameinfo): New function, only supports
55379         NI_NUMERICHOST|NI_NUMERICSERV for now.
55380
55381         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
55382         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
55383         getnameinfo.
55384
55385 2006-06-28  Eric Blake  <ebb9@byu.net>
55386
55387         * modules/wcwidth: New file.
55388         * modules/mbchar (Depends-on): Add wcwidth.
55389         * modules/mbswidth (Depends-on): Add wcwidth.
55390         * MODULES.html.sh: Add wcwidth.
55391
55392 2006-06-28  Eric Blake  <ebb9@byu.net>
55393
55394         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
55395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
55396
55397 2006-06-28  Eric Blake  <ebb9@byu.net>
55398
55399         * lib/xvasprintf.h: Fix comments.
55400
55401 2006-06-28  Eric Blake  <ebb9@byu.net>
55402
55403         * lib/mbchar.h (wcwidth): Include wcwidth.h.
55404         * lib/mbswidth.c (wcwidth): Move from here...
55405         * lib/wcwidth.h: ...to this new file.
55406
55407 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55408
55409         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
55410
55411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
55412         it's obsolete.
55413         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
55414
55415 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55416
55417         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
55418         Autoconf 2.60 says this stuff was obsolete.
55419
55420 2006-06-28  Bruno Haible  <bruno@clisp.org>
55421
55422         * modules/wcwidth (Files): Add m4/wchar_t.m4.
55423
55424 2006-06-28  Bruno Haible  <bruno@clisp.org>
55425
55426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
55427         gt_TYPE_WCHAR_T.
55428
55429 2006-06-28  Bruno Haible  <bruno@clisp.org>
55430
55431         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
55432         declaration for wcwidth.
55433         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
55434
55435 2006-06-28  Bruno Haible  <bruno@clisp.org>
55436
55437         * lib/mkdtemp.c [MINGW]: Include <io.h>.
55438         (mkdir): Define using _mkdir.
55439
55440 2006-06-28  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/getaddrinfo.h: Fix POSIX URL.
55443         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
55444         _WIN32.
55445         (use_win32_p): Make static.
55446         (getaddrinfo): Reject service name if it is empty or does not consist
55447         solely of decimal digits, or if its value is > 65535.
55448         (getnameinfo): Remove useless casts.
55449
55450 2006-06-27  Simon Josefsson  <jas@extundo.com>
55451
55452         * modules/sys_select: New file, suggested by Bruno Haible, Paul
55453         Eggert and Martin Lambers.
55454
55455 2006-06-27  Simon Josefsson  <jas@extundo.com>
55456
55457         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
55458         Eggert and Martin Lambers.
55459
55460 2006-06-27  Bruno Haible  <bruno@clisp.org>
55461
55462         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
55463         result to 0, not to empty.
55464         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
55465
55466 2006-06-27  Bruno Haible  <bruno@clisp.org>
55467
55468         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
55469
55470 2006-06-26  Simon Josefsson  <jas@extundo.com>
55471
55472         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
55473         present.
55474
55475 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
55476
55477         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
55478         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
55479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
55480
55481 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
55482
55483         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
55484
55485 2006-06-26  Bruno Haible  <bruno@clisp.org>
55486
55487         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
55488
55489 2006-06-26  Bruno Haible  <bruno@clisp.org>
55490
55491         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
55492
55493 2006-06-26  Bruno Haible  <bruno@clisp.org>
55494
55495         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
55496         SGI C compiler in pre-C99 mode.
55497         Suggested by Mark D. Baushke and Larry Jones.
55498
55499 2006-06-26  Bruno Haible  <bruno@clisp.org>
55500
55501         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
55502         WCHAR_MAX.
55503         Reported by Mark D. Baushke and Larry Jones.
55504
55505 2006-06-26  Bruno Haible  <bruno@clisp.org>
55506
55507         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
55508         in pre-C99 mode.
55509         Suggested by Mark D. Baushke and Larry Jones.
55510
55511 2006-06-23  Simon Josefsson  <jas@extundo.com>
55512             Bruno Haible  <bruno@clisp.org>
55513
55514         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
55515         Emit mostlyclean-local rule.
55516         (func_emit_tests_Makefile_am): Likewise.
55517         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
55518
55519 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
55520
55521         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
55522
55523 2006-06-23  Bruno Haible  <bruno@clisp.org>
55524
55525         * tests/test-stdint.c: Update to match ISO C 99 Technical
55526         Corrigendum 1.
55527
55528 2006-06-23  Bruno Haible  <bruno@clisp.org>
55529
55530         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
55531
55532 2006-06-23  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/stdint_.h: Treat IRIX like OpenBSD.
55535
55536 2006-06-23  Bruno Haible  <bruno@clisp.org>
55537
55538         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
55539         ISO C 99 Technical Corrigendum 1.
55540
55541 2006-06-22  Simon Josefsson  <jas@extundo.com>
55542
55543         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
55544         MinGW.
55545
55546 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55547
55548         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
55549         needed.  Some compiler complained about some of them.  Problem reported
55550         by Larry Jones in
55551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
55552
55553 2006-06-21  Simon Josefsson  <jas@extundo.com>
55554
55555         * tests/test-getaddrinfo.c: New file.
55556
55557         * modules/getaddrinfo-tests: New file.
55558
55559         * MODULES.html.sh: Add inet_pton.
55560
55561         * modules/inet_pton: New file.
55562
55563 2006-06-21  Simon Josefsson  <jas@extundo.com>
55564
55565         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
55566         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
55567         of using the (limited) gnulib implementation on Windows XP.
55568
55569         * m4/inet_pton.m4: New file.
55570
55571 2006-06-21  Simon Josefsson  <jas@extundo.com>
55572
55573         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
55574         variable.
55575
55576         * lib/socket_.h: Don't define WINVER.
55577
55578         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
55579         slightly modified to work in gnulib.
55580
55581 2006-06-21  Simon Josefsson  <jas@extundo.com>
55582
55583         * doc/gnulib.texi (Windows sockets): Add.
55584
55585 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55586
55587         * lib/read-file.c (fread_file): Start with buffer allocation of
55588         0 bytes rather than 1 byte; this simplifies the code.
55589         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
55590         code to free buffer and save/restore errno.
55591         (internal_read_file): Remove unused local.
55592
55593 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
55596         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
55597         Problem reported by Denis Excoffier in
55598         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
55599
55600 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55601
55602         * modules/sys_socket, modules/socklen: Include sys/types since
55603         FreeBSD 4.x's sys/socket.h needs it.
55604
55605 2006-06-19  Simon Josefsson  <jas@extundo.com>
55606
55607         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
55608
55609 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55610
55611         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
55612
55613 2006-06-19  Bruno Haible  <bruno@clisp.org>
55614
55615         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
55616         and FULL_PATH_INTTYPES_H in angle brackets.
55617         Reported by Mark D. Baushke <mdb@gnu.org>.
55618
55619 2006-06-17  Eric Blake  <ebb9@byu.net>
55620
55621         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
55622         errno.
55623
55624 2006-06-17  Bruno Haible  <bruno@clisp.org>
55625
55626         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
55627         <sys/inttypes.h>.
55628
55629 2006-06-17  Bruno Haible  <bruno@clisp.org>
55630
55631         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
55632         whether errno is declared. Assume <errno.h> declares errno.
55633
55634 2006-06-17  Bruno Haible  <bruno@clisp.org>
55635
55636         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
55637
55638 2006-06-17  Bruno Haible  <bruno@clisp.org>
55639
55640         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
55641         problem on Solaris 2.5.1.
55642
55643 2006-06-16  Eric Blake  <ebb9@byu.net>
55644
55645         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
55646         * lib/unicodeio.c [!defined errno]: Likewise.
55647         * lib/strtol.c [!defined errno]: Likewise.
55648         * lib/strtod.c [!defined errno]: Likewise.
55649
55650 2006-06-15  Eric Blake  <ebb9@byu.net>
55651
55652         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
55653
55654 2006-06-15  Eric Blake  <ebb9@byu.net>
55655
55656         * config/srclist.txt (ssize_t.m4): Lose sync.
55657
55658 2006-06-15  Bruno Haible  <bruno@clisp.org>
55659
55660         * modules/stdint (Files): Include m4/full-header-path.m4,
55661         m4/size_max.m4, m4/wchar_t.m4.
55662         (Makefile.am): Many more substitutions.
55663         * modules/stdint-tests: New file.
55664         * tests/test-stdint.c: New file.
55665
55666 2006-06-15  Bruno Haible  <bruno@clisp.org>
55667
55668         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
55669         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
55670         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
55671         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
55672         gl_CHECK_TYPE_SAME): New macros.
55673
55674 2006-06-15  Bruno Haible  <bruno@clisp.org>
55675
55676         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
55677
55678 2006-06-15  Bruno Haible  <bruno@clisp.org>
55679
55680         * lib/stdint_.h: Rewritten to be fully auto-configured.
55681         Fixes bug on HP-UX/IA64.
55682
55683 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
55684
55685         * lib/getdate.y (__attribute__): Don't define if already defined.
55686         Problem reported by Larry Jones.
55687         * lib/utimens.c (__attribute__): Likewise.
55688
55689 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
55690
55691         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
55692         reported by Andreas Schwab.
55693
55694 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55695             Bruno Haible  <bruno@clisp.org>
55696
55697         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
55698         check for the declaration of strnlen and a run test that exposes the
55699         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
55700         rpl_strndup.
55701
55702 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55703             Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
55706
55707 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55708
55709         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
55710         compile test, for Tru64 4.0D.
55711
55712 2006-05-28  Karl Berry  <karl@gnu.org>
55713
55714         * config/srclist.txt (printf-args.c): lose sync.
55715
55716 2006-05-26  Martin Lambers  <marlam@marlam.de>
55717
55718         * lib/getpass.c: Updates the test for the native W32 API, and adds
55719         missing includes, thus fixing compilation warnings.
55720
55721 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55722
55723         * lib/exclude.c (exclude_fnmatch): New function.
55724         (excluded_file_name): Call exclude_fnmatch.
55725         * lib/exclude.h (excluded_file_name): New prototype
55726
55727 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
55728
55729         * lib/tempname.c (small_open, large_open): New macros.
55730         (__open, __open64) [!_LIBC]: Remove.
55731         (__gen_tempname): Use small_open and large_open instead of __open
55732         and __open64.  This fixes a portability bug on HP-UX 11.11i
55733         reported by Simon Wing-Tang in
55734         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
55735
55736 2006-05-24  Bruno Haible  <bruno@clisp.org>
55737
55738         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
55739         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
55740         Reported by Thorsten Maerz <torte@netztorte.de> via
55741         Aaron Stone <aaron@serendipity.cx>.
55742
55743 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55744
55745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
55746         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
55747         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
55748         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
55749         not really conditional on the cache.
55750         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
55751
55752 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55753
55754         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
55755         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
55756         (my_usleep): Don't mishandle maximum value.
55757
55758 2006-05-19  Jim Meyering  <jim@meyering.net>
55759
55760         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
55761
55762 2006-05-17  Bruno Haible  <bruno@clisp.org>
55763
55764         Cygwin portability.
55765         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
55766
55767 2006-05-17  Bruno Haible  <bruno@clisp.org>
55768
55769         * lib/stdint_.h: Fix recognition of Cygwin.
55770
55771 2006-05-15  Bruno Haible  <bruno@clisp.org>
55772
55773         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
55774         on libtool patch by Ralf Wildenhues.
55775
55776 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55777
55778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
55779         test for C99 conformance; (bool) 0.5 is an integer constant
55780         expression, but (bool) -0.5 is not.  Problem reported by Fedor
55781         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
55782
55783 2006-05-11  Simon Josefsson  <jas@extundo.com>
55784
55785         * m4/xvasprintf.m4: Fix obvious typo.
55786
55787 2006-05-11  Jim Meyering  <jim@meyering.net>
55788
55789         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
55790         James Lemley.
55791
55792 2006-05-10  Simon Josefsson  <jas@extundo.com>
55793
55794         * lib/md4.c: Typo fix, update copyright years.
55795         (K1, K2): Don't use L because it turn computations into 64-bit on
55796         64-bit platforms.
55797
55798 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
55799
55800         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
55801         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
55802         unwanted sign propagation, e.g., on hosts with 64-bit int.
55803         There still are some problems with reeelly weird theoretical hosts
55804         (e.g., 33-bit int) but it's not worth worrying about now.
55805         * lib/sha1.c (rol): Likewise.
55806         (K1, K2, K3, K4): Remove unnecessary L suffix.
55807
55808 2006-05-10  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/des.c: Cast to avoid warnings.
55811
55812 2006-05-09  Bruno Haible  <bruno@clisp.org>
55813
55814         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
55815         (Depends-on): Depend also on xsize, stdarg.
55816         (configure.ac): Add gl_XVASPRINTF.
55817
55818 2006-05-09  Bruno Haible  <bruno@clisp.org>
55819
55820         * m4/xvasprintf.m4: New file.
55821
55822 2006-05-09  Bruno Haible  <bruno@clisp.org>
55823
55824         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
55825         (EOVERFLOW): Define fallback value.
55826         (xstrcat): New function.
55827         (xvasprintf): Recognize the special case of a string concatenation.
55828
55829 2006-05-08  Eric Blake  <ebb9@byu.net>
55830
55831         * gnulib-tool (func_version): Base copyright year on CVS date.
55832         (func_emit_copyright_notice): New function.
55833         (func_emit_lib_Makefile_am): Use it.
55834         (func_emit_tests_Makefile_am): Likewise.
55835         (func_import): Likewise.
55836
55837 2006-05-08  Bruno Haible  <bruno@clisp.org>
55838
55839         * modules/stdarg: New file.
55840         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
55841
55842 2006-05-08  Bruno Haible  <bruno@clisp.org>
55843
55844         * m4/stdarg.m4: New file, from GNU gettext.
55845
55846 2006-05-08  Bruno Haible  <bruno@clisp.org>
55847
55848         * config/srclist.txt (build-aux/config.rpath): different from latest
55849         release.
55850
55851 2006-05-08  Bruno Haible  <bruno@clisp.org>
55852
55853         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
55854
55855 2006-05-05  Jim Meyering  <jim@meyering.net>
55856
55857         * m4/warning.m4: New file, derived from bison's file by the same name.
55858
55859 2006-05-03  Bruno Haible  <bruno@clisp.org>
55860
55861         * lib/stdint_.h: Shorter URL.
55862         * lib/inttypes.h: Likewise.
55863
55864 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55865
55866         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
55867
55868 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55869
55870         * lib/verify.h: Document the internals better.  Most of this change
55871         was written by Bruno Haible.
55872
55873 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55874
55875         * doc/verify.texi: New file, partly based on a proposal by
55876         Bruno Haible.
55877
55878 2006-05-02  Bruno Haible  <bruno@clisp.org>
55879
55880         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
55881         test from here...
55882         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
55883
55884 2006-04-29  Bruno Haible  <bruno@clisp.org>
55885
55886         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
55887         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
55888
55889 2006-04-29  Bruno Haible  <bruno@clisp.org>
55890
55891         * gnulib-tool: Make --update option actually work.
55892
55893 2006-04-29  Bruno Haible  <bruno@clisp.org>
55894
55895         * doc/gcd.texi: New file.
55896         * doc/gnulib.texi: Include it.
55897
55898 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * lib/getdate.y (get_date): When adding relative date, start with the
55901         initial time, not with the result of the first mktime call.
55902
55903 2006-04-25  Bruno Haible  <bruno@clisp.org>
55904
55905         * gnulib-tool (func_import): Output the include directives in three
55906         blocks, sorted separately.
55907         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55908
55909 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55910
55911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
55912         to define main with arguments, for C++.  Reported by Eric Blake.
55913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
55914         Prefer 'int main ()' to 'int main (void)', for C++.
55915         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
55916         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
55917         for 'main', for C99 and C++.
55918
55919 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55920
55921         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
55922         Don't assume that exit status -1 is valid.
55923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55924         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55925         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
55926         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
55927         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
55928         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
55929         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
55930         functions can be used without declaring them, or that you can
55931         exit with status -1.
55932         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
55933
55934 2006-04-24  Karl Berry  <karl@gnu.org>
55935
55936         * config/srclist.txt (longdouble.m4): sync lost.
55937
55938 2006-04-24  Eric Blake  <ebb9@byu.net>
55939
55940         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
55941
55942 2006-04-24  Bruno Haible  <bruno@clisp.org>
55943
55944         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
55945         poll() implementation in AIX.
55946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55947
55948 2006-04-24  Bruno Haible  <bruno@clisp.org>
55949
55950         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
55951         assigned exactly once.
55952
55953 2006-04-23  Claudio Fontana  <claudio@gnu.org>
55954             Bruno Haible  <bruno@clisp.org>
55955
55956         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
55957         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
55958         for AM_CPPFLAGS.
55959
55960 2006-04-23  Bruno Haible  <bruno@clisp.org>
55961
55962         * modules/copy-file: Depend on unistd.
55963         * modules/execute: Likewise.
55964         * modules/fatal-signal: Likewise.
55965         * modules/findprog: Likewise.
55966         * modules/mkdtemp : Likewise.
55967         * modules/pipe: Likewise.
55968         * modules/wait-process: Likewise.
55969
55970 2006-04-23  Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
55973         condition was already detected.
55974         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55975
55976 2006-04-23  Bruno Haible  <bruno@clisp.org>
55977
55978         * lib/copy-file.c: Include <unistd.h> unconditionally.
55979         * lib/execute.c: Likewise.
55980         * lib/fatal-signal.c: Likewise.
55981         * lib/findprog.c: Likewise.
55982         * lib/mkdtemp.c: Likewise.
55983         * lib/pipe.h: Likewise.
55984         * lib/pipe.c: Likewise.
55985         * lib/wait-process.h: Likewise.
55986
55987 2006-04-23  Bruno Haible  <bruno@clisp.org>
55988
55989         * gnulib-tool (func_usage): Fix --import description. Document
55990         --update.
55991         (func_import): Create temporary file in a temporary directory, if
55992         --dry-run is specified. Silence errors from 'grep' when there are no
55993         m4 files in $m4dir.
55994         (func_create_testdir): Silence errors from 'grep' when there are no
55995         m4 files in $m4dir.
55996         Reported by Karl Berry <karl@freefriends.org>.
55997
55998 2006-04-20  Bruno Haible  <bruno@clisp.org>
55999
56000         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56001         one argument, so that the code will be portable to Autoconf 2.60.
56002         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56003         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56004         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56005
56006 2006-04-19  Derek Price  <derek@ximbiot.com>
56007             Eric Blake  <ebb9@byu.net>
56008
56009         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56010         rather than "/full/path.h".  Update comment to match.  Shorten &
56011         generalize m4_translit call via AS_TR_CPP.
56012
56013 2006-04-19  Derek Price  <derek@ximbiot.com>
56014             Eric Blake  <ebb9@byu.net>
56015
56016         * lib/inttypes.h: Correct grammar in comment.
56017
56018 2006-04-18  Derek Price  <derek@ximbiot.com>
56019             Paul Eggert  <eggert@cs.ucla.edu>
56020
56021         * modules/inttypes: New file.
56022         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56023
56024 2006-04-18  Derek Price  <derek@ximbiot.com>
56025             Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56028         New files.
56029
56030 2006-04-18  Derek Price  <derek@ximbiot.com>
56031             Paul Eggert  <eggert@cs.ucla.edu>
56032
56033         * lib/inttypes.h: New file.
56034         * lib/strtoimax.c: Assume <inttypes.h>.
56035
56036 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56037
56038         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56039         isn't mounted.  Problem reported by Kir Kolyshkin.
56040
56041 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56042
56043         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56044         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56045         Derek R. Price.
56046         * lib/regex.h (RE_DUP_MAX): Update comment to match current
56047         implementation.
56048
56049 2006-04-12  Eric Blake  <ebb9@byu.net>
56050
56051         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
56052         is now done automatically by the corresponding Autoconf macro.
56053
56054 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
56055
56056         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
56057         time_r.h.
56058
56059 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56060
56061         Merge regex changes from libc, removing some of our
56062         POSIX-conformance changes that were rejected and redoing them in a
56063         less-intrusive way.
56064
56065         * lib/regcomp.c (re_compile_internal, init_dfa):
56066         Length arg is now size_t, not Idx.  All uses changed.
56067         (peek_token): Forward decl now says internal_function.
56068         (__re_error_msgid, __re_error_msgid_idx):
56069         Now static rather than extern with attribute_hidden.
56070         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
56071         For some reason libc prefers K&R style defns for external functions.
56072         (regerror) [!defined _LIBC]: Likewise.
56073         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
56074         (seek_collating_symbol_entry, lookup_collation_sequence_value):
56075         (build_range_exp, build_collating_symbol):
56076         Use K&R-style defn.
56077         (re_compile_fastmap): Use '\0' to memset, not 0.
56078         (utf8_sb_map): Make the calculations more obvious.
56079         (init_dfa, parse_bracket_exp, build_charclass_op):
56080         Call calloc and cast result, as glibc does.
56081         (init_word_char, fetch_token, peek_token, peek_token_bracket):
56082         (build_range_exp, build_collating_symbol):
56083         Now internal functions.
56084
56085         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
56086
56087         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
56088         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
56089         Don't depend on VMS; depend on __VMS instead, for POSIX
56090         namespace cleanness.
56091         (regoff_t): Define to ssize_t, not long int.
56092
56093         Remove the REG_ macros named below.  Instead, make the old names
56094         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
56095         __USE_GNU_REGEX.
56096         (REG_BACKSLASH_ESCAPE_IN_LISTS):
56097         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
56098         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
56099         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
56100         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
56101         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
56102         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
56103         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
56104         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
56105         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
56106         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
56107         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
56108         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
56109         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
56110         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
56111         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
56112         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
56113         (REG_NREGS):
56114         Remove.  All uses replaced by the old RE_* names.
56115         (RE_BACKSLASH_ESCAPE_IN_LISTS):
56116         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
56117         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
56118         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
56119         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
56120         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
56121         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
56122         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
56123         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
56124         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
56125         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
56126         Don't bother having these macros be independent of each others'
56127         values, since they no longer exist in the POSIX name space.
56128
56129         Rename the following member names back to their old names,
56130         unless !__USE_GNU_REGEX.  All uses changed back.
56131         (buffer): Renamed from re_buffer.
56132         (allocated): Renamed from re_allocated.
56133         (used): Renamed from re_used.
56134         (syntax): Renamed from re_syntax.
56135         (fastmap): Renamed from re_fastmap.
56136         (translate): Renamed from re_translate.
56137         (can_be_null): Renamed from re_can_be_null.
56138         (regs_allocated): Renamed from re_regs_allocated.
56139         (fastmap_accurate): Renamed from re_fastmap_accurate.
56140         (no_sub): Renamed from re_no_sub.
56141         (not_bol): Renamed from re_not_bol.
56142         (not_eol): Renamed from re_not_eol.
56143         (newline_anchor): Renamed from re_newline_anchor.
56144         (num_regs): Renamed from rm_num_regs.
56145         (start): Renamed from rm_start.
56146         (end): Renamed from rm_end.
56147
56148         (free_state): Move up a bit.
56149
56150         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
56151         #define to be empty.
56152         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
56153         when that is what is intended.
56154         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
56155         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
56156         (MAX): New macro.
56157         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
56158         All uses changed back to re_malloc, etc.  It's now the caller's
56159         responsibility to check for overflow; all callers changed.
56160         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
56161         (re_x2nrealloc): Remove.
56162         (free_state): Remove decl.
56163
56164         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
56165         (re_set_registers, re_exec):
56166         Use K&R-style defn.
56167
56168         2006-01-31  Roland McGrath  <roland@redhat.com>
56169
56170         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
56171         Reported by Mike Frysinger <vapier@gentoo.org>.
56172
56173         2006-01-15  Andreas Jaeger  <aj@suse.de>
56174
56175         [BZ #1950]
56176         * lib/regex_internal.c (re_string_reconstruct): Adjust for
56177         build_wcs_upper_buffer change.
56178         (build_wcs_upper_buffer): Change return type.
56179
56180         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
56181
56182         * lib/regex_internal.h: Include <stdint.h> if available.
56183
56184         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
56185
56186         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
56187
56188         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56189
56190         * lib/regcomp.c: Adjust for changed secondary hash function.
56191
56192         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
56193
56194         * lib/regex.h: Pretty printing.
56195         Clean up namespace a bit.
56196
56197         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
56198
56199         * lib/regexec.c (update_cur_sifted_state, check_arrival,
56200         check_arrival_add_next_nodes): Avoid using uninitialized variable.
56201
56202         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56203                     Ulrich Drepper  <drepper@redhat.com>
56204
56205         [BZ #1302]
56206         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
56207         changed.
56208         (bitset_word_t): Renamed from bitset_word.  All uses changed.
56209
56210         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
56211
56212         [BZ #281]
56213         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
56214         * lib/regcomp.c: Remove unnecessary uses of
56215         unsigned RE_TRANSLATE_TYPE.
56216         * lib/regex_internal.h: Likewise.
56217         * lib/regex_internal.c: Likewise.
56218         * lib/regexec.c: Likewise.
56219         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
56220
56221         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
56222
56223         * lib/regexec.c (find_recover_state): Remove unnecessary
56224         initialization.
56225         (transit_state_bkref): Make DFA a const pointer.
56226         (get_subexp): Likewise.
56227         (check_arrival): Likewise.
56228         (update_cur_sifted_state): Likewise.
56229         (re_search_internal): Likewise.
56230         (prune_impossible_nodes): Likewise.
56231         (acquire_init_state_context): Likewise.
56232         (proceed_next_node): Likewise.
56233         (set_regs): Likewise.
56234         (free_fail_stack_return): Likewise.
56235         (check_arrival_expand_ecl): Mark DFA parameter as const.
56236         (check_arrival_expand_ecl_sub): Likewise.
56237         (check_subexp_limits): Likewise.
56238         (sub_epsilon_src_nodes):  Likewise.
56239         (add_epsilon_src_nodes):  Likewise.
56240         (merge_state_array): Likewise.
56241         (update_regs): Likewise.
56242         (build_trtable): Likewise.
56243         (sift_states_backward): Mark MCTX parameter as const.
56244         (build_sifted_states): Likewise.
56245         (update_cur_sifted_state): Likewise.
56246         (sift_states_mkref): Likewise.
56247         (check_arrival_expand_ecl): Mark eclosure as const.
56248         (check_dst_limits_calc_pos_1): Likewise.
56249         * lib/regex_internal.h (re_match_context_t): Make dfa a const
56250         pointer.
56251
56252         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
56253
56254         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
56255         (transit_state_sb): Likewise.
56256         (transit_state_mb): Likewise.
56257         (sift_states_iter_mb): Likewise.
56258         (check_arrival_add_next_nodes): Likewise.
56259         (check_node_accept_bytes): Change first parameter to pointer-to-const.
56260         [_LIBC] (re_search_2_stub): Use mempcpy.
56261
56262         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
56263         mbrtowc for very simple UTF-8 case.
56264
56265         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
56266         a pointer-to-const.
56267         (re_acquire_state_context): Likewise.
56268         * lib/regex_internal.h: Adjust prototypes.
56269
56270         * lib/regex.c: Prevent using C++ compilers.
56271
56272         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
56273         (re_acquire_state_context): Likewise.
56274
56275 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56276
56277         * modules/regex (Depends-on): Add ssize_t.
56278
56279 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56280
56281         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
56282         translation table.
56283
56284 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56285
56286         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
56287
56288 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
56289             Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
56292         <sys/types.h> and <inttypes.h>.
56293
56294 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56295
56296         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
56297         `__error_t_defined', so argp.h will not typedef the former.
56298
56299 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
56300
56301         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
56302         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
56303         glibc names.  Even if glibc is changed to conform to POSIX, the
56304         traditional names will be available anyway, since regex depends on
56305         the extensions module.  Also, fix a longstanding typo in the
56306         implementation of Spencer ERE test #75 from grep 2.3.  Problems
56307         reported by Emanuele Giaquinta.  Also, change sense of cached
56308         variable, so that the message makes sense.
56309
56310 2006-03-24  Simon Josefsson  <jas@extundo.com>
56311
56312         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
56313         including some doc fixes.
56314         (base64_encode_alloc): Fix +1 bug on allocation failures.
56315
56316 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56317
56318         * lib/base64.c (base64_encode): Do not read past end of array with
56319         unsanitized input on systems with CHAR_BIT > 8.
56320
56321 2006-03-24  Eric Blake  <ebb9@byu.net>
56322
56323         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
56324
56325 2006-03-22  Karl Berry  <karl@gnu.org>
56326
56327         * config/srclist.txt (*setenv.[ch]): get from coreutils.
56328         * config/srclistvars.sh (COREUTILS): new var.
56329
56330 2006-03-17  Jim Meyering  <jim@meyering.net>
56331
56332         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
56333         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
56334
56335 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56336
56337         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
56338         no longer needs it.  Instead, check that regoff_t is as least
56339         as wide as ptrdiff_t.
56340
56341         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
56342         so that our regex.h stays compatible with the installed regex.
56343         This is helpful for installers who configure --without-included-regex.
56344         Problem reported by Emanuele Giaquinta.
56345
56346 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56347
56348         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
56349         Typedef to long int, not to off_, as POSIX will likely change
56350         in that direction.
56351
56352 2006-03-15  Eric Blake  <ebb9@byu.net>
56353
56354         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
56355
56356 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56357
56358         * lib/argp-help.c (validate_uparams): Fix typo
56359         * lib/argp-parse.c (argp_default_options): Consistently begin help
56360         messages with a lowercase letter.
56361
56362 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
56363
56364         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
56365         overrun buffers and shouldn't be used (much as gets shouldn't be
56366         used).
56367         * lib/time_r.c (asctime_r, ctime_r): Likewise.
56368
56369 2006-03-08  Simon Josefsson  <jas@extundo.com>
56370
56371         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
56372         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56373
56374 2006-03-08  Simon Josefsson  <jas@extundo.com>
56375
56376         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
56377         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56378
56379 2006-03-08  Simon Josefsson  <jas@extundo.com>
56380
56381         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
56382         signal that configure disabled the device.
56383
56384 2006-03-08  Simon Josefsson  <jas@extundo.com>
56385
56386         * build-aux/maint.mk: Fix refresh-po, to handle no translated
56387         languages.
56388
56389 2006-03-07  Simon Josefsson  <jas@extundo.com>
56390
56391         * modules/getopt (Depends-on): Add unistd.
56392
56393         * modules/unistd: New file.
56394
56395 2006-03-07  Simon Josefsson  <jas@extundo.com>
56396
56397         * modules/gc-random: New file.
56398
56399 2006-03-07  Simon Josefsson  <jas@extundo.com>
56400
56401         * m4/unistd_h.m4: New file.
56402
56403 2006-03-07  Simon Josefsson  <jas@extundo.com>
56404
56405         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
56406         test to be side-effect free by storing the result in the cache
56407         variable gl_cv_lib_readline, and moving the assignment of
56408         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
56409         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56410
56411 2006-03-07  Simon Josefsson  <jas@extundo.com>
56412
56413         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
56414         error on missing devices (the functions will return an error).
56415
56416         * m4/gc.m4: Move random stuff to gc-random.m4
56417
56418 2006-03-07  Simon Josefsson  <jas@extundo.com>
56419
56420         * lib/unistd_.h: New file.
56421
56422 2006-03-07  Simon Josefsson  <jas@extundo.com>
56423
56424         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
56425
56426 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56427
56428         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
56429         Problem reported by Juan Manuel Guerrero.
56430
56431 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56432
56433         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
56434         the unistd module.
56435         * lib/getlogin_r.c: Likewise.
56436         * lib/getlogin_r.h: Likewise.
56437         * lib/glob.c: Likewise.
56438         * lib/pagealign_alloc.c: Likewise.
56439         * lib/unistd_.h: Remove; no longer needed.
56440
56441 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56442
56443         * MODULES.html.sh (Support for systems lacking POSIX:2001):
56444         Add unistd.
56445         * modules/c-stack (Depends-on): Add unistd.
56446         * modules/getlogin_r: Likewise.
56447         * modules/glob: Likewise.
56448         * modules/pagealign_alloc: Likewise.
56449         * modules/unistd (Files): Remove lib/unistd_.h.
56450         (EXTRA_DIST): Remove.
56451         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
56452         need unistd_.h.
56453         (MOSTLYCLEANFILES): Remove unistd.h-t.
56454
56455 2006-03-03  Simon Josefsson  <jas@extundo.com>
56456
56457         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
56458
56459 2006-03-03  Simon Josefsson  <jas@extundo.com>
56460
56461         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
56462         libidn and bison.
56463
56464 2006-03-03  Simon Josefsson  <jas@extundo.com>
56465
56466         * build-aux/maint.mk: Add indent target.
56467
56468 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
56469
56470         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
56471         our replacement poll.h in any case, to avoid a differing
56472         declaration from a system header.  Seen on AIX.
56473
56474 2006-03-01  Simon Josefsson  <jas@extundo.com>
56475
56476         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
56477         <kasal@ucw.cz>.
56478
56479 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56480
56481         * modules/gettime (Depends-on): Add extensions module.
56482         * modules/nanosleep (Depends-on): Likewise.
56483         * modules/settime (Depends-on): Likewise.
56484
56485 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56486
56487         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
56488         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
56489         pedantically.
56490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56491         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
56492
56493         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
56494         not "==".  Reported by Ralf Wildenhues.
56495
56496 2006-03-01  Karl Berry  <karl@gnu.org>
56497
56498         * doc/Copyright/request-*: new files, synced from gnuorg.
56499
56500 2006-03-01  Karl Berry  <karl@gnu.org>
56501
56502         * config/srclist.txt (Copyright/*): new entries.
56503
56504 2006-02-28  Simon Josefsson  <jas@extundo.com>
56505
56506         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
56507
56508 2006-02-27  Simon Josefsson  <jas@extundo.com>
56509
56510         * lib/base64.h: Indent #define's.  From Jim Meyering
56511         <jim@meyering.net>.
56512
56513 2006-02-27  Jim Meyering  <jim@meyering.net>
56514
56515         Revert the change of 2006-02-24, so these files can continue
56516         to be sync'd from gettext.
56517         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
56518         of `config.h'.
56519
56520 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56521
56522         * modules/intprops: New file.
56523         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56524         Add intprops.
56525         * modules/getloadavg (Files): Remove lib/intprops.h.
56526         (Depends-on): Add intprops.
56527         * modules/human: Likewise.
56528         * modules/inttostr: Likewise.
56529         * modules/openat: Likewise.
56530         * modules/sig2str: Likewise.
56531         * modules/userspec: Likewise.
56532         * modules/utimecmp: Likewise.
56533         * modules/xnanosleep: Likewise.
56534         * modules/xstrtol: Likewise.
56535
56536 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
56537
56538         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
56539         * modules/lock-tests (TESTS): Use $(EXEEXT).
56540         * modules/tls-tests: Likewise.
56541         * modules/argp-tests: Likewise.
56542         (check_PROGRAMS): New var, replacing...
56543         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
56544
56545 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56546
56547         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
56548         `config.h'.
56549
56550 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56551
56552         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
56553
56554 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56555
56556         Sync from coreutils.
56557         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
56558         gl_CHDIR_SAFER.
56559
56560 2006-02-22  Jim Meyering  <jim@meyering.net>
56561
56562         Sync from coreutils.
56563         * m4/chdir-safer.m4: New file.
56564
56565 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56566
56567         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
56568         AT_FDCWD exceeds INT_MAX.
56569         * lib/openat.h (AT_FDCWD): Likewise.
56570
56571 2006-02-17  Eric Blake  <address@hidden>
56572
56573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
56574
56575 2006-02-16  Simon Josefsson  <jas@extundo.com>
56576
56577         * modules/getaddrinfo (Depends-on): Add sys_socket.
56578
56579 2006-02-15  Simon Josefsson  <jas@extundo.com>
56580
56581         * build-aux/maint.mk: Add dsyntax-check rule.
56582
56583 2006-02-15  Eric Blake  <ebb9@byu.net>
56584
56585         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
56586         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
56587         'present but cannot compile' warnings on cygwin.
56588         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
56589         use ws2tcpip.h if sys/socket.h works.
56590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
56591         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
56592
56593 2006-02-14  Simon Josefsson  <jas@extundo.com>
56594
56595         * modules/maintainer-makefile (Files): Rename.
56596
56597         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
56598         and (the local) Makefile.cfg to maint-cfg.mk.
56599
56600         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
56601         to the latter.
56602
56603         * modules/maintainer-makefile: New module.
56604
56605         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
56606         severaly stripped to make it possible to build it up from scratch
56607         with reliable tests.
56608
56609         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
56610         fixes to permit overriding the default actions when configure and
56611         makefile are not available.
56612
56613 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56614
56615         Sync from coreutils.
56616         * modules/lstat (Depends-on): Don't depend on xalloc.
56617         (License): Change from GPL to LGPL, since this is now simply a
56618         replacement for a libc function.
56619
56620 2006-02-14  Jim Meyering  <jim@meyering.net>
56621
56622         Sync from coreutils.
56623
56624         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
56625         failure on deficient systems, and simplify gnulib lgpl dependencies.
56626         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
56627         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
56628
56629         * lib/xalloc-die.c: Remove unused definition of N_.
56630
56631 2006-02-14  Jim Meyering  <jim@meyering.net>
56632
56633         Sync from coreutils.
56634         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
56635         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
56636         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
56637         double-quote uses of that variable, to accommodate the rare case in
56638         which getmntent is available in none of the libraries checked.  This
56639         happens at least on FreeBSD 5.0.
56640
56641 2006-02-13  Simon Josefsson  <jas@extundo.com>
56642
56643         * gnulib-tool (Usage): Fix --import, from
56644         karl@freefriends.org (Karl Berry).
56645
56646 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56647
56648         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
56649
56650 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
56651
56652         * lib/argp-namefrob.h: Restore changes accidentally lost during the
56653         "autoupdate" on 2005-12-12.
56654
56655 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
56656
56657         * modules/closeout (Depends-on): Remove atexit.
56658
56659 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
56660
56661         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
56662         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
56663
56664 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56665
56666         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
56667         __EXTENSIONS__ if this causes compilation to fail.  Problem
56668         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
56669         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
56670
56671 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
56672
56673         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
56674         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
56675         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
56676         All uses changed.
56677
56678 2006-01-26  Simon Josefsson  <jas@extundo.com>
56679
56680         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
56681         prototype is visible on mingw32.
56682
56683         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
56684         for mingw32.
56685
56686         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
56687         mingw32).
56688
56689 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56690
56691         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
56692         attempt to open for write; this always fails, at least on POSIX
56693         hosts.  This reinstates the 2006-01-09 change, which was
56694         inadvertently removed.
56695
56696 2006-01-26  Bruno Haible  <bruno@clisp.org>
56697
56698         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
56699         Reported by Paul Eggert.
56700
56701 2006-01-26  Bruno Haible  <bruno@clisp.org>
56702             Paul Eggert  <eggert@cs.ucla.edu>
56703
56704         * lib/stdbool_.h (_Bool)
56705         [(! (defined __cplusplus || defined __BEOS__)
56706           && !defined __GNUC__
56707           && !(defined __HP_cc || defined __xlc__
56708                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
56709                || defined __sgi))]:
56710         #define to signed char in these cases too; this simplifies
56711         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
56712         etc., separately) and makes it more conservative.
56713
56714 2006-01-25  Simon Josefsson  <jas@extundo.com>
56715
56716         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
56717         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
56718         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
56719
56720 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56721
56722         * lib/argp-namefrob.h: Bugfix. Remove stray #
56723
56724 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56725
56726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
56727         so that we test the test.
56728         Check for yet another HP-UX cc bug involving *bool |= bool.
56729
56730 2006-01-25  Karl Berry  <karl@gnu.org>
56731
56732         * config/srclist.txt (vasnprintf.c): sync lost.
56733
56734 2006-01-25  Jim Meyering  <jim@meyering.net>
56735
56736         Sync from the stable (b5) branch of coreutils:
56737
56738         * lib/fts.c (fts_children): Don't let close() clobber errno from
56739         failed fchdir().
56740
56741         * lib/fts.c (fts_stat): When following a symlink-to-directory,
56742         don't necessarily interpret stat-fails+lstat-succeeds as indicating
56743         a dangling symlink.  That can also happen at least for ELOOP.
56744         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
56745         FYI, this bug predates the inclusion of fts.c in coreutils.
56746
56747         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
56748         in their own block, so pre-c99 compilers don't object.
56749
56750         Avoid the double-free (first in fts_read, second in fts_close) that
56751         would occur when an `active' directory is made inaccessible (e.g.,
56752         via chmod a-x) during a traversal.
56753         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
56754         before returning.  Reproduce this failure by
56755         mkdir -p a/b; cd a; chmod a-x . b
56756         Reported by Stavros Passas.
56757
56758 2006-01-25  Jim Meyering  <jim@meyering.net>
56759
56760         * lib/fileblocks.c: Remove more useless parentheses.
56761         * lib/readutmp.h: Likewise.
56762
56763 2006-01-25  Bruno Haible  <bruno@clisp.org>
56764
56765         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
56766         warnings.
56767         Reported by Paul Eggert.
56768
56769 2006-01-25  Bruno Haible  <bruno@clisp.org>
56770
56771         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
56772         rid of a trap command. For Solaris sh.
56773         Reported by Mark D. Baushke <mdb@gnu.org>.
56774
56775 2006-01-24  Simon Josefsson  <jas@extundo.com>
56776
56777         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
56778         Bruno.
56779
56780 2006-01-24  Karl Berry  <karl@gnu.org>
56781
56782         * config/srclist.txt (argp-namefrob.h): sync lost.
56783
56784 2006-01-24  Jim Meyering  <jim@meyering.net>
56785
56786         * modules/openat (Files): Add lib/intprops.h.
56787         From Mark D. Baushke.
56788
56789 2006-01-24  Jim Meyering  <jim@meyering.net>
56790
56791         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
56792         Reported by Mark D. Baushke.
56793
56794 2006-01-24  Jim Meyering  <jim@meyering.net>
56795
56796         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
56797
56798 2006-01-24  Bruno Haible  <bruno@clisp.org>
56799
56800         * modules/strnlen (Maintainer): Change from glibc to all.
56801
56802 2006-01-24  Bruno Haible  <bruno@clisp.org>
56803
56804         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
56805         Patch by Paul Eggert.
56806
56807 2006-01-24  Bruno Haible  <bruno@clisp.org>
56808
56809         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
56810         already has it.
56811         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
56812         2005-11-26.
56813
56814         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
56815         'signed char' to avoid problems with the built-in _Bool type.
56816         Reported by Paul Eggert on 2005-11-26.
56817
56818 2006-01-24  Bruno Haible  <bruno@clisp.org>
56819
56820         * gnulib-tool (func_import): Avoid constructing complicated sed
56821         expressions inside backquote.
56822         Report and solution by Mark D. Baushke <mdb@gnu.org>.
56823
56824 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
56825
56826         These changes imported from libc.
56827         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
56828         test and two separate function calls.
56829         * lib/strndup.c (__strndup): Add libc_hidden_def.
56830
56831 2006-01-23  Simon Josefsson  <jas@extundo.com>
56832
56833         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
56834         Remove the test_*_SOURCES variable: automake infers it by default.
56835         * modules/tls-tests: Likewise.
56836
56837 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         Work around porting bugs reported by Dieter in
56840         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
56841         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
56842         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
56843         Include "getopt.h" first, to check interface.
56844         (getenv): Declare only if defined HAVE_DECL_GETENV &&
56845         !HAVE_DECL_GETENV.
56846         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
56847         (__strndup): Revert to K&R-style function dfns, the glibc style.
56848         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
56849         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
56850         Include strnlen.h first, to get prototype properly.
56851         (strnlen): Renamed from __strnlen.
56852         Remove weak alias.
56853
56854 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56855
56856         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
56857
56858 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56859
56860         * config/srclist.txt: Adjust to reflect glibc reorganization.
56861         This affects only comments.
56862
56863 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56864
56865          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
56866          Reported by Bruce Korb <bkorb@gnu.org>.
56867
56868 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56869
56870         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
56871         to pacify gcc -Wswitch-default.
56872
56873 2006-01-22  Bruno Haible  <bruno@clisp.org>
56874
56875         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
56876         temporary buffer for sprintf, take into account the precision also
56877         for 'd', 'i', 'u', 'o', 'x', 'X'.
56878
56879 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
56880
56881         * modules/argp-tests: New module
56882         * tests/test-argp.c: New file
56883         * tests/test-argp-2.sh: New file
56884
56885 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
56886
56887         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
56888         (__argp_base_name): Removed
56889         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
56890         typo.
56891         (__argp_base_name): Provide macro definition or extern declaration
56892         depending on the configuration
56893
56894 2006-01-20  Simon Josefsson  <jas@extundo.com>
56895
56896         * modules/inet_ntop (Depends-on): Depend on sys_socket.
56897
56898 2006-01-20  Simon Josefsson  <jas@extundo.com>
56899
56900         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
56901
56902 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56903
56904         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
56905         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
56906         Suggested by Bruno Haible.
56907
56908 2006-01-20  Karl Berry  <karl@gnu.org>
56909
56910         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
56911         until changes propagate, I guess.
56912
56913 2006-01-19  Simon Josefsson  <jas@extundo.com>
56914
56915         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
56916
56917 2006-01-19  Simon Josefsson  <jas@extundo.com>
56918
56919         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
56920
56921 2006-01-19  Simon Josefsson  <jas@extundo.com>
56922
56923         * gnulib-tool: Set check_PROGRAMS.
56924
56925         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56926         modules/des-tests, modules/gc-arcfour-tests,
56927         modules/gc-arctwo-tests, modules/gc-des-tests,
56928         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56929         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56930         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56931         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56932         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56933         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
56934         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
56935         test_*_SOURCES.
56936
56937 2006-01-18  Simon Josefsson  <jas@extundo.com>
56938
56939         * modules/socklen (Depends-on): Depend on sys_socket.
56940
56941 2006-01-18  Simon Josefsson  <jas@extundo.com>
56942
56943         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56944         modules/des-tests, modules/gc-arcfour-tests,
56945         modules/gc-arctwo-tests, modules/gc-des-tests,
56946         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56947         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56948         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56949         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56950         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56951         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
56952         $(EXEEXT) to automake TESTS variable, for mingw32.
56953
56954 2006-01-17  Simon Josefsson  <jas@extundo.com>
56955
56956         * modules/socklen (Include): Need sys/socket.h.
56957
56958 2006-01-17  Bruno Haible  <bruno@clisp.org>
56959
56960         * modules/ssize_t (Include): Add <sys/types.h>.
56961
56962 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
56963
56964         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
56965         it's not portable and it doesn't work with cross-compiles.
56966         Problem reported by Bruno Haible.  Fix missing-$ typo in
56967         'test "gl_cv_ignore_unused_libraries" ...' that prevented
56968         -zignore from being used with Sun's C compiler.
56969
56970 2006-01-12  Simon Josefsson  <jas@extundo.com>
56971
56972         * lib/base64.c: Fix warning, reported by Bruno Haible
56973         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
56974
56975 2006-01-12  Bruno Haible  <bruno@clisp.org>
56976
56977         * modules/ldd: New file.
56978         * build-aux/ldd.sh.in: New file.
56979         * MODULES.html.sh (Support for building libraries and executables): Add
56980         ldd.
56981
56982 2006-01-12  Bruno Haible  <bruno@clisp.org>
56983
56984         * m4/ldd.m4: New file.
56985
56986 2006-01-12  Bruno Haible  <bruno@clisp.org>
56987
56988         * gnulib-tool (func_import, func_create_testdir): Don't go into an
56989         endless loop while replacing $auxdir with build-aux.
56990
56991 2006-01-11  Simon Josefsson  <jas@extundo.com>
56992
56993         * lib/stdint_.h (SIZE_MAX): Add missing (.
56994
56995 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56996
56997         Sync from coreutils.
56998         * lib/md5.c: Fix commentary typos.
56999         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57000         * lib/md5.h (__attribute__): Remove; unused.
57001         * lib/sha1.c: Fix commentary to match md5 better.
57002         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57003         so that we don't need to worry about alignment.  All uses changed.
57004         This merges the 2005-10-28 md5 change into sha1.
57005
57006 2006-01-11  Jim Meyering  <jim@meyering.net>
57007
57008         Sync from coreutils.
57009         * lib/md5.c (OP): Fix spacing.
57010
57011 2006-01-11  Bruno Haible  <bruno@clisp.org>
57012
57013         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57014         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57015         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57016
57017 2006-01-11  Bruno Haible  <bruno@clisp.org>
57018
57019         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57020         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57021         the "early" section as well.
57022
57023 2006-01-11  Bruno Haible  <bruno@clisp.org>
57024
57025         Avoid "ar: no archive members specified" error on MacOS X.
57026         * gnulib-tool (func_modules_add_dummy): New function.
57027         (func_import, func_create_testdir): Invoke it.
57028
57029 2006-01-11  Bruno Haible  <bruno@clisp.org>
57030
57031         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57032         with $auxdir in AC_CONFIG_FILES statements.
57033
57034 2006-01-11  Bruno Haible  <bruno@clisp.org>
57035
57036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57037         Initialize also noinst_HEADERS to empty.
57038
57039 2006-01-11  Bruno Haible  <bruno@clisp.org>
57040
57041         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57042         variables.
57043         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57044         autoreconf.
57045
57046 2006-01-11  Bruno Haible  <bruno@clisp.org>
57047
57048         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
57049         overridable by the user.
57050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57051
57052 2006-01-10  Simon Josefsson  <jas@extundo.com>
57053
57054         * modules/sys_socket: New file.
57055
57056 2006-01-10  Simon Josefsson  <jas@extundo.com>
57057
57058         * m4/sys_socket_h.m4: New file.
57059
57060 2006-01-10  Simon Josefsson  <jas@extundo.com>
57061
57062         * lib/socket_.h: New file.
57063
57064 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57065
57066         * modules/readutmp (Maintainer): Add myself.
57067
57068 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
57071         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
57072         People who are still concerned with buggy memcmp implementations
57073         can invoke gl_FUNC_MEMCMP themselves.
57074
57075 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * lib/regex_internal.h (BITSET_WORD_BITS):
57078         Work around a bug in 64-bit PGC (before version 6.1-2), where the
57079         preprocessor mishandles large unsigned values as if they were signed.
57080         Problem reported by Claudio Fontana in
57081         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
57082
57083 2006-01-10  Jim Meyering  <jim@meyering.net>
57084
57085         Avoid the double-free (first in fts_read, second in fts_close) that
57086         would occur when an `active' directory is made inaccessible (e.g.,
57087         via chmod a-x) during a traversal.
57088         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57089         before returning.  Reproduce this failure by
57090         mkdir -p a/b; cd a; chmod a-x . b
57091         Reported by Stavros Passas.
57092
57093         Sync from coreutils.
57094         * lib/sha1.c: Tweak grammar in a comment.
57095
57096 2006-01-10  Jim Meyering  <jim@meyering.net>
57097
57098         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
57099         Patch by Joerg Sonnenberger.
57100
57101 2006-01-10  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/readutmp: Depend on module free.
57104         * modules/strtok_r: Depend on module restrict.
57105
57106 2006-01-10  Bruno Haible  <bruno@clisp.org>
57107
57108         * modules/gettext (configure.ac): Add an invocation of
57109         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
57110
57111 2006-01-10  Bruno Haible  <bruno@clisp.org>
57112
57113         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
57114         Reported by Werner Lemberg <wl@gnu.org>.
57115
57116 2006-01-10  Bruno Haible  <bruno@clisp.org>
57117
57118         * lib/localcharset.c: Update from GNU gettext.
57119
57120 2006-01-10  Bruno Haible  <bruno@clisp.org>
57121
57122         * lib/argp.h (__const): Remove macro. Use const instead.
57123         * lib/argp-fmtstream.h (__const): Likewise.
57124         * lib/glob_.h (__const): Remove macro.
57125         * lib/glob-libc.h: Use const instead of __const.
57126
57127 2006-01-10  Bruno Haible  <bruno@clisp.org>
57128
57129         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
57130         variable.
57131         Needed to avoid an automake error regarding the 'gettext' module.
57132
57133 2006-01-09  Simon Josefsson  <jas@extundo.com>
57134
57135         * modules/inet_ntop (Depends-on): Add restrict.
57136
57137 2006-01-09  Simon Josefsson  <jas@extundo.com>
57138
57139         * modules/gc-rijndael-tests (License): Put under LGPL.
57140
57141         * modules/gc-des-tests (License): Likewise.
57142
57143         * modules/gc-arcfour-tests (License): Likewise.
57144
57145         * modules/gc-arctwo-tests (License): Likewise.
57146
57147         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
57148
57149         * modules/gc-hmac-sha1-tests (Files): Likewise.
57150
57151         * modules/gc-hmac-md5-tests (License): Likewise.
57152
57153         * modules/gc-sha1-tests (License): Likewise.
57154
57155         * modules/gc-md5-tests (License): Likewise.
57156
57157         * modules/gc-md4-tests (License): Likewise.
57158
57159         * modules/gc-md2-tests (License): Likewise.
57160
57161         * modules/gc-tests (License): Likewise.
57162
57163         * modules/des-tests (License): Likewise.
57164
57165         * modules/md4-tests (License): Likewise.
57166
57167         * modules/md2-tests (License): Likewise.
57168
57169 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57170
57171         Sync from coreutils:
57172
57173         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
57174         * modules/lib-ignore: New file.
57175         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
57176         chdir-safer.m4, lchmod.m4.
57177         * modules/openat: Add mkdirat.c, openat-priv.h.
57178
57179 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57180
57181         Sync from coreutils.
57182         * m4/lib-ignore.m4: New file.
57183         * m4/lchmod.m4: New file.
57184
57185 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57186
57187         Sync from coreutils.
57188         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
57189         for write access: POSIX says that must fail.
57190         * lib/fts.c (diropen): Likewise.
57191         * lib/save-cwd.c (save_cwd): Likewise.
57192         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
57193         well, for minor improvements on hosts that lack O_DIRECTORY.
57194         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
57195         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
57196         Fall back on chown if open failed with EACCES.
57197
57198         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
57199         Report an error at compile-time if only a 1-second nominal clock
57200         resolution is found.
57201
57202         * lib/lchmod.h: New file.
57203         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
57204         (make_dir_parents): Use lchown rather than chown, and
57205         lchmod rather than chmod.
57206
57207         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
57208         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
57209         "proc" reported by n0dalus.
57210
57211         * lib/mountlist.c: Include <limits.h>.
57212         (dev_from_mount_options)
57213         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
57214         New function.  It no longer assumes "dev=" has the System V meaning
57215         on Linux (since it doesn't).  It also parses "dev=" more carefully.
57216         (read_file_system_list)
57217         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
57218         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
57219         dev= in that case.
57220
57221         * lib/posixtm.h (PDS_PRE_2000): New macro.
57222         * lib/posixtm.c (year): Arg is now syntax_bits rather than
57223         allow_century.  All usages changed.  Reject dates outside the range
57224         1969-1999 if PDS_PRE_2000 is used.
57225
57226 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57227
57228         Sync from coreutils.
57229         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
57230         (Time of day items): Mention the possibility of leap seconds.
57231         Problem reported by Dr. David Alan Gilbert.
57232
57233 2006-01-09  Jim Meyering  <jim@meyering.net>
57234
57235         Sync from coreutils.
57236
57237         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
57238
57239         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
57240
57241         * lib/modechange.c (mode_compile): Reject an invalid mode string
57242         that starts with an octal digit.  From Andreas Gruenbacher.
57243
57244         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
57245         and dup to open_safer and dup_safer, respectively.
57246         (openat_permissive): Fix typo in comment.
57247
57248         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
57249         "gettext.h"; either no longer needed or are guaranteed by openat.h.
57250         (_): Remove; no longer needed.
57251         (openat): Renamed from rpl_openat; no need for rpl_openat
57252         since openat.h renames openat for us.
57253         Replace most of the body with a call to openat_permissive,
57254         to avoid duplicate code.
57255         Port to (probably hypothetical) environments were mode_t is
57256         wider than int.
57257         (openat_permissive): Require mode arg, so that we can check
57258         types better.  Put it just after flags.  Change cwd failure
57259         indicator from pointer-to-bool to pointer-to-errno-value.
57260         All callers changed.
57261         Invoke openat_save_fail and/or openat_restore_fail if
57262         cwd_errno is null, so that openat can call us.
57263         (openat_permissive, fdopendir, fstatat, unlinkat):
57264         Simplify errno handling to avoid some duplicate code,
57265         as it's OK to set errno on success.
57266         * lib/openat.h: Revamp code so that function macros depend on
57267         __OPENAT_PREFIX only, not also on AT_FDCWD.
57268         (openat_ro): Remove.  Caller changed to use openat_permissive.
57269         (openat_permissive): Now a macro, if not a function.
57270         (openat_restore_fail, openat_save_fail): Now always functions,
57271         since mkdirat needs them even if __OPENAT_PREFIX is defined.
57272
57273         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
57274         and openat.c.
57275         * lib/mkdirat.c: Include openat-priv.h.
57276         Remove definitions of macros defined therein.
57277         * lib/openat.c: Likewise.
57278
57279         * lib/mkdirat.c (mkdirat): New file and function.
57280         * lib/openat.h (mkdirat): Declare.
57281
57282         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
57283
57284         * lib/openat.h (openat_permissive): Declare.
57285         (openat_ro): Define.
57286
57287         * lib/openat.c (EXPECTED_ERRNO): New macro.
57288         (openat_permissive): New function -- used in remove.c rewrite.
57289         (all functions): Set errno just before returning, only if there
57290         was an actual failure.
57291         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
57292
57293         Emulate openat-family functions using Linux's procfs, if possible.
57294         Idea and some code based on Ulrich Drepper's glibc changes.
57295
57296         * lib/openat.c: (BUILD_PROC_NAME): New macro.
57297         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
57298         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
57299         before falling back on save_cwd and restore_cwd.
57300         (fdopendir, fstatat, unlinkat): Likewise.
57301
57302         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
57303         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
57304
57305         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
57306         as second argument to va_arg.  Otherwise, some versions of gcc
57307         warn that `if this code is reached, the program will abort'.
57308
57309 2006-01-09  Jim Meyering  <jim@meyering.net>
57310
57311         Sync from coreutils.
57312         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
57313         Require openat-priv.h.
57314
57315 2006-01-09  Bruno Haible  <bruno@clisp.org>
57316
57317         * modules/strnlen (Include): Use strnlen.h.
57318
57319 2006-01-09  Bruno Haible  <bruno@clisp.org>
57320
57321         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
57322
57323 2006-01-09  Bruno Haible  <bruno@clisp.org>
57324
57325         * lib/sysexit_.h (EX_OK): New macro.
57326         Suggested by Martin Lambers <marlam@marlam.de>.
57327
57328 2006-01-09  Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
57331         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
57332
57333 2006-01-09  Bruno Haible  <bruno@clisp.org>
57334
57335         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
57336         numbers.
57337
57338 2006-01-09  Bruno Haible  <bruno@clisp.org>
57339
57340         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
57341         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
57342         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
57343         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
57344
57345 2006-01-09  Bruno Haible  <bruno@clisp.org>
57346
57347         * build-aux/javacomp.sh.in: New file, moved from lib/.
57348         * modules/javacomp-script (Files): Update.
57349         (configure.ac): Add AC_CONFIG_FILES invocation.
57350         (EXTRA_DIST): Remove variable.
57351
57352         * build-aux/javaexec.sh.in: New file, moved from lib/.
57353         * modules/javaexec (Files): Update.
57354         (configure.ac): Add AC_CONFIG_FILES invocation.
57355         (EXTRA_DIST): Remove javaexec.sh.in.
57356
57357         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
57358         * modules/csharpcomp-script (Files): Update.
57359         (configure.ac): Add AC_CONFIG_FILES invocation.
57360         (EXTRA_DIST): Remove variable.
57361
57362         * build-aux/csharpexec.sh.in: New file, moved from lib/.
57363         * modules/csharpexec (Files): Update.
57364         (configure.ac): Add AC_CONFIG_FILES invocation.
57365         (EXTRA_DIST): Remove csharpexec.sh.in.
57366
57367 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57368
57369         Sync from coreutils.
57370
57371         Add POSIX ACL support
57372         * lib/acl.h (copy_acl, set_acl): Add declarations.
57373         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
57374         systems other than Linux.
57375         (chmod_or_fchmod): New function: use fchmod when possible,
57376         and chmod otherwise.
57377         (file_has_acl): Add a POSIX ACL implementation, with a
57378         Linux-specific subcase.
57379         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
57380         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
57381         acls are unsupported.
57382         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
57383         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
57384         are unsupported.
57385
57386 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57387
57388         Sync from coreutils.
57389         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
57390
57391 2006-01-07  Bruno Haible  <bruno@clisp.org>
57392
57393         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
57394         gl_EARLY.
57395
57396 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57397
57398         * lib/strftime.c (tzname): Don't declare if it is already #defined.
57399         Problem reported for Mingw by Mark Junker.
57400
57401 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57402
57403         * README: Gnulib normally doesn't generate a tarball.
57404
57405 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
57406
57407         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
57408         long int, not int, for nanosecond counts, so that people who are
57409         used to POSIX struct timespec won't be surprised.  Reported by Jim
57410         Meyering.
57411
57412 2005-12-28  Bruno Haible  <bruno@clisp.org>
57413
57414         * build-aux/config.rpath: Update from GNU gettext.
57415
57416 2005-12-16  Jim Meyering  <jim@meyering.net>
57417
57418         * modules/fprintftime: New module.
57419         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
57420
57421 2005-12-16  Jim Meyering  <jim@meyering.net>
57422
57423         * m4/fprintftime.m4: New file.
57424
57425 2005-12-16  Jim Meyering  <jim@meyering.net>
57426
57427         * lib/fprintftime.c, lib/fprintftime.h: New files.
57428
57429 2005-12-15  Simon Josefsson  <jas@extundo.com>
57430
57431         * modules/socklen (configure.ac): Fix M4 macro name, to align with
57432         new m4/socklen.m4.
57433
57434 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57435
57436         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
57437         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
57438
57439 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57440
57441         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
57442         * lib/argp-help.c (fill_in_uparams): Check if the constructed
57443         struct uparams is valid. Fall back to the default values if it is
57444         not.
57445
57446 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57447
57448         * modules/argp (Files): Add argp-pin.c
57449         (Depends-on): dirname
57450         (lib_SOURCES): Add argp-pin.c
57451
57452 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57453
57454         * m4/argp.m4:  Check if program_invocation_name and
57455         program_invocation_short_name are declared and define appropriate
57456         macros if they are not.
57457
57458 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57459
57460         * lib/argp-help.c (__argp_base_name): New function
57461         (__argp_short_program_name): Rewrite using __argp_base_name
57462         * lib/argp-namefrob.h: Define program_invocation_name and
57463         program_invocation_short_name if requested
57464         (__argp_base_name): Add prototype
57465         * lib/argp-parse.c (argp_def): Use gettext wrappers
57466         (argp_default_parser): Use __argp_base_name
57467         * lib/argp-pin.c: New file. Defines program_invocation_name and
57468         program_invocation_short_name on systems that lack them.
57469
57470 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57471
57472         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
57473         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57474         porting problem reported by Georg Schwarz in
57475         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57476
57477 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57478
57479         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
57480         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57481         porting problem reported by Georg Schwarz in
57482         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57483
57484 2005-12-05  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
57487         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
57488         Reported by Mark Junker <mjscod@gmx.de>.
57489
57490 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
57491
57492         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
57493         Use implementation from Albert Chin, with some
57494         comments/corrections by Stepan Kasal and myself.
57495
57496 2005-12-02  Bruno Haible  <bruno@clisp.org>
57497
57498         * gnulib-tool (func_import): Accept GPLed build tool modules when
57499         --lgpl is given.
57500         * modules/csharpcomp-script: New file.
57501         * modules/csharpcomp: Depend on it.
57502         * modules/javacomp-script: New file.
57503         * modules/javacomp: Depend on it.
57504         Suggested by Simon Josefsson.
57505
57506 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
57507
57508         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
57509         statement, to work around an HP-UX 10.20 compiler bug reported by
57510         Peter O'Gorman.
57511
57512 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
57513
57514         * modules/savedir (Depends-on): Add openat.
57515
57516 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
57517
57518         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
57519         (uintmax_t) [defined uintmax_t]: Do not declare.
57520         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
57521         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
57522         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
57523         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
57524         sake of portability to weird hosts that C allows (though we don't
57525         know of any practical examples).
57526
57527         * lib/savedir.h (fdsavedir): New decl.
57528         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
57529         contains most of the former guts of savedir.
57530         (savedir): Use savedirstream.
57531         Include "openat.h".
57532
57533 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57534
57535         * modules/obstack (Files): Add m4/ulonglong.m4.
57536         Problem reported by Davide Angelocola.
57537
57538 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57539
57540         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
57541         coreutils no longer futzes with rounding modes.
57542
57543 2005-11-14  Jim Meyering  <jim@meyering.net>
57544
57545         * lib/mkstemp-safer.c: Include <config.h>, required for possible
57546         replacement of mkstemp.
57547
57548 2005-11-10  Simon Josefsson  <jas@extundo.com>
57549
57550         * lib/readline.c: Remove EOL.
57551
57552 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57553
57554         * modules/gethrxtime (Depends-on): Add gettime.
57555
57556 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57557
57558         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
57559         or gettimeofday; no longer needed.
57560
57561 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57562
57563         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
57564         time business.
57565         (gethrxtime) [! (HAVE_NANOUPTIME
57566         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
57567         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
57568         our own approximation.
57569
57570 2005-11-08  Eric Blake  <ebb9@byu.net>
57571
57572         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
57573
57574 2005-11-08  Eric Blake  <ebb9@byu.net>
57575
57576         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
57577
57578 2005-11-04  Bruno Haible  <bruno@clisp.org>
57579
57580         * gnulib-tool: Implement --update mode.
57581
57582 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57583
57584         Fix porting problem reported by Theodoros V. Kalamatianos.
57585         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
57586         Don't assume that futimes failing means we must fail.
57587
57588 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
57591         variables to suggest the intended function of the PATH_MAX check.
57592
57593 2005-10-30  Kean Johnston  <jkj@sco.com>
57594
57595         Trivial changes to support SCO systems.
57596         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
57597         as PATH_MAX.
57598         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
57599         where __ptr is null when no I/O is pending.
57600
57601 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57602
57603         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
57604         leave errno alone.  Problem reported by Dmitry V. Levin.
57605
57606 2005-10-28  Simon Josefsson  <jas@extundo.com>
57607
57608         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
57609         Test more.
57610
57611         * tests/test-gc-md2.c, tests/test-md2.c: New files.
57612
57613         * modules/md2, modules/md2-tests: New files.
57614
57615 2005-10-28  Simon Josefsson  <jas@extundo.com>
57616
57617         * m4/inet_ntop.m4: More tests.
57618
57619         * m4/gc-md2.m4, md2.m4: New file.
57620
57621 2005-10-28  Simon Josefsson  <jas@extundo.com>
57622
57623         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
57624         "restrict" keywords, as per POSIX.  Protect the function
57625         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
57626         Don't use K&R prototypes.  Check the sprintf return values.
57627         Re-define EAFNOSUPPORT if not present.  Indent.
57628
57629         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
57630         suggested by Bruno Haible <bruno@clisp.org>.
57631
57632         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
57633
57634         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
57635
57636         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
57637         libgcrypt).
57638
57639         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
57640
57641         * lib/md2.h, lib/md2.c: New files.
57642
57643 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
57644
57645         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
57646         errno alone.  Problem reported by Frederic Jolliton.
57647
57648 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57649
57650         * modules/verify (License): Change from GPL to LGPL.  This is a
57651         tiny module and there are apparently near-equivalents that are
57652         under the BSD license.
57653
57654 2005-10-24  Simon Josefsson  <jas@extundo.com>
57655
57656         * modules/sha1: Relicense to LGPL.
57657
57658 2005-10-24  Simon Josefsson  <jas@extundo.com>
57659
57660         * lib/md4.h: Shrink buffer size, now that we changed the type.
57661
57662 2005-10-23  Simon Josefsson  <jas@extundo.com>
57663
57664         * gnulib-tool (func_import): Fix --tests-base.
57665
57666 2005-10-22  Simon Josefsson  <jas@extundo.com>
57667
57668         * modules/arcfour (Depends-on): Need stdint.
57669
57670 2005-10-22  Simon Josefsson  <jas@extundo.com>
57671
57672         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
57673         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
57674
57675 2005-10-22  Simon Josefsson  <jas@extundo.com>
57676
57677         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
57678         suggested by Bruno Haible <bruno@clisp.org>.
57679
57680 2005-10-22  Simon Josefsson  <jas@extundo.com>
57681
57682         * lib/crc.h: Include stddef.h, for size_t.
57683
57684 2005-10-22  Simon Josefsson  <jas@extundo.com>
57685
57686         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
57687         arcfour_context struct (simplify test vector testing in GNU
57688         Shishi).
57689
57690 2005-10-21  Simon Josefsson  <jas@extundo.com>
57691
57692         * modules/des, modules/des-tests: New files.
57693
57694         * modules/gc-des, modules/gc-des-tests: New files.
57695
57696         * tests/test-des.c, tests/test-gc-des.c: New file.
57697
57698 2005-10-21  Simon Josefsson  <jas@extundo.com>
57699
57700         * modules/arctwo, modules/arctwo-tests: New files.
57701
57702         * tests/test-arctwo.c: New file.
57703
57704         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
57705
57706         * tests/test-gc-arctwo.c: New file.
57707
57708 2005-10-21  Simon Josefsson  <jas@extundo.com>
57709
57710         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
57711         Bruno Haible <bruno@clisp.org>.
57712
57713         * m4/gc-des.m4: New file.
57714
57715 2005-10-21  Simon Josefsson  <jas@extundo.com>
57716
57717         * m4/arctwo.m4: New file.
57718
57719         * m4/gc-arctwo.m4: New file.
57720
57721 2005-10-21  Simon Josefsson  <jas@extundo.com>
57722
57723         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
57724         block.
57725
57726 2005-10-21  Simon Josefsson  <jas@extundo.com>
57727
57728         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
57729         <bruno@clisp.org>.
57730
57731         * lib/hmac-sha1.c (hmac_sha1): Likewise.
57732
57733         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
57734         Bruno Haible <bruno@clisp.org>.
57735
57736         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
57737         <bruno@clisp.org>.
57738
57739 2005-10-21  Simon Josefsson  <jas@extundo.com>
57740
57741         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
57742
57743 2005-10-21  Simon Josefsson  <jas@extundo.com>
57744
57745         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
57746
57747 2005-10-21  Simon Josefsson  <jas@extundo.com>
57748
57749         * lib/des.h, lib/des.c: New files.
57750
57751         * lib/gc-gnulib.c: Support DES.c
57752
57753 2005-10-21  Simon Josefsson  <jas@extundo.com>
57754
57755         * lib/arctwo.h, lib/arctwo.c: New files.
57756
57757         * lib/gc-gnulib.c: Support ARCTWO.
57758
57759 2005-10-21  Simon Josefsson  <jas@extundo.com>
57760
57761         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
57762         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57763
57764 2005-10-21  Simon Josefsson  <jas@extundo.com>
57765
57766         * gnulib-tool (func_import, func_create_testdir): Define automake
57767         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
57768         Makefile.am snippet),
57769         suggested by Bruno Haible <bruno@clisp.org>.
57770
57771         * modules/gc (Makefile.am): Use it.
57772
57773 2005-10-21  Bruno Haible  <bruno@clisp.org>
57774
57775         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
57776         patch.
57777
57778 2005-10-19  Simon Josefsson  <jas@extundo.com>
57779
57780         * tests/test-gc-rijndael.c: New file.
57781
57782         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
57783
57784 2005-10-19  Simon Josefsson  <jas@extundo.com>
57785
57786         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
57787         interface too.
57788
57789 2005-10-19  Simon Josefsson  <jas@extundo.com>
57790
57791         * tests/test-gc-arcfour.c: New file.
57792
57793         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
57794
57795 2005-10-19  Simon Josefsson  <jas@extundo.com>
57796
57797         * modules/gc-md4, modules/gc-md4-tests: New file.
57798
57799         * tests/test-gc-md4.c: New file.
57800
57801 2005-10-19  Simon Josefsson  <jas@extundo.com>
57802
57803         * m4/gc-md4.m4: New file.
57804
57805 2005-10-19  Simon Josefsson  <jas@extundo.com>
57806
57807         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
57808         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
57809         <kasal@ucw.cz>.
57810
57811 2005-10-19  Simon Josefsson  <jas@extundo.com>
57812
57813         * m4/gc-arcfour.m4: New file.
57814
57815         * m4/gc-rijndael.m4: New file.
57816
57817 2005-10-19  Simon Josefsson  <jas@extundo.com>
57818
57819         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
57820
57821 2005-10-19  Simon Josefsson  <jas@extundo.com>
57822
57823         * lib/gc-gnulib.c: Support ARCFOUR.
57824
57825 2005-10-19  Simon Josefsson  <jas@extundo.com>
57826
57827         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
57828         support.
57829
57830         * lib/gc.h: Add ECB enum type.
57831
57832         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
57833
57834 2005-10-18  Simon Josefsson  <jas@extundo.com>
57835
57836         * tests/test-md5.c: New file.
57837
57838         * modules/md5-tests: New file.
57839
57840 2005-10-18  Simon Josefsson  <jas@extundo.com>
57841
57842         * tests/test-md4.c: New file.
57843
57844         * modules/md4, modules/md4-tests: New files.
57845
57846 2005-10-18  Simon Josefsson  <jas@extundo.com>
57847
57848         * m4/md4.m4: New file.
57849
57850 2005-10-18  Simon Josefsson  <jas@extundo.com>
57851
57852         * lib/md4.h, lib/md4.c: New files, based on md5.?.
57853
57854 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
57855
57856         * gnulib-tool (func_create_testdir): Omit the second check whether
57857         BUILT_SOURCES in nonempty.
57858
57859 2005-10-17  Simon Josefsson  <jas@extundo.com>
57860
57861         * tests/test-rijndael.c: New file.
57862
57863 2005-10-17  Simon Josefsson  <jas@extundo.com>
57864
57865         * modules/sha1: Depend on stdint instead of md5.
57866
57867         * modules/md5: Depend on stdint, remove uint32_t.
57868
57869 2005-10-17  Simon Josefsson  <jas@extundo.com>
57870
57871         * modules/gc-sha1-tests: New file.
57872
57873         * tests/test-gc-sha1.c: New file.
57874
57875 2005-10-17  Simon Josefsson  <jas@extundo.com>
57876
57877         * m4/md5.m4: Remove call to uint32_t.m4.
57878
57879 2005-10-17  Simon Josefsson  <jas@extundo.com>
57880
57881         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
57882
57883         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
57884         md5.h.
57885
57886         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
57887
57888         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
57889
57890 2005-10-17  Simon Josefsson  <jas@extundo.com>
57891
57892         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
57893
57894 2005-10-17  Simon Josefsson  <jas@extundo.com>
57895
57896         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
57897
57898 2005-10-17  Simon Josefsson  <jas@extundo.com>
57899
57900         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
57901
57902         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
57903
57904 2005-10-17  Bruno Haible  <bruno@clisp.org>
57905
57906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
57907         that it can also be used in a test.
57908
57909 2005-10-16  Bruno Haible  <bruno@clisp.org>
57910
57911         * gnulib-tool (func_emit_tests_Makefile_am): Also define
57912         TESTS_ENVIRONMENT, so that individual tests can augment it.
57913
57914         * gnulib-tool (func_create_testdir): Use an intermediate target for
57915         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
57916         macros, like $(ALLOCA_H), which cannot be passed through the command
57917         line.
57918
57919 2005-10-15  Simon Josefsson  <jas@extundo.com>
57920
57921         * modules/rijndael-tests: New file.
57922
57923         * modules/rijndael: New file.
57924
57925 2005-10-15  Simon Josefsson  <jas@extundo.com>
57926
57927         * m4/rijndael.m4: New file.
57928
57929 2005-10-15  Simon Josefsson  <jas@extundo.com>
57930
57931         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
57932
57933         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
57934
57935 2005-10-14  Simon Josefsson  <jas@extundo.com>
57936
57937         * tests/test-arcfour.c: New file.
57938
57939         * modules/arcfour, modules/arcfour-tests: New files.
57940
57941 2005-10-14  Simon Josefsson  <jas@extundo.com>
57942
57943         * m4/arcfour.m4: New file.
57944
57945 2005-10-14  Simon Josefsson  <jas@extundo.com>
57946
57947         * lib/arcfour.h, lib/arcfour.c: New files.
57948
57949 2005-10-14  Roland McGrath  <roland@redhat.com>
57950
57951         Import from libc.  [BZ #1331]
57952         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
57953         macro argument.
57954         Reported by Matej Vela <vela@debian.org>.
57955
57956 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57957
57958         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
57959         include <wchar.h>; no longer needed.
57960
57961 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57962
57963         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
57964
57965 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
57966         and  Ulrich Drepper  <drepper@redhat.com>
57967
57968         Import from libc.
57969         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
57970         instead of inline stream orientation test and two separate
57971         function calls.  Pay no attention to USE_IN_LIBIO.
57972
57973 2005-10-13  Simon Josefsson  <jas@extundo.com>
57974
57975         * modules/gc-hmac-md5-tests: New file.
57976
57977         * tests/test-gc-hmac-sha1.c: New file.
57978
57979         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
57980
57981         * modules/gc-hmac-md5-tests: New file.
57982
57983         * tests/test-gc-md5.c: New file.
57984
57985         * modules/gc-md5-tests: New file.
57986
57987 2005-10-13  Simon Josefsson  <jas@extundo.com>
57988
57989         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
57990         Move memory allocation outside of loop.
57991
57992 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
57995         intermediate directory is in a read-only file system.  Problem
57996         reported by Eric Blake.
57997
57998 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
57999
58000         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58001
58002 2005-10-12  Simon Josefsson  <jas@extundo.com>
58003
58004         * tests/test-hmac-sha1.c: New file.
58005
58006         * modules/hmac-sha1-tests: New file.
58007
58008         * modules/hmac-sha1: New file.
58009
58010 2005-10-12  Simon Josefsson  <jas@extundo.com>
58011
58012         * modules/gc-sha1: New file.
58013
58014 2005-10-12  Simon Josefsson  <jas@extundo.com>
58015
58016         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58017
58018         * tests/test-gc-pbkdf2-sha1.c: New file.
58019
58020 2005-10-12  Simon Josefsson  <jas@extundo.com>
58021
58022         * modules/gc-md5, modules/gc-hmac-md5: New files.
58023
58024         * modules/gc (Files): Remove md5, memxor and hmac files.
58025
58026 2005-10-12  Simon Josefsson  <jas@extundo.com>
58027
58028         * m4/gc-pbkdf2-sha1.m4: New file.
58029
58030         * m4/gc-hmac-sha1.m4: New file.
58031
58032         * m4/gc-sha1: New file.
58033
58034         * m4/hmac-sha1.m4: New file.
58035
58036 2005-10-12  Simon Josefsson  <jas@extundo.com>
58037
58038         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58039
58040         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58041
58042 2005-10-12  Simon Josefsson  <jas@extundo.com>
58043
58044         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58045         suggested by Bruno Haible <bruno@clisp.org>.
58046
58047 2005-10-12  Simon Josefsson  <jas@extundo.com>
58048
58049         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
58050
58051 2005-10-12  Simon Josefsson  <jas@extundo.com>
58052
58053         * lib/gc-pbkdf2-sha1.c: New file.
58054
58055         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
58056
58057 2005-10-12  Simon Josefsson  <jas@extundo.com>
58058
58059         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
58060
58061         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
58062
58063 2005-10-12  Simon Josefsson  <jas@extundo.com>
58064
58065         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
58066         GC_USE_HMAC_MD5, respectively.
58067
58068         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
58069         (gc_md5): Fix typo.
58070
58071         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
58072
58073         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
58074
58075         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
58076
58077 2005-10-12  Bruno Haible  <bruno@clisp.org>
58078
58079         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
58080         Reported by Stepan Kasal <kasal@ucw.cz>.
58081
58082 2005-10-11  Simon Josefsson  <jas@extundo.com>
58083
58084         * tests/test-crc.c: New file.
58085
58086         * modules/crc, modules/crc-tests: New files.
58087
58088 2005-10-11  Simon Josefsson  <jas@extundo.com>
58089
58090         * m4/crc.m4: New file.
58091
58092 2005-10-11  Simon Josefsson  <jas@extundo.com>
58093
58094         * lib/gc.h: Add gc_hash and gc_hash_buffer.
58095
58096         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
58097
58098         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
58099
58100 2005-10-11  Simon Josefsson  <jas@extundo.com>
58101
58102         * lib/crc.h, lib/crc.c: New files.
58103
58104         * lib/gc.h (gc_hash_buffer): Add doc.
58105
58106 2005-10-11  Bruno Haible  <bruno@clisp.org>
58107
58108         * modules/c-strcasestr: New file.
58109         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
58110
58111 2005-10-11  Bruno Haible  <bruno@clisp.org>
58112
58113         * modules/c-strcase: New file.
58114         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
58115
58116 2005-10-11  Bruno Haible  <bruno@clisp.org>
58117
58118         * lib/strcasecmp.c: Include limits.h.
58119         (strcasecmp): Avoid integer overflow on exotic platforms.
58120         * lib/strncasecmp.c: Include limits.h.
58121         (strncasecmp): Avoid integer overflow on exotic platforms.
58122         Reported by Paul Eggert.
58123
58124 2005-10-11  Bruno Haible  <bruno@clisp.org>
58125
58126         * lib/c-strcasestr.h: New file, from GNU gettext.
58127         * lib/c-strcasestr.c: New file, from GNU gettext.
58128
58129 2005-10-11  Bruno Haible  <bruno@clisp.org>
58130
58131         * lib/c-strcase.h: New file, from GNU gettext.
58132         * lib/c-strcasecmp.c: New file, from GNU gettext.
58133         * lib/c-strncasecmp.c: New file, from GNU gettext.
58134
58135 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58136
58137         * modules/mempcpy (License): GPL -> LGPL.
58138         * modules/strchrnul (License): Likewise.
58139         * modules/sysexits (License): Likewise.
58140
58141 2005-10-08  Simon Josefsson  <jas@extundo.com>
58142
58143         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
58144
58145 2005-10-07  Simon Josefsson  <jas@extundo.com>
58146
58147         * m4/memxor.m4: Remove gl_C_RESTRICT call.
58148
58149 2005-10-06  Simon Josefsson  <jas@extundo.com>
58150
58151         * tests/test-hmac-md5.c: New file.
58152
58153         * modules/hmac-md5-tests: New file.
58154
58155         * modules/hmac-md5: New file.
58156
58157 2005-10-06  Simon Josefsson  <jas@extundo.com>
58158
58159         * m4/hmac-md5.m4: New file.
58160
58161         * m4/memxor.m4: Require gl_C_RESTRICT.
58162
58163 2005-10-06  Simon Josefsson  <jas@extundo.com>
58164
58165         * lib/memxor.c (memxor): Avoid casts and warnings.
58166
58167 2005-10-06  Simon Josefsson  <jas@extundo.com>
58168
58169         * lib/hmac-md5.c: New file.
58170
58171         * lib/hmac.h: New file.
58172
58173 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58174
58175         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
58176         promotes to int, not unsigned int, to catch the AIX 5.3
58177         compiler bug.
58178
58179 2005-10-05  Simon Josefsson  <jas@extundo.com>
58180
58181         * modules/memxor: New file.
58182
58183         * modules/iconv (Files): Move config.rpath to havelib, it is used
58184         there.
58185
58186         * modules/havelib (Files): Add config.rpath.
58187
58188 2005-10-05  Simon Josefsson  <jas@extundo.com>
58189
58190         * m4/memxor.m4: New file.
58191
58192 2005-10-05  Simon Josefsson  <jas@extundo.com>
58193
58194         * lib/memxor.c (memxor): Fix compiler error.
58195
58196         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
58197         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
58198
58199         * lib/memxor.h, lib/memxor.c: New files.
58200
58201         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
58202         we assume all systems have it, suggested by Jim Meyering
58203         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
58204         any systems lack sys/socket.h; mingw32 is known to lack it, but we
58205         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
58206         same reasons.
58207
58208 2005-10-05  Simon Josefsson  <jas@extundo.com>
58209
58210         * config/srclist.txt: Add glibc bug 1423 for md5.h.
58211
58212 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58213
58214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
58215         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
58216         needed, since the source code now assumes these .h files.
58217
58218 2005-10-05  Derek Price  <derek@ximbiot.com>
58219
58220         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
58221
58222 2005-10-05  Bruno Haible  <bruno@clisp.org>
58223
58224         * modules/stdint (License): Change to LGPL.
58225
58226 2005-10-04  Simon Josefsson  <jas@extundo.com>
58227
58228         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
58229         D. Baushke" <mdb@gnu.org>.
58230
58231 2005-10-04  Bruno Haible  <bruno@clisp.org>
58232
58233         * lib/verify.h (verify_true): Provide alternative definition for C++.
58234
58235 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58236
58237         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
58238         (SSIZE_MAX): New macro, if not already defined.
58239         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
58240         than 2 GiB.
58241
58242 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58243
58244         Sync from coreutils.
58245         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
58246         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
58247         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
58248         ULLONG_MAX doesn't work with 2.7.2.1.
58249
58250 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58251
58252         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
58253         From Ben Pfaff.
58254
58255         * modules/exclude (Depends-on): Depend on verify.
58256         * modules/strtoimax (Depends-on): Likewise.
58257         * modules/utimecmp (Depends-on): Likewise.
58258
58259 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58260
58261         * lib/exclude.c: Include verify.h.
58262         (verify): Remove.  All callers changed to use verify.h's version.
58263         * lib/strtoimax.c: Likewise.
58264         * lib/utimecmp.c: Likewis.e
58265
58266         Sync from coreutils.
58267         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
58268         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
58269         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
58270         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
58271         bother returning ENOSYS if settimeofday or stime fails; just let
58272         them return whatever errno they want to return.
58273         * lib/utimens.c: Include unistd.h, for dup2.
58274         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
58275         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
58276
58277 2005-10-02  Jim Meyering  <jim@meyering.net>
58278
58279         Sync from coreutils.
58280         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
58281         from glibc-2.2.5 that fails for read-only files.
58282
58283 2005-10-02  Jim Meyering  <jim@meyering.net>
58284
58285         Sync from coreutils.
58286         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
58287         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
58288         `#if HAVE_CONFIG_H'.
58289         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
58290         Remove AT_FDCWD test.
58291         Do not consume the fd unless successful.
58292         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
58293         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
58294         block, so that we don't even try to compile it if settimeofday is
58295         available.  This works around a compilation failure on OSF1 V5.1,
58296         due to stime requiring a `long int*' while tv_sec is `int'.
58297
58298 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
58299
58300         Sync from coreutils.
58301         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
58302         against `yes', rather than just testing for nonempty.
58303
58304 2005-10-01  Simon Josefsson  <jas@extundo.com>
58305
58306         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
58307         and Darwin.
58308
58309         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
58310         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
58311         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
58312         freeaddrinfo and gai_strerror are declared by the POSIX headers.
58313         Check if struct addrinfo is declared.
58314
58315 2005-10-01  Simon Josefsson  <jas@extundo.com>
58316
58317         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
58318         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
58319         AI_* and EAI_* definitions.  Protect function declarations.
58320
58321 2005-10-01  Jim Meyering  <jim@meyering.net>
58322
58323         Sync from coreutils.
58324
58325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
58326         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
58327         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
58328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58329         in the inet and nsl libraries.  Required on Solaris 5.7.
58330
58331 2005-10-01  Jim Meyering  <jim@meyering.net>
58332
58333         Sync from coreutils.
58334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58335         in the inet and nsl libraries.  Required on Solaris 5.7.
58336
58337 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
58338
58339         * lib/getdelim.c (getdelim): Remove unused variables.
58340
58341 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58342
58343         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
58344         so that the code works even with ancient cpp.  Portability problem
58345         with GCC 2.7.2.1 reported by Thomas M.Ott.
58346
58347 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58348
58349         * modules/regex (Depends-on): Add strcase.
58350
58351         * modules/gethostname (Licence): Change from GPL to LGPL, since
58352         gethostname.c is a trivial implementation of a standard library
58353         function.
58354         * modules/poll (License): Change from GPL to LGPL, since it's
58355         derived from LGPL code.
58356
58357 2005-09-27  Jim Meyering  <jim@meyering.net>
58358
58359         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
58360         HAVE_CONFIG_H.
58361
58362         * lib/intprops.h (signed_type_or_expr__): Define.
58363         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
58364         for unsigned types.
58365
58366 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58367
58368         * lib/verify.h (verify_expr): Remove, replacing with:
58369         (verify_true): New macro that returns true instead of void.
58370         (verify_type__): Remove.
58371         (verify): Use verify_true rather than verify_type__.
58372
58373 2005-09-26  Bruno Haible  <bruno@clisp.org>
58374
58375         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
58376         is necessary.
58377         (lib_SOURCES): Remove mbchar.c.
58378         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
58379         (Files): Add m4/mbrtowc.m4.
58380         * modules/mbiter: Likewise.
58381         * modules/mbuiter: Likewise.
58382
58383 2005-09-26  Bruno Haible  <bruno@clisp.org>
58384
58385         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
58386         compile mbchar.c if they are not both present.
58387         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
58388         * m4/mbiter.m4 (gl_MBITER): Likewise.
58389         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
58390         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
58391         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
58392
58393 2005-09-25  Jim Meyering  <jim@meyering.net>
58394
58395         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
58396         also uses socklen_t.
58397
58398 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
58399
58400         * lib/utimens.c (ENOSYS): Define if not already defined.
58401         (futimens): Support having a null PATH if the file descriptor
58402         is nonnegative.
58403
58404         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
58405         Remove.
58406         (__attribute): Define to empty unless GCC 3.1 or later.
58407         This works around a core dump on OpenBSD 3.4, which has GCC
58408         2.95.3, which dumps core when given __attribute__(()).  It also
58409         simplifies other tests, since we really don't want to bother with
58410         worrying about which ancient version of GCC supported what.
58411         Original problem reported by Yoann Vandoorselaere, with part of
58412         the fix suggested by Derek Price.
58413
58414 2005-09-24  Jim Meyering  <jim@meyering.net>
58415
58416         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
58417         so we can once again use a positive bitfield width of 1 -- now we
58418         don't have to explain why we were using a bitfield width of 2.
58419
58420 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58421
58422         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
58423         and similarly for the other external symbols.  Problem reported
58424         by James Gallager.
58425
58426         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
58427         bug reported by Jim Meyering.
58428
58429         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
58430         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
58431         not needed, since socklen is a prerequisite module.
58432
58433 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58434
58435         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
58436         Problem reported by Eric Blake.
58437         (getaddrinfo): Initialize se so that it's not garbage.
58438         Redo internal storage allocation so that it doesn't make unportable
58439         assumptions about alignment.
58440         Fix a memory leak.
58441
58442         * lib/utimens.c (futimens): Use futimesat if available.
58443         Prefer it to futimes since it doesn't have the futimes bug.
58444
58445         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
58446         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
58447         Instead, declare a function that returns a pointer to an array,
58448         and use verify_type__ to declare the size of the array.
58449         Problem and germ of a solution reported by Bruno Haible.
58450         (verify_type__): Use 2, not 1, for bitfield size, to avoid
58451         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
58452
58453 2005-09-23  Jim Meyering  <jim@meyering.net>
58454
58455         Sync from coreutils.
58456         Correct build failure (socklen_t not defined) on at least
58457         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
58458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
58459
58460 2005-09-23  Jim Meyering  <jim@meyering.net>
58461
58462         * modules/getaddrinfo (Depends-on): Add socklen.
58463
58464 2005-09-23  Bruno Haible  <bruno@clisp.org>
58465
58466         * tests/test-verify.c: New file.
58467
58468 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58469
58470         Sync from coreutils.
58471
58472         * modules/argmatch (Depends-on): Add verify.
58473         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
58474         unistd-safer.
58475         * modules/save-cwd (Depends-on): Likewise.
58476
58477         * modules/openat (Files): Add lib/openat-die.c.
58478         (Depends-on): Remove error, exitfail.
58479         Add dirname.
58480
58481         * modules/verify: New file.
58482         * MODULES.html.sh (Diagnostics <assert.h>): New section,
58483         with "verify" module.
58484
58485 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58486
58487         Sync from coreutils.
58488
58489         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
58490         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
58491         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
58492         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
58493         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
58494         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
58495         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
58496         Don't bother checking for string.h, stdlib.h, unistd.h.
58497         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
58498         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
58499         module's job.
58500         * m4/jm-macros.m4 (gl_MACROS): Likewise.
58501         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
58502
58503         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
58504         (gl_GETDATE): Use it.
58505
58506         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
58507
58508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         Sync from coreutils.
58511
58512         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
58513         stat-time.h.
58514         * lib/argmatch.h: Include verify.h
58515         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
58516         (ARGMATCH_ASSERT): Remove; unused.
58517         * lib/canonicalize.c: Assume STDC_HEADERS.
58518         * lib/exclude.c: Include "strcase.h".
58519         * lib/regex_internal.h [!defined _LIBC]: Likewise.
58520         * lib/getusershell.c: Include stdio--.h rather than stdio.h
58521         and stdio-safer.h.
58522         (getusershell): Call fopen, not fopen_safer.
58523         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
58524         Do not include unistd-safer.h.
58525         (save_cwd): Don't call fd_safer; no longer needed
58526         now that we include fcntl--.h.
58527
58528         * lib/getdate.y (relative_time): New type.
58529         (RELATIVE_TIME_0): New constant.
58530         (parser_control): Use relative_time instead of doing it ourselves.
58531         (%union): Add new relative_time rel member.
58532         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
58533         Now typeless.
58534         (relunit, relunit_snumber): Now of type rel.
58535         (zone, rel, relunit, get_date): Adjust to above changes.
58536
58537         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
58538         Do not include unistd-safer.h.
58539         (getloadavg): Don't call fd_safer; no longer needed
58540         now that we include fcntl--.h.
58541
58542         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
58543         (make_dir_parents): Treat ENOSYS like EEXIST.
58544
58545         Improve quality of diagnostics on restore_cwd failure.
58546         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
58547         (make_dir_parents): Last arg is now int * (for errno), not bool *.
58548         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
58549         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
58550         each time through the loop.  Do not diagnose restore_cwd failure;
58551         that is the caller's job (and perhaps the caller does not care).
58552
58553         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
58554         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
58555         If the file already exists but is not a directory, don't bother
58556         to try to make its parents.
58557         Close potential file descriptor leak if we can't chdir("/") (!).
58558         Don't always return true if chdir($PWD) fails; return true only
58559         if the requested action was done successfully (except for the
58560         chdir($PWD)).
58561         Don't log final directory unless we actually made it.
58562         Refactor to avoid duplicate code to fix up permissions.
58563         Don't attempt to fix up parent permissions if chdir($PWD) fails.
58564
58565         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
58566         to make it a bit faster and (I hope) clearer.
58567         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
58568         Fix bug in formats like %2N.
58569
58570         * lib/verify.h: New file.
58571
58572 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58573
58574         Sync from coreutils.
58575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
58576
58577 2005-09-22  Jim Meyering  <jim@meyering.net>
58578
58579         Sync from coreutils.
58580
58581         * m4/lstat.m4 (gl_FUNC_LSTAT):
58582         Use AC_LIBSOURCES to require lstat.c and lstat.h.
58583         Remove obsolete comment.
58584         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
58585         * m4/xstrtod.m4: Likewise.
58586
58587         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
58588
58589 2005-09-22  Jim Meyering  <jim@meyering.net>
58590
58591         Sync from coreutils.
58592
58593         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
58594
58595         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
58596         the .tm_year member, since otherwise gcc-4.0 would now warn about
58597         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
58598
58599         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
58600         order to avoid an unsuppressible warning from gcc on 64-bit systems.
58601
58602         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
58603         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
58604         when run in a time zone for which daylight savings time is in effect
58605         for the starting date.
58606
58607         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
58608         stop us from restricting permissions of just-created absolute-named
58609         directories.
58610         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
58611         to restore initial working directory.
58612         * lib/mkdir-p.c (make_dir_parents): New parameter:
58613         different_working_dir, to tell caller if/when we change the working
58614         directory and are unable to return to the initial one.
58615         * lib/mkdir-p.h (make_dir_parents): Update prototype.
58616         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
58617         `return false'.  This fixes a bug introduced on 2004-07-30.
58618
58619         * lib/openat.c (fdopendir): Be sure to close the supplied
58620         file descriptor before returning.  This makes our replacement
58621         implementation a little closer to Solaris's, where fdopendir
58622         ties the file descriptor to the returned DIR* pointer.
58623         * lib/openat.c (unlinkat): New function.
58624         * lib/openat.h (unlinkat): Add prototype.
58625         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
58626         (openat_restore_fail): Rename from openat_restore_die.
58627         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
58628
58629         Provide an alternative to exiting immediately upon save_cwd or
58630         restore_cwd failure.  Now, an application can arrange e.g.,
58631         to perform a longjump in that case.
58632         * lib/openat.c: Include dirname.h.
58633         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
58634         (rpl_openat, fdopendir, fstatat): Call openat_save_die
58635         and openat_restore_die rather than calling error directly.
58636         Don't include "error.h" or "exitfail.h"; they're no longer needed.
58637
58638         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
58639         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
58640         define.
58641
58642         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
58643         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
58644                             int utc, int nanoseconds);
58645         Background:
58646         date should not have to allocate a megabyte of virtual memory to
58647         handle a format argument like +%1048575T.  When implemented with
58648         strftime, it must allocate such a buffer, use strftime to fill it
58649         in, print it, then free it.
58650         With fprintftime, it simply prints everything and exits.
58651         With no need for memory allocation, that's one fewer way to fail.
58652         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
58653         optional field width, not before, so we accept %9:z, not %:9z.
58654         (my_strftime): Be sure to use L_('x') for literals.
58655
58656         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
58657         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
58658         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
58659         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
58660         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
58661         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
58662         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
58663         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
58664         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
58665         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
58666         * lib/xgethostname.c, lib/xreadlink.c:
58667         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
58668
58669         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
58670         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
58671         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
58672         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58673         and don't include <sys/file.h>).
58674
58675 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
58676
58677         Sync from coreutils.
58678
58679         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
58680         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
58681         [!LDAV_DONE]: Avoid unused variable warning.
58682
58683 2005-09-21  Bruno Haible  <bruno@clisp.org>
58684
58685         * lib/unicodeio.h (unicode_to_mb): New declaration.
58686
58687 2005-09-20  Derek Price  <derek@ximbiot.com>
58688
58689         * lib/getaddrinfo.c: Don't include <netdb.h> included from
58690         getaddrinfo.h.
58691
58692 2005-09-20  Bruno Haible  <bruno@clisp.org>
58693
58694         * gnulib-tool: Remove trailing slashes from the values specified for
58695         --source-base, --m4-base, --tests-base, --aux-dir.
58696         Suggested by Simon Josefsson <jas@extundo.com>.
58697
58698 2005-09-20  Bruno Haible  <bruno@clisp.org>
58699
58700         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
58701         func_modules_to_filelist, func_import, func_create_testdir): Make all
58702         sorting results locale-independent, so that gnulib-cache.m4 doesn't
58703         change when gnulib-tool is invoked in a different locale.
58704
58705 2005-09-19  Simon Josefsson  <jas@extundo.com>
58706
58707         * m4/socklen.m4: Fix typo.
58708
58709 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58710
58711         Use a consistent style for including <config.h>.
58712         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
58713         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
58714         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
58715         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
58716         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
58717         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
58718         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
58719         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
58720         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
58721         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
58722         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
58723         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
58724         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
58725         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
58726         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
58727         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
58728         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
58729         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
58730         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
58731         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
58732         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
58733         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
58734         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
58735         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
58736         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
58737         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
58738         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
58739         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
58740         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
58741         lib/xstrtoumax.c, lib/yesno.c:
58742         Standardize inclusion of config.h.
58743         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
58744         lib/inttostr.h:  Removed inclusion of config.h from header files.
58745         * lib/inttostr.c:  Adjusted in-tree users.
58746         * lib/timespec.h: Remove superfluous warning to include config.h.
58747         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
58748         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
58749         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
58750         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
58751         config.h with HAVE_CONFIG_H.
58752
58753 2005-09-19  Jim Meyering  <jim@meyering.net>
58754
58755         * modules/pathmax (License): Change to LGPL.
58756
58757 2005-09-19  Derek Price  <derek@ximbiot.com>
58758
58759         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
58760
58761 2005-09-19  Bruno Haible  <bruno@clisp.org>
58762
58763         * gnulib-tool (import): Provide default for --tests-base.
58764
58765 2005-09-19  Bruno Haible  <bruno@clisp.org>
58766
58767         * doc/quote.texi: New file, extracted from gnulib.texi.
58768         * doc/ctime.texi: New file, extracted from gnulib.texi.
58769         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
58770         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
58771         * doc/gnulib.texi: Include them.
58772
58773 2005-09-18  Bruno Haible  <bruno@clisp.org>
58774
58775         Portability fix.
58776         * gnulib-tool (func_readlink): New function.
58777         (func_ln_if_changed): Use it.
58778
58779 2005-09-18  Bruno Haible  <bruno@clisp.org>
58780
58781         * gnulib-tool: Support --with-tests also with --import.
58782         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
58783         (func_import): Use variables $testsbase and $inctests. Emit a
58784         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
58785         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
58786         SUBDIRS += $testsdir.
58787         (func_create_testdir): Update.
58788
58789 2005-09-18  Bruno Haible  <bruno@clisp.org>
58790
58791         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
58792         instead of $dry_run.
58793         (func_cp_if_changed, func_mv_if_changed): Remove functions.
58794         (func_ln_if_changed): Don't handle dry-run here.
58795         (func_import): In dry-run mode, detect more precisely which actions
58796         would be performed, and don't use "...ing" verbs.
58797
58798 2005-09-18  Bruno Haible  <bruno@clisp.org>
58799
58800         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
58801         (func_import): Use join on two temporary files instead of three nested
58802         loops, in order to determine which files are new or old.
58803
58804 2005-09-18  Bruno Haible  <bruno@clisp.org>
58805
58806         * gnulib-tool (func_import): Comment out code that spits out the
58807         new files with --dry-run.
58808
58809 2005-09-18  Bruno Haible  <bruno@clisp.org>
58810
58811         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
58812
58813 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         * lib/stat-time.h: New file.
58816         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
58817         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
58818         in a different way.
58819         (timespec_cmp): New function.
58820         * lib/utimecmp.c: Include stat-time.h.
58821         (SYSCALL_RESOLUTION): Depend on whether various struct stat
58822         members exist, not on the obsolescent ST_MTIM_NSEC.
58823         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
58824
58825 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
58826
58827         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
58828
58829 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
58830
58831         * MODULES.html.sh (File system functions): Add stat-time.
58832         * modules/stat-time: New file.
58833         * modules/timespec (Files): Remove m4/st_mtim.m4; this
58834         is now done in a different way, by the stat-time module.
58835         * modules/utimecmp (Depends-on): Add stat-time.
58836
58837 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58838
58839         * m4/st_mtim.m4: Remove.  Superseded by...
58840         * m4/stat-time.m4: New file.
58841         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
58842         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
58843
58844 2005-09-15  Derek Price  <derek@ximbiot.com>
58845
58846         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
58847
58848 2005-09-15  Derek Price  <derek@ximbiot.com>
58849
58850         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
58851         * lib/regex_internal.c: Ditto, using this...
58852         (__GNUC_PREREQ): ...new macro.
58853         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
58854         using...
58855         (__GNUC_PREREQ): ...this new macro.
58856
58857         * lib/strstr.h: Include string.h. Define strstr as a macro here.
58858
58859 2005-09-15  Derek Price  <derek@ximbiot.com>
58860             Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
58863         changes, consolidating in...
58864         * lib/regex_internal.h: ...this file.
58865
58866 2005-09-13  Jim Meyering  <jim@meyering.net>
58867
58868         * lib/canon-host.c: Filter through gnu indent and reword comments
58869         slightly.
58870         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
58871
58872 2005-09-13  Derek Price  <derek@ximbiot.com>
58873
58874         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
58875         failure.
58876         Reported by Jim Meyering  <jim@meyering.net>.
58877
58878 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58879
58880         * lib/base64.c: Typo.
58881         (base64_encode): Put b64str in initialized data section.
58882
58883 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
58884
58885         Merge glibc and coreutils changes into gnulib, plus a few
58886         extra fixes.
58887         * lib/md5.c: Use #error rather than a string.
58888         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
58889         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
58890         (__attribute__): Define to empty for non recent-GCC.
58891         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
58892         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
58893         Renamed from their non-__ counterparts, with new macros replacing
58894         them if not _LIBC.  Add __THROW attribute.
58895         (rol): Remove.
58896         (struct md5_ctx): Align buffer if using GCC.
58897         * lib/sha1.h (struct sha1_ctx): Likewise.
58898         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
58899         The old name was backwards.
58900         (NOTSWAP): Remove; not used.
58901         (rol): New macro, moved here from md5.h.
58902         (sha1_process_block): Remove a FIXME that doesn't make sense.
58903
58904 2005-09-12  Derek Price  <derek@ximbiot.com>
58905
58906         Return usable errors from canon-host.
58907         * lib/canon-host.h: New file.
58908         * lib/canon-host.c (canon_host): Wrap...
58909         (canon_host_r): ...this new function, which now relies exclusively on
58910         getaddrinfo.
58911         (ch_strerror): New function.
58912         (last_cherror): New global.
58913         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
58914         interface.
58915         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
58916         void *.
58917         (freeaddrinfo): Free ai->ai_canonname when set.
58918
58919 2005-09-12  Derek Price  <derek@ximbiot.com>
58920
58921         Make canon-host require getaddrinfo.
58922         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
58923         AC_LIBSOURCE canon-host.h.  Call...
58924         (gl_PREREQ_CANON_HOST): ...this new function, which requires
58925         gl_GETADDRINFO.
58926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
58927
58928 2005-09-12  Derek Price  <derek@ximbiot.com>
58929
58930         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
58931         LGPL.
58932         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
58933
58934 2005-09-12  Derek Price  <derek@ximbiot.com>
58935
58936         * lib/gai_strerror.c: Include config.h when available.  Include
58937         getaddrinfo.h before other headers to test interface.
58938         Reported by Larry Jones <lawrence.jones@ugs.com>.
58939
58940 2005-09-12  Derek Price  <derek@ximbiot.com>
58941             Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * modules/glob (Files): Add glob-libc.h.
58944
58945 2005-09-12  Derek Price  <derek@ximbiot.com>
58946             Paul Eggert  <eggert@cs.ucla.edu>
58947
58948         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
58949         glob_.h, glob-libc.h.
58950         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
58951
58952 2005-09-12  Derek Price  <derek@ximbiot.com>
58953             Paul Eggert  <eggert@cs.ucla.edu>
58954
58955         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
58956         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
58957         protecting things that should be done only in gnulib contexts.
58958         * lib/glob_.h: New file, containing only the glob things needed for
58959         gnulib.
58960         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
58961         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
58962         (glob, globfree, glob_pattern_p): Now defined simply in terms of
58963         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
58964         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
58965         and to respect the namespace rules better.
58966
58967 2005-09-08  Simon Josefsson  <jas@extundo.com>
58968
58969         * modules/socklen: New file.
58970
58971 2005-09-08  Simon Josefsson  <jas@extundo.com>
58972
58973         * m4/socklen.m4: New file.
58974
58975 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58976
58977         * modules/utimens (Files): Add m4/utimbuf.m4, since
58978         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
58979         Reported by Sergey Poznyakoff.
58980
58981 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58982
58983         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
58984         definitions, since that's the preferred style in glibc.
58985         Fix a minor spacing issue, and update copyright notice to match
58986         glibc's.
58987
58988 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58989
58990         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
58991
58992 2005-09-06  Simon Josefsson  <jas@extundo.com>
58993
58994         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
58995         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
58996
58997 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58998
58999         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59000         warning.
59001
59002 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59003
59004         * config/srclist.txt: Add glibc bug 1302.
59005
59006 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59007
59008         Change bitset word type from unsigned int to unsigned long int,
59009         as this has better performance on typical 64-bit hosts.
59010         Port bitset code to hosts with unusual word sizes.
59011         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59012         (build_collating_symbol):
59013         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59014         argument is a bitset.  This is merely a style issue, but it makes
59015         it clearer that an entire array is expected.
59016         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59017         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59018         Port to the case where bitset_word is not the same as unsigned int.
59019         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59020         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59021         Likewise.
59022         * lib/regexec.c (check_dst_limits_calc_pos_1,
59023         check_subexp_matching_top):
59024         (build_trtable, group_nodes_into_DFAstates):
59025         Likewise.
59026         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59027         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59028         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59029         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59030         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59031         * lib/regcomp.c (optimize_subexps, lower_subexp):
59032         Work even if bitset_word has holes in its bitwise representation.
59033         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59034         * lib/regexec.c (check_dst_limits_calc_pos_1,
59035         check_subexp_matching_top):
59036         Likewise.
59037         * lib/regex_internal.c (re_string_reconstruct):
59038         Don't assume UCHAR_MAX == 255.
59039         * lib/regex_internal.h (bitset_set_all): Likewise.
59040         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59041         All uses changed.
59042         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59043         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59044         All uses changed.
59045         (BITSET_WORD_MAX): New macro.
59046         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
59047         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
59048         (bitset_empty, bitset_copy):
59049         Prefer sizeof (bitset) to multiplying it out ourselves.
59050         (bitset_not_merge): Remove; unused.
59051         (bitset_contain): Return bool, not unsigned int with one bit on.
59052         All callers changed.
59053         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
59054         alignment than re_node_set; do this by defining a new internal
59055         type struct dests_alloc and using it to allocate memory.
59056
59057 2005-09-05  Bruno Haible  <bruno@clisp.org>
59058
59059         * gnulib-tool (func_import): Fix comparison in handling of symbolic
59060         links.
59061
59062 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
59063
59064         * modules/size_max (Makefile.am): Add size_max.h
59065
59066 2005-09-04  Derek Price  <derek@ximbiot.com>
59067
59068         * gnulib-tool (func_import): Fix reversed $symbolic logic.
59069
59070 2005-09-03  Simon Josefsson  <jas@extundo.com>
59071
59072         * gnulib-tool: Fix typo.
59073
59074 2005-09-03  Simon Josefsson  <jas@extundo.com>
59075
59076         * config/srclist.txt: Add glibc bug 1293.
59077
59078 2005-09-03  Derek Price  <derek@ximbiot.com>
59079
59080         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
59081         From Larry Jones <lawrence.jones@ugs.com>.
59082
59083 2005-09-02  Simon Josefsson  <jas@extundo.com>
59084
59085         * modules/socklen: New file.
59086
59087 2005-09-02  Simon Josefsson  <jas@extundo.com>
59088
59089         * modules/havelib: New module.
59090
59091         * modules/gettext, modules/iconv, modules/lock, modules/readline:
59092         Use havelib.
59093
59094 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59095
59096         Check for arithmetic overflow when calculating sizes, to prevent
59097         some buffer-overflow issues.  These patches are conservative, in the
59098         sense that when I couldn't determine whether an overflow was possible,
59099         I inserted a run-time check.
59100         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
59101         macros.
59102         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
59103         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
59104         (re_xnrealloc, re_x2nrealloc): New inline functions.
59105         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
59106         parse_bracket_exp):
59107         (build_equiv_class, build_charclass): Check for arithmetic overflow
59108         in size expression calculations.
59109         * lib/regex_internal.c (re_string_realloc_buffers):
59110         (build_wcs_upper_buffer, re_node_set_add_intersect):
59111         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
59112         (re_dfa_add_node, register_state): Likewise.
59113         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
59114         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
59115         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
59116         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
59117
59118 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59119
59120         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59121         m4/ulonglong.m4.  Problem reported by Martin Lambers.
59122
59123 2005-09-02  Bruno Haible  <bruno@clisp.org>
59124
59125         Support for lib vs. lib64 distinction on biarch platforms.
59126         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
59127         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
59128         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
59129
59130 2005-09-02  Bruno Haible  <bruno@clisp.org>
59131
59132         * gnulib-tool (import): In the other first-use case, provide defaults
59133         as well.
59134
59135 2005-09-02  Bruno Haible  <bruno@clisp.org>
59136
59137         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
59138         patches not yet found in the latest gettext release.
59139
59140 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59141
59142         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
59143         to avoid a collision with bits/local_lim.h in glibc.
59144         All uses changed.  Problem reported by Dmitry V. Levin in
59145         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
59146
59147         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
59148         bugs in int versus size_t comparisons.
59149         (re_string_context_at): Fix bug where the code assumed that
59150         Idx is signed.
59151
59152         Use bool where appropriate.
59153         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
59154         All callers changed.
59155         (calc_eclosure_iter): Likewise, for ROOT arg.
59156         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
59157         (build_charclass_op): Likewise, for NON_MATCH arg.
59158         * lib/regex_internal.c (re_string_allocate, re_string_construct):
59159         (re_string_construct_common): Likewise, for ICASE arg.
59160         * lib/regexec.c (re_search_2_stub, re_search_stub):
59161         Likewise, for RET_LEN arg.
59162         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
59163         (set_regs): Likewise, for FL_BACKTRACK arg.
59164         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
59165         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
59166         (calc_eclosure_iter, parse_bracket_exp):
59167         Use bool for internal variables that are booleans.
59168         * lib/regexec.c (re_search_internal, check_matching,
59169         proceed_next_node):
59170         (set_regs, build_sifted_states, sift_states_bkref):
59171         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
59172         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59173         (find_collation_sequence_value):
59174         Likewise.
59175         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
59176         (re_node_set_compare):
59177         Return bool, not int. All callers changed.
59178         * lib/regexec.c (check_halt_node_context, check_dst_limits):
59179         (build_trtable, check_node_accept): Likewise.
59180         * lib/regex_internal.h: Include stdbool.h.
59181
59182         Fix bugs uncovered when converting to bool.
59183         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
59184         failure instead of charging ahead blindly.
59185         * lib/regex_internal.c (register_state): Likewise.
59186         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
59187         for freeing internal storage.
59188         (group_nodes_into_DFA_states): Use unsigned int, not int, for
59189         bitset pieces used as boolean, to avoid undefined behavior
59190         on hosts that do int overflow checking.
59191
59192 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         * config/srclist.txt: Add glibc bugs 1285-1287.
59195
59196 2005-09-01  Jim Meyering  <jim@meyering.net>
59197
59198         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
59199         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
59200         Require gl_STAT_MACROS, too.
59201
59202 2005-09-01  Bruno Haible  <bruno@clisp.org>
59203
59204         * gnulib-tool (import): In the first-use case, provide defaults.
59205
59206 2005-09-01  Bruno Haible  <bruno@clisp.org>
59207
59208         * gnulib-tool (func_import): Remove the .tmp files.
59209
59210 2005-09-01  Bruno Haible  <bruno@clisp.org>
59211
59212         * gnulib-tool (func_import): Fix handling of symbolic links.
59213
59214 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59215
59216         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
59217         old glibc regex code mishandles strings longer than 2**31 bytes.
59218         This patch fixes this when the regex code is used in gnulib
59219         (i.e., outside glibc).
59220
59221         This patch should not affect the use of the regex code inside
59222         glibc.  No doubt this problem also needs to be handled for glibc
59223         as well, but the result will be an incompatible change to the
59224         glibc ABI, and the old ABI will have to be supported too.  That
59225         can be the the subject for another patch.
59226
59227         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
59228         governing whether the rest of this patch is active.  By default,
59229         the macro is disabled and the patch has no effect.
59230         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
59231         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
59232         (struct re_pattern_buffer, re_search, re_search_2, re_match):
59233         (re_match_2, re_set_registers): Use the new types.
59234         * lib/regex_internal.h (Idx, re_hashval_t): New types.
59235         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
59236         New macros.
59237         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
59238         (re_string_context_at, bin_tree_t, re_dfastate_t):
59239         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
59240         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
59241         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
59242         (re_string_char_size_at, re_string_wchar_at):
59243         (re_string_elem_size_at):
59244         Use the new types and macros to port to 64-bit hosts.
59245         Use unsigned types for internal values, so that the code
59246         mostly works even for arrays larger than SSIZE_MAX.
59247         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
59248         (search_duplicated_node, calc_eclosure_iter, fetch_number):
59249         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
59250         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
59251         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
59252         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
59253         (calc_inveclosure, parse_dup_op, build_range_exp):
59254         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
59255         (fetch_number, create_token_tree, mark_opt_subexp):
59256         Likewise.
59257         * lib/regex_internal.c (re_string_construct_common,
59258         create_ci_newstate):
59259         (create_cd_newstate, re_string_allocate, re_string_construct):
59260         (re_string_realloc_buffers, build_wcs_upper_buffer):
59261         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59262         (re_string_reconstruct, re_string_peek_byte_case):
59263         (re_string_fetch_byte_case, re_string_context_at):
59264         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59265         (re_node_set_init_copy, re_node_set_add_intersect):
59266         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59267         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59268         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59269         (re_acquire_state, re_acquire_state_context, register_state):
59270         Likewise.
59271         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
59272         search_cur_bkref_entry):
59273         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
59274         (re_search_internal, re_search_2_stub, re_search_stub)
59275         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
59276         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
59277         (update_cur_sifted_state, check_dst_limits):
59278         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59279         (check_subexp_limits, sift_states_bkref, merge_state_array):
59280         (check_subexp_matching_top, get_subexp, get_subexp_sub):
59281         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
59282         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59283         (expand_bkref_cache, check_node_accept_bytes):
59284         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
59285         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
59286         (acquire_init_state_context, check_halt_node_context):
59287         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
59288         (sift_states_backward, clean_state_log_if_needed):
59289         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
59290         (find_recover_state, transit_state_sb, transit_state_mb):
59291         (transit_state_bkref, build_trtable, match_ctx_clean):
59292         Likewise.
59293         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
59294         to work around an assumption that REG_MISSING is negative.
59295
59296         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
59297         (seek_collating_symbol_entry) [defined _LIBC]:
59298         (lookup_collation_sequence_value) [defined _LIBC]:
59299         (build_range_exp, build_collating_symbol) [defined _LIBC]:
59300         Use prototypes rather than old-style function definitions.
59301         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
59302         (transit_state_sb) [0]:
59303         (find_collation_sequence_value) [defined _LIBC]: Likewise.
59304
59305         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
59306         rm_eo.
59307
59308         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
59309         (optimize_subexps, lower_subexp):
59310         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
59311         since the signed shift might overflow.  Use 1u<<31 instead.
59312         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59313         Likewise.
59314         * lib/regexec.c (check_dst_limits_calc_pos_1,
59315         check_subexp_matching_top): Likewise.
59316
59317         * lib/regcomp.c (optimize_subexps, lower_subexp):
59318         Use CHAR_BIT rather than 8, for clarity.
59319         * lib/regexec.c (check_dst_limits_calc_pos_1):
59320         (check_subexp_matching_top): Likewise.
59321         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
59322         have to worry about portability issues when shifting it left.
59323         Remove no-longer-needed test for table_size > 0.
59324         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
59325         in a word, as the resulting behavior is undefined.
59326         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
59327         in one case, a <= should have been an <, and in another case the
59328         whole test was missing.
59329         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
59330         the standard name CHAR_BIT.
59331         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
59332         this is not true on one's complement and signed-magnitude hosts.
59333
59334         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
59335         next_last_offset.
59336         (struct re_dfa_t): Remove unused member states_alloc.
59337         * lib/regcomp.c (init_dfa): Don't initialize unused members.
59338
59339 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59340
59341         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
59342         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
59343         and large-file glibc and in 32-bit large-file Solaris.
59344
59345 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59346
59347         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
59348         lengths fit in regoff_t; this isn't true if regoff_t is the same
59349         width as size_t.
59350         * lib/regex.c (re_search_internal): 5th arg is LAST_START
59351         (= START + RANGE) instead of RANGE.  This avoids overflow
59352         problems when regoff_t is the same width as size_t.
59353         All callers changed.
59354         (re_search_2_stub): Check for overflow when adding the
59355         sizes of the two strings.
59356         (re_search_stub): Check for overflow when adding START
59357         to RANGE; if it occurs, substitute the extreme value.
59358
59359 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59360
59361         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
59362
59363 2005-08-31  Jim Meyering  <jim@meyering.net>
59364
59365         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
59366         a pointer-to-const.
59367         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
59368         (register_state): Likewise.
59369         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
59370         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59371         (group_nodes_into_DFAstates): Likewise.
59372
59373 2005-08-31  Jim Meyering  <jim@meyering.net>
59374
59375         * check-module: Add a FIXME comment.
59376
59377 2005-08-31  Eric Blake  <ebb9@byu.net>
59378
59379         * modules/unistd-safer (Files): Add unistd--.h.
59380         * modules/stdio-safer (Files): Add stdio--.h.
59381
59382 2005-08-31  Derek Price  <derek@ximbiot.com>
59383
59384         * lib/getdelim.c (getdelim): Return EOF on EOF.
59385         Reported by Larry Jones <lawrence.jones@ugs.com>.
59386
59387 2005-08-31  Bruno Haible  <bruno@clisp.org>
59388
59389         Avoid unnecessary diffs in the generated lib/Makefile.am.
59390         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
59391         the generated files.
59392         (func_import): Don't set cmd.
59393
59394 2005-08-31  Bruno Haible  <bruno@clisp.org>
59395
59396         * lib/strstr.c: Include <stddef.h>, for NULL.
59397         * lib/strcasestr.c: Likewise.
59398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59399
59400 2005-08-31  Bruno Haible  <bruno@clisp.org>
59401
59402         * gnulib-tool: New option --macro-prefix.
59403         (func_import): Use macro_prefix.
59404         (import): Handle option --macro-prefix.
59405
59406 2005-08-31  Bruno Haible  <bruno@clisp.org>
59407
59408         * gnulib-tool (import): Rename most ac_* variables to cached_*.
59409         Also use new variables cached_lgpl, cached_libtool.
59410
59411 2005-08-31  Bruno Haible  <bruno@clisp.org>
59412
59413         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
59414         always instantiating them.
59415
59416 2005-08-31  Bruno Haible  <bruno@clisp.org>
59417
59418         * gnulib-tool (func_import): Read the previous cached settings
59419         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
59420         earlier added by gnulib but are now dropped. Warn when a gnulib file
59421         overwrites a non-gnulib file.
59422
59423 2005-08-31  Bruno Haible  <bruno@clisp.org>
59424
59425         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
59426         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
59427         projects that don't keep autogenerated files in CVS. Put into
59428         actioncmd only the specified modules, not the transitive closure.
59429
59430 2005-08-31  Bruno Haible  <bruno@clisp.org>
59431
59432         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
59433         Create directories that shall be filled.
59434         (import): Don't look for gl_* macros in configure.ac. Recurse across
59435         all directories containing a gnulib-cache.m4 files, if meaningful.
59436
59437 2005-08-31  Bruno Haible  <bruno@clisp.org>
59438
59439         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
59440         (import): Set seen_libtool when we see gl_LIBTOOL.
59441
59442 2005-08-31  Bruno Haible  <bruno@clisp.org>
59443
59444         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
59445         declaration macro definitions from generated gnulib.m4.
59446
59447 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
59448
59449         * lib/iconvme.h: Add prototype for iconv_alloc.
59450
59451 2005-08-29  Simon Josefsson  <jas@extundo.com>
59452
59453         * lib/iconvme.c: Fix errno.
59454
59455 2005-08-29  Bruno Haible  <bruno@clisp.org>
59456
59457         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
59458         that it works when the directory contains spaces.
59459
59460 2005-08-29  Bruno Haible  <bruno@clisp.org>
59461
59462         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
59463
59464 2005-08-29  Bruno Haible  <bruno@clisp.org>
59465
59466         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
59467         Emit more advice.
59468
59469 2005-08-29  Bruno Haible  <bruno@clisp.org>
59470         and Stepan Kasal  <kasal@ucw.cz>
59471
59472         * check-module: If more parameters are given, check each of them
59473         separately; add more exceptions, as noted by Jim Meyering.
59474         (check_module): New procedure.
59475         (%exempt_header): Now contains all exceptions.
59476
59477 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
59478
59479         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
59480
59481 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59482
59483         * lib/iconvme.c: Split iconv_string into iconv_alloc.
59484
59485 2005-08-28  Bruno Haible  <bruno@clisp.org>
59486
59487         * m4/gnulib-tool.m4: New file.
59488
59489 2005-08-27  Jim Meyering  <jim@meyering.net>
59490
59491         * modules/unistd-safer (Files): Add pipe-safer.c.
59492         * modules/fcntl-safer (Files): Add creat-safer.c.
59493
59494 2005-08-27  Jim Meyering  <jim@meyering.net>
59495
59496         * m4/stdlib-safer.m4: New file.  From coreutils.
59497         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
59498         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
59499         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
59500         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
59501         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
59502
59503 2005-08-27  Jim Meyering  <jim@meyering.net>
59504
59505         * lib/fopen-safer.c: Merge minor changes from coreutils.
59506         * lib/dup-safer.c: Likewise.
59507         * lib/fd-safer.c: Likewise.
59508
59509         Merge from coreutils.
59510         * lib/stdio--.h: New file.
59511         * lib/stdlib--.h: New file.
59512         * lib/mkstemp-safer.c: New file.
59513
59514         GNU tar needs these.
59515         * lib/pipe-safer.c: New file.
59516         * lib/creat-safer.c: New file.
59517         * lib/fcntl--.h (creat): Define to creat_safer.
59518         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
59519         * lib/unistd--.h (pipe): Define to pipe_safer.
59520         * lib/unistd-safer.h: Declare pipe_safer.
59521
59522 2005-08-26  Simon Josefsson  <jas@extundo.com>
59523
59524         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
59525         Haible <bruno@clisp.org>.
59526
59527 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
59528
59529         * lib/regex_internal.h: Remove all references to
59530         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
59531         or better.
59532         (bitset_not, bitset_merge, bitset_not_merge):
59533         (bitset_mask, re_string_allocate, re_string_construct):
59534         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
59535         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
59536         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
59537         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
59538         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59539         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59540         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
59541         (re_acquire_state_context):
59542         Remove unnecessary forward decls.
59543         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
59544         Put __attribute at function definition,
59545         now that the function decl has been removed.
59546         * lib/regex_internal.c (re_string_peek_byte_case):
59547         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
59548         Likewise.
59549
59550 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
59551
59552         * m4/regex.m4: Add AC_PREREQ(2.50).
59553         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
59554
59555 2005-08-25  Simon Josefsson  <jas@extundo.com>
59556
59557         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
59558         __fsetlocking.
59559
59560 2005-08-25  Simon Josefsson  <jas@extundo.com>
59561
59562         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
59563         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
59564         GLIBC specific code.
59565
59566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59567
59568         Make regex safe for g++.  This fixes one real bug (an "err"
59569         that should have been "*err").  g++ problem reported by
59570         Sam Steingold.
59571         * lib/regex_internal.h (re_calloc): New macro, consistent with
59572         re_malloc etc.  All callers of calloc changed to use re_calloc.
59573         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
59574         not int.  All callers changed.
59575         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
59576         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
59577         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
59578         (find_recover_state): Change "err" to "*err"; this fixes what
59579         appears to be a real bug.
59580         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
59581         versus int.
59582
59583 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59584
59585         * modules/regex (Depends-on): Add malloc, since the code
59586         assumes that !malloc(0) means failure.
59587
59588 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59589
59590         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
59591
59592         alloca modernization/simplification for regex.
59593         * lib/regex.c: Remove portability cruft for alloca.  This no longer
59594         needs to be at the start of the file, and can be moved into
59595         regex_internal.h and simplified.
59596         * lib/regex_internal.h: Include <alloca.h>.
59597         (__libc_use_alloca) [!defined _LIBC]: New macro.
59598         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
59599         now works outside glibc.
59600
59601 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59602
59603         * config/srclist.txt: Add glibc bugs 1241, 1245.
59604
59605 2005-08-25  Jim Meyering  <jim@meyering.net>
59606
59607         * lib/open-safer.c: Include <config.h>.
59608         Otherwise, we'd lose LARGEFILE support in any file using
59609         e.g. "fcntl--.h"
59610
59611 2005-08-25  Bruno Haible  <bruno@clisp.org>
59612
59613         * m4/minmax.m4: Require autoconf 2.52.
59614         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
59615         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
59616         alternatives of translit over the alphabet.
59617         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
59618
59619 2005-08-24  Simon Josefsson  <jas@extundo.com>
59620
59621         * tests/test-getpass.c: New file.
59622
59623 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
59626         for GNU regex features.
59627
59628 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59629
59630         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
59631         * lib/regex.h (regerror): Likewise.
59632
59633         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
59634         requires this.  (The code never needed it.)
59635
59636         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
59637         All uses of recently-renamed identifiers changed to use the new,
59638         POSIX-compliant names.  The code will build and run just fine
59639         without these changes, but it's better to eat our own dog food
59640         and use the standard-conforming names.
59641
59642         * lib/regex.h: Fix a multitude of POSIX name space violations.
59643         These changes have an effect only for programs that define
59644         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
59645         do not change anything for programs compiled in the normal way.
59646         Also, there is no effect on the ABI.
59647
59648         (_REGEX_SOURCE): New macro.
59649         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
59650         defined and _GNU_SOURCE is not; this fixes a name space violation.
59651
59652         Rename the following macros to obey POSIX requirements.
59653         The old names are still visible as macros if _REGEX_SOURCE is defined.
59654         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
59655         RE_BACKSLASH_ESCAPE_IN_LISTS.
59656         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
59657         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
59658         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
59659         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
59660         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
59661         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
59662         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
59663         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
59664         (REG_INTERVALS): renamed from RE_INTERVALS.
59665         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
59666         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
59667         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
59668         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
59669         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
59670         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
59671         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
59672         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
59673         RE_UNMATCHED_RIGHT_PAREN_ORD.
59674         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
59675         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
59676         (REG_DEBUG): renamed from RE_DEBUG.
59677         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
59678         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
59679         unusual, since we can't clash with the POSIX REG_ICASE.
59680         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
59681         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
59682         (REG_NO_SUB): renamed from RE_NO_SUB.
59683         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
59684         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
59685         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
59686         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
59687         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
59688         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
59689         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
59690         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
59691         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
59692         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
59693         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
59694         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
59695         RE_SYNTAX_POSIX_MINIMAL_BASIC.
59696         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
59697         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
59698         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
59699         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
59700         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
59701         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
59702         (REG_FIXED): Renamed from REGS_FIXED.
59703         (REG_NREGS): Renamed from RE_NREGS.
59704
59705         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
59706         of other REG_* macros, since POSIX says the user is allowed to
59707         #undef these macros selectively.
59708
59709         (reg_errcode_t): Update comment stating what other tables need
59710         to be consistent.
59711
59712         Rename the following enum values to obey POSIX requirements.
59713         The old names are still visible as macros.
59714         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
59715         is not defined, since GNU is supposed to be a superset of POSIX as
59716         much as possible, and since we want reg_errcode_t to be a signed
59717         type for implementation consistency.
59718         (_REG_NOERROR): Renamed from REG_NOERROR.
59719         (_REG_NOMATCH): Renamed from REG_NOMATCH.
59720         (_REG_BADPAT): Renamed from REG_BADPAT.
59721         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
59722         (_REG_ECTYPE): Renamed from REG_ECTYPE.
59723         (_REG_EESCAPE): Renamed from REG_EESCAPE.
59724         (_REG_ESUBREG): Renamed from REG_ESUBREG.
59725         (_REG_EBRACK): Renamed from REG_EBRACK.
59726         (_REG_EPAREN): Renamed from REG_EPAREN.
59727         (_REG_EBRACE): Renamed from REG_EBRACE.
59728         (_REG_BADBR): Renamed from REG_BADBR.
59729         (_REG_ERANGE): Renamed from REG_ERANGE.
59730         (_REG_ESPACE): Renamed from REG_ESPACE.
59731         (_REG_BADRPT): Renamed from REG_BADRPT.
59732         (_REG_EEND): Renamed from REG_EEND.
59733         (_REG_ESIZE): Renamed from REG_ESIZE.
59734         (_REG_ERPAREN): Renamed from REG_ERPAREN.
59735         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
59736         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
59737         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
59738         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
59739
59740         (_REG_RE_NAME, _REG_RM_NAME): New macros.
59741         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
59742         changed.  But support the old name if the new one is not defined
59743         and if _REGEX_SOURCE.
59744
59745         Change the following member names in struct re_pattern_buffer.
59746         The old names are still supported if !_REGEX_SOURCE.
59747         The new names are always supported, regardless of _REGEX_SOURCE.
59748         (re_buffer): Renamed from buffer.
59749         (re_allocated): Renamed from allocated.
59750         (re_used): Renamed from used.
59751         (re_syntax): Renamed from syntax.
59752         (re_fastmap): Renamed from fastmap.
59753         (re_translate): Renamed from translate.
59754         (re_can_be_null): Renamed from can_be_null.
59755         (re_regs_allocated): Renamed from regs_allocated.
59756         (re_fastmap_accurate): Renamed from fastmap_accurate.
59757         (re_no_sub): Renamed from no_sub.
59758         (re_not_bol): Renamed from not_bol.
59759         (re_not_eol): Renamed from not_eol.
59760         (re_newline_anchor): Renamed from newline_anchor.
59761
59762         Change the following member names in struct re_registers.
59763         The old names are still supported if !_REGEX_SOURCE.
59764         The new names are always supported, regardless of _REGEX_SOURCE.
59765         (rm_num_regs): Renamed from num_regs.
59766         (rm_start): Renamed from start.
59767         (rm_end): Renamed from end.
59768
59769         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
59770         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
59771         Prepend __ to parameter names.
59772
59773         Undo yesterday's changes.
59774
59775 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59776
59777         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
59778         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
59779         lib/regex.c.
59780
59781 2005-08-24  Jim Meyering  <jim@meyering.net>
59782
59783         Sync from coreutils.
59784         * m4/fcntl-safer.m4: New file.
59785
59786         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
59787         and object files for this module.
59788
59789 2005-08-24  Jim Meyering  <jim@meyering.net>
59790
59791         Sync from coreutils.
59792         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
59793
59794 2005-08-24  Jim Meyering  <jim@meyering.net>
59795
59796         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
59797         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
59798
59799 2005-08-24  Jim Meyering  <jim@meyering.net>
59800
59801         * modules/fcntl-safer: New module.
59802         * modules/fts (Depends-on): Add fcntl-safer.
59803         * MODULES.html.sh (File descriptor based Input/Output):
59804         Add fcntl-safer.
59805
59806 2005-08-24  Bruno Haible  <bruno@clisp.org>
59807
59808         Support for unit test modules.
59809         * modules/README: Mention tests modules.
59810         * modules/TEMPLATE-TESTS: New file.
59811         * gnulib-tool: New options --extract-tests-module, --with-tests and
59812         --tests-base (unused for the moment).
59813         (testsbase, inctests): New variables.
59814         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
59815         (func_verify_module): Exclude TEMPLATE-TESTS.
59816         (func_verify_nontests_module, func_verify_tests_module): New functions.
59817         (func_get_dependencies): Add implicit dependency for tests modules.
59818         (func_get_tests_module): New function.
59819         (func_modules_transitive_closure): When --with-tests was specified,
59820         include the unit tests as well, unless explicitly avoided.
59821         (func_emit_lib_Makefile_am): Ignore the tests modules here.
59822         (func_emit_tests_Makefile_am): New function.
59823         (func_create_testdir): When --with-tests was specified, emit a
59824         tests/ directory.
59825         * MODULES.html.sh (Future developments): Update.
59826
59827 2005-08-24  Bruno Haible  <bruno@clisp.org>
59828
59829         * modules/tls-tests: New file.
59830         * tests/test-tls.c: New file, from GNU gettext.
59831
59832 2005-08-24  Bruno Haible  <bruno@clisp.org>
59833
59834         * modules/lock-tests: New file.
59835         * tests/test-lock.c: New file, from GNU gettext.
59836
59837 2005-08-24  Bruno Haible  <bruno@clisp.org>
59838
59839         * lib/lock.h: Add multiple inclusion guard.
59840         * lib/tls.h: Add multiple inclusion guard.
59841
59842 2005-08-24  Bruno Haible  <bruno@clisp.org>
59843
59844         * gnulib-tool: Add support for the --aux-dir option to
59845         --create-testdir, --create-megatestdir, --test, --megatest.
59846         (func_create_testdir, func_create_megatestdir): Optionally emit a
59847         AC_CONFIG_AUX_DIR directive.
59848         (create-testdir, create-megatestdir, test, megatest): Provide a
59849         default value for $auxdir.
59850
59851 2005-08-24  Bruno Haible  <bruno@clisp.org>
59852
59853         * gnulib-tool (import): Use compound statement instead of subshell
59854         where possible.
59855
59856 2005-08-24  Bruno Haible  <bruno@clisp.org>
59857
59858         * gnulib-tool (import): Change --aux-dir default to "build-aux".
59859
59860 2005-08-24  Bruno Haible  <bruno@clisp.org>
59861
59862         * gnulib-tool (func_version): Update.
59863
59864 2005-08-24  Bruno Haible  <bruno@clisp.org>
59865
59866         * gnulib-tool (func_import, func_create_testdir,
59867         func_create_megatestdir): Quote all autoconf macro arguments.
59868
59869 2005-08-24  Bruno Haible  <bruno@clisp.org>
59870
59871         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
59872         option --force, because --force causes the aclocal.m4 of each
59873         subdirectory to be newer than the corresponding config.h.in.
59874
59875 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59876
59877         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
59878         All contents moved to gl_REGEX.
59879         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
59880         assume that it does.
59881
59882 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59883
59884         * lib/regex.h (REG_NOSYS)
59885         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
59886         Define, since POSIX requires it as of 2001.
59887         (_REG_ENOSYS)
59888         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
59889         New private symbol, used to keep the enum signed in all cases.
59890         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
59891         Youngman in
59892         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
59893
59894         * lib/regex_internal.c (re_string_skip_chars, register_state):
59895         (calc_state_hash):
59896         Remove forward decls; no longer needed now that we use prototypes.
59897         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
59898         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
59899         (clean_state_log_if_needed): Likewise.
59900
59901 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         * config/srclist.txt: Add glibc bugs 1231-1233.
59904
59905 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59906
59907         Fix problems reported by Sam Steingold in
59908         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
59909         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
59910         assumed that reg_errcode_t is a signed type, which is not
59911         necessarily true if _XOPEN_SOURCE is not defined.
59912         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
59913         since some compilers warn about it otherwise.
59914
59915 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59916
59917         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
59918         (init_word_char, create_initial_state, duplicate_node_closure):
59919         (fetch_token, peek_token_bracket, build_range_exp):
59920         (build_collating_symbol): Remove forward decls; no longer needed
59921         now that we use prototypes.
59922
59923         * lib/regcomp.c:
59924         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
59925         (re_compile_fastmap_iter, regcomp, regerror, regfree):
59926         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
59927         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
59928         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
59929         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
59930         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
59931         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
59932         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
59933         (build_range_exp, build_collating_symbol, parse_bracket_exp):
59934         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
59935         (build_charclass, build_charclass_op, fetch_number, create_tree):
59936         (create_token_tree, mark_opt_subexp, duplicate_tree):
59937         Use prototypes rather than old-style definitions.
59938
59939         * lib/regex_internal.c:
59940         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
59941         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
59942         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59943         (re_string_reconstruct, re_string_peek_byte_case):
59944         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
59945         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59946         (re_node_set_init_copy, re_node_set_add_intersect):
59947         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59948         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59949         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59950         (re_acquire_state, re_acquire_state_context, register_state):
59951         (create_ci_newstate, create_cd_newstate, free_state):
59952         Likewise.
59953         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
59954         re_search_2):
59955         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
59956         (re_search_internal, prune_impossible_nodes):
59957         (acquire_init_state_context, check_matching, static):
59958         (check_halt_node_context, check_halt_state_context, proceed_next_node):
59959         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
59960         (update_regs, sift_states_backward, build_sifted_states):
59961         (clean_state_log_if_needed, merge_state_array):
59962         (update_cur_sifted_state, add_epsilon_src_nodes):
59963         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
59964         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
59965         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
59966         (find_recover_state, check_subexp_matching_top, transit_state_mb):
59967         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
59968         (check_arrival, check_arrival_add_next_nodes):
59969         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59970         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59971         (check_node_accept_bytes, check_node_accept, extend_buffers):
59972         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
59973         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
59974         (sift_ctx_init):
59975         Likewise.
59976
59977         * lib/regex_internal.h:
59978         (re_string_allocate, re_string_construct, re_string_reconstruct):
59979         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
59980         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
59981         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
59982         (re_string_context_at, re_string_peek_byte_case):
59983         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
59984         is defined, since we now use prototypes always.
59985
59986         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
59987         C89 or better.  All uses removed.
59988
59989 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         * config/srclist.txt: Add glibc bugs 1220-1227.
59992
59993 2005-08-20  Jim Meyering  <jim@meyering.net>
59994
59995         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
59996         of unused local, dfa.
59997
59998 2005-08-20  Bruno Haible  <bruno@clisp.org>
59999
60000         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60001
60002 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60003
60004         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60005         (re_node_set_insert_last, re_dfa_add_node):
60006         Rename local variables to avoid GCC shadowing warnings.
60007
60008 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60009
60010         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60011         [defined lint]: Suppress bogus uninitialized-variable warnings.
60012
60013         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60014         and let the caller return REG_ESPACE if out of space.  This
60015         removes an uninitialied-variable warning with GCC 4.0.1, and also
60016         avoids taking the address of a local variable.  All callers
60017         changed.
60018
60019 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60022         $LIBCSRC/posix/regexec.c.
60023         Add glibc bug 1217 for regcomp.c.
60024
60025 2005-08-19  Jim Meyering  <jim@meyering.net>
60026
60027         * lib/regexec.c (proceed_next_node): Redo local variables to
60028         avoid GCC shadowing warnings.
60029
60030 2005-08-18  Bruno Haible  <bruno@clisp.org>
60031
60032         * lib/strstr.c (strstr): Fix return value in multibyte case.
60033         * lib/strcasestr.c (strcasestr): Likewise.
60034
60035 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60036
60037         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60038
60039 2005-08-17  Jim Meyering  <jim@meyering.net>
60040
60041         Make the %s format (seconds since the epoch) work for a negative
60042         number and when used with a zero-padded field width, e.g. %015s.
60043
60044         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60045         label so that it precedes the code to set `digits'.  Otherwise,
60046         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
60047         print `00-22'.  Now, it prints `-0022', as it should.
60048
60049 2005-08-17  Bruno Haible  <bruno@clisp.org>
60050
60051         * modules/strstr (Files): Add m4/mbrtowc.m4.
60052         (Depends-on): Add mbuiter.
60053
60054 2005-08-17  Bruno Haible  <bruno@clisp.org>
60055
60056         * modules/strcasestr: New file.
60057         * MODULES.html.sh (String handling, based on ANSI C 89): Add
60058         strcasestr.
60059
60060 2005-08-17  Bruno Haible  <bruno@clisp.org>
60061
60062         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
60063
60064 2005-08-17  Bruno Haible  <bruno@clisp.org>
60065
60066         * modules/mbuiter: New file.
60067         * MODULES.html.sh (Extended multibyte and wide character utilities):
60068         Add mbuiter.
60069
60070 2005-08-17  Bruno Haible  <bruno@clisp.org>
60071
60072         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
60073         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
60074
60075 2005-08-17  Bruno Haible  <bruno@clisp.org>
60076
60077         * m4/strcasestr.m4: New file.
60078
60079 2005-08-17  Bruno Haible  <bruno@clisp.org>
60080
60081         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
60082         * lib/strstr.c: Completely rewritten, with multibyte locale support.
60083
60084 2005-08-17  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/strcasestr.h: New file.
60087         * lib/strcasestr.c: New file.
60088
60089 2005-08-17  Bruno Haible  <bruno@clisp.org>
60090
60091         * lib/strcasecmp.c: Use mbuiter.h.
60092
60093 2005-08-17  Bruno Haible  <bruno@clisp.org>
60094
60095         * lib/mbuiter.h: New file.
60096
60097 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60098
60099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
60100         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
60101         and gl_GETOPT are both invoked via different paths (as happens
60102         with GNU tar CVS because it uses both argp and getopt), the former
60103         wins.
60104
60105 2005-08-16  Bruno Haible  <bruno@clisp.org>
60106
60107         * modules/tls: New file.
60108         * MODULES.html.sh (Multithreading): Add tls.
60109
60110 2005-08-16  Bruno Haible  <bruno@clisp.org>
60111
60112         * modules/strnlen1: New file.
60113         * MODULES.html.sh (String handling): Add strnlen1.
60114
60115 2005-08-16  Bruno Haible  <bruno@clisp.org>
60116
60117         * modules/strcase (Files): Add m4/mbrtowc.m4.
60118         (Depends-on): Add strnlen1, mbchar.
60119
60120 2005-08-16  Bruno Haible  <bruno@clisp.org>
60121
60122         * modules/mbiter: New file.
60123         * MODULES.html.sh (Extended multibyte and wide character utilities):
60124         Add mbiter.
60125
60126 2005-08-16  Bruno Haible  <bruno@clisp.org>
60127
60128         * modules/mbfile: New file.
60129         * MODULES.html.sh (Extended multibyte and wide character utilities):
60130         Add mbfile.
60131
60132 2005-08-16  Bruno Haible  <bruno@clisp.org>
60133
60134         * modules/mbchar: New file.
60135         * MODULES.html.sh (Extended multibyte and wide character utilities):
60136         New section.
60137
60138 2005-08-16  Bruno Haible  <bruno@clisp.org>
60139
60140         * m4/tls.m4: New file, from GNU gettext.
60141
60142 2005-08-16  Bruno Haible  <bruno@clisp.org>
60143
60144         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
60145         always.
60146         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
60147
60148 2005-08-16  Bruno Haible  <bruno@clisp.org>
60149
60150         * m4/mbiter.m4: New file.
60151
60152 2005-08-16  Bruno Haible  <bruno@clisp.org>
60153
60154         * m4/mbfile.m4: New file.
60155
60156 2005-08-16  Bruno Haible  <bruno@clisp.org>
60157
60158         * m4/mbchar.m4: New file.
60159
60160 2005-08-16  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/tls.h: New file, from GNU gettext.
60163         * lib/tls.c: New file, from GNU gettext.
60164
60165 2005-08-16  Bruno Haible  <bruno@clisp.org>
60166
60167         * lib/strnlen1.h: New file.
60168         * lib/strnlen1.c: New file.
60169
60170 2005-08-16  Bruno Haible  <bruno@clisp.org>
60171
60172         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
60173         (mbi_init): Update.
60174         (mbi_avail, mbi_advance): Let the iteration end before the terminating
60175         NUL byte, not after it.
60176
60177 2005-08-16  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/strcase.h (strcasecmp): Add note in comments.
60180         * lib/strncasecmp.c: Use code from strcasecmp.c.
60181         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
60182         (strcasecmp): Work correctly in multibyte locales.
60183
60184 2005-08-16  Bruno Haible  <bruno@clisp.org>
60185
60186         * lib/mbiter.h: New file.
60187
60188 2005-08-16  Bruno Haible  <bruno@clisp.org>
60189
60190         * lib/mbfile.h: New file.
60191
60192 2005-08-16  Bruno Haible  <bruno@clisp.org>
60193
60194         * lib/mbchar.h: New file.
60195         * lib/mbchar.c: New file.
60196
60197 2005-08-16  Bruno Haible  <bruno@clisp.org>
60198
60199         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
60200         the valid ones. Makes the comparison operations transitive:
60201         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
60202         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
60203
60204 2005-08-15  Simon Josefsson  <jas@extundo.com>
60205
60206         * modules/ssize_t (License): Change to 'unlimited'.
60207
60208         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
60209
60210 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
60213         Add comments for each pending glibc patch.
60214
60215 2005-08-15  Bruno Haible  <bruno@clisp.org>
60216
60217         * lib/regex.h (__restrict_arr): Don't define to __restrict if
60218         __cplusplus is defined.
60219
60220 2005-08-14  Jim Meyering  <jim@meyering.net>
60221
60222         Sync from coreutils.
60223
60224         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
60225         Use the hash-table-based cycle-detection code not just when
60226         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
60227         Reported by James Youngman in
60228         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
60229         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
60230         FTS_TIGHT_CYCLE_CHECK.
60231         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
60232         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
60233         once again.
60234         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
60235         * lib/fts.c (fd_safer): Remove decl.
60236         Include fcntl--.h rather than unistd-safer.h
60237         (fts_safe_changedir): Don't call fd_safer; no longer needed
60238         now that we include fcntl--.h.
60239
60240 2005-08-12  Simon Josefsson  <jas@extundo.com>
60241
60242         * modules/getndelim2: Use ssize_t module.
60243         * modules/getnline: Likewise.
60244         * modules/safe-read: Likewise.
60245         * modules/xreadlink: Likewise.
60246
60247         * modules/ssize_t: New file.
60248
60249 2005-08-12  Simon Josefsson  <jas@extundo.com>
60250
60251         * m4/readline.m4: Look for termcap, curses or ncurses if required.
60252
60253 2005-08-12  Simon Josefsson  <jas@extundo.com>
60254
60255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60256         ssize_t.
60257
60258 2005-08-12  Simon Josefsson  <jas@extundo.com>
60259
60260         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
60261         readline, getdelim and check_version.
60262         (Support for systems lacking ISO C 99: Sizes of integer types):
60263         Add size_max.
60264
60265 2005-08-12  Bruno Haible  <bruno@clisp.org>
60266
60267         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
60268
60269 2005-08-11  Simon Josefsson  <jas@extundo.com>
60270
60271         * modules/readline: New file.
60272
60273         * modules/strnlen (Files): Add strnlen.h.
60274
60275 2005-08-11  Simon Josefsson  <jas@extundo.com>
60276
60277         * m4/readline.m4: New file.
60278
60279 2005-08-11  Simon Josefsson  <jas@extundo.com>
60280
60281         * lib/readline.h, readline.c: New file.
60282
60283 2005-08-11  Simon Josefsson  <jas@extundo.com>
60284
60285         * doc/gnulib.texi (Initial import, Finishing touches): Mention
60286         gl_AVOID.
60287
60288 2005-08-11  Bruno Haible  <bruno@clisp.org>
60289
60290         * lib/strnlen.h (strnlen): Change parameter name to match comment.
60291
60292 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
60293
60294         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
60295
60296 2005-08-10  Simon Josefsson  <jas@extundo.com>
60297
60298         * tests/test-iconvme.c: New file.
60299
60300 2005-08-10  Simon Josefsson  <jas@extundo.com>
60301
60302         * m4/strnlen.m4: New file.
60303
60304         * m4/strndup.m4: Don't check for strnlen declaration, done in
60305         strnlen.m4.
60306
60307 2005-08-10  Simon Josefsson  <jas@extundo.com>
60308
60309         * lib/strndup.c: Use strnlen.h.
60310
60311         * lib/strnlen.h: New file.
60312
60313 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60314
60315         * README: Typos.
60316
60317 2005-08-02  Simon Josefsson  <jas@extundo.com>
60318
60319         * modules/readline: New file.
60320
60321 2005-08-02  Simon Josefsson  <jas@extundo.com>
60322
60323         * modules/getdelim: New file.
60324
60325         * modules/getline: Rewrite, don't use getndelim2.
60326
60327 2005-08-02  Simon Josefsson  <jas@extundo.com>
60328
60329         * m4/getline.m4: Separate out getdelim stuff into separate module.
60330
60331         * m4/getdelim.m4: New file.
60332
60333 2005-08-02  Simon Josefsson  <jas@extundo.com>
60334
60335         * lib/getline.h, getline.c: Rewrite.
60336
60337         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
60338
60339 2005-07-31  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/lock.h (gl_lock_initializer): New macro.
60342         (gl_lock_define_initialized): Use it.
60343         (gl_rwlock_initializer): New macro.
60344         (gl_rwlock_define_initialized): Use it.
60345         (gl_recursive_lock_initializer): New macro.
60346         (gl_recursive_lock_define_initialized): Use it.
60347
60348 2005-07-30  Karl Berry  <karl@gnu.org>
60349
60350         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
60351         Report from Ben Pfaff, regarding getopt.
60352
60353 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
60356         normal way.
60357         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
60358         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
60359         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
60360         (gl_GETOPT): Use the new macros.  Most of the implementation
60361         is moved to the new macros.  This is for programs like Emacs
60362         that don't want all the functionality of gl_GETOPT.
60363
60364 2005-07-26  Bruno Haible  <bruno@clisp.org>
60365
60366         * m4/lock.m4: Update from GNU gettext.
60367
60368 2005-07-26  Bruno Haible  <bruno@clisp.org>
60369
60370         * lib/lock.h: Update from GNU gettext.
60371         * lib/lock.c: Update from GNU gettext.
60372
60373 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
60374
60375         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
60376         obsolescent AC_TRY_RUN.  Include the default includes files, for
60377         'exit'.
60378
60379 2005-07-24  Bruno Haible  <bruno@clisp.org>
60380
60381         * modules/visibility: New file.
60382         * MODULES.html.sh (Misc): Add visibility.
60383
60384 2005-07-24  Bruno Haible  <bruno@clisp.org>
60385
60386         * m4/visibility.m4: New file.
60387
60388 2005-07-24  Bruno Haible  <bruno@clisp.org>
60389
60390         * doc/visibility.texi: New file.
60391
60392 2005-07-22  Bruno Haible  <bruno@clisp.org>
60393
60394         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
60395         $(ALLOCA_H), redundant through BUILT_SOURCES.
60396         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
60397         redundant through BUILT_SOURCES.
60398         * modules/byteswap (Makefile.am): Remove explicit dependency on
60399         $(BYTESWAP_H), redundant through BUILT_SOURCES.
60400         * modules/fnmatch (Makefile.am): Remove explicit dependency on
60401         $(FNMATCH_H), redundant through BUILT_SOURCES.
60402         * modules/getopt (Makefile.am): Remove explicit dependency on
60403         $(GETOPT_H), redundant through BUILT_SOURCES.
60404         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
60405         redundant through BUILT_SOURCES.
60406         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
60407         redundant through BUILT_SOURCES.
60408         * modules/stdbool (Makefile.am): Remove explicit dependency on
60409         $(STDBOOL_H), redundant through BUILT_SOURCES.
60410         * modules/stdint (Makefile.am): Remove explicit dependency on
60411         $(STDINT_H), redundant through BUILT_SOURCES.
60412         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
60413         Remove explicit dependency on $(SYSEXITS_H).
60414         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
60415
60416 2005-07-18  Simon Josefsson  <jas@extundo.com>
60417
60418         * lib/check-version.c (check_version): Accept identical versions too.
60419
60420 2005-07-18  Bruno Haible  <bruno@clisp.org>
60421
60422         * modules/lock: New file.
60423         * MODULES.html.sh (Multithreading): New section.
60424
60425 2005-07-18  Bruno Haible  <bruno@clisp.org>
60426
60427         * m4/lock.m4: New file, from GNU gettext.
60428
60429 2005-07-18  Bruno Haible  <bruno@clisp.org>
60430
60431         * lib/lock.h: New file, from GNU gettext.
60432         * lib/lock.c: New file, from GNU gettext.
60433
60434 2005-07-18  Bruno Haible  <bruno@clisp.org>
60435
60436         * lib/lock.h (gl_once_t): New type.
60437         (gl_once_define, gl_once): New macros.
60438         * lib/lock.c (fresh_once): New variable.
60439         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
60440         functions.
60441
60442 2005-07-16  Simon Josefsson  <jas@extundo.com>
60443
60444         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
60445         workaround, suggested by Bruno.
60446
60447 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60448
60449         * modules/xalloc (Depends-on): Add xalloc-die.
60450         * modules/xvasprintf (Depends-on): Add xalloc-die.
60451
60452 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
60455         with a minor change.
60456
60457 2005-07-15  Bruno Haible  <bruno@clisp.org>
60458
60459         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
60460         When using lib/poll.c, define poll as rpl_poll.
60461
60462 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
60463
60464         * modules/argp (Depends-on): Remove unlocked-io.
60465
60466 2005-07-14  Derek Price  <derek@ximbiot.com>
60467
60468         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
60469         for glob symlink bug.
60470
60471 2005-07-14  Bruno Haible  <bruno@clisp.org>
60472
60473         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
60474         Instead, test for *_unlocked function declarations directly.
60475
60476 2005-07-11  Simon Josefsson  <jas@extundo.com>
60477
60478         * modules/size_max: New file.
60479
60480         * modules/xsize: Depend on size_max module for size_max.m4.
60481
60482 2005-07-11  Simon Josefsson  <jas@extundo.com>
60483
60484         * lib/size_max.h: New file.
60485
60486 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
60487
60488         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
60489         copyright symbol and the year.
60490         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
60491         (version_etc_va): Use parameterized copyright notice.
60492         Reword to conform to the current GNU coding standards.
60493
60494 2005-07-11  Karl Berry  <karl@gnu.org>
60495
60496         * doc/gnulib.texi (Quoting): new node.
60497         (Initial import): more info, from Patrice.
60498
60499 2005-07-11  Bruno Haible  <bruno@clisp.org>
60500
60501         * gnulib-tool (func_usage): Document option --avoid.
60502         (Command line options): Handle --avoid.
60503         (func_acceptable): New function.
60504         (func_modules_transitive_closure): Use it.
60505
60506 2005-07-11  Bruno Haible  <bruno@clisp.org>
60507
60508         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
60509         Reported by Jim Meyering.
60510
60511 2005-07-10  Bruno Haible  <bruno@clisp.org>
60512
60513         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
60514         Needed when size_t is smaller than 'unsigned int'.
60515         Reported by Paul Eggert.
60516
60517 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60518
60519         * modules/argp (Depends-on): Add unlocked-io
60520
60521 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60522
60523         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
60524         block of defines.
60525
60526 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60527
60528         * config/srclist.txt: Comment out regcomp.c, since we have a porting
60529         fix now.
60530
60531 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
60532         and Paul Eggert  <eggert@cs.ucla.edu>
60533
60534         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
60535         in wint_t, not wchar_t.  Remove now-unnecessary cast.
60536
60537 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60538
60539         * modules/regex (Files): Add lib/regex_internal.c,
60540         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
60541         (Depends-on): Add extensions.
60542         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
60543
60544 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60545
60546         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
60547         pathconf.
60548         * m4/same.m4 (gl_SAME): Likewise.
60549         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
60550
60551         * m4/regex.m4: Adjust to new libc regex implementation.
60552         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
60553         all the .c and .h parts of (the new) regex.
60554         Quote the m4 stuff better.
60555         Check for RE_ICASE bug of old gnulib.
60556         Check for REG_STARTEND of recent libc.
60557         Rename local variables from jm_* to gl_*.
60558         Quote operand of "test -f".
60559         Say "recent enough" version of libc, not "version 2".
60560         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
60561         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
60562         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
60563         Remove check for btowc, isascii.
60564         Require AM_LANGINFO_CODESET.
60565
60566 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60567
60568         * lib/regex.c, regex.h: Sync from libc.
60569         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
60570         * lib/regexec.c:
60571         New files, synced from libc, except that regex_internal.h
60572         currently has a small porting fix.
60573
60574 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60575
60576         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
60577         regex_internal.c, regexec.c.
60578         Add regex_internal.h too, but as a comment, since the libc version
60579         is currently broken in gnulib mode.
60580
60581 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60582
60583         Support programs like Emacs that use gnulib but not gettext.
60584         * MODULES.html.sh (Internationalization functions): Add gettext-h.
60585         * modules/gettext-h: New file.
60586         * modules/gettext (Files): Remove lib/gettext.h.
60587         (Depends-on): Add gettext-h.
60588         (Makefile.am): Remove lib_SOURCES.
60589         * modules/argmatch, modules/c-stack, modules/closeout:
60590         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
60591         * modules/execute, modules/file-type, modules/getaddrinfo:
60592         * modules/getopt, modules/human, modules/javacomp:
60593         * modules/javaexec, modules/mkdir-p, modules/obstack:
60594         * modules/openat, modules/pagealign_alloc, modules/pipe:
60595         * modules/quotearg, modules/regex, modules/rpmatch:
60596         * modules/unicodeio, modules/userspec, modules/version-etc:
60597         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
60598         * modules/xsetenv:
60599         Depend on gettext-h, not gettext.
60600
60601 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60602
60603         * gnulib-tool (func_import): Add support for 'public domain' license.
60604         * modules/alloca, modules/atexit, modules/memmove:
60605         Now public domain, not GPL.
60606         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
60607         * modules/realloc, modules/strerror, modules/strtod:
60608         Now LGPL, not GPL.
60609
60610 2005-07-05  Bruno Haible  <bruno@clisp.org>
60611
60612         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
60613         autoconf CVS. Needed for mingw.
60614
60615 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60616
60617         Remove the dependency of the strftime module on the tzset module.
60618         * modules/strftime (Depends-on): Remove dependency on tzset.
60619
60620 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60621
60622         Remove the dependency of the strftime module on the tzset module.
60623         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
60624         gl_FUNC_TZSET_CLOBBER.
60625
60626 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60627
60628         Remove the dependency of the strftime module on the tzset module.
60629         * lib/strftime.c (my_strftime)
60630         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
60631         Copy the input structure, to work around some of the bug with
60632         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
60633         Solaris releases, you should also use the tzset module, but we won't
60634         require it as a dependency any more since we don't want LGPLed code
60635         to depend on GPLed code.
60636
60637 2005-07-02  Jim Meyering  <jim@meyering.net>
60638
60639         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
60640         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
60641         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
60642         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
60643
60644 2005-07-02  Jim Meyering  <jim@meyering.net>
60645
60646         * lib/backupfile.c (backup_args): Change a `0' to NULL.
60647
60648 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60649
60650         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
60651         declares only 'struct timespec;' (!).
60652
60653 2005-07-01  Jim Meyering  <jim@meyering.net>
60654
60655         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
60656         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
60657         * lib/save-cwd.c, tempname.c:
60658         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60659         and don't include <sys/file.h>).
60660
60661 2005-06-29  Jim Meyering  <jim@meyering.net>
60662
60663         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
60664         type name.  Use the variable name instead.
60665         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
60666         Likewise.
60667
60668 2005-06-28  Simon Josefsson  <jas@extundo.com>
60669
60670         * modules/check-version (Files): Add check-version.m4.
60671
60672 2005-06-28  Simon Josefsson  <jas@extundo.com>
60673
60674         * m4/check-version.m4: New file, suggested by Jim Meyering
60675         <jim@meyering.net>.
60676
60677 2005-06-28  Simon Josefsson  <jas@extundo.com>
60678
60679         * lib/check-version.h, lib/check-version.c: New files.
60680
60681 2005-06-28  Simon Josefsson  <jas@extundo.com>
60682
60683         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
60684         collision with global variable.  Better indentation.  Don't
60685         increment buffer pointer beyond buffer end.  Based on comments
60686         from Paul Eggert <eggert@cs.ucla.edu>.
60687
60688         * lib/base64.h: Indent.
60689
60690 2005-06-28  Simon Josefsson  <jas@extundo.com>
60691
60692         * doc/gnulib.texi (Library version handling): New section.
60693
60694 2005-06-28  Jim Meyering  <jim@meyering.net>
60695
60696         * check-module (find_included_lib_files): Hard-code another
60697         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
60698         but modules/fts-lgpl (correctly) does not list those files.
60699
60700         * modules/canonicalize (Files): Add lib/pathmax.h.
60701
60702 2005-06-25  Simon Josefsson  <jas@extundo.com>
60703
60704         * modules/check-version: New file.
60705
60706 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
60707
60708         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
60709         initializer of struct addrinfo, as an indication that we don't
60710         care how many members the structure has.
60711
60712 2005-06-24  Derek Price  <derek@ximbiot.com>
60713         and Bruno Haible  <bruno@clisp.org>
60714
60715         Remove stat module & update lstat.
60716         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
60717         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60718         * m4/stat.m4: Remove this file.
60719
60720 2005-06-24  Derek Price  <derek@ximbiot.com>
60721         and Bruno Haible  <bruno@clisp.org>
60722
60723         Remove stat module & update lstat.
60724         * lib/stat.c: Remove this file...
60725         (slash_aware_lstat): ...moving this content and its support...
60726         * lib/lstat.c (rpl_lstat): ...into here.
60727         * lib/lstat.h: New file.
60728
60729 2005-06-24  Derek Price  <derek@ximbiot.com>
60730         and Bruno Haible  <bruno@clisp.org>
60731
60732         Remove stat module & update lstat.
60733         * config/srclist.txt (libc sources): Remove stat.
60734
60735 2005-06-24  Derek Price  <derek@ximbiot.com>
60736         and Bruno Haible  <bruno@clisp.org>
60737
60738         Remove stat module & update lstat.
60739         * MODULES.html.sh (stat): Remove.
60740         * MODULES.html: Regenerated.
60741         * modules/lstat (Description): Correct function name.
60742         (Files): Add "lstat.h".
60743         (Depends-on): Remove stat, add xalloc, stat-macros.
60744         * modules/stat: Remove this file.
60745         (Include): Add "lstat.h", remove <sys/stat.h>.
60746
60747 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60748
60749         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
60750         (ranged_convert): Don't save conversion in a temporary struct.
60751         This causes a warning with GCC 4.0.0, and anyway in the typical
60752         case it's not worth the extra 100 bytes or so of code.
60753         (ranged_convert, __mktime_internal): When calling a function via a
60754         pointer P, use P () rather than (*P) (), as we now assume C89 or
60755         better.
60756
60757 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60758
60759         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
60760         "who -r" failed to give output.  Problem reported by Tim Waugh.
60761
60762         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
60763         (xcalloc): Use it to avoid needless tests.
60764         Problem reported by Jim Meyering.
60765
60766 2005-06-20  Derek Price  <derek@ximbiot.com>
60767
60768         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
60769         unnecessary for Autoconfs > 2.59c.
60770
60771 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60772
60773         * lib/argp.h (__option_is_short): Check upper limit of
60774         __key. Isprint() requires its argument to have the value
60775         of an unsigned char or EOF.
60776
60777 2005-06-16  Jim Meyering  <jim@meyering.net>
60778
60779         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
60780         when either N or S is zero.
60781
60782 2005-06-16  Derek Price  <derek@ximbiot.com>
60783
60784         * m4/bison.m4: Declare YACC & YFLAGS precious.
60785
60786 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
60787
60788         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
60789         multibyte string or pattern, fall back on unibyte matching.
60790         Problem reported by James Youngman.
60791
60792 2005-06-08  Bruno Haible  <bruno@clisp.org>
60793
60794         * modules/csharpcomp: New file.
60795         * MODULES.html.sh (C#): Add csharpcomp.
60796
60797 2005-06-08  Bruno Haible  <bruno@clisp.org>
60798
60799         * m4/csharpcomp.m4: New file, from GNU gettext.
60800
60801 2005-06-08  Bruno Haible  <bruno@clisp.org>
60802
60803         * lib/csharpcomp.h: New file, from GNU gettext.
60804         * lib/csharpcomp.c: New file, from GNU gettext.
60805         * lib/csharpcomp.sh.in: New file, from GNU gettext.
60806
60807 2005-06-08  Bruno Haible  <bruno@clisp.org>
60808
60809         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
60810         warning on mingw.
60811
60812 2005-06-07  Derek Price  <derek@ximbiot.com>
60813
60814         Sync from CVS.
60815         * lib/glob_.h: Indent nested #ifdef.
60816
60817 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60818
60819         Sync from coreutils.
60820         Use "file name" when talking about file names, instead of "filename"
60821         or "path", as per the GNU coding standards.
60822         * lib/mkdir-p.c: Renamed from makepath.c.
60823         (make_dir_parents): Renamed from make_path.  All callers changed.
60824         * lib/mkdir-p.h: Likewise.  All includers changed.
60825         * lib/filenamecat.c: Renamed from path-concat.c.
60826         (file_name_concat): Renamed from path_concat.  All callers changed.
60827         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
60828         * lib/filenamecat.h: Likewise.  All includers changed.
60829         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
60830         in comments or local variable names.
60831         * lib/basename.c: Likewise.
60832         * lib/canonicalize.c, canonicalize.h: Likewise.
60833         * lib/dirname.c, dirname.h: Likewise.
60834         * lib/euidaccess.c: Likewise.
60835         * lib/exclude.c: Likewise
60836         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
60837         * lib/fsusage.c, fsuage.h: Likewise.
60838         * lib/fts.c, fts_.h: Likewise.
60839         * lib/getcwd.c: Likewise.
60840         * lib/getloadavg.c: Likewise.
60841         * lib/mkstemp.c: Likewise.
60842         * lib/mountlist.c, mountlist.h: Likewise.
60843         * lib/openat.c, openat.h: Likewise.
60844         * lib/readlink-stub.c: Likewise.
60845         * lib/readutmp.c, readutmp.h: Likewise.
60846         * lib/rename.c: Likewise.
60847         * lib/rmdir.c: Likewise.
60848         * lib/same.c: Likewise.
60849         * lib/savedir.c: Likewise.
60850         * lib/stripslash.c: Likewise.
60851         * lib/tempname.c: Likewise.
60852         * lib/xreadlink.c: Likewise.
60853         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
60854         All uses changed.
60855         * lib/exclude.h: Likewise.
60856
60857         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
60858         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60859         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
60860         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60861         * lib/pathmax.h: Include <limits.h> unconditionally, since other
60862         files have been getting away with it for years (MORE/BSD 4.3
60863         is extinct now).
60864         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
60865         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60866
60867         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
60868         Define to 256, not 255, as per modern POSIX.
60869
60870 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         Sync from coreutils.
60873         Use "file name" when talking about file names, instead of "filename"
60874         or "path", as per the GNU coding standards.
60875         * MODULES.html.sh: mkdir-p renamed from makepath.
60876         filenamecat renamed from path-concat.
60877         * modules/filenamecat: Renamed from modules/path-concat.
60878         (Files): filenamecat.h and filenamecat.c renamed from
60879         path-concat.h and path-concat.c.
60880         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
60881         (Include): filenamecat.h, not path-concat.h.
60882         * modules/mkdir-p: Renamed from modules/makepath.
60883         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
60884         makepath.c.
60885         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
60886         (Include): mkdir-p.h, not makepath.h.
60887
60888 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60889
60890         Sync from coreutils.
60891         * m4/mkdir-p.m4: Renamed from makepath.m4.
60892         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
60893         Rename files from makepath.c to mkdir-p.c, and from
60894         makepath.h to mkdir-p.h.
60895         * m4/filenamecat.m4: Renamed from path-concat.m4.
60896         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
60897         Rename files from path-concat.c to filenamecat.c,
60898         and from path-concat.h to filenamecat.h.
60899         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
60900         "file name" in local variables or comments.
60901         * m4/rename.m4: Likewise.
60902
60903 2005-06-01  Bruno Haible  <bruno@clisp.org>
60904
60905         * modules/csharpexec: New file.
60906         * MODULES.html.sh (C#): New section.
60907
60908 2005-06-01  Bruno Haible  <bruno@clisp.org>
60909
60910         * m4/csharp.m4: New file, from GNU gettext.
60911         * m4/csharpexec.m4: New file, from GNU gettext.
60912
60913 2005-06-01  Bruno Haible  <bruno@clisp.org>
60914
60915         * lib/csharpexec.h: New file, from GNU gettext.
60916         * lib/csharpexec.c: New file, from GNU gettext.
60917         * lib/csharpexec.sh.in: New file, from GNU gettext.
60918
60919 2005-05-31  Derek Price  <derek@ximbiot.com>
60920             Paul Eggert  <eggert@cs.ucla.edu>
60921
60922         Sync from cvs.
60923         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60924
60925 2005-05-31  Derek Price  <derek@ximbiot.com>
60926             Paul Eggert  <eggert@cs.ucla.edu>
60927
60928         Sync from cvs.
60929         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60930
60931 2005-05-29  Derek Price  <derek@ximbiot.com>
60932
60933         * config/srclist.txt (glob_.h, glob.c): Add these files.
60934
60935 2005-05-29  Derek Price  <derek@ximbiot.com>
60936
60937         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
60938         * modules/glob: New file.
60939         * modules/getlogin_r: Add link to POSIX spec in description.
60940
60941 2005-05-29  Derek Price  <derek@ximbiot.com>
60942             Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * m4/glob.m4: New file.
60945
60946 2005-05-29  Derek Price  <derek@ximbiot.com>
60947             Paul Eggert  <eggert@cs.ucla.edu>
60948
60949         * lib/glob_.h, lib/glob.c: New files.
60950
60951 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         * modules/fts (Files): Remove m4/inttypes-pri.m4.
60954         * modules/fts-lgpl (Depends-on): Remove gettext.
60955
60956 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60957
60958         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
60959         and don't require gt_INTTYPES_PRI.
60960
60961 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60962
60963         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
60964
60965         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
60966         the configuration hassle isn't worth it.
60967         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
60968         (LONGEST_MODIFIER, PRIuMAX): Remove.
60969
60970 2005-05-27  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/getlogin_r.h: Remove second include of <stddef.h>.
60973
60974 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
60975
60976         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
60977         _POSIX_PTHREAD_SEMANTICS for Solaris.
60978
60979 2005-05-25  Derek Price  <derek@ximbiot.com>
60980
60981         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
60982
60983 2005-05-25  Derek Price  <derek@ximbiot.com>
60984             Paul Eggert  <eggert@cs.ucla.edu>
60985
60986         * modules/getlogin_r, m4/getlogin_r.m4: New files.
60987         * lib/getlogin_r.c, getlogin_r.h: New files.
60988
60989 2005-05-25  Bruno Haible  <bruno@clisp.org>
60990             Derek Price  <derek@ximbiot.com>
60991
60992         * lib/getlogin_r.h: Simplify API documentation.
60993
60994 2005-05-23  Derek Price  <derek@ximbiot.com>
60995
60996         * modules/minmax (Files): Add m4/minmax.m4.
60997         (configure.ac): Add gl_MINMAX.
60998
60999 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61000
61001         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61002         so that unistd-safer.h (GPL'ed code) need not be included.
61003
61004 2005-05-22  Bruno Haible  <bruno@clisp.org>
61005
61006         * m4/minmax.m4: New file.
61007         Based on a patch by Derek Price <derek@ximbiot.com>.
61008
61009 2005-05-22  Bruno Haible  <bruno@clisp.org>
61010
61011         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61012         (INT64_MIN): Fix definition.
61013         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61014
61015         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61016         NEED_SIGNED_INT_TYPES.
61017
61018         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61019         HAVE_SYSTEM_INTTYPES.
61020
61021 2005-05-22  Bruno Haible  <bruno@clisp.org>
61022
61023         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61024         Also include <sys/param.h> if it defines MIN, MAX.
61025         Based on a patch by Derek Price <derek@ximbiot.com>.
61026
61027 2005-05-21  Jim Meyering  <jim@meyering.net>
61028
61029         * modules/fts (Files): Add m4/inttypes-pri.m4.
61030         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61031
61032 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61033
61034         New fts module.
61035         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61036         (setup_dir, free_dir): New functions.
61037         (enter_dir, leave_dir): Define trivial
61038         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61039         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61040         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61041         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61042         Move to fts-cycle.c.
61043         (fts_open): Use setup_dir.
61044         (fts_close): Use free_dir.
61045         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
61046         This adds a label and some gotos, but the alternatives were messier.
61047         Check for memory allocation failure when entering a dir.
61048         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
61049         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
61050         (FTS): New member fts_cycle, that is a union that contains the
61051         old active_dir_ht and cycle_state.  All uses changed to mention
61052         fts_cycle.ht and fts_cycle.state.
61053         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
61054         fts.c, with the following changes:
61055         (setup_dir, free_dir): New functions.
61056         (enter_dir): Now returns bool.  Return true if successful, false
61057         if memory exhausted.  All callers changed.
61058         Do not bother partly cleaning up on
61059         memory allocation failure; that is free_dir's job.
61060         However, free ad if hash_insert fails, to avoid memory leak.
61061         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
61062         fts->fts_options to see which union member to use.
61063
61064 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61065
61066         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
61067         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
61068
61069 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
61072
61073 2005-05-20  Jim Meyering  <jim@meyering.net>
61074
61075         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
61076         Now a macro, to pacify GCC.
61077
61078 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61079
61080         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
61081         of -1.
61082
61083 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61084
61085         * lib/chown.c (rpl_chown): Return -1 on failure.
61086
61087 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61088
61089         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
61090         Don't check for stddef.h.
61091         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
61092         don't use its results.
61093         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
61094         since we include them unconditionally.  Don't require
61095         AM_STDBOOL_H, since stdbool is a prerequisite.
61096         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
61097         since we assume C89 or better.
61098         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
61099         as we don't use their results.
61100         Don't check for fchdir, memmove, memset, strrchr, as we use
61101         them unconditionally.
61102         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
61103         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
61104
61105 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61106
61107         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
61108         Include <stddef.h> unconditionally, since we assume C89 now.
61109         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
61110         * lib/fts.c: Include fts_.h first, to check interface.
61111         Do not include intprops.h; no longer needed.
61112         Include cycle-check.h and hash.h, since fts_.h no longer does.
61113         Remove unnecessary casts of closedir to void.
61114         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
61115         decide whether to decrement nlinks.
61116         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
61117         (FTS): Use struct hash_table * instead of Hash_table, so that
61118         we no longer need to include hash.h here.
61119
61120 2005-05-18  Jim Meyering  <jim@meyering.net>
61121
61122         * modules/dirfd (License): Change to LGPL.  Most of the code
61123         is already in the public domain.
61124
61125 2005-05-18  Jim Meyering  <jim@meyering.net>
61126
61127         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
61128         Reported by Yoann Vandoorselaere.
61129
61130 2005-05-17  Jim Meyering  <jim@meyering.net>
61131
61132         * m4/fts.m4: New file, from coreutils.
61133
61134 2005-05-17  Jim Meyering  <jim@meyering.net>
61135
61136         * lib/fts.c, lib/fts_.h: New files, from coreutils.
61137
61138 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61139
61140         Sync from coreutils.
61141         * m4/unlinkdir.m4: New file.
61142
61143 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61144
61145         Sync from coreutils.
61146         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
61147         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
61148         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
61149         White space changes only.
61150         * lib/makepath.c (make_path): Port to hosts where leading "//" is
61151         special.
61152         * lib/yesno.c: Include getline.h, not ctype.h.
61153         (yesno): Don't remove leading white space; POSIX doesn't allow it.
61154         Use getline to remove arbitrary restriction on response length.
61155
61156 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61157
61158         * config/srclist-update: Spell out "Street" in FSF postal
61159         mail address; this is the style the FSF seems to prefer.
61160
61161         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
61162         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
61163         this updates FSF postal mail address.
61164
61165         Sync from coreutils.
61166         * modules/unlinkdir: New file.
61167         * modules/yesno (Depends-on): Add getline.
61168         * MODULES.html.sh (File system functions): Add unlinkdir.
61169
61170 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
61173         lib/strsep.h:
61174         Change the initial comment to refer to GPL, not LGPL.
61175         gnulib-tool will change it to LGPL as needed.
61176
61177         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
61178         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
61179         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
61180         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
61181         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
61182         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
61183         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
61184         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
61185         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
61186         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
61187         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
61188         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
61189         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
61190         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
61191         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
61192         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
61193         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
61194         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
61195         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
61196         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
61197         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
61198         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
61199         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
61200         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
61201         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
61202         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
61203         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
61204         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
61205         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
61206         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
61207         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
61208         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
61209         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
61210         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
61211         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
61212         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
61213         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
61214         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
61215         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
61216         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
61217         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
61218         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
61219         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
61220         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
61221         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
61222         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
61223         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
61224         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
61225         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
61226         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
61227         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61228         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
61229         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
61230         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
61231         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
61232         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
61233         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
61234         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
61235         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
61236         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
61237         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
61238         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
61239         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
61240         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
61241         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
61242         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
61243         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
61244         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
61245         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
61246         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
61247         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
61248         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
61249         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
61250         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
61251         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
61252         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
61253         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
61254         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
61255         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
61256         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
61257         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
61258         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
61259         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
61260         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
61261         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
61262         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
61263         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
61264         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
61265         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
61266         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
61267         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
61268         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
61269         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
61270         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
61271         lib/yesno.c, lib/yesno.h:
61272         Update FSF postal mail address.
61273
61274 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61275
61276         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
61277         tests/test-memmem.c, tests/test-stpncpy.c:
61278         Update FSF postal mail address.
61279
61280 2005-05-13  Bruno Haible  <bruno@clisp.org>
61281
61282         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
61283         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
61284         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
61285         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
61286         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
61287         Add support for 64-bit integers in the MSVC compiler.
61288
61289 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61290
61291         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
61292
61293 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
61294
61295         * gnulib-tool (func_import): Sort and uniquify recommended includes.
61296
61297 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
61298
61299         * doc/getdate.texi (General date syntax): Don't say that date
61300         date --iso-8601=ns generates acceptable dates; it doesn't yet.
61301         Problem reported by Nic Ferrier.
61302
61303 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61304
61305         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
61306         specified in ai_socktype. Fix invalid ai_protocol
61307         check. ai_protocol is usually set to 0 or depending on
61308         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
61309         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
61310         ai_socktype / ai_protocol in the returned addrinfo structure.
61311
61312 2005-05-10  Simon Josefsson  <jas@extundo.com>
61313
61314         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
61315         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61316
61317 2005-05-10  Karl Berry  <karl@gnu.org>
61318
61319         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
61320         (from http://www.gnu.org/licenses).
61321         * doc/COPYING.LIB: also rename to COPYING.LESSER.
61322         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
61323         fdl.texi suffices.
61324
61325 2005-05-10  Karl Berry  <karl@gnu.org>
61326
61327         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
61328         (COPYING.DOC): remove.
61329
61330         * config/srclist-update: new FSF address.
61331
61332 2005-05-10  Derek Price  <derek@ximbiot.com>
61333
61334         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
61335         possible.
61336
61337 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61338             Bruno Haible  <bruno@clisp.org>
61339
61340         * modules/inet_ntop: New file.
61341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61342         inet_ntop.
61343
61344 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61345             Bruno Haible  <bruno@clisp.org>
61346
61347         * m4/inet_ntop.m4: New file.
61348
61349 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61350             Bruno Haible  <bruno@clisp.org>
61351
61352         * lib/inet_ntop.h: New file.
61353         * lib/inet_ntop.c: New file, from glibc with modifications.
61354
61355 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
61356
61357         * modules/time_r (License): Change to LGPL.
61358         * modules/extensions (License): Change to LGPL.  Actually,
61359         the license is more permissive than that, but currently gnulib-tool
61360         doesn't know how to handle more-permissive licenses.
61361
61362         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
61363         Problem reported by Dave Love.
61364
61365 2005-05-08  Jim Meyering  <jim@meyering.net>
61366
61367         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
61368         blank.
61369
61370 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61371
61372         * modules/argmatch (Depends-on): Add stdbool.
61373         * modules/backupfile (Depends-on): Likewise.
61374         * modules/chdir-long (Depends-on): Likewise.
61375         * modules/closeout (Depends-on): Likewise.
61376         * modules/cycle-check (Depends-on): Likewise.
61377         * modules/dirname (Depends-on): Likewise.
61378         * modules/fnmatch (Depends-on): Likewise.
61379         * modules/fsusage (Depends-on): Likewise.
61380         * modules/fwriteerror (Depends-on): Likewise.
61381         * modules/getcwd (Depends-on): Likewise.
61382         * modules/getloadavg (Depends-on): Likewise.
61383         * modules/hard-locale (Depends-on): Likewise.
61384         * modules/makepath (Depends-on): Likewise.
61385         * modules/mountlist (Depends-on): Likewise.
61386         * modules/nanosleep (Depends-on): Likewise.
61387         * modules/posixtm (Depends-on): Likewise.
61388         * modules/quotearg (Depends-on): Likewise.
61389         * modules/readtokens (Depends-on): Likewise.
61390         * modules/readtokens0 (Depends-on): Likewise.
61391         * modules/readutmp (Depends-on): Likewise.
61392         * modules/save-cwd (Depends-on): Likewise.
61393         * modules/strftime (Depends-on): Likewise.
61394         * modules/userspec (Depends-on): Likewise.
61395         * modules/utimecmp (Depends-on): Likewise.
61396         * modules/xgetcwd (Depends-on): Likewise.
61397         * modules/xnanosleep (Depends-on): Likewise.
61398         * modules/xstrtod (Depends-on): Likewise.
61399         * modules/yesno (Depends-on): Likewise.
61400
61401 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
61402
61403         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
61404         needless checks.
61405
61406 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61407
61408         Merge from coreutils.  Among other things,
61409         add bulletproofing for cases where stdin, stdout, or stderr are closed.
61410         * lib/fd-safer.c: New file.
61411         * lib/fcntl-safer.h, open-safer.c: Remove.
61412         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
61413         * lib/dup-safer.c: Include unistd-safer.h first.
61414         Don't include errno.h.
61415         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
61416         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
61417         * lib/file-type.c: Rely on file-type.h change.
61418         * lib/getloadavg.c: Include unistd-safer.h.
61419         (getloadavg): Use safer open.
61420         * lib/getusershell.c: Include "stdio-safer.h".
61421         (getusershell): Use safer fopen.
61422         * lib/long-options.c (long_options): Use NULL rather than 0.
61423         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
61424         'free'.
61425         * lib/modechange.c: Likewise.
61426         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
61427         (MODE_DONE): New constant.
61428         (struct mode_change): Remove 'next' member.
61429         (make_node_op_equals): New function; like the old one of the
61430         same name, except it allocates an array.
61431         (mode_compile, mode_create_from_ref): Use it.
61432         (mode_compile): Allocate result as an array, not a linked list.
61433         Parse octal string ourself, so that we catch mistakes like "+0".
61434         (mode_adjust): Arg is an array, not a linked list.
61435         * lib/modechange.c: Include stat-macros.h, xalloc.h.
61436         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
61437         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
61438         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
61439         Remove.  This is now stat-macros.h's job.
61440         (talloc): Remove.  All callers replaced by xalloc, so that
61441         our invokers don't have to worry about reporting memory failures.
61442         (make_node_op_equals): Remove.
61443         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61444         New constants.
61445         (struct mode_change): Moved here from modechange.h.
61446         (mode_append_entry): Remove.
61447         (mode_compile): Remove MASKED_OPS arg, since it encouraged
61448         apps to have incorrect behavior.  Use simpler algorithm for head
61449         and tail.  Don't futz with umask; that's now the job of mode_adjust.
61450         Detect more invalid usages rather than having somewhat-random behavior.
61451         Don't insert an "a=" action, as that leads to incorrect behavior.
61452         (mode_compile, mode_create_from_ref): Return NULL on error instead
61453         of an enum, since now there's only one way to have an error.  All
61454         callers changed.
61455         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
61456         at the correct time.  Simplify calculation of "+u" and its ilk.
61457         Don't mishandle "+X".
61458         (mode_free): Remove "register" and localize decls.
61459         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61460         (struct mode_change): Move to modechange.c; callers don't
61461         need to see this stuff.
61462         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
61463         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
61464         (mode_change, mode_adjust): Reflect the new signatures noted above.
61465         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
61466         that might redefine system include files.
61467         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
61468         (my_usleep): Use NULL rather than (void *) 0.
61469         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
61470         Use siginterrupt to specify that system calls should be interrupted.
61471         (rpl_nanosleep): Move initialization of suspended closer to call of
61472         my_usleep.
61473         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
61474         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
61475         (desirable_utmp_entry): New function.
61476         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
61477         using x2nrealloc, to simplify logic.
61478         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
61479         size calculation.  Do not assume utmp file is a regular file.
61480         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
61481         (READ_UTMP_CHECK_PIDS): New constant.
61482         * lib/save-cwd.c: Include unistd-safer.h.
61483         (save_cwd): Use fd_safer.
61484         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
61485         [!_LIBC] Include "stat-macros.h" instead.
61486         * lib/unistd-safer.h (fd_safer): New decl.
61487
61488 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * modules/getloadavg (Depends-on): Add unistd-safer.
61491         * modules/getusershell (Depends-on): Add stdio-safer.
61492         * modules/lstat (Depends-on): Remove xalloc.
61493         * modules/mkstemp (Depends-on): Add stat-macros.
61494         * modules/modechange (Depends-on): Remove xstrtol.
61495         Add stat-macros, xalloc.
61496         * modules/save-cwd (Depends-on): Add unistd-safer.
61497         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
61498         * modules/unistd-safer (Files): Add lib/fd-safer.c
61499         (Makefile.am): Remove lib_SOURCES.
61500
61501         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
61502         Remove fcntl-safer; unistd-safer supersedes it.
61503
61504 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61505
61506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
61507         AC_HEADER_STAT.
61508         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
61509         (gl_PREREQ_CHOWN): Remove.
61510         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
61511         it.  Don't require AC_HEADER_STAT.
61512         (gl_PREREQ_LSTAT): Remove.
61513         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
61514         Don't require AC_HEADER_STAT.
61515         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
61516         (gl_PREREQ_RMDIR): Remove.
61517         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
61518         mention stat-macros.h or AC_HEADER_STAT, since we'll make
61519         the stat-macros module a prerequisite.
61520         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
61521         * m4/filemode.m4 (gl_FILEMODE): Likewise.
61522         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
61523         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
61524         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
61525         variable names.
61526         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
61527         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
61528         variable prefixes.
61529         * m4/fcntl-safer.m4: Remove.
61530         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
61531         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
61532         Invoke gl_PREREQ_FD_SAFER.
61533         (gl_PREREQ_FD_SAFER): New macro.
61534         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
61535         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
61536         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
61537         Remove duplicate call to AC_LIBOBJ(readutmp).
61538         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
61539
61540         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
61541         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
61542
61543 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * MODULES.html.sh (Misc): Add byteswap.
61546
61547 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61548
61549         * modules/getcwd (Depends-on): Add extensions.
61550         * modules/openat (Depends-on): Likewise.
61551
61552 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61553
61554         * modules/byteswap: New file.
61555
61556 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61557
61558         * m4/byteswap.m4: New file.
61559
61560 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61561
61562         * lib/byteswap_.h: New file.
61563
61564 2005-04-25  Karl Berry  <karl@gnu.org>
61565
61566         * m4/gettext.m4: Update from GNU gettext 0.14.4.
61567
61568 2005-04-25  Albert Chin  <china@thewrittenword.com>
61569
61570         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
61571         Toolkit C bug.
61572
61573 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
61574
61575         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
61576         (func_ln_if_changed) Remove forcibly for no error message
61577         in case file does not exist.
61578
61579 2005-04-19  Simon Josefsson  <jas@extundo.com>
61580
61581         * gnulib-tool (Options): Make --symlink mean --symbolic.
61582
61583 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
61584
61585         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
61586
61587 2005-04-16  Simon Josefsson  <jas@extundo.com>
61588
61589         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
61590
61591 2005-04-15  Simon Josefsson  <jas@extundo.com>
61592
61593         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
61594
61595 2005-04-15  Simon Josefsson  <jas@extundo.com>
61596
61597         * gnulib-tool: Rename --symlink to --symbolic.
61598
61599 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
61600
61601         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
61602         symbolic links to files instead of copying/moving.  Add --aux-dir,
61603         specifying directory relative --dir where auxiliary build tools
61604         are placed.
61605
61606 2005-04-14  Bruno Haible  <bruno@clisp.org>
61607
61608         * modules/allocsa (License): Change to LGPL.
61609         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
61610
61611 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
61614         that "UTC +1 second" continues to work.  Problem reported
61615         by Dmitry V. Levin.
61616         (relunit_snumber): New rule.
61617         (relunit): Use it.
61618
61619 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61620
61621         * lib/getdate.y (universal_time_zone_table): New constant.
61622         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
61623         universal_time_zone_table.
61624         (lookup_zone): Prefer universal_time_zone_table to
61625         local_time_zone_table, so that "GMT" time stamps are allowed in
61626         London during the summer.  Problem reported by Ian Abbott.
61627
61628 2005-04-12  Jim Meyering  <jim@meyering.net>
61629
61630         * lib/human.c (humblock): Set *options even when returning due to
61631         xstrtoumax conversion failure.  Thanks to a used-uninitialized
61632         warning from gcc-4.
61633
61634 2005-04-09  Jim Meyering  <jim@meyering.net>
61635
61636         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
61637         -Wuninitialized: initialize tm0.tm_year.
61638
61639 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
61642         count, since there's no maximum.  All uses changed.
61643         Add member dsts_seen.
61644         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
61645         not being INT_MAX.
61646         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
61647         Use pc_rels_seen to decide whther a date is absolute.
61648
61649         * lib/getdate.y (number): Don't overwrite year.
61650         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
61651         check.
61652
61653 2005-04-02  Simon Josefsson  <jas@extundo.com>
61654
61655         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
61656         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
61657
61658 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
61659
61660         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
61661         where no absolute path name can be longer than PATH_MAX.
61662
61663 2005-03-27  Jim Meyering  <jim@meyering.net>
61664
61665         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
61666
61667 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
61668
61669         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
61670         "one's complement" -> "ones' complement" in comment, as per Knuth.
61671         "value of type" -> "type or expression" in comment.
61672         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
61673
61674 2005-03-26  Jim Meyering  <jim@meyering.net>
61675
61676         Comment nits.
61677         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
61678         Correct typos: s/or/of/.
61679
61680 2005-03-26  Jim Meyering  <jim@meyering.net>
61681
61682         * modules/check-include-files: Move to ../ and rename to...
61683         * check-module: ...this.
61684
61685 2005-03-25  Jim Meyering  <jim@meyering.net>
61686
61687         * modules/xvasprintf (Files): Add xalloc.h.
61688
61689 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61690
61691         * modules/gettext (Files): config/config.rpath ->
61692         build-aux/config.rpath
61693         * modules/iconv (Files): Likewise.
61694         Problem reported by Oskar Liljeblad.
61695
61696 2005-03-23  Jim Meyering  <jim@meyering.net>
61697
61698         * modules/check-include-files: New script to check for
61699         missing dependencies, multiple includes, etc.
61700
61701         * modules/c-strtold (Depends-on): Add xalloc.
61702         * modules/c-strtod (Depends-on): Add xalloc.
61703         * modules/hash (Depends-on): Add xalloc.
61704         (Files): Remove lib/xalloc.h.
61705
61706         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
61707         * modules/userspec (Files): Add lib/inttostr.h.
61708
61709 2005-03-23  Jim Meyering  <jim@meyering.net>
61710
61711         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
61712
61713 2005-03-22  Jim Meyering  <jim@meyering.net>
61714
61715         * modules/stat-macros: New module.
61716         * modules/canonicalize, modules/euidaccess, modules/file-type,
61717         * modules/filemode, modules/lchown, modules/makepath,
61718         * modules/rmdir, modules/stat: Depend on new stat-macros module
61719         rather than listing lib/stat-macros.h manually.
61720         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
61721
61722 2005-03-22  Jim Meyering  <jim@meyering.net>
61723
61724         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
61725
61726 2005-03-22  Bruno Haible  <bruno@clisp.org>
61727
61728         * config/srclist.txt: Replace target directory 'config' with
61729         'build-aux'.
61730         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
61731         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
61732         ../build-aux/.
61733
61734 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
61735
61736         * modules/chdir-long (Depends-on): Add mempcpy.
61737
61738         * modules/acl, modules/backupfile, modules/c-strtod,
61739         modules/c-strtold, modules/canon-host, modules/canonicalize,
61740         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
61741         modules/exclude, modules/exitfail, modules/file-type,
61742         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
61743         modules/getdate, modules/getline, modules/getpagesize,
61744         modules/getpass, modules/getugroups, modules/group-member,
61745         modules/hard-locale, modules/hash, modules/human, modules/idcache,
61746         modules/inttostr, modules/long-options, modules/makepath,
61747         modules/md5, modules/memcasecmp, modules/memcoll,
61748         modules/modechange, modules/mountlist, modules/path-concat,
61749         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
61750         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
61751         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
61752         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
61753         modules/strftime, modules/strndup, modules/strverscmp,
61754         modules/timespec, modules/unlocked-io, modules/userspec,
61755         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
61756         modules/yesno:
61757         Remove lib_SOURCES line from Makefile.am section, as this is now
61758         done automatically by the corresponding Autoconf macro.
61759
61760 2005-03-21  Jim Meyering  <jim@meyering.net>
61761
61762         Changes imported from coreutils.
61763
61764         * lib/cycle-check.c: Don't include xalloc.h.
61765
61766         * lib/path-concat.c: Don't include assert.h.
61767         (path_concat): Remove assertion that would have triggered
61768         for ABASE starting with more than one slash.
61769         Reported by Andreas Schwab.
61770
61771         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
61772         properly when ABASE is an absolute file name.
61773         Correct the description of this function.
61774         Include <assert.h>.
61775         Add an assertion and a test driver.
61776         This fixes a bug introduced on 2004-07-02.
61777         Andreas Schwab reported the resulting failure of cp --parents:
61778         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
61779
61780 2005-03-21  Jim Meyering  <jim@meyering.net>
61781
61782         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
61783         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
61784
61785 2005-03-21  Jim Meyering  <jim@meyering.net>
61786         and  Paul Eggert  <eggert@cs.ucla.edu>
61787
61788         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
61789         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
61790         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
61791         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
61792         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
61793         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
61794         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
61795         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
61796         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
61797         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
61798         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
61799         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
61800         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
61801         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
61802         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
61803         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
61804         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
61805         for these modules.
61806
61807 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
61810         (which shouldn't happen), generate nothing instead of returning 0
61811         immediately, so that nstrftime (NULL, ...) doesn't return 0.
61812
61813 2005-03-16  Bruno Haible  <bruno@clisp.org>
61814
61815         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
61816         HAVE_LONGLONG_64BIT.
61817
61818 2005-03-16  Bruno Haible  <bruno@clisp.org>
61819
61820         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
61821         HAVE_LONGLONG_64BIT.
61822
61823 2005-03-16  Bruno Haible  <bruno@clisp.org>
61824
61825         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
61826         HAVE_LONGLONG_64BIT.
61827
61828 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
61829
61830         * lib/strftime.c (my_strftime): Prepend space to format so that we can
61831         reliably distinguish strftime failure from empty output on POSIX
61832         hosts.
61833
61834 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
61835
61836         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
61837         (iconv_string): Don't guess a size-zero buffer, as that might cause
61838         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
61839         result would be 'too large', where 'too large' is (heuristically)
61840         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
61841         overflow concerns.  This will prevent some unwanted malloc failures
61842         when the inputs are very large.
61843
61844 2005-03-15  Karl Berry  <karl@gnu.org>
61845
61846         * config/srclist.txt (config.rpath): from gettext.
61847         * config/config.rpath: update.
61848
61849 2005-03-15  Bruno Haible  <bruno@clisp.org>
61850
61851         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
61852         to 'negate'.
61853
61854         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
61855         variable.
61856
61857         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
61858         results.
61859
61860 2005-03-14  Simon Josefsson  <jas@extundo.com>
61861
61862         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
61863         <fx@gnu.org>.
61864
61865 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
61866
61867         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
61868         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
61869         intprops.h.
61870         * lib/strtol.c: Likewise.
61871
61872 2005-03-14  Jim Meyering  <jim@meyering.net>
61873
61874         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
61875         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
61876         to be nonzero so that we (and caller) can detect the difference
61877         between a valid zero-length expansion and an error return, even
61878         when the underlying strftime fails before writing anything into
61879         that location.
61880
61881 2005-03-14  Bruno Haible  <bruno@clisp.org>
61882
61883         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
61884         Update from GNU gettext 0.14.3.
61885
61886 2005-03-10  Jim Meyering  <jim@meyering.net>
61887
61888         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
61889
61890 2005-03-10  Jim Meyering  <jim@meyering.net>
61891
61892         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
61893         so that this module works on systems without fchdir.
61894
61895 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         Factor int-properties macros into a single file, except for
61898         glibc-related files.
61899         * lib/intprops.h: New file.
61900         * lib/getloadavg.c: Include it instead of limits.h.
61901         (INT_STRLEN_BOUND): Remove.
61902         * lib/human.c: Include intprops.h.
61903         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
61904         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
61905         302/1000.
61906         * lib/inttostr.h: Include intprops.h instead of limits.h.
61907         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
61908         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
61909         for consistency with intprops.h.
61910         (time_t_is_integer, twos_complement_arithmetic): Use them.
61911         * lib/sig2str.h: Include <signal.h>, intprops.h.
61912         (INT_STRLEN_BOUND): Remove.
61913         * lib/strftime.c (TYPE_SIGNED): Remove.
61914         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
61915         * lib/strtol.c: Adjust comments to match intprops.h.
61916         * lib/userspec.c: Include intprops.h.
61917         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
61918         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
61919         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
61920         instead of rolling our own expressions.
61921         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
61922
61923         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
61924         instead of int.
61925         (my_strftime): Do not mishandle years close to INT_MAX, by doing
61926         the right thing even if adding 1900 would overflow.  Similarly
61927         for tm_mon + 1 and tm_yday + 1.
61928         Make %Y always equivalent to %C%y, and similarly for %G and %g.
61929         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
61930         (DO_SIGNED_NUMBER): New macro.
61931         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
61932
61933 2005-03-07  Bruno Haible  <bruno@clisp.org>
61934
61935         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
61936
61937 2005-03-07  Bruno Haible  <bruno@clisp.org>
61938
61939         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
61940
61941 2005-03-04  Derek R. Price  <derek@ximbiot.com>
61942
61943         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
61944         (func_import): Only replace files via --import when they have actually
61945         changed.
61946
61947 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61948
61949         * m4/mmap-anon.m4: New file.
61950         * m4/pagealign_alloc.m4: New file.
61951
61952 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61953             Bruno Haible  <bruno@clisp.org>
61954
61955         * modules/pagealign_alloc: New file.
61956         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
61957
61958 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61959             Bruno Haible  <bruno@clisp.org>
61960
61961         * lib/pagealign_alloc.h: New file.
61962         * lib/pagealign_alloc.c: New file.
61963
61964 2005-03-03  Bruno Haible  <bruno@clisp.org>
61965
61966         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
61967         Use an all-permissive copyright notice, recommended by RMS.
61968
61969 2005-03-02  Bruno Haible  <bruno@clisp.org>
61970
61971         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
61972         of AIX, the replacement has to be done only after <string.h> is
61973         included, therefore not in config.h. stpncpy.h does the replacement,
61974         and stpncpy.c uses it.
61975
61976 2005-03-02  Bruno Haible  <bruno@clisp.org>
61977
61978         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
61979         stpncpy.c uses it.
61980
61981 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61982
61983         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
61984         The workaround isn't strictly needed for POSIX conformance, and
61985         it's too much of a pain to configure and maintain.  We'll ask
61986         people to fix their kernels instead.
61987         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
61988         (NANOSLEEP_BUG_WORKAROUND): Remove.
61989         (xnanosleep): Remove the workaround.
61990
61991 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61992
61993         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
61994         Reported by Derek Price.
61995         (Include): Add "timespec.h".
61996
61997         * modules/xnanosleep (Depends-on): Remove gethrxtime.
61998
61999 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62002         to detect nanosleep bug.
62003
62004 2005-03-01  Bruno Haible  <bruno@clisp.org>
62005
62006         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62007
62008 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * modules/gethrxtime: New file.
62011         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62012         (Depends-on): Add gethrxtime.
62013         (configure.ac): Add gl_XNANOSLEEP.
62014         (Makefile.am): Remove lib_SOURCES line.
62015
62016 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62017
62018         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62019         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62020
62021 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62022
62023         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62024         * lib/timespec.h (gettime): Return void, since it always
62025         succeeds now.  All uses changed.
62026         * lib/gettime.c (gettime) Likewise.
62027         [HAVE_NANOTIME]: Prefer nanotime.
62028         Assume gettimeofday succeeds, as POSIX requires.
62029         Assime time () succeeds, since other code already does.
62030         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62031         (timespec_subtract): Remove.
62032         (NANOSLEEP_BUG_WORKAROUND): New constant.
62033         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62034         things considerably.  Use it only on GNU/Linux hosts, since the
62035         workaround shouldn't be needed elsewhere.
62036
62037 2005-02-24  Bruno Haible  <bruno@clisp.org>
62038
62039         * modules/gettext (Files): Add m4/glibc2.m4.
62040
62041 2005-02-24  Bruno Haible  <bruno@clisp.org>
62042
62043         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62044         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62045         * m4/progtest.m4:
62046         Update from GNU gettext 0.14.2.
62047         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
62048
62049 2005-02-24  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/localcharset.c: Update from GNU gettext 0.14.2.
62052         * lib/config.charset: Update from GNU gettext 0.14.2.
62053
62054 2005-02-24  Bruno Haible  <bruno@clisp.org>
62055
62056         * lib/gettext.h: Update from GNU gettext 0.14.2.
62057
62058 2005-02-23  Simon Josefsson  <jas@extundo.com>
62059
62060         * m4/iconvme.m4: New file.
62061
62062 2005-02-23  Jim Meyering  <jim@meyering.net>
62063
62064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
62065         change.
62066         Thanks to Bruno Haible for catching it.
62067
62068 2005-02-22  Simon Josefsson  <jas@extundo.com>
62069
62070         * modules/iconvme: New file.
62071
62072         * MODULES.html.sh: Add iconvme.
62073
62074 2005-02-22  Simon Josefsson  <jas@extundo.com>
62075
62076         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
62077
62078 2005-02-22  Simon Josefsson  <jas@extundo.com>
62079
62080         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
62081
62082 2005-02-22  Jim Meyering  <jim@meyering.net>
62083
62084         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
62085         s/ifndef/ifdef/.
62086
62087 2005-02-20  Neil Conway  <neilc@samurai.com>
62088
62089         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
62090         returned by OSX/Darwin if the specified buffer is not large
62091         enough for the hostname.
62092
62093 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62094
62095         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
62096         pass it to _help, otherwise the latter coredumps trying to
62097         dereference state.root_argp.
62098
62099 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * modules/chdir-long (Depends-on): Add memrchr.
62102         * modules/memrchr (Files): Add lib/memrchr.h.
62103         (Include): "memrchr.h".
62104
62105 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62106
62107         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
62108
62109 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62110
62111         * lib/memrchr.h: New file.
62112         * lib/chdir-long.c: Include it.
62113         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
62114         Don't bother including stddef.h.
62115
62116 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62117
62118         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
62119         inclusion.
62120         Include <sys/types.h>, for dev_t.
62121         (ME_DUMMY, ME_REMOTE): Move from here....
62122         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
62123         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
62124         Dmitry V. Levin.
62125         Include mountlist.h first, to test the interface.
62126
62127 2005-01-29  Bruno Haible  <bruno@clisp.org>
62128
62129         * lib/progname.c (program_name): Initialize.
62130         Needed when linking statically on MacOS X.
62131
62132 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62133
62134         Sync from coreutils.
62135         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
62136         (Depends-on): Add c-strtod.
62137         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
62138
62139 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         Sync from coreutils.
62142         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
62143
62144         Remove files that are specific to coreutils.
62145         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
62146
62147 2005-01-28  Bruno Haible  <bruno@clisp.org>
62148
62149         * modules/javacomp: New file.
62150         * MODULES.html.sh (Java): Add javacomp.
62151
62152 2005-01-28  Bruno Haible  <bruno@clisp.org>
62153
62154         * m4/javacomp.m4: New file, from GNU gettext.
62155
62156 2005-01-28  Bruno Haible  <bruno@clisp.org>
62157
62158         * lib/javacomp.sh.in: New file, from GNU gettext.
62159         * lib/javacomp.h: New file, from GNU gettext.
62160         * lib/javacomp.c: New file, from GNU gettext.
62161
62162 2005-01-26  Simon Josefsson  <jas@extundo.com>
62163
62164         * lib/gai_strerror.c: Use GPL in header.
62165
62166 2005-01-26  Bruno Haible  <bruno@clisp.org>
62167
62168         * modules/javaexec: New file.
62169         * MODULES.html.sh (Java): Add javaexec.
62170
62171 2005-01-26  Bruno Haible  <bruno@clisp.org>
62172
62173         * m4/javaexec.m4: New file, from GNU gettext.
62174
62175 2005-01-26  Bruno Haible  <bruno@clisp.org>
62176
62177         * lib/javaexec.sh.in: New file, from GNU gettext.
62178         * lib/javaexec.h: New file, from GNU gettext.
62179         * lib/javaexec.c: New file, from GNU gettext.
62180
62181 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62182
62183         * modules/lchown (Depends-on): Remove lchown.h
62184
62185 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62186
62187         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
62188         must be defined if the header file was not found, in order
62189         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
62190
62191 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62192
62193         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
62194         initializers for struct pentry_state.
62195         (__argp_error): Check return value of __asprintf
62196         (__argp_failure): Translate error message
62197
62198         * lib/argp-parse.c: Removed braces around the expansion of N_()
62199
62200 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62201
62202         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
62203         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
62204         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
62205         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
62206         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
62207         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
62208         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
62209         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
62210         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
62211         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
62212         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
62213         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
62214         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
62215         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
62216         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
62217         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
62218         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
62219         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
62220         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
62221         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
62222         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
62223         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
62224         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
62225         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
62226         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
62227         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
62228         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
62229         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
62230         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
62231         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
62232         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
62233         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
62234         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
62235         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
62236         xstrtol.m4, xstrtoumax.m4, yesno.m4:
62237         Use an all-permissive copyright notice, recommended by RMS.
62238
62239 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
62240
62241         * modules/chdir-long (Depends-on): Remove mempcpy.
62242
62243 2005-01-21  Jim Meyering  <jim@meyering.net>
62244
62245         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
62246         same value as for Solaris 9.
62247
62248         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
62249         component length.  This included changing the parameter to be
62250         of type `char *' rather than `char const *'.
62251         * lib/chdir-long.h (chdir_long): Update prototype.
62252
62253         * lib/openat.c (fdopendir, fstatat): New functions.
62254         * lib/openat.h: Include headers required for use of DIR and struct
62255         stat.
62256         [AT_SYMLINK_NOFOLLOW]: Define.
62257         (fdopendir, fstatat): Add prototypes.
62258
62259 2005-01-21  Bruno Haible  <bruno@clisp.org>
62260
62261         * modules/classpath: New file.
62262         * MODULES.html.sh (Java): Add classpath.
62263
62264 2005-01-21  Bruno Haible  <bruno@clisp.org>
62265
62266         * lib/classpath.h: New file, from GNU gettext.
62267         * lib/classpath.c: New file, from GNU gettext.
62268
62269 2005-01-20  Simon Josefsson  <jas@extundo.com>
62270
62271         * modules/version-etc-fsf: New file.
62272
62273 2005-01-20  Simon Josefsson  <jas@extundo.com>
62274
62275         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
62276         * lib/version-etc.c: Remove version_etc_copyright.
62277         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
62278         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
62279
62280 2005-01-20  Simon Josefsson  <jas@extundo.com>
62281
62282         * lib/base64.h (isbase64): Add.
62283
62284         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
62285         using a unsigned prototype, don't inline.
62286         (base64_decode): Use it.
62287
62288 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
62291         it.
62292
62293 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62294
62295         * lib/save-cwd.c (save_cwd): Remove code to support the case
62296         where fchdir is missing or flaky.
62297
62298 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
62301
62302 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62303
62304         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
62305         AC_LIBSOURCES now does this.
62306         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
62307         with new ullong_max module.
62308
62309 2005-01-19  Bruno Haible  <bruno@clisp.org>
62310
62311         * modules/sh-quote: New file.
62312         * MODULES.html.sh (Executing programs): Add sh-quote.
62313
62314 2005-01-19  Bruno Haible  <bruno@clisp.org>
62315
62316         * lib/sh-quote.h: New file, from GNU gettext.
62317         * lib/sh-quote.c: New file, from GNU gettext.
62318
62319 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62320
62321         Merge from coreutils.
62322         * m4/ullong_max.m4: New file.
62323         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
62324         (gl_MACROS): Assume localeconv exists.
62325
62326 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62327
62328         Merge changes from coreutils, as described below in several
62329         changelogs dated today.
62330
62331         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
62332         (O_DIRECTORY): Remove; not needed here, since "." must be
62333         a directory.  All uses removed.
62334         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
62335         universal on Suns, and we also need to test for IRIX.
62336         Revamp code to use 'if' rather than '#if'.
62337         Avoid unnecessary comparison of cwd->desc to 0.
62338
62339         * lib/utimens.c (futimens): Robustify the previous patch, by checking
62340         for known valid error numbers rather than observed invalid ones.
62341
62342 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         * modules/ullong_max: New file.
62345
62346         * modules/chdir-long, modules/openat: New files.
62347         * modules/save-cwd (Depends-on): Depend on chdir-long.
62348         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
62349
62350 2005-01-18  Jim Meyering  <jim@meyering.net>
62351
62352         Merge from coreutils.
62353         * m4/chdir-long.m4, m4/openat.m4: New files.
62354         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
62355         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
62356         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
62357         is sane and DOES follow symlinks.  Besides, testing 20 different
62358         systems found no broken chown implementations.
62359         Prompted by a change in rsync's copy of this macro.
62360         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
62361
62362         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
62363
62364         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
62365         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
62366         NULL-means-set-to-current-time semantics.
62367         Remove temporary file immediately, rather than waiting
62368         for configure's at-exit trap code to do it.
62369
62370 2005-01-18  Jim Meyering  <jim@meyering.net>
62371
62372         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62373
62374         * lib/utimens.c (futimens): Account for the fact that futimes
62375         can also fail with errno == ENOSYS or errno == ENOENT.
62376         Patch from Dmitry V. Levin.
62377
62378         Change the name of the robust chdir function from chdir to chdir_long.
62379         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
62380         (restore_cwd): Use chdir_long, not chdir.
62381         * lib/chdir-long.c: Renamed from chdir.c.
62382         * lib/chdir-long.h: Renamed from chdir.h.
62383         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
62384         Hurd.
62385
62386 2005-01-18  Bruno Haible  <bruno@clisp.org>
62387
62388         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
62389         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
62390         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
62391         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
62392         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
62393         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
62394         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
62395         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
62396         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
62397         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
62398         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
62399         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
62400         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
62401         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
62402         Use an all-permissive copyright notice, recommended by RMS.
62403
62404 2005-01-18  Bob Proulx  <bob@proulx.com>
62405
62406         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
62407         simplify offsetof() macro construct to avoid compile failure with
62408         native HP-UX 11.0 ANSI C compiler.
62409
62410 2005-01-17  Bruno Haible  <bruno@clisp.org>
62411
62412         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
62413         redundant because stpncpy.m4 takes care of it.
62414
62415 2005-01-17  Bruno Haible  <bruno@clisp.org>
62416
62417         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
62418
62419 2005-01-17  Bruno Haible  <bruno@clisp.org>
62420
62421         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
62422         used.
62423
62424 2005-01-17  Bruno Haible  <bruno@clisp.org>
62425
62426         * lib/fwriteerror.h (fwriteerror): Change specification to include
62427         fclose.
62428         * lib/fwriteerror.c: Include <stdbool.h>.
62429         (fwriteerror): At the end, close the file stream. Record whether
62430         stdout was already closed.
62431
62432 2005-01-17  Bruno Haible  <bruno@clisp.org>
62433
62434         * lib/execute.c (environ): Declare if needed.
62435         * lib/pipe.c (environ): Likewise.
62436         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
62437
62438 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62439
62440         * modules/argp: Depend on vsnprintf
62441
62442 2005-01-10  Jim Meyering  <jim@meyering.net>
62443
62444         * modules/closeout (Depends-on): Add atexit.
62445
62446 2005-01-06  Bruno Haible  <bruno@clisp.org>
62447
62448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
62449
62450 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
62453         definitions to be after all include files, to avoid collisions.
62454         Problem reported by Bob Proulx.
62455
62456 2005-01-04  Jim Meyering  <jim@meyering.net>
62457
62458         Changes imported from coreutils.
62459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
62460         as the mkstemp template, use a temporary directory and an
62461         8.3-friendly template to avoid trouble on systems like DJGPP.
62462         Reported by Juan M. Guerrero via Stepan Kasal.
62463         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
62464         close. Remove the temporary directory right away, rather than waiting
62465         for configure's at-exit trap code to do it.
62466         Suggestion from Stepan Kasal.
62467
62468 2005-01-01  Simon Josefsson  <jas@extundo.com>
62469
62470         * gnulib-tool: Print #include directives when --import'ing.
62471
62472 2004-12-28  Simon Josefsson  <jas@extundo.com>
62473
62474         * tests/test-base64.c: Include required header files.  Remove
62475         unused variables.
62476
62477 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         * modules/error (Depends-on): Remove gettext.
62480
62481 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62482
62483         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
62484         not needed.  This removes a dependency on the gettext module.
62485         [defined _LIBC]: Do not include <libintl.h>; not needed.
62486
62487 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62488
62489         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
62490         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
62491
62492 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62493
62494         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
62495         HAVE_DECL_STRTOLD.
62496
62497 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62498
62499         * modules/getdate (Depends-on): Remove alloca-opt.
62500
62501 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62502
62503         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
62504
62505 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62506
62507         * lib/argp-parse.c: Include <stddef.h>.
62508         (alignof, alignto): New macros.
62509         (parser_init): Don't assume that void * is aligned sufficiently
62510         for struct option.
62511
62512         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
62513         need to extend the stack.
62514         (YYINITDEPTH): New macro, so that the initial stack isn't overly
62515         large.
62516
62517 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62518
62519         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
62520
62521 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
62524         (2004-10-24) change.  Apparently this was a false alarm.
62525
62526         * modules/getdate: Depend on alloca-opt, not alloca.
62527
62528 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62529
62530         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
62531         Remove now-obsolete comment about AIX.
62532         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
62533         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
62534         (YYMAXDEPTH): New macro.
62535
62536 2004-12-18  Simon Josefsson  <jas@extundo.com>
62537
62538         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
62539
62540 2004-12-18  Bruno Haible  <bruno@clisp.org>
62541
62542         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
62543
62544 2004-12-18  Bruno Haible  <bruno@clisp.org>
62545
62546         * lib/fatal-signal.c (fatal_signals): Make non-const.
62547         (init_fatal_signals): New function.
62548         (uninstall_handlers, install_handlers): Ignore signals that were set to
62549         SIG_IGN.
62550         (at_fatal_signal): Call init_fatal_signals.
62551         (init_fatal_signal_set): Likewise. Ignore signals that were set to
62552         SIG_IGN.
62553         Reported by Paul Eggert.
62554
62555 2004-12-18  Bruno Haible  <bruno@clisp.org>
62556
62557         * doc/alloca.texi: New file.
62558         * doc/alloca-opt.texi: New file.
62559
62560 2004-12-17  Jim Meyering  <jim@meyering.net>
62561
62562         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
62563         Otherwise, install-sh could exit with improper exit status when
62564         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
62565
62566 2004-12-16  Simon Josefsson  <jas@extundo.com>
62567
62568         * tests/test-base64.c: Add license.
62569
62570 2004-12-15  Stepan Kasal  <address@hidden>
62571
62572         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
62573
62574 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
62575
62576         * modules/getcwd (Files): Add m4/d-ino.m4.
62577         Suggested by Mark D. Baushke.
62578
62579 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         * lib/getdate.y (textint): New member "negative".
62582         (time_zone_hhmm): New function.
62583         Expect 14 shift-reduce conflicts, not 13.
62584         (o_colon_minutes): New rule.
62585         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
62586         (yylex): Set the "negative" member of signed numbers.
62587
62588 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * doc/getdate.texi (Time of day items, Time zone items):
62591         Describe new formats +00:00, UTC+00:00.
62592
62593 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62594
62595         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
62596         spurious "-l"s.  Problem reported by Stepan Kasal.
62597
62598 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
62599
62600         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
62601         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
62602
62603 2004-12-04  Simon Josefsson  <jas@extundo.com>
62604
62605         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
62606         Vandoorselaere <yoann@prelude-ids.org>.
62607
62608 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62609
62610         Changes imported from coreutils.
62611         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
62612         exist.
62613         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
62614
62615 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62616
62617         Changes imported from coreutils.
62618         * lib/hard-locale.c: Assume <locale.h> exists.
62619         Include "strdup.h".
62620         (GLIBC_VERSION): New macro.
62621         (hard_locale): Assume setlocale exists.
62622         Rewrite to avoid #ifdef.
62623         Use strdup rather than malloc + strcpy.
62624         * lib/human.c: Assume <locale.h> exists.
62625         (human_readable): Assume localeconv exists.
62626
62627 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62628
62629         * modules/hard-locale (Depends-on): Add strdup.
62630
62631 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62632
62633         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
62634         convert T2, not T.  (Imported from libc.)
62635
62636 2004-11-30  Simon Josefsson  <jas@extundo.com>
62637
62638         * modules/restrict (License): Change to LGPL.
62639
62640 2004-11-30  Simon Josefsson  <jas@extundo.com>
62641
62642         * m4/restrict.m4: Add copyright and copying conditions.
62643
62644 2004-11-30  Simon Josefsson  <jas@extundo.com>
62645
62646         * m4/base64.m4: New file.
62647
62648 2004-11-30  Simon Josefsson  <jas@extundo.com>
62649
62650         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
62651         base64.
62652
62653         * tests/test-base64.c: New file.
62654
62655         * modules/base64: New file.
62656
62657 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
62660         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
62661
62662         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
62663
62664 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
62665
62666         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
62667         (__getcwd.c): Don't restore errno; glibc doesn't.
62668         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
62669         first, falling back to our code only if its results look suspicious.
62670         Ensure that the resulting buffer is only as large as necessary.
62671
62672         * lib/readutmp.c: Include readutmp.h first.
62673         Include <errno.h>, since readutmp.h no longer does that.
62674         * lib/readutmp.h: Don't include <errno.h>,
62675         <sys/param.h>, <time.h>; not needed to establish interface.
62676         (errno): Remove decl.
62677         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
62678         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
62679         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
62680
62681 2004-11-28  Simon Josefsson  <jas@extundo.com>
62682
62683         * lib/base64.h, base64.c: New file.
62684
62685 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62686
62687         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
62688
62689 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62690
62691         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
62692         (Depends-on): Remove pathmax, same.  Add mempcpy.
62693         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
62694         (Makefile.am): Append getcwd.h to lib_SOURCES.
62695         (Include): Add getcwd.h.
62696         (Maintainer): Change from Jim Meyering to "all, glibc",
62697         since getdate now uses intended-for-glibc code.
62698         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
62699         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
62700
62701 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62702
62703         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
62704         HP's ANSI C compiler.
62705         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
62706         Declaring int functions causes warnings on some modern systems and
62707         shouldn't be needed to compile on ancient ones.
62708         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
62709         defined.
62710
62711         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
62712         with the following changes.
62713         (__set_errno): Parenthesize properly.
62714         Include <stdbool.h>.
62715         (MIN, MAX, MATCHING_INO): New macros.
62716         (__getcwd): Define with prototype, not K&R form.
62717         Use heuristics to allocate default buffer on stack if possible.
62718         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
62719         behavior, and to avoid the PATH_MAX limit when computing
62720         ../../../../...
62721         Use MATCHING_INO to compare inode number to file.
62722         Check for arithmetic overflow in size calculations.
62723         Fix bug in reallocation of dot array that caused getcwd to fail
62724         on directories nested deeper than 75.
62725         Be more careful about saving errno on error.
62726         Do not use realloc; use only free+malloc, as this is a bit
62727         more flexible and avoids a needless copy operation.
62728         Do not inspect st_dev and st_ino for symbolic links; POSIX
62729         doesn't specify the latter.
62730         Check for closedir errors.
62731         Avoid needless casts.
62732         Use "#ifdef weak_alias" around weak_alias, to be like other
62733         glibc code.
62734         The following changes to getcwd.c have effect only when used in
62735         gnulib; they have no effect inside glibc proper.
62736         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
62737         as alloca isn't used.
62738         (alloca, __alloca): Likewise.
62739         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
62740         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62741         unconditionally, as gnulib assumes C89 or better.
62742         Do not include <sys/param.h>.
62743         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
62744         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
62745         better.
62746         (NULL) [!defined NULL]: Remove; we assume C89 or better.
62747         Include <dirent.h> in a way that is compatible with modern Autoconf.
62748         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
62749         New macros, if not already defined.
62750         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
62751         Use "_LIBC", not "defined _LIBC", for consistency.
62752         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
62753         a mempcpy module.
62754         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
62755         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
62756         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
62757         credit only to Jim Meyering and adjust the copyright dates.
62758         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
62759         <stdlib.h>, <unistd.h>, "pathmax.h".
62760         Instead, include "xgetcwd.h" (first) and "getcwd.h".
62761         (INITIAL_BUFFER_SIZE): Remove.
62762         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
62763
62764 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
62767         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
62768         Use the _ONCE methods, for efficiency.
62769         Check for fcntl.h.  In test program, include <errno.h>
62770         and <fcntl.h> if available.  Remove old K&R cruft from
62771         test program.  Check for common errors in GNU/Linux,
62772         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
62773         don't do AC_LIBOBJ, as that's getcwd.m4's job.
62774         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
62775         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
62776         name accordingly.
62777         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
62778         accommodate new getcwd.c.
62779         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
62780         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
62781         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
62782         that's all we need now.
62783
62784 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62785
62786         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
62787         argp-parse.c depends on getopt internals, that means we should
62788         always use our getopt, to be on the safe side.
62789         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
62790         order not to spoil the result of an eventual previous invocation
62791         of gl_GETOPT_SUBSTITUTE.
62792
62793 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62794
62795         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
62796         redefinition warnings. To avoid them, include the defines
62797         in `#if !defined __need_getopt ... #endif'. The only place
62798         where __getopt_argv_const is used is in definitions
62799         of getopt_long and getopt_long_only below, which are as well
62800         protected by `#ifndef __need_getopt'.
62801         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
62802         __need_getopt after including <stdio.h> and <unistd.h> These
62803         headers might have defined it.
62804
62805 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
62806
62807         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
62808
62809 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
62812         (futimens): New function, which uses futimes if available.
62813         (futimens, utimens): Support timespec==NULL, with same semantics
62814         as utime and utimens.
62815         * lib/utimens.h (futimens): New decl.
62816
62817 2004-11-23  Jim Meyering  <jim@meyering.net>
62818
62819         * lib/getopt_.h: Remove trailing blanks.
62820
62821 2004-11-23  Jim Meyering  <jim@meyering.net>
62822
62823         * lib/__fpending.c: Add comment.
62824
62825 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
62826
62827         * modules/canonicalize (Depends-on): Add xreadlink.
62828         Problem reported by James Youngman.
62829
62830 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62831
62832         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
62833         New macros.
62834         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
62835         optopt): Use them instead of invoking ## directly; otherwise, the
62836         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
62837
62838 2004-11-19  Bruno Haible  <bruno@clisp.org>
62839
62840         * lib/strtok_r.c: Move comments from here...
62841         * lib/strtok_r.h: ... to here.
62842
62843 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
62846         implementations that mishandle size_t overflow.
62847
62848 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62849
62850         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
62851         might fail.  Problem reported by Yoann Vandoorselaere.
62852         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
62853         implementations that mishandle size_t overflow.
62854
62855 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62856
62857         * modules/canon-host (Depends-on): Add strdup.
62858
62859 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
62862
62863 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62864
62865         * lib/canon-host.c: Include "strdup.h".
62866         (canon_host): Use getaddrinfo if available, so that IPv6 works.
62867         Use strdup instead of malloc/strcpy to duplicate strings.
62868
62869         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
62870         (human_space_before_unit): New constant.
62871         * lib/human.c (human_readable): Support it.
62872
62873         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
62874         (xgetcwd): Set errno correctly when failing.
62875         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
62876         the failure is actually due to a PATH_MAX problem.
62877
62878         Further getopt changes to make it more likely that glibc will
62879         buy the changes back.
62880         * lib/getopt.c (POSIXLY_CORRECT): New constant.
62881         (getopt): Use it, so to preserve glibc semantic
62882         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
62883         when compiling for libc.
62884         * lib/getopt_.h (__getopt_argv_const): Bring it back.
62885         (getopt_long, getopt_long_only): Use it.
62886
62887         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62888         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
62889         (getopt): Argv is now char * const *, as per standard.
62890         (_getopt_internal_r, _getopt_internal): Argv is now char **,
62891         not char *__getopt_argv_const *.
62892         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62893         _getopt_long_only_r): Likewise.
62894         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
62895         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62896         _getopt_long_r, _getopt_long_only_r): Likewise.
62897         * lib/getopt_.h (__getopt_argv_const): Remove.
62898         (getopt): Argv is now char * const *, as per standard.
62899
62900         * lib/getdate.y (tORDINAL): New token.
62901         (day, relunit): Allow it for relative times.
62902         (relative_time_table): Use tORDINAL for ordinals.
62903
62904 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62905
62906         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
62907         Document that "second" isn't allowed as an ordinal number.
62908
62909 2004-11-16  Jim Meyering  <jim@meyering.net>
62910
62911         * modules/closeout (Depends-on): Add fpending.
62912
62913 2004-11-15  Jim Meyering  <jim@meyering.net>
62914
62915         * lib/closeout.c: Include "__fpending.h" once again.
62916         Include <stdbool.h>.
62917         (close_stdout): Don't fail just because stdout was closed initially,
62918         since some programs don't write to stdout in the normal course of
62919         operation (other than --version and --help), and we don't want this
62920         function to make e.g. `touch file >&-' fail.
62921         But do fail if it was closed and someone has tried to write to it.
62922         E.g., `printf foo >&-' must fail.
62923
62924 2004-11-13  Jim Meyering  <jim@meyering.net>
62925
62926         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
62927
62928 2004-11-12  Simon Josefsson  <jas@extundo.com>
62929
62930         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
62931         small doc fix is still pending.
62932
62933 2004-11-11  Simon Josefsson  <jas@extundo.com>
62934
62935         * modules/strtok_r: New file.
62936
62937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62938         strtok_r.
62939
62940 2004-11-11  Simon Josefsson  <jas@extundo.com>
62941
62942         * m4/strtok_r.m4: New file.
62943
62944         * m4/getopt.m4: Replace opterr.
62945
62946 2004-11-11  Simon Josefsson  <jas@extundo.com>
62947
62948         * lib/strtok_r.h, strtok_r.c: New file.
62949
62950 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62951
62952         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
62953         of replacing opterr, getopt, etc.  This should handle the
62954         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
62955
62956 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62957
62958         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
62959         we can stop lying to compilers about the constness of argv when we
62960         are compiled outside glibc.
62961         (getopt, getopt_long, getopt_long_only): Use it.
62962         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62963         _getopt_internal, getopt): Likewise.
62964         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62965         _getopt_long_only_r): Likewise.
62966         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62967         _getopt_long_r, _getopt_long_only_r): Likewise.
62968
62969         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
62970         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
62971         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
62972         the other external symbols.
62973         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
62974         declaration, since the above renaming now works around collisions.
62975
62976 2004-11-11  Jim Meyering  <jim@meyering.net>
62977
62978         * lib/linebreak.c: Remove trailing blanks.
62979         * lib/alloca_.h: Likewise.
62980         * lib/acosl.c: Likewise.
62981         * lib/euidaccess.c: Likewise.
62982         * lib/allocsa.h: Likewise.
62983
62984 2004-11-10  Simon Josefsson  <jas@extundo.com>
62985
62986         * m4/getaddrinfo.m4: New file.
62987
62988 2004-11-10  Simon Josefsson  <jas@extundo.com>
62989
62990         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
62991
62992 2004-11-10  Simon Josefsson  <jas@extundo.com>
62993
62994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62995         getaddrinfo.
62996
62997         * modules/getaddrinfo: New file.
62998
62999 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63000
63001         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63002
63003 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63004
63005         * lib/mktime.c (SHR): New macro, which is a portable
63006         substitute for >> that should work even on Crays.
63007         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63008         Problem reported by Mark D. Baushke in
63009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63010         * lib/getdate.y (SHR): Likewise.
63011         (tm_diff): Use it.
63012         * lib/strftime.c (SHR): Likewise.
63013         (tm_diff): Use it.
63014         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63015         quote_these_too, so that right shifts are well defined.  All uses
63016         changed.
63017
63018 2004-11-10  Jim Meyering  <jim@meyering.net>
63019
63020         Ensure that no close failure goes unreported.
63021         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63022         return early when it seems there's nothing to flush.
63023         Don't include __fpending.h.
63024
63025 2004-11-10  Jim Meyering  <jim@meyering.net>
63026
63027         * modules/closeout (Depends-on): Remove fpending.
63028
63029 2004-11-10  Jim Meyering  <jim@meyering.net>
63030
63031         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63032
63033 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63034
63035         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63036         gl_FUNC_STRFTIME.
63037         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63038         and AC_REQUIRE when possible, to avoid duplicate checks.
63039         Check for <wchar.h>.
63040
63041 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63044
63045 2004-11-09  Bruno Haible  <bruno@clisp.org>
63046
63047         * m4/sockpfaf.m4: New file.
63048
63049 2004-11-05  Bruno Haible  <bruno@clisp.org>
63050
63051         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
63052         Reported by Mark D. Baushke <mdb@cvshome.org>.
63053
63054 2004-11-04  Bruno Haible  <bruno@clisp.org>
63055
63056         2004-09-11  Bruno Haible  <bruno@clisp.org>
63057                 * allocsa.valgrind: New file.
63058         2004-02-06  Bruno Haible  <bruno@clisp.org>
63059                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
63060                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
63061                 Reported by Christopher Seip <chris.seip@hp.com>.
63062
63063 2004-11-04  Bruno Haible  <bruno@clisp.org>
63064
63065         * modules/allocsa (Files): Add lib/allocsa.valgrind.
63066         (Makefile.am): Distribute it.
63067
63068 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63069
63070         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
63071         with errno == ERANGE if the buffer is too small.
63072         Problem reported by Mark D. Baushke.
63073
63074 2004-11-03  Albert Chin  <china@thewrittenword.com>
63075             Paul Eggert  <eggert@cs.ucla.edu>
63076
63077         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
63078         equivalent, substitute $ac_type for equivalent type rather than
63079         blindly using uint32_t *always* which won't work if uint32_t is not
63080         available.  Define _UINT32_T to work around typedef of uint32_t if
63081         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
63082         2.5.1.
63083
63084 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         * m4/jm-macros.m4: Sync from coreutils.
63087         (gl_MACROS): Check for mbrlen, for pathchk.
63088         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
63089
63090 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63091
63092         * lib/xreadlink.c (MAXSIZE): New macro.
63093         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
63094         size does not exceed MAXSIZE.  Avoid cast.
63095         As suggested by Mark D. Baushke in
63096         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
63097         if readlink fails with buffer size just under MAXSIZE, try again
63098         with MAXSIZE.
63099
63100 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63101
63102         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
63103
63104 2004-11-02  Derek R. Price  <derek@ximbiot.com>
63105         and  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
63108         (get_date): Overparenthesize to avoid GCC warning.
63109
63110 2004-11-02  Bruno Haible  <bruno@clisp.org>
63111
63112         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
63113         returns void.
63114
63115 2004-11-02  Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
63118         function returns void.
63119
63120 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63121
63122         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
63123         fflush_unlocked, flockfile, funlockfile, funlockfile,
63124         fputs_unlocked, putc_unlocked.
63125
63126 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63129         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
63130         already declared.
63131
63132 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63133
63134         * modules/getdate (Files): Add doc/getdate.texi.
63135         (Depends-on): Add setenv, xalloc.
63136
63137 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63138
63139         * lib/getdate.y: Add support for TZ="foo" within a date string.
63140         Fix some bugs near time_t boundaries.  Reject dates with
63141         out-of-range components, e.g., "Sept 31".
63142         Include <stdlib.h>, "setenv.h", "xalloc.h".
63143         (ISDIGIT_LOCALE): Remove; unused.
63144         Note that the TZ and time functions used here are not reentrant.
63145         (mktime_ok, get_tz): New functions.
63146         (TZBUFSIZE): New constant.
63147         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
63148         This requires that we sometimes generate our own TZ="XXX..." setting.
63149
63150 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * doc/getdate.texi: New file, from coreutils with modifications for
63153         the new TZ parsing.
63154
63155 2004-10-27  Derek R. Price  <derek@ximbiot.com>
63156
63157         * lib/mktime.c (not_equal_tm): Remove redundant check.
63158
63159 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63160
63161         * modules/regex (lib_SOURCES): Add regex.c.
63162         Reported by James Youngman in
63163         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
63164
63165 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * lib/getdate.y: Use Bison 1.875 features, and some minor
63168         code cleanups.  This change does not affect semantics.
63169         Don't include <stdlib.h>; no longer needed.
63170         Don't include unlocked-io.h; only the "#if TEST" code uses
63171         stdio, and performance isn't crucial there.
63172         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
63173         Bison 1.875 features as described below.
63174         All uses of "PC." replaced by "pc->".
63175         (YYSTYPE): Add a forward declaration.
63176         (yylex, yyerror): Use full prototypes in forward decls.
63177         Use "%pure-parser" rather than obsolescent "%pure_parser".
63178         Use %parse-param and %lex-param instead of obsolescent
63179         YYPARSE_PARAM and YYLEX_PARAM.
63180         (meridian_table, month_and_day_table, time_units_table,
63181         relative_time_table, time_zone_table, military_table,
63182         lookup_zone, lookup_word, get_date):
63183         Use NULL instead of 0 where appropriate.
63184         (to_hour): Avoid abort (), to avoid a dependency on
63185         stdlib.h.
63186         (yyerror, yylex): Now accepts parser_control * arg.
63187         (main) [TEST]: Use '\0' rather than 0 for char.
63188
63189 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63190
63191         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
63192
63193 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63194
63195         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
63196         It's now the caller's responsibility to handle the case where
63197         !HAVE_GETPAGESIZE && !defined getpagesize.
63198
63199         * lib/mktime.c (leapyear): Arg is long int, not int.
63200
63201 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
63202
63203         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
63204
63205 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63206
63207         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
63208         missing.  Problem reported by James Youngman.
63209
63210 2004-10-16  Simon Josefsson  <jas@extundo.com>
63211
63212         * gnulib-tool: Fix comments.  Fix parse problem.
63213         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
63214
63215 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
63216
63217         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
63218         implementation of getopt_long.  Problem reported by Alexander Taler in:
63219         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
63220
63221 2004-10-15  Bruno Haible  <bruno@clisp.org>
63222
63223         * gnulib-tool: Untabify. Initialize supplied_libname.
63224         (func_usage): More homogenous output.
63225         (func_modules_transitive_closure, func_modules_to_filelist,
63226         func_emit_lib_Makefile_am): New functions.
63227         (func_import): New function, extracted from big case statement. Use
63228         func_get_license, func_modules_transitive_closure,
63229         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
63230         opt_lgpl. Don't use test -a, as it's not portable.
63231         (func_create_testdir): Use func_modules_transitive_closure,
63232         func_modules_to_filelist, func_emit_lib_Makefile_am.
63233
63234 2004-10-15  Bruno Haible  <bruno@clisp.org>
63235
63236         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
63237
63238 2004-10-15  Bruno Haible  <bruno@clisp.org>
63239
63240         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
63241         the portions belonging to each module.
63242         Suggested by Derek Robert Price <derek@ximbiot.com>.
63243
63244 2004-10-12  Simon Josefsson  <jas@extundo.com>
63245
63246         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63247         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
63248         to real functions.
63249
63250 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63251
63252         * modules/vsnprintf: New file.
63253
63254 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63255
63256         * m4/vsnprintf.m4: New file.
63257
63258 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63259
63260         * lib/vsnprintf.h: New file.
63261         * lib/vsnprintf.c: New file.
63262
63263 2004-10-11  Bruno Haible  <bruno@clisp.org>
63264
63265         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
63266         vsnprintf.
63267
63268 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
63271
63272 2004-10-07  Bruno Haible  <bruno@clisp.org>
63273
63274         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
63275         fits into the provided buffer.
63276
63277 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         * lib/diacrit.c, diacrit.h: Add GPL notice.
63280
63281         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
63282         notice.
63283         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
63284         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
63285         This avoids a potential constant-folding bug.
63286
63287 2004-10-05  Bruno Haible  <bruno@clisp.org>
63288
63289         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
63290         for the declaration of strsep.
63291
63292 2004-10-05  Bruno Haible  <bruno@clisp.org>
63293
63294         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
63295
63296 2004-10-04  Simon Josefsson  <jas@extundo.com>
63297
63298         * modules/memmem: New file.
63299         * tests/test-memmem.c: New file.
63300         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
63301
63302 2004-10-04  Simon Josefsson  <jas@extundo.com>
63303
63304         * m4/memmem.m4: New file.
63305
63306 2004-10-04  Simon Josefsson  <jas@extundo.com>
63307
63308         * lib/memmem.h: New file.
63309         * lib/memmem.c: New file, taken from glibc.
63310
63311 2004-10-04  Simon Josefsson  <jas@extundo.com>
63312
63313         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
63314         '#ifdef USE_UNLOCKED_IO'.
63315
63316 2004-10-04  Simon Josefsson  <jas@extundo.com>
63317
63318         * config/srclist.txt: Add memmem from glibc.
63319
63320 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63321
63322         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
63323
63324         * modules/argmatch, modules/argp, modules/closeout, modules/error,
63325         modules/exclude, modules/getdate, modules/getline,
63326         modules/getndelim2, modules/getpass, modules/getpass-gnu,
63327         modules/getusershell, modules/linebuffer, modules/md5,
63328         modules/mountlist, modules/posixtm, modules/readtokens,
63329         modules/readutmp, modules/regex, modules/sha1,
63330         modules/version-etc, modules/yesno:
63331         Remove dependency on unlocked-io.
63332
63333 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63334
63335         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
63336
63337         * m4/unlocked-io.m4: Add copyright notice.
63338         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
63339
63340 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63341
63342         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
63343         * lib/xmalloc.c (xmemdup): Likewise.
63344         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
63345         XFREE): Remove these long-obsolescent macros.
63346         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
63347         * lib/xstrdup.c: Remove.
63348
63349         * lib/regex.c (re_comp): Cast gettext return value to char *,
63350         Problem reported by Martin Neitzel via Mark D. Baushke.
63351
63352 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63353
63354         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
63355         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
63356         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
63357         regex.c, sha1.c, version-etc.c, yesno.c:
63358         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
63359         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
63360         the includer's responsibility.
63361
63362         Sync from coreutils.
63363
63364         * lib/modechange.c (mode_compile): Don't decrement a pointer that
63365         points to the start of a string, as the C Standard says the
63366         resulting behavior is undefined.
63367
63368         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
63369         simple -> simple_backups, numbered_existing ->
63370         numbered_existing_backups, numbered -> numbered_backups
63371         to avoid shadowing problems.  All uses changed.
63372         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
63373         * lib/backupfile.c (check_extension, numbered_backup):
63374         Rename locals to avoid shadowing 'basename'.
63375         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
63376         once.
63377
63378         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
63379         * lib/.cvsignore: Add getopt.h.
63380
63381 2004-10-04  Bruno Haible  <bruno@clisp.org>
63382
63383         * modules/README: New file.
63384         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
63385         not a module.
63386
63387 2004-10-02  Jim Meyering  <jim@meyering.net>
63388
63389         * lib/dirfd.h, getpagesize.h: Add copyright notice.
63390
63391 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63392
63393         * modules/strsep: New file.
63394
63395 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63396
63397         * m4/strsep.m4: New file.
63398
63399 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63400
63401         * lib/strsep.h: New file.
63402         * lib/strsep.c: New file.
63403
63404 2004-10-01  Simon Josefsson  <jas@extundo.com>
63405
63406         * lib/snprintf.c (snprintf): Handle size==0.
63407
63408 2004-10-01  Simon Josefsson  <jas@extundo.com>
63409             Bruno Haible  <bruno@clisp.org>
63410
63411         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
63412         (snprintf): Declare 'args'.
63413
63414 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
63415
63416         * lib/snprintf.c: Remove comments as to why each header is needed.
63417
63418 2004-10-01  Bruno Haible  <bruno@clisp.org>
63419
63420         * MODULES.html.sh: Add strsep.
63421
63422 2004-09-30  Simon Josefsson  <jas@extundo.com>
63423
63424         * modules/snprintf: New file.
63425
63426 2004-09-30  Simon Josefsson  <jas@extundo.com>
63427
63428         * m4/snprintf.m4: New file.
63429
63430 2004-09-30  Simon Josefsson  <jas@extundo.com>
63431
63432         * lib/snprintf.h, lib/snprintf.c: New files.
63433
63434 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63435
63436         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
63437         (hol_entry_help): Never translate an empty string.
63438         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
63439         * lib/argp.h (OPTION_NO_TRANS): New option.
63440
63441 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         * modules/argp (Maintainer): Replace Simon Josefsson
63444         by Sergey Poznyakoff.
63445
63446 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63447
63448         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
63449         changes merged back into glibc.
63450
63451 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
63454
63455 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63456
63457         * lib/xvasprintf.c: Include xalloc.h.
63458         (xvasprintf): Use xalloc_die, not xmalloc_die.
63459
63460 2004-09-29  Bruno Haible  <bruno@clisp.org>
63461
63462         * modules/alloca-opt: New file, derived from modules/alloca.
63463         * modules/allocsa: Depend on alloca-opt instead of alloca.
63464         * modules/setenv: Likewise.
63465         * modules/vasnprintf: Likewise.
63466         * MODULES.html.sh: Add alloca-opt.
63467
63468 2004-09-28  Simon Josefsson  <jas@extundo.com>
63469
63470         * gnulib-tool: New parameter --lgpl, to asseert that modules are
63471         LGPL, and to replace license template from GPL to LGPL.
63472
63473 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63474
63475         * modules/dummy: Change license to LGPL.
63476
63477 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
63480
63481 2004-09-24  Simon Josefsson  <jas@extundo.com>
63482
63483         * modules/minmax (License): Change from GPL to LGPL.
63484
63485 2004-09-23  Simon Josefsson  <jas@extundo.com>
63486
63487         * gnulib-tool (--import): Typo.
63488
63489 2004-09-23  Simon Josefsson  <jas@extundo.com>
63490
63491         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
63492
63493 2004-09-22  Bruno Haible  <bruno@clisp.org>
63494
63495         * modules/*: Add 'License' field.
63496         * gnulib-tool: Accept --extract-license option.
63497         (func_get_license): New function.
63498
63499 2004-09-21  Bruno Haible  <bruno@clisp.org>
63500
63501         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
63502         Reported by Simon Josefsson.
63503
63504 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63505
63506         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
63507         gl_AC_TYPE_LONG_LONG.
63508
63509 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63510
63511         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
63512
63513 2004-09-18  Simon Josefsson  <jas@extundo.com>
63514         and  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
63517         calls with autoreconf.  Define GL_LIB.
63518
63519 2004-09-14  Karl Berry  <karl@gnu.org>
63520
63521         * config/srclist.txt: unsync setenv.c, sigh.
63522
63523 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63524
63525         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
63526         Problem reported by Bruno Haible in:
63527         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
63528
63529 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63530
63531         * config/srclist.txt: Comment out argp-pvh.c.
63532
63533 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
63534
63535         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
63536         in case some system header has #define'd it.  Problem reported by
63537         Soeren D. Schulze in
63538         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
63539
63540 2004-09-09  Karl Berry  <karl@gnu.org>
63541
63542         * regex.[ch]: delete from the root.  These were supposed to be
63543                 synced with emacs cvs, but this has not happened for about
63544                 a year, and anyway nothing else uses emacs regex.[ch].
63545                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
63546                 lib/regex[.ch] is untouched.
63547
63548 2004-09-09  Bruno Haible  <bruno@clisp.org>
63549
63550         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
63551
63552 2004-09-09  Bruno Haible  <bruno@clisp.org>
63553
63554         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
63555         modifications.
63556         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
63557
63558 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63559
63560         * modules/xvasprintf: New file.
63561         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
63562
63563 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63564
63565         * lib/xvasprintf.h: New file.
63566         * lib/xvasprintf.c: New file.
63567         * lib/xasprintf.c: New file.
63568
63569 2004-09-08  Bruno Haible  <bruno@clisp.org>
63570
63571         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
63572
63573 2004-09-08  Bruno Haible  <bruno@clisp.org>
63574
63575         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
63576         length is > INT_MAX.
63577         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
63578         more.
63579
63580 2004-09-08  Bruno Haible  <bruno@clisp.org>
63581
63582         * lib/stdint_.h: New file, taken from GNU clisp.
63583
63584 2004-09-08  Bruno Haible  <bruno@clisp.org>
63585             Oskar Liljeblad  <oskar@osk.mine.nu>
63586
63587         * modules/stdint: New file.
63588         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
63589
63590 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63591
63592         Import from coreutils.
63593         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
63594         strings on unbounded length.  alloca's performance benefits aren't
63595         that important here.
63596         (V_STRDUP): Remove.
63597         (parse_with_separator): New function, with most of the internals
63598         of the old parse_user_spec.  Allow user to omit both user and group,
63599         for compatibility with FreeBSD.
63600         Clone only the user name, not the entire spec.
63601         Do not set *uid, *gid unless entirely successful.
63602         Avoid memory leak in some failing cases.
63603         Fix regression for USER.GROUP reported by Dmitry V. Levin in
63604         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
63605         (parse_user_spec): Rewrite to use parse_with_separator.
63606
63607 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63608
63609         * modules/userspec: Don't depend on alloca.
63610
63611 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63612
63613         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
63614
63615 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63616
63617         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
63618         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
63619         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
63620
63621 2004-08-16  Simon Josefsson  <jas@extundo.com>
63622
63623         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
63624         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
63625         Add --dry-run for --import.
63626         Let user provided command line parameters override configure.ac
63627         settings.
63628
63629 2004-08-12  Simon Josefsson  <jas@extundo.com>
63630
63631         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
63632         as discussed with Paul Eggert in threads rooted at
63633         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
63634         and
63635         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
63636         Before, the test was empty, and relied on ELIDE_CODE in source
63637         code.)
63638         (gl_PREREQ_GETOPT): New macro.
63639         (gl_GETOPT): Use them.
63640
63641 2004-08-12  Simon Josefsson  <jas@extundo.com>
63642
63643         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
63644         * lib/getopt_.h: Renamed from getopt.h.
63645
63646 2004-08-12  Simon Josefsson  <jas@extundo.com>
63647
63648         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
63649         Change default library name from libfoo to libgnu.
63650         Now, if you have a configure.ac that says:
63651                 gl_SOURCE_BASE(gl)
63652                 gl_M4_BASE(gl/m4)
63653                 gl_MODULES(error getopt etcetera)
63654                 gl_INIT
63655         you can import all you need by running:
63656                 ../gnulib/gnulib-tool --import
63657
63658         * modules/getopt (Files): Rename getopt.h to getopt_.h.
63659         (Makefile.am): Rewrite, use logic from argz.
63660         (Include): Use <getopt.h> instead of "getopt.h".
63661
63662 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63663
63664         * modules/argp (Files): Add m4/unlocked-io.m4.
63665         (Depends-on): Add extensions.
63666
63667 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63668
63669         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
63670         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
63671         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
63672         Check for program_invocation_name, program_invocation_short_name,
63673         flockfile, funlockfile, features.h, _getopt_long_only_r.
63674
63675 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63676
63677         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
63678         its complicated substitute.
63679         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
63680         and program_invocation_name.
63681         (__argp_basename) [!_LIBC]: Remove; the only use was
63682         replaced by its body.
63683         (__argp_short_program_name): Change condition from
63684         !defined __argp_short_program_name to
63685         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
63686         to match argp-namefrob.h.
63687         (__argp_failure): Don't assume strerror_r returns char *.
63688         * lib/argp-parse.c (N_): Define unconditionally.
63689         (argp_default_options): Fill out initializers with 0 to avoid
63690         gcc warnings.
63691
63692 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
63695         getopt1.c.
63696
63697 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         Merge from coreutils.
63700
63701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
63702
63703         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
63704         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
63705
63706 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         Merge from coreutils.
63709
63710         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
63711         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
63712         for Reliant Unix 5.43.
63713
63714         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
63715         (union fooround): Use uintmax_t, not long int.
63716         The rest is a merge from libc:
63717         [defined _LIBC]: Include <shlib-compat.h>.
63718         (_obstack) [defined _LIBC]: Remove after 2.3.4.
63719
63720         * lib/settime.c (settime): Recode to avoid warning with
63721         Sun Forte C 6U2.
63722
63723         * lib/strverscmp.c: Convert to UTF-8.
63724
63725 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63726
63727         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63728         m4/uintmax_t.m4.
63729
63730 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63731
63732         * modules/xalloc-die: New file.
63733         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
63734
63735         * modules/md5 (Files): Add m4/uint32_t.m4.
63736         * modules/sha1: Renamed from modules/sha.
63737         (Files):
63738         Rename lib/sha.h to lib/sha1.h.
63739         Rename lib/sha.c to lib/sha1.c.
63740         Rename m4/sha.m4 to m4/sha1.m4.
63741         (lib_SOURCES): Likewise.
63742         (configure.ac): Rename gl_SHA to gl_SHA1.
63743         (Include): sha.h -> sha1.h.
63744
63745 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63746
63747         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
63748         * m4/sha1.m4: Renamed from sha.m4.
63749         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
63750
63751 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63752
63753         * lib/obstack.h (obstack_empty_p):
63754         Don't assume that chunk->contents is suitably aligned.
63755         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
63756         Likewise. Problem reported by Benno in
63757         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
63758
63759         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
63760         readable.  This could be improved further but it'd take some work.
63761
63762 2004-08-08  Simon Josefsson  <jas@extundo.com>
63763
63764         * modules/xgethostname (Depends-on): Remove exit and error (not
63765         used).
63766
63767         * modules/getpass-gnu: Add getpass.h.
63768         (Depends-on): Add stdbool.
63769         * modules/getpass: Add getpass.h.
63770
63771 2004-08-08  Simon Josefsson  <jas@extundo.com>
63772
63773         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
63774         Check getpass declaration.
63775
63776 2004-08-08  Simon Josefsson  <jas@extundo.com>
63777
63778         * lib/xgethostname.c: Don't include error.h (not used).
63779
63780         * lib/getpass.h: Add.
63781         * lib/getpass.c: Include getpass.h first.
63782
63783 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         * lib/xalloc-die.c: New file.
63786         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
63787         All uses removed.
63788         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
63789         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
63790         xalloc-die.c.
63791         (_, N_, xalloc_die): Move to xalloc-die.c.
63792         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
63793         so that we needn't mess with xalloc_msg_memory_exhausted.
63794
63795         * lib/sha1.h: Renamed from sha.h.
63796         (SHA1_H): Renamed from _SHA_H.
63797         (sha1_ctx): Renamed from sha_ctx.
63798         (sha1_init_ctx): Renamed from sha_init_ctx.
63799         (sha1_process_block): Renamed from sha_process_block.
63800         (sha1_process_bytes): Renamed from sha_process_bytes.
63801         (sha1_finish_ctx): Renamed from sha_finish_ctx.
63802         (sha1_read_ctx): Renamed from sha_read_ctx.
63803         (sha1_stream): Renamed from sha_stream.
63804         (sha1_buffer): Renamed from sha_buffer.
63805         * lib/sha1.c: Likewise; renamed from sha.c.
63806         Do not include <sys/types.h>.
63807         Include <stddef.h> rather than <stdlib.h>.
63808
63809 2004-08-08  Bruno Haible  <bruno@clisp.org>
63810
63811         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
63812         FILESYSTEM_PREFIX_LEN.
63813         * lib/progreloc.c: Likewise.
63814         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
63815
63816 2004-08-06  Simon Josefsson  <jas@extundo.com>
63817
63818         * modules/progname (Depends-on): Don't depend on stdbool.
63819
63820 2004-08-06  Simon Josefsson  <jas@extundo.com>
63821
63822         * modules/getsubopt: New file.
63823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63824         getsubopt.
63825
63826 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63827
63828         More merge from coreutils.
63829
63830         * m4/utimens.m4, m4/utimecmp.m4: New files.
63831         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
63832         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
63833         prereq.m4, sha.m4: Import changes from coreutils.
63834
63835 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63836
63837         More merge from coreutils.
63838         * modules/raise, modules/readtokens0, modules/utimens:
63839         * modules/utimecmp, module/xnanosleep: New files.
63840         * modules/strftime: Add lib/strftime.h.
63841         Change include from <time.h> to "strftime.h".
63842         * modules/yesno: Add lib/yesno.h.
63843         * modules/backupfile: Remove lib/addext.c.
63844         * modules/euidaccess: Add stat-macros.h.
63845         * modules/canonicalize, modules/euidaccess,
63846         modules/filemode, modules/lchown, modules/makepath,
63847         modules/rmdir, modules/stat: Likewise.
63848
63849 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63850
63851         Merge from tar.
63852         * lib/argp-help.c (make_hol, hol_append): Don't assume that
63853         SIZE_MAX is a valid preprocessor constant.
63854         (__argp_basename): Change from "#ifndef _LIBC"
63855         to "#ifndef __argp_short_program_name", so that
63856         we don't compile these functions for tar.
63857
63858         More merges from coreutils.
63859         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
63860         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
63861         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
63862         * lib/addext.c: Remove; no longer needed.
63863         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
63864         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
63865         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
63866         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
63867         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
63868         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
63869         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
63870         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
63871         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
63872         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
63873         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
63874         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
63875         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
63876         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
63877         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
63878         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
63879         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
63880         Import changes from coreutils.
63881
63882 2004-08-05  Simon Josefsson  <jas@extundo.com>
63883
63884         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
63885
63886 2004-08-05  Simon Josefsson  <jas@extundo.com>
63887
63888         * m4/getsubopt.m4: New file.
63889
63890 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63891
63892         Merge from coreutils.
63893
63894         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
63895         * m4/getcwd-path-max.m4: New files.
63896
63897         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
63898         FILESYSTEM_PREFIX_LEN ->
63899         FILE_SYSTEM_PREFIX_LEN.
63900         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
63901         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
63902         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
63903         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
63904
63905         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
63906         prerequisite modules now handle the DOS stuff.
63907         Don't check for unistd.h.
63908
63909 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63910
63911         Merge from coreutils.
63912
63913         * lib/.gdb-history: Remove; this doesn't belong here.
63914
63915         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
63916         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
63917         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
63918         * lib/getcwd.c: New files.
63919
63920         * lib/dirname.h: Include <stdbool.h>.
63921         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
63922         for consistency with POSIX terminology.  All uses changed.
63923         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
63924         (strip_trailing_slashes): Use bool for booleans.
63925         * lib/stripslash.c (strip_trailing_slashes): Likewise.
63926
63927         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
63928         sometimes returns a positive errno value even when it succeeds.
63929         (print_errno_message) [!LIBC]: Fall back on strerror if
63930         __strerror_r fails.
63931
63932         * lib/path-concat.c (mempcpy): Don't define if a system header defines
63933         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
63934         (longest_relative_suffix): New function.
63935         (path_concat): Use it.  Assume first argument is not NULL.
63936         Port to DOS.  Omit redundant separators.
63937         Report an error instead of returning NULL.
63938         Use mempcpy instead of memcpy.
63939         (xpath_concat): Remove: not declared or used.
63940
63941         * lib/same.h: Include <stdbool.h>
63942         (same_name): Return bool, not int.
63943         * lib/same.c (same_name): Likewise.
63944         (errno): Don't declare; we assume C89 or better now.
63945
63946         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
63947         if not already defined.
63948
63949         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
63950         * lib/dup-safer.c (errno): Likewise.
63951
63952 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63953
63954         Merge from coreutils.
63955         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
63956         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
63957         * modules/path-concat: Don't depend on strdup.
63958
63959 2004-08-03  Simon Josefsson  <jas@extundo.com>
63960
63961         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
63962         * lib/progname.h: Don't include stdbool.h.
63963
63964 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63965
63966         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
63967         * MODULES.html.sh (func_all_modules): Remove fatal.
63968
63969 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63970
63971         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
63972
63973 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63974
63975         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
63976         working.
63977
63978 2004-08-02  Simon Josefsson  <jas@extundo.com>
63979
63980         * lib/getsubopt.h: New file, with comments from Bruno Haible.
63981         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
63982         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
63983
63984 2004-08-01  Simon Josefsson  <jas@extundo.com>
63985
63986         * lib/xgetdomainname.c: Include stdlib.h, for free().
63987
63988 2004-07-19  Bruno Haible  <bruno@clisp.org>
63989
63990         * MODULES.html.sh (func_all_modules): Add dummy.
63991
63992 2004-07-16  Simon Josefsson  <jas@extundo.com>
63993
63994         * modules/dummy: New file.
63995
63996 2004-07-16  Simon Josefsson  <jas@extundo.com>
63997
63998         * lib/dummy.c: New file.
63999
64000 2004-07-16  Bruno Haible  <bruno@clisp.org>
64001
64002         * lib/backupfile.h: Add extern "C" for C++.
64003         * lib/closeout.h: Likewise.
64004         * lib/copy-file.h: Likewise.
64005         * lib/findprog.h: Likewise.
64006         * lib/full-write.h: Likewise.
64007         * lib/pathname.h: Likewise.
64008         * lib/progname.h: Likewise.
64009         * lib/stpcpy.h: Likewise.
64010         * lib/stpncpy.h: Likewise.
64011         * lib/strcase.h: Likewise.
64012         * lib/strstr.h: Likewise.
64013         * lib/xalloc.h: Likewise.
64014
64015         * lib/mbswidth.h: Add extern "C" for C++.
64016         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64017
64018 2004-07-13  Robert Millan  <robertmh@gnu.org>
64019
64020         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64021
64022 2004-07-09  Simon Josefsson  <jas@extundo.com>
64023
64024         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64025         failed without this.)
64026
64027 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         * modules/chown (Files): Add lib/fchown-stub.c, since
64030         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64031
64032 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * lib/fchown-stub.c: New file.
64035
64036 2004-06-24  Jim Meyering  <jim@meyering.net>
64037
64038         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64039
64040 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64041
64042         * modules/argz: Omit "#include".
64043
64044         * MODULES.html.sh (func_all_modules): Add calloc, to match
64045         2004-06-01 addition of calloc module.
64046
64047 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64048
64049         * m4/argz.m4: New file, which is autoupdated from libtool.
64050
64051 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
64054         libtool.
64055
64056 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64057
64058         * config/srclist-update: Don't insist on "USA." before the
64059         close-comment, as libtool omits the period and puts the */ on a
64060         separate line.
64061         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
64062         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
64063
64064 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
64065
64066         * modules/argz: New file.
64067         * MODULES.html.sh (func_all_modules): Add argz.
64068
64069 2004-06-12  Jim Meyering  <jim@meyering.net>
64070         and  Paul Eggert  <eggert@cs.ucla.edu>
64071
64072         * modules/hash (Files): Add lib/xalloc.h.
64073         * modules/pipe (Depends-on): Add wait-process.
64074         * modules/stat (Depends-on): Add xalloc.
64075         * modules/userspec (Files): Add lib/userspec.h.
64076         * modules/xstrto
64077
64078         Upgrade from gettext-0.13.
64079         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
64080         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
64081         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
64082
64083 2004-06-10  Jim Meyering  <jim@meyering.net>
64084
64085         * lib/calloc.c: New file.
64086
64087 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64088
64089         * lib/getdate.y (yylex): Allow space between sign and number.
64090         Problem reported by Dan Jacobson.
64091
64092 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64093
64094         Merge from coreutils CVS.
64095
64096         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
64097         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
64098         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
64099         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
64100         xstrtol.m4: Fix copyright date and/or serial number.
64101
64102         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
64103         See if we need an fchown replacement.
64104         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
64105         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
64106         and use the replacement function if we detect either defect.
64107
64108         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
64109         gl_UTIMECMP.
64110
64111 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64112         and  Jim Meyering  <jim@meyering.net>
64113
64114         Merge from coreutils CVS.
64115
64116         * lib/stat-macros.h: New file, with contents from file-type.h
64117         and coreutils' system.h.
64118         * lib/file-type.c: Include "stat-macros.h".
64119         * lib/file-type.h (file_type): Move all macro definitions to new file,
64120         stat-macros.h.
64121
64122         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
64123         Wrap old code with this conditional.
64124         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
64125         function that does not dereference symlinks.
64126         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
64127
64128         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
64129         dependency problems.
64130         (xreadlink): Accept new arg SIZE, for efficiency.
64131         All decls and uses changed.
64132         * lib/xreadlink.h: Include <stddef.h>, for size_t.
64133
64134         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
64135         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
64136
64137         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
64138         sysexits.h.
64139
64140 2004-06-01  Jim Meyering  <jim@meyering.net>
64141
64142         * m4/calloc.m4: New file.
64143
64144 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
64145
64146         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
64147         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
64148         Also, fix a typo in a diagnostic.
64149
64150 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64151
64152         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
64153         or AC_FUNC_REALLOC.
64154
64155 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64156
64157         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
64158         macros to be defined.
64159         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
64160         the allocator returns NULL because the requested size is zero.
64161
64162 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64163
64164         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
64165         var.  Add comment explaining why libc still defines it.  This
64166         merges the following patch from glibc:
64167         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
64168
64169 2004-05-20  Andreas Schwab  <schwab@suse.de>
64170
64171         * m4/free.m4: Replace free if it not known to work, not the other
64172         way round.
64173
64174 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64175
64176         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
64177         present in glibc since revision 1.1 of this file.
64178         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
64179         obstack_alignment_mask, obstack_alloc, obstack_base,
64180         obstack_blank, obstack_blank_fast, obstack_chunk_size,
64181         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
64182         obstack_grow0, obstack_init, obstack_int_grow,
64183         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
64184         obstack_next_free, obstack_object_size, obstack_ptr_grow,
64185         obstack_ptr_grow_fast, obstack_room): Remove declarations of
64186         nonexistent functions.
64187
64188 2004-05-18  Karl Berry  <karl@gnu.org>
64189
64190         * config/srclist.txt: break link for vasnprintf.c.
64191
64192 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64193
64194         Port obstack to the AS/400, where pointers are 16 bytes wide and
64195         you cannot cast an integer to a valid pointer.  This patch is
64196         currently waiting to be integrated into glibc; see
64197         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
64198
64199         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
64200         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
64201         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
64202         (struct obstack): temp member is now a union of a pointer and
64203         an integer, instead of an integer.  All integer uses changed.
64204         This does not affect the physical layout of struct obstack,
64205         except on hosts (like the AS/400) where the size or alignment of
64206         void * is greater than that of ptrdiff_t.
64207         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
64208         __STDC__)]: Store temporary in pointer member of union, not
64209         integer member.
64210         * lib/obstack.c: Include <stddef.h>, for offsetof.
64211         (struct fooalign): Remove; it doesn't need a name.
64212         (union fooround): Change double to long double, and add void *.
64213         (DEFAULT_ALIGNMENT): Use offsetof to compute.
64214         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
64215         not a macro.  Hence the values are always int; so remove all
64216         casts-to-int in uses.
64217
64218 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
64221         we can get this patch merged into glibc.
64222
64223 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64224             Paul Eggert  <eggert@cs.ucla.edu>
64225
64226         * m4/argp: Depend on alloca.
64227
64228 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64229             Paul Eggert  <eggert@cs.ucla.edu>
64230
64231         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
64232         freecoding.
64233
64234 2004-05-17  Bruno Haible  <bruno@clisp.org>
64235
64236         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
64237         precision that consists of a '.' followed by an empty digit string.
64238         Patch by Tor Lillqvist <tml@iki.fi>.
64239
64240 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64241
64242         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
64243         for backward compatibility with older code.  We need our own
64244         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
64245         it under some other name, and our alloca.h will define it.
64246
64247 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64248             Derek Price  <derek@ximbiot.com>
64249
64250         * lib/alloca.c: Include <alloca.h>, to get our interface.
64251         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
64252         include <alloca.h> first.  Use C89 prototype for alloca; this
64253         requires including <stddef.h> for size_t.  Use extern "C" if C++.
64254         Use #elif for simplicity, since we can assume C89 now.
64255         Don't try to source the system alloca.h since it will not be found
64256         and to prevent recursively including its replacement.
64257         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
64258         * lib/regex.c: Likewise.
64259
64260 2004-05-16  Derek Price  <derek@ximbiot.com>
64261             Paul Eggert  <eggert@cs.ucla.edu>
64262
64263         getline cleanup.  This changes the getndelim2 API: both order of
64264         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
64265         no delimiter).
64266
64267         * lib/getline.c: Don't include stddef.h or stdio.h, since our
64268         interface does that.
64269         (getline): Always use getdelim, so that we don't have two
64270         copies of this code.
64271         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
64272         if available.
64273         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
64274         (GETNDELIM2_MAXIMUM): New macro.
64275         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
64276         instead of the old practice of delim2==0.  All callers changed.
64277         Return -1 on overflow, instead of returning junk.
64278         Do not set *linesize unless allocation succeeds.
64279         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
64280         that we include sys/types.h.
64281         * lib/getnline.h: Likewise.
64282         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
64283         (getndelim2): Reorder arguments.
64284         * lib/getnline.c (getnline, getndelim):
64285         Don't discard the NMAX argument.
64286         (getnline): Invoke getndelim, to avoid code duplication.
64287         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
64288         of (size_t) -1 by callers of the getnline family.
64289
64290 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64291
64292         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
64293         Check for gettimeofday.
64294         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
64295         Check for settimeofday, stime.
64296
64297 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64298
64299         * lib/nanosleep.c (suspended): Change its type from int to
64300         sig_atomic_t volatile.
64301         (first_call): Make it private to rpl_nanosleep, and have it
64302         be zero initially as that's a bit faster.
64303         (my_usleep): Round up fractional times instead of truncating them,
64304         as this is the usual meaning for 'sleep'.
64305
64306         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
64307         doesn't work.
64308         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
64309         (ENOSYS): Define if not defined.
64310         (settime): Fall back on stime if it exists and settimeofday fails.
64311         But don't bother with fallbacks if a method fails with errno == EPERM.
64312
64313 2004-05-11  Jim Meyering  <jim@meyering.net>
64314
64315         Prior to this change, the save_cwd caller required read access to the
64316         current directory on most systems (ones with the fchdir function).
64317
64318         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
64319         fails, try write-only, and finally, resort to using xgetcwd.
64320
64321 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64322
64323         * lib/obstack.c, obstack.h: Import changes from libc.
64324
64325 2004-04-28  Bruno Haible  <bruno@clisp.org>
64326
64327         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
64328         also implicitly appends .exe to executables.
64329         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
64330         accepts Windows pathnames.
64331         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64332         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64333         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64334         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64335         Reported by Derek Robert Price <derek@ximbiot.com>.
64336
64337 2004-04-21  Karl Berry  <karl@gnu.org>
64338
64339         * config/srclist.txt (localcharset.c): break sync.
64340
64341 2004-04-20  Paul Eggert  <eggert@twinsun.com>
64342
64343         * m4/host-os.m4: Add a copyright notice.
64344
64345 2004-04-20  Jim Meyering  <jim@meyering.net>
64346
64347         Change UTILS_ to gl_ in AC_DEFINE'd names.
64348         Change utils_- and jm_-prefixed variables, too.
64349         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
64350         UTILS_FUNC_MKDIR_TRAILING_SLASH.
64351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
64352
64353         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
64354         Don't emit trailing blanks.
64355         Also rename jm_-prefixed variables to have gl_ prefix.
64356
64357         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
64358         Also rename jm_-prefixed variables to have gl_ prefix.
64359
64360         * m4/jm-macros.m4: Reflect the renamings.
64361         * m4/prereq.m4: Likewise.
64362
64363 2004-04-20  Jim Meyering  <jim@meyering.net>
64364
64365         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
64366         memory.
64367
64368 2004-04-20  Jim Meyering  <jim@meyering.net>
64369             Bruno Haible  <bruno@clisp.org>
64370
64371         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
64372         memory when realloc fails.
64373
64374 2004-04-19  Jim Meyering  <jim@meyering.net>
64375
64376         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
64377         now that readutmp.c may call `free (0)'.
64378
64379 2004-04-19  Bruno Haible  <bruno@clisp.org>
64380
64381         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
64382         * m4/inttypes_h.m4: Likewise.
64383         * m4/stdint_h.m4: Likewise.
64384         * m4/intmax_t.m4: Likewise.
64385         * m4/uintmax_t.m4: Likewise.
64386
64387 2004-04-18  Jim Meyering  <jim@meyering.net>
64388
64389         * m4/prereq.m4: Don't forbid jm_ prefix.
64390
64391         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
64392         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
64393         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
64394         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
64395         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
64396         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
64397         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
64398         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
64399         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
64400         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
64401         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
64402         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
64403         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
64404         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
64405         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
64406         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
64407         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
64408         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
64409         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
64410
64411 2004-04-18  Jim Meyering  <jim@meyering.net>
64412
64413         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
64414         failure, don't leak memory and do call END_UTMP_ENT.
64415
64416 2004-04-16  Jim Meyering  <jim@meyering.net>
64417
64418         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
64419         coreutils' stat program.
64420         (gl_PREREQ): Don't require jm_PREREQ_STAT.
64421
64422 2004-04-11  Paul Eggert  <eggert@twinsun.com>
64423
64424         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
64425         C89.
64426         (CHAR_BIT): Remove, since we assume C89.
64427         Include <stdint.h> if available, as per current Autoconf CVS advice.
64428
64429 2004-03-31  Jim Meyering  <jim@meyering.net>
64430
64431         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
64432         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
64433         * m4/xalloc.m4: Likewise.
64434
64435 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64436
64437         Merge from coreutils.
64438
64439         * m4/inttostr.m4: New file.
64440         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
64441         Require AM_STDBOOL_H and gl_TIMESPEC instead.
64442         Require gl_CLOCK_TIME.
64443         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
64444
64445 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64446
64447         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
64448         not bool, to be more consistent with Unix conventions.
64449         Suggested by Bruno Haible.
64450
64451         Merge from coreutils.
64452
64453         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
64454         * lib/umaxtostr.c: New files.
64455
64456         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
64457         the usual <time.h> dance.
64458         (get_date): Change signature to support fractional time stamps.
64459         All callers changed.
64460         * lib/getdate.y: Include "getdate.h" first, as we can now
64461         assume C89 and don't need to worry about 'const'.
64462         Similarly, include "unlocked-io.h" near start, not in middle.
64463         Include <limits.h>.
64464         (textint.value): Use long int rather than int.
64465         (textint.digits): Use size_t rather than int.
64466         (BILLION, LOG10_BILLION): New constants.
64467         (parser_control): New member rel_ns.  Members day_ordinal,
64468         time_zone, month, day, hour, minutes, rel_year, rel_month,
64469         rel_day, rel_hour, rel_minutes, rel_seconds
64470         are now long int, not int.  Member seconds is now struct timespec,
64471         not int.  New member timespec_seen.  Members dates_seen, days_seen,
64472         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
64473         not int.
64474         (%union.intval): Now long int, not int.
64475         New member timespec.
64476         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
64477         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
64478         (spec): Now is a timespec or an item list.
64479         (timespec, items): New nonterminals.
64480         (time, rel, relunit, number, get_date):
64481         Add support for fractional seconds.
64482         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
64483         (gmtime, localtime, mktime): Remove decls; not needed with C89.
64484         (to_hour): First arg is now long int, not int.
64485         (to_year): Returns long int, not int.
64486         Don't treat year -70 like 70.
64487         (tm_diff): Returns long int, not int.
64488         (lookup_word): Use bool instead of int when appropriate.
64489         (yylex): Use size_t for count, not int.
64490         Detect overflow when parsing large integer constants.
64491         Add support for fractions.
64492         (get_date): Make pointers 'const' if possible.
64493         Use more-portable code to detect integer overflow.
64494         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
64495         Don't use ctime; it's not reliable if the year has >4 digits.
64496
64497         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
64498         This is for compatibility with BSD.
64499
64500         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
64501         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
64502         From coreutils' system.h.
64503
64504         * lib/userspec.c: Don't include "posixver.h".
64505         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
64506         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
64507         compatible extension.  Simplify code by removing a boolean int
64508         that was always nonzero if a string was nonnull.
64509
64510 2004-03-30  Jim Meyering  <jim@meyering.net>
64511
64512         Merge from coreutils.
64513
64514         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
64515         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
64516         on some systems one must include <grp.h> before it.
64517         Reported by Christian Krackowizer.
64518
64519 2004-03-30  Jim Meyering  <jim@meyering.net>
64520
64521         Merge from coreutils.
64522
64523         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
64524
64525         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
64526         an empty input stream.
64527
64528         * lib/readtokens.c: Include <stdbool.h>.
64529         (readtoken): Use `size_t' rather than int/long.
64530         All callers adjusted.
64531         Use `bool' rather than `int' where appropriate.
64532         Use memset rather than an explicit loop.
64533         Use x2nrealloc rather than xrealloc.
64534         Allow the use of `\0' as a delimiter.
64535         (readtokens): Likewise.
64536         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
64537
64538 2004-03-30  Jim Meyering  <jim@meyering.net>
64539
64540         * m4/realloc.m4: Remove file, since now it does no more than
64541         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
64542         the `configure.ac' section of module/realloc.
64543         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
64544
64545 2004-03-30  Bruno Haible  <bruno@clisp.org>
64546
64547         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
64548         nonnull.
64549
64550 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64551
64552         Merge changes to getloadavg.c from coreutils and Emacs.
64553
64554         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
64555         Define to an expression, not to the empty string.
64556         Include cloexec.h and xalloc.h.
64557         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
64558         Use set_cloexec_flag rather than rolling our own.
64559         * lib/cloexec.c, lib/cloexec.h: New files.
64560
64561 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64562
64563         * m4/cloexec.m4: New file.
64564
64565 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64566
64567         * lib/getopt.h: Sync with libc CVS.
64568
64569 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64570             Bruno Haible  <bruno@clisp.org>
64571
64572         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
64573         mbswidth.
64574
64575 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64576             Bruno Haible  <bruno@clisp.org>
64577
64578         * lib/mbswidth.h: Include <wchar.h> only if
64579         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
64580         <wchar.h>.
64581         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
64582
64583 2004-03-09  Paul Eggert  <eggert@twinsun.com>
64584
64585         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
64586         Sync with libc CVS.
64587         * lib/getopt_int.h: New file, also synced from libc.
64588
64589 2004-03-09  Paul Eggert  <eggert@twinsun.com>
64590
64591         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
64592         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
64593         Bring back getopt.c, getopt.h, getopt1.c.
64594
64595 2004-03-07  Paul Eggert  <eggert@twinsun.com>
64596
64597         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
64598         All uses changed.  Check for sa_sigaction member; this fixes
64599         a bug first reported by Jason Andrade in
64600         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
64601
64602 2004-03-07  Paul Eggert  <eggert@twinsun.com>
64603
64604         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
64605         '#if' expressions.  Unlike the code it replaces, it does not
64606         depend on (defined _SC_PAGESIZE).  However, it does depend on
64607         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
64608         first reported by Jason Andrade in
64609         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
64610
64611 2004-02-25  Simon Josefsson  <jas@extundo.com>
64612
64613         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
64614
64615 2004-02-25  Simon Josefsson  <jas@extundo.com>
64616
64617         * lib/strdup.h: New file.
64618         * lib/strdup.c: Include it.
64619         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
64620         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
64621
64622 2004-02-23  Karl Berry  <karl@gnu.org>
64623
64624         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
64625         (from fencepost.gnu.org:/gd/gnuorg).
64626
64627 2004-02-23  Karl Berry  <karl@gnu.org>
64628
64629         * config/srclistvars.sh (GNUORG) [karl]: redefine.
64630         * config/srclist.txt: add maintain/standards documents.
64631
64632 2004-02-18  Bruno Haible  <bruno@clisp.org>
64633
64634         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
64635         Reported by Derek Robert Price <derek@ximbiot.com>.
64636
64637 2004-02-16  Karl Berry  <karl@gnu.org>
64638
64639         * config/mkinstalldirs, install-sh: update from automake.
64640
64641 2004-02-06  Karl Berry  <karl@gnu.org>
64642
64643         * m4/po.m4: update from gettext 0.14.1.
64644
64645 2004-02-06  Karl Berry  <karl@gnu.org>
64646
64647         * lib/config.charset: update from gettext 0.14.1.
64648
64649 2004-02-05  Paul Eggert  <eggert@twinsun.com>
64650
64651         Add comments and code, prompted by suggestions from Bruno Haible
64652         for sh-quote.
64653         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
64654         describing the enum quoting_style values.
64655         * lib/quotearg.c (quotearg_alloc): New function.
64656         (quotearg_buffer_restyled): Treat lone { and } as special.
64657         Treat = as special.  Work around bug with older shells
64658         that "see" a '\' that is really the 2nd byte of a multibyte char.
64659         Quote empty string with shell_quoting_style.
64660
64661 2004-02-03  Bruno Haible  <bruno@clisp.org>
64662
64663         * m4/pipe.m4: New file, from GNU gettext.
64664
64665 2004-02-03  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/pipe.h: New file, from GNU gettext.
64668         * lib/pipe.c: New file, from GNU gettext.
64669
64670 2004-01-27  Bruno Haible  <bruno@clisp.org>
64671
64672         * m4/execute.m4: New file, from GNU gettext.
64673
64674 2004-01-27  Bruno Haible  <bruno@clisp.org>
64675
64676         * lib/execute.h: New file, from GNU gettext.
64677         * lib/execute.c: New file, from GNU gettext.
64678         * lib/w32spawn.h: New file, from GNU gettext.
64679
64680 2004-01-24  Paul Eggert  <eggert@twinsun.com>
64681
64682         Merge from diffutils.
64683
64684         * lib/file-type.c (file_type): Add typed memory objects.
64685         * lib/file-type.h (S_TYPEISTMO): New macro.
64686
64687         * lib/c-stack.h (c_stack_action): Remove argv argument.
64688         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
64689         (die): Don't calculate message unless segv_action returns.
64690         (get_stack_location, min_address_from_argv, max_address_from_argv,
64691         volatile stack_base, volatile_stack_size): Remove.
64692         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
64693         that every segmentation violation is a stack overflow.  (Ouch!)
64694         See Debian bug 136249 (still outstanding) for more info about why
64695         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
64696
64697 2004-01-24  Paul Eggert  <eggert@twinsun.com>
64698
64699         Exit-status fix from coreutils.
64700
64701         Use exit_failure consistently in place of EXIT_FAILURE,
64702         so that program exit statuses are consistent on failure.
64703
64704         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
64705         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
64706         * lib/argmatch.h: Comment fix to match the above.
64707         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
64708         Now a macro referring to exit_failure, instead of a separate
64709         variable.  Include "exitfail.h" to get it.
64710         * lib/xstrtol.h: Include "exitfail.h".
64711         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
64712
64713         * lib/long-options.c (parse_long_options): Use prototype
64714         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
64715         for clarity.
64716
64717 2004-01-21  Jim Meyering  <jim@meyering.net>
64718
64719         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
64720         so as not to conflict with a different-sized __mktime_internal
64721         function in GNU libc.
64722         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
64723         Problem building statically-linked `ls' reported by Michael Brunnbauer.
64724
64725 2004-01-20  Karl Berry  <karl@gnu.org>
64726
64727         * config/config.guess: update from config.
64728
64729         * config/srclistvars.sh: GNUWWWLICENSES for karl.
64730
64731 2004-01-20  Bruno Haible  <bruno@clisp.org>
64732
64733         Safer stack allocation.
64734         * lib/setenv.c: Include allocsa.h.
64735         (alloca): Remove fallback definition.
64736         (freea): Remove macro.
64737         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
64738         instead of freea.
64739
64740 2004-01-20  Bruno Haible  <bruno@clisp.org>
64741
64742         * m4/eealloc.m4: New file, from GNU gettext.
64743
64744 2004-01-20  Bruno Haible  <bruno@clisp.org>
64745
64746         * m4/allocsa.m4: New file, from GNU gettext.
64747
64748 2004-01-20  Bruno Haible  <bruno@clisp.org>
64749
64750         * lib/xallocsa.h: New file, from GNU gettext.
64751         * lib/xallocsa.c: New file, from GNU gettext.
64752
64753 2004-01-20  Bruno Haible  <bruno@clisp.org>
64754
64755         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
64756
64757 2004-01-20  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
64760         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
64761         specially.
64762
64763 2004-01-20  Bruno Haible  <bruno@clisp.org>
64764
64765         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
64766         patch.
64767
64768 2004-01-20  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
64771
64772 2004-01-20  Bruno Haible  <bruno@clisp.org>
64773
64774         * lib/eealloc.h: New file.
64775
64776 2004-01-20  Bruno Haible  <bruno@clisp.org>
64777
64778         * lib/binary-io.h: Avoid warnings on Cygwin.
64779
64780 2004-01-20  Bruno Haible  <bruno@clisp.org>
64781
64782         * lib/allocsa.h: New file, from GNU gettext.
64783         * lib/allocsa.c: New file, from GNU gettext.
64784
64785 2004-01-18  Karl Berry  <karl@gnu.org>
64786
64787         * doc/gpl.texi, doc/lgpl.texi: new files.
64788
64789 2004-01-18  Karl Berry  <karl@gnu.org>
64790
64791         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
64792         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
64793
64794 2004-01-15  Paul Eggert  <eggert@twinsun.com>
64795
64796         Merge from coreutils.
64797
64798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
64799         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
64800         (gl_DEFAULT_POSIX2_VERSION): Move
64801         the documentation from 'configure' into 'config.hin',
64802         so that 'configure --help' isn't burdened by it and
64803         we don't have to worry about its formatting there.
64804         Reword the documentation so that it's more succinct
64805         and can be run together into a single paragraph.
64806         * m4/same.m4 (gl_SAME): Check for pathconf.
64807
64808 2004-01-15  Paul Eggert  <eggert@twinsun.com>
64809
64810         Merge from coreutils.
64811
64812         * lib/posixver.c: Include posixver.h.
64813
64814         * lib/same.c: Include <stdbool.h>, <limits.h>.
64815         (_POSIX_NAME_MAX): Define if not defined.
64816         (MIN): New macro.
64817         (same_name): If file names are silently truncated, report
64818         that the file names are the same if they are the same after
64819         the silent truncation.
64820
64821         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
64822         conversion function.
64823         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
64824         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
64825         longer needed.
64826
64827 2004-01-15  Jim Meyering  <jim@meyering.net>
64828
64829         Merge from coreutils.
64830
64831         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
64832         if no library is required.
64833         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
64834         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
64835         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
64836         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
64837         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
64838         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
64839         value, $ac_cv_search_crypt, if it's "none required".
64840         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
64841         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
64842         not gl_FUNC_GETLOADAVG.
64843         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
64844         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
64845
64846 2004-01-15  Jim Meyering  <jim@meyering.net>
64847
64848         Merge from coreutils.
64849
64850         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
64851         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
64852         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
64853
64854         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
64855         optional configure-time default.
64856
64857         * lib/version-etc.c (version_etc_copyright): Update copyright date.
64858
64859         * lib/xreadlink.c (xreadlink): Correct outdated comment.
64860
64861 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
64862
64863         Merge from coreutils.
64864
64865         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
64866         value, $ac_cv_search_nanosleep, if it's "none required".
64867
64868 2004-01-14  Paul Eggert  <eggert@twinsun.com>
64869
64870         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
64871         with like-named macro in fnmatch.c.
64872         (EXT): Use an internal constant instead.
64873
64874         Merge fnmatch patches from glibc.
64875         * lib/fnmatch.c (mbsinit): Remove define.
64876         Add libc_hidden_ver (__fnmatch, fnmatch).
64877         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
64878         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
64879
64880 2004-01-14  Karl Berry  <karl@gnu.org>
64881
64882         * config/install-sh: update from automake.
64883
64884 2004-01-13  Karl Berry  <karl@gnu.org>
64885
64886         * config/install-sh: update from automake.
64887
64888 2004-01-09  Karl Berry  <karl@gnu.org>
64889
64890         * config/install-sh: update from automake.
64891
64892 2004-01-05  Karl Berry  <karl@gnu.org>
64893
64894         * config/config.{sub,guess}: update from config.
64895
64896 2003-12-31  Karl Berry  <karl@gnu.org>
64897
64898         * config/depcomp: update from automake.
64899
64900 2003-12-14  Karl Berry  <karl@gnu.org>
64901
64902         * lib/config.charset: update from gettext-runtime.
64903
64904 2003-12-03  Paul Eggert  <eggert@twinsun.com>
64905
64906         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
64907         Bug reported by Alfred M. Szmidt.
64908
64909 2003-12-03  Bruno Haible  <bruno@clisp.org>
64910
64911         * m4/gettext.m4: Upgrade from gettext-0.13.
64912         * m4/po.m4: Upgrade from gettext-0.13.
64913         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
64914         * m4/intmax.m4: New file, from gettext-0.13.
64915         * m4/printf-posix.m4: New file, from gettext-0.13.
64916
64917 2003-11-29  Karl Berry  <karl@gnu.org>
64918
64919         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
64920
64921 2003-11-25  Paul Eggert  <eggert@twinsun.com>
64922             Bruno Haible  <bruno@clisp.org>
64923
64924         * lib/printf-parse.h: Don't include sys/types.h.
64925         (ARG_NONE): New macro.
64926         (char_directive): Change type of *arg_index fields to size_t.
64927         * lib/printf-parse.c: Don't include sys/types.h.
64928         (SSIZE_MAX): Remove macro.
64929         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
64930         Remove unnecessary overflow check.
64931         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
64932         fields.
64933
64934 2003-11-25  Bruno Haible  <bruno@clisp.org>
64935
64936         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
64937
64938 2003-11-25  Bruno Haible  <bruno@clisp.org>
64939
64940         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
64941         gt_TYPE_SSIZE_T.
64942
64943 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64944
64945         * modules/alloca: Remove dependency on xalloc.
64946
64947 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64948
64949         * lib/alloca.c: Remove dependency on xalloc module.
64950         (xalloc_die): Remove.
64951         (memory_full) [!defined emacs]: New macro.
64952         [!defined emacs]: Don't include xalloc.h.
64953         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
64954         address arithmetic overflows.  Change datatypes a bit to avoid
64955         unnecessary casts.
64956
64957 2003-11-22  Jim Meyering  <jim@meyering.net>
64958
64959         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
64960         s/size/size_t/.
64961
64962 2003-11-21  Karl Berry  <karl@gnu.org>
64963
64964         * config/config.{sub,guess}: update from config.
64965
64966 2003-11-18  Karl Berry  <karl@gnu.org>
64967
64968         * config/config.{sub,guess}: update from config.
64969
64970         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
64971
64972 2003-11-17  Paul Eggert  <eggert@twinsun.com>
64973
64974         * README: Mention that S+T cannot overflow if S is the size of
64975         an existing object and T is sufficiently small.
64976
64977 2003-11-17  Jim Meyering  <jim@meyering.net>
64978
64979         On systems without utime and without a utimes function capable of
64980         dealing with a NULL struct utimbuf* argument, this utime replacement
64981         could -- in unusual circumstances -- leak a file descriptor.
64982         * lib/utime.c: Include <unistd.h> and <errno.h>.
64983         (utime_null): Be sure to close `fd' and to preserve errno.
64984         Reported by Geoff Collyer via Arnold Robbins.
64985
64986 2003-11-17  Bruno Haible  <bruno@clisp.org>
64987
64988         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
64989         (Depends-on): Add xsize.
64990
64991 2003-11-17  Bruno Haible  <bruno@clisp.org>
64992
64993         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
64994
64995 2003-11-17  Bruno Haible  <bruno@clisp.org>
64996
64997         * lib/vasnprintf.c (alloca): Remove fallback definition.
64998         (freea): Remove definition.
64999         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65000         Reported by Paul Eggert.
65001
65002 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65003             Bruno Haible  <bruno@clisp.org>
65004
65005         Protect against address arithmetic overflow.
65006         * lib/printf-args.h: Include stddef.h.
65007         (arguments): Change type of field 'count' to size_t.
65008         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65009         'unsigned int' where appropriate.
65010         * lib/printf-parse.h: Include sys/types.h.
65011         (char_directive): Change type of *arg_index fields to ssize_t.
65012         (char_directives): Change type of fields 'count', max_*_length to
65013         size_t.
65014         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65015         (SSIZE_MAX): Define fallback value.
65016         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65017         instead of 'int' where appropriate. Check a_allocated, d_allocated
65018         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65019         * lib/vasnprintf.c: Include xsize.h.
65020         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65021         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65022         overflow. Avoid wraparound when converting a width or precision from
65023         decimal to binary.
65024
65025 2003-11-16  Bruno Haible  <bruno@clisp.org>
65026
65027         Update from GNU gettext.
65028         * lib/printf-parse.c: Generalize to it can be compiled for wide
65029         strings.
65030         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65031         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65032         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65033         SNPRINTF): New macros.
65034         Don't include <alloca.h> if the file is used inside libintl.
65035         (local_wcslen): New function, for Solaris 2.5.1.
65036         (VASNPRINTF): Use it instead of wcslen.
65037
65038 2003-11-16  Bruno Haible  <bruno@clisp.org>
65039
65040         * lib/xsize.h (xmax): New function.
65041         (xsum, xsum3, xsum4): Declare as "pure" functions.
65042
65043 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65044
65045         * modules/xalloc (Files): Undo latest change, since xalloc.h
65046         no longer needs SIZE_MAX or PTRDIFF_MAX.
65047
65048 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65049
65050         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
65051         gl_PTRDIFF_MAX.
65052
65053 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65054
65055         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
65056         "return", to pacify some unknown compiler.  Problem reported
65057         by Joerg Schilling.
65058
65059 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65060
65061         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
65062         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
65063         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
65064         heuristic is just as accurate as far as we know, and it removes a
65065         dependency on size_max.m4 and ptrdiff_max.m4.
65066
65067 2003-11-11  Bruno Haible  <bruno@clisp.org>
65068
65069         * modules/xsize (Files): Add m4/size_max.m4.
65070         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
65071
65072 2003-11-11  Bruno Haible  <bruno@clisp.org>
65073
65074         * m4/size_max.m4: New file.
65075         * m4/ptrdiff_max.m4: New file.
65076         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
65077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
65078         (gl_XALLOC): Invoke it.
65079
65080 2003-11-11  Bruno Haible  <bruno@clisp.org>
65081
65082         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
65083         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
65084         defined.
65085
65086 2003-11-10  Paul Eggert  <eggert@twinsun.com>
65087
65088         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
65089         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
65090         rejected some allocations of exactly SIZE_MAX - 2 bytes.
65091         From Bruno Haible.
65092         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
65093         not (size_t) -1, since it's defined here.
65094
65095 2003-11-09  Karl Berry  <karl@gnu.org>
65096
65097         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
65098
65099 2003-11-06  Paul Eggert  <eggert@twinsun.com>
65100
65101         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
65102         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
65103         Reject sizes of exactly SIZE_MAX bytes.
65104         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
65105         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
65106
65107 2003-11-05  Bruno Haible  <bruno@clisp.org>
65108
65109         * lib/xsize.h: Include limits.h, to avoid a possible collision with
65110         SIZE_MAX defined in <limits.h> on Solaris.
65111
65112 2003-11-04  Jim Meyering  <jim@meyering.net>
65113
65114         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
65115         variable names, rather than @VAR@.
65116         * modules/poll: Likewise.
65117
65118 2003-11-04  Bruno Haible  <bruno@clisp.org>
65119
65120         * modules/xsize: New file.
65121         * modules/linebreak: Depend on xsize.
65122         * MODULES.html.sh (func_all_modules): Add xsize.
65123
65124 2003-11-04  Bruno Haible  <bruno@clisp.org>
65125
65126         * m4/xsize.m4: New file.
65127
65128 2003-11-04  Bruno Haible  <bruno@clisp.org>
65129
65130         * lib/xsize.h: New file.
65131         * lib/linebreak.c: Include xsize.h.
65132         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
65133         argument for overflow.
65134         Suggested by Paul Eggert.
65135
65136 2003-11-03  Karl Berry  <karl@gnu.org>
65137
65138         * config/config.{guess,sub}: update from config.
65139
65140 2003-11-03  Jim Meyering  <jim@meyering.net>
65141
65142         * modules/userspec (lib_SOURCES): Add userspec.h.
65143         (Include): Add "userspec.h".
65144         Improve description.
65145
65146 2003-11-03  Jim Meyering  <jim@meyering.net>
65147
65148         * lib/userspec.c: Include "userspec.h".
65149         * lib/userspec.h: New file.
65150
65151 2003-11-03  Bruno Haible  <bruno@clisp.org>
65152
65153         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
65154
65155 2003-11-03  Bruno Haible  <bruno@clisp.org>
65156
65157         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
65158         available, to avoid (extremely rare) race condition.
65159         Suggested by Paul Eggert.
65160
65161 2003-11-02  Karl Berry  <karl@gnu.org>
65162
65163         * config/srclist.txt (vasprintf.c): sync broken, sigh.
65164
65165 2003-10-31  Paul Eggert  <eggert@twinsun.com>
65166
65167         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
65168         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
65169         (read_filesystem_list): Set and use me_type_malloced.
65170         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
65171         whatever the type happens to be), for brevity and consistency.
65172         Check for size calculation overflow on Alphas running OSF/1.
65173
65174 2003-10-31  Jim Meyering  <jim@meyering.net>
65175
65176         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
65177
65178         * lib/linebuffer.c: Include <string.h> for declaration of memset.
65179
65180 2003-10-30  Paul Eggert  <eggert@twinsun.com>
65181             Bruno Haible  <bruno@clisp.org>
65182
65183         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
65184         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
65185
65186 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65187
65188         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
65189         netbsd*-gnu*.  Suggested by Robert Millan.
65190
65191 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65192
65193         * modules/group-member: Depend on stdbool.
65194
65195 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65196
65197         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
65198
65199 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65200
65201         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
65202         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
65203         after the 'gnu' in these cases.  This fixes some bugs in the
65204         previous change, and is based on suggestions by Robert Millan.
65205
65206 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65207
65208         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
65209         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
65210         no longer needed.
65211         * lib/quotearg.c (quotearg_n_options): Use it.
65212         * lib/group-member.c: Include <stdbool.h>.
65213         (free_group_info): Arg is now const *; don't free arg.
65214         (get_group_info): Now returns bool and accepts struct group_info *,
65215         rather than returning a malloc'ed struct group_info *.
65216         All uses changed.  Check for overflow in internal size calculation.
65217
65218         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
65219         rather than xmalloc/xrealloc.
65220         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
65221         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
65222         conformance bug: the old code used a pointer after freeing the
65223         storage that it addressed.
65224         * lib/hash.c (hash_initialize): Simplify the code by using
65225         xalloc_oversized rather than doing it by hand.
65226         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
65227         the buffer preserved.  Use free and xmalloc instead.
65228         * lib/quotearg.c (quotearg_n_options): Likewise.
65229         Use a simpler test for size overflow.  Don't use xalloc_oversized
65230         because unsigned int might be wider than size_t (!); this suggests
65231         that we should switch from unsigned int to size_t for slot numbers.
65232
65233 2003-10-28  Paul Eggert  <eggert@twinsun.com>
65234
65235         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
65236         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
65237         NetBSD kernels.  Requested by Richard Stallman.
65238
65239 2003-10-27  Paul Eggert  <eggert@twinsun.com>
65240
65241         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
65242         to allocate the returned structure.  Do not allocate a subarray,
65243         as x2nrealloc will do that.
65244         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
65245         instead of xnrealloc.
65246         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
65247
65248 2003-10-27  Bruno Haible  <bruno@clisp.org>
65249
65250         * lib/stdbool_.h: Better support for BeOS.
65251
65252 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65253
65254         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
65255         now uses inline.
65256
65257 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65258
65259         * lib/xalloc.h (xalloc_oversized): New static inline function, for
65260         callers that want to do their own size-overflow checking.  Include
65261         <stdbool.h>, since xalloc_oversized returns bool.
65262         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
65263         to use xalloc_oversized.
65264
65265         Add two functions x2realloc, x2nrealloc, for programs that grow
65266         arrays dynamically by doubling their sizes.
65267         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
65268         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
65269         New functions.
65270
65271         Port to C99 semantics for 'inline' of external functions.
65272         Bug reported by Bruno Haible.
65273         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
65274         with the old contents of xnmalloc.
65275         (xnmalloc, xmalloc): Use it.
65276         (xnrealloc_inline): New static inline function,
65277         with the old contents of xnrealloc.
65278         (xnrealloc, xrealloc): Use it.
65279
65280         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
65281         that.
65282
65283 2003-10-26  Karl Berry  <karl@gnu.org>
65284
65285         * config/srclist.txt (COPYING.DOC): no longer available from
65286         /gd/gnuorg; don't know where the ultimate source is.
65287
65288 2003-10-25  Paul Eggert  <eggert@twinsun.com>
65289
65290         Fix several address-calculation bugs in the hash modules,
65291         plus some minor code cleanup.
65292
65293         * lib/hash.h: Include <stdbool.h>, for bool.
65294         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
65295         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
65296         hash_get_n_entries, hash_get_max_bucket_length,
65297         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
65298         hash_rehash): Use size_t rather than unsigned.
65299         * lib/hash.c (struct hash_table, hash_get_n_buckets,
65300         hash_get_n_buckets_used, hash_get_n_entries,
65301         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
65302         hash_get_entries, hash_do_for_each, hash_string, is_prime,
65303         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
65304         Likewise.
65305         (SIZE_MAX): Define if not defined.
65306         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
65307         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
65308         hash_print):
65309         Use const * when possible.
65310         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
65311         (check_tuning): Fix bug: if tuning parameters were very close to
65312         0 or 1, rounding errors could have caused subscript violations.
65313         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
65314         (hash_initialize): Add 'fail:' label
65315         to free table and return NULL, and use it to simplify code.
65316         Use calloc rather than clearing the storage ourself.
65317         (hash_initialize, hash_rehash): Check for arithmetic overflow in
65318         buffer size calculations.
65319         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
65320         Include <stddef.h>, for size_t.
65321         * lib/hash-pjw.c (hash_pjw): Likewise.
65322         Switch to method described by Bruno Haible.
65323         Include <limits.h>, for CHAR_BIT.
65324         (SIZE_BITS): New macro.
65325
65326 2003-10-23  Paul Eggert  <eggert@twinsun.com>
65327
65328         * m4/getline.m4 (AM_FUNC_GETLINE):
65329         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
65330         hosts.  Problem reported by Derek Robert Price in
65331         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
65332         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
65333         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
65334
65335 2003-10-21  Paul Eggert  <eggert@twinsun.com>
65336
65337         * lib/getndelim2.c (getndelim2): When size calculation overflows,
65338         ceiling the allocation at NMAX bytes rather than silently
65339         discarding input bytes before NMAX is reached.  This makes
65340         a difference only if NMAX exceeds SIZE_MAX / 2.
65341
65342         * lib/obstack.c: Merge from glibc.
65343         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
65344         Add libc_hidden_def (_obstack_newchunk).
65345         (_obstack_free) [! defined _LIBC]: Remove.
65346         [defined _LIBC]: Make a strong alias from obstack_free, rather than
65347         a clone of the function body.
65348         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
65349         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
65350
65351         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
65352         glibc.
65353         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
65354         arg to memcpy.
65355
65356         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
65357         (obstack_ptr_grow_fast, obstack_int_grow_fast):
65358         Don't use lvalue casts, as GCC plans to remove support for them
65359         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
65360         was also present in the non-GCC version, indicating that this
65361         code had always been buggy and had never been widely used.
65362         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
65363         Use the fast variant of each macro, rather than copying the
65364         definiens of the fast variant; that way, we'll be more likely to
65365         catch future bugs in the fast variants.
65366
65367 2003-10-20  Bruno Haible  <bruno@clisp.org>
65368
65369         * modules/wait-process: New file.
65370         * MODULES.html.sh (func_all_modules): Add wait-process.
65371
65372 2003-10-20  Bruno Haible  <bruno@clisp.org>
65373
65374         * m4/wait-process.m4: New file.
65375
65376 2003-10-20  Bruno Haible  <bruno@clisp.org>
65377
65378         * lib/wait-process.h: New file, from GNU gettext.
65379         * lib/wait-process.c: New file, from GNU gettext.
65380
65381 2003-10-19  Jim Meyering  <jim@meyering.net>
65382
65383         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
65384         HPUX 10.20.
65385
65386 2003-10-18  Karl Berry  <karl@gnu.org>
65387
65388         * config/config.guess: update from config.
65389
65390 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65391
65392         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
65393         (getgroups): First arg is int, not size_t.
65394         Don't let 'free' mangle errno.
65395
65396 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65397
65398         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
65399
65400 2003-10-16  Karl Berry  <karl@gnu.org>
65401
65402         * config/config.{guess,sub}: update from config.
65403
65404 2003-10-16  Jim Meyering  <jim@meyering.net>
65405
65406         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
65407         memcpy.
65408
65409 2003-10-15  Paul Eggert  <eggert@twinsun.com>
65410
65411         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
65412         (SIZE_MAX): Remove.
65413         (new_exclude, add_exclude_file): Initial size no longer needs to
65414         be a power of 2.
65415         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
65416         our own address arithmetic overflow checking.
65417
65418         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
65419         (fnmatch): Do not alloca more than 2000 wide characters;
65420         instead, use malloc for large buffers.
65421         Check for address arithmetic overflow, and return -1
65422         with errno set to ENOMEM in that case.
65423         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
65424         (NEW_PATTERN): Do not alloca more than 8000 bytes;
65425         instead, return -1.  Check for address arithmetic overflow.
65426
65427 2003-10-14  Paul Eggert  <eggert@twinsun.com>
65428
65429         Handle invalid suffixes and overflow independently, so that
65430         callers can treat them independently as needed.  Fix some bugs in
65431         suffix handling, e.g., "100k@" was not diagnosed as an invalid
65432         suffix for a human-readable blocksize.  The major caller-visible
65433         change is the addition of a new
65434         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
65435         that both overflow and suffix chars were found.
65436
65437         * lib/human.c (humblock): Don't check separately for invalid suffix
65438         char; that is xstrtoumax's job (now that its bug is fixed).
65439         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
65440         INTMAX_MAX]: New macros.
65441         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
65442         TYPE_MAXIMUM): New macros.
65443         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
65444         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
65445         if overflow occurs, as it's what __strtol does and it's more useful
65446         in practice.
65447         (__xstrtol): If __strtol reports some error other than ERANGE,
65448         reflect it to the caller as LONGINT_INVALID.  If it reports
65449         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
65450         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
65451         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
65452         value.
65453         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
65454         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
65455         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
65456         [defined UINTMAX_MAX]: New macros.
65457
65458 2003-10-14  Bruno Haible  <bruno@clisp.org>
65459
65460         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
65461
65462 2003-10-14  Bruno Haible  <bruno@clisp.org>
65463
65464         * m4/sig_atomic_t: New file, from GNU gettext.
65465         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
65466
65467 2003-10-14  Bruno Haible  <bruno@clisp.org>
65468
65469         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
65470         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
65471         Also use volatile where needed.
65472
65473 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65474
65475         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
65476         Change maintainer from Bruno Haible to 'all'.
65477
65478 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65479
65480         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
65481
65482 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65483
65484         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
65485         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
65486         and define in terms of the other primitives.
65487         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
65488         (SIZE_MAX): Define if not already defined.
65489         (array_size_overflow): New function.
65490         (xalloc_die): Abort instead of exiting if 'error' returns.
65491         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
65492         (xmalloc, xrealloc): Use them.
65493         (xcalloc): Check for address arithmetic overflow.
65494         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
65495         a bit faster than strcpy.
65496
65497 2003-10-10  Simon Josefsson  <jas@extundo.com>
65498
65499         * modules/argp (Depends-on): Add restrict and strcase.
65500
65501 2003-10-10  Simon Josefsson  <jas@extundo.com>
65502
65503         * m4/argp.m4: Add AC_C_INLINE.
65504
65505 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65506
65507         Merge getpass from libc, plus a few fixes.
65508
65509         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
65510         Include <stdbool.h>.
65511         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
65512         __fsetlocking to empty.
65513         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
65514         do include <bits/libc-lock.h>.
65515         Do not include <fcntl.h>; not needed.
65516         [_LIBC]: Include <wchar.h>.
65517         (NOTCANCEL_MODE): New macro.
65518         (flockfile, funlockfile) [_LIBC]: New macros.
65519         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
65520         [!_LIBC]: New macros.
65521         (call_fclose): New function.
65522         (getpass): Use it.  Save tty stream separately; this simplifies the
65523         code and makes it more reliable if stdin happens to equal stdout.
65524         Invoke __fsetlocking on tty.
65525         Handle thread cancellation if needed.
65526         Namespace cleanup (use __tcgetattr, __getline).
65527         Use bool for Booleans.
65528         [USE_IN_LIBIO]: Handle wide streams.
65529         [!_LIBC]: Unconditionally do the fseek, since we don't know what
65530         stream might go where.
65531
65532         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
65533         doesn't have to include <stdio.h> before us.
65534         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
65535         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
65536         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
65537         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
65538         if not declared, so that we can use getpass.c code from libc without
65539         rewriting it.
65540         (flockfile, ftrylockfile, funlockfile): New macros.
65541
65542 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65543
65544         * modules/getpass: Depend on stdbool.
65545
65546 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65547
65548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
65549
65550 2003-10-07  Karl Berry  <karl@gnu.org>
65551
65552         * config/config.{guess,sub}: update from config.
65553
65554 2003-10-06  Jim Meyering  <jim@meyering.net>
65555             Bruno Haible  <bruno@clisp.org>
65556
65557         This lets translators provide better translations for the
65558         "Written by ..." part of --version output.
65559         * lib/version-etc.h: Include stdarg.h.
65560         (version_etc_copyright): Declare as readonly.
65561         (version_etc): Make this function variadic with a NULL-terminated list
65562         of author name strings.
65563         (version_etc_va): New declaration.
65564         * lib/version-etc.c: Include stdarg.h, stdlib.h.
65565         (version_etc_copyright): Declare as readonly.
65566         (version_etc_va): New function. Provide a different translatable string
65567         for each possible number of authors < 10. Abbreviate when there are 10
65568         authors or more.
65569         (version_etc): Make this function variadic. Call version_etc_va.
65570         Suggestion from Gary V. Vaughan.
65571
65572         * lib/long-options.h (parse_long_options): Change prototype: the
65573         authors string is moved to the end and becomes variadic.
65574         * lib/long-options.c: Include stdarg.h.
65575         (parse_long_options): Make this function variadic, too.
65576         Call version_etc_va, not version_etc.
65577
65578 2003-10-06  Bruno Haible  <bruno@clisp.org>
65579
65580         * modules/version-etc-2: Remove file.
65581         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
65582
65583 2003-10-06  Bruno Haible  <bruno@clisp.org>
65584
65585         * modules/fatal-signal: New file.
65586         * MODULES.html.sh (func_all_modules): Add fatal-signal.
65587
65588 2003-10-06  Bruno Haible  <bruno@clisp.org>
65589
65590         * m4/fatal-signal.m4: New file.
65591         * m4/signalblocking.m4: New file, from GNU gettext.
65592
65593 2003-10-06  Bruno Haible  <bruno@clisp.org>
65594
65595         * lib/version-etc-2.h: Remove file.
65596         * lib/version-etc-2.c: Remove file.
65597
65598 2003-10-06  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/fatal-signal.h: New file, from GNU gettext.
65601         * lib/fatal-signal.c: New file, from GNU gettext.
65602
65603 2003-10-05  Paul Eggert  <eggert@twinsun.com>
65604
65605         * README: Rework advice for preventing empty .o files.
65606         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
65607         not <sys/types.h>.
65608
65609 2003-10-04  Karl Berry  <karl@gnu.org>
65610
65611         * lib/argp*: update from libc.
65612
65613 2003-10-04  Karl Berry  <karl@gnu.org>
65614
65615         * config/config.{guess,sub}: update from config.
65616
65617 2003-10-02  Bruno Haible  <bruno@clisp.org>
65618
65619         * modules/lchown (Include): Add lchown.h.
65620         * modules/time_r (Include): Use "..." syntax.
65621         * modules/xgetdomainname (Include): Add xgetdomainname.h.
65622
65623 2003-10-01  Simon Josefsson  <jas@extundo.com>
65624
65625         * MODULES.html.sh (func_all_modules): Move gethostname from section
65626         'based on' to section 'lacking' POSIX:2001.
65627
65628 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
65629
65630         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
65631         to output mode on the same stream.
65632
65633 2003-09-29  Paul Eggert  <eggert@twinsun.com>
65634
65635         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
65636         Fix arg typo in previous patch.
65637
65638 2003-09-28  Jim Meyering  <jim@meyering.net>
65639
65640         * lib/error.c: Correct cpp indentation.
65641
65642 2003-09-27  Paul Eggert  <eggert@twinsun.com>
65643
65644         * modules/free: New file.
65645
65646 2003-09-27  Paul Eggert  <eggert@twinsun.com>
65647
65648         * m4/free.m4: New file.
65649
65650 2003-09-27  Paul Eggert  <eggert@twinsun.com>
65651
65652         * lib/minmax.h (MIN, MAX)
65653         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
65654         Omit the special code that used __typeof__, since we worry that
65655         it could be more trouble than it's worth.  See:
65656         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
65657         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
65658
65659         * lib/free.c: New file.
65660
65661 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
65662
65663         Trivial fixes to Makefile.am parts of module listings.
65664         * modules/strstr: Append strstr.h to lib_SOURCES.
65665         * modules/strcase: Likewise, for strcase.h.
65666
65667 2003-09-27  Karl Berry  <karl@gnu.org>
65668
65669         * config/mkinstalldirs: update from automake.
65670
65671 2003-09-26  Paul Eggert  <eggert@twinsun.com>
65672
65673         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
65674         (error_tail): Do not loop, reallocating temporary buffer, since
65675         the output cannot contain more wide characters than the input
65676         contains bytes, the size must be big enough already.  This avoids
65677         one potential size overflow calculation.  Check for size overflow
65678         when calculating temporary buffer size.  Free temporary buffer
65679         when done, if it was allocated with malloc; this plugs a memory
65680         leak.  Remove casts from void * to pointers, that are no longer
65681         needed now that we're assuming C89 or better.
65682
65683         Merge error changes from glibc.
65684
65685         * lib/error.c, error.h: Update copyright notice header to match glibc.
65686         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
65687         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
65688         Disable cancellation while printing error.
65689         * lib/error.h: Prepend __ to parameter names.
65690
65691 2003-09-26  Jim Meyering  <jim@meyering.net>
65692
65693         * lib/error.c (error_tail): Move some declarations
65694         into inner scope where the local variables are used.
65695
65696 2003-09-26  Bruno Haible  <bruno@clisp.org>
65697
65698         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
65699         stpncpy().
65700         Don't define stpncpy through config.h; it's now done through stpncpy.h.
65701
65702 2003-09-26  Bruno Haible  <bruno@clisp.org>
65703
65704         * lib/stpncpy.h (gnu_stpncpy): New declaration.
65705         (stpncpy): Define as alias for gnu_stpncpy.
65706         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
65707
65708 2003-09-25  Simon Josefsson  <jas@extundo.com>
65709
65710         * lib/xgetdomainname.h: New file.
65711         * lib/xgetdomainname.c: New file.
65712
65713 2003-09-25  Simon Josefsson  <jas@extundo.com>
65714             Bruno Haible  <bruno@clisp.org>
65715
65716         * modules/getdomainname: New file.
65717         * modules/xgetdomainname: New file.
65718         * MODULES.html.sh (func_all_modules): Add getdomainname,
65719         xgetdomainname.
65720
65721 2003-09-25  Simon Josefsson  <jas@extundo.com>
65722             Bruno Haible  <bruno@clisp.org>
65723
65724         * m4/getdomainname.m4: New file.
65725
65726 2003-09-25  Simon Josefsson  <jas@extundo.com>
65727             Bruno Haible  <bruno@clisp.org>
65728
65729         * lib/getdomainname.h: New file.
65730         * lib/getdomainname.c: New file.
65731
65732 2003-09-25  Karl Berry  <karl@gnu.org>
65733
65734         * lib/argp-fmtstream.c, argp-help.c: update from libc.
65735
65736 2003-09-25  Karl Berry  <karl@gnu.org>
65737
65738         * config/install-sh: update from automake.
65739
65740 2003-09-25  Bruno Haible  <bruno@clisp.org>
65741
65742         * modules/version-etc-2: New file, from modules/version-etc with
65743         modifications.
65744         * MODULES.html.sh (func_all_modules): Add version-etc-2.
65745
65746 2003-09-25  Bruno Haible  <bruno@clisp.org>
65747
65748         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
65749         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
65750
65751 2003-09-24  Simon Josefsson  <jas@extundo.com>
65752
65753         * modules/xgethostname: Add xgethostname.h.
65754
65755 2003-09-24  Paul Eggert  <eggert@twinsun.com>
65756
65757         * lib/linebuffer.c (freebuffer): Don't free the argument, just
65758         the buffer associated with the argument.  Bug reported by
65759         Simon Josefsson.
65760
65761 2003-09-24  Paul Eggert  <eggert@twinsun.com>
65762
65763         * README: Document assumptions that 'int' is at least 32 bits
65764         wide, that integer arithmetic is 2's complement without overflow,
65765         that there are no holes in integer values, that adding sizes of
65766         two nonoverlapping objects can't overflow, and that all-bits-zero
65767         yields scalar zero.  Fix spelling and capitalization typos.
65768
65769 2003-09-19  Karl Berry  <karl@gnu.org>
65770
65771         * lib/argp.h: update from libc.
65772
65773 2003-09-17  Paul Eggert  <eggert@twinsun.com>
65774
65775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
65776         to avoid spurious warnings like "AC_RUN_IFELSE was called before
65777         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
65778
65779 2003-09-17  Paul Eggert  <eggert@twinsun.com>
65780
65781         * gnulib-tool: Use "test -h", not "test -L", for portability
65782         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
65783         (tags_regexp): Remove, since \| doesn't conform to POSIX.
65784         (sed_extract_prog): Issue s commands one-by-one, rather than
65785         using \| in one s command.
65786
65787 2003-09-16  Paul Eggert  <eggert@twinsun.com>
65788
65789         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
65790         input error, instead of returning NULL the next time we are called
65791         (and therefore losing track of errno).
65792
65793 2003-09-16  Bruno Haible  <bruno@clisp.org>
65794
65795         * gnulib-tool (func_create_testdir): Warn about duplicated
65796         dependencies.
65797
65798 2003-09-15  Paul Eggert  <eggert@twinsun.com>
65799
65800         * modules/argmatch, modules/fatal, modules/obstack,
65801         modules/xalloc, modules/xgethostname: Sort dependencies by
65802         importance, not alphabetically.
65803
65804 2003-09-15  Paul Eggert  <eggert@twinsun.com>
65805
65806         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
65807         fails, so that the caller gets the proper errno.
65808
65809         * lib/readutmp.c (read_utmp): Likewise.
65810         Check for fstat error.  Close stream and free storage
65811         when failing.
65812
65813 2003-09-14  Karl Berry  <karl@gnu.org>
65814
65815         * config/srclist.txt (strdup.c): disable for c89 changes.
65816
65817 2003-09-14  Jim Meyering  <jim@meyering.net>
65818
65819         * lib/getloadavg.c: Correct cpp indentation.
65820         * lib/strdup.c: Likewise.
65821         * lib/vasnprintf.c: Likewise.
65822
65823 2003-09-14  Bruno Haible  <bruno@clisp.org>
65824
65825         * modules/fwriteerror: New file.
65826         * MODULES.html.sh (func_all_modules): Add fwriteerror.
65827
65828 2003-09-14  Bruno Haible  <bruno@clisp.org>
65829
65830         * lib/fwriteerror.h: New file.
65831         * lib/fwriteerror.c: New file.
65832
65833 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65834
65835         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
65836         modules/xgethostname, modules/xalloc: Depend on exit.
65837
65838 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65839
65840         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
65841
65842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
65843         and AC_MINIX, too, so that their extensions are available.
65844
65845         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
65846         This macro has been superseded by gl_BACKUPFILE.
65847
65848         More patches to assume C89 or better.
65849
65850         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
65851
65852         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
65853         unconditionally.
65854         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
65855         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
65856         Include <string.h>, <stdlib.h> unconditionally.
65857         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
65858         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
65859         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
65860         headers or for string.h.
65861         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
65862         or strtoul.
65863
65864         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
65865         headers.
65866         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
65867         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65868         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
65869         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
65870         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65871         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
65872         memcpy, memset.
65873         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
65874         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
65875         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
65876         strtol.
65877         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
65878         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
65879         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
65880         strtoul.
65881
65882 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65883
65884         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
65885         * lib/obstack.c [!defined _LIBC]: Likewise.
65886         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
65887         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
65888         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
65889
65890         More changes to assume C89 or better.
65891
65892         * lib/error.c (error_tail): Assume vprintf.
65893
65894         * lib/argmatch.c (getenv): Remove decl.
65895         * lib/progreloc.c (get_full_program_name): Define via prototype.
65896         * lib/setenv.c (clearenv): Likewise.
65897         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
65898         needed.
65899         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
65900         (malloc, memcpy): Remove decls.
65901         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
65902         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
65903         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65904         (memcpy): Remove macro.
65905         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
65906         (__P): Remove.  All uses removed.
65907         (PTR): Remove.  All uses changed to void *.
65908         (CHAR_BIT, NULL): Remove.
65909         (spaces, zeros, memset_space, memset_zero)
65910         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
65911         Remove.
65912         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
65913         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
65914         Define with prototype.
65915         Remove now-unnecessary prototype decl.
65916         (extra_args_spec): Assume ANSI C.  All uses changed.
65917         (extra_args_spec_iso): Remove.
65918         (my_strftime, emacs_strftimeu): Define via prototype.
65919         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
65920         unconditionally.
65921         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
65922         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
65923         (strtoul, strtol): Remove decls.
65924         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
65925         LONG_MAX): Remove.
65926         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65927         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
65928         (LOCALE_PARAM_PROTO): New macro.
65929         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
65930         (INTERNAL (strtol), strtol): Define with a prototype.
65931         (PARAMS): Remove.  All uses removed.
65932         * lib/tempname.c: Include <string.h> unconditionally.
65933         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
65934         * lib/xgethostname.c (main): Define with a prototype.
65935         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
65936         Include <stdlib.h> unconditionally.
65937         (calloc, malloc, realloc, free): Remove decls.
65938         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
65939         Include <stdlib.h> unconditionally.  Sort include file names.
65940         (strtod): Remove.
65941         (xstrtod): Define with a prototype.
65942         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
65943         (strtol, strtoul): Remove decls.
65944
65945 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65946
65947         More patches to assume C89 or better.
65948         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
65949         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
65950         string.h, memchr, STDC_HEADERS.
65951
65952 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65953
65954         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
65955         Include <stdlib.h>, <string.h> unconditionally.
65956         Remove now-unnecessary cast to char *.
65957         * lib/strnlen.c: Include <string.h> unconditionally.
65958         * lib/yesno.c (yesno): Define with a prototype.
65959
65960 2003-09-11  Bruno Haible  <bruno@clisp.org>
65961
65962         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
65963
65964 2003-09-10  Jim Meyering  <jim@meyering.net>
65965
65966         * lib/error.c: Correct indentation of cpp directives.
65967
65968 2003-09-10  Bruno Haible  <bruno@clisp.org>
65969
65970         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
65971         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
65972         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
65973         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
65974         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
65975         <stdlib.h> and <string.h> checks.
65976         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
65977         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
65978
65979 2003-09-10  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/strcspn.c: Include <string.h> unconditionally.
65982         * lib/strpbrk.c: Include <string.h> unconditionally.
65983         * lib/strstr.c: Include <string.h> unconditionally.
65984         * lib/unicodeio.c: Include <string.h> unconditionally.
65985         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
65986         * lib/unsetenv.c: Likewise.
65987         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
65988         * lib/yesno.c: Include <stdlib.h> unconditionally.
65989         (rpmatch): Add prototype.
65990
65991 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65992
65993         More patches to assume C89 or better.
65994         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
65995         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
65996         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
65997         or for string.h.
65998         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
65999         stdlib.h.
66000         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66001         C headers.
66002         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66003         string.h.
66004         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66005         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66006         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66007         or for string.h.
66008         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66009         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66010         C headers.
66011         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66012         memcpy.
66013         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66014         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66015         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66016         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66017         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66018         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66019         string.h, free.
66020         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66021         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66022         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66023         C headers, or for string.h.
66024         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66025         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66026         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66027         headers, memory.h, stdlib.h, string.h, strings.h.
66028         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66029         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66030         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66031         strchr.
66032         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66033         headers, memory.h, string.h.
66034         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66035         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66036         free.
66037         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66038         headers.
66039         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66040         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66041         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66042         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66043         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66044
66045 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66046
66047         More K&R removal.
66048
66049         * lib/acosl.c (main): Use a prototype.
66050         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
66051         tanl.c: Likewise.
66052
66053         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
66054
66055         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
66056         (getopt, etopt_long, getopt_long_only, _getopt_internal)
66057         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
66058         with a prototype.
66059         * lib/getopt.c (const): Remove macro.
66060         Include <string.h> unconditionally.
66061         (my_index): Remove; all uses changed to strchr.
66062         (strlen): Remove decl.
66063         (exchange): Remove forward decl; no longer needed.
66064         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
66065         Define with prototype.
66066         * lib/getopt1.c (const): Remove macro.
66067         (getopt_long, getopt_long_only, main): Define with prototype.
66068
66069         * lib/getugroups.c: Include <string.h> unconditionally.
66070
66071         * lib/getusershell.c: Include <stdlib.h> unconditionally.
66072         (getusershell, setusershell, endusershell, readname, main):
66073         Define with prototypes.
66074
66075         * lib/group-member.c: Include group-member.h first.
66076         Include <stdlib.h> unconditionally.
66077
66078         * lib/hard-locale.c: Include hard-locale.h first.
66079         Include <stdlib.h>, <string.h> unconditionally.
66080
66081         * lib/hash.c (free, malloc): Remove decls.
66082         Include <stdlib.h> unconditionally.
66083
66084         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
66085         (getenv): Do not declare.
66086
66087         * lib/idcache.c: Include <string.h> unconditionally.
66088
66089         * lib/long-options.c: Include long-options.h first, to test interface.
66090         Include <stdlib.h> unconditionally.
66091
66092         * lib/makepath.c: Include makepath.h first, to test interface.
66093         Include <stdlib.h> and <string.h> unconditionally.
66094
66095         * lib/linebuffer.c: Include <stdlib.h>.
66096         (free): Remove decl.
66097
66098         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
66099         stddef.h. rpl_malloc returns void *, not char *.
66100         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
66101         prototype.
66102
66103         * lib/md5.h: Include <limits.h> unconditionally.
66104         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
66105         (__P): Remove; all uses removed.
66106         * lib/md5.c: Include "md5.h" first.
66107         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
66108         md5_buffer, md5_process_bytes, md5_process_block):
66109         Define with prototypes.
66110         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
66111         * lib/sha.c: Include "sha.h" first.
66112         Include <stdlib.h>, <string.h> unconditionally.
66113
66114         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
66115         * lib/memcmp.c (__ptr_t): Likewise.
66116         * lib/memrchr.c (__ptr_t): Likewise.
66117         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
66118         Include <string.h> unconditionally.
66119         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
66120         * lib/memchr.c: Include <stdlib.h> unconditionally.
66121         * lib/memchr.c (LONG_MAX): Remove.
66122         * lib/memrchr.c (LONG_MAX): Likewise.
66123         * lib/memchr.c (__memchr): Define via a prototype.
66124         * lib/memrchr.c (__memrchr): Likewise.
66125         * lib/memcmp.c (__P): Remove, and remove all uses.
66126         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
66127         Remove forward decls; no longer needed.
66128         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
66129         Use types required by C89 in prototype.
66130
66131         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
66132         * lib/savedir.c: Likewise.
66133         * lib/mkdir.c (free): Remove decl.
66134         * lib/rmdir.c (rmdir): Define with a prototype.
66135         * lib/savedir.c: Include savedir.h first, to test interface.
66136
66137         * lib/mktime.c (STDC_HEADERS): Remove.
66138         Include <stdlib.h>, <string.h> unconditionally.
66139
66140         * lib/modechange.c: Include <stdlib.h> unconditionally.
66141         (malloc): Remove decl.
66142
66143         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
66144         (free): Remove decl.
66145
66146         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
66147         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
66148         (This type really should be intptr_t, but that's a C99ism.)
66149         (_obstack_memcpy): Remove: all uses changed to memcpy.
66150         Include <string.h> unconditionally.
66151         (struct obstack): Assume __STDC__ for types of members
66152         chunkfun, freefun, extra_arg.
66153         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
66154         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
66155         obstack_begin, obstack_specify_allocation,
66156         obstack_specify_allocation_with_arg, obstack_chunkfun,
66157         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
66158         Remove unprototyped decls and the macros that use them.
66159         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
66160         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
66161         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
66162         (defined __STDC__ && __STDC__)]:
66163         Remove nonprototyped code.
66164         Include <stdlib.h> unconditionally.
66165         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
66166         _obstack_allocated_p, _obstack_free, obstack_free,
66167         _obstack_memory_used, print_and_abort):
66168         Define using prototypes.
66169         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
66170         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
66171         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
66172         obstack_next_free, obstack_object_size, obstack_room) [0]:
66173         Remove unused, unprototyped code.
66174
66175         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
66176
66177         * lib/physmem.c (physmem_total, physmem_available, main): Define
66178         with prototypes.
66179
66180         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
66181         (main): Define with a prototype.
66182
66183         * lib/posixver.c (getenv): Remove decl.
66184
66185         * lib/putenv.c (malloc): Returns void *, not char *.
66186         Include <string.h> unconditionally.
66187         (strchr, memcpy, NULL): Do not define.
66188
66189         * lib/readtokens.c: Include readtokens.h first, to test interface.
66190         Include <stdlib.h>, <string.h> unconditionally.
66191         (init_tokenbuffer): Define with a prototype.
66192
66193         * lib/regex.c (PARAMS): Remove.  All uses removed.
66194         All uses of _RE_ARGS removed, too.
66195         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66196         unconditionally.
66197         (bzero): Assume memset exists.
66198         (memcmp, memcpy, NULL): Remove.
66199         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
66200         char, or assignments to local vars of type signed char.
66201         (init_syntax_once, PREFIX(extract_number_and_incr),
66202         PREFIX(print_partial_compiled_pattern),
66203         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
66204         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
66205         PREFIX(regex_grow_registers), PREFIX(regex_compile),
66206         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
66207         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
66208         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
66209         wcs_compile_range, byte_compile_range, truncate_wchar,
66210         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
66211         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
66212         count_mbs_length, wcs_re_match_2_internal,
66213         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
66214         PREFIX(alt_match_null_string_p),
66215         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
66216         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
66217         regfree, PREFIX(extract_number)): Define with prototype.  Remove
66218         now-unnecessary declaration, if any.
66219         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
66220         regcomp, regexec):
66221         Remove now-unnecessary casts among pointer types.
66222         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
66223
66224         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
66225         (free): Remove decl.
66226
66227         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
66228
66229         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
66230         (free): Remove decl.
66231
66232         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
66233         * lib/xgetcwd.c: Likewise.
66234
66235         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
66236         (free): Remove decl.
66237
66238         * lib/strchrnul.c (strchrnul): Define with a prototype.
66239         Fix bug: c_in was not converted to char before searching.
66240
66241         The following changes are not K&R related:
66242
66243         * lib/group-member.h: Include <sys/types.h>, so that this file is
66244         self-contained.
66245         * lib/makepath.h: Likewise.
66246
66247         * lib/getusershell.c (readname, default_index, line_size, readname):
66248         Use size_t, not int, for sizes.
66249         (readname): If the size overflows, report an error instead of
66250         looping forever.
66251
66252 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66253
66254         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
66255         libc.
66256
66257 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66258
66259         * README: New section: portability guidelines.
66260
66261 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66262
66263         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
66264         C89 spec.
66265
66266 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66267
66268         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
66269
66270 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66271
66272         Assume C89 or better; remove K&R cruft.
66273         A few of these changes were first proposed by Derek Robert Price
66274         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
66275
66276         * lib/addext.c: Include <string.h> unconditionally.
66277         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
66278         Don't declare getenv or malloc.
66279
66280         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
66281         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
66282         (NULL): Remove.
66283         (find_stack_direction, alloca): Use prototypes.
66284
66285         * lib/atexit.c (atexit): Define using a prototype.
66286
66287         * lib/basename.c, dirname.c, stripslash.c:
66288         Include <string.h> unconditionally.
66289
66290         * lib/bcopy.c: Include <stddef.h>.
66291         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
66292
66293         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
66294
66295         * lib/error.h (error, error_at_line, error_print_progname)
66296         [! (defined (__STDC__) && __STDC__)]: Remove decls.
66297         * lib/error.c: Include error.h first, to check interface.
66298         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66299         (VA_START): Remove; all uses changeed to va_start.
66300         (exit, strerror): Remove decls.
66301         (error_print_progname): Prototype uncondionally.
66302         Don't include <errno.h>; no longer needed.
66303         (private_strerror): Remove.
66304         (error_tail): Always define.
66305         (error, error_at_line): Assume C89 or better; always use prototypes.
66306         * lib/fatal.c: Include "fatal.h" first, to test interface.
66307         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66308         (VA_START): Remove; all uses changed to va_start.
66309         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
66310         this case.
66311         (exit): Remove decl.
66312         (fatal): Prototype unconditionally.  Assume va_start works.
66313         Abort at end, to pacify gcc.
66314
66315         * lib/euidaccess.c (main): Define with a prototype.
66316
66317         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
66318
66319         * lib/exitfail.c: Include <stdlib.h> unconditionally.
66320
66321         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
66322         prototypes.
66323         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
66324         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
66325         (getenv): Remove decl.
66326         (fnmatch): Define using a prototype.
66327         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
66328         (FCT): Define using a prototype.
66329
66330         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
66331
66332         * lib/gethostname.c: Include <stddef.h>.
66333         (gethostname): Define with prototype.  Length is size_t, not int.
66334
66335 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66336
66337         Assume C89 or better; remove K&R cruft.
66338         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
66339         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
66340         string.h, getenv, malloc.
66341         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
66342         headers.
66343         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
66344         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
66345         do not check for strerror.
66346         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
66347         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
66348         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
66349         do not check for doprnt or vprintf.
66350         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
66351         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
66352
66353 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66354
66355         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
66356         getversion.c should have been removed then, but was accidentally
66357         preserved.
66358
66359         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
66360         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
66361
66362 2003-09-08  Karl Berry  <karl@gnu.org>
66363
66364         * config/config.sub, config.guess, srclistvars.sh: update from savannah
66365                 config, forget about prep.
66366
66367         * config/depcomp, missing: update from automake.
66368
66369 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66370
66371         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
66372         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66373
66374 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66375
66376         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
66377         copy_tm_result.  Bug reported by Simon Josefsson in
66378         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66379
66380 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66381
66382         * m4/time_r.m4: New file.
66383         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
66384         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
66385         is. Check for timegm declaration.
66386         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
66387         Do not check for gmtime_r.
66388         Replace mktime if __mktime_internal does not exist and if mktime
66389         hasn't been replaced already.
66390
66391 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66392
66393         * lib/time_r.c, lib/time_r.h: New files.
66394
66395         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
66396         __localtime_r.
66397         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
66398         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
66399
66400         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
66401         __gmtime_r.
66402         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
66403         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
66404         Include <time_r.h>.
66405
66406         * lib/timegm.c: Switch to glibc implementation, with the following
66407         changes:
66408         [defined HAVE_CONFIG_H]: Include <config.h>.
66409         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
66410         (__mktime_internal) [!defined _LIBC]: New decl.
66411         (__gmtime_r) [!defined _LIBC]: New macro and function.
66412         (timegm): Use a prototype, since gnulib assumes C89.
66413         Do not bother declaring tmp to be const, as it's not really usefu.
66414         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
66415         (timegm): Declare only if HAVE_DECL_TIMEGM.
66416
66417 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66418
66419         * MODULES.html.sh (func_all_modules): Add time_r.
66420         * modules/time_r: New file.
66421         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
66422         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
66423
66424 2003-09-03  Paul Eggert  <eggert@twinsun.com>
66425
66426         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
66427         Bug reported by Lute Kamstra in
66428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
66429
66430         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
66431         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
66432         course with correspondingly smaller numbers for tomorrow and
66433         yesterday.  From Tadayoshi Funaba.  Originally installed into
66434         sh-utils on 1999-08-07, but the patch got lost (I guess during the
66435         coreutils merge?).
66436
66437 2003-08-31  Simon Josefsson  <jas@extundo.com>
66438
66439         * modules/timegm: New file.
66440         * MODULES.html.sh (func_all_modules): Add timegm.
66441
66442 2003-08-31  Simon Josefsson  <jas@extundo.com>
66443
66444         * m4/timegm.m4: New file.
66445
66446 2003-08-31  Simon Josefsson  <jas@extundo.com>
66447
66448         * lib/timegm.h: New file.
66449         * lib/timegm.c: New file.  Based on
66450         wget-1.8.2/src/http.c:mktime_from_utc.
66451
66452 2003-08-31  Karl Berry  <karl@gnu.org>
66453
66454         * lib/argp.h: update from libc.
66455
66456 2003-08-28  Bruno Haible  <bruno@clisp.org>
66457
66458         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
66459         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
66460         followed by '#define fnmatch fnmatch_posix' gives an error.
66461
66462 2003-08-28  Bruno Haible  <bruno@clisp.org>
66463
66464         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
66465         warning on QNX, which defines O_BINARY to 000000.
66466
66467 2003-08-27  Jim Meyering  <jim@meyering.net>
66468
66469         * m4/mkstemp.m4: Require that the system mkstemp be able to create
66470         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
66471         would fail after 32.  Reported by Danny Levinson.  Details here:
66472         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
66473
66474 2003-08-24  Bruno Haible  <bruno@clisp.org>
66475
66476         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
66477         MSVC7 <stdio.h> is included later.
66478
66479 2003-08-22  Simon Josefsson  <jas@extundo.com>
66480
66481         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
66482
66483 2003-08-20  Karl Berry  <karl@gnu.org>
66484
66485         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
66486
66487 2003-08-20  Bruno Haible  <bruno@clisp.org>
66488
66489         * modules/progname: New file.
66490         * MODULES.html.sh (func_all_modules): Add progname.
66491
66492 2003-08-20  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/progname.h: New file, from GNU gettext.
66495         * lib/progname.c: New file, from GNU gettext.
66496         * lib/progreloc.c: New file, from GNU gettext.
66497
66498 2003-08-19  Jim Meyering  <jim@meyering.net>
66499
66500         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
66501         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
66502
66503 2003-08-19  Bruno Haible  <bruno@clisp.org>
66504
66505         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
66506         more.
66507
66508 2003-08-19  Bruno Haible  <bruno@clisp.org>
66509
66510         * lib/xstrdup.c: Assume <string.h> exists.
66511
66512 2003-08-18  Paul Eggert  <eggert@twinsun.com>
66513
66514         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
66515         in makefile rules.
66516
66517 2003-08-18  Jim Meyering  <jim@meyering.net>
66518
66519         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
66520         * m4/lib-ld.m4: Likewise.
66521
66522 2003-08-18  Jim Meyering  <jim@meyering.net>
66523
66524         * lib/setenv.h: Indent nested cpp directive.
66525         * lib/vasnprintf.c: Remove trailing blanks.
66526
66527 2003-08-17  Simon Josefsson  <jas@extundo.com>
66528
66529         * modules/xstrndup: New file.
66530         * MODULES.html.sh (func_all_modules): Add xstrndup.
66531
66532 2003-08-17  Simon Josefsson  <jas@extundo.com>
66533
66534         * modules/argp: Fix autoconf macro name. Add more dependencies.
66535
66536 2003-08-17  Simon Josefsson  <jas@extundo.com>
66537
66538         * m4/xstrndup.m4: New file.
66539
66540 2003-08-17  Simon Josefsson  <jas@extundo.com>
66541
66542         * m4/argp.m4: New file.
66543
66544 2003-08-17  Simon Josefsson  <jas@extundo.com>
66545             Bruno Haible  <bruno@clisp.org>
66546
66547         * lib/xstrndup.h: New file.
66548         * lib/xstrndup.c: New file.
66549
66550 2003-08-17  Bruno Haible  <bruno@clisp.org>
66551
66552         * modules/strndup (Files, Include): Add lib/strndup.h.
66553
66554 2003-08-17  Bruno Haible  <bruno@clisp.org>
66555
66556         * modules/euidaccess (Files): Add lib/euidaccess.h.
66557
66558 2003-08-17  Bruno Haible  <bruno@clisp.org>
66559
66560         * lib/strndup.h: New file.
66561
66562 2003-08-17  Bruno Haible  <bruno@clisp.org>
66563
66564         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
66565         like AC_GNU_SOURCE.
66566         * modules/extensions (configure.ac): Comment out the invocation of
66567         gl_USE_SYSTEM_EXTENSIONS.
66568
66569 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66570
66571         Merges from coreutils, etc.
66572         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
66573         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
66574         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
66575         fixing a typo.
66576         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
66577         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
66578
66579 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66580
66581         Document merge from coreutils.
66582         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
66583         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
66584         * modules/utime: Add m4/utimes-null.m4.
66585
66586 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66587
66588         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
66589         space, undoing this 2003-08-12 change:
66590         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
66591
66592 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66593
66594         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
66595         strtoul.c from libc, undoing this 2003-08-12 change:
66596         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
66597
66598 2003-08-16  Jim Meyering  <jim@meyering.net>
66599
66600         Merges from coreutils.
66601         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
66602         prefix.  Adjust cache variables similarly.  Create 500 rather than
66603         just 300 files, to exercise bug on Darwin6.5, too.
66604         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
66605         $missing_dir.
66606         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
66607         AM_SYS_POSIX_TERMIOS.
66608         Reported by mkc@mathdogs.com.
66609         Also change use of $am_cv_sys_posix_termios
66610         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
66611         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
66612         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
66613         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
66614         in /proc/mounts until it finds one with matching device number.  This
66615         is unnecessary when the FILE argument *is* a mount point.  No stat call
66616         is necessary in that case.  So, disable the statvfs-testing code on
66617         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
66618         as RedHat bug# 84846.
66619         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
66620         to 1MB, so as not to render systems with no stack size limit (e.g.,
66621         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
66622         Include <unistd.h>.  On some systems,
66623         it is required for the definition of _SC_PAGESIZE.
66624
66625 2003-08-16  Jim Meyering  <jim@meyering.net>
66626
66627         Merge from coreutils.
66628         * lib/xstrtoimax.c: #else #if -> #elif.
66629         * lib/xstrtoumax.c: Likewise.
66630
66631 2003-08-16  Jim Meyering  <jim@meyering.net>
66632
66633         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
66634         * m4/utimes.m4: Removed.
66635         * m4/utimes-null.m4: Renamed from utimes.m4.
66636
66637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
66638         to 1MB, so as not to render systems with no stack size limit (e.g.,
66639         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
66640         Include <unistd.h>.  On some systems,
66641         it is required for the definition of _SC_PAGESIZE.
66642
66643 2003-08-16  Jim Meyering  <jim@meyering.net>
66644         and Paul Eggert  <eggert@cs.ucla.edu>
66645
66646         Merges from coreutils, etc.
66647
66648         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
66649         using the latest version from cvs.  This avoids problems with #line
66650         directives using a vendor (Sun) compiler.
66651         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
66652         Don't set GETGROUPS_LIB here; now it's
66653         done via getgroups.m4's wrapper function.
66654         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
66655         rather than just in sh-util/configure.in, so that the
66656         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
66657         same.
66658         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
66659         AC_FUNC_GETLOADAVG where to find getloadavg.c.
66660         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
66661         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
66662         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
66663         Remove code that is now done by the newly-required macros.
66664         Append $(EXEEXT) to DF_PROG.
66665         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
66666         Do not invoke or require the following here,
66667         since prereq.m4 or some gnulib .m4 now does this for us:
66668         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
66669         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
66670         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
66671         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
66672         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
66673         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
66674         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
66675         AC_FUNC_OBSTACK.
66676         Do not replace the following functions, as this is now the job
66677         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
66678         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
66679         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
66680         atexit getpass, strdup, getpagesize.
66681         Replace 'raise'.
66682         Do not check for the following functions, as this is now the job
66683         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
66684         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
66685         setregid.
66686         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
66687         Check for sys/sysctl.h.
66688         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
66689         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
66690         of checking for ssize_t ourselves.
66691
66692         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
66693         Require every macro that gnulib/modules/* suggests for us.
66694         (jm_PREREQ_ADDEXT): New macro.
66695         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
66696         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
66697
66698         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
66699         (gl_PHYSMEM): Use it.
66700         Also check for `table' function.
66701         Check for new headers and functions.
66702         Add check for sys/sysmp.h.
66703         With suggestions from Kaveh Ghazi.
66704         Ignore headers that are present but cannot be compiled.  This
66705         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
66706         C 5.4.
66707
66708 2003-08-15  Paul Eggert  <eggert@twinsun.com>
66709
66710         Document merge from coreutils.
66711         * modules/userspec: Depend on posixver.
66712         * modules/strftime: Depend on tzset.
66713
66714 2003-08-15  Paul Eggert  <eggert@twinsun.com>
66715
66716         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
66717         rather than tab, after '#' in shell-script copyright notices.
66718         Suggested by Bruno Haible.
66719
66720 2003-08-15  Paul Eggert  <eggert@twinsun.com>
66721
66722         * config/srclist-update: Use three spaces, rather than tab, after '#'
66723         in shell-script copyright notices.  Suggested by Bruno Haible.
66724         Remove unnecessary parenthesization in regular expression.
66725
66726 2003-08-15  Jim Meyering  <jim@meyering.net>
66727
66728         Merge from coreutils.
66729         * lib/xgethostname.c: Include <stdlib.h>.
66730         (xghostname): Don't exit for anything other than memory-related
66731         failure; just return NULL.
66732         * lib/userspec.c: Include "posixver.h".
66733         (parse_user_spec): Accept `.' as a separator only
66734         in pre-POSIX-200112 mode.
66735         * lib/strtoimax.c: Use #elif rather than #else #if.
66736         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
66737         Remove function, now that we can rely on a working tzset function.
66738         [!_LIBC]: Ensure that the required autoconf test has been run.
66739         [!defined _NL_CURRENT && HAVE_STRFTIME]:
66740         Use underlying_strftime for %r.
66741         * lib/sha.c: Merge in some clean-up and optimization changes from
66742         glibc.
66743         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
66744         Ensure that it is a multiple of 64.
66745         Rearrange loop exit tests so as to avoid performing an
66746         additional fread after encountering an error or EOF.
66747         * lib/realloc.c: Update copyright date.
66748
66749 2003-08-15  Jim Meyering  <jim@meyering.net>
66750         and Paul Eggert  <eggert@twinsun.com>
66751
66752         Merge from coreutils.
66753         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
66754         member but strut utmpx does not.  Needed for AIX 4.3.3.
66755         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
66756
66757 2003-08-15  Jim Meyering  <jim@meyering.net>
66758         and Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         Merges from coreutils, etc.
66761         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
66762         Require gl_FUNC_TZSET_CLOBBER.
66763         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
66764         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
66765         members.
66766
66767 2003-08-14  Paul Eggert  <eggert@twinsun.com>
66768
66769         Help the merge from coreutils.
66770         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
66771         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
66772         * m4/tzset.m4: Use it too.
66773
66774 2003-08-14  Paul Eggert  <eggert@twinsun.com>
66775
66776         * modules/tzset: New file.
66777
66778 2003-08-14  Jim Meyering  <jim@meyering.net>
66779
66780         Merges from coreutils.
66781         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
66782         variable names, rather than @FNMATCH_H@.
66783         * modules/alloca: Likewise for $(ALLOCA_H).
66784
66785         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
66786         the three copies of the literal target, `fnmatch.h'.
66787         * modules/alloca (alloca.h): Likewise.
66788
66789 2003-08-14  Jim Meyering  <jim@meyering.net>
66790
66791         Merge from coreutils.
66792         * m4/tzset.m4: New file.
66793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
66794         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
66795         otherwise, AIX 5.1 systems would end up using the latter.
66796         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
66797         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
66798         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
66799         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
66800
66801 2003-08-14  Jim Meyering  <jim@meyering.net>
66802
66803         Merge from coreutils.
66804         * lib/obstack.h: Whitespace changes.
66805         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
66806         and xcalloc return values.
66807         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
66808         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
66809         hang on OSF/1 5.1 for DIR on both local and remote file systems.
66810         Reported by (and fix confirmed by) Nelson H. F. Beebe.
66811         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66812         error from mntctl.
66813         Use mntctl's return value to drive the entry-processing loop, since
66814         we can't rely on the value of the vmt_length member in the last
66815         entry.  On some systems doing so could result in exhausting
66816         virtual memory.  Based in part on a patch from Mike Jetzer.
66817
66818 2003-08-14  Jim Meyering  <jim@meyering.net>
66819         and Paul Eggert  <eggert@twinsun.com>
66820
66821         Merges from coreutils, plus other fixes.
66822         * lib/physmem.c: Merge in portability changes from gcc/libiberty
66823         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
66824         for credits and details.  Thanks to Kaveh Ghazi for helping
66825         to keep these files in sync.
66826         (ARRAY_SIZE): Define it.
66827         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
66828         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
66829         (memcasecmp): Don't assume size_t fits in unsigned int.
66830         Remove casts and duplicate code.
66831         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
66832         (memcpy): Remove definition.
66833         Merge in some clean-up and optimization changes from glibc.
66834         [BLOCKSIZE]: Move definition to top of file.
66835         Ensure that it is a multiple of 64.
66836         Rearrange loop exit tests so as to avoid performing an
66837         additional fread after encountering an error or EOF.
66838         * lib/md5.h (md5_uintptr): Define.
66839         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
66840         return to the initial working directory.  Preserve errno
66841         for caller.
66842         * lib/idcache.c: Include "xalloc.h".
66843         (xmalloc, xrealloc): Remove decls.
66844         (getuser): Remove casts no longer required in C89.
66845         * lib/human.c: Include stdio.h, for sprintf.
66846         * lib/group-member.c: Include "xalloc.h".
66847         (xmalloc, xrealloc): Remove decls.
66848         (get_group_info): Remove casts no longer required in C89.
66849         * lib/getusershell.c (readname): Remove casts no longer required in
66850         C89.
66851         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
66852         * lib/getline.c: Whitespace fix, from coreutils.
66853
66854 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66855
66856         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
66857         Check for isascii.
66858
66859         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
66860         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
66861         Undo previous (whitespace-only) change.
66862
66863 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66864
66865         * lib/exclude.c: Include <ctype.h>
66866         (IN_CTYPE_DOMAIN): New macro.
66867         (is_space): New fn.
66868         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
66869         and empty lines.
66870
66871         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
66872         Undo previous (whitespace-only) change.
66873
66874 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66875
66876         * config/srclist-update: Change update back to the old behavior,
66877         leaving whitespace alone.  Use one 'sed' command rather than a
66878         pipeline.
66879         (fixlicense): Now a variable, not a function.
66880         (remove_trailing_blanks): Remove.
66881         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
66882         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
66883         Undo previous (whitespace-only) change.
66884
66885 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66886
66887         Merge from coreutils.
66888         * modules/euidaccess: Add lib_SOURCES, include for new
66889         file euidaccess.h
66890
66891 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66892
66893         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
66894         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
66895         Normalize leading white space and remove trailing white space.
66896
66897         Merge from coreutils
66898         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
66899
66900         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
66901         0.12.1.  These files are now being upgraded automatically by
66902         ../config/srclist-update.
66903
66904 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66905
66906         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
66907         Normalize leading white space and remove trailing white space.
66908         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
66909         notice, as per ../config/srclist-update.
66910
66911         Merge from coreutils.
66912         * lib/euidaccess.h: New file.
66913         * lib/euidaccess.c: Include it.
66914         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
66915         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
66916         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
66917
66918 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66919
66920         * config/srclist-update: Add copyright notice.
66921         (remove_id_lines, remove_trailing_blanks): New constants.
66922         (fixfile): Use them to normalize spacing a bit in copied files.
66923         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
66924         Normalize leading white space and remove trailing white space.
66925
66926         * config/texinfo.tex: Sync with texinfo.
66927
66928         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
66929         strtoul.c from libc, to merge coreutils whitespace changes.
66930
66931         * config/srclist.txt: Get the following m4 files from gettext:
66932         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
66933         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
66934         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
66935         wint_t.m4.
66936
66937 2003-08-12  Karl Berry  <karl@gnu.org>
66938
66939         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
66940         been made.
66941
66942 2003-08-11  Paul Eggert  <eggert@twinsun.com>
66943
66944         * modules/gnu-source, m4/gnu-source.m4:
66945         Remove; we're assuming Autoconf 2.54 or later now.
66946         Suggested by Bruno Haible.
66947         * MODULES.html.sh (func_all_modules): Remove gnu-source.
66948
66949 2003-08-11  Bruno Haible  <bruno@clisp.org>
66950
66951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
66952
66953 2003-08-11  Bruno Haible  <bruno@clisp.org>
66954
66955         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
66956         (vasnprintf): Use it instead of wcslen.
66957
66958 2003-08-11  Bruno Haible  <bruno@clisp.org>
66959
66960         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
66961         value to ensure that _Bool promotes to int. Use #define for _Bool when
66962         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
66963
66964 2003-08-10  Karl Berry  <karl@gnu.org>
66965
66966         * lib/regex.h: update from libc (whitespace fix).
66967
66968 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66969
66970         Merge some files from coreutils.  These changes were
66971         originally made by Jim Meyering.
66972         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
66973         many older Unixes require this.
66974         * lib/alloca.c (alloca): Remove cast to argument of free;
66975         no longer needed in C89.
66976         * lib/alloca_.h, regex.h: Fix white space to match
66977         what GNU indent does.
66978
66979 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66980
66981         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
66982         apparently Emacs's Unicode mode got confused before my 2003-08-05
66983         checkin.
66984
66985 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66986
66987         * m4/extensions.m4: New file.
66988         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
66989         Require gl_USE_SYSTEM_EXTENSIONS.
66990         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
66991         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
66992
66993 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66994
66995         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
66996         * modules/extensions, modules/gnu-source: New files.
66997         * modules/timespec, modules/unlocked-io: Depend on extensions.
66998
66999 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67000
67001         * modules/restrict: New file.
67002         * MODULES.html.sh (func_all_modules): Add restrict.
67003         * modules/regex: Depend on restrict.
67004
67005 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67006
67007         * m4/restrict.m4: New file.
67008         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67009
67010 2003-08-07  Bruno Haible  <bruno@clisp.org>
67011
67012         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67013         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67014
67015 2003-08-07  Bruno Haible  <bruno@clisp.org>
67016
67017         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67018         makes the module 'getndelim2' compatible with the module 'getline'.
67019
67020 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67021
67022         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67023         byte with "\201" to avoid glitches when editing that source file
67024         with multi-gnome-terminal.
67025
67026 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67027
67028         * lib/bumpalloc.h: Remove.
67029
67030 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67031
67032         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67033         * modules/bumpalloc: Remove.
67034
67035 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67036
67037         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67038         GNU coding style.
67039
67040         Merge from coreutils.
67041         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67042         1. From glibc.
67043         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67044         from Karl Berry, implemented by Jim Meyering.
67045         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
67046         from Dmitry V. Levin.
67047         Remove anachronistic cast of xrealloc.
67048         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
67049         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
67050         type. Otherwise, it wouldn't compile with at least /bin/cc on
67051         ymp-cray-unicos9.0.2.X.
67052         Combine two mostly-identical uses of alloca into one.
67053         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
67054
67055 2003-08-04  Dave Love  <d.love@dl.ac.uk>
67056
67057         [From Emacs.]
67058
67059         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
67060         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
67061         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
67062         obsolete NLIST_NAME_UNION.
67063         [__GNU__]: Undef BSD and FSCALE.
67064         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
67065
67066 2003-08-03  Paul Eggert  <eggert@twinsun.com>
67067
67068         * lib/stdbool_.h (_Bool): Make it signed char, instead of
67069         an enum type, so that it's guaranteed to promote to int.  See:
67070         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
67071
67072 2003-08-03  Karl Berry  <karl@gnu.org>
67073
67074         * config/depcomp: update from automake.
67075
67076 2003-07-31  Paul Eggert  <eggert@twinsun.com>
67077
67078         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
67079         (strerror): Don't assume that a printable int fits in 14 bytes.
67080
67081 2003-07-31  Bruno Haible  <bruno@clisp.org>
67082
67083         * modules/getpass-gnu: New file.
67084         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
67085
67086 2003-07-31  Bruno Haible  <bruno@clisp.org>
67087
67088         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
67089
67090 2003-07-24  Karl Berry  <karl@gnu.org>
67091
67092         * config/missing: update from automake.
67093
67094 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
67095             Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
67098         * lib/getline.c (getline, getdelim): Likewise.
67099         Remove _GNU_SOURCE define; now it's defined in config.h through
67100         m4/getline.m4.
67101
67102 2003-07-23  Karl Berry  <karl@gnu.org>
67103
67104         * config/config.sub: update from prep.
67105
67106 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67107
67108         * modules/xalloc (Depends-on): Add exitfail.
67109         * modules/xmemcoll: Likewise.
67110
67111 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67112
67113         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
67114         over-parenthesization in macros.
67115
67116         Sync with coreutils.
67117
67118         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
67119         required by C99.
67120
67121         Use `exit_failure' for xalloc and xmemcoll instead of their own
67122         private exit-failure variables.
67123         * lib/xalloc.h (xalloc_exit_failure): Remove.
67124         * lib/xmalloc.c: Likewise.  Include exitfail.h.
67125         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
67126         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
67127         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
67128         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
67129
67130 2003-07-20  Jim Meyering  <jim@meyering.net>
67131
67132         * modules/closeout (Depends-on): Add exitfail.
67133         Suggestion from Bruno Haible.
67134
67135 2003-07-19  Karl Berry  <karl@gnu.org>
67136
67137         * config/config.sub: update from prep.
67138
67139 2003-07-18  Paul Eggert  <eggert@twinsun.com>
67140
67141         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
67142         Remove.
67143         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
67144         to test that it can stand by itself.  Include "exitfail.h".
67145         Clients should set exit_failure instead.
67146         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
67147
67148 2003-07-18  Bruno Haible  <bruno@clisp.org>
67149
67150         * modules/getndelim2: New file.
67151         * modules/getline: Share files with module getndelim2.
67152         * modules/getnline: Depend on getndelim2 instead of sharing files with
67153         it. Add getnline.c to lib_SOURCES.
67154         * MODULES.html.sh (func_all_modules): Add getndelim2.
67155
67156 2003-07-18  Bruno Haible  <bruno@clisp.org>
67157
67158         * m4/getndelim2.m4: New file.
67159         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
67160         invoke gl_PREREQ_GETNDELIM2.
67161         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
67162         gl_PREREQ_GETNDELIM2.
67163         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
67164         gl_GETNDELIM2.
67165
67166 2003-07-18  Bruno Haible  <bruno@clisp.org>
67167
67168         * lib/getndelim2.h: New file.
67169         * lib/getndelim2.c: Make into a module of its own. Include config.h,
67170         getndelim2.h.
67171         (getndelim2): Make non-static. Change return type to ssize_t.
67172         * lib/getline.h: Change argument names.
67173         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
67174         * lib/getnline.c: Include getndelim2.h.
67175
67176 2003-07-18  Andreas Schwab  <schwab@suse.de>
67177
67178         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
67179
67180 2003-07-17  Karl Berry  <karl@gnu.org>
67181
67182         * config/config.sub: update from prep.
67183
67184 2003-07-17  Bruno Haible  <bruno@clisp.org>
67185
67186         * modules/getnline: New file.
67187         * modules/getline: Add lib/getndelim2.c to source file list.
67188         * MODULES.html.sh (func_all_modules): Add getnline.
67189
67190 2003-07-17  Bruno Haible  <bruno@clisp.org>
67191
67192         * m4/getnline.m4: New file.
67193
67194 2003-07-17  Bruno Haible  <bruno@clisp.org>
67195
67196         * m4/Makefile.am.in: Remove file.
67197         * m4/Makefile.am: Remove file.
67198         * m4/Makefile.in: Remove file.
67199
67200 2003-07-17  Bruno Haible  <bruno@clisp.org>
67201
67202         * lib/getnline.h: New file.
67203         * lib/getnline.c: New file.
67204         * lib/getndelim2.c: New file, extracted from getline.c.
67205         (getndelim2): Renamed from getdelim2, with added nmax argument.
67206         * lib/getline.c: Include getndelim2.c.
67207         (getdelim2): Moved out to getndelim2.c.
67208         (getline, getdelim): Update.
67209
67210 2003-07-17  Bruno Haible  <bruno@clisp.org>
67211
67212         * lib/Makefile.am: Remove file.
67213         * lib/Makefile.in: Remove file.
67214
67215 2003-07-17  Bruno Haible  <bruno@clisp.org>
67216
67217         * configure.in: Remove file.
67218         * Makefile.in: Remove file.
67219
67220 2003-07-17  Bruno Haible  <bruno@clisp.org>
67221
67222         * MODULES.html.sh: Put the </BODY> right before </HTML>.
67223
67224 2003-07-16  Karl Berry  <karl@gnu.org>
67225
67226         * config/srclist-update: was running fixlicense twice, which caused
67227                 texinfo.tex to be nullified for some reason.  Simplify,
67228                 $gplsrc is no longer needed as far as I can see?
67229
67230 2003-07-16  Jim Meyering  <jim@meyering.net>
67231
67232         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
67233
67234 2003-07-15  Paul Eggert  <eggert@twinsun.com>
67235
67236         * config/srclist.txt: Get the following files from gettext-runtime/intl
67237         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
67238         ref-del.sin.  From Bruno Haible.
67239         * config/srclist-update (fixfile): Change grep pattern again, since the
67240         previous fix didn't work (there was another trailing $).  Use
67241         '[$]' to escape the $s.
67242
67243 2003-07-15  Karl Berry  <karl@gnu.org>
67244
67245         * lib/vasnprintf.c: update from gettext.
67246
67247 2003-07-15  Karl Berry  <karl@gnu.org>
67248
67249         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
67250         gets expanded when surrounded by '$'.
67251
67252 2003-07-15  Jim Meyering  <jim@meyering.net>
67253
67254         * modules/save-cwd: Don't depend on error.  From Derek Price.
67255
67256 2003-07-15  Jim Meyering  <jim@meyering.net>
67257
67258         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
67259
67260 2003-07-14  Simon Josefsson  <jas@extundo.com>
67261
67262         * modules/mempcpy: New file.
67263         * MODULES.html.sh (func_all_modules): Add mempcpy.
67264
67265 2003-07-14  Simon Josefsson  <jas@extundo.com>
67266
67267         * m4/mempcpy.m4: New file.
67268
67269 2003-07-14  Simon Josefsson  <jas@extundo.com>
67270
67271         * lib/mempcpy.h: New file.
67272         * lib/mempcpy.c: New file.
67273
67274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67275
67276         * modules/getdate, modules/posixtm: Depend on mktime.
67277
67278 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67279
67280         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
67281         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
67282         unicodeio.c, unicodeio.h, unlocked-io.h:
67283         Switch from LGPL to GPL.
67284
67285 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67286
67287         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
67288         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
67289         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
67290         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
67291         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
67292         updated automatically by ../config/srclist-update.  This changes
67293         their license from LPGL to GPL.
67294
67295 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67296
67297         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
67298         assumed to refer to the root of the most recent stable gettext version.
67299         * config/srclistvars.sh: Add defaults for eggert.
67300         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
67301         Match "This program" as well as "The program".  This is needed
67302         for gettext.
67303
67304 2003-07-14  Jim Meyering  <jim@meyering.net>
67305
67306         Don't emit diagnostics.  Let callers do that.
67307         * lib/save-cwd.c: Don't include "error.h".
67308         (save_cwd): Don't call error.  Ensure that errno is valid
67309         when returning nonzero.
67310
67311         * lib/save-cwd.h (restore_cwd): Update prototype.
67312         * lib/save-cwd.c (restore_cwd): Remove two parameters.
67313         Simplify.  Don't call error upon failure.  Let callers do that.
67314         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
67315         when auditing is enabled.  But don't bother updating the #if.
67316
67317 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
67318
67319         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
67320         it breaks C++ compilation.
67321         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
67322
67323 2003-07-10  Simon Josefsson  <jas@extundo.com>
67324
67325         * modules/strchrnul (Makefile.am): Add strchrnul.h.
67326
67327 2003-07-10  Jim Meyering  <jim@meyering.net>
67328
67329         * m4/clock_time.m4: Remove trailing blank.
67330         * m4/intmax_t.m4: Likewise.
67331
67332 2003-07-10  Jim Meyering  <jim@meyering.net>
67333
67334         * lib/vasnprintf.c: Remove trailing blanks.
67335         Make cpp indentation consistent.
67336
67337 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67338
67339         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
67340         posixver.c, strftime.c, strnlen.c, strverscmp.c:
67341         Switch from LGPL to GPL.
67342
67343 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67344
67345         * config/srclist.txt: Sort sublists.  Add
67346         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
67347         that differ from gnulib for one reason or another; we'd like this list
67348         to be smaller but for now let's document what we have.
67349
67350 2003-07-08  Paul Eggert  <eggert@twinsun.com>
67351
67352         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
67353         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
67354         and sweeter "eval x=$x".
67355         * config/srclist.txt: Get lib/argp* from glibc.
67356
67357 2003-07-07  Paul Eggert  <eggert@twinsun.com>
67358
67359         * lib/mktime.c: Fix some boundary cases and remove need for floating
67360         point.
67361
67362         Issue a compile-time diagnostic if time_t is floating point, or if
67363         two's complement arithmetic is not in effect, or if arithmetic
67364         right shift does not propagate the sign.  These assumptions were
67365         all in the original code but they weren't checked.
67366
67367         (TIME_T_MIDPOINT, verify): New macros.
67368         (__isleap): Remove; it has integer overflow problems.
67369         (leapyear): New function, without those problems.
67370         (ydhms_tm_diff): Remove; splitting into two parts.
67371         (ydhms_diff): New function, containing the arithmetic part of
67372         the old ydhms_tm_diff function.  Issue a compile-time
67373         diagnostic if we are not using C99 integer division.
67374         Avoid casts when possible.
67375         (guess_time_tm): New function, containing the checking part of
67376         the old ydhms_tm_diff function.  Return the new value, rather than
67377         the difference between it and the old.  Accept a new argument T
67378         so that *T specifies the old value.  Check for overflow in the result.
67379
67380         (__mktime_internal): Use a time_t offset, not a long int offset.
67381         This undoes the 2003-06-04 change, which is no longer needed now
67382         that we have better overflow checking.
67383         (localtime_offset): Likewise.
67384
67385         (__mktime_internal): Avoid harmful overflow on hosts where time_t
67386         and long are 64-bit but int is only 32-bit.
67387         (ydhms_diff): Use long int to store year1 and yday1.
67388         Issue a compile-time diagnostic if long int is not wide enough.
67389
67390         (__mktime_internal): Use long int to store adjusted year and yday.
67391         Use plain C rather than preprocessor commands, if that doesn't
67392         affect efficiency.
67393         Check for overflow (and try to repair) after each probe
67394         rather than checking only at the very end.  This avoids some bugs
67395         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
67396         does not equal GMT offset at maximum time).
67397         Use integer to check for overflow rather than floating point; this
67398         is more portable to non-IEEE hosts, and is a tad faster.
67399         When we detect that we are oscillating between two values,
67400         don't check whether tm_isdst has the requested value, since
67401         we already know the answer.  When tm_isdst has the wrong value,
67402         use a different heuristic to find the right one, based on the
67403         extreme values actually observed in practice in tz2003a,
67404         rather than the (overly optimistic) "previous 3 calendar quarters".
67405
67406         (not_equal_tm, print_tm, check_result): Use "const T" rather than
67407         "T const" to accommodate glibc style.
67408         (check_result): Use less-confusing report format.  "long" -> "long int.
67409         (main): Likewise.
67410         Don't loop if the iteration overflows time_t.
67411         Allow a negative step in the iteration.
67412
67413 2003-07-06  Karl Berry  <karl@gnu.org>
67414
67415         * config/depcomp: update from automake.
67416         * config/config.sub: update from prep.
67417
67418 2003-07-03  Karl Berry  <karl@gnu.org>
67419
67420         * config/config.guess: update from prep.
67421
67422 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67423
67424         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
67425         xreadlink.c now includes it unconditionally.
67426
67427 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67428
67429         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
67430         having it depend on HAVE_SYS_TYPES_H.
67431
67432 2003-07-01  Bruno Haible  <bruno@clisp.org>
67433
67434         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
67435         <sys/types.h> should be sufficient.
67436         Reported by Paul Eggert.
67437
67438 2003-06-26  Karl Berry  <karl@gnu.org>
67439
67440         * config/depcomp: update from automake.
67441
67442 2003-06-26  Bruno Haible  <bruno@clisp.org>
67443
67444         * modules/human: Depend on module stdbool.
67445
67446 2003-06-25  Bruno Haible  <bruno@clisp.org>
67447
67448         * modules/readlink: New file.
67449         * modules/xreadlink: Depend on it.
67450         * MODULES.html.sh (func_all_modules): Add readlink.
67451
67452 2003-06-25  Bruno Haible  <bruno@clisp.org>
67453
67454         * m4/readlink.m4: New file.
67455
67456 2003-06-25  Bruno Haible  <bruno@clisp.org>
67457
67458         * lib/readlink.c: New file.
67459
67460 2003-06-22  Karl Berry  <karl@gnu.org>
67461
67462         * config/srclist.txt: update mkinstalldirs from automake.
67463         * config/mkinstalldirs: update.
67464
67465 2003-06-22  Bruno Haible  <bruno@clisp.org>
67466
67467         Portability to mingw32.
67468         * m4/ssize_t.m4: New file, from GNU gettext.
67469         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
67470         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
67471
67472 2003-06-22  Bruno Haible  <bruno@clisp.org>
67473
67474         * modules/safe-read: Add m4/ssize_t.m4.
67475         * modules/xreadlink: Add m4/ssize_t.m4.
67476
67477 2003-06-20  Bruno Haible  <bruno@clisp.org>
67478
67479         Assume C89, so PARAMS isn't needed.
67480         * lib/unicodeio.h (PARAMS): Remove.
67481         * lib/unicodeio.c: Don't use PARAMS.
67482
67483 2003-06-18  Karl Berry  <karl@gnu.org>
67484
67485         * config/config.{guess,sub}: update from prep.
67486
67487 2003-06-18  Jim Meyering  <jim@meyering.net>
67488
67489         Merge changes from coreutils.
67490         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
67491         Remove explicit declarations of xmalloc and realloc.
67492         Include xalloc.h.
67493         (read_utmp): Remove anachronistic cast of xmalloc.
67494
67495 2003-06-17  Paul Eggert  <eggert@twinsun.com>
67496
67497         Assume C89, so PARAMS isn't needed.
67498         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
67499         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
67500         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
67501         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
67502         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
67503         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
67504         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
67505         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
67506         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
67507         lib/xstrtod.h, lib/xstrtol.h: Likewise.
67508         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
67509         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
67510         no longer needed. Anyway, config.h should always be included before any
67511         other file.
67512
67513 2003-06-11  Simon Josefsson  <jas@extundo.com>
67514
67515         * modules/sysexits: New file.
67516         * MODULES.html.sh (func_all_modules): Add sysexits.
67517
67518 2003-06-11  Simon Josefsson  <jas@extundo.com>
67519
67520         * lib/sysexit_.h: New file.
67521
67522 2003-06-11  Derek Price  <derek@ximbiot.com>
67523
67524         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
67525         necessary.
67526
67527 2003-06-11  Bruno Haible  <bruno@clisp.org>
67528
67529         * m4/sysexits.m4: New file.
67530
67531 2003-06-10  Simon Josefsson  <jas@extundo.com>
67532
67533         * lib/argp.h: New file, from glibc.
67534         * lib/argp-ba.c: New file, from glibc.
67535         * lib/argp-eexst.c: New file, from glibc.
67536         * lib/argp-fmtstream.c: New file, from glibc.
67537         * lib/argp-fmtstream.h: New file, from glibc.
67538         * lib/argp-fs-xinl.c: New file, from glibc.
67539         * lib/argp-help.c: New file, from glibc.
67540         * lib/argp-namefrob.h: New file, from glibc.
67541         * lib/argp-parse.c: New file, from glibc.
67542         * lib/argp-pv.c: New file, from glibc.
67543         * lib/argp-pvh.c: New file, from glibc.
67544         * lib/argp-xinl.c: New file, from glibc.
67545
67546 2003-06-10  Simon Josefsson  <jas@extundo.com>
67547
67548         * modules/strchrnul: New file.
67549
67550 2003-06-10  Simon Josefsson  <jas@extundo.com>
67551
67552         * modules/argp: New file.
67553
67554 2003-06-10  Simon Josefsson  <jas@extundo.com>
67555
67556         * m4/strchrnul.m4: New file.
67557
67558 2003-06-10  Simon Josefsson  <jas@extundo.com>
67559
67560         * lib/strchrnul.h: New file.
67561         * lib/strchrnul.c: New file.
67562
67563 2003-06-10  Bruno Haible  <bruno@clisp.org>
67564
67565         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
67566
67567 2003-06-07  Karl Berry  <karl@gnu.org>
67568
67569         * config/config.{guess,sub}: update from prep.
67570
67571 2003-06-07  Jim Meyering  <jim@meyering.net>
67572
67573         * modules/strtod: Use $(...) notation, not @...@ for
67574         AC_REPLACE'd variables.
67575         * modules/localcharset: Likewise.
67576
67577 2003-06-07  Jim Meyering  <jim@meyering.net>
67578
67579         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
67580         in place of my name in the copyright comment.
67581         Remove definition and uses of __P.
67582
67583         From coreutils.
67584         * lib/stat.c: Don't declare xmalloc explicitly.
67585         Instead, include "xalloc.h".
67586         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
67587         xrealloc, and xcalloc return values.
67588         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
67589         Improve comment.
67590         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
67591
67592 2003-06-07  Bruno Haible  <bruno@clisp.org>
67593
67594         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
67595         avoid AC_CONFIG_LINKS.
67596         * modules/fnmatch (Makefile.am): Use explicit creation rule for
67597         fnmatch.h, to avoid AC_CONFIG_LINKS.
67598         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
67599
67600 2003-06-07  Bruno Haible  <bruno@clisp.org>
67601
67602         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
67603         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
67604         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
67605         directory.
67606         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
67607         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
67608         directory.
67609
67610 2003-06-06  Jim Meyering  <jim@meyering.net>
67611
67612         Merge from coreutils.
67613         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
67614         Consolidate declarations and initializations of *_base* locals.
67615
67616         Merge from coreutils.
67617         This avoids a core dump on systems without GNU putenv,
67618         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
67619         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
67620         (unsetenv): New static function, from GNU libc.
67621         (rpl_putenv): Use it.
67622
67623         * lib/modechange.c: Remove trailing blanks.
67624
67625         Merge from coreutils.
67626         * lib/fsusage.c: Remove declaration of statfs.
67627         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
67628
67629         * lib/posixtm.c: Include <stdbool.h> unconditionally.
67630
67631 2003-06-06  Jim Meyering  <jim@meyering.net>
67632
67633         * lib/stdbool_.h: Renamed from stdbool.h.in.
67634
67635 2003-06-06  Jim Meyering  <jim@meyering.net>
67636             Bruno Haible  <bruno@clisp.org>
67637
67638         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
67639         Adjust Makefile.am snippet not to redirect directly to target.
67640         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
67641
67642 2003-06-05  Paul Eggert  <eggert@twinsun.com>
67643
67644         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
67645         mismatch, look in future quarters as well as past.  This fixes a
67646         bug when processing fall-backwards gaps immediately after a long
67647         period of daylight-saving time.
67648
67649         * lib/mktime.c: Assume freestanding C89 or better.
67650         (HAVE_LIMITS_H): Remove.  Assume it's 1.
67651         (__P): Remove; not used.
67652         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
67653         (mktime, not_equal_tm, print_tm, check_result,
67654         main): Use prototypes.  Use const * where appropriate.
67655         (main): Fix typo in testing code that uncovered by above changes.
67656         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
67657
67658 2003-06-04  Paul Eggert  <eggert@twinsun.com>
67659
67660         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
67661         locale.h, localeconv.  This merges changes from coreutils.
67662
67663         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
67664         It can be removed after the next Autoconf is released.
67665         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
67666         needed.
67667
67668 2003-06-04  Paul Eggert  <eggert@twinsun.com>
67669
67670         * lib/mktime.c: Fix Debian bug 177940
67671         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
67672         (localtime_offset): Now long int, not time_t, because we want it
67673         to be guaranteed to be signed.  All uses changed.
67674         (__mktime_internal): If overflow would occur when adding offset,
67675         don't add it.
67676
67677         Merge 'human' changes from coreutils.  Rewrite to support
67678         locale-specific notations like thousands separators.
67679         * lib/human.c: Simplify authorship notice.
67680         Include human.h immediately after config.h.
67681         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
67682         <limits.h>: Do not include, since human.h does.
67683         (SIZE_MAX, UINTMAX_MAX): New macros.
67684         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
67685         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
67686         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
67687         (power_letter): Renamed from suffixes.
67688         (generate_suffix_backwards): Remove.
67689         (adjust_value): Now takes int style (because of human.h changes)
67690         and long double value (for greater precision on some platforms).
67691         (group_number): New function.
67692         (human_readable): Use it.  Use integer options, not enum.
67693         Put the options before the sizes in the arg list.
67694         Support all the new options.
67695         The old human_readable function has been removed;
67696         use inttostr.h instead.
67697         (human_readable, default_block_size, humblock):
67698         Use uintmax_t, not int, for block sizes.
67699         (human_readable_inexact, block_size_types): Remove.
67700         (block_size_opts): New constant.
67701         (human_options): Renamed from human_block_size, with new signature
67702         that allows block sizes up to UINTMAX_MAX.  All callers changed.
67703         * lib/human.h: Add copyright and authorship notice.
67704         Include <limits.h> and <stdbool.h> unconditionally.
67705         (PARAMS): Remove.  All uses removed.
67706         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
67707         (enum human_inexact_style): Remove tag; now a nameless enum.
67708         (human_floor, human_ceiling, human_round_to_even): Now have
67709         values 2, 0, 1 rather than -1, 1, 0.
67710         (human_group_digits, human_suppress_point_zero, human_autoscale,
67711         human_base_1024, human_SI, human_B): New constants.
67712         (human_readable_inexact, human_block_size): Remove.
67713         (human_readable): Size args are now uintmax_t, not int.
67714         (human_options): New decl.
67715
67716         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
67717         unnecessary now that we assume C89 or better.  This change
67718         imported from coreutils.
67719
67720         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
67721         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
67722         in the 2003-05-30 sync from glibc.
67723
67724         .h files should stand alone, but we shouldn't include <sys/types.h>
67725         if we can get away with just <stddef.h>.
67726
67727         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
67728         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
67729         rather than <sys/types.h>, as we merely need size_t.
67730         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
67731         to get size_t.
67732         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
67733         Include <stdio.h>, to get FILE.
67734         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
67735         memcasecmp.h has included <stddef.h> and all we need is size_t.
67736         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
67737         our interface, instead of including <sys/types.h>
67738
67739 2003-06-04  Paul Eggert  <eggert@twinsun.com>
67740
67741         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
67742         now, as glibc mktime is buggy on non-glibc systems.
67743
67744 2003-06-03  Karl Berry  <karl@gnu.org>
67745
67746         * config/config.sub: update from prep.
67747
67748 2003-06-02  Paul Eggert  <eggert@twinsun.com>
67749
67750         [from coreutils]
67751         Fix some minor time-related bugs with POSIX time arguments.
67752         Some valid time stamps were being rejected (notably -1, and
67753         time stamps before 1900 on 64-bit hosts).  And some invalid
67754         time stamps were being accepted, e.g. September 31.
67755
67756         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
67757         that we can return (time_t) -1 successfully.
67758         * lib/posixtm.c: Likewise.
67759         [HAVE_STDBOOL_H]: Include <stdbool.h>.
67760         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
67761         (t): Remove static var.
67762         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
67763         of static var.  All uses changed.
67764         (year): Do not reject years before 1900; they can occur with
67765         64-bit time_t.
67766         (posix_time_parse): Do not check for out-of-range components;
67767         that is now the caller's responsibility, since our checks were
67768         only approximations.
67769         (posixtime): Use mktime to check for out-of-range components,
67770         since it knows them exactly.
67771         If mktime returns (time_t) -1, check whether an error actually occurred
67772         by invoking localtime on -1.
67773         (main) [TEST_POSIXTIME]: Check for input data errors, and report
67774         posixtime failures better.
67775         Improve the test data (in comments only).
67776
67777 2003-06-02  Karl Berry  <karl@gnu.org>
67778
67779         * config/mkinstalldirs (version): new variable.
67780         (--version): new option.
67781         (usage): improve message.
67782
67783 2003-05-30  Karl Berry  <karl@gnu.org>
67784
67785         * lib/mktime.c: update from libc.
67786
67787 2003-05-30  Bruno Haible  <bruno@clisp.org>
67788
67789         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
67790         * config/config.rpath: Upgrade to gettext-0.12.1.
67791
67792 2003-05-30  Bruno Haible  <bruno@clisp.org>
67793
67794         * m4/gettext.m4: Upgrade to gettext-0.12.1.
67795         * m4/nls.m4: New file, from gettext-0.12.1.
67796         * m4/po.m4: New file, from gettext-0.12.1.
67797         * m4/progtest.m4: Upgrade to gettext-0.12.1.
67798
67799 2003-05-30  Bruno Haible  <bruno@clisp.org>
67800
67801         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
67802         * lib/localcharset.h: Likewise.
67803         * lib/localcharset.c: Likewise.
67804
67805 2003-05-29  Karl Berry  <karl@gnu.org>
67806
67807         * config/config.rpath: update from gettext.
67808
67809 2003-05-28  Paul Eggert  <eggert@twinsun.com>
67810
67811         Assume the headers required for C89 freestanding compilers.
67812         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
67813         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
67814         * m4/human.m4 (gl_HUMAN): Likewise.
67815         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
67816         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
67817         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67818         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
67819         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67820         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
67821
67822 2003-05-28  Paul Eggert  <eggert@twinsun.com>
67823
67824         Assume the headers required for C89 freestanding compilers.
67825         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
67826         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
67827         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
67828         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
67829         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
67830         define, since <limits.h> is guaranteed to do that.
67831         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
67832         * lib/exclude.c: Include <stdbool.h> unconditionally.
67833         * lib/tempname.c: Include <stddef.h> unconditionally.
67834         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
67835         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
67836         <stddef.h> does that.
67837         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
67838         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
67839         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
67840         needed.
67841         * lib/xstrtol.c: Likewise.
67842         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
67843         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
67844
67845         * lib/addext.c (addext): Use assignment rather than cast, to avoid
67846         warnings on some platforms.
67847
67848         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
67849         arbitrarily.
67850
67851 2003-05-26  Jim Meyering  <jim@meyering.net>
67852
67853         Merge in a change from coreutils:
67854         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
67855         that is guaranteed to be `no'.  Use `no_such_member' to indicate
67856         that condition, rather than `-1' which is slightly misleading.
67857         Change the name of the cache variable to have the gl_ prefix.
67858         Prompted by a patch from Richard Dawe for DJGPP.
67859
67860 2003-05-24  Karl Berry  <karl@gnu.org>
67861
67862         * config/config.guess: update from prep.
67863
67864 2003-05-22  Karl Berry  <karl@gnu.org>
67865
67866         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
67867
67868 2003-05-20  Karl Berry  <karl@gnu.org>
67869
67870         * config/config.guess: update from prep.
67871
67872 2003-05-18  Karl Berry  <karl@gnu.org>
67873
67874         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
67875         might actually be set by the user.
67876
67877         * config/depcomp, install-sh, mdate-sh: update from automake.
67878
67879 2003-05-17  Bruno Haible  <bruno@clisp.org>
67880
67881         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
67882         invalid expansion for AC_EGREP_CPP.
67883         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
67884         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
67885         Suggested by Akim Demaille <akim@epita.fr> in
67886         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
67887
67888 2003-05-12  Jim Meyering  <jim@meyering.net>
67889
67890         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
67891         the space-padded-by-default conversion specifiers, %e, %k, %l.
67892
67893 2003-05-12  Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
67896         the string is longer than 4 KB.
67897
67898 2003-05-11  Karl Berry  <karl@gnu.org>
67899
67900         * config/config.{guess,sub}: update from prep.
67901
67902 2003-05-09  Bruno Haible  <bruno@clisp.org>
67903
67904         * modules/error: Add m4/strerror_r.m4 to file list.
67905
67906 2003-05-03  Bruno Haible  <bruno@clisp.org>
67907
67908         Upgrade to Unicode-4.0.
67909         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
67910         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
67911         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
67912         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
67913         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
67914         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
67915         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
67916         Change width of U+E0100..U+E01EF from 1 to 0.
67917
67918 2003-04-25  Jim Meyering  <jim@meyering.net>
67919
67920         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
67921         of type size_t, not int.
67922
67923 2003-04-25  Bruno Haible  <bruno@clisp.org>
67924
67925         * lib/copy-file.c: Include <stddef.h>, for size_t.
67926
67927 2003-04-21  Paul Eggert  <eggert@twinsun.com>
67928
67929         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
67930         code which expansion is under static control.  Patch imported from
67931         Akim Demaille's patch to Bison; see
67932         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
67933
67934 2003-04-14  Bruno Haible  <bruno@clisp.org>
67935
67936         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
67937
67938 2003-04-11  Jim Meyering  <jim@meyering.net>
67939
67940         Merge changes from Coreutils.
67941
67942         2003-03-22  Jim Meyering  <jim@meyering.net>
67943
67944         * lib/strftime.c (widen): Cast alloca return value to proper type.
67945
67946         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
67947
67948         From GNU libc.
67949         * lib/strftime.c (my_strftime): Handle very large width
67950         specifications for numeric values correctly.  Improve checks for
67951         overflow.
67952
67953         2003-01-19  Jim Meyering  <jim@meyering.net>
67954
67955         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
67956         definitions.
67957         (nl_get_alt_digit) [! defined my_strftime]: Define.
67958         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
67959         _nl_get_alt_digit and _nl_get_walt_digit.
67960
67961         * lib/strftime.c (my_strftime): Merge in locale-related changes from
67962         libc. These changes have no effect outside of _LIBC.
67963
67964 2003-04-10  Bruno Haible  <bruno@clisp.org>
67965
67966         * modules/findprog: New file.
67967         * MODULES.html.sh (func_all_modules): Add it.
67968
67969 2003-04-10  Bruno Haible  <bruno@clisp.org>
67970
67971         * m4/findprog.m4: New file.
67972         * m4/eaccess.m4: New file.
67973
67974 2003-04-10  Bruno Haible  <bruno@clisp.org>
67975
67976         * lib/findprog.h: New file, from GNU gettext.
67977         * lib/findprog.c: New file, from GNU gettext.
67978
67979 2003-04-05  Jim Meyering  <jim@meyering.net>
67980
67981         Merge changes from Coreutils.
67982
67983         * lib/exclude.h (PARAMS): Remove definition and uses.
67984         * lib/exclude.c: Remove uses of `PARAMS'.
67985
67986         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
67987         Add test-cases for DOS filenames. Declare program_name.
67988         (main): Set up program_name.  Patch by Rich Dawe.
67989
67990         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67991         error from mntctl.
67992         Use mntctl's return value to drive the entry-processing loop, since
67993         we can't rely on the value of the vmt_length member in the last
67994         entry.  On some systems doing so could result in exhausting
67995         virtual memory.  Based in part on a patch from Mike Jetzer.
67996
67997 2003-04-04  Bruno Haible  <bruno@clisp.org>
67998
67999         * modules/linebreak: New file.
68000         * MODULES.html.sh (func_all_modules): Add it.
68001
68002 2003-04-04  Bruno Haible  <bruno@clisp.org>
68003
68004         * m4/linebreak.m4: New file.
68005
68006 2003-04-04  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/linebreak.h: New file, from GNU gettext.
68009         * lib/linebreak.c: New file, from GNU gettext with slight
68010         modifications.
68011         * lib/lbrkprop.h: New file, from GNU gettext.
68012
68013 2003-04-03  Bruno Haible  <bruno@clisp.org>
68014
68015         * modules/utf8-ucs4: New file.
68016         * modules/utf16-ucs4: New file.
68017         * modules/ucs4-utf8: New file.
68018         * modules/ucs4-utf16: New file.
68019         * MODULES.html.sh (func_all_modules): Add them.
68020
68021 2003-04-03  Bruno Haible  <bruno@clisp.org>
68022
68023         * m4/utf-ucs4.m4: New file.
68024         * m4/ucs4-utf.m4: New file.
68025
68026 2003-04-03  Bruno Haible  <bruno@clisp.org>
68027
68028         * lib/utf8-ucs4.h: New file, from GNU gettext.
68029         * lib/utf16-ucs4.h: New file, from GNU gettext.
68030         * lib/ucs4-utf8.h: New file, from GNU gettext.
68031         * lib/ucs4-utf16.h: New file, from GNU gettext.
68032
68033 2003-04-02  Bruno Haible  <bruno@clisp.org>
68034
68035         * modules/binary-io: New file.
68036         * MODULES.html.sh (func_all_modules): Add it.
68037
68038 2003-04-02  Bruno Haible  <bruno@clisp.org>
68039
68040         * lib/binary-io.h: New file, from GNU gettext.
68041
68042 2003-04-01  Bruno Haible  <bruno@clisp.org>
68043
68044         * modules/pathname: New file.
68045         * MODULES.html.sh (func_all_modules): Add it.
68046
68047 2003-04-01  Bruno Haible  <bruno@clisp.org>
68048
68049         * lib/pathname.h: New file, from GNU gettext.
68050         * lib/concatpath.c: New file, from GNU gettext.
68051
68052 2003-03-30  Bruno Haible  <bruno@clisp.org>
68053
68054         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
68055
68056 2003-03-30  Bruno Haible  <bruno@clisp.org>
68057
68058         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
68059         function chown() doesn't exist.
68060
68061 2003-03-28  Bruno Haible  <bruno@clisp.org>
68062
68063         * modules/copy-file: New file.
68064         * MODULES.html.sh (func_all_modules): Add it.
68065
68066 2003-03-28  Bruno Haible  <bruno@clisp.org>
68067
68068         * m4/copy-file.m4: New file.
68069
68070 2003-03-28  Bruno Haible  <bruno@clisp.org>
68071
68072         * lib/copy-file.h: New file, from GNU gettext.
68073         * lib/copy-file.c: New file, from GNU gettext.
68074
68075 2003-03-18  Jim Meyering  <jim@meyering.net>
68076
68077         * lib/quote.c (quote_n): Fix typo in comment.
68078
68079 2003-03-18  Bruno Haible  <bruno@clisp.org>
68080
68081         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
68082         checking.
68083         * m4/onceonly_2_57.m4: Likewise.
68084
68085 2003-03-17  Bruno Haible  <bruno@clisp.org>
68086
68087         * m4/onceonly.m4: Require autoconf 2.54 or newer.
68088         (m4_quote): Remove macro.
68089         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
68090
68091 2003-03-14  Jim Meyering  <jim@meyering.net>
68092
68093         Merge changes from Coreutils.
68094         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
68095         to be const, in order to avoid warnings.
68096         (obstack_room): Likewise.
68097         (obstack_empty_p): Likewise.
68098
68099 2003-03-14  Bruno Haible  <bruno@clisp.org>
68100
68101         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
68102         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
68103
68104 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68105
68106         Merge changes from Bison.
68107         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
68108         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
68109         when compiling Bison 1.875's `bitset bset = obstack_alloc
68110         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
68111         * lib/hash.c: Include <stdbool.h> unconditionally.
68112
68113 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68114
68115         * m4/onceonly.m4 (m4_quote): New macro.
68116         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
68117         Quote AC_FOREACH variable-expansions properly.
68118
68119 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68120
68121         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
68122
68123 2003-03-09  Paul Eggert  <eggert@twinsun.com>
68124
68125         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
68126         Reported by Bruce Becker; see:
68127         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
68128
68129 2003-03-03  Paul Eggert  <eggert@twinsun.com>
68130             Bruno Haible  <bruno@clisp.org>
68131
68132         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
68133         Reported by John Hughes, see
68134         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
68135
68136 2003-02-20  Bruno Haible  <bruno@clisp.org>
68137
68138         * MODULES.html.sh (func_all_modules): Add poll.
68139
68140 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68141
68142         * modules/poll: New file.
68143
68144 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68145
68146         * lib/poll_.h: New file.
68147         * lib/poll.c: New file.
68148
68149 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68150
68151         * m4/poll.m4: New file.
68152
68153 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68154
68155         * modules/mathl: New file.
68156
68157 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68158
68159         * lib/mathl.h: New file.
68160         * lib/acosl.c: New file.
68161         * lib/asinl.c: New file.
68162         * lib/atanl.c: New file.
68163         * lib/ceill.c: New file.
68164         * lib/cosl.c: New file.
68165         * lib/expl.c: New file.
68166         * lib/floorl.c: New file.
68167         * lib/frexpl.c: New file.
68168         * lib/ldexpl.c: New file.
68169         * lib/logl.c: New file.
68170         * lib/sincosl.c: New file.
68171         * lib/sinl.c: New file.
68172         * lib/sqrtl.c: New file.
68173         * lib/tanl.c: New file.
68174         * lib/trigl.c: New file.
68175         * lib/trigl.h: New file.
68176
68177 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68178
68179         * m4/mathl.m4: New file.
68180
68181 2003-02-18  Bruno Haible  <bruno@clisp.org>
68182
68183         * MODULES.html.sh (func_all_modules): Add mathl.
68184
68185 2003-02-17  Bruno Haible  <bruno@clisp.org>
68186
68187         * modules/mkdtemp: New module.
68188         * MODULES.html.sh (func_all_modules): Add it.
68189
68190 2003-02-17  Bruno Haible  <bruno@clisp.org>
68191
68192         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
68193
68194 2003-02-17  Bruno Haible  <bruno@clisp.org>
68195
68196         * lib/mkdtemp.h: New file, from GNU gettext.
68197         * lib/mkdtemp.c: New file, from GNU gettext.
68198
68199 2003-02-02  Jim Meyering  <jim@meyering.net>
68200
68201         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
68202         e.g. glibc-2.2.93.
68203
68204 2003-01-31  Bruno Haible  <bruno@clisp.org>
68205
68206         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
68207         'rpl_rename'.
68208         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
68209         'rpl_strnlen'.
68210         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
68211         'rpl_strtod'.
68212         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
68213         'rpl_utime'.
68214
68215 2003-01-31  Bruno Haible  <bruno@clisp.org>
68216
68217         * lib/rename.c: #undef rename before defining rpl_rename.
68218         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
68219
68220 2003-01-30  Bruno Haible  <bruno@clisp.org>
68221
68222         * modules/vasnprintf, modules/vasprintf: New modules.
68223         * MODULES.html.sh (func_all_modules): Add them.
68224
68225 2003-01-30  Bruno Haible  <bruno@clisp.org>
68226
68227         * m4/signed.m4: New file, from GNU gettext.
68228         * m4/longdouble.m4: New file, from GNU gettext.
68229         * m4/wchar_t.m4: New file, from GNU gettext.
68230         * m4/wint_t.m4: New file, from GNU gettext.
68231         * m4/vasnprintf.m4: New file.
68232         * m4/vasprintf.m4: New file.
68233
68234 2003-01-30  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/printf-args.h: New file, from GNU gettext.
68237         * lib/printf-args.c: New file, from GNU gettext.
68238         * lib/printf-parse.h: New file, from GNU gettext.
68239         * lib/printf-parse.c: New file, from GNU gettext.
68240         * lib/vasnprintf.h: New file, from GNU gettext.
68241         * lib/vasnprintf.c: New file, from GNU gettext.
68242         * lib/asnprintf.c: New file, from GNU gettext.
68243         * lib/vasprintf.h: New file, from GNU gettext with modifications.
68244         * lib/vasprintf.c: New file, from GNU gettext.
68245         * lib/asprintf.c: New file, from GNU gettext.
68246
68247 2003-01-29  Bruno Haible  <bruno@clisp.org>
68248
68249         * modules/stpncpy: New module.
68250         * MODULES.html.sh (func_all_modules): Add it.
68251
68252 2003-01-29  Bruno Haible  <bruno@clisp.org>
68253
68254         * m4/stpncpy.m4: New file.
68255
68256 2003-01-29  Bruno Haible  <bruno@clisp.org>
68257
68258         * lib/stpncpy.h: New file, from GNU gettext with modifications.
68259         * lib/stpncpy.c: New file, from GNU gettext with modifications.
68260
68261 2003-01-28  Bruno Haible  <bruno@clisp.org>
68262
68263         * modules/c-ctype: New module.
68264         * MODULES.html.sh (func_all_modules): Add it.
68265
68266 2003-01-28  Bruno Haible  <bruno@clisp.org>
68267
68268         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
68269         Paul Eggert.
68270         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
68271         Paul Eggert.
68272
68273 2003-01-27  Bruno Haible  <bruno@clisp.org>
68274
68275         * modules/xsetenv: New module.
68276         * MODULES.html.sh (func_all_modules): Add it.
68277
68278 2003-01-27  Bruno Haible  <bruno@clisp.org>
68279
68280         * lib/xsetenv.h: New file, from GNU gettext.
68281         * lib/xsetenv.c: New file, from GNU gettext.
68282
68283 2003-01-23  Jim Meyering  <jim@meyering.net>
68284
68285         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
68286         from working on systems without dirfd (at least Irix and OSF1/Tru64).
68287
68288 2003-01-23  Bruno Haible  <bruno@clisp.org>
68289
68290         * modules/minmax: New module.
68291         * MODULES.html.sh (func_all_modules): Add it.
68292
68293 2003-01-23  Bruno Haible  <bruno@clisp.org>
68294
68295         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
68296         Eggert.
68297
68298 2003-01-22  Bruno Haible  <bruno@clisp.org>
68299
68300         * modules/exit: New module.
68301         * MODULES.html.sh (func_all_modules): Add it.
68302
68303 2003-01-22  Bruno Haible  <bruno@clisp.org>
68304
68305         * lib/exit.h: New file, from GNU gettext.
68306
68307 2003-01-19  Bruno Haible  <bruno@clisp.org>
68308
68309         * gnulib-tool: Recognize option --extract-maintainer.
68310         (func_get_maintainer): New function.
68311         * modules/*: Add Maintainer entry.
68312
68313 2003-01-16  Jim Meyering  <jim@meyering.net>
68314
68315         * m4/regex.m4: The `regex' struct is both input and output.
68316         Initialize it before each use.  Patch by Tim Waugh.
68317
68318 2003-01-16  Bruno Haible  <bruno@clisp.org>
68319
68320         * MODULES.html.sh: Add a table of contents. Add the module name as
68321         leftmost column. Add hyperlinks.
68322
68323 2003-01-15  Bruno Haible  <bruno@clisp.org>
68324
68325         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
68326
68327 2003-01-15  Bruno Haible  <bruno@clisp.org>
68328
68329         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
68330         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
68331         suffix.
68332
68333 2003-01-15  Bruno Haible  <bruno@clisp.org>
68334
68335         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
68336
68337 2003-01-15  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
68340         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
68341
68342 2003-01-14  Jim Meyering  <jim@meyering.net>
68343
68344         * lib/same.c (same_name): Tweak a comment.
68345
68346 2003-01-14  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
68349         when a string comparison is sufficient.
68350
68351 2003-01-14  Bruno Haible  <bruno@clisp.org>
68352
68353         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
68354         'unsigned int'.
68355
68356 2003-01-14  Bruno Haible  <bruno@clisp.org>
68357
68358         * lib/hash-pjw.c: Add comment about low quality of this function.
68359
68360 2003-01-13  Bruno Haible  <bruno@clisp.org>
68361
68362         * modules/stpcpy: Distribute lib/stpcpy.h.
68363         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
68364
68365 2003-01-13  Bruno Haible  <bruno@clisp.org>
68366
68367         * modules/*: Add a description.
68368         * modules/strpbrk: Fix Makefile.am snippet.
68369         * modules/strtoimax: Fix dependencies.
68370         * modules/strtoumax: Likewise.
68371
68372 2003-01-13  Bruno Haible  <bruno@clisp.org>
68373
68374         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
68375         * modules/alloca (Makefile.am): All object files depend on alloca.h.
68376         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
68377
68378 2003-01-13  Bruno Haible  <bruno@clisp.org>
68379
68380         * gnulib-tool (func_create_testdir): Store config/* files in the main
68381         directory.
68382         * config.rpath: Move to ...
68383         * config/config.rpath: ... here.
68384         * modules/gettext: Contains config/config.rpath, not config.rpath.
68385         * modules/iconv: Likewise.
68386
68387 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68388
68389         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68390         to avoid collisions with libcurses and libreadline.
68391
68392         * m4/getstr.m4: Remove.
68393         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
68394
68395 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68396
68397         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68398         to avoid collisions with libcurses and libreadline.
68399
68400         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
68401         * lib/getstr.h, getstr.c: Remove.
68402         * lib/getline.c: Include "getline.h", to check interface.
68403         Move body of old getstr.c here: this defines MIN_CHUNK and
68404         declares getdelim2, which is renamed from getstr.
68405         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
68406
68407         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
68408         All uses changed.
68409         * lib/linebuffer.h: Likewise.
68410         (readline): Remove backward-compatibility macro.
68411
68412 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68413
68414         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68415         to avoid collisions with libcurses and libreadline.
68416         * getstr: Remove.
68417         * MODULES.html.sh: Remove getstr.
68418         * modules/getline: Depend on unlocked-io, not getstr.
68419
68420 2003-01-12  Jim Meyering  <jim@meyering.net>
68421
68422         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
68423
68424 2003-01-10  Bruno Haible  <bruno@clisp.org>
68425
68426         * modules/alloca: Change Makefile.am requirements. Simplify Include
68427         requirements. Add lib/alloca_.h to file list.
68428
68429 2003-01-10  Bruno Haible  <bruno@clisp.org>
68430
68431         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
68432
68433 2003-01-10  Bruno Haible  <bruno@clisp.org>
68434
68435         * lib/alloca_.h: New file.
68436         * lib/getdate.y: Unconditionally include alloca.h.
68437         * lib/makepath.c: Likewise.
68438         * lib/setenv.c: Likewise.
68439         * lib/userspec.c: Likewise.
68440
68441 2003-01-09  Karl Berry  <karl@gnu.org>
68442
68443         * MODULES.html.sh: include `dirname $0` in PATH, to find
68444         gnulib-tool.
68445
68446 2003-01-09  Bruno Haible  <bruno@clisp.org>
68447
68448         * modules/stdbool: Change configure.ac, Makefile.am requirements.
68449         Simplify Include requirements. Add lib/stdbool.h.in to file list.
68450
68451 2003-01-09  Bruno Haible  <bruno@clisp.org>
68452
68453         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
68454
68455 2003-01-09  Bruno Haible  <bruno@clisp.org>
68456
68457         * lib/stdbool.h.in: New file.
68458
68459 2003-01-09  Bruno Haible  <bruno@clisp.org>
68460
68461         * gnulib-tool (func_all_modules): Ignore files ending in ~.
68462         * MODULES.html.sh: Likewise.
68463
68464 2003-01-08  Jim Meyering  <jim@meyering.net>
68465
68466         * lib/full-write.c: Undefine and define-away `const' after inclusion
68467         of errno.h, not before.  Suggestion from Bruno Haible.
68468
68469 2003-01-08  Bruno Haible  <bruno@clisp.org>
68470
68471         * modules/full-read: Depend on full-write.
68472
68473 2003-01-08  Bruno Haible  <bruno@clisp.org>
68474
68475         * lib/safe-read.c: Include specification header first, to ensure its
68476         selfcontainedness.
68477         * lib/full-write.c: Likewise.
68478
68479 2003-01-07  Jim Meyering  <jim@meyering.net>
68480
68481         * lib/full-write.c: Rework so that it may serve to define full_read,
68482         too.
68483         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
68484
68485 2003-01-07  Bruno Haible  <bruno@clisp.org>
68486
68487         * lib/strtoimax.c: Include <stdint.h> as an alternative to
68488         <inttypes.h>.
68489         * lib/xstrtol.h: Likewise.
68490         * lib/xstrtoimax.c: Likewise.
68491         * lib/xstrtoumax.c: Likewise.
68492         * lib/human.h: Likewise.
68493
68494         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
68495         on systems that have <inttypes.h> but not <stdint.h>.
68496
68497 2003-01-07  Bruno Haible  <bruno@clisp.org>
68498
68499         * MODULES.html.sh: Add copyright notice.
68500         (missed_files): Omit CVS directory entries.
68501         (func_module): Make it work with sed-3.02.
68502         * MODULES.txt: Remove file.
68503
68504 2003-01-06  Jim Meyering  <jim@meyering.net>
68505
68506         * lib/version-etc.c: Update year in translatable copyright string.
68507
68508 2003-01-03  Karl Berry  <karl@gnu.org>
68509
68510         * config/config.{guess,sub}: update from prep.
68511
68512 2003-01-02  Karl Berry  <karl@gnu.org>
68513
68514         * doc/COPYING.DOC: belatedly updated to 1.2.
68515
68516 2003-01-01  Karl Berry  <karl@gnu.org>
68517
68518         * gnulib-tool (func_verify_module): report module name $module in
68519         error message, not $1.
68520         * gnulib-tool (create-testdir): don't complain if destdir couldn't
68521         be created, only if it doesn't exist.
68522         * gnulib-tool (last_checkin_date): don't expand the $Date here.
68523
68524 2002-12-31  Paul Eggert  <eggert@twinsun.com>
68525
68526         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
68527
68528 2002-12-31  Paul Eggert  <eggert@twinsun.com>
68529
68530         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
68531         memcmp if strcoll doesn't work.
68532
68533 2002-12-31  Bruno Haible  <bruno@clisp.org>
68534
68535         * lib/utime.c (utime_null): No need to call ftruncate if the file was
68536         nonempty.
68537
68538 2002-12-31  Bruno Haible  <bruno@clisp.org>
68539
68540         * lib/memcoll.c (STRCOLL): New macro.
68541         (memcoll): Use it.
68542
68543 2002-12-31  Bruno Haible  <bruno@clisp.org>
68544
68545         * lib/localcharset.h: New file.
68546         * lib/localcharset.c: Include it.
68547         * lib/unicodeio.c: Likewise.
68548
68549 2002-12-31  Bruno Haible  <bruno@clisp.org>
68550
68551         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
68552         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
68553
68554 2002-12-31  Bruno Haible  <bruno@clisp.org>
68555
68556         * lib/getline.h: Include <stddef.h>, for size_t.
68557
68558         * lib/unicodeio.h: Include <stddef.h>, for size_t.
68559         * lib/unicodeio.c: Don't include <stddef.h>.
68560
68561 2002-12-31  Bruno Haible  <bruno@clisp.org>
68562
68563         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
68564         HAVE_TM_ZONE.
68565
68566 2002-12-24  Karl Berry  <karl@gnu.org>
68567
68568         * config/config.guess: update from prep.
68569
68570 2002-12-24  Bruno Haible  <bruno@clisp.org>
68571
68572         General infrasructure.
68573         * m4/README: Rewritten.
68574         * m4/onceonly.m4: New file.
68575         * m4/onceonly_2_57.m4: New file.
68576
68577         Module atexit.
68578         * m4/atexit.m4: New file.
68579
68580         Module strtod.
68581         * m4/strtod.m4: New file.
68582
68583         Module strtol.
68584         * m4/strtol.m4: New file.
68585
68586         Module strtoul.
68587         * m4/strtoul.m4: New file.
68588
68589         Module memchr.
68590         * m4/memchr.m4: New file.
68591
68592         Module memcmp.
68593         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
68594         (jm_FUNC_MEMCMP): Invoke it.
68595
68596         Module memcpy.
68597         * m4/memcpy.m4: New file.
68598
68599         Module memmove.
68600         * m4/memmove.m4: New file.
68601
68602         Module memset.
68603         * m4/memset.m4: New file.
68604
68605         Module strcspn.
68606         * m4/strcspn.m4: New file.
68607
68608         Module strpbrk.
68609         * m4/strpbrk.m4: New file.
68610
68611         Module strstr.
68612         * m4/strstr.m4: New file.
68613
68614         Module strerror.
68615         * m4/strerror.m4: New file.
68616
68617         Module mktime.
68618         * m4/mktime.m4: Renamed from jm-mktime.m4.
68619         (gl_PREREQ_MKTIME): New macro.
68620         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
68621
68622         Module malloc.
68623         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
68624         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
68625         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
68626
68627         Module realloc.
68628         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
68629         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
68630         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
68631
68632         Module strftime.
68633         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
68634         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
68635         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
68636         gl_TM_GMTOFF.
68637         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
68638
68639         Module xalloc.
68640         * m4/xalloc.m4: New file.
68641
68642         Module alloca.
68643         * m4/alloca.m4: New file.
68644
68645         Module putenv.
68646         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
68647         (jm_FUNC_PUTENV): Invoke it.
68648
68649         Module setenv.
68650         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
68651         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
68652         when invoked twice.
68653         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
68654         gt_FUNC_SETENV.
68655
68656         Module memrchr.
68657         * m4/memrchr.m4: New file.
68658
68659         Module stpcpy.
68660         * m4/stpcpy.m4: New file.
68661
68662         Module strcase.
68663         * m4/strcase.m4: New file.
68664
68665         Module strdup.
68666         * m4/strdup.m4: New file.
68667
68668         Module strnlen.
68669         * m4/strnlen.m4: New file.
68670
68671         Module strndup.
68672         * m4/strndup.m4: New file.
68673
68674         Module xstrtod.
68675         * m4/xstrtod.m4: New file.
68676
68677         Module xstrtol.
68678         * m4/xstrtol.m4: New file.
68679
68680         Module getdate.
68681         * m4/getdate.m4: New file.
68682
68683         Module unlocked-io.
68684         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
68685         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
68686         * m4/jm-glibc-io.m4n: Remove file.
68687
68688         Module long-options.
68689         * m4/long-options.m4: New file.
68690
68691         Module md5.
68692         * m4/md5.m4: New file.
68693
68694         Module sha.
68695         * m4/sha.m4: New file.
68696
68697         Module getstr.
68698         * m4/getstr.m4: New file.
68699
68700         Module getline.
68701         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
68702         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
68703         <sys/types.h>, for size_t. Use the function name gnu_getline, not
68704         simply getline. Infoke gl_PREREQ_GETLINE.
68705
68706         Module obstack.
68707         * m4/obstack.m4: New file.
68708
68709         Module hash.
68710         * m4/hash.m4: New file.
68711
68712         Module readtokens.
68713         * m4/readtokens.m4: New file.
68714
68715         Module strverscmp.
68716         * m4/strverscmp.m4: New file.
68717
68718         Module stdbool.
68719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
68720         OSF/1.
68721
68722         Module strtoll.
68723         * m4/strtoll.m4: New file.
68724
68725         Module strtoull.
68726         * m4/strtoull.m4: New file.
68727
68728         Module strtoimax.
68729         * m4/strtoimax.m4: New file.
68730
68731         Module strtoumax.
68732         * m4/strtoumax.m4: New file.
68733
68734         Module xstrtoimax.
68735         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
68736         jm_AC_PREREQ_XSTRTOIMAX.
68737         Moved the strtol prerequisites to strtol.m4.
68738         Moved the strtoll prerequisites to strtoll.m4.
68739         Moved the strtoimax prerequisites to strtoimax.m4.
68740
68741         Module xstrtoumax.
68742         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
68743         jm_AC_PREREQ_XSTRTOUMAX.
68744         Moved the strtoul prerequisites to strtoul.m4.
68745         Moved the strtoull prerequisites to strtoull.m4.
68746         Moved the strtoumax prerequisites to strtoumax.m4.
68747
68748         Module chown.
68749         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
68750         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
68751
68752         Module dup2.
68753         * m4/dup2.m4: New file.
68754
68755         Module ftruncate.
68756         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
68757         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
68758
68759         Module getgroups.
68760         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
68761         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
68762
68763         Module gettimeofday.
68764         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
68765         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
68766         gl_PREREQ_GETTIMEOFDAY.
68767
68768         Module mkdir.
68769         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
68770         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
68771
68772         Module mkstemp.
68773         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
68774         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
68775         jm_AC_TYPE_UINTMAX_T.
68776         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
68777
68778         Module stat.
68779         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
68780         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
68781
68782         Module lstat.
68783         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
68784         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
68785
68786         Module timespec.
68787         * m4/timespec.m4 (gl_TIMESPEC): New macro.
68788         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
68789         * m4/st_mtim.m4: Indentation.
68790
68791         Module nanosleep.
68792         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
68793         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
68794         gl_PREREQ_NANOSLEEP.
68795
68796         Module regex.
68797         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
68798         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
68799         (gl_REGEX): New macro.
68800
68801         Module rename.
68802         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
68803         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
68804
68805         Module rmdir.
68806         * m4/rmdir.m4: New file.
68807
68808         Module utime.
68809         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
68810         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
68811         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
68812
68813         Module dirname.
68814         * m4/dirname.m4: New file.
68815
68816         Module getopt.
68817         * m4/getopt.m4: New file.
68818
68819         Module unistd-safer.
68820         * m4/unistd-safer.m4: New file.
68821
68822         Module fnmatch.
68823         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
68824         declaration.
68825         (gl_PREREQ_FNMATCH_EXTRA): New macro.
68826         (gl_FUNC_FNMATCH_POSIX): New macro.
68827         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
68828         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
68829         simply fnmatch.
68830
68831         Module exclude.
68832         * m4/exclude.m4: New file.
68833
68834         Module human.
68835         * m4/human.m4: New file.
68836
68837         Module acl.
68838         * m4/acl.m4: Nop.
68839
68840         Module backupfile.
68841         * m4/backupfile.m4: New file.
68842         * m4/d-ino.m4: Indentation.
68843
68844         Module fsusage.
68845         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
68846         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
68847         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
68848
68849         Module dirfd.
68850         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
68851         requirements.
68852
68853         Module euidaccess.
68854         * m4/euidaccess.m4: New file.
68855
68856         Module file-type.
68857         * m4/file-type.m4: New file.
68858
68859         Module fileblocks.
68860         * m4/fileblocks.m4: New file.
68861
68862         Module filemode.
68863         * m4/filemode.m4: New file.
68864
68865         Module isdir.
68866         * m4/isdir.m4: New file.
68867
68868         Module lchown.
68869         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
68870         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
68871
68872         Module makepath.
68873         * m4/makepath.m4: New file.
68874
68875         Module modechange.
68876         * m4/modechange.m4: New file.
68877
68878         Module mountlist.
68879         * m4/mountlist.m4: New file.
68880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
68881         Indentation.
68882
68883         Module path-concat.
68884         * m4/path-concat.m4: New file.
68885
68886         Module pathmax.
68887         * m4/pathmax.m4: New file.
68888
68889         Module same.
68890         * m4/same.m4: New file.
68891
68892         Module save-cwd.
68893         * m4/save-cwd.m4: New file.
68894
68895         Module savedir.
68896         * m4/savedir.m4: New file.
68897
68898         Module xgetcwd.
68899         * m4/xgetcwd.m4: New file.
68900         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
68901
68902         Module xreadlink.
68903         * m4/xreadlink.m4: New file.
68904
68905         Module safe-read.
68906         * m4/safe-read.m4: New file.
68907
68908         Module safe-write.
68909         * m4/safe-write.m4: New file.
68910
68911         Module closeout.
68912         * m4/closeout.m4: New file.
68913
68914         Module stdio-safer.
68915         * m4/stdio-safer.m4: New file.
68916
68917         Module getpass.
68918         * m4/getpass.m4: New file.
68919
68920         Module getugroups.
68921         * m4/getugroups.m4: New file.
68922
68923         Module group-member.
68924         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
68925         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
68926
68927         Module idcache.
68928         * m4/idcache.m4: New file.
68929
68930         Module userspec.
68931         * m4/userspec.m4: New file.
68932
68933         Module gettime.
68934         * m4/clock_time.m4: New file.
68935         * m4/gettime.m4: New file.
68936
68937         Module settime.
68938         * m4/settime.m4: New file.
68939
68940         Module posixtm.
68941         * m4/posixtm.m4: New file.
68942
68943         Module gethostname.
68944         * m4/gethostname.m4: New file.
68945
68946         Module canon-host.
68947         * m4/canon-host.m4: New file.
68948
68949         Module gettext.
68950         * m4/codeset.m4: New file, from gettext-0.11.5.
68951         * m4/gettext.m4: New file, from gettext-0.11.5.
68952         * m4/glibc21.m4: New file, from gettext-0.11.5.
68953         * m4/iconv.m4: New file, from gettext-0.11.5.
68954         * m4/intdiv0.m4: New file, from gettext-0.11.5.
68955         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
68956         * m4/inttypes.m4: New file, from gettext-0.11.5.
68957         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
68958         * m4/isc-posix.m4: New file, from gettext-0.11.5.
68959         * m4/lcmessage.m4: New file, from gettext-0.11.5.
68960         * m4/lib-ld.m4: New file, from gettext-0.11.5.
68961         * m4/lib-link.m4: New file, from gettext-0.11.5.
68962         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
68963         * m4/progtest.m4: New file, from gettext-0.11.5.
68964         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
68965         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
68966         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
68967
68968         Module localcharset.
68969         * m4/localcharset.m4: New file.
68970
68971         Module hard-locale.
68972         * m4/hard-locale.m4: New file.
68973
68974         Module mbswidth.
68975         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
68976         onceonly macros.
68977         * m4/mbrtowc.m4: Add comment.
68978
68979         Module memcasecmp.
68980         * m4/memcasecmp.m4: New file.
68981
68982         Module memcoll.
68983         * m4/memcoll.m4: New file.
68984
68985         Module unicodeio.
68986         * m4/unicodeio.m4: New file.
68987
68988         Module rpmatch.
68989         * m4/rpmatch.m4: New file.
68990
68991         Module yesno.
68992         * m4/yesno.m4: New file.
68993
68994         Module exitfail.
68995         * m4/exitfail.m4: New file.
68996
68997         Module c-stack.
68998         * m4/c-stack.m4 (gl_C_STACK): New macro.
68999         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69000
69001         Module error.
69002         * m4/error.m4 (gl_ERROR): New macro.
69003         (jm_PREREQ_ERROR): Use onceonly macros.
69004
69005         Module fatal.
69006         * m4/fatal.m4: New file.
69007
69008         Module getloadavg.
69009         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69010         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69011
69012         Module getpagesize.
69013         * m4/getpagesize.m4: New file.
69014
69015         Module getusershell.
69016         * m4/getusershell.m4: New file.
69017
69018         Module physmem.
69019         * m4/physmem.m4: New file.
69020
69021         Module posixver.
69022         * m4/posixver.m4: New file.
69023
69024         Module quotearg.
69025         * m4/quotearg.m4: New file.
69026
69027         Module quote.
69028         * m4/quote.m4: New file.
69029
69030         Module readutmp.
69031         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69032
69033         Module sig2str.
69034         * m4/sig2str.m4: New file.
69035
69036         Other.
69037         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69038         ulonglong.m4.
69039         * m4/intmax_t.m4: New file.
69040         * m4/d-type.m4: Indentation.
69041         * m4/jm-macros.m4: Update.
69042         * m4/prereq.m4 (jm_PREREQ): Update.
69043         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69044         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69045         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
69046         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
69047         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
69048         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
69049         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
69050         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
69051         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
69052         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
69053         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
69054         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
69055         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
69056         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
69057         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
69058         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
69059         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
69060         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
69061         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
69062
69063 2002-12-24  Bruno Haible  <bruno@clisp.org>
69064
69065         * MODULES.txt: Update according to m4/ changes.
69066
69067         Module gettext.
69068         * config.rpath: New file, from gettext-0.11.5.
69069
69070         * modules/*: New module descriptions.
69071         * gnulib-tool: New file.
69072         * MODULES.html.sh: New file.
69073
69074 2002-12-21  Karl Berry  <karl@gnu.org>
69075
69076         * doc/fdl.texi: update to version 1.2.
69077
69078 2002-12-19  Karl Berry  <karl@gnu.org>
69079
69080         * config/config.guess: update from prep.
69081
69082 2002-12-18  Bruno Haible  <bruno@clisp.org>
69083
69084         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
69085         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
69086
69087 2002-12-17  Bruno Haible  <bruno@clisp.org>
69088
69089         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
69090         stdlib.h, string.h.
69091
69092 2002-12-17  Bruno Haible  <bruno@clisp.org>
69093
69094         * lib/canon-host.c (strdup): Remove unused declaration.
69095
69096         * lib/fsusage.c: Include full_read.h.
69097         (get_fs_usage): Use full_read instead of safe_read.
69098
69099         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
69100
69101 2002-12-12  Karl Berry  <karl@gnu.org>
69102
69103         * config/config.guess: update from prep.
69104
69105 2002-12-11  Bruno Haible  <bruno@clisp.org>
69106
69107         * m4/setenv.m4: New file, from gettext-0.11.5.
69108
69109 2002-12-11  Bruno Haible  <bruno@clisp.org>
69110
69111         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
69112         not unsetenv().
69113         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
69114         modifications:
69115
69116         2002-12-11  Bruno Haible  <bruno@clisp.org>
69117
69118                 * setenv.c (alloca): Fall back to malloc.
69119                 (freea): New macro.
69120                 (setenv): Use freea() to free memory allocated with alloca().
69121
69122         2002-11-13  Bruno Haible  <bruno@clisp.org>
69123
69124                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
69125                 function declarations.
69126                 * unsetenv.c (unsetenv): Likewise.
69127
69128         2002-03-04  Bruno Haible  <bruno@clisp.org>
69129
69130                 Portability to AIX 4.3.3.
69131                 * unsetenv.c: New file, extracted from setenv.c.
69132                 * setenv.c: Move the unsetenv() function to unsetenv.c.
69133
69134         2001-12-20  Bruno Haible  <bruno@clisp.org>
69135
69136                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
69137                 use malloc instead. For SunOS 4.
69138
69139         2001-12-11  Bruno Haible  <bruno@clisp.org>
69140
69141                 * setenv.c: Declare alloca.
69142                 (compar_fn_t): New typedef.
69143                 (KNOWN_VALUE, STORE_VALUE): Use it.
69144
69145         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
69146         setenv.h.
69147
69148 2002-12-10  Paul Eggert  <eggert@twinsun.com>
69149
69150         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
69151         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
69152         Choose values that are less likely to collide with system fnmatch
69153         options.
69154         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
69155         defined (e.g., a pure POSIX system).
69156         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
69157         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
69158
69159 2002-12-06  Paul Eggert  <eggert@twinsun.com>
69160
69161         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
69162         a pain in practice to deal with generated m4 files.  This change
69163         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
69164
69165         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
69166         and jm-glibc-io.m4, as they are no longer a special case.
69167         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
69168         kludge and the auto-generation stuff.  Check only whether the
69169         functions are declared, not whether they exist, since older hosts
69170         that don't declare the functions can't use the optimization anyway.
69171
69172 2002-12-06  Jim Meyering  <jim@meyering.net>
69173
69174         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
69175
69176         Merge in changes from libc's misc/error.c, in preparation
69177         for the merge of gnulib's changes back into libc.
69178
69179         * lib/error.c (_): Define only if not already defined.
69180         Move definition to follow all #include directives.
69181         Include unlocked-io.h only if !_LIBC.
69182         [_LIBC]: Include <libio/libioP.h>.
69183         [USE_IN_LIBIO]: Include <libio/iolibio.h>
69184         (fflush): Tweak definition to use INTUSE.
69185         (putc): Define.
69186
69187 2002-12-05  Paul Eggert  <eggert@twinsun.com>
69188
69189         * lib/alloca.c [defined emacs]: Include "lisp.h".
69190         (xalloc_die) [defined emacs]: New macro.
69191         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
69192         [! defined emacs]: Include <xalloc.h>.
69193         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
69194         (pointer): Typedef to POINTER_TYPE *.
69195         (malloc): Remove decl; we now always use xmalloc.
69196         (alloca): Use old-style definition, since Emacs needs this.
69197         Check for arithmetic overflow when computing combined size.
69198
69199 2002-12-04  Paul Eggert  <eggert@twinsun.com>
69200
69201         Do not generate unlocked-io.h automatically, since it's easier to
69202         maintain it by hand.
69203
69204         * lib/unlocked-io.h: New file, from GNU diffutils,
69205         but with proper copyright notice and attribution.
69206         * lib/gen-uio: Remove.
69207         * lib/Makefile.am: Add copyright notice.
69208         (libfetish_a_SOURCES): Add unlocked-io.h.
69209         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
69210         (DISTCLEANFILES, io_functions): Remove macros.
69211         (EXTRA_DIST): Remove gen_uio.
69212         (unlocked-io.h): Remove rule.
69213
69214 2002-12-04  Jim Meyering  <jim@meyering.net>
69215
69216         Reflect the fact that stat.c and lstat.c are no longer generated.
69217         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
69218         (DISTCLEANFILES): Likewise.
69219         (EXTRA_DIST): Likewise.
69220         (all_local): Don't depend on stat.c or lstat.c.
69221         (stat.c, lstat.c): Remove rules.
69222         (EXTRA_DIST): Remove xstat.in.
69223
69224         * lib/xstat.in: Remove file.  Contents moved into stat.c.
69225         * lib/stat.c: New file.  Contents mostly from xstat.in.
69226         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
69227         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
69228
69229         * lib/safe-read.c: Rework so that it may serve to define safe_write,
69230         too.
69231         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
69232
69233 2002-12-03  Jim Meyering  <jim@meyering.net>
69234
69235         * lib/safe-read.c, safe-write.c: Change variable names and comments,
69236         but not semantics, to minimize the differences between these two files.
69237         (safe_read): Change comment to mention SAFE_READ_ERROR.
69238
69239         * lib/safe-read.c (IS_EINTR): Define.
69240         (safe_read): Use IS_EINTR in place of in-function cpp directives.
69241
69242 2002-12-02  Jim Meyering  <jim@meyering.net>
69243
69244         * lib/safe-read.c (EINTR): Define.
69245         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69246         (INT_MAX): Provide fallback.
69247         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
69248
69249         * lib/safe-read.h (SAFE_READ_ERROR): Define.
69250
69251 2002-12-02  Bruno Haible  <bruno@clisp.org>
69252
69253         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
69254         Define, taken from safe-read.c.
69255         (INT_MAX): Provide fallback.
69256         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
69257         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
69258
69259         * lib/safe-read.c (EINTR): Remove definition.
69260         (safe_read): Don't use EINTR if it is absent.
69261
69262 2002-12-01  Jim Meyering  <jim@meyering.net>
69263
69264         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
69265         zero.
69266         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
69267
69268 2002-11-27  Paul Eggert  <eggert@twinsun.com>
69269
69270         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
69271         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
69272         with `if (! (value < limit)) abort ();', for readability.
69273
69274 2002-11-26  Karl Berry  <karl@gnu.org>
69275
69276         * lib/strdup.c: copy from libc again, with jim's ok.
69277         * lib/.cppi-disable: re-add strdup.c
69278
69279 2002-11-25  Karl Berry  <karl@gnu.org>
69280
69281         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
69282         instead of "strtol.c".
69283
69284 2002-11-25  Karl Berry  <karl@gnu.org>
69285
69286         * config/install-sh: update from automake for variable quoting, $0 in
69287         error msgs, etc.
69288
69289         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
69290         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
69291         entry.
69292
69293 2002-11-25  Jim Meyering  <jim@meyering.net>
69294
69295         * lib/mktime.c: Sync from libc, now that it has the latest fix.
69296
69297 2002-11-24  Karl Berry  <karl@gnu.org>
69298
69299         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
69300         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
69301
69302 2002-11-24  Jim Meyering  <jim@meyering.net>
69303
69304         Update from coreutils:
69305
69306         * lib/mktime.c: Merge in changes from libc.
69307
69308         Avoid a link-time failure on some Linux systems.
69309         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
69310         (otherwise).
69311         (__mon_yday): Declare with the STATIC attribute.
69312         (__mktime_internal): Likewise.
69313         Based on a report from Greg Schafer.
69314
69315 2002-11-23  Jim Meyering  <jim@meyering.net>
69316
69317         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
69318         Use `unsigned', not `int', as type of index.
69319
69320         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
69321
69322         * lib/fsusage.c: Remove unneeded parentheses around operands of
69323         `defined'.
69324
69325 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69326
69327         * lib/quotearg.h: Allow multiple inclusion by surrounding with
69328         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
69329         so that we can be included first.
69330         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
69331         * lib/quotearg.c: Include quotearg.h immediately after config.h.
69332         No need to include stddef.h or sys/types.h any more.
69333         Surround local include files with "", not "<>".
69334         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
69335         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
69336         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
69337         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
69338         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
69339         (ISPRINT): Remove; no longer needed now that we assume C89.
69340
69341         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
69342         Preserve errno.
69343
69344         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
69345         quotearg_char): Use SIZE_MAX rather than
69346         (size_t) -1 when we are talking about "infinity".
69347
69348         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
69349
69350 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69351
69352         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
69353         hint that one should use `if (! x) abort ();' rather than `assert
69354         (x);', and anyway it's one less thing to worry about configuring.
69355         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
69356         hash_rehash, hash_insert): Use abort rather than assert.
69357
69358 2002-11-22  Bruno Haible  <bruno@clisp.org>
69359
69360         * lib/safe-read.h: Assume C89. Add comments.
69361         (safe_read): Change return type to size_t.
69362         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
69363         byte counts > SSIZE_MAX correctly.
69364         * lib/safe-write.h: New file.
69365         * lib/safe-write.c: New file.
69366         * lib/full-read.h: New file.
69367         * lib/full-read.c: New file.
69368         * lib/full-write.h: Assume C89. Add comments.
69369         * lib/full-write.c: Include safe-write.h.
69370         (full_write): Rewritten to use safe_write.
69371         Suggested by Jim Meyering and Paul Eggert.
69372
69373 2002-11-21  Jim Meyering  <jim@meyering.net>
69374
69375         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
69376
69377         Merge in changes from the coreutils.
69378
69379         2002-09-25  Paul Eggert  <eggert@twinsun.com>
69380         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
69381         <stdint.h>.
69382         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
69383         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
69384         int.  Work more efficiently if X is the same width as uintmax_t.
69385         Do not compare X to -1, to avoid bogus compiler warning.
69386         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
69387         Don't assume that f_frsize and f_bsize are the same type.
69388
69389         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
69390         warning on FreeBSD.
69391
69392         * lib/makepath.c (make_path): Restore umask *before* creating the final
69393         component.
69394         (make_path): Minor reformatting.
69395
69396         * lib/xmalloc.c: Adjust to work with new autoconf macros,
69397         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
69398         HAVE_MALLOC/HAVE_REALLOC.
69399
69400         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
69401         dummy ones.  At least on GNU/Linux systems, `auto' means something
69402         else.
69403         From Michael Stone.
69404
69405 2002-11-21  Bruno Haible  <bruno@clisp.org>
69406
69407         Remove case insensitive option matching.
69408         * lib/argmatch.h (argcasematch): Remove declaration.
69409         (ARGCASEMATCH): Remove macro.
69410         (__xargmatch_internal): Remove case_sensitive argument.
69411         (XARGMATCH): Update.
69412         (XARGCASEMATCH): Remove macro.
69413         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
69414         case_sensitive argument.
69415         (argcasematch): Remove function.
69416         (__xargmatch_internal): Remove case_sensitive argument.
69417         (main): Use XARGMATCH instead of XARGCASEMATCH.
69418
69419         * lib/xmalloc.c: Change compile-time error message. Add comment about
69420         required autoconf version.
69421
69422 2002-11-20  Paul Eggert  <eggert@twinsun.com>
69423
69424         Merge argmatch cleanups from Bison.  Assume C89.
69425
69426         * lib/argmatch.c: Include config.h here, not in argmatch.h.
69427         Include stdlib.h, for EXIT_FAILURE.
69428         Always include <string.h>, since we assume C89.
69429         (EXIT_FAILURE): Remove pre-C89 bug workaround.
69430         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
69431         Include <stddef.h> instead, since it's all we need for size_t.
69432         (PARAMS): Remove.  All uses removed.
69433         (ARRAY_CARDINALITY): Do not bother to #undef.
69434         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
69435         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69436         Remove unnecessary parentheses.
69437         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69438         Insert necessary parentheses.
69439         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
69440         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
69441
69442 2002-11-19  Bruno Haible  <bruno@clisp.org>
69443
69444         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
69445         * lib/mbswidth.h: Include <stddef.h>, for size_t.
69446
69447         * lib/mbswidth.h (PARAMS): Remove macro.
69448         (mbswidth, mbsnwidth): Use ANSI C function declarations.
69449         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
69450
69451         * lib/gcd.h (PARAMS): Remove macro.
69452         (gcd): Use ANSI C function declarations.
69453         * lib/gcd.c (gcd): Likewise.
69454
69455 2002-11-15  Bruno Haible  <bruno@clisp.org>
69456
69457         * lib/strcspn.c: Include <stddef.h>.
69458         (strcspn): Use ANSI C function declaration. Change return type to
69459         size_t. Use NULL.
69460         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
69461         (strpbrk): Use NULL.
69462         * lib/strpbrk.h (PARAMS): Remove macro.
69463         (strpbrk): Use ANSI C function declaration.
69464         * lib/strstr.c: Don't include <sys/types.h>.
69465         * lib/strstr.h (PARAMS): Remove macro.
69466         (strstr): Use ANSI C function declarations.
69467
69468 2002-11-14  Karl Berry  <karl@gnu.org>
69469
69470         * config/mkinstalldirs: `do' on separate line, instead of
69471         `for var; do'.
69472
69473 2002-11-06  Bruno Haible  <bruno@clisp.org>
69474
69475         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
69476         * lib/gcd.c (gcd): Likewise.
69477
69478 2002-11-05  Bruno Haible  <bruno@clisp.org>
69479
69480         * lib/gcd.h: New file, from gettext-0.11.5.
69481         * lib/gcd.c: New file, from gettext-0.11.5.
69482
69483 2002-11-05  Bruno Haible  <bruno@clisp.org>
69484
69485         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69486         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69487         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69488         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69489
69490         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
69491         <libintl.h>.
69492         * lib/makepath.c: Include gettext.h instead of <locale.h> and
69493         <libintl.h>.
69494
69495         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
69496         * lib/human.c: Include gettext.h instead of <libintl.h>.
69497         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
69498         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
69499         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
69500         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
69501         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
69502         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
69503         (textdomain): Remove definition.
69504         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
69505
69506         * lib/long-options.c: Remove include of <libintl.h> and definition of
69507         _.
69508         * lib/same.c: Remove include of <libintl.h> and definition of _.
69509
69510 2002-11-04  Owen Taylor  <otaylor@redhat.com>
69511
69512         * lib/config.charset: A few additions for Solaris.
69513
69514 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
69515
69516         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
69517         * lib/localcharset.c (locale_charset): Declare as extern "C".
69518
69519 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
69520
69521         * lib/config.charset: msdos in uk_UA uses CP1125.
69522
69523 2002-11-04  Bruno Haible  <bruno@clisp.org>
69524
69525         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
69526         * lib/strcase.h: New file, from GNU gettext-0.11.5.
69527         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
69528         * lib/strstr.h: New file, from GNU gettext-0.11.5.
69529         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
69530
69531 2002-11-04  Bruno Haible  <bruno@clisp.org>
69532
69533         * lib/localcharset.c (locale_charset): Don't return an empty string.
69534
69535 2002-11-04  Bruno Haible  <bruno@clisp.org>
69536
69537         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
69538         aliases.
69539
69540 2002-11-04  Bruno Haible  <bruno@clisp.org>
69541
69542         * lib/config.charset: Update for newest glibc. Add canonical names
69543         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
69544
69545 2002-11-04  Bruno Haible  <bruno@clisp.org>
69546
69547         * lib/config.charset: Add support for NetBSD.
69548
69549 2002-11-04  Bruno Haible  <bruno@clisp.org>
69550
69551         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
69552
69553 2002-11-01  Bruno Haible  <bruno@clisp.org>
69554
69555         * configure.in: Add AC_CONFIG_AUX_DIR call.
69556         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
69557         test/Makefile.
69558         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
69559
69560 2002-09-28  Karl Berry  <karl@gnu.org>
69561
69562         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
69563         installed automake until the next release, since changes have been
69564         made.
69565
69566 2002-09-25  Karl Berry  <karl@gnu.org>
69567
69568         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
69569         * lib/getopt*: copy from libc/posix.
69570         * lib/gettext.h: copy from gettext.
69571         * lib/.cppi-disable: add strdup.c, gettext.h.
69572
69573 2002-09-25  Karl Berry  <karl@gnu.org>
69574
69575         * config/srclist.txt: enable gettext.h check.
69576         * config/config.{guess,sub}: update from prep.
69577         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
69578                 from automake 1.6.3.
69579         See srclist*.
69580
69581 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
69582
69583         * regex.c (PATFETCH): Remove the translating fetch.
69584         (PATFETCH_RAW): Rename to PATFETCH.
69585         (set_image_of_range): New fun.
69586         (SET_RANGE_TABLE_WORK_AREA): Use it.
69587         (regex_compile): Don't translate the pattern chars so eagerly.
69588         Only do it when inserting an `exactn' bytecode or when handling
69589         a char-range.
69590         (mutually_exclusive_p): Avoid empty statement.
69591
69592 2002-07-06  Jim Meyering  <meyering@lucent.com>
69593
69594         * m4/README: Don't mention Makefile.am.in.
69595         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
69596
69597 2002-07-01  Jim Meyering  <meyering@lucent.com>
69598
69599         * lib/c-stack.c: Include sys/time.h.
69600         From Volker Borchert.
69601
69602 2002-06-26  Paul Eggert  <eggert@twinsun.com>
69603
69604         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
69605
69606 2002-06-26  Paul Eggert  <eggert@twinsun.com>
69607
69608         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
69609         New macro.  Use it uniformly instead of
69610         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
69611         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
69612         reported by Vin Shelton.
69613
69614 2002-06-22  Paul Eggert  <eggert@twinsun.com>
69615
69616         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
69617         Do not assume SA_SIGINFO behavior.
69618         Bug reported by Jim Meyering on NetBSD 1.5.2.
69619
69620 2002-06-22  Jim Meyering  <meyering@lucent.com>
69621
69622         * m4/c-stack.m4: New file, from diffutils-2.8.2.
69623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
69624
69625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
69626         now that configure.ac uses AC_GNU_SOURCE.
69627         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
69628         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
69629
69630         Update to latest tools.  Suggestions from Paul Eggert.
69631         * m4/stdbool.m4: New file, from diffutils-2.8.2.
69632         * m4/gnu-source.m4: Update from diffutils-2.8.2.
69633         * m4/fnmatch.m4: Likewise.
69634         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
69635         to AC_HEADER_STDBOOL
69636
69637 2002-06-22  Jim Meyering  <meyering@lucent.com>
69638
69639         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
69640         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
69641
69642 2002-06-22  Jim Meyering  <meyering@lucent.com>
69643
69644         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
69645
69646         * lib/exitfail.c, exitfail.h: Likewise.
69647         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
69648
69649         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
69650         of fnmatch.h.
69651         (EXTRA_DIST): Add fnmatch_loop.c.
69652         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
69653
69654         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
69655         * lib/fnmatch.c: Update from diffutils-2.8.2.
69656         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
69657         * lib/fnmatch.h: Remove file.
69658
69659 2002-06-21  Jim Meyering  <meyering@lucent.com>
69660
69661         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
69662         * m4/mbrtowc.m4: Likewise.
69663
69664         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
69665         * m4/mbswidth.m4: Reflect name change:
69666         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
69667         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69668
69669         * m4/lib-link.m4: Update from gettext-0.11.2.
69670         * m4/gettext.m4: Likewise.
69671
69672         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
69673         From Alfred M. Szmidt.
69674
69675 2002-06-18  Paul Eggert  <eggert@twinsun.com>
69676
69677         * lib/file-type.h: Report an error if neither S_ISREG nor
69678         S_IFREG is defined, instead of using a test specific to glibc
69679         2.2.  This should be safe, since POSIX requires S_ISREG and
69680         Unix Version 7 had S_IFREG.  We don't need to check for
69681         <sys/types.h> since we don't use any symbols that it defines.
69682
69683 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
69684
69685         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
69686         $@-t, so that each temporary file name is unique and valid in the first
69687         8 characters, for operation under DOS.
69688
69689 2002-06-15  Paul Eggert  <eggert@twinsun.com>
69690
69691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
69692
69693 2002-06-15  Jim Meyering  <meyering@lucent.com>
69694
69695         Work even with DJGPP 2.03, which lacks support for symlinks.
69696         From Richard Dawe.
69697         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
69698         is defined.
69699         * lib/lchown.c (S_ISLNK): Likewise.
69700
69701 2002-06-15  Jim Meyering  <meyering@lucent.com>
69702
69703         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
69704         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
69705         have been included before this file.
69706
69707 2002-06-14  Jim Meyering  <meyering@lucent.com>
69708
69709         * lib/file-type.h: Use the version from diffutils-2.8.2.
69710         * lib/file-type.c: Likewise.
69711
69712 2002-06-07  Jim Meyering  <meyering@lucent.com>
69713
69714         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
69715         They're needed at least for NetBSD 1.5.2.
69716         ($statxfs_includes): Include those same headers.
69717         ($statxfs_includes): Include sys/vfs.h if available.
69718         ($statxfs_includes): Likewise for sys/statvfs.h.
69719         Check for the following members in both structs statfs and statvfs:
69720         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
69721
69722 2002-06-01  Jim Meyering  <meyering@lucent.com>
69723
69724         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
69725         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
69726
69727 2002-05-28  Jim Meyering  <meyering@lucent.com>
69728
69729         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
69730         Reported by Volker Borchert.
69731
69732 2002-05-27  Jim Meyering  <meyering@lucent.com>
69733
69734         Fix a problem seen only on nonconforming systems whereby ls.c's
69735         use of localtime, and then of gettimeofday would cause trouble:
69736         the localtime call used to initialize rpl_gettimeofday's save
69737         mechanism would clobber ls's current local time information so
69738         that in any long listing the first file would always be listed
69739         with date 1970-01-01.  Analysis by Volker Borchert.
69740
69741         * lib/gettimeofday.c (localtime): Undefine.
69742         (rpl_localtime): New function.
69743
69744 2002-05-27  Jim Meyering  <meyering@lucent.com>
69745
69746         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
69747         localtime.
69748
69749         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
69750         use the replacement function; it wouldn't resolve at link time.
69751         Reported by Volker Borchert.
69752
69753 2002-05-22  Jim Meyering  <meyering@lucent.com>
69754
69755         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
69756         file-type.h.
69757         * lib/file-type.h: New file.
69758         * lib/file-type.c (file_type): New file/function.  Extracted from
69759         diffutils.
69760
69761 2002-04-30  Jim Meyering  <meyering@lucent.com>
69762
69763         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
69764
69765 2002-04-29  Paul Eggert  <eggert@twinsun.com>
69766
69767         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
69768
69769 2002-04-29  Paul Eggert  <eggert@twinsun.com>
69770
69771         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
69772         Do not check for alloca.h (no longer used) or stdbool.h (was never
69773         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
69774
69775 2002-04-29  Paul Eggert  <eggert@twinsun.com>
69776
69777         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
69778
69779 2002-04-29  Jim Meyering  <meyering@lucent.com>
69780
69781         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
69782         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
69783         Use AC_FUNC_STRNLEN here instead.
69784
69785         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
69786         With autoconf-2.53a, it's part of AC_PROG_CC.
69787
69788 2002-04-28  Paul Eggert  <eggert@twinsun.com>
69789
69790         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
69791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
69792
69793 2002-04-28  Paul Eggert  <eggert@twinsun.com>
69794
69795         * lib/sig2str.h, lib/sig2str.c: New files.
69796         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
69797
69798 2002-04-28  Paul Eggert  <eggert@twinsun.com>
69799
69800         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
69801         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
69802         of 127, since 64 is the largest conceivable number for ancient
69803         nonstandard hosts.
69804         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
69805
69806 2002-04-28  Jim Meyering  <meyering@lucent.com>
69807
69808         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
69809
69810 2002-04-24  Jim Meyering  <meyering@lucent.com>
69811
69812         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
69813         (jm_PREREQ): Use it.
69814
69815         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
69816         mach/mach.h fcntl.h.
69817         Check for this function: setlocale.
69818
69819 2002-04-24  Jim Meyering  <meyering@lucent.com>
69820
69821         * lib/gettext.h: New file, from Gettext.
69822         * lib/Makefile.am (INCLUDES): Remove -I../intl.
69823         (libfetish_a_SOURCES): Add gettext.h.
69824
69825 2002-04-16  Jim Meyering  <meyering@lucent.com>
69826
69827         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
69828         ut_pid, ut_id, ut_exit.
69829
69830 2002-04-16  Jim Meyering  <meyering@lucent.com>
69831
69832         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
69833         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
69834         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
69835
69836 2002-04-12  Jim Meyering  <meyering@lucent.com>
69837
69838         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
69839         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
69840         existence of the getmntinfo function.  Needed for Darwin 5.3.
69841
69842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
69843         This is necessary at least on Darwin 5.3.
69844
69845         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
69846         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
69847         strnlen.o in the library, and that makes some versions of ranlib
69848         object.
69849
69850 2002-04-12  Jim Meyering  <meyering@lucent.com>
69851
69852         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
69853
69854 2002-04-09  Jim Meyering  <meyering@lucent.com>
69855
69856         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
69857         to be more precise.  Rather than saying we're checking whether the
69858         function `works', say what we're testing.
69859         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
69860         Reported by Bruno Haible.
69861
69862 2002-03-10  Jim Meyering  <meyering@lucent.com>
69863
69864         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
69865         Suggestion from Santiago Vila.
69866
69867 2002-03-08  Jim Meyering  <meyering@lucent.com>
69868
69869         * lib/rename.c: Mention that this wrapper is needed also on
69870         mips-dec-ultrix4.4 systems.
69871
69872 2002-03-02  Jim Meyering  <meyering@lucent.com>
69873
69874         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
69875         not HAVE_CLOCK_SETTIME.
69876
69877 2002-02-27  Paul Eggert  <eggert@twinsun.com>
69878
69879         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
69880         Check for clock_settime.
69881
69882 2002-02-27  Paul Eggert  <eggert@twinsun.com>
69883
69884         * lib/nanosleep.h: Rename to....
69885         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
69886
69887         * lib/gettime.c: New file.
69888         * lib/settime.c: New file.
69889         * lib/stime.c: Remove.
69890
69891         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
69892         timespec.h.  Remove nanosleep.h.
69893
69894 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69895
69896         * m4/acl.m4: New file.
69897         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
69898         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
69899
69900 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69901
69902         * lib/acl.c, lib/acl.h: New files.
69903         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
69904
69905 2002-02-24  Jim Meyering  <meyering@lucent.com>
69906
69907         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
69908         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
69909         cause trouble.  Reported by Nelson Beebe.
69910
69911 2002-02-23  Paul Eggert  <eggert@twinsun.com>
69912
69913         * lib/path-concat.c (xpath_concat): Reorder code to pacify
69914         compilers that don't know that xalloc_die never returns.
69915
69916 2002-02-20  Jim Meyering  <meyering@lucent.com>
69917
69918         * lib/getdate.c: Regenerate using bison-1.33.
69919
69920 2002-02-17  Jim Meyering  <meyering@lucent.com>
69921
69922         * config/config.guess (main): Don't use `head -1'; it's no longer
69923         portable. Use `sed 1q' instead.
69924
69925 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
69926
69927         * m4/codeset.m4: Upgrade to gettext-0.11.
69928         * m4/gettext.m4: Upgrade to gettext-0.11.
69929         * m4/glibc21.m4: Upgrade to gettext-0.11.
69930         * m4/iconv.m4: Upgrade to gettext-0.11.
69931         * m4/isc-posix.m4: Upgrade to gettext-0.11.
69932         * m4/lcmessage.m4: Upgrade to gettext-0.11.
69933         * m4/lib-ld.m4: New file, from gettext-0.11.
69934         * m4/lib-link.m4: New file, from gettext-0.11.
69935         * m4/lib-prefix.m4: New file, from gettext-0.11.
69936         * m4/progtest.m4: Upgrade to gettext-0.11.
69937
69938 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69939
69940         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
69941         (jm_PREREQ): Use it.
69942
69943 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69944
69945         * lib/posixver.c, lib/posixver.h: New files.
69946         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69947
69948 2002-02-02  Paul Eggert  <eggert@twinsun.com>
69949             Bruno Haible  <bruno@clisp.org>
69950
69951         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
69952         (fwrite_success_callback): New declaration.
69953         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
69954         print_unicode_char. Call failure callback instead of error.
69955         (fwrite_success_callback): New function.
69956         (exit_failure_callback): New function.
69957         (fallback_failure_callback): New function.
69958         (print_unicode_char): Call unicode_to_mb.
69959
69960 2002-01-26  Jim Meyering  <meyering@lucent.com>
69961
69962         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
69963         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
69964
69965 2002-01-26  Jim Meyering  <meyering@lucent.com>
69966
69967         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
69968
69969 2002-01-22  Paul Eggert  <eggert@twinsun.com>
69970
69971         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
69972
69973 2002-01-22  Jim Meyering  <meyering@lucent.com>
69974
69975         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
69976         Otherwise, some versions of automake would omit the rule that makes
69977         Makefile from Makefile.in.
69978
69979 2002-01-21  Paul Eggert  <eggert@twinsun.com>
69980
69981         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
69982         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69983         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
69984         (memcoll): Set errno to zero if there is no error.
69985
69986         * lib/quotearg.c (quotearg_buffer_restyled):
69987         Fix bug with quoting buffers containing NUL when backslashing escapes.
69988         This bug was exposed by the other changes in this patch.
69989         (quotearg_n_options): New arg ARGSIZE.
69990         All callers changed.
69991         (quoting_options_from_style): New function.
69992         (quotearg_n_style): Use it.
69993         (quotearg_n_style_mem): New function.
69994
69995         * lib/quotearg.h (quotearg_n_style_mem): New function.
69996
69997 2002-01-19  Jim Meyering  <meyering@lucent.com>
69998
69999         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70000         Remove useless quotes: DF_PROG="df".
70001         * m4/strnlen.m4: New file.
70002
70003 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70004
70005         * lib/backupfile.c (ISDIGIT): Comment fix.
70006         * lib/getdate.y (ISDIGIT): Likewise.
70007         * lib/posixtm.c (ISDIGIT, year): Likewise.
70008         * lib/strverscmp.c (ISDIGIT): Likewise.
70009         * lib/userspec.c (ISDIGIT): Likewise.
70010
70011 2002-01-16  Jim Meyering  <meyering@lucent.com>
70012
70013         * lib/getdate.y: Add three semicolons, each just before a closing
70014         brace. Bison (as of version 1.31) no longer papers over that mistake.
70015
70016 2002-01-05  Jim Meyering  <meyering@lucent.com>
70017
70018         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70019
70020 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70021
70022         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70023         not silently exit merely because the output buffer happens to
70024         have nothing pending.
70025
70026 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70027
70028         See the big note in ../ChangeLog.
70029         * lib/human.c (suffixes): Prefer K to k for 1024.
70030         (generate_suffix_backwards): New function.
70031         (human_readable_inexact): Use it.
70032         * lib/xstrtol.c (__xstrtol): If there is no number but there
70033         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70034         Accept 'K' as well as 'k'.
70035
70036 2001-12-15  Jim Meyering  <meyering@lucent.com>
70037
70038         * lib/regex.h (__restrict_arr): Update from libc.
70039
70040         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70041         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70042         (STREQ): Define.
70043
70044 2001-12-14  Jim Meyering  <meyering@lucent.com>
70045
70046         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
70047         Suggestion from Bruno Haible.
70048
70049 2001-12-10  Jim Meyering  <meyering@lucent.com>
70050
70051         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
70052         xrealloc, Instead, include "xalloc.h".
70053         (initbuffer): Don't cast xmalloc return value to char*.
70054         (readline): Reword comment.
70055         Don't cast xrealloc return value to char*
70056         Return NULL, not 0.
70057
70058 2001-12-09  Jim Meyering  <meyering@lucent.com>
70059
70060         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
70061         about `signed and unsigned type in conditional expression'.
70062         * lib/posixtm.c (posix_time_parse): Likewise.
70063
70064         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
70065
70066         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
70067         to avoid a pedantic warning.
70068
70069         * lib/getstr.c: Don't include assert.h.
70070         (getstr): Remove warning-evoking assertions.
70071         Return -1 if offset parameter is out of bounds.
70072         Change the type of a local from int to size_t.
70073
70074         * lib/strftime.c (my_strftime_localtime_r): Include this function
70075         definition in the `#if ! HAVE_TM_GMTOFF' block.
70076
70077         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
70078         Include xalloc.h instead.
70079
70080 2001-12-02  Jim Meyering  <meyering@lucent.com>
70081
70082         * lib/tempname.c: Don't declare getenv, thus reverting the change of
70083         2001-11-18.  It's no longer necessary, now that stdlib.h is always
70084         included.
70085
70086         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
70087         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
70088
70089 2001-11-30  Akim Demaille  <akim@epita.fr>
70090
70091         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
70092         before being defined.
70093
70094 2001-11-27  Paul Eggert  <eggert@twinsun.com>
70095
70096         * lib/quotearg.h (quotearg_n, quotearg_n_style):
70097         First arg is int, not unsigned.
70098         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
70099         (SIZE_MAX, UINT_MAX): New macros.
70100         (quotearg_n_options): Abort if N is negative.
70101         Avoid overflow check on hosts where size_t is 64 bits and int
70102         is 32 bits, as overflow is impossible there.
70103         Fix off-by-one typo that caused unnecessary reallocation.
70104
70105 2001-11-27  Jim Meyering  <meyering@lucent.com>
70106
70107         * lib/tempname.c: Merge with version from libc.
70108         * lib/regex.c: Likewise.
70109
70110         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
70111         systems for which STDC_HEADERS is 0, it was not included, resulting in
70112         a warning about an integer-to-pointer conversion problem with getenv.
70113         Reported by Volker Borchert.
70114
70115 2001-11-26  Jim Meyering  <meyering@lucent.com>
70116
70117         * lib/gtod.h: Remove file.
70118         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
70119         * lib/gettimeofday.c: Don't include gtod.h.
70120         (GTOD_init): Remove function.
70121         (rpl_gettimeofday): Do its job here instead, rather than aborting.
70122         Suggestion from Volker Borchert.
70123
70124 2001-11-23  Jim Meyering  <meyering@lucent.com>
70125
70126         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
70127         it.
70128         * lib/hash.c (struct hash_table): Define it here instead.
70129
70130 2001-11-22  Jim Meyering  <meyering@lucent.com>
70131
70132         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
70133
70134 2001-11-20  Jim Meyering  <meyering@lucent.com>
70135
70136         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
70137         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
70138
70139 2001-11-19  Jim Meyering  <meyering@lucent.com>
70140
70141         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
70142         directory.  Use "conftestXXXXXX" as the template.
70143         Suggestion from Paul Eggert.
70144
70145         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
70146         immediately, so the test doesn't mistakenly hit the max-open-files
70147         limit.
70148
70149 2001-11-18  Paul Eggert  <eggert@twinsun.com>
70150
70151         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
70152         (TEMPORARIES): New macro.
70153         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
70154         removes an artificial limitation (e.g. HP-UX 10.20, where
70155         TMP_MAX is 17576).
70156
70157 2001-11-18  Jim Meyering  <meyering@lucent.com>
70158
70159         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
70160
70161 2001-11-18  Jim Meyering  <meyering@lucent.com>
70162
70163         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
70164         on SunOS 4.
70165
70166         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
70167         files will be created before anything else.
70168
70169 2001-11-17  Paul Eggert  <eggert@twinsun.com>
70170
70171         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
70172         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
70173
70174 2001-11-17  Jim Meyering  <meyering@lucent.com>
70175
70176         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
70177         Prompted by a report from Bob Proulx.
70178
70179         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
70180         Instead, require UTILS_FUNC_MKSTEMP.
70181
70182 2001-11-17  Jim Meyering  <meyering@lucent.com>
70183
70184         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
70185         Now, that's done as part of AC_FUNC_STRTOD.
70186
70187 2001-11-17  Jim Meyering  <meyering@lucent.com>
70188
70189         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
70190         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
70191         rather than group writable.  Patch by Juan F. Codagnone.
70192
70193         * lib/readtokens.c: Remove explicit declarations of xmalloc and
70194         xrealloc, Instead, include "xalloc.h".
70195
70196         * lib/mountlist.c: Include unlocked-io.h after all system headers.
70197         Remove explicit declarations of xmalloc, xrealloc,
70198         and xstrdup.  Instead, include "xalloc.h".
70199
70200         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
70201         unlocked-io.h.
70202         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
70203         Likewise.
70204         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
70205
70206         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
70207         Reported by Padraig Brady.
70208
70209         * lib/mkstemp.c: #undef mkstemp.
70210         Include config.h.
70211         (rpl_mkstemp): Rename from mkstemp.
70212         Protoize.
70213
70214 2001-11-16  Jim Meyering  <meyering@lucent.com>
70215
70216         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
70217         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
70218         determine the amount of total physical memory, use pstat_getstatic.
70219         HPUX-11 doesn't define _SC_PHYS_PAGES.
70220         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
70221         If sysconf couldn't be used to determine the amount of available
70222         physical memory, use both pstat_getstatic and pstat_getdynamic.
70223         Based on a patch from Bob Proulx.
70224
70225 2001-11-10  Jim Meyering  <meyering@lucent.com>
70226
70227         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
70228         (jm_PREREQ): Use it.
70229
70230 2001-11-09  Jim Meyering  <meyering@lucent.com>
70231
70232         * m4/jm-macros.m4: Require autoconf-2.52f.
70233         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
70234         Use these AC_-prefixed names, not the AM_-prefixed ones.
70235
70236         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
70237
70238 2001-11-05  Jim Meyering  <meyering@lucent.com>
70239
70240         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
70241
70242 2001-11-04  Jim Meyering  <meyering@lucent.com>
70243
70244         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
70245         $DEFS.
70246
70247 2001-11-03  Jim Meyering  <meyering@lucent.com>
70248
70249         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
70250         of AC_DEFUN.
70251
70252         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
70253         know the name of the variable in the macro definition.
70254
70255 2001-11-03  Jim Meyering  <meyering@lucent.com>
70256
70257         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
70258         in argmatch_to_argument call.
70259
70260         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
70261         argument.
70262
70263         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
70264         e.g., a fault due to an attempt to free a NULL pointer.
70265
70266 2001-11-01  Jim Meyering  <meyering@lucent.com>
70267
70268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
70269         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
70270
70271 2001-11-01  Jim Meyering  <meyering@lucent.com>
70272
70273         * lib/dirfd.c, lib/dirfd.h: New files.
70274         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
70275
70276         * lib/hash.c (hash_print) [TESTING]: Clean up.
70277
70278 2001-10-22  Paul Eggert  <eggert@twinsun.com>
70279
70280         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
70281         to avoid a warning if -Wall.
70282
70283 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
70284
70285         * README: New file
70286         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
70287         (per RMS's instructions, this is now the canonical source)
70288         * lgpl/, gpl/: New directories.
70289
70290 2001-10-21  Paul Eggert  <eggert@twinsun.com>
70291
70292         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
70293
70294 2001-10-21  Jim Meyering  <meyering@lucent.com>
70295
70296         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
70297         this code would end up calling gettext even in packages built
70298         with --disable-nls.
70299         * lib/getopt.c (_): Likewise.
70300         * lib/regex.c (_): Likewise.
70301
70302 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70303
70304         * m4/error.m4 (jm_PREREQ_ERROR):
70305         Do not invoke AC_CHECK_FUNCS with strerror_r, as
70306         AC_FUNC_STRERROR_R does that.
70307         Check for strerror declaration.
70308
70309         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
70310         are supposed to have them these days.
70311         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
70312         Merge changes from latest Autoconf CVS.
70313         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
70314         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
70315         POSIX decided to standardize on the int flavor of strerror_r.
70316
70317 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70318
70319         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
70320         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
70321         Use strerror_r that is only a macro, even if it is not a function.
70322         (strerror): Check for HAVE_DECL_STRERROR before declaring.
70323         (private_strerror): Use prototypes, not old-style function definition.
70324         (print_errno_message): New function.
70325         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
70326         char*-flavored one.
70327         (error_tail, error, error_at_line): Use it.
70328
70329 2001-10-11  Jim Meyering  <meyering@lucent.com>
70330
70331         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
70332         and quote_n (1, ... to avoid clobbering a buffer.
70333
70334 2001-10-05  Jim Meyering  <meyering@lucent.com>
70335
70336         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
70337         hash-pjw.h.
70338         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
70339         * lib/hash-pjw.h: New file.
70340
70341 2001-09-30  Jim Meyering  <meyering@lucent.com>
70342
70343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
70344         `struct fsstat' has the `f_fstypename' member.
70345         Use that to define FS_TYPE, which is now used to make
70346         the getfsstat link test tighter.
70347
70348 2001-09-30  Jim Meyering  <meyering@lucent.com>
70349
70350         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
70351         Include <sys/ucred.h>, for Apple Darwin.
70352         Include sys/mount.h and sys/fs_types.h only if available.
70353         (FS_TYPE): Define.
70354         (read_filesystem_list): Use FS_TYPE.
70355
70356 2001-09-29  Paul Eggert  <eggert@twinsun.com>
70357
70358         * lib/exclude.c (excluded_filename): 0 -> false, since it's
70359         a boolean context.
70360
70361 2001-09-29  Jim Meyering  <meyering@lucent.com>
70362
70363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70364         [one-argument getmntent function]): Include stdio.h before mntent.h.
70365         SunOS 4.1.x needs it for the declaration of `FILE'.
70366         Patch by Volker Borchert.
70367
70368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70369         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
70370         sys/fs_types.h, and make the link-test for getfsstat guard #include
70371         directives with appropriate #if HAVE_*_H tests so that we can
70372         detect getfsstat on Apple Darwin1.3.7 systems.
70373         Reported by Nelson Beebe.
70374         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
70375
70376 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70377
70378         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70379         #defines strtoimax.  Also treat the other strto* functions
70380         like strtoimax.
70381
70382         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70383         Check for strtoul and strtoumax,
70384         as those declarations are made even in the signed case.
70385         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
70386         Likewise, for strtol and strtoimax.
70387
70388 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70389
70390         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70391         #defines strtoimax.  Also treat the other strto* functions
70392         like strtoimax.
70393
70394         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
70395         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
70396         (strtoimax, strtoumax): Do not declare if already defined as a macro.
70397
70398 2001-09-26  Jim Meyering  <meyering@lucent.com>
70399
70400         Most macros in unlocked-io.h had the wrong number of arguments.
70401         * lib/gen-uio: New script.
70402         (USE_UNLOCKED_IO): Define to 1 if not already defined.
70403         * lib/unlocked-io.hin: Remove file.
70404         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
70405         rather than trying to embed it here.
70406         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
70407         Reported by Padraig Brady.
70408
70409 2001-09-25  Volker Borchert  <bt@teknon.de>
70410
70411         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
70412         `result'.
70413
70414 2001-09-24  Jim Meyering  <meyering@lucent.com>
70415
70416         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
70417
70418 2001-09-23  Jim Meyering  <meyering@lucent.com>
70419
70420         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
70421         instead of the mere test for existence of mntent.h.  The latter
70422         would get a false-positive on AIX 3.4 systems.
70423         In the outer getmntent if-block, don't die if neither of the getmntent
70424         tests succeeds.  Instead, just fall through and continue with the
70425         remaining tests.
70426
70427 2001-09-23  Jim Meyering  <meyering@lucent.com>
70428
70429         * lib/mountlist.c: Remove useless parentheses in #if directives.
70430         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
70431         the deprecated MOUNTED symbol is no longer defined in mntent.h.
70432
70433 2001-09-22  Jim Meyering  <meyering@lucent.com>
70434
70435         * m4/gettext.m4: New file.  From gettext.
70436         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
70437         * m4/progtest.m4: Likewise
70438         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
70439         * m4/glibc21.m4: Likewise.
70440
70441         * m4/libintl.m4: Remove.  No longer used.
70442
70443 2001-09-22  Jim Meyering  <meyering@lucent.com>
70444
70445         * lib/localcharset.c: Update from latest gettext.
70446         * lib/config.charset: Likewise.
70447
70448 2001-09-20  Jim Meyering  <meyering@lucent.com>
70449
70450         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
70451         strtoimax.
70452         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
70453         strtoumax.
70454
70455 2001-09-20  Jim Meyering  <meyering@lucent.com>
70456
70457         * lib/xstrtol.c (strtoimax): Guard declaration with
70458         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
70459         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
70460         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
70461         (strtoumax): Likewise, for completeness (it wasn't necessary).
70462
70463 2001-09-17  Paul Eggert  <eggert@twinsun.com>
70464
70465         * lib/strtoimax.c (HAVE_LONG_LONG):
70466         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
70467         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
70468         to work around bug in IBM C compiler.
70469
70470 2001-09-17  Jim Meyering  <meyering@lucent.com>
70471
70472         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
70473         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
70474         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
70475         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
70476         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
70477         whenever the right hand side need not be expanded by the shell.
70478
70479 2001-09-16  Paul Eggert  <eggert@twinsun.com>
70480
70481         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
70482         library.  It's not correct, as some older glibcs are buggy.
70483         fnmatch wasn't fixed until glibc 2.2.
70484
70485         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
70486         special shell magic here.
70487
70488 2001-09-16  Jim Meyering  <meyering@lucent.com>
70489
70490         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
70491         * m4/jm-macros.m4: Require it.
70492
70493 2001-09-16  Jim Meyering  <meyering@lucent.com>
70494
70495         * lib/mkdir.c: New file.
70496
70497 2001-09-15  Jim Meyering  <meyering@lucent.com>
70498
70499         * m4/jm-macros.m4: Check for help2man.
70500
70501 2001-09-11  Jim Meyering  <meyering@lucent.com>
70502
70503         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
70504         The body, by Paul Eggert, was moved here from configure.in.
70505         * m4/jm-macros.m4: Require UTILS_HOST_OS.
70506
70507 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70508
70509         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
70510         (jm_PREREQ): Use it.
70511
70512 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70513
70514         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
70515         Use ssize_t, not int, to store result of readlink.
70516         Check for ssize_t overflow as well as size_t overflow,
70517         as POSIX says the result of readlink is implementation-defined
70518         when ssize_t overflows.
70519         Remove unnecessary cast to char*.
70520         Use free+malloc instead of realloc, as the storage doesn't need
70521         to be preserved and it's clearer and can be more efficient that way.
70522         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
70523         * lib/xreadlink.h (xreadlink): Update prototype.
70524
70525 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70526
70527         * lib/xgetcwd.c: Revert some of the previous change; intead,
70528         fix the HAVE_GETCWD_NULL code to behave more like the
70529         !HAVE_GETCWD_NULL code used to.
70530
70531         Include "xalloc.h".
70532         (xgetcwd): Do not return NULL when memory is exhausted; instead,
70533         invoke xalloc_die.
70534
70535 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70536
70537         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
70538         sys/param.h, as pathmax.h includes them.
70539
70540 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70541
70542         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
70543         (jm_PREREQ_XGETCWD): New macro.
70544
70545         * m4/getcwd.m4: New file.
70546
70547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70548
70549         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
70550         like the HAVE_GETCWD_NULL code.
70551         Include pathmax.h if not HAVE_GETCWD.
70552         Do not include xalloc.h.
70553         (INITIAL_BUFFER_SIZE): New symbol.
70554         Do not use xmalloc / xrealloc, since the caller is responsible for
70555         handling errors.  Preserve errno around `free' during failure.
70556         Do not overrun buffer when using getwd.
70557
70558 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70559
70560         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
70561         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
70562         getcwd (NULL, 0).
70563
70564 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70565
70566         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
70567         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
70568         spotted by Jim Meyering.
70569
70570 2001-09-03  Jim Meyering  <meyering@lucent.com>
70571
70572         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
70573         failure.
70574
70575 2001-09-02  Jim Meyering  <meyering@lucent.com>
70576
70577         * lib/error.c: Update from GNU libc.
70578
70579 2001-09-01  Jim Meyering  <meyering@lucent.com>
70580
70581         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
70582         Used by df.
70583
70584 2001-09-01  Jim Meyering  <meyering@lucent.com>
70585
70586         * lib/xreadlink.c: New file.
70587         * lib/xreadlink.h: New file.
70588         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
70589         xreadlink.h.
70590
70591         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
70592         doesn't conflict with sparc Solaris 7's definition in
70593         /usr/include/sys/int_types.h.
70594
70595         * lib/exclude.c: Use `""', not `<>' to #include non-system header
70596         files.
70597         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
70598         and strncasecmp as r-values.  Unixware didn't have declarations.
70599
70600 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70601
70602         * lib/xstrtol.h: Add copyright notice.
70603         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
70604         LONGINT_INVALID_SUFFIX_CHAR.
70605
70606 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70607
70608         * lib/xstrtol.c (strtoimax): New decl.
70609
70610 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70611
70612         * lib/xgetcwd.c: Don't include pathmax.h.
70613         Include stdlib.h and unistd.h if available.
70614         Include xalloc.h.
70615         (xmalloc, xstrdup, free): Remove decls.
70616         (xgetcwd): Don't assume sizes fit in unsigned.
70617         Check for overflow when computing sizes.
70618         Simplify reallocation code.
70619
70620 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70621
70622         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
70623         a directory's st_size can have an arbitrary value, so the old
70624         usage could waste an arbitrary amount of memory.  All uses
70625         changed.
70626         * lib/savedir.h: Update prototype.
70627
70628 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70629
70630         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
70631
70632         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
70633         old strtoimax.c.
70634
70635         Also, make the following further changes to make this file's
70636         configuration more similar to that of strtol.c:
70637         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
70638         (strtoumax, uintmax_t, strtoull, strtol): Remove.
70639         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
70640         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
70641         changed to signed values.
70642
70643         And make the following changes as well:
70644         Fix copyright notice, as 1999 was missing.
70645         (verify): New macro.
70646         (strtoimax): Check sizes at compile-time, not run-time.
70647         Prefer strtol to strtoll if both work.
70648         (main): Remove; it was not that useful and was a pain to maintain.
70649
70650         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
70651
70652 2001-08-31  Jim Meyering  <meyering@lucent.com>
70653
70654         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
70655         Use an initial, malloc'd, buffer of length 128 rather than
70656         a statically allocated one of length 1024.
70657
70658 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70659
70660         Simplify code, partly by assuming autoconf 2.52 semantics.
70661
70662         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
70663
70664         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
70665         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
70666         All uses removed.
70667         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
70668         Move AC_REQUIRE to next-to-top level, to avoid confusion.
70669         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
70670         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
70671         jm_AC_HEADER_INTTYPES_H.
70672         * m4/jm-macros.m4 (jm_MACROS): Likewise.
70673
70674         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
70675
70676         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70677         Quote first arg of AC_DEFUN.
70678         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
70679         since they are needed to parse the include file even if we need
70680         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
70681         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
70682         but with opposite signedness.
70683
70684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70685
70686         Merge 'exclude' changes from tar 1.13.22.
70687         This fixes one or two unlikely storage allocation overflow bugs,
70688         but doesn't change user-visible behavior otherwise.
70689
70690 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70691
70692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
70693         (jm_PREREQ_EXCLUDE): New macro.
70694
70695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70696
70697         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
70698         tm to be declared.
70699
70700 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70701
70702         * lib/hash.c: Remove '2001' from copyright notice.
70703
70704 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70705
70706         * lib/full-write.h: New file.
70707         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
70708         * lib/full-write.c: Correct credits, as cccp.c no longer
70709         exists and anyway it was so heavily changed from the old cccp
70710         code as to be unrecognizable.  Include full-write.h.
70711         (full_write) Return size_t, with short writes meaning failure.
70712         All callers changed.  This fixes a bug with large buffers
70713         on 64-bit hosts.
70714         * lib/utime.c: Include full-write.h.
70715
70716 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70717
70718         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
70719         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
70720         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
70721         Include if available.
70722         (<xalloc.h>): Include
70723         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
70724         (verify): New macro.  Use it to verify that EXCLUDE macros do not
70725         collide with FNM macros.
70726         (struct patopts): New struct.
70727         (struct exclude): Use it, as exclude patterns now come with options.
70728         (new_exclude): Support above changes.
70729         (new_exclude, add_exclude_file):
70730         Initial size must now be a power of two to simplify overflow checking.
70731         (free_exclude, fnmatch_no_wildcards): New function.
70732         (excluded_filename): No longer requires options arg, as the options
70733         are determined by add_exclude.  Now returns bool, not int.
70734         (excluded_filename, add_exclude):
70735         Add support for the fancy new exclusion options.
70736         (add_exclude, add_exclude_file): Now takes int options arg.
70737         Check for arithmetic overflow when computing sizes.
70738         (add_exclude_file): xrealloc might modify errno, so don't
70739         realloc until after errno might be used.
70740
70741         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
70742         New macros.
70743         (free_exclude): New decl.
70744         (add_exclude, add_exclude_file): Now takes int options arg.
70745         (excluded_filename): No longer requires options arg, as the options
70746         are determined by add_exclude.  Now returns bool, not int.
70747
70748 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70749
70750         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
70751
70752 2001-08-27  Jim Meyering  <meyering@lucent.com>
70753
70754         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
70755
70756         * lib/version-etc.c (N_): Remove definition.
70757         Revert most of last change.
70758         Instead, simply don't mark the `Copyright...' string for translation.
70759         Based on advice from Paul Eggert.
70760
70761         * lib/strtoxmax.c: Tweak comment.
70762
70763 2001-08-26  Jim Meyering  <meyering@lucent.com>
70764
70765         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
70766
70767         * m4/xstrtoimax.m4: New file.
70768         * m4/xstrtoumax.m4: Add comments explaining why we
70769         AC_REPLACE_FUNCS(strtol).
70770
70771 2001-08-26  Jim Meyering  <meyering@lucent.com>
70772
70773         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
70774         of copyright with `%s' so translators don't get an untranslated
70775         message in 2002.
70776         (COPYRIGHT_YEAR): Define.
70777         (version_etc): Use fprintf rather than fputs.
70778         Suggestion from Ulrich Drepper.
70779
70780         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
70781
70782         * lib/strtoll.c: New file, from GNU libc.
70783         * lib/xstrtoimax.c: New file.
70784
70785         * lib/xstrtol.h: Add xstrtoimax.
70786         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
70787         * lib/strtoimax.c: New file.  Likewise, but first define
70788         STRTOUXMAX_SIGNED.
70789
70790         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
70791         ...
70792         * lib/strtoxmax.c: ... then renamed to this.
70793
70794 2001-08-18  Paul Eggert  <eggert@twinsun.com>
70795
70796         * m4/inttypes.m4: Add AC_PREREQ(2.13).
70797         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
70798         (jm_AC_TYPE_INTMAX_T): New macro.
70799         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
70800
70801         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
70802
70803         * m4/longlong.m4: Renamed from ulonglong.m4.
70804         * m4/inttypes.m4: Renamed from inttypes_h.m4.
70805         * m4/uintmax_t.m4: Removed.
70806
70807 2001-08-13  Paul Eggert  <eggert@twinsun.com>
70808
70809         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
70810         Port to Solaris 8, where 'sed' requires a space after the 'r'
70811         command, and where sh dislikes "$/".  Clean up the spacing a bit.
70812         Redirect output to $tmp just once.
70813
70814 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
70815
70816         * lib/addext.c (<errno.h>): Include.
70817         (errno): Declare if not defined.
70818         (addext): Work correctly when pathconf returns -1 and leaves
70819         errno alone because there is no limit.  Also, work even if
70820         pathconf returns a value greater than SIZE_MAX.
70821
70822 2001-08-12  Jim Meyering  <meyering@lucent.com>
70823
70824         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
70825         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
70826         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
70827         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
70828         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
70829         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
70830         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
70831         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
70832         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
70833         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
70834         utime.m4, utimes.m4, xstrtoumax.m4:
70835         Quote the first argument in each use of AC_DEFUN.
70836
70837 2001-08-12  Jim Meyering  <meyering@lucent.com>
70838
70839         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
70840         Simply `return getcwd (NULL, 0);'.
70841         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
70842         Use 1300 as initial value for length, not PATH_MAX.
70843
70844         * lib/pathmax.h: Clean up cpp syntax.
70845
70846 2001-08-12  Jim Meyering  <meyering@lucent.com>
70847
70848         * lib/gettimeofday.c: New file.
70849         * lib/gtod.h: New file.
70850         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
70851
70852 2001-08-05  Jim Meyering  <meyering@lucent.com>
70853
70854         * m4/jm-macros.m4: Require autoconf-2.52.
70855
70856 2001-08-04  Jim Meyering  <meyering@lucent.com>
70857
70858         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
70859         stmt, to get in sync with glibc.
70860
70861 2001-08-03  Paul Eggert  <eggert@twinsun.com>
70862
70863         The following changes are from gettext 0.10.39 as maintained by
70864         Bruno Haible.
70865
70866         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
70867         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
70868         with inverted sense.  All uses changed.
70869
70870         * lib/mbswidth.c: Don't include <limits.h>.
70871         Include <stdlib.h> and <string.h> unconditionally.
70872         (iswcntrl, mbsinit, ISCNTRL): New macros.
70873         (mbsnwidth): Use K&R style function declarations.
70874         Don't bother checking for MB_LEN_MAX == 1, since the compiler
70875         can optimize it when MB_CUR_MAX == 1.
70876         The width of control characters is zero, not 1.
70877
70878 2001-08-03  Paul Eggert  <eggert@twinsun.com>
70879
70880         The following changes are from gettext 0.10.39 as maintained by
70881         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
70882
70883         * m4/codeset.m4: Upgrade to serial AM1.
70884         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
70885         all uses changed.  Quote first arg of AC_DEFUN.
70886         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
70887
70888         * m4/iconv.m4: Upgrade to serial AM2.
70889         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
70890         Add --with-libconv-prefix.
70891         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
70892         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
70893         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
70894         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
70895         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
70896
70897         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
70898         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
70899         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
70900         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
70901         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
70902         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
70903         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
70904         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
70905         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70906
70907         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
70908         string.h any more.
70909
70910         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
70911         not the default value.
70912
70913         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
70914         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
70915         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
70916         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
70917         Also check for iswcntrl, used for wcwidth fallback.
70918         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
70919         to Autoconf 2.13.
70920
70921 2001-08-03  Jim Meyering  <meyering@lucent.com>
70922
70923         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
70924         as it was in the original.  Reported by Paul Eggert.
70925
70926 2001-07-16  Jim Meyering  <meyering@lucent.com>
70927
70928         * m4/gettimeofday.m4: New file.
70929         Prompted by a report from Bernhard Baehr.
70930
70931 2001-07-15  Jim Meyering  <meyering@lucent.com>
70932
70933         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
70934         stuff. Now it's in ../Makefile.cfg.
70935
70936 2001-07-15  Jim Meyering  <meyering@lucent.com>
70937
70938         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
70939         (BUILT_SOURCES): Add unlocked-io.h.
70940         (io_functions): Define.
70941         (unlocked-io.h): New rule.
70942         (DISTCLEANFILES): Add unlocked-io.h.
70943         (all-local): Depend on unlocked-io.h, to ensure it is created.
70944
70945         * lib/unlocked-io.hin: New file
70946
70947         * lib/regex.c: Update from glibc.
70948
70949 2001-07-05  Jim Meyering  <meyering@lucent.com>
70950
70951         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
70952         recommendation.
70953         (libfetish_a_SOURCES): Put all .h files here instead.
70954         Remove a thus-exposed (better checks in automake) duplicate and
70955         two unnecessary .h files.
70956
70957 2001-07-04  Jim Meyering  <meyering@lucent.com>
70958
70959         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
70960         that generates jm-glibc-io.m4 so that it doesn't trigger any make
70961         distcheck failure.
70962
70963 2001-07-02  Jim Meyering  <meyering@lucent.com>
70964
70965         The following changes were prompted by suggestions from Bruno Haible.
70966
70967         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
70968         is now generated.
70969         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
70970         definition of EXTRA_DIST.
70971         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
70972         ensure that the generated file is created/updated whenever the list
70973         of $(unlocked_functions) is changed.
70974         (jm-glibc-io.m4): New rule.
70975         (unlocked-io.h): New rule -- currently unused.
70976
70977 2001-06-24  Jim Meyering  <meyering@lucent.com>
70978
70979         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
70980         unmatched right bracket, rather than kludging it with an extra,
70981         falsely-matching quote in a comment.  Patch by Akim Demaille.
70982
70983 2001-06-11  Jim Meyering  <meyering@lucent.com>
70984
70985         * lib/regex.c: Update from GNU libc.
70986
70987 2001-05-27  Jim Meyering  <meyering@lucent.com>
70988
70989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
70990         Check for ut_type in struct utmp.
70991
70992 2001-05-27  Jim Meyering  <meyering@lucent.com>
70993
70994         * lib/readutmp.h (UT_TYPE): Define.
70995
70996 2001-05-24  Jim Meyering  <meyering@lucent.com>
70997
70998         * lib/argmatch.c: Include "quote.h".
70999         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71000         quote function.  Reported by Göran Uddeborg.
71001
71002 2001-05-22  Jim Meyering  <meyering@lucent.com>
71003
71004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71005         now that we use the package-supplied version unconditionally.
71006         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71007
71008 2001-05-21  Jim Meyering  <meyering@lucent.com>
71009
71010         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71011         shell syntax errors.
71012
71013 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71014
71015         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71016
71017 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71018
71019         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71020         Don't bother to check library strftime, since
71021         we'll be using our own my_strftime function anyway.
71022         Define my_strftime instead of strftime.
71023
71024 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71025
71026         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71027         which is not yet declared.
71028
71029 2001-05-15  Jim Meyering  <meyering@lucent.com>
71030
71031         * m4/regex.m4: Use proper quoting so brackets appear in the test
71032         program.
71033         Reported by, and with help from, Bruno Haible.
71034
71035 2001-05-13  Jim Meyering  <meyering@lucent.com>
71036
71037         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71038         undefined.
71039
71040 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71041
71042         dirname code cleanup.  base_name now behaves more compatibly
71043         with POSIX basename when given file names that have trailing
71044         slashes, and similarly for dir_name.  Add new primitives
71045         base_len and dir_len.  Put the directory-name-related decls
71046         into dirname.h.
71047
71048         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
71049         * lib/backupfile.c (base_name): Likewise.
71050         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
71051         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
71052         * lib/makepath.c (strip_trailing_slashes): Likewise.
71053         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
71054         ISSLASH): Likewise.
71055         * lib/rename.c (strip_trailing_slashes): Likewise.
71056         * lib/same.c (base_name): Likewise.
71057         * lib/stripslash.c (ISSLASH): Likewise.
71058
71059         * lib/addext.c: Include <dirname.h> after size_t is defined.
71060         * lib/backupfile.c: Likewise.
71061
71062         * lib/addext.c (addext): Use base_len to trim redundant
71063         trailing slashes instead of doing it ourselves.
71064         But do not trim the last slash if it is not redundant.
71065
71066         * lib/backupfile.c (find_backup_file_name,
71067         max_backup_version): Use base_len instead of rolling it ourselves.
71068         Handle the case of "" and (on DOS) "C:" correctly.
71069
71070         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
71071         needed. Include <string.h>, <dirname.h>.
71072         (base_name): Allow file names ending in slashes, other than names
71073         that are all slashes.  In this case, return the basename followed
71074         by the slashes.  This is more general, and can be used in places
71075         where the original base_name purposely had an assertion failure.
71076         (base_len): New function.
71077
71078         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
71079         Do not include <assert.h>; no longer needed.
71080         Include xalloc.h.
71081         (memrchr): Remove decl.
71082         (dir_name_r): Remove.
71083         (dir_len): Renamed from dirlen.  All callers changed.
71084         Rewrite in terms of base_name, for simplicity and consistency.
71085         (dir_name): Never return NULL.  All callers changed.
71086         Do not include <stdlib.h> in test program; no longer needed.
71087         return 0; is fine for test program.
71088
71089         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
71090         New macros.
71091         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
71092
71093         * lib/path-concat.c (path_concat): Use base_len to compute
71094         base length, not strlen; this means we cannot rely on memcpy
71095         to null-terminate.
71096
71097         * lib/same.c (STREQ): Remove.
71098         (same_name): Handle the case where the basename ends in trailing '/'.
71099
71100         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
71101         a slash was stripped.  Do not strip the last slash after a
71102         file system prefix.
71103
71104 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71105
71106         * lib/Makefile.am (libfetish_a_SOURCES):
71107         Add strftime.c, since we now compile it on all hosts.
71108
71109         * lib/strftime.c (my_strftime):
71110         Define to nstrftime if emacs, but only if my_strftime is not defined.
71111         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
71112         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
71113         Add one more extra argument: a nanoseconds value.
71114         All uses changed.
71115         (ns): New macro.
71116         (my_strftime function): Add %N format.
71117         (emacs_strftimeu): Renamed from emacs_strftime,
71118         with extra ut argument.
71119
71120 2001-05-09  Paul Eggert  <eggert@twinsun.com>
71121
71122         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
71123
71124 2001-04-21  Jim Meyering  <meyering@lucent.com>
71125
71126         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
71127         doesn't interfere.
71128
71129 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71130
71131         * m4/ftruncate.m4: Check for chsize.
71132         Link with ftruncate.o unconditionally if ftruncate is missing.
71133         This was required when cross-compiling to i586-mingw32msvc.
71134
71135 2001-04-08  Jim Meyering  <meyering@lucent.com>
71136
71137         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
71138         recomputed; that's necessary when the offset spans a DST transition.
71139         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
71140
71141 2001-04-02  Jim Meyering  <meyering@lucent.com>
71142
71143         * lib/regex.h, regex.c: Update from GNU libc.
71144
71145 2001-03-24  Jim Meyering  <meyering@lucent.com>
71146
71147         * m4/jm-macros.m4: Require autoconf-2.49d.
71148
71149 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
71150
71151         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
71152
71153 2001-03-19  Paul Eggert  <eggert@twinsun.com>
71154
71155         * lib/version-etc.c (version_etc_copyright): Update to 2001.
71156
71157 2001-03-17  Jim Meyering  <meyering@lucent.com>
71158
71159         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
71160         now that the version in autoconf is equivalent.
71161         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
71162
71163         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
71164         Suggestion from Akim Demaille.
71165
71166         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
71167         (jm_PREREQ_TEMPNAME): New function.
71168
71169 2001-03-16  Paul Eggert  <eggert@twinsun.com>
71170
71171         * lib/tempname.c (uint64_t): Define to uintmax_t if
71172         not defined, and if UINT64_MAX is not defined.
71173         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
71174         Reported by John David Anglin.
71175
71176 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
71177
71178         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
71179         resolve alias if codeset is empty.
71180         * lib/config.charset (BeOS): Use wildcard syntax.
71181
71182 2001-03-13  Jim Meyering  <meyering@lucent.com>
71183
71184         * lib/path-concat.c (path_concat)
71185         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
71186         concatenating e.g., `C:' and `foo'.
71187         From Bruno Haible.
71188
71189 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71190
71191         * lib/localcharset.c (locale_charset): Don't use
71192         setlocale(LC_CTYPE,NULL). Don't return NULL.
71193         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
71194
71195 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71196
71197         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
71198         support for DOS/DJGPP.
71199
71200 2001-03-01  Paul Eggert  <eggert@twinsun.com>
71201
71202         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
71203         lacks mkstemp.  Compile our own tempname.c if we compile our own
71204         mkstemp.c, as mkstemp relies on tempname.
71205
71206 2001-03-01  Jim Meyering  <meyering@lucent.com>
71207
71208         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
71209         AH_VERBATIM really does output its argument verbatim.
71210
71211 2001-02-28  Paul Eggert  <eggert@twinsun.com>
71212
71213         * lib/Makefile.am (libfetish_a_SOURCES):
71214         Add dup-safer.c, fopen-safer.c.
71215         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
71216
71217         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
71218         * lib/unistd-safer.h: New files.
71219
71220 2001-02-25  Paul Eggert  <eggert@twinsun.com>
71221
71222         The mkstemp replacement is taken from glibc 2.2.2, with some
71223         portability fixes for use outside glibc, as follows:
71224
71225         * lib/tempname.c (struct_stat64): New macro.
71226         (direxists, __gen_tempname): Use it.
71227         This avoids a portability problem with Solaris 8.
71228
71229         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
71230         (<stddef.h>, <stdint.h>, <string.h>):
71231         Include only if STDC_HEADERS || _LIBC.
71232         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
71233         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
71234         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
71235         (__set_errno): Define this macro if <errno.h> doesn't.
71236         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
71237         Define these macros if <stdio.h> doesn't.
71238         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
71239         Define these macros if <sys/stat.h>
71240         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
71241         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
71242         __xstat64): Define if not _LIBC.
71243         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
71244         (__gen_tempname): Invoke gettimeofday only if
71245         HAVE_GETTIMEOFDAY || _LIBC;
71246         otherwise, fall back on plain "time".
71247         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
71248
71249         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
71250
71251         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
71252
71253 2001-02-18  Paul Eggert  <eggert@twinsun.com>
71254
71255         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
71256
71257 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71258
71259         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
71260         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
71261         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
71262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71263
71264 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71265
71266         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
71267         Remove workaround macros for hosts that have mbrtowc but not
71268         mbstate_t, as we now insist on proper declarations for both
71269         before using mbrtowc.
71270
71271 2001-02-17  Jim Meyering  <meyering@lucent.com>
71272
71273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
71274         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
71275         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
71276         UnixWare 7.1.1.
71277
71278         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
71279         rather than AC_CACHE_VAL.
71280
71281 2001-02-17  Jim Meyering  <meyering@lucent.com>
71282
71283         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
71284         around included file name.
71285
71286         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
71287
71288         * lib/strftime.c: Update from GNU libc (the only changes were to
71289         comments).
71290
71291 2001-02-17  Jim Meyering  <meyering@lucent.com>
71292
71293         * lib/regex.c: Update from libc.
71294
71295 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
71296
71297         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
71298         clash.
71299
71300 2001-02-16  Paul Eggert  <eggert@twinsun.com>
71301
71302         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
71303         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
71304         Reported by Mark Hounschell via Paul Eggert.
71305
71306 2001-02-07  Jim Meyering  <meyering@lucent.com>
71307
71308         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
71309
71310 2001-02-05  Jim Meyering  <meyering@lucent.com>
71311
71312         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
71313         it includes the patch required for `large file' support with at least
71314         HP-UX's 10.20 /bin/cc.
71315
71316 2001-02-03  Jim Meyering  <meyering@lucent.com>
71317
71318         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
71319         AS_IF, now that it works once again (mysteriously).
71320         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71321
71322 2001-01-30  Jim Meyering  <meyering@lucent.com>
71323
71324         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
71325         * m4/chown.m4: Rename conftestchown to conftest.chown.
71326         * m4/rename.m4: s/conftestdir/conftest.d1/ and
71327         s/conftestdir2/conftest.d2/.
71328         * m4/utimes.m4: s/conftestdata/conftest.data/
71329         Inspired by Pavel Roskin's change in autoconf.
71330
71331 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
71332
71333         * lib/config.charset: Update for FreeBSD 4.2.
71334
71335 2001-01-27  Jim Meyering  <meyering@lucent.com>
71336
71337         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
71338         a use of AS_IF.
71339         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71340
71341 2001-01-26  Jim Meyering  <meyering@lucent.com>
71342
71343         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
71344         quotearg.c includes it.
71345
71346 2001-01-26  Jim Meyering  <meyering@lucent.com>
71347
71348         * lib/quotearg.c: Include stddef.h.
71349         * lib/quote.c: Include stddef.h.
71350         Reported by Axel Kittenberger.
71351
71352         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
71353         line in double quotes so that it evokes a better diagnostic.
71354         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
71355         Reported by Axel Kittenberger.
71356
71357 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
71358
71359         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
71360         as if it was a `charset'.
71361
71362 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71363
71364         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
71365         has const.
71366
71367 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71368
71369         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
71370         to avoid a warning.  Add back 'const' to inptr.
71371
71372 2001-01-20  Jim Meyering  <meyering@lucent.com>
71373
71374         Be sure that headers are checked before used in code compiled
71375         for the type checks.
71376         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
71377         In place of that, invoke jm_CHECK_ALL_TYPES.
71378         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
71379         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
71380         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
71381         The check for ssize_t was mistakenly run before the test for unistd.h.
71382
71383         The configure-time check for stdbool.h was missing.
71384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
71385         (jm_PREREQ_HASH): New function.
71386
71387 2001-01-17  Jim Meyering  <meyering@lucent.com>
71388
71389         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
71390         for autoconf-2.49c.
71391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
71392
71393 2001-01-16  Jim Meyering  <meyering@lucent.com>
71394
71395         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
71396         From Bruno Haible.
71397
71398 2001-01-14  Jim Meyering  <meyering@lucent.com>
71399
71400         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
71401         foo and bar.  Create conftestdir/ in the script, not in the C code.
71402         Remove directories in the script, not in the C code.
71403         Remove conftestdir{,2} before trying to create the directory.
71404         Make the entire configure script fail if the mkdir fails.
71405
71406 2001-01-14  Jim Meyering  <meyering@lucent.com>
71407
71408         * lib/rename.c: New file.  From Volker Borchert.
71409         Include stdlib.h, string.h or strings.h, and xalloc.h.
71410         Use strip_trailing_slashes rather than open-coding it.
71411
71412 2001-01-03  Paul Eggert  <eggert@twinsun.com>
71413
71414         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
71415
71416 2001-01-03  Jim Meyering  <meyering@lucent.com>
71417
71418         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
71419         of local `inptr' to avoid warning with some system declarations of
71420         iconv.
71421
71422 2001-01-02  Volker Borchert  <bt@teknon.de>
71423
71424         * m4/rename.m4: New file.
71425         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
71426
71427 2001-01-01  Jim Meyering  <meyering@lucent.com>
71428
71429         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
71430         even on systems with utmpx.h.  It's necessary for the declaration of
71431         utmp's ut_user member.  Reported by Andreas Jaeger.
71432
71433         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
71434         available. They are required for the declarations of getgrgid and
71435         getpwuid resp.
71436         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
71437         Reported by Andreas Jaeger.
71438
71439 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
71440
71441         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
71442         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
71443         so `make install' also works in VPATH builds.
71444
71445 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
71446
71447         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
71448         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
71449         can be used in subdirectories.
71450
71451 2000-12-29  Paul Eggert  <eggert@twinsun.com>
71452
71453         * lib/modechange.c: Do not assume that mode_t uses the
71454         traditional octal encoding.  E.g. "chmod 1 FOO" should set
71455         the other-execute bit of FOO even if S_IXOTH != 1.
71456
71457         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
71458         WOTH, XOTH, ALLM): New macros.
71459         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
71460          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
71461         Use them.
71462         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
71463         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
71464         (mode_compile):
71465         No need to use uintmax_t; unsigned long is long enough.
71466         Don't bother to get suffix since we don't use it.
71467
71468 2000-12-26  Jim Meyering  <meyering@lucent.com>
71469
71470         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
71471         better with autoheader.
71472
71473 2000-12-24  Jim Meyering  <meyering@lucent.com>
71474
71475         * lib/hash.c (is_prime): Return explicit boolean values.
71476         (hash_get_first): Return NULL to appease Irix5.6's 89.
71477         Reported by Nelson Beebe.
71478
71479 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
71480
71481         * lib/localcharset.c (locale_charset): Add support for Win32.
71482
71483 2000-12-18  Paul Eggert  <eggert@twinsun.com>
71484
71485         * lib/physmem.h, lib/physmem.c: New files.
71486
71487         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
71488         (noinst_HEADERS): Add physmem.h.
71489
71490         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
71491         't' for compatibility with Solaris 8 sort.
71492
71493 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
71494
71495         * lib/config.charset: Add support for BeOS.
71496
71497 2000-12-17  Jim Meyering  <meyering@lucent.com>
71498
71499         * m4/dos.m4 (jm_AC_DOS): New file and macro.
71500         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
71501
71502 2000-12-16  Jim Meyering  <meyering@lucent.com>
71503
71504         This bug had a serious impact on chown: `chown N:M FILE' (for integer
71505         N and M) would have treated it like `chown N:N FILE'.
71506
71507         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
71508
71509 2000-12-16  Jim Meyering  <meyering@lucent.com>
71510
71511         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
71512         SHELLS_FILE to a file name that's useful on djgpp systems.
71513         Include stdlib.h.
71514         (ADDITIONAL_DEFAULT_SHELLS): Define.
71515         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
71516         Based mostly on a patch from Prashant TR.
71517
71518 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
71519
71520         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
71521         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
71522         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
71523
71524 2000-12-08  Andreas Schwab  <schwab@suse.de>
71525
71526         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
71527         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
71528
71529 2000-12-07  Jim Meyering  <meyering@lucent.com>
71530
71531         * lib/stripslash.c (ISSLASH): Define.
71532         (strip_trailing_slashes): Use ISSLASH rather than comparing against
71533         `/'.
71534         From Prashant TR.
71535
71536         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
71537         (dir_name_r): Declare this function as static.
71538         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
71539         manifest itself on a name containing a mix of slashes and
71540         backslashes.
71541         Make this function work with names starting with a DOS-style
71542         drive letter and colon prefix.
71543         (dir_name): Append `.' if necessary.
71544         Based mostly on patches from Prashant TR and Eli Zaretskii.
71545
71546         * lib/dirname.h (dir_name_r): Remove prototype.
71547
71548 2000-12-06  Paul Eggert  <eggert@twinsun.com>
71549
71550         * m4/off_t-format.m4: Remove this file.
71551         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
71552
71553 2000-12-06  Jim Meyering  <meyering@lucent.com>
71554
71555         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
71556         replacement strtoull, we may well need the replacement strtoul, too.
71557         Check for declarations of strtoul and strtoull.
71558         Check for strtol.  Mainly as a cue to cause automake to include
71559         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
71560         Check for limits.h -- strtol.c needs it.
71561
71562 2000-12-05  Jim Meyering  <meyering@lucent.com>
71563
71564         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
71565
71566 2000-12-04  Jim Meyering  <meyering@lucent.com>
71567
71568         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
71569         Also include memory.h, stdlib.h, unistd.h if appropriate.
71570         Reported by Andreas Jaeger (conflicting declaration of malloc).
71571
71572 2000-12-02  Jim Meyering  <meyering@lucent.com>
71573
71574         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
71575         * m4/jm-macros.m4 (jm_MACROS): require it.
71576
71577 2000-12-02  Jim Meyering  <meyering@lucent.com>
71578
71579         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
71580
71581 2000-12-01  Paul Eggert  <eggert@twinsun.com>
71582
71583         * lib/memrchr.c: Include <config.h> before any system include file.
71584
71585 2000-11-30  Jim Meyering  <meyering@lucent.com>
71586
71587         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
71588
71589 2000-11-30  Jim Meyering  <meyering@lucent.com>
71590
71591         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
71592
71593 2000-11-29  Paul Eggert  <eggert@twinsun.com>
71594
71595         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
71596
71597 2000-11-26  Jim Meyering  <meyering@lucent.com>
71598
71599         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
71600
71601 2000-11-22  Paul Eggert  <eggert@twinsun.com>
71602
71603         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
71604         size of (size_t) -1; it's not portable.
71605
71606 2000-11-17  Jim Meyering  <meyering@lucent.com>
71607
71608         * lib/strstr.c: Update from GNU libc.
71609
71610 2000-11-17  Akim Demaille  <akim@epita.fr>
71611
71612         * lib/obstack.h: Formatting changes.
71613         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
71614         prevent type checking.
71615         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
71616         cast the value to (void *): assigning a `foo *' to a `void *'
71617         variable is valid.
71618         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
71619
71620 2000-11-16  Jim Meyering  <meyering@lucent.com>
71621
71622         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
71623
71624 2000-11-11  Jim Meyering  <meyering@lucent.com>
71625
71626         * lib/error.c: Add a couple #includes, merging from GNU libc version.
71627
71628 2000-11-10  Jim Meyering  <meyering@lucent.com>
71629
71630         * lib/obstack.h: Update from GNU libc.
71631         * lib/obstack.c: Likewise.
71632
71633 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
71634
71635         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
71636
71637 2000-11-06  Paul Eggert  <eggert@twinsun.com>
71638
71639         * lib/getusershell.c (setusershell): Use rewind rather than
71640         fseek/fseeko, to avoid configuration hassles with fseeko.
71641         Don't bother opening SHELLS_FILE if shellstream is NULL;
71642         it's not necessary.
71643
71644 2000-11-05  Jim Meyering  <meyering@lucent.com>
71645
71646         * lib/makepath.h (make_dir): Declare.
71647         * lib/makepath.c (make_dir): Remove `static' attribute.
71648         Tweak a comment.
71649
71650 2000-11-04  Jim Meyering  <meyering@lucent.com>
71651
71652         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
71653
71654 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
71655
71656         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
71657         last one in a bucket, advance to the next bucket.
71658
71659 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
71660
71661         * lib/fnmatch.c: Do not comment out all the code if we are using
71662         the GNU C library, because in some cases we are replacing buggy
71663         code in the GNU C library itself.
71664
71665 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
71666
71667         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
71668         (regex_compile): Catch bogus \(\1\).
71669
71670 2000-10-30  Paul Eggert  <eggert@twinsun.com>
71671
71672         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
71673         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
71674         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
71675
71676 2000-10-30  Paul Eggert  <eggert@twinsun.com>
71677
71678         * lib/error.h, getline.h, modechange.h:
71679         Remove "2000" from Copyright line, as the file hasn't been
71680         changed this year other than in the copyright notice.
71681
71682         * lib/xalloc.h: Add "2000" to Copyright line, as this file
71683         was changed this year.
71684
71685 2000-10-29  Jim Meyering  <meyering@lucent.com>
71686
71687         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
71688         renaming.
71689         * m4/ls-mntd-fs.m4: Likewise
71690
71691 2000-10-29  Jim Meyering  <meyering@lucent.com>
71692
71693         * lib/xstat.in: Fix grammar in comment.
71694
71695 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
71696
71697         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
71698         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
71699         doesn't define __restrict_arr.
71700
71701 2000-10-28  Jim Meyering  <meyering@lucent.com>
71702
71703         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
71704         (jm_PREREQ_MEMCHR): New function.
71705
71706 2000-10-28  Jim Meyering  <meyering@lucent.com>
71707
71708         * lib/memchr.c: Update from libc.
71709         Adjust for portability:
71710         [HAVE_STDLIB_H]: Include stdlib.h.
71711         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
71712         Undef __memchr, too.
71713         [!weak_alias]: Define __memchr to memchr.
71714
71715         * lib/regex.c: Update from libc.
71716         * lib/regex.h: Likewise.
71717         * lib/getopt1.c: Likewise.
71718         * lib/memcmp.c: Likewise.
71719
71720         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
71721         Avoid using fseek, when possible -- it's broken by design.
71722         Patch by Ulrich Drepper.
71723
71724 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
71725
71726         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
71727         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
71728         Giving in to popular pressure to shut up the compiler with casts.
71729
71730 2000-10-26  Jim Meyering  <meyering@lucent.com>
71731
71732         * lib/strftime.c: Update from libc.
71733
71734 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
71735
71736         * regex.c: More `unsigned char' -> `re_char' changes.
71737         Also change several `int' into `re_wchar_t'.
71738         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
71739         (PUSH_FAILURE_POINTER): Don't cast any more.
71740         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
71741         We want GCC to complain, since this piece of code makes
71742         re_match non-reentrant, which *should* be fixed.
71743         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
71744         (EXTEND_BUFFER): Use RETALLOC.
71745         (SET_LIST_BIT): Don't cast.
71746         (re_wchar_t): New type.
71747         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
71748         that those two functions will always properly return.
71749         (IMMEDIATE_QUIT_CHECK): Cast to void.
71750         (analyse_first): Use recursion rather than an explicit stack.
71751         (re_compile_fastmap): Can't fail anymore.
71752         (re_search_2): Don't check re_compile_fastmap for failure.
71753         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
71754         Now also sets the new value (passed in a new argument).
71755         (re_match_2_internal): Use it.
71756         Also, use a new var `reg' of type size_t when looping through regs
71757         rather than reuse the inappropriate `mcnt'.
71758
71759 2000-10-25  Jim Meyering  <meyering@lucent.com>
71760
71761         * lib/obstack.c: Update from libc.
71762
71763 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
71764
71765         * regex.c (regex_compile): Change the way of handling a range from
71766         a char less than 256 to a char not less than 256.
71767
71768 2000-10-24  Andrew Innes  <andrewi@gnu.org>
71769
71770         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
71771         NT-Emacs only.
71772         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
71773         so that re_search functions only quit when callers expect them to.
71774
71775 2000-10-23  Jim Meyering  <meyering@lucent.com>
71776
71777         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
71778         wrong.  That set_locale call must not have any side effects.
71779         From Paul Eggert.
71780
71781 2000-10-22  Jim Meyering  <meyering@lucent.com>
71782
71783         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
71784         [CYCLIC]: Remove now-unused definition.
71785
71786         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
71787         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
71788         Suggestion from Ulrich Drepper.
71789
71790 2000-10-21  Jim Meyering  <meyering@lucent.com>
71791
71792         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
71793         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
71794         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
71795
71796 2000-10-21  Jim Meyering  <meyering@lucent.com>
71797
71798         * lib/dirname.c (memrchr): Declare if necessary.
71799         (dir_name): Remove the restriction that there be no
71800         trailing slashes.  Now, this code skips past them, effectively
71801         ignoring them.
71802         [TEST_DIRNAME] (main): New unit tests.
71803
71804         * lib/memrchr.c: New file from GNU libc.
71805         Undef __memrchr, too.
71806         [!weak_alias]: Define __memrchr to memrchr.
71807         Guard weak_alias use with `#ifdef weak_alias'.
71808
71809 2000-10-21  Jim Meyering  <meyering@lucent.com>
71810
71811         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
71812         (dir_name): Use dir_name_r.
71813         * lib/dirname.h (dir_name_r): Declare it.
71814
71815 2000-10-17  Jim Meyering  <meyering@lucent.com>
71816
71817         * lib/quote.h (PARAMS): Define and use.
71818         Reported by Akim Demaille.
71819
71820         * lib/getopt.c: Update from libc.
71821
71822 2000-10-16  Jim Meyering  <meyering@lucent.com>
71823
71824         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
71825         setlocale.
71826         From Jan Fedak.
71827
71828 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
71829
71830         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
71831
71832 2000-09-25  Jim Meyering  <meyering@lucent.com>
71833
71834         * lib/md5.h (rol): Define (from GnuPG).
71835
71836         * lib/sha.c: Give credit (GnuPG) where due.
71837         (M): Use rol rather than open-coding it.
71838         Add a FIXME comment.
71839
71840 2000-09-21  Jim Meyering  <meyering@lucent.com>
71841
71842         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
71843         Reported by Michael Stone.
71844
71845 2000-09-20  Jim Meyering  <meyering@lucent.com>
71846
71847         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
71848         (noinst_HEADERS): Add sha.h.
71849         Based on code from Scott G. Miller and from GnuPG.
71850
71851 2000-09-18  Jim Meyering  <meyering@lucent.com>
71852
71853         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
71854         LIBS. Otherwise, everyone ends up linking with -lelf for some
71855         configurations.
71856         Reported by Mike Stone.
71857
71858 2000-09-15  Jim Meyering  <meyering@lucent.com>
71859
71860         * lib/regex.c: Update from libc.
71861
71862 2000-09-10  Jim Meyering  <meyering@lucent.com>
71863
71864         * lib/getopt.c (_getopt_internal): Update from glibc.
71865
71866 2000-09-09  Jim Meyering  <meyering@lucent.com>
71867
71868         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
71869         think it should be used as a general replacement for isascii.
71870         * lib/fnmatch.c: Likewise.
71871         * lib/mbswidth.c: Likewise
71872         * lib/regex.c: Likewise.
71873
71874         Don't use atoi.
71875         * lib/userspec.c: Include sys/param.h and limits.h.
71876         Include xstrtol.h.
71877         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
71878         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
71879         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
71880         UID, GID.  Check range.
71881
71882 2000-09-06  Jim Meyering  <meyering@lucent.com>
71883
71884         * lib/getopt.c (_getopt_internal): Update from glibc.
71885
71886 2000-08-30  Jim Meyering  <meyering@lucent.com>
71887
71888         * lib/strftime.c: Merge in changes from GNU libc.
71889
71890 2000-08-26  Jim Meyering  <meyering@lucent.com>
71891
71892         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
71893         * m4/fpending.m4: New file.
71894
71895 2000-08-26  Jim Meyering  <meyering@lucent.com>
71896
71897         * lib/closeout.c: Include "__fpending.h".
71898         (close_stdout_status): Return right away if there's nothing to flush.
71899
71900         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
71901         * lib/__fpending.c: New file.
71902         * lib/__fpending.h: New file.
71903
71904 2000-08-20  Jim Meyering  <meyering@lucent.com>
71905
71906         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
71907         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
71908         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
71909
71910 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
71911
71912         Improve fileutils installation on systems where running
71913         programs (like install) can't be unlinked.
71914         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
71915         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
71916
71917 2000-08-07  Paul Eggert  <eggert@twinsun.com>
71918
71919         Standardize on "memory exhausted" instead of "Memory exhausted"
71920         or "virtual memory exhausted".
71921         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
71922         "virtual memory exhausted".
71923         * lib/same.c (same_name): Invoke xalloc_die instead of printing
71924         our own message.
71925         * lib/userspec.c (parse_user_spec): Likewise.
71926         * lib/bumpalloc.h: comment fix
71927         * lib/same.c, userspec.c: Include xalloc.h.
71928
71929         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
71930         not char *const and pointing to a constant array.
71931         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
71932         (xrealloc): Comment fix.
71933
71934         * lib/userspec.c (parse_user_spec):
71935         Don't translate a message until just before returning,
71936         to avoid unnecessary translation.
71937
71938 2000-08-07  Jim Meyering  <meyering@lucent.com>
71939
71940         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
71941         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
71942         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
71943         getgroups.c, gethostname.c, getopt.h, group-member.c,
71944         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
71945         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
71946         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
71947         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
71948         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
71949         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
71950         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
71951         yesno.c: Back out Copyright date changes for each file with no change
71952         this year.  This eases coordination with other programs using the same
71953         source code modules.  From Paul Eggert.
71954
71955 2000-08-06  Paul Eggert  <eggert@twinsun.com>
71956
71957         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
71958         not char, for compatibility with glibc 2.1.3 strftime.c.
71959
71960 2000-08-03  Greg McGary  <greg@mcgary.org>
71961
71962         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
71963         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
71964         (EXTEND_BUFFER): Use them.
71965
71966 2000-08-01  Jim Meyering  <meyering@lucent.com>
71967
71968         * lib/dirname.c (ISSLASH): Define.
71969         (BACKSLASH_IS_PATH_SEPARATOR): Define.
71970         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
71971         both `\' and `/' may be use as path separators.
71972         Based on a patch from Prashant TR.
71973
71974 2000-07-31  Paul Eggert  <eggert@twinsun.com>
71975
71976         * lib/quotearg.c (quotearg_n_options): Don't make the initial
71977         slot vector a constant, since it might get modified.
71978
71979 2000-07-31  Jim Meyering  <meyering@lucent.com>
71980
71981         * lib/xmalloc.c: Use `virtual memory exhausted', not
71982         `Memory exhausted'.
71983         * lib/obstack.c (print_and_abort): Likewise.
71984
71985 2000-07-30  Paul Eggert  <eggert@twinsun.com>
71986
71987         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
71988         buffer, so that the caller can always quote one small
71989         component of a "memory exhausted" message in slot 0.
71990         From a suggestion by Jim Meyering.
71991
71992 2000-07-30  Jim Meyering  <meyering@lucent.com>
71993
71994         * lib/makepath.c (make_path): Quote the other instance, too.
71995
71996         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
71997         (STATIC_BUF_SIZE): Define.
71998         (quotearg_n_options): Use only statically allocated storage when
71999         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72000         than STATIC_BUF_SIZE.
72001
72002 2000-07-29  Jim Meyering  <meyering@lucent.com>
72003
72004         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72005         * lib/dirname.c (dir_name): Likewise.
72006
72007         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72008         `/'.
72009
72010         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72011         (dir_name): Assert that there are no trailing slashes.
72012
72013 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72014
72015         * lib/mbswidth.h (mbswidth): Add a flags argument.
72016         (mbswidth): New declaration.
72017         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72018         * lib/mbswidth.c (mbswidth): Add a flags argument.
72019         (mbsnwidth): New function.
72020
72021 2000-07-24  Jim Meyering  <meyering@lucent.com>
72022
72023         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72024
72025 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72026
72027         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72028
72029 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72030
72031         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72032         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72033         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72034         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72035         invoke multibyte primitives.
72036
72037 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72038
72039         * lib/quotearg.c:
72040         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72041         so that mbstate_t is always defined.
72042
72043         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72044         be 1 in at least one GCC installation, and this configuration
72045         error is likely to be common.  Ignoring MB_LEN_MAX hurts
72046         performance on hosts that have mbrtowc but have only unibyte
72047         locales, but I assume these hosts are rare.
72048
72049 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72050
72051         * lib/mbswidth.c (_XOPEN_SOURCE):
72052         Don't define; this causes problems on Solaris 7.
72053         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
72054
72055 2000-07-23  Jim Meyering  <meyering@lucent.com>
72056
72057         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
72058         too: getgrgid, getpwuid, getuid.
72059
72060 2000-07-23  Jim Meyering  <meyering@lucent.com>
72061
72062         * lib/basename.c (base_name): Add an assertion.
72063
72064 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
72065
72066         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
72067         shadow its mbsinit function.
72068
72069 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72070
72071         * lib/mbswidth.h: New file.
72072         * lib/mbswidth.c: New file.
72073         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
72074         (noinst_HEADERS): Add mbswidth.h.
72075
72076 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72077
72078         * lib/config.charset: Add support for FreeBSD. Improve support for
72079         HP-UX and IRIX 6.
72080
72081 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
72082
72083         * m4/mbswidth.m4: New file.
72084         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
72085
72086 2000-07-15  Jim Meyering  <meyering@lucent.com>
72087
72088         * lib/makepath.c: Include quote.h.
72089         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
72090         corresponding argument in a `quote (...)' call.
72091         Give better diagnostics.
72092
72093         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
72094         (noinst_HEADERS): Add quote.h.
72095
72096         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
72097         from tar's src/misc.c.
72098         * lib/quote.h: New file.  Prototypes for same.
72099
72100 2000-07-14  Paul Eggert  <eggert@twinsun.com>
72101
72102         From a suggestion by Bruno Haible.
72103         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
72104         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
72105         to decide whether to define the BeOS workaround macro;
72106         this adjusts to the change to AC_MBSTATE_T.
72107
72108 2000-07-14  Jim Meyering  <meyering@lucent.com>
72109
72110         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
72111         jm_AC_TYPE_UINTMAX_T.
72112
72113 2000-07-13  Paul Eggert  <eggert@twinsun.com>
72114
72115         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
72116
72117         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
72118         quotearg_buffer_restyled): Add support for
72119         clocale_quoting_style.  Undo previous change to
72120         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
72121         and "{RIGHT QUOTATION MARK}" msgids.
72122
72123 2000-07-10  Paul Eggert  <eggert@twinsun.com>
72124
72125         From a suggestion by Bruno Haible.
72126         * m4/mbstate_t.m4 (AC_MBSTATE_T):
72127         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
72128         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
72129         and mbstate_t, to a single-part test that simply defines mbstate_t.
72130         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
72131         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
72132
72133 2000-07-10  Jim Meyering  <meyering@lucent.com>
72134
72135         * m4/strerror_r.m4: Mirror the correction made in autoconf.
72136
72137         * m4/gnu-source.m4: Output to confdefs.h directly.
72138         Suggestion from Akim Demaille.
72139
72140 2000-07-09  Paul Eggert  <eggert@twinsun.com>
72141
72142         The old behavior of quoting `like this' doesn't look good with
72143         newer, ISO-style fonts.  See:
72144         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
72145
72146         Instead, quote "like this" by default.  Let the translator
72147         tailor the locale-specific quoting behavior by providing
72148         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
72149
72150         * lib/quotearg.c (N_): New macro.
72151         (gettext_default): New function.
72152         (quotearg_buffer_restyled): Use
72153         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
72154         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
72155
72156 2000-07-09  Jim Meyering  <meyering@lucent.com>
72157
72158         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
72159         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
72160
72161         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
72162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
72163
72164 2000-07-09  Jim Meyering  <meyering@lucent.com>
72165
72166         * lib/Most files: Update copyright dates to include 2000.
72167
72168 2000-07-08  Jim Meyering  <meyering@lucent.com>
72169
72170         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
72171         if not defined.
72172         (xgethostname): Remove now-unnecessary #ifdef.
72173         Move declaration of `err' into loop where it's used.
72174
72175 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72176         and Bruno Haible  <haible@clisp.cons.org>
72177
72178         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
72179         only if the test for an object-type mbstate_t fails.  This
72180         prevents us from mistakenly reporting that mbstate_t is a
72181         system object type after we "#define mbstate_t int" to work
72182         around its lack.
72183
72184 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72185         and Bruno Haible  <haible@clisp.cons.org>
72186
72187         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
72188
72189 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72190
72191         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
72192         to strerror_r.
72193         Include <ctype.h> for use of isalpha.
72194
72195 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72196
72197         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
72198         by allocating a larger buffer. Test the gethostname return value for
72199         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
72200         returns an error and ENAMETOOLONG isn't defined.
72201
72202 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72203
72204         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
72205         dimension.
72206
72207 2000-07-04  Jim Meyering  <meyering@lucent.com>
72208
72209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
72210         of the deprecated AC_CHECKING.
72211
72212 2000-07-04  Jim Meyering  <meyering@lucent.com>
72213
72214         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
72215         Reported by Bruno Haible.
72216
72217 2000-07-04  Jim Meyering  <meyering@lucent.com>
72218
72219         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
72220         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
72221         lacks mbrtowc.
72222
72223 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72224
72225         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
72226         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
72227
72228 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72229         and Bruno Haible  <haible@clisp.cons.org>
72230
72231         * lib/quotearg.c (mbrtowc):
72232         Assign to *pwc, and return 1 only if result is nonzero.
72233         (iswprint): Use ISPRINT when substituting our own mbrtowc.
72234
72235 2000-07-03  Jim Meyering  <meyering@lucent.com>
72236
72237         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
72238
72239 2000-07-03  Jim Meyering  <meyering@lucent.com>
72240
72241         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
72242         This is necessary to get a definition of e.g., UTMP_FILE on
72243         HP-UX 10.20.
72244         From Bob Proulx.
72245
72246 2000-07-02  Jim Meyering  <meyering@lucent.com>
72247
72248         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
72249
72250         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
72251         AC_LIBOBJ(function_name).
72252         * m4/chown.m4: Likewise.
72253         * m4/fnmatch.m4: Likewise.
72254         * m4/ftruncate.m4: Likewise.
72255         * m4/getgroups.m4: Likewise.
72256         * m4/getline.m4: Likewise.
72257         * m4/group-member.m4: Likewise.
72258         * m4/jm-macros.m4: Likewise.
72259         * m4/lstat.m4: Likewise.
72260         * m4/malloc.m4: Likewise.
72261         * m4/memcmp.m4: Likewise.
72262         * m4/nanosleep.m4: Likewise.
72263         * m4/putenv.m4: Likewise.
72264         * m4/realloc.m4: Likewise.
72265         * m4/regex.m4: Likewise.
72266         * m4/stat.m4: Likewise.
72267         * m4/strftime.m4: Likewise.
72268
72269 2000-07-02  Jim Meyering  <meyering@lucent.com>
72270
72271         * lib/quotearg.c (mbstate_t): Don't define here.
72272
72273 2000-07-02  Jim Meyering  <meyering@lucent.com>
72274
72275         * lib/nanosleep.c (SIGCONT): Define if not already defined.
72276
72277 2000-07-01  Jim Meyering  <meyering@lucent.com>
72278
72279         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
72280
72281 2000-07-01  Jim Meyering  <meyering@lucent.com>
72282
72283         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
72284         problem.
72285
72286 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72287
72288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
72289         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
72290
72291 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72292
72293         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
72294         per change in ../m4/ls-mntd-fs.m4.
72295         (read_filesystem_list): Ignore symbolic links.
72296
72297 2000-06-29  Jim Meyering  <meyering@lucent.com>
72298
72299         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
72300         for declaration of strcmp.
72301
72302         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
72303
72304         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
72305         Avoid warning by casting result to `char *' to remove `const'.
72306
72307 2000-06-28  Jim Meyering  <meyering@lucent.com>
72308
72309         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
72310         included by quotearg.c, for which we perform this test.  From
72311         Bruno Haible.
72312
72313 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72314
72315         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
72316         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
72317         <utmpx.h> exists, put readutmp.o into LIBOBJS.
72318
72319 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72320
72321         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
72322
72323 2000-06-26  Paul Eggert  <eggert@twinsun.com>
72324
72325         savedir now sets errno on failure and invokes xmalloc to get memory.
72326         Fix a couple of other minor bugs while we're at it.
72327
72328         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
72329         (NAMLEN): Remove macro.
72330         (malloc, realloc): Remove decls.
72331         (stpcpy): Likewise.
72332         ("xalloc.h"): Include.
72333         (NAME_SIZE_DEFAULT): New macro.
72334         (savedir): Use xmalloc / xrealloc to allocate memory.
72335         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
72336         Skip "" directory entries.
72337         Use strlen to calculate directory entry length, since the old method
72338         is rarely used these days and isn't worth supporting.
72339         Don't use a pointer after freeing it.
72340         Check for integer overflow when calculating allocation size.
72341         Use memcpy to copy entries, instead of stpcpy.
72342         Set errno properly when returning NULL.
72343         Check for readdir error.
72344
72345 2000-06-26  Jim Meyering  <meyering@lucent.com>
72346
72347         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
72348
72349 2000-06-25  Jim Meyering  <meyering@lucent.com>
72350
72351         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
72352         Linux header bug when _XOPEN_SOURCE is defined to 500.
72353
72354 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72355
72356         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
72357         deficiency.
72358
72359 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72360
72361         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
72362         Include xalloc.h.
72363         Don't include <stdlib.h>.  Don't declare malloc, realloc.
72364
72365 2000-06-24  Jim Meyering  <meyering@lucent.com>
72366
72367         * m4/strerror_r.m4: Revive this file -- to try out an experimental
72368         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
72369         for which strerror does return char*, but which lacks a conveniently
72370         accessible declaration of the function.  If the compile-test says
72371         strerror_r doesn't work, then resort to a `run'-test that works on
72372         BeOS and segfaults on DEC Unix.
72373
72374 2000-06-24  Jim Meyering  <meyering@lucent.com>
72375
72376         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
72377
72378 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72379
72380         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
72381         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
72382
72383 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72384
72385         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
72386         (mbrtowc, mbstate_t): Define substitutes if
72387         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
72388         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
72389         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
72390
72391 2000-06-23  Jim Meyering  <meyering@lucent.com>
72392
72393         * m4/afs.m4: Add missing AC_MSG_RESULT.
72394         Reported by Bruno Haible.
72395
72396         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
72397         Suggestion from Bruno Haible.
72398
72399 2000-06-23  Jim Meyering  <meyering@lucent.com>
72400
72401         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
72402
72403 2000-06-21  Jim Meyering  <meyering@lucent.com>
72404
72405         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
72406
72407 2000-06-21  Jim Meyering  <meyering@lucent.com>
72408
72409         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
72410         (noinst_HEADERS): Add getstr.h.
72411
72412         * lib/getline.c (getstr): Move into a separate file.
72413         * lib/getstr.c (getstr): New file, extracted from getline.c, with
72414         the following changes: new parameter, delim2; both delim[12]
72415         parameters have type `int', not `char'.  The latter would lose
72416         with 8-bit delimiters.
72417         * lib/getstr.h: New file.
72418
72419 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72420
72421         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
72422         than 1024, return a memory chunk of least possible size, instead
72423         of size PATH_MAX + 2. In the loop, increment the size proportionally.
72424         Use free/xmalloc instead of xrealloc to avoid copying for very long
72425         paths.
72426
72427 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72428
72429         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
72430         the empty string.
72431
72432 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72433
72434         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
72435         address, not strdup.  Include <stdlib.h> and don't declare free().
72436
72437 2000-06-19  Jim Meyering  <meyering@lucent.com>
72438
72439         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
72440
72441 2000-06-18  Jim Meyering  <meyering@lucent.com>
72442
72443         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
72444
72445         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
72446         `checking whether...' message to be consistent with that of the
72447         lstat test.
72448
72449 2000-06-18  Jim Meyering  <meyering@lucent.com>
72450
72451         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
72452         Besides, these days every porting target provides a mkdir function.
72453
72454         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
72455         needed. (this snippet comes from src/system.h).
72456
72457 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
72458
72459         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
72460
72461 2000-06-15  Paul Eggert  <eggert@twinsun.com>
72462
72463         * lib/human.c (adjust_value): New function.
72464         (human_readable_inexact): Apply rounding style even when
72465         printing approximate values.
72466
72467 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72468
72469         * lib/human.c (human_readable_inexact): Allow an input block
72470         size that is not a multiple of the output block size, and vice versa.
72471         Reported by Piergiorgio Sartor.
72472
72473 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72474
72475         * lib/getdate.y (get_date): Apply relative times after time
72476         zone indicator, not before.  Reported by Todd A. Jacobs.
72477
72478 2000-06-13  Jim Meyering  <meyering@lucent.com>
72479
72480         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
72481
72482         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
72483
72484 2000-06-12  Paul Eggert  <eggert@twinsun.com>
72485
72486         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
72487
72488 2000-06-12  Jim Meyering  <meyering@lucent.com>
72489
72490         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
72491         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
72492         optional argument.
72493         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
72494         the optional argument, `lib'.
72495
72496 2000-06-08  Jim Meyering  <meyering@lucent.com>
72497
72498         * m4/largefile.m4: Remove file (now that it's part of autoconf).
72499
72500 2000-06-04  Paul Eggert  <eggert@twinsun.com>
72501
72502         Rewrite largefile configuration so that we don't need to run
72503         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
72504         AC_CANONICAL_HOST in configure.in -- jmm]
72505
72506         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
72507         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
72508         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
72509         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
72510         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
72511         All uses changed.
72512         Instead of inspecting the output of getconf, try to compile the
72513         test program without and with the macro definition.
72514         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
72515         for getconf.  Instead, check for the needed flags by compiling
72516         test programs.
72517
72518 2000-06-04  Paul Eggert  <eggert@twinsun.com>
72519
72520         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
72521
72522 2000-06-04  Jim Meyering  <meyering@lucent.com>
72523
72524         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
72525         SunOS 4.1.4 for which gid_t is an unsigned type.
72526
72527 2000-06-03  Jim Meyering  <meyering@lucent.com>
72528
72529         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
72530         now that autoconf requires that.
72531
72532         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
72533         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
72534         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
72535
72536 2000-06-03  Jim Meyering  <meyering@lucent.com>
72537
72538         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
72539
72540 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72541
72542         * m4/glibc21.m4: New file.
72543         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
72544
72545 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72546
72547         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
72548         newer, don't install charset.alias.
72549         * lib/config.charset: Change the Linux/glibc rules so they become empty
72550         on glibc-2.1 or newer.
72551
72552 2000-06-02  Jim Meyering  <meyering@lucent.com>
72553
72554         * lib/mountlist.c: Back out last change.  Instead, do this...
72555         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
72556         me_dummy member using the same `ignore'-testing code.
72557         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
72558         fs_type strings.
72559         From Mark D. Roth.
72560
72561 2000-05-29  Jim Meyering  <meyering@lucent.com>
72562
72563         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
72564         mounts with the `ignore' attribute.  Based on a patch from
72565         Mark D. Roth.
72566
72567 2000-05-28  Jim Meyering  <meyering@lucent.com>
72568
72569         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
72570         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72571         * m4/stat.m4: Likewise.
72572         * m4/lstat.m4: Likewise.
72573         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
72574
72575         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
72576         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
72577
72578 2000-05-26  Jim Meyering  <meyering@lucent.com>
72579
72580         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
72581
72582 2000-05-24  Jim Meyering  <meyering@lucent.com>
72583
72584         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
72585         autoconf requires that.
72586         * m4/lib-check.m4: Likewise.
72587         * m4/jm-macros.m4: Likewise.
72588         * m4/strftime.m4: Likewise.
72589
72590         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
72591         AC_CHECK_DECLS, now that autoconf requires that.
72592
72593 2000-05-22  Jim Meyering  <meyering@lucent.com>
72594
72595         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72596         * m4/lstat.m4: Likewise.
72597
72598 2000-05-22  Jim Meyering  <meyering@lucent.com>
72599
72600         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
72601
72602 2000-05-20  Jim Meyering  <meyering@lucent.com>
72603
72604         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
72605         (jm_PREREQ): Use it.
72606
72607 2000-05-18  Jim Meyering  <meyering@lucent.com>
72608
72609         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
72610         back, too, since it may have been modified by allocate_entry.
72611         (hash_delete): Rewrite to use neither the assignment operator
72612         nor the comma operator in an if-expression.
72613
72614 2000-05-15  Paul Eggert  <eggert@twinsun.com>
72615
72616         * lib/closeout.c:
72617         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
72618         Remove; no longer needed.
72619         "quotearg.h": Add include.
72620         (file_name): Do not bother to explicitly initialize to NULL; it's less
72621         efficient on some hosts.
72622         (close_stdout_status): Remove test as to whether stdout was already
72623         closed; it breaks for the case "echo x | sort >&-".
72624         Quote file name colons.
72625         Do not assume that _("write error") lacks format strings.
72626
72627 2000-05-15  Jim Meyering  <meyering@lucent.com>
72628
72629         * lib/version-etc.c (version_etc_copyright): Update the copyright
72630         string used in all --version output.
72631
72632 2000-05-14  Jim Meyering  <meyering@lucent.com>
72633
72634         * lib/closeout.c (close_stdout_set_file_name): New function.
72635         (close_stdout_status): Use new file-scoped global.
72636         Return right away if fstat says the stdout file descriptor is invalid.
72637         * lib/closeout.h (close_stdout_set_file_name): Declare.
72638
72639 2000-05-10  Jim Meyering  <meyering@lucent.com>
72640
72641         * lib/closeout.c [default_exit_status]: New file-scoped variable.
72642         (close_stdout_set_status): New function.
72643         * lib/closeout.h (close_stdout_set_status): Declare.
72644
72645 2000-05-09  Jim Meyering  <meyering@lucent.com>
72646
72647         * m4/gettext.m4: Rename this...
72648         * m4/libintl.m4: ...to this.
72649
72650 2000-05-08  Jim Meyering  <meyering@lucent.com>
72651
72652         * lib/long-options.c: Don't include closeout.h.
72653         (parse_long_options): Don't call close_stdout for --version.
72654
72655 2000-05-06  Paul Eggert  <eggert@twinsun.com>
72656
72657         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
72658         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
72659         2.1.3 bug.  This avoids a clash when files like regex.c define
72660         _GNU_SOURCE.
72661
72662 2000-05-06  Jim Meyering  <meyering@lucent.com>
72663
72664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
72665         (AC_REPLACE_FUNCS): Add strnlen.
72666
72667         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
72668         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
72669
72670         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
72671         AC_SEARCH_LIBS call for nanosleep.
72672         (LIB_NANOSLEEP): Set and AC_SUBST.
72673
72674 2000-05-06  Jim Meyering  <meyering@lucent.com>
72675
72676         * lib/strnlen.c: Undefine __strnlen and strnlen.
72677         [!weak_alias]: Define __strnlen to strnlen.
72678
72679         * lib/atexit.c: New file, from libiberty.
72680
72681 2000-05-06  Jim Meyering  <meyering@lucent.com>
72682
72683         * lib/closeout.c (close_stdout_status): Also check for errors on the
72684         stderr stream.
72685
72686 2000-05-05  Jim Meyering  <meyering@lucent.com>
72687
72688         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
72689         AC_SEARCH_LIBS call for clock_gettime.
72690         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
72691
72692         * m4/search-libs.m4: Update from autoconf.
72693
72694         su doesn't work on Solaris 2.6.
72695         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
72696         <shadow.h>.  Reported by Dragos Harabor.
72697
72698 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
72699
72700         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
72701         memcpy instead of xmalloc, xrealloc, path_concat.
72702         (locale_charset): Treat empty environment variables as absent.
72703         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
72704
72705 2000-05-04  Jim Meyering  <meyering@lucent.com>
72706
72707         * lib/getopt.c: Update from glibc.
72708         * lib/obstack.c: Likewise.
72709         * lib/obstack.h: Likewise.
72710         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
72711         file
72712
72713         * lib/regex.h: Likewise.
72714         * lib/strndup.c: Likewise.
72715         * lib/strnlen.c: New file, from glibc.
72716
72717 2000-05-03  Jim Meyering  <meyering@lucent.com>
72718
72719         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
72720
72721 2000-05-02  Paul Eggert  <eggert@twinsun.com>
72722
72723         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
72724         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
72725         compile-time test, rather than inspecting host and OS, to
72726         decide whether to define _LARGEFILE_SOURCE.
72727
72728 2000-05-01  Jim Meyering  <meyering@lucent.com>
72729
72730         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
72731
72732         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
72733         Based on a patch from Bruno Haible.
72734
72735 2000-05-01  Jim Meyering  <meyering@lucent.com>
72736
72737         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
72738
72739 2000-04-29  Jim Meyering  <meyering@lucent.com>
72740
72741         * lib/path-concat.c: Declare strdup only if it's not defined.
72742         * lib/canon-host.c: Likewise.
72743
72744 2000-04-28  Jim Meyering  <meyering@lucent.com>
72745
72746         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
72747         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
72748         is included first, then limits.h is included by locale.h by libintl.h.
72749         From John David Anglin.
72750
72751 2000-04-25  Jim Meyering  <meyering@lucent.com>
72752
72753         * lib/makepath.c (S_IRWXUGO): Define.
72754         (make_path): Always perform explicit chmod if MODE specifies any
72755         of the `special' permission bits.  Prompted by a bug report against
72756         install from Mate Wierdl and Joost van Baal.
72757
72758 2000-04-18  Jim Meyering  <meyering@lucent.com>
72759
72760         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
72761         (jm_PREREQ): Use it.
72762
72763 2000-04-18  Jim Meyering  <meyering@lucent.com>
72764
72765         * lib/README: New file.
72766
72767         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
72768         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
72769
72770 2000-04-17  Jim Meyering  <meyering@lucent.com>
72771
72772         Get it right :-)
72773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
72774         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
72775         Suggestion from Akim Demaille.
72776
72777 2000-04-17  Jim Meyering  <meyering@lucent.com>
72778
72779         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
72780         the definition of it to rpl_strftime also defined-away the system's
72781         declaration.
72782
72783 2000-04-15  Jim Meyering  <meyering@lucent.com>
72784
72785         Use `C' to denote so-called `contiguous' files, the same way
72786         that tar does.
72787         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
72788         (ftypelet): Use S_ISCTG.
72789         From Michael Deutschmann.
72790
72791 2000-04-14  Jim Meyering  <meyering@lucent.com>
72792
72793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
72794         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
72795         clobbered.
72796
72797 2000-04-14  Jim Meyering  <meyering@lucent.com>
72798
72799         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
72800
72801 2000-04-13  Jim Meyering  <meyering@lucent.com>
72802
72803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
72804         AH_VERBATIM to insert required #ifndef into config.h.in.
72805         Suggestion from Akim Demaille.
72806
72807 2000-04-12  Jim Meyering  <meyering@lucent.com>
72808
72809         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
72810         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
72811         Christian Krackowizer.
72812
72813         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
72814         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
72815         (AC_SYS_LARGEFILE): Require.
72816         (AM_C_PROTOTYPES): Require.
72817
72818 2000-04-08  Jim Meyering  <meyering@lucent.com>
72819
72820         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
72821         names don't conflict.  Reported by Eli Zaretskii.
72822
72823 2000-04-07  Jim Meyering  <meyering@lucent.com>
72824
72825         * lib/putenv.c: Move inclusion of errno.h so it follows that of
72826         sys/types.h, to work around system header problems on AIX 3.2.5.
72827         From Bruno Haible.
72828
72829 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
72830
72831         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
72832         bug.  Deal with the different error behavior of Irix iconv.
72833
72834 2000-04-05  Paul Eggert  <eggert@twinsun.com>
72835
72836         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
72837         IRIX if the installer said otherwise.
72838
72839 2000-04-05  Jim Meyering  <meyering@lucent.com>
72840
72841         Portability tweaks required for ultrix4.3.
72842         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
72843         (jm_CHECK_DECLS): Add getutent to the list of functions.
72844         (_jm_DECL_HEADERS): Add utmpx.h.
72845         From John David Anglin.
72846
72847         * m4/strftime.m4: Back out the 2000-04-02 change.
72848         Instead of that change, simply undefine putenv in the test program.
72849
72850 2000-04-05  Jim Meyering  <meyering@lucent.com>
72851
72852         Portability tweaks required for ultrix4.3.
72853         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
72854         getutent.
72855         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
72856         * lib/canon-host.c: Declare strdup.
72857         * lib/path-concat.c: Likewise.
72858         From John David Anglin.
72859
72860 2000-04-04  Jim Meyering  <meyering@lucent.com>
72861
72862         Be more DOS 8.3-friendly.
72863         * lib/ref-add.sin: Renamed from ref-add.sed.in.
72864         * lib/ref-del.sin: Renamed from ref-del.sed.in.
72865         * lib/Makefile.am: Reflect renaming.
72866         Reported by Eli Zaretskii.
72867
72868         Use a temporary file name that won't clash with `charset.alias'
72869         in the DOS 8.3 name space.
72870         * lib/Makefile.am (charset_tmp): Define.
72871         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
72872         (uninstall-local): Likewise.
72873         Reported by Eli Zaretskii.
72874
72875 2000-04-03  Jim Meyering  <meyering@lucent.com>
72876
72877         * m4/gettext.m4: Fix typo in comment.
72878
72879         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
72880         textutils/configure.in).  Suggestion from Paul Eggert.
72881         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
72882
72883 2000-04-02  Paul Eggert  <eggert@twinsun.com>
72884
72885         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
72886         variable in the shell rather than using putenv, which isn't
72887         portable.  This avoids the configure-time inter-test dependency
72888         on the potentially-renamed putenv function.
72889
72890 2000-03-30  Paul Eggert  <eggert@twinsun.com>
72891
72892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
72893         before checking struct stat.st_blksize, so that
72894         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
72895
72896 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72897
72898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
72899         since strftime.c uses HAVE_STRFTIME to decide whether to use
72900         the underlying strftime.
72901
72902 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72903
72904         * lib/time/strftime.c (my_strftime): Make sure we call the system
72905         strftime, not ourselves, when invoking the underlying strftime.
72906
72907 2000-03-24  Jim Meyering  <meyering@lucent.com>
72908
72909         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
72910         (charset_alias): Define.
72911         (install-exec-local): Factor out common code.
72912         (uninstall-local): Split lines longer than 80.
72913         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
72914         (SUFFIXES): Define.
72915         (.sed.in.sed): New rule.  Don't redirect directly to $@.
72916         (CLEANFILES): Add ref-add.sed and ref-del.sed.
72917
72918 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
72919
72920         * lib/config.charset: Output a line containing "Packages using this
72921         file".
72922         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
72923         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
72924         ref-del.sed): New rules.
72925
72926 2000-03-17  Jim Meyering  <meyering@lucent.com>
72927
72928         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
72929         Otherwise, include <strings.h>
72930
72931 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
72932
72933         * lib/unicodeio.c (utf8_wctomb): New function.
72934         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
72935         format instead of in UCS-4 with platform dependent endianness.
72936
72937 2000-03-10  Jim Meyering  <meyering@lucent.com>
72938
72939         * m4/lib-check.m4: Look for getspnam in -lgen, too.
72940         From Marco Franzen.
72941
72942 2000-03-07  Paul Eggert  <eggert@twinsun.com>
72943
72944         * lib/savedir.c (savedir): Work even if directory size is
72945         negative; this can happen with some screwy NFS configurations.
72946
72947 2000-03-06  Jim Meyering  <meyering@lucent.com>
72948
72949         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
72950         if it's NULL (because we ran out of memory).  From Bruno Haible.
72951
72952 2000-03-05  Jim Meyering  <meyering@lucent.com>
72953
72954         * lib/localcharset.c ("path-concat.h"): Include.
72955         (get_charset_aliases): Use path_concat instead of ANSI string
72956         concatenation.
72957
72958         * lib/unicodeio.h (PARAMS): Define.
72959         Use it to guard prototype.
72960
72961 2000-03-04  Jim Meyering  <meyering@lucent.com>
72962
72963         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
72964         for lib/localcharset.c.
72965
72966 2000-03-04  Jim Meyering  <meyering@lucent.com>
72967
72968         * lib/Makefile.am (install-exec-local): Create $(libdir) before
72969         installing into it.
72970         (uninstall-local): Uncomment this rule so `make distcheck' works
72971         once again.
72972
72973         * lib/unicodeio.c (<errno.h>): Include it.
72974         (errno): Declare if not defined.
72975
72976         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
72977
72978         * lib/config.charset: New version, incorporating remarks from a linux
72979         i18n mailing list.  From Bruno Haible.
72980
72981 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
72982
72983         * m4/codeset.m4: New file.
72984         * m4/iconv.m4: New file.
72985         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
72986
72987 2000-03-03  Jim Meyering  <meyering@lucent.com>
72988
72989         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
72990
72991 2000-03-02  Jim Meyering  <meyering@lucent.com>
72992
72993         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
72994         the messages come out on separate lines.
72995
72996         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
72997         rather than jm_CHECK_DECLARATIONS.
72998         * m4/decl.m4: Remove now-unused file.
72999
73000         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73001         geteuid.
73002
73003 2000-03-02  Jim Meyering  <meyering@lucent.com>
73004
73005         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73006
73007 2000-03-01  Jim Meyering  <meyering@lucent.com>
73008
73009         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73010         * lib/unicodeio.c: Likewise.
73011
73012 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73013
73014         * lib/config.charset: New file.
73015         * lib/localcharset.c: New file.
73016         * lib/unicodeio.h, lib/unicodeio.c: New files.
73017         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73018         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73019         (noinst_HEADERS): Add unicodeio.h.
73020         (all-local, install-exec-local, charset.alias): New targets.
73021
73022 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73023
73024         * lib/quotearg.c (ALERT_CHAR): New macro.
73025         (quotearg_buffer_restyled): Use it.
73026
73027 2000-02-27  Jim Meyering  <meyering@lucent.com>
73028
73029         * m4/check-decl.m4: Add getenv to the list.
73030
73031 2000-02-27  Jim Meyering  <meyering@lucent.com>
73032
73033         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73034         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73035
73036         * lib/backupfile.c: Guard inclusion of stdlib.h with
73037         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73038         Declare malloc if needed.
73039
73040         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73041         `#ifndef HAVE_DECL..'
73042         now that autoconf always defines the HAVE_DECL_ symbols.
73043         * lib/human.c: Likewise.
73044         * lib/same.c: Likewise.
73045         * lib/strtoumax.c: Likewise.
73046
73047         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
73048         declaration check was not run.
73049         * lib/hash.c: Likewise.
73050         * lib/human.c: Likewise.
73051         * lib/same.c: Likewise.
73052         * lib/strtoumax.c: Likewise.
73053
73054         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
73055         `.', then first look up the entire `.'-containing string as a login
73056         name.
73057
73058 2000-02-23  Jim Meyering  <meyering@lucent.com>
73059
73060         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
73061         in place of my hack.
73062
73063 2000-02-18  Paul Eggert  <eggert@twinsun.com>
73064
73065         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
73066         (textint): New typedef.
73067         (parser_control): Member year changed from int to textint.
73068         All uses changed.
73069         (YYSTYPE): Removed; replaced by %union with int and textint members.
73070         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
73071         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
73072         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
73073         (tSNUMBER, tUNUMBER): Now of type <textintval>.
73074         (date, number, to_year): Use width of number in digits, not its value,
73075         to determine whether it's a 2-digit year, or a 2-digit time.
73076         (yylex): Store number of digits of numeric tokens.
73077         Reported by John Kendall.
73078
73079         (parser_control): Changed from struct parser_control to typedef (for
73080         consistency).  All uses changed.
73081
73082         (tID): Removed; not used.
73083         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
73084
73085 2000-02-14  Paul Eggert  <eggert@twinsun.com>
73086
73087         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
73088         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
73089
73090 2000-02-12  Jim Meyering  <meyering@lucent.com>
73091
73092         * lib/userspec.c (ISDIGIT): Define it.
73093         (isdigit): Remove definition.
73094         (is_number): Use ISDIGIT, not isdigit.
73095         <libintl.h>: Include.
73096         (_ and N_): Define.
73097         (parse_user_spec): Mark translatable strings.
73098
73099 2000-02-10  Jim Meyering  <meyering@lucent.com>
73100
73101         With these changes, nanosleep.[ch] are finally enough like the other
73102         lib/* replacement files to compile on a few more losing systems.
73103
73104         * lib/nanosleep.h: Don't include config.h.
73105         Remove prototype from declaration of nanosleep.
73106         (PARAMS): Remove now-unneeded definition.
73107         * lib/nanosleep.c: #undef nanosleep.
73108         (rpl_nanosleep): Rename from nanosleep.
73109
73110 2000-02-10  Jim Meyering  <meyering@lucent.com>
73111
73112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
73113         gnu_nanosleep to rpl_nanosleep.
73114
73115 2000-02-09  Jim Meyering  <meyering@lucent.com>
73116
73117         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
73118         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
73119
73120 2000-02-08  Akim Demaille  <akim@epita.fr>
73121
73122         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
73123         `[' and `]' and remove uses of `changequote'.
73124         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
73125         (AC_SYS_LARGEFILE): Likewise.
73126         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
73127         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
73128         of changequote.
73129         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
73130         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
73131         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
73132         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
73133
73134 2000-02-05  Jim Meyering  <meyering@lucent.com>
73135
73136         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
73137         Remove explicit use of AC_HEADER_TIME.  It is required by
73138         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
73139         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
73140         in autoconf whereby the expansion of the latter ended up preceding
73141         the expansion of its prerequisite, AC_HEADER_TIME.
73142         Reported by Volker Borchert.
73143
73144 2000-02-03  Jim Meyering  <meyering@lucent.com>
73145
73146         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
73147
73148 2000-02-03  Jim Meyering  <meyering@lucent.com>
73149
73150         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
73151         rather than with `#if HAVE_UTMPNAME'.
73152
73153 2000-02-02  Jim Meyering  <meyering@lucent.com>
73154
73155         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
73156         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
73157         Reported by Eli Zaretskii.
73158
73159 2000-02-01  Jim Meyering  <meyering@lucent.com>
73160
73161         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
73162
73163 2000-01-31  Jim Meyering  <meyering@lucent.com>
73164
73165         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
73166         functions.  Add the time.h and sys/time.h headers along with the
73167         AC_REQUIRE'ment of AC_HEADER_TIME.
73168
73169 2000-01-31  Jim Meyering  <meyering@lucent.com>
73170
73171         * lib/nanosleep.h (nanosleep): Guard declaration with
73172         `#if ! HAVE_DECL_NANOSLEEP'.
73173         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
73174         the declaration in that vendor's sys/timers.h.
73175         Reported by Christian Krackowizer.
73176
73177         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
73178         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
73179         (ISPRINT): Likewise.
73180         Reported by Tom Tromey.
73181
73182 2000-01-30  Jim Meyering  <meyering@lucent.com>
73183
73184         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
73185
73186         * m4/prereq.m4 (utmp_includes): Define.
73187         Check for ut_user and ut_name members in both struct utmpx
73188         and struct utmp.
73189
73190 2000-01-30  Jim Meyering  <meyering@lucent.com>
73191
73192         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
73193         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
73194         header files where only utmpx.ut_user is declared.
73195
73196         * lib/readutmp.h (UT_USER): Define.
73197
73198 2000-01-29  Jim Meyering  <meyering@lucent.com>
73199
73200         * m4/lib-check.m4: New file containing library-related checks from
73201         fileutils and sh-utils (textutils had none).
73202
73203 2000-01-28  Jim Meyering  <meyering@lucent.com>
73204
73205         * m4/perl.m4: Change format of warning message to look more like that
73206         from the missing script.  Suggestion from François Pinard.
73207
73208 2000-01-25  Jim Meyering  <meyering@lucent.com>
73209
73210         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
73211         well as time.h in the compile check.
73212         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
73213         Fix typo in cross-compiling case: s/yes/no/.
73214
73215 2000-01-23  Jim Meyering  <meyering@lucent.com>
73216
73217         * m4/jm-macros.m4: Move df-related tests here from
73218         fileutils/configure.in
73219
73220         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
73221         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
73222
73223         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
73224         s/space/ac_fsusage_space/.
73225         (jm_FILE_SYSTEM_USAGE): Take two parameters.
73226
73227         * m4/ftruncate.m4: New file (derived from part of
73228         fileutils/configure.in).
73229         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
73230         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
73231
73232         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
73233         AC_SUBST these here, rather than just in sh-util/configure.in, so
73234         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
73235         all the same.
73236         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
73237         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
73238         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
73239         (AC_SUBST(POW_LIBM)): Likewise.
73240         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
73241
73242 2000-01-23  Jim Meyering  <meyering@lucent.com>
73243
73244         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
73245         obstack.c.
73246
73247 2000-01-22  Jim Meyering  <meyering@lucent.com>
73248
73249         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
73250
73251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
73252
73253         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
73254         configure.in
73255         (AC_CHECK_HEADERS): Likewise for sh-utils.
73256         (AC_CHECK_HEADERS): Likewise for textutils.
73257         Merge the three lists of headers.
73258
73259         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
73260         from fileutils' configure.in.
73261
73262         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
73263         code. Moved tests into their own function (_jm_DECL_HEADERS) in
73264         check-decl.m4.
73265
73266         * m4/check-decl.m4: Use #if rather than #ifdef.
73267         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
73268         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
73269         (_jm_DECL_HEADERS): Define new function.
73270         (jm_CHECK_DECLARATIONS): Require it.
73271
73272 2000-01-22  Jim Meyering  <meyering@lucent.com>
73273
73274         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
73275         [! HAVE_DECL_STRTOULL]: Declare strtoull.
73276         Required for some AIX systems.  Reported by Christian Krackowizer.
73277         [TESTING] (main): New function.
73278
73279         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
73280         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
73281         letters.
73282
73283         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
73284         iswprint.
73285
73286         * lib/strverscmp.c (ISDIGIT): Define.
73287         (strverscmp): Use ISDIGIT, not isdigit.
73288
73289 2000-01-19  Jim Meyering  <meyering@lucent.com>
73290
73291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
73292         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
73293         defines `struct timespec' in <sys/time.h>
73294
73295         * m4/c-bs-a.m4: Remove uses of changequote altogether.
73296         Thanks to Akim for explaining.
73297
73298 2000-01-17  Paul Eggert  <eggert@twinsun.com>
73299
73300         * lib/nanosleep.c (nanosleep):
73301         Don't use SA_INTERRUPT to decide whether to call sigaction, as
73302         POSIX.1 doesn't require SA_INTERRUPT and some systems
73303         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
73304         it's been part of POSIX.1 since day 1 (in 1988).
73305
73306 2000-01-17  Jim Meyering  <meyering@lucent.com>
73307
73308         * lib/interlock: Remove unused file.  Reported by François Pinard.
73309
73310 2000-01-16  Paul Eggert  <eggert@twinsun.com>
73311
73312         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
73313         alert, backslash, formfeed, and vertical tab unnecessarily in
73314         shell quoting style.
73315
73316 2000-01-16  Jim Meyering  <meyering@lucent.com>
73317
73318         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
73319         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
73320         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
73321         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
73322
73323 2000-01-16  Jim Meyering  <meyering@lucent.com>
73324
73325         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
73326         because the latter didn't work.
73327
73328 2000-01-15  Jim Meyering  <meyering@lucent.com>
73329
73330         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
73331         (AC_REPLACE_FUNCS): Add memcpy and memset.
73332         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
73333         Add strpbrk.
73334         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
73335
73336 2000-01-12  Jim Meyering  <meyering@lucent.com>
73337
73338         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
73339         (jm_PREREQ): Use it.
73340         (jm_PREREQ_READUTMP): New macro.
73341         (jm_PREREQ): Use it.
73342
73343 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73344
73345         Quote multibyte characters correctly.
73346         * m4/c-bs-a.m4: New file.
73347         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
73348         (jm_PREREQ): Use it.
73349
73350 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73351
73352         * m4/uintmax_t.m4: Port to autoconf 2.13.
73353
73354 2000-01-08  Jim Meyering  <meyering@ascend.com>
73355
73356         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
73357         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
73358
73359 2000-01-04  Jim Meyering  <meyering@ascend.com>
73360
73361         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
73362         jm_STRUCT_DIRENT_D_TYPE.
73363         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
73364         jm_STRUCT_DIRENT_D_INO.
73365         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
73366         jm_STRUCT_UTIMBUF.
73367         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
73368         renamings.
73369         * m4/utime.m4: Likewise.
73370
73371         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
73372         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
73373
73374 2000-01-03  Paul Eggert  <eggert@twinsun.com>
73375
73376         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
73377         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
73378
73379 2000-01-02  Jim Meyering  <meyering@ascend.com>
73380
73381         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
73382         remember if this is necessary.
73383
73384 1999-12-26  Jim Meyering  <meyering@ascend.com>
73385
73386         * m4/jm-macros.m4: Use it here.
73387         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
73388
73389 1999-12-23  Jim Meyering  <meyering@ascend.com>
73390
73391         * m4/jm-macros.m4: Check for clock_gettime (moved from
73392         fileutils/configure.in)
73393         Check for gettimeofday.
73394
73395 1999-12-20  Jim Meyering  <meyering@ascend.com>
73396
73397         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
73398         autoconf-2.14a-1999-12-20.
73399
73400 1999-12-19  Jim Meyering  <meyering@ascend.com>
73401
73402         * m4/lstat-slash.m4: New file.
73403         * m4/jm-macros.m4: Use the new macro:
73404         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73405
73406 1999-12-07  Jim Meyering  <meyering@ascend.com>
73407
73408         * m4/perl.m4: Require that File::Compare be available, too.
73409         Too many systems seem to lack it.
73410
73411         * m4/strftime.m4: Add checks for most of the cpp macros tested in
73412         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
73413
73414 1999-11-18  Paul Eggert  <eggert@twinsun.com>
73415
73416         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
73417         problem with the QNX 4.25 shell, which doesn't propagate exit
73418         status of failed commands inside shell assignments.
73419
73420 1999-11-17  Jim Meyering  <meyering@ascend.com>
73421
73422         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
73423
73424 1999-11-07  Jim Meyering  <meyering@ascend.com>
73425
73426         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
73427
73428 1999-11-06  Jim Meyering  <meyering@ascend.com>
73429
73430         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
73431         * m4/jm-macros.m4 (jm_MACROS): Use it here.
73432
73433 1999-11-05  Jim Meyering  <meyering@ascend.com>
73434
73435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
73436         configure.in of textutils, fileutils, and sh-utils into this one
73437         (shared between those packages) file.
73438         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
73439         AC_STRUCT_ST_BLKSIZE.
73440
73441 1999-11-03  Jim Meyering  <meyering@ascend.com>
73442
73443         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
73444         of AC_CHECK_TYPE checks includes unistd.h.
73445         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
73446         Suggestion from Akim Demaille.
73447
73448 1999-10-30  Jim Meyering  <meyering@ascend.com>
73449
73450         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
73451         m4-quoted string.
73452         * m4/ls-mntd-fs.m4: Likewise.
73453         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
73454         * m4/jm-winsz1.m4: Likewise.
73455
73456         * m4/const.m4: Remove file, since the fix made it into the experimental
73457         version of autoconf.
73458         * m4/mktime.m4: Likewise.
73459
73460         * m4/check-type.m4: Remove file, now that the latest version of
73461         AC_CHECK_TYPE takes a third arg to specify additional #includes.
73462
73463         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
73464         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
73465         AC_CHECK_TYPE.
73466
73467 1999-10-04  Jim Meyering  <meyering@ascend.com>
73468
73469         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
73470
73471 1999-09-22  Paul Eggert  <eggert@twinsun.com>
73472
73473         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
73474         2.95.1 bug with HP-UX 10.20.
73475
73476 1999-09-17  Jim Meyering  <meyering@ascend.com>
73477
73478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
73479         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
73480         due to missing strdup (against sh-utils-2.0).
73481
73482 1999-08-29  Jim Meyering  <meyering@ascend.com>
73483
73484         * m4/jm-macros.m4: Require jm_BISON.
73485         * m4/bison.m4: New file.
73486
73487 1999-08-17  Paul Eggert  <eggert@twinsun.com>
73488
73489         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
73490         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
73491
73492 1999-08-05  Jim Meyering  <meyering@ascend.com>
73493
73494         * m4/getline.m4: Rename test file from conftestdata to conftest.data
73495         to avoid conflicts with `conftest' on 8+3 filesystems.
73496         Suggestion from Eli Zaretskii.
73497
73498 1999-08-04  Jim Meyering  <meyering@ascend.com>
73499
73500         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
73501         fileutils and sh-utils (textutils's getline test was inadequate).
73502         (AM_FUNC_GETLINE): Run this test.
73503         (AC_CHECK_FUNCS): Check for getdelim.
73504         Reported by Bob Proulx.
73505
73506 1999-08-02  Jim Meyering  <meyering@ascend.com>
73507
73508         * m4/jm-macros.m4: Add a comment.
73509
73510 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73511
73512         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
73513         <inttypes.h> defines strtoumax as a macro (and not as a
73514         function).
73515
73516 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73517
73518         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
73519         that we can shift, multiply and divide unsigned long long
73520         values; Ultrix cc can't do it.
73521
73522 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73523
73524         * m4/mktime.m4: New file, which is a preview of what should appear
73525         in the next public autoconf release.
73526
73527 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73528
73529         * m4/lfs.m4: Remove this file.
73530         * m4/largefile.m4: New file.  It contains the old contents of
73531         lfs.m4, except that all names with prefix AC_LFS have been
73532         changed to use the prefix AC_SYS_LARGEFILE instead, to be
73533         compatible with future autoconf versions.  Also, some minor m4
73534         quoting problems have been fixed.
73535
73536 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73537
73538         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
73539         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
73540         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
73541         and simplify the shell code.
73542
73543 1999-08-01  Jim Meyering  <meyering@ascend.com>
73544
73545         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
73546         m4.
73547
73548 1999-07-20  Jim Meyering  <meyering@ascend.com>
73549
73550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
73551
73552 1999-07-15  Jim Meyering  <meyering@ascend.com>
73553
73554         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
73555
73556 1999-05-22  Jim Meyering  <meyering@ascend.com>
73557
73558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
73559
73560 1999-05-20  Jim Meyering  <meyering@ascend.com>
73561
73562         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
73563         Add a colon after each `then' in case $4 is empty.
73564
73565 1999-05-16  Jim Meyering  <meyering@ascend.com>
73566
73567         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
73568
73569 1999-05-10  Jim Meyering  <meyering@ascend.com>
73570
73571         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
73572
73573         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
73574         AC_FUNC_MKTIME.
73575
73576 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
73577
73578         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
73579
73580 1999-05-04  Paul Eggert  <eggert@twinsun.com>
73581
73582         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
73583         not CPPFLAGS, so that linking works correctly in IRIX.
73584
73585 1999-04-30  Paul Eggert  <eggert@twinsun.com>
73586
73587         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
73588
73589 1999-04-20  Paul Eggert  <eggert@twinsun.com>
73590
73591         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
73592         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
73593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
73594         jm_AC_TYPE_UNSIGNED_LONG_LONG.
73595         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
73596
73597         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
73598
73599 1999-04-20  Jim Meyering  <meyering@ascend.com>
73600
73601         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
73602         AC_REPLACE xstroull if necessary.  From Paul Eggert.
73603         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
73604
73605 1999-04-18  Jim Meyering  <meyering@ascend.com>
73606
73607         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
73608         * m4/jm-macros.m4: Use it.
73609
73610 1999-04-06  Jim Meyering  <meyering@ascend.com>
73611
73612         * m4/strftime.m4: Remove test for %f.
73613
73614 1999-03-29  Jim Meyering  <meyering@ascend.com>
73615
73616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
73617         superset of the AC_TYPE_* checks in the textutils, fileutils,
73618         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
73619         AC_TYPE_PID_T.
73620
73621 1999-03-28  Jim Meyering  <meyering@ascend.com>
73622
73623         * m4/jm-macros.m4: Define GNU_PACKAGE here.
73624         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
73625         replaced e.g., in the *.sh files of the sh-utils.
73626
73627 1999-03-20  Jim Meyering  <meyering@ascend.com>
73628
73629         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
73630         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
73631         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
73632
73633 1999-03-19  Jim Meyering  <meyering@ascend.com>
73634
73635         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
73636
73637 1999-03-12  Jim Meyering  <meyering@ascend.com>
73638
73639         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
73640
73641 1999-03-07  Jim Meyering  <meyering@ascend.com>
73642
73643         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
73644         declared.
73645
73646 1999-02-17  Jim Meyering  <meyering@ascend.com>
73647
73648         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
73649         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
73650
73651 1999-02-07  Jim Meyering  <meyering@ascend.com>
73652
73653         * m4/group-member.m4: New file -- extracted from sh-utils'
73654         configure.in.
73655
73656         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
73657         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
73658
73659 1999-02-06  Jim Meyering  <meyering@ascend.com>
73660
73661         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
73662         * m4/fnmatch.m4: Likewise.
73663         * m4/getgroups.m4: Likewise.
73664         * m4/lstat.m4: Likewise.
73665         * m4/malloc.m4: Likewise.
73666         * m4/putenv.m4: Likewise.
73667         * m4/realloc.m4: Likewise.
73668         * m4/regex.m4: Likewise.
73669         * m4/stat.m4: Likewise.
73670         * m4/strftime.m4: Likewise.
73671         Suggestion from Alain Magloire.
73672
73673         * m4/chown.m4: Use `.$ac_objext', not `.o'.
73674         * m4/fnmatch.m4: Likewise.
73675         * m4/getgroups.m4: Likewise.
73676         * m4/getline.m4: Likewise.
73677         * m4/lstat.m4: Likewise.
73678         * m4/malloc.m4: Likewise.
73679         * m4/memcmp.m4: Likewise.
73680         * m4/putenv.m4: Likewise.
73681         * m4/realloc.m4: Likewise.
73682         * m4/regex.m4: Likewise.
73683         * m4/stat.m4: Likewise.
73684         * m4/strftime.m4: Likewise.
73685         Suggestion from Alain Magloire.
73686
73687         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
73688         an argument.
73689
73690         * m4/regex.m4: Add a run-time Test for proper operation of
73691         re_compile_pattern.
73692
73693 1999-01-31  Jim Meyering  <meyering@ascend.com>
73694
73695         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
73696
73697 1999-01-30  Jim Meyering  <meyering@ascend.com>
73698
73699         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
73700
73701         * m4/jm-mktime.m4: Make this a wrapper around the official
73702         AM_FUNC_MKTIME rather than my private copy, now that the official one
73703         is up to date.
73704         * m4/mktime.m4: Remove file.
73705
73706         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
73707         * m4/uptime.m4: Likewise.
73708         * m4/uintmax_t.m4: Likewise.
73709
73710 1999-01-28  Jim Meyering  <meyering@ascend.com>
73711
73712         * m4/jm-macros.m4: Use jm_AFS.
73713         * m4/afs.m4: New file (from fileutils' configure.in).
73714
73715         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
73716         * m4/chown.m4: Likewise.
73717         * m4/d-ino.m4: Likewise.
73718         * m4/d-type.m4: Likewise.
73719         * m4/fnmatch.m4: Likewise.
73720         * m4/getgroups.m4: Likewise.
73721         * m4/gettext.m4: Likewise.
73722         * m4/jm-mktime.m4: Likewise.
73723         * m4/jm-winsz2.m4: Likewise.
73724         * m4/lcmessage.m4: Likewise.
73725         * m4/ls-mntd-fs.m4: Likewise.
73726         * m4/malloc.m4: Likewise.
73727         * m4/memcmp.m4: Likewise.
73728         * m4/putenv.m4: Likewise.
73729         * m4/realloc.m4: Likewise.
73730         * m4/st_mtim.m4: Likewise.
73731         * m4/strftime.m4: Likewise.
73732
73733 1999-01-16  Jim Meyering  <meyering@ascend.com>
73734
73735         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
73736         (ARGMATCH_DIE_DECL): Define.
73737
73738 1999-01-12  Jim Meyering  <meyering@ascend.com>
73739
73740         * m4/Makefile.am.in: Rewrite to avoid using fmt.
73741         Reported by Lars Hecking.
73742
73743 1999-01-10  Jim Meyering  <meyering@ascend.com>
73744
73745         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
73746         gross kludge.
73747         * m4/inttypes_h.m4: Likewise.
73748         * m4/lstat.m4: Likewise.
73749         * m4/malloc.m4: Likewise.
73750         * m4/readdir.m4: Likewise.
73751         * m4/realloc.m4: Likewise.
73752         * m4/st_dm_mode.m4: Likewise.
73753         * m4/stat.m4: Likewise.
73754         * m4/utimbuf.m4: Likewise.
73755         * m4/utimes.m4: Likewise.
73756
73757         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
73758         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
73759         comments in config.h.in are meaningful.
73760
73761         * m4/jm-macros.m4: Require autoconf-2.13 here.
73762
73763         * m4/regex.m4: By default, don't use the included regex.c on systems
73764         with glibc 2.  Suggestion from Uli Drepper.
73765
73766 1999-01-02  Jim Meyering  <meyering@ascend.com>
73767
73768         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
73769
73770 1998-12-18  Jim Meyering  <meyering@ascend.com>
73771
73772         * m4/Makefile.am.in (Makefile.am): Simplify rule.
73773         Based on a suggestion from Lars Hecking.
73774
73775 1998-11-16  Paul Eggert  <eggert@twinsun.com>
73776
73777         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
73778
73779 1998-11-16  Jim Meyering  <meyering@ascend.com>
73780
73781         * m4/lfs.m4: Double-quote the `uname...` expression.
73782
73783 1998-11-14  Jim Meyering  <meyering@ascend.com>
73784
73785         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
73786         * m4/stat.m4: Likewise.
73787
73788 1998-11-03  Jim Meyering  <meyering@ascend.com>
73789
73790         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
73791         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
73792
73793 1998-10-18  Jim Meyering  <meyering@ascend.com>
73794
73795         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
73796
73797 1998-10-17  Jim Meyering  <meyering@ascend.com>
73798
73799         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
73800         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
73801         calls for those previously hard-coded headers.  Instead, take a new
73802         parameter.
73803         (jm_CHECK_DECLARATIONS): Reflect interface change.
73804         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
73805         (jm_CHECK_DECL_LOCALTIME_R): New macro.
73806
73807         * m4/mktime.m4: Test for spring-forward gap before long-running test.
73808
73809 1998-10-14  Jim Meyering  <meyering@ascend.com>
73810
73811         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
73812         instead of "TZ=America/Vancouver".  From Paul Eggert.
73813
73814 1998-10-11  Jim Meyering  <meyering@ascend.com>
73815
73816         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
73817         This adds a test for a recently added compatibility fix for mktime.c.
73818         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
73819
73820 1998-09-27  Jim Meyering  <meyering@ascend.com>
73821
73822         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
73823
73824         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
73825         ../configure.in, including a change from Gordon Matzigkeit to allow
73826         cross-compiling for the Hurd.
73827
73828         * m4/glibc.m4: New file/macro to test for the GNU C Library
73829         versions 1 and 2.  From Gordon Matzigkeit.
73830         Indent.
73831
73832 1998-09-21  Jim Meyering  <meyering@ascend.com>
73833
73834         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
73835
73836 1998-08-18  Paul Eggert  <eggert@twinsun.com>
73837
73838         Port nanosecond-resolution times to UnixWare 2.1.2 and
73839         pedantic Solaris 2.6.
73840
73841         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
73842         AC_STRUCT_ST_MTIM.
73843         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
73844         Generate name of ns member, instead of just 1 or undef.
73845         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
73846
73847 1998-08-15  Jim Meyering  <meyering@ascend.com>
73848
73849         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
73850         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
73851         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
73852         instead of jm_TYPE_SSIZE_T.
73853
73854 1998-08-12  Jim Meyering  <meyering@ascend.com>
73855
73856         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
73857
73858 1998-08-02  Jim Meyering  <meyering@ascend.com>
73859
73860         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
73861         in acconfig.h manually.
73862
73863 1998-07-31  Paul Eggert  <eggert@twinsun.com>
73864
73865         * m4/st_mtim.m4: New file.
73866
73867 1998-07-28  Jim Meyering  <meyering@ascend.com>
73868
73869         * m4/utimes.m4: Undef stat.
73870
73871 1998-07-25  Jim Meyering  <meyering@ascend.com>
73872
73873         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
73874         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
73875
73876 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
73877
73878         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
73879         uid and gid actually remain unchanged.
73880
73881 1998-07-07  Jim Meyering  <meyering@ascend.com>
73882
73883         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
73884
73885 1998-07-04  Jim Meyering  <meyering@ascend.com>
73886
73887         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
73888         to prove that this macro can be used in packages without regex.c.
73889
73890 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
73891
73892         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
73893         is to be used.
73894
73895 1998-07-03  Jim Meyering  <meyering@ascend.com>
73896
73897         * m4/gettext.m4: Add -lintl if it's found to be necessary.
73898
73899         * m4/gettext.m4: New file -- from gettext-0.10.35.
73900         * m4/lcmessage.m4: Likewise.
73901         * m4/progtest.m4: Likewise.
73902
73903         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
73904         * m4/jm-macros.m4: Require the new macro.
73905
73906 1998-06-29  Jim Meyering  <meyering@ascend.com>
73907
73908         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
73909         for the definition of NGROUPS (used in a system header included
73910         by sys/mount.h).
73911
73912 1998-06-28  Jim Meyering  <meyering@ascend.com>
73913
73914         * m4/ls-mntd-fs.m4: New file.
73915         * m4/fstypename.m4: New file.
73916
73917         * m4/jm-macros.m4: Require the new macro.
73918         * m4/jm-glibc-io.m4: New file.
73919
73920 1998-05-19  Jim Meyering  <meyering@ascend.com>
73921
73922         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
73923         * m4/lchown.m4: New file.
73924
73925         * m4/Makefile.am.in: New file.
73926         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
73927
73928 1998-05-14  Jim Meyering  <meyering@ascend.com>
73929
73930         * m4/Makefile.am (EXTRA_DIST): Add them.
73931         * m4/jm-macros.m4: New file.
73932         * m4/utimbuf.m4: New file.
73933
73934 1998-05-12  Jim Meyering  <meyering@ascend.com>
73935
73936         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
73937
73938 1998-05-11  Jim Meyering  <meyering@ascend.com>
73939
73940         * m4/isc-posix.m4: New file.
73941
73942 1998-05-10  Jim Meyering  <meyering@ascend.com>
73943
73944         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
73945
73946 1998-05-09  Jim Meyering  <meyering@ascend.com>
73947
73948         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
73949         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
73950         with automake.
73951
73952         * m4/ssize_t.m4: New file.
73953         * m4/mktime.m4: Remove file -- the new automake has this now.
73954
73955 1998-04-26  Jim Meyering  <meyering@ascend.com>
73956
73957         * m4/assert.m4: New file.
73958         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
73959
73960 1998-04-05  Jim Meyering  <meyering@ascend.com>
73961
73962         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
73963         (jm_PREREQ): Use it here.
73964
73965 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
73966
73967         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
73968         in acconfig.h.
73969
73970 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
73971
73972         * m4/prereq.m4: New file.
73973         * m4/error.m4: New file.
73974         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
73975
73976 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
73977
73978         * m4/getline.m4: Don't set am_cv_func_working_getline before the
73979         cache-check for the same variable -- that defeated the purpose of
73980         the test; the test program was never run.  This was a problem only
73981         on systems with losing getline functions -- HP-UX 10.20 is one.
73982         Reported by Bjorn Helgaas.
73983
73984 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
73985
73986         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
73987
73988 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
73989
73990         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
73991
73992         * m4/const.m4: New file.  Use an initializer in this declaration
73993         typedef int charset[2]; const charset x;
73994         Reported by Bob Glickstein.
73995
73996 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
73997
73998         * m4/chown.m4: Fix reversed types on -1 args to chown.
73999         From Kaveh Ghazi.
74000
74001 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74002
74003         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74004         Add lseek and memchr.
74005
74006         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74007         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74008         have a 20-character limit on names.
74009
74010 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74011
74012         * m4/inttypes_h.m4: New file.
74013         * m4/uintmax_t.m4: New file.
74014         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74015
74016
74017         -----
74018
74019         Local Variables:
74020         coding: utf-8
74021         End:
74022
74023         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74024
74025         Copying and distribution of this file, with or without
74026         modification, are permitted provided the copyright notice
74027         and this notice are preserved.