openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
[pspp] / ChangeLog
1 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2
3         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4         This avoids heap allocation for file names whose lengths are in
5         the range 512..1023, with the upper bound increasing to at most
6         4031 depending on the platform's PATH_MAX.  (We do not want
7         pathmax.h here as it might supply a non-constant PATH_MAX.)
8         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9         Perhaps they should be moved to malloca.h?
10         (OPENAT_BUFFER_SIZE): Use them.
11
12 2011-01-10  Bruno Haible  <bruno@clisp.org>
13
14         doc: Update users.txt.
15         * users.txt: Add recutils.
16
17 2011-01-09  Karl Berry  <karl@gnu.org>
18
19         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20
21         * doc/configmake.texi: New file.
22         * doc/gnulib.texi: Include it.
23         * modules/configmake: Move documentation from here.
24
25 2011-01-09  Bruno Haible  <bruno@clisp.org>
26
27         Update to Unicode 6.0.0.
28         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
29         (get_lbp): Update for Unicode 6.0.0.
30         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
31         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
32         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
33         U+11001, U+11038..U+11046. Remove U+06DE.
34         (uc_width): Fix bounds of planes.
35         * tests/uniwidth/test-uc_width2.sh: Same updates as in
36         lib/uniwidth/width.c.
37         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
38         trailing whitespace removed.
39         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
40         without comments, but with the original copyright notice.
41         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
42         * lib/unicase/ignorable.h: Likewise.
43         * lib/unicase/tocasefold.h: Likewise.
44         * lib/unicase/tolower.h: Likewise.
45         * lib/unicase/totitle.h: Likewise.
46         * lib/unicase/toupper.h: Likewise.
47         * lib/unictype/bidi_of.h: Likewise.
48         * lib/unictype/blocks.h: Likewise.
49         * lib/unictype/categ_C.h: Likewise.
50         * lib/unictype/categ_Cn.h: Likewise.
51         * lib/unictype/categ_L.h: Likewise.
52         * lib/unictype/categ_Ll.h: Likewise.
53         * lib/unictype/categ_Lm.h: Likewise.
54         * lib/unictype/categ_Lo.h: Likewise.
55         * lib/unictype/categ_Lu.h: Likewise.
56         * lib/unictype/categ_M.h: Likewise.
57         * lib/unictype/categ_Mc.h: Likewise.
58         * lib/unictype/categ_Me.h: Likewise.
59         * lib/unictype/categ_Mn.h: Likewise.
60         * lib/unictype/categ_N.h: Likewise.
61         * lib/unictype/categ_Nd.h: Likewise.
62         * lib/unictype/categ_No.h: Likewise.
63         * lib/unictype/categ_P.h: Likewise.
64         * lib/unictype/categ_Po.h: Likewise.
65         * lib/unictype/categ_S.h: Likewise.
66         * lib/unictype/categ_Sc.h: Likewise.
67         * lib/unictype/categ_Sk.h: Likewise.
68         * lib/unictype/categ_Sm.h: Likewise.
69         * lib/unictype/categ_So.h: Likewise.
70         * lib/unictype/categ_of.h: Likewise.
71         * lib/unictype/combining.h: Likewise.
72         * lib/unictype/ctype_alnum.h: Likewise.
73         * lib/unictype/ctype_alpha.h: Likewise.
74         * lib/unictype/ctype_graph.h: Likewise.
75         * lib/unictype/ctype_lower.h: Likewise.
76         * lib/unictype/ctype_print.h: Likewise.
77         * lib/unictype/ctype_punct.h: Likewise.
78         * lib/unictype/ctype_upper.h: Likewise.
79         * lib/unictype/decdigit.h: Likewise.
80         * lib/unictype/digit.h: Likewise.
81         * lib/unictype/numeric.h: Likewise.
82         * lib/unictype/pr_alphabetic.h: Likewise.
83         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
84         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
85         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
86         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
87         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
88         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
89         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
90         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
91         * lib/unictype/pr_case_ignorable.h: Likewise.
92         * lib/unictype/pr_cased.h: Likewise.
93         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
94         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
95         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
96         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
97         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
98         * lib/unictype/pr_combining.h: Likewise.
99         * lib/unictype/pr_composite.h: Likewise.
100         * lib/unictype/pr_currency_symbol.h: Likewise.
101         * lib/unictype/pr_decimal_digit.h: Likewise.
102         * lib/unictype/pr_deprecated.h: Likewise.
103         * lib/unictype/pr_format_control.h: Likewise.
104         * lib/unictype/pr_grapheme_base.h: Likewise.
105         * lib/unictype/pr_grapheme_extend.h: Likewise.
106         * lib/unictype/pr_grapheme_link.h: Likewise.
107         * lib/unictype/pr_id_continue.h: Likewise.
108         * lib/unictype/pr_id_start.h: Likewise.
109         * lib/unictype/pr_ideographic.h: Likewise.
110         * lib/unictype/pr_lowercase.h: Likewise.
111         * lib/unictype/pr_math.h: Likewise.
112         * lib/unictype/pr_numeric.h: Likewise.
113         * lib/unictype/pr_other_alphabetic.h: Likewise.
114         * lib/unictype/pr_other_id_continue.h: Likewise.
115         * lib/unictype/pr_other_math.h: Likewise.
116         * lib/unictype/pr_punctuation.h: Likewise.
117         * lib/unictype/pr_sentence_terminal.h: Likewise.
118         * lib/unictype/pr_terminal_punctuation.h: Likewise.
119         * lib/unictype/pr_unassigned_code_value.h: Likewise.
120         * lib/unictype/pr_unified_ideograph.h: Likewise.
121         * lib/unictype/pr_uppercase.h: Likewise.
122         * lib/unictype/pr_xid_continue.h: Likewise.
123         * lib/unictype/pr_xid_start.h: Likewise.
124         * lib/unictype/scripts.h: Likewise.
125         * lib/unictype/scripts_byname.gperf: Likewise.
126         * lib/unictype/sy_java_ident.h: Likewise.
127         * lib/unigbrk/gbrkprop.h: Likewise.
128         * lib/unilbrk/lbrkprop1.h: Likewise.
129         * lib/unilbrk/lbrkprop2.h: Likewise.
130         * lib/uninorm/decomposition-table2.h: Likewise.
131         * lib/uniwbrk/wbrkprop.h: Likewise.
132         * tests/unicase/test-cased.c: Likewise.
133         * tests/unicase/test-ignorable.c: Likewise.
134         * tests/unicase/test-uc_tolower.c: Likewise.
135         * tests/unicase/test-uc_totitle.c: Likewise.
136         * tests/unicase/test-uc_toupper.c: Likewise.
137         * tests/unictype/test-categ_C.c: Likewise.
138         * tests/unictype/test-categ_Cn.c: Likewise.
139         * tests/unictype/test-categ_L.c: Likewise.
140         * tests/unictype/test-categ_Ll.c: Likewise.
141         * tests/unictype/test-categ_Lm.c: Likewise.
142         * tests/unictype/test-categ_Lo.c: Likewise.
143         * tests/unictype/test-categ_Lu.c: Likewise.
144         * tests/unictype/test-categ_M.c: Likewise.
145         * tests/unictype/test-categ_Mc.c: Likewise.
146         * tests/unictype/test-categ_Me.c: Likewise.
147         * tests/unictype/test-categ_Mn.c: Likewise.
148         * tests/unictype/test-categ_N.c: Likewise.
149         * tests/unictype/test-categ_Nd.c: Likewise.
150         * tests/unictype/test-categ_No.c: Likewise.
151         * tests/unictype/test-categ_P.c: Likewise.
152         * tests/unictype/test-categ_Po.c: Likewise.
153         * tests/unictype/test-categ_S.c: Likewise.
154         * tests/unictype/test-categ_Sc.c: Likewise.
155         * tests/unictype/test-categ_Sk.c: Likewise.
156         * tests/unictype/test-categ_Sm.c: Likewise.
157         * tests/unictype/test-categ_So.c: Likewise.
158         * tests/unictype/test-ctype_alnum.c: Likewise.
159         * tests/unictype/test-ctype_alpha.c: Likewise.
160         * tests/unictype/test-ctype_graph.c: Likewise.
161         * tests/unictype/test-ctype_lower.c: Likewise.
162         * tests/unictype/test-ctype_print.c: Likewise.
163         * tests/unictype/test-ctype_punct.c: Likewise.
164         * tests/unictype/test-ctype_upper.c: Likewise.
165         * tests/unictype/test-decdigit.h: Likewise.
166         * tests/unictype/test-digit.h: Likewise.
167         * tests/unictype/test-numeric.h: Likewise.
168         * tests/unictype/test-pr_alphabetic.c: Likewise.
169         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
170         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
171         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
172         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
173         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
174         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
175         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
176         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
177         * tests/unictype/test-pr_case_ignorable.c: Likewise.
178         * tests/unictype/test-pr_cased.c: Likewise.
179         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
180         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
181         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
182         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
183         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
184         * tests/unictype/test-pr_combining.c: Likewise.
185         * tests/unictype/test-pr_composite.c: Likewise.
186         * tests/unictype/test-pr_currency_symbol.c: Likewise.
187         * tests/unictype/test-pr_decimal_digit.c: Likewise.
188         * tests/unictype/test-pr_deprecated.c: Likewise.
189         * tests/unictype/test-pr_format_control.c: Likewise.
190         * tests/unictype/test-pr_grapheme_base.c: Likewise.
191         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
192         * tests/unictype/test-pr_grapheme_link.c: Likewise.
193         * tests/unictype/test-pr_id_continue.c: Likewise.
194         * tests/unictype/test-pr_id_start.c: Likewise.
195         * tests/unictype/test-pr_ideographic.c: Likewise.
196         * tests/unictype/test-pr_lowercase.c: Likewise.
197         * tests/unictype/test-pr_math.c: Likewise.
198         * tests/unictype/test-pr_numeric.c: Likewise.
199         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
200         * tests/unictype/test-pr_other_id_continue.c: Likewise.
201         * tests/unictype/test-pr_other_math.c: Likewise.
202         * tests/unictype/test-pr_punctuation.c: Likewise.
203         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
204         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
205         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
206         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
207         * tests/unictype/test-pr_uppercase.c: Likewise.
208         * tests/unictype/test-pr_xid_continue.c: Likewise.
209         * tests/unictype/test-pr_xid_start.c: Likewise.
210         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
211         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
212         changes.
213         * lib/unictype/categ_Cc.h: Likewise.
214         * lib/unictype/categ_Cf.h: Likewise.
215         * lib/unictype/categ_Co.h: Likewise.
216         * lib/unictype/categ_Cs.h: Likewise.
217         * lib/unictype/categ_Lt.h: Likewise.
218         * lib/unictype/categ_Nl.h: Likewise.
219         * lib/unictype/categ_Pc.h: Likewise.
220         * lib/unictype/categ_Pd.h: Likewise.
221         * lib/unictype/categ_Pe.h: Likewise.
222         * lib/unictype/categ_Pf.h: Likewise.
223         * lib/unictype/categ_Pi.h: Likewise.
224         * lib/unictype/categ_Ps.h: Likewise.
225         * lib/unictype/categ_Z.h: Likewise.
226         * lib/unictype/categ_Zl.h: Likewise.
227         * lib/unictype/categ_Zp.h: Likewise.
228         * lib/unictype/categ_Zs.h: Likewise.
229         * lib/unictype/ctype_blank.h: Likewise.
230         * lib/unictype/ctype_cntrl.h: Likewise.
231         * lib/unictype/ctype_digit.h: Likewise.
232         * lib/unictype/ctype_space.h: Likewise.
233         * lib/unictype/ctype_xdigit.h: Likewise.
234         * lib/unictype/mirror.h: Likewise.
235         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
236         * lib/unictype/pr_bidi_block_separator.h: Likewise.
237         * lib/unictype/pr_bidi_common_separator.h: Likewise.
238         * lib/unictype/pr_bidi_control.h: Likewise.
239         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
240         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
241         * lib/unictype/pr_bidi_european_digit.h: Likewise.
242         * lib/unictype/pr_bidi_pdf.h: Likewise.
243         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
244         * lib/unictype/pr_bidi_whitespace.h: Likewise.
245         * lib/unictype/pr_dash.h: Likewise.
246         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
247         * lib/unictype/pr_diacritic.h: Likewise.
248         * lib/unictype/pr_extender.h: Likewise.
249         * lib/unictype/pr_hex_digit.h: Likewise.
250         * lib/unictype/pr_hyphen.h: Likewise.
251         * lib/unictype/pr_ids_binary_operator.h: Likewise.
252         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
253         * lib/unictype/pr_ignorable_control.h: Likewise.
254         * lib/unictype/pr_iso_control.h: Likewise.
255         * lib/unictype/pr_join_control.h: Likewise.
256         * lib/unictype/pr_left_of_pair.h: Likewise.
257         * lib/unictype/pr_line_separator.h: Likewise.
258         * lib/unictype/pr_logical_order_exception.h: Likewise.
259         * lib/unictype/pr_non_break.h: Likewise.
260         * lib/unictype/pr_not_a_character.h: Likewise.
261         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
262         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
263         * lib/unictype/pr_other_id_start.h: Likewise.
264         * lib/unictype/pr_other_lowercase.h: Likewise.
265         * lib/unictype/pr_other_uppercase.h: Likewise.
266         * lib/unictype/pr_paired_punctuation.h: Likewise.
267         * lib/unictype/pr_paragraph_separator.h: Likewise.
268         * lib/unictype/pr_pattern_syntax.h: Likewise.
269         * lib/unictype/pr_pattern_white_space.h: Likewise.
270         * lib/unictype/pr_private_use.h: Likewise.
271         * lib/unictype/pr_quotation_mark.h: Likewise.
272         * lib/unictype/pr_radical.h: Likewise.
273         * lib/unictype/pr_soft_dotted.h: Likewise.
274         * lib/unictype/pr_space.h: Likewise.
275         * lib/unictype/pr_titlecase.h: Likewise.
276         * lib/unictype/pr_variation_selector.h: Likewise.
277         * lib/unictype/pr_white_space.h: Likewise.
278         * lib/unictype/pr_zero_width.h: Likewise.
279         * lib/unictype/sy_c_ident.h: Likewise.
280         * lib/unictype/sy_c_whitespace.h: Likewise.
281         * lib/unictype/sy_java_whitespace.h: Likewise.
282         * lib/uninorm/composition-table.gperf: Likewise.
283         * lib/uninorm/decomposition-table1.h: Likewise.
284         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
285         LB8.
286         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
287         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
288         * modules/unictype/*: Bump version number of expected libunistring
289         version.
290
291 2011-01-09  Bruno Haible  <bruno@clisp.org>
292
293         Update to Unicode 5.2.0.
294         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
295         trailing whitespace removed.
296
297 2011-01-09  Bruno Haible  <bruno@clisp.org>
298
299         New Unicode character properties, from Unicode 5.2.0.
300         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
301         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
302         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
303         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
304         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
305         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
306         uc_is_property_cased, uc_is_property_case_ignorable,
307         uc_is_property_changes_when_lowercased,
308         uc_is_property_changes_when_uppercased,
309         uc_is_property_changes_when_titlecased,
310         uc_is_property_changes_when_casefolded,
311         uc_is_property_changes_when_casemapped): New declarations.
312         * lib/unictype/pr_byname.gperf: Add the new properties.
313         * modules/unictype/property-byname (Depends-on): Depend on the new
314         properties modules.
315         * modules/unictype/property-all (Depends-on): Likewise.
316         * MODULES.html.sh (Unicode string functions): Add
317         unictype/property-case-ignorable, unictype/property-cased,
318         unictype/property-changes-when-casefolded,
319         unictype/property-changes-when-casemapped,
320         unictype/property-changes-when-lowercased,
321         unictype/property-changes-when-titlecased,
322         unictype/property-changes-when-uppercased.
323
324         New module 'unictype/property-changes-when-casemapped'.
325         * modules/unictype/property-changes-when-casemapped: New file.
326         * lib/unictype/pr_changes_when_casemapped.c: New file.
327         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
328         generated by gen-uni-tables.
329         * modules/unictype/property-changes-when-casemapped-tests: New file.
330         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
331         automatically generated by gen-uni-tables.
332
333         New module 'unictype/property-changes-when-casefolded'.
334         * modules/unictype/property-changes-when-casefolded: New file.
335         * lib/unictype/pr_changes_when_casefolded.c: New file.
336         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
337         generated by gen-uni-tables.
338         * modules/unictype/property-changes-when-casefolded-tests: New file.
339         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
340         automatically generated by gen-uni-tables.
341
342         New module 'unictype/property-changes-when-titlecased'.
343         * modules/unictype/property-changes-when-titlecased: New file.
344         * lib/unictype/pr_changes_when_titlecased.c: New file.
345         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
346         generated by gen-uni-tables.
347         * modules/unictype/property-changes-when-titlecased-tests: New file.
348         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
349         automatically generated by gen-uni-tables.
350
351         New module 'unictype/property-changes-when-uppercased'.
352         * modules/unictype/property-changes-when-uppercased: New file.
353         * lib/unictype/pr_changes_when_uppercased.c: New file.
354         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
355         generated by gen-uni-tables.
356         * modules/unictype/property-changes-when-uppercased-tests: New file.
357         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
358         automatically generated by gen-uni-tables.
359
360         New module 'unictype/property-changes-when-lowercased'.
361         * modules/unictype/property-changes-when-lowercased: New file.
362         * lib/unictype/pr_changes_when_lowercased.c: New file.
363         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
364         generated by gen-uni-tables.
365         * modules/unictype/property-changes-when-lowercased-tests: New file.
366         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
367         automatically generated by gen-uni-tables.
368
369         New module 'unictype/property-case-ignorable'.
370         * modules/unictype/property-case-ignorable: New file.
371         * lib/unictype/pr_case_ignorable.c: New file.
372         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
373         by gen-uni-tables.
374         * modules/unictype/property-case-ignorable-tests: New file.
375         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
376         generated by gen-uni-tables.
377
378         New module 'unictype/property-cased'.
379         * modules/unictype/property-cased: New file.
380         * lib/unictype/pr_cased.c: New file.
381         * lib/unictype/pr_cased.h: New file, automatically generated by
382         gen-uni-tables.
383         * modules/unictype/property-cased-tests: New file.
384         * tests/unictype/test-pr_cased.c: New file, automatically generated by
385         gen-uni-tables.
386
387 2011-01-09  Bruno Haible  <bruno@clisp.org>
388
389         Update to Unicode 5.2.0.
390         * lib/gen-uni-tables.c (output_predicate, output_category,
391         output_combclass, output_bidi_category, output_decimal_digit_test,
392         output_decimal_digit, output_digit_test, output_digit,
393         output_numeric_test, output_numeric, output_mirror, output_scripts,
394         output_scripts_byname, output_blocks, output_ident_category): Fix
395         comment header.
396         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
397         get_wbp.
398         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
399         items.
400         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
401         Changes_When_Lowercased, Changes_When_Uppercased,
402         Changes_When_Titlecased, Changes_When_Casefolded,
403         Changes_When_Casemapped.
404         (is_property_alphabetic, is_property_default_ignorable_code_point):
405         Update for Unicode 5.2.0.
406         (is_property_cased, is_property_case_ignorable,
407         is_property_changes_when_lowercased,
408         is_property_changes_when_uppercased,
409         is_property_changes_when_titlecased,
410         is_property_changes_when_casefolded,
411         is_property_changes_when_casemapped): New functions.
412         (output_properties): Output also the properties cased, case_ignorable,
413         changes_when_lowercased, changes_when_uppercased,
414         changes_when_titlecased, changes_when_casefolded,
415         changes_when_casemapped.
416         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
417         Unicode TR#11 revision 17 -> 19.
418         (LBP_CP): New enumeration value.
419         (LBP_*): Adjust values accordingly.
420         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
421         TR#14 revision 22 -> 24.
422         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
423         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
424         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
425         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
426         is_WBP_MIDLETTER.
427         (output_composition_tables): Allow for 24 bits instead of 16 bits in
428         the code1 and code2 of each composition rule.
429         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
430         * lib/unicase/ignorable.h: Likewise.
431         * lib/unicase/tocasefold.h: Likewise.
432         * lib/unicase/tolower.h: Likewise.
433         * lib/unicase/totitle.h: Likewise.
434         * lib/unicase/toupper.h: Likewise.
435         * lib/unictype/bidi_of.h: Likewise.
436         * lib/unictype/blocks.h: Likewise.
437         * lib/unictype/categ_C.h: Likewise.
438         * lib/unictype/categ_Cf.h: Likewise.
439         * lib/unictype/categ_Cn.h: Likewise.
440         * lib/unictype/categ_L.h: Likewise.
441         * lib/unictype/categ_Ll.h: Likewise.
442         * lib/unictype/categ_Lm.h: Likewise.
443         * lib/unictype/categ_Lo.h: Likewise.
444         * lib/unictype/categ_Lu.h: Likewise.
445         * lib/unictype/categ_M.h: Likewise.
446         * lib/unictype/categ_Mc.h: Likewise.
447         * lib/unictype/categ_Mn.h: Likewise.
448         * lib/unictype/categ_N.h: Likewise.
449         * lib/unictype/categ_Nd.h: Likewise.
450         * lib/unictype/categ_Nl.h: Likewise.
451         * lib/unictype/categ_No.h: Likewise.
452         * lib/unictype/categ_P.h: Likewise.
453         * lib/unictype/categ_Pd.h: Likewise.
454         * lib/unictype/categ_Po.h: Likewise.
455         * lib/unictype/categ_S.h: Likewise.
456         * lib/unictype/categ_Sc.h: Likewise.
457         * lib/unictype/categ_So.h: Likewise.
458         * lib/unictype/categ_of.h: Likewise.
459         * lib/unictype/combining.h: Likewise.
460         * lib/unictype/ctype_alnum.h: Likewise.
461         * lib/unictype/ctype_alpha.h: Likewise.
462         * lib/unictype/ctype_graph.h: Likewise.
463         * lib/unictype/ctype_lower.h: Likewise.
464         * lib/unictype/ctype_print.h: Likewise.
465         * lib/unictype/ctype_punct.h: Likewise.
466         * lib/unictype/ctype_upper.h: Likewise.
467         * lib/unictype/decdigit.h: Likewise.
468         * lib/unictype/digit.h: Likewise.
469         * lib/unictype/numeric.h: Likewise.
470         * lib/unictype/pr_alphabetic.h: Likewise.
471         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
472         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
473         * lib/unictype/pr_bidi_european_digit.h: Likewise.
474         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
475         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
476         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
477         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
478         * lib/unictype/pr_combining.h: Likewise.
479         * lib/unictype/pr_composite.h: Likewise.
480         * lib/unictype/pr_currency_symbol.h: Likewise.
481         * lib/unictype/pr_dash.h: Likewise.
482         * lib/unictype/pr_decimal_digit.h: Likewise.
483         * lib/unictype/pr_deprecated.h: Likewise.
484         * lib/unictype/pr_diacritic.h: Likewise.
485         * lib/unictype/pr_extender.h: Likewise.
486         * lib/unictype/pr_grapheme_base.h: Likewise.
487         * lib/unictype/pr_grapheme_extend.h: Likewise.
488         * lib/unictype/pr_grapheme_link.h: Likewise.
489         * lib/unictype/pr_id_continue.h: Likewise.
490         * lib/unictype/pr_id_start.h: Likewise.
491         * lib/unictype/pr_ideographic.h: Likewise.
492         * lib/unictype/pr_ignorable_control.h: Likewise.
493         * lib/unictype/pr_logical_order_exception.h: Likewise.
494         * lib/unictype/pr_lowercase.h: Likewise.
495         * lib/unictype/pr_numeric.h: Likewise.
496         * lib/unictype/pr_other_alphabetic.h: Likewise.
497         * lib/unictype/pr_punctuation.h: Likewise.
498         * lib/unictype/pr_sentence_terminal.h: Likewise.
499         * lib/unictype/pr_terminal_punctuation.h: Likewise.
500         * lib/unictype/pr_unassigned_code_value.h: Likewise.
501         * lib/unictype/pr_unified_ideograph.h: Likewise.
502         * lib/unictype/pr_uppercase.h: Likewise.
503         * lib/unictype/pr_xid_continue.h: Likewise.
504         * lib/unictype/pr_xid_start.h: Likewise.
505         * lib/unictype/pr_zero_width.h: Likewise.
506         * lib/unictype/scripts.h: Likewise.
507         * lib/unictype/scripts_byname.gperf: Likewise.
508         * lib/unictype/sy_java_ident.h: Likewise.
509         * lib/unigbrk/gbrkprop.h: Likewise.
510         * lib/unilbrk/lbrkprop1.h: Likewise.
511         * lib/unilbrk/lbrkprop2.h: Likewise.
512         * lib/unilbrk/lbrktables.h: Likewise.
513         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
514         LBP_CP. Implement rule LB30.
515         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
516         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
517         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
518         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
519         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
520         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
521         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
522         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
523         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
524         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
525         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
526         bits instead of 16 bits in the code1 and code2 of each composition
527         rule.
528         (uc_composition): Update for Unicode 5.2.0.
529         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
530         * lib/uninorm/decomposition-table2.h: Likewise.
531         * lib/uniwbrk/wbrkprop.h: Likewise.
532         * tests/unicase/test-cased.c: Likewise.
533         * tests/unicase/test-ignorable.c: Likewise.
534         * tests/unicase/test-uc_tolower.c: Likewise.
535         * tests/unicase/test-uc_totitle.c: Likewise.
536         * tests/unicase/test-uc_toupper.c: Likewise.
537         * tests/unictype/test-categ_C.c: Likewise.
538         * tests/unictype/test-categ_Cf.c: Likewise.
539         * tests/unictype/test-categ_Cn.c: Likewise.
540         * tests/unictype/test-categ_L.c: Likewise.
541         * tests/unictype/test-categ_Ll.c: Likewise.
542         * tests/unictype/test-categ_Lm.c: Likewise.
543         * tests/unictype/test-categ_Lo.c: Likewise.
544         * tests/unictype/test-categ_Lu.c: Likewise.
545         * tests/unictype/test-categ_M.c: Likewise.
546         * tests/unictype/test-categ_Mc.c: Likewise.
547         * tests/unictype/test-categ_Mn.c: Likewise.
548         * tests/unictype/test-categ_N.c: Likewise.
549         * tests/unictype/test-categ_Nd.c: Likewise.
550         * tests/unictype/test-categ_Nl.c: Likewise.
551         * tests/unictype/test-categ_No.c: Likewise.
552         * tests/unictype/test-categ_P.c: Likewise.
553         * tests/unictype/test-categ_Pd.c: Likewise.
554         * tests/unictype/test-categ_Po.c: Likewise.
555         * tests/unictype/test-categ_S.c: Likewise.
556         * tests/unictype/test-categ_Sc.c: Likewise.
557         * tests/unictype/test-categ_So.c: Likewise.
558         * tests/unictype/test-ctype_alnum.c: Likewise.
559         * tests/unictype/test-ctype_alpha.c: Likewise.
560         * tests/unictype/test-ctype_graph.c: Likewise.
561         * tests/unictype/test-ctype_lower.c: Likewise.
562         * tests/unictype/test-ctype_print.c: Likewise.
563         * tests/unictype/test-ctype_punct.c: Likewise.
564         * tests/unictype/test-ctype_upper.c: Likewise.
565         * tests/unictype/test-decdigit.h: Likewise.
566         * tests/unictype/test-digit.h: Likewise.
567         * tests/unictype/test-numeric.h: Likewise.
568         * tests/unictype/test-pr_alphabetic.c: Likewise.
569         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
570         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
571         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
572         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
573         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
574         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
575         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
576         * tests/unictype/test-pr_combining.c: Likewise.
577         * tests/unictype/test-pr_composite.c: Likewise.
578         * tests/unictype/test-pr_currency_symbol.c: Likewise.
579         * tests/unictype/test-pr_dash.c: Likewise.
580         * tests/unictype/test-pr_decimal_digit.c: Likewise.
581         * tests/unictype/test-pr_deprecated.c: Likewise.
582         * tests/unictype/test-pr_diacritic.c: Likewise.
583         * tests/unictype/test-pr_extender.c: Likewise.
584         * tests/unictype/test-pr_grapheme_base.c: Likewise.
585         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
586         * tests/unictype/test-pr_grapheme_link.c: Likewise.
587         * tests/unictype/test-pr_id_continue.c: Likewise.
588         * tests/unictype/test-pr_id_start.c: Likewise.
589         * tests/unictype/test-pr_ideographic.c: Likewise.
590         * tests/unictype/test-pr_ignorable_control.c: Likewise.
591         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
592         * tests/unictype/test-pr_lowercase.c: Likewise.
593         * tests/unictype/test-pr_numeric.c: Likewise.
594         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
595         * tests/unictype/test-pr_punctuation.c: Likewise.
596         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
597         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
598         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
599         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
600         * tests/unictype/test-pr_uppercase.c: Likewise.
601         * tests/unictype/test-pr_xid_continue.c: Likewise.
602         * tests/unictype/test-pr_xid_start.c: Likewise.
603         * tests/unictype/test-pr_zero_width.c: Likewise.
604         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
605         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
606         changed behaviour: line breaking is now disallowed between a letter
607         or '=' and '('.
608         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
609         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
610         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
611         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
612         * tests/uniwidth/test-uc_width2.sh: Same updates as in
613         lib/uniwidth/width.c.
614         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
615         without comments, but with the original copyright notice.
616         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
617         changes.
618         * lib/unictype/categ_Cc.h: Likewise.
619         * lib/unictype/categ_Co.h: Likewise.
620         * lib/unictype/categ_Cs.h: Likewise.
621         * lib/unictype/categ_Lt.h: Likewise.
622         * lib/unictype/categ_Me.h: Likewise.
623         * lib/unictype/categ_Pc.h: Likewise.
624         * lib/unictype/categ_Pe.h: Likewise.
625         * lib/unictype/categ_Pf.h: Likewise.
626         * lib/unictype/categ_Pi.h: Likewise.
627         * lib/unictype/categ_Ps.h: Likewise.
628         * lib/unictype/categ_Sk.h: Likewise.
629         * lib/unictype/categ_Sm.h: Likewise.
630         * lib/unictype/categ_Z.h: Likewise.
631         * lib/unictype/categ_Zl.h: Likewise.
632         * lib/unictype/categ_Zp.h: Likewise.
633         * lib/unictype/categ_Zs.h: Likewise.
634         * lib/unictype/ctype_blank.h: Likewise.
635         * lib/unictype/ctype_cntrl.h: Likewise.
636         * lib/unictype/ctype_digit.h: Likewise.
637         * lib/unictype/ctype_space.h: Likewise.
638         * lib/unictype/ctype_xdigit.h: Likewise.
639         * lib/unictype/mirror.h: Likewise.
640         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
641         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
642         * lib/unictype/pr_bidi_block_separator.h: Likewise.
643         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
644         * lib/unictype/pr_bidi_common_separator.h: Likewise.
645         * lib/unictype/pr_bidi_control.h: Likewise.
646         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
647         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
648         * lib/unictype/pr_bidi_pdf.h: Likewise.
649         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
650         * lib/unictype/pr_bidi_whitespace.h: Likewise.
651         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
652         * lib/unictype/pr_format_control.h: Likewise.
653         * lib/unictype/pr_hex_digit.h: Likewise.
654         * lib/unictype/pr_hyphen.h: Likewise.
655         * lib/unictype/pr_ids_binary_operator.h: Likewise.
656         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
657         * lib/unictype/pr_iso_control.h: Likewise.
658         * lib/unictype/pr_join_control.h: Likewise.
659         * lib/unictype/pr_left_of_pair.h: Likewise.
660         * lib/unictype/pr_line_separator.h: Likewise.
661         * lib/unictype/pr_math.h: Likewise.
662         * lib/unictype/pr_non_break.h: Likewise.
663         * lib/unictype/pr_not_a_character.h: Likewise.
664         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
665         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
666         * lib/unictype/pr_other_id_continue.h: Likewise.
667         * lib/unictype/pr_other_id_start.h: Likewise.
668         * lib/unictype/pr_other_lowercase.h: Likewise.
669         * lib/unictype/pr_other_math.h: Likewise.
670         * lib/unictype/pr_other_uppercase.h: Likewise.
671         * lib/unictype/pr_paired_punctuation.h: Likewise.
672         * lib/unictype/pr_paragraph_separator.h: Likewise.
673         * lib/unictype/pr_pattern_syntax.h: Likewise.
674         * lib/unictype/pr_pattern_white_space.h: Likewise.
675         * lib/unictype/pr_private_use.h: Likewise.
676         * lib/unictype/pr_quotation_mark.h: Likewise.
677         * lib/unictype/pr_radical.h: Likewise.
678         * lib/unictype/pr_soft_dotted.h: Likewise.
679         * lib/unictype/pr_space.h: Likewise.
680         * lib/unictype/pr_titlecase.h: Likewise.
681         * lib/unictype/pr_variation_selector.h: Likewise.
682         * lib/unictype/pr_white_space.h: Likewise.
683         * lib/unictype/sy_c_ident.h: Likewise.
684         * lib/unictype/sy_c_whitespace.h: Likewise.
685         * lib/unictype/sy_java_whitespace.h: Likewise.
686         * modules/uni*/*: Bump version number of expected libunistring version.
687         Reported by Simon Josefsson.
688
689 2011-01-09  Karl Heuer  <kwzh@gnu.org>
690
691         useless-if-before-free: fix typo in --help and make the internal,
692         automatic version date update process work once again.
693         --help output contained a NUL character instead of the
694         backslash-zero that was intended.  Also, the "must lie within
695         the first 8 lines" line is on line 9, and hence not getting
696         automatically updated.
697         * build-aux/useless-if-before-free: Fix the former by adding a
698         backslash, and the latter by condensing the three lines of what-it-does
699         to a single line, leaving one line of slack for the future.
700
701 2011-01-09  Bruno Haible  <bruno@clisp.org>
702
703         uniwidth/width: Fix width of U+1D173..U+1D17A.
704         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
705         symbolic_width, output_width_property_test): New functions.
706         (main): Invoke output_nonspacing_property, output_width_property_test.
707         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
708         U+1D173..U+1D17A.
709         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
710         1.
711         * modules/uniwidth/*: Bump version number of expected libunistring
712         version.
713         * modules/unilbrk/*: Likewise.
714
715 2011-01-08  Bruno Haible  <bruno@clisp.org>
716
717         uninorm tests: Preserve copyright of Unicode data file.
718         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
719         Mention modifications.
720
721 2011-01-08  Bruno Haible  <bruno@clisp.org>
722
723         gen-uni-tables: Prepare for Unicode 5.2.0.
724         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
725         (debug_output_lbp, output_lbp): Update.
726
727 2011-01-08  Bruno Haible  <bruno@clisp.org>
728
729         unilbrk: Clarify gen-uni-tables.c code.
730         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
731         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
732         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
733
734 2011-01-07  Bruno Haible  <bruno@clisp.org>
735
736         strtod: Restore errno when successfully parsing Infinity or NaN.
737         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
738         restore the original errno.
739
740 2011-01-07  Bruno Haible  <bruno@clisp.org>
741
742         remove test: Avoid failure on HP-UX 11.
743         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
744
745 2011-01-07  Bruno Haible  <bruno@clisp.org>
746
747         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
748         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
749         error code.
750
751 2011-01-07  Pádraig Brady <P@draigBrady.com>
752
753         ignore-value: fixup comments, and add Eric Blake
754         as an author since he rewrote the macros.
755         * lib/ignore-value.h (ignore_value):  State that
756         we now support aggregates.  Also specify exactly
757         when the GCC warn_unused_result feature was added.
758
759 2011-01-06  Eric Blake  <eblake@redhat.com>
760
761         ignore-value: support aggregate types
762         * lib/ignore-value.h (ignore_value): Provide separate gcc
763         definition.
764         * modules/ignore-value-tests: New test module.
765         * tests/test-ignore-value.c: New test.
766
767         maint.mk: improve sc_prohibit_strcmp regex
768         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
769         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
770         definition of STRNEQ.
771
772         signal: work around Haiku issue with SIGBUS
773         * lib/siglist.h: Add comment.
774         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
775         strsignal's favoring of SIGSEGV.
776         * tests/test-signal.c (main): Avoid test failure.
777         * doc/posix-headers/signal.texi (signal.h): Document the issue.
778         Reported by Scott McCreary.
779
780         maint.mk: add pre-release check to ensure submodule commits are public
781         * top/maint.mk (public-submodule-commit): New rule.
782         (submodule-checks): New variable.
783         (alpha beta stable): Depend on the variable.
784
785 2011-01-05  Pádraig Brady <P@draigBrady.com>
786         and Jim Meyering  <meyering@redhat.com>
787
788         ignore-value: make ignore_value more generic; deprecate ignore_ptr
789         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
790         (ATTRIBUTE_DEPRECATED): Define.
791         (_ignore_case): New function.
792         (ignore_value): New macro, to replace the old function.
793         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
794         * modules/ignore-value (Depends-on): Add stdint.
795
796 2011-01-04  Eric Blake  <eblake@redhat.com>
797
798         doc: regenerate INSTALL
799         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
800         @firstparagraphindent support, now that autoconf dropped it.
801         (INSTALL_PRELUDE): Reinstate old macro.
802         * doc/install.texi: Resync from autoconf.
803         * doc/INSTALL: Reflect recent autoconf update.
804         * doc/INSTALL.ISO: Likewise.
805         * doc/INSTALL.UTF-8: Likewise.
806         Reported by Karl Berry.
807
808 2011-01-04  Bruce Korb  <address@hidden>
809
810         git-version-gen: avoid a sub-shell
811         * build-aux/git-version-gen: Redirect stderr in `...` via
812         "exec 2>...", rather than via an added sub-shell.
813
814 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
815
816         git-version-gen: use (...) rather than sh -c '...'
817         * build-aux/git-version-gen: Rather than hard-coding a shell's name
818         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
819
820 2011-01-03  Jim Meyering  <meyering@redhat.com>
821
822         git-version-gen: convert leading TABs to spaces
823         * build-aux/git-version-gen: Expand leading TABs.
824
825         git-version-gen: handle failed "git rev-list"
826         * build-aux/git-version-gen: Rather than leaking a "fatal" error
827         from git and proceeding as if it had succeeded but printed no SHA1
828         checksums, suppress the diagnostic and handle the failure.
829         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
830
831         git-version-gen: include command name in one more diagnostic
832         * build-aux/git-version-gen: When the required .tarball-version file
833         was missing or unreadable, you might see the diagnostic from "cat",
834         but no trace of the name of the invoking script.  Now, you still see
835         the diagnostic from cat, but also get one from "git-version-gen: ".
836         Inspired by a patch from Bruce Korb.
837
838         update-copyright: adjust test to match changed code
839         * tests/test-update-copyright.sh: Change test's expected output
840         to match new actual output.
841
842 2011-01-02  Bruno Haible  <bruno@clisp.org>
843
844         getlogin_r: Avoid test failure on HP-UX 11.
845         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
846         ERANGE when the second argument is zero.
847         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
848         portability problem.
849
850 2011-01-02  Bruce Korb  <bkorb@gnu.org>
851
852         * build-aux/update-copyright: doc Simon's changes
853
854 2011-01-02  Simon Josefsson  <simon@josefsson.org>
855
856         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
857         environment variable.
858
859 2011-01-02  Bruno Haible  <bruno@clisp.org>
860
861         unigbrk: Avoid gcc warnings.
862         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
863         unused variable.
864         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
865         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
866         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
867         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
868         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
869         Change type of first argument to 'const char *'.
870         (main): Remove unused variable.
871         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
872         type of first argument to 'const char *'.
873         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
874         Likewise.
875         (main): Change type of variable 's'.
876         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
877         to 'int'.
878
879 2011-01-02  Bruno Haible  <bruno@clisp.org>
880
881         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
882         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
883         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
884         bug.
885         * lib/pwrite.c: Undo 2010-12-31 patch.
886         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
887
888 2011-01-02  Bruno Haible  <bruno@clisp.org>
889
890         pread: Fix test whether it works.
891         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
892
893 2011-01-02  Bruno Haible  <bruno@clisp.org>
894
895         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
896         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
897         ends in "6". Don't require a specific month name. Try also the locale
898         names found on HP-UX 11 and Solaris 7.
899
900 2011-01-02  Bruno Haible  <bruno@clisp.org>
901
902         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
903         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
904         C linkage.
905         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
906
907 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
908
909         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
910         for consistency, since the "cluster" term is not used elsewhere.
911         * lib/unigbrk.in.h: Update name.
912         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
913         * lib/unigbrk/u16-grapheme-next.c: Update name.
914         * lib/unigbrk/u16-grapheme-prev.c: Update name.
915         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
916         * lib/unigbrk/u32-grapheme-next.c: Update name.
917         * lib/unigbrk/u32-grapheme-prev.c: Update name.
918         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
919         * lib/unigbrk/u8-grapheme-next.c: Update name.
920         * lib/unigbrk/u8-grapheme-prev.c: Update name.
921         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
922         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
923         Suggested by Bruno Haible.
924
925 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
926
927         Remove module 'u8-grapheme-len' as too redundant with
928         'u8-grapheme-next'.
929         * modules/unigbrk/u8-grapheme-len: Delete file.
930         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
931         * lib/unigbrk.in.h: Remove prototype for deleted function.
932         * lib/unigbrk/u8-grapheme-len.c: Delete file.
933         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
934
935         Remove module 'u16-grapheme-len' as too redundant with
936         'u16-grapheme-next'.
937         * modules/unigbrk/u16-grapheme-len: Delete file.
938         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
939         * lib/unigbrk.in.h: Remove prototype for deleted function.
940         * lib/unigbrk/u16-grapheme-len.c: Delete file.
941         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
942
943         Remove module 'u32-grapheme-len' as too redundant with
944         'u32-grapheme-next'.
945         * modules/unigbrk/u32-grapheme-len: Delete file.
946         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
947         * lib/unigbrk.in.h: Remove prototype for deleted function.
948         * lib/unigbrk/u32-grapheme-len.c: Delete file.
949         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
950
951         Suggested by Bruno Haible.
952
953 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
954
955         * unigbrk.in.h: Fix typo: "ben" => "been".
956         Reported by Bruno Haible.
957
958 2011-01-01  Jim Meyering  <meyering@redhat.com>
959
960         maint: update almost all copyright ranges to include 2011
961         Run the new "make update-copyright" rule.
962
963 2011-01-01  Jim Meyering  <meyering@redhat.com>
964
965         maint: update-copyright: exempt doc/INSTALL*
966         * Makefile (update-copyright): Also exclude doc/INSTALL*,
967         since they are generated.  Suggested by Bruno Haible.
968
969 2011-01-01  Jim Meyering  <meyering@redhat.com>
970
971         maint: refine the update-copyright rule
972         * Makefile (update-copyright): Also exclude any file that includes
973         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
974         code that merely generates the comment.
975
976 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
977
978         New module 'u8-grapheme-len'.
979         * modules/unigbrk/u8-grapheme-len: New file.
980         * modules/unigbrk/u8-grapheme-len-tests: New file.
981         * lib/unigbrk.in.h: Add prototype for new function.
982         * lib/unigbrk/u8-grapheme-len.c: New file.
983         * tests/unigbrk/test-u8-grapheme-len.c: New file.
984
985         New module 'u16-grapheme-len'.
986         * modules/unigbrk/u16-grapheme-len: New file.
987         * modules/unigbrk/u16-grapheme-len-tests: New file.
988         * lib/unigbrk.in.h: Add prototype for new function.
989         * lib/unigbrk/u16-grapheme-len.c: New file.
990         * tests/unigbrk/test-u16-grapheme-len.c: New file.
991
992         New module 'u32-grapheme-len'.
993         * modules/unigbrk/u32-grapheme-len: New file.
994         * modules/unigbrk/u32-grapheme-len-tests: New file.
995         * lib/unigbrk.in.h: Add prototype for new function.
996         * lib/unigbrk/u32-grapheme-len.c: New file.
997         * tests/unigbrk/test-u32-grapheme-len.c: New file.
998
999         New module 'u8-grapheme-next'.
1000         * modules/unigbrk/u8-grapheme-next: New file.
1001         * modules/unigbrk/u8-grapheme-next-tests: New file.
1002         * lib/unigbrk.in.h: Add prototype for new function.
1003         * lib/unigbrk/u8-grapheme-next.c: New file.
1004         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1005
1006         New module 'u16-grapheme-next'.
1007         * modules/unigbrk/u16-grapheme-next: New file.
1008         * modules/unigbrk/u16-grapheme-next-tests: New file.
1009         * lib/unigbrk.in.h: Add prototype for new function.
1010         * lib/unigbrk/u16-grapheme-next.c: New file.
1011         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1012
1013         New module 'u32-grapheme-next'.
1014         * modules/unigbrk/u32-grapheme-next: New file.
1015         * modules/unigbrk/u32-grapheme-next-tests: New file.
1016         * lib/unigbrk.in.h: Add prototype for new function.
1017         * lib/unigbrk/u32-grapheme-next.c: New file.
1018         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1019
1020         New module 'u8-grapheme-prev'.
1021         * modules/unigbrk/u8-grapheme-prev: New file.
1022         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1023         * lib/unigbrk.in.h: Add prototype for new function.
1024         * lib/unigbrk/u8-grapheme-prev.c: New file.
1025         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1026
1027         New module 'u16-grapheme-prev'.
1028         * modules/unigbrk/u16-grapheme-prev: New file.
1029         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1030         * lib/unigbrk.in.h: Add prototype for new function.
1031         * lib/unigbrk/u16-grapheme-prev.c: New file.
1032         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1033
1034         New module 'u32-grapheme-prev'.
1035         * modules/unigbrk/u32-grapheme-prev: New file.
1036         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1037         * lib/unigbrk.in.h: Add prototype for new function.
1038         * lib/unigbrk/u32-grapheme-prev.c: New file.
1039         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1040
1041         New module 'u8-grapheme-breaks'.
1042         * modules/unigbrk/u8-grapheme-breaks: New file.
1043         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1044         * lib/unigbrk.in.h: Add prototype for new function.
1045         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1046         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1047
1048         New module 'u16-grapheme-breaks'.
1049         * modules/unigbrk/u16-grapheme-breaks: New file.
1050         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1051         * lib/unigbrk.in.h: Add prototype for new function.
1052         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1053         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1054
1055         New module 'u32-grapheme-breaks'.
1056         * modules/unigbrk/u32-grapheme-breaks: New file.
1057         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1058         * lib/unigbrk.in.h: Add prototype for new function.
1059         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1060         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1061
1062         New module 'ulc-grapheme-breaks'.
1063         * modules/unigbrk/ulc-grapheme-breaks: New file.
1064         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1065         * m4/locale-ar.m4: New file.
1066         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1067         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1068         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1069
1070 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1071
1072         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1073         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1074         modified how this file was generated before I initially submitted
1075         the module, but failed to regenerate it.  This meant that several
1076         of the level2 entries were wrong.
1077         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1078         Remove the division-by-2 that is folded into the table now that
1079         gbrkprop.h has been regenerated properly.  Now -1 entries are
1080         handled correctly.
1081
1082         New module 'unigbrk/uc-gbrk-prop-tests'.
1083         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1084         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1085         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1086         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1087
1088 2011-01-01  Bruno Haible  <bruno@clisp.org>
1089
1090         Avoid use of hexadecimal escapes.
1091         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1092         instead of hexadecimal escapes.
1093
1094 2011-01-01  Jim Meyering  <meyering@redhat.com>
1095
1096         maint: new rule to update copyright year ranges
1097         * Makefile (update-copyright): New rule.
1098
1099         maint: indent with TABs in Makefile
1100         * Makefile: Expand leading sequences of spaces to TABs
1101
1102         version-etc: update the copyright year it reports
1103         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1104
1105 2010-12-31  Bruno Haible  <bruno@clisp.org>
1106
1107         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1108         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1109         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1110         zero.
1111
1112 2010-12-31  Bruno Haible  <bruno@clisp.org>
1113
1114         pwrite: Work around HP-UX 11.11 bug.
1115         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1116         works and set REPLACE_PWRITE if not.
1117         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1118         function.
1119         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1120
1121 2010-12-31  Bruno Haible  <bruno@clisp.org>
1122
1123         pread: Work around HP-UX 11 bugs.
1124         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1125         and set REPLACE_PREAD if not.
1126         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1127
1128 2010-12-31  Eric Blake  <eblake@redhat.com>
1129
1130         nl_langinfo: fix YESEXPR on Irix 6.5
1131         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1132         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1133         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1134         it.
1135
1136 2010-12-31  Bruno Haible  <bruno@clisp.org>
1137
1138         iconv: Document HP-UX 11 bug.
1139         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1140
1141 2010-12-31  Bruno Haible  <bruno@clisp.org>
1142
1143         ldexpl: Fix link error on HP-UX 11.
1144         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1145         LDEXPL_LIBM, using $ISNANL_LIBM.
1146
1147 2010-12-31  Eric Blake  <eblake@redhat.com>
1148
1149         ftello: avoid compilation failure with SunStudio c89
1150         * lib/ftello.c (ftello): Use lseek, not llseek.
1151
1152         tests: avoid failing coreutils tests on cygwin
1153         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1154         (create_exe_shims_): Return 0 when skipping.
1155
1156 2010-12-31  Bruno Haible  <bruno@clisp.org>
1157
1158         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1159         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1160
1161 2010-12-31  Bruno Haible  <bruno@clisp.org>
1162
1163         waitpid: Fix link error in C++ mode.
1164         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1165
1166 2010-12-31  Bruno Haible  <bruno@clisp.org>
1167
1168         isnan: Use GCC built-ins when possible.
1169         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1170         __builtin_isnan.
1171         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1172         (isnan): Define using GCC built-ins for GCC >= 4.0.
1173
1174 2010-12-31  Bruno Haible  <bruno@clisp.org>
1175
1176         isnand: Fix mistake.
1177         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1178         __builtin_isnand.
1179
1180 2010-12-31  Bruno Haible  <bruno@clisp.org>
1181
1182         open: Avoid C++ error on HP-UX 11.
1183         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1184
1185 2010-12-31  Bruno Haible  <bruno@clisp.org>
1186
1187         time_r: Add missing declarations on HP-UX 11.
1188         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1189         instead of HAVE_LOCALTIME_R.
1190         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1191         HAVE_LOCALTIME_R always.
1192         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1193         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1194         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1195         HAVE_LOCALTIME_R.
1196         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1197         * doc/posix-functions/localtime_r.texi: Likewise.
1198
1199 2010-12-29  Eric Blake  <eblake@redhat.com>
1200
1201         mountlist: tweak previous commit
1202         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1203         Reported by Paul Eggert.
1204
1205         mountlist: fix local drive detection on cygwin
1206         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1207         that works for cygwin.
1208
1209 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1210
1211         ftoastr, snprintf: ftoastr + snprintf module
1212         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1213         since the snprintf module now should be good enough here.
1214         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1215         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1216         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1217         GNULIB_SNPRINTF only for the test directory, and the latter
1218         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1219         seems to suffice by itself.
1220
1221 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1222
1223         alloca: one step towards thread-safety
1224         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1225         need for a static variable.  All callers changed.  This does not
1226         make the alloca replacement thread-safe, but it's one step.
1227
1228         tests: minor indenting change
1229         * tests/init.sh: Sync from coreutils housekeeping patch
1230         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1231         to keep lines within 80 columns.
1232
1233 2010-12-28  Jim Meyering  <meyering@redhat.com>
1234
1235         regex: don't infloop on persistent failing calloc
1236         * lib/regexec.c (build_trtable): Return failure indication upon
1237         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1238         In glibc, this was fixed for version 2.13:
1239         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1240
1241 2010-12-28  Bruno Haible  <bruno@clisp.org>
1242             Paul Eggert <eggert@cs.ucla.edu>
1243
1244         linkat: Make implementation robust against system behaviour variations.
1245         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1246         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1247         way, and to -2 if it needs a generic runtime test.
1248         * lib/linkat.c (solaris_optimized_link_immediate,
1249         solaris_optimized_link_follow): New functions.
1250         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1251         (check_same_link): Use it.
1252
1253 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1254
1255         New module 'unigbrk/base'.
1256         * modules/unigbrk/base: New file.
1257         * lib/unigbrk.in.h: New file.
1258
1259         New module 'unigbrk/uc-gbrk-prop'.
1260         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1261         * modules/unigbrk/uc-gbrk-prop: New file.
1262         * lib/unigbrk/gbrkprop.h: New file.
1263         * lib/unigbrk/uc-gbrk-prop.c: New file.
1264
1265         New module 'unigbrk/uc-is-grapheme-break'.
1266         * modules/unigbrk/uc-is-grapheme-break: New file.
1267         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1268         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1269         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1270         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1271         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1272
1273         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1274
1275 2010-12-27  Bruno Haible  <bruno@clisp.org>
1276
1277         linkat test: Avoid failure on Solaris 11 2010-11.
1278         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1279
1280 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1281
1282         utimens: work around glibc rounding bug on more platforms
1283         * lib/utimens.c (fdutimens): Work around rounding bug even if
1284         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1286
1287 2010-12-27  Bruno Haible  <bruno@clisp.org>
1288
1289         select tests: Improve comments.
1290         * tests/test-select.c (do_select): Add comments.
1291
1292 2010-12-27  Bruno Haible  <bruno@clisp.org>
1293
1294         select tests: Safer way of handling timeout.
1295         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1296         at every invocation.
1297
1298 2010-12-27  Bruno Haible  <bruno@clisp.org>
1299
1300         select tests: Use 'bool' where appropriate.
1301         * tests/test-select.c (connect_to_socket): Change argument type to
1302         'bool'.
1303
1304 2010-12-27  Bruno Haible  <bruno@clisp.org>
1305
1306         select tests: Use existing modules.
1307         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1308         (configure.ac): Don't test for unistd.h.
1309         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1310         declared in <unistd.h>.
1311
1312 2010-12-27  Bruno Haible  <bruno@clisp.org>
1313
1314         mbrtowc: Work around a Solaris 7 bug.
1315         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1316         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1317         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1318         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1319         MBRTOWC_NULL_ARG1_BUG.
1320         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1321         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1322         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1323         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1324
1325 2010-12-27  Jim Meyering  <meyering@redhat.com>
1326
1327         read-file.c: tweak syntax
1328         * lib/read-file.c (fread_file): Remove space after "*" in function
1329         definitions.
1330
1331 2010-12-27  Bruno Haible  <bruno@clisp.org>
1332
1333         times test: Avoid gcc warnings on OSF/1.
1334         * tests/test-times.c (main): Cast printf arguments from clock_t to
1335         'long int'.
1336
1337 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1338
1339         utimens: work around glibc rounding bug on older Linux kernels
1340         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
1341         on Linux with a glibc whose utimes might not work, then work
1342         around a longstanding glibc bug involving rounding rather than
1343         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
1344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1345
1346 2010-12-26  Bruno Haible  <bruno@clisp.org>
1347
1348         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
1349         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
1350         _GL_CXXALIAS_SYS.
1351         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1352
1353 2010-12-26  Bruno Haible  <bruno@clisp.org>
1354
1355         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
1356         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
1357         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1358         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
1359         looking for the declaration.
1360         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
1361         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
1362         problem.
1363         * doc/posix-functions/inet_pton.texi: Likewise.
1364
1365 2010-12-26  Bruno Haible  <bruno@clisp.org>
1366
1367         arpa_inet: Use the common idioms with C++ support.
1368         * lib/arpa_inet.in.h: Include c++defs.h.
1369         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1370         support.
1371         * modules/arpa_inet (Depends-on): Add c++defs.
1372         (Makefile.am): Substitute the contents of c++defs.h.
1373         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1374         * modules/arpa_inet-c++-tests: New file.
1375         * tests/test-arpa_inet-c++.cc: New file.
1376
1377 2010-12-25  Bruno Haible  <bruno@clisp.org>
1378
1379         Fix more C++ link errors on Solaris 8.
1380         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1381         $(LIB_EACCESS).
1382         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1383         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1384         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1385         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1386         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1387
1388 2010-12-25  Bruno Haible  <bruno@clisp.org>
1389
1390         printf-posix: Fix link error when a non-GCC compiler is used.
1391         * lib/stdio.in.h (printf): When not using GCC, override printf
1392         correctly.
1393         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1394
1395 2010-12-25  Bruno Haible  <bruno@clisp.org>
1396
1397         strerror_r-posix: Update doc.
1398         * doc/posix-functions/strerror_r.texi: Update doc about the return
1399         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1400
1401 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1402
1403         utimens: simplify the logic of the previous change
1404         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1405         This should not affect whether the test succeeds or fails.
1406
1407         utimens: configure better on hosts with NFS clock skew
1408         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1409         uses the clock of the local host.  It might use the clock of the
1410         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1411         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1412
1413 2010-12-25  Bruno Haible  <bruno@clisp.org>
1414
1415         ptsname test: Avoid failure on Solaris.
1416         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
1417         open a pseudo-terminal; don't use BSD-style ptys.
1418         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
1419
1420 2010-12-25  Bruno Haible  <bruno@clisp.org>
1421
1422         ptsname: Avoid ERANGE failure on some systems.
1423         * lib/ptsname.c (buffer): Increase size.
1424
1425 2010-12-25  Bruno Haible  <bruno@clisp.org>
1426
1427         rename, renameat: Avoid test failures at NFS mounted locations.
1428         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
1429         so that subsequent mkdir calls succeed.
1430
1431 2010-12-25  Bruno Haible  <bruno@clisp.org>
1432
1433         iswblank: Fix C++ link error on Solaris 8.
1434         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
1435         _GL_FUNCDECL_SYS.
1436
1437 2010-12-25  Bruno Haible  <bruno@clisp.org>
1438
1439         unistd: Fix C++ link error on Solaris 8.
1440         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
1441
1442 2010-12-25  Bruno Haible  <bruno@clisp.org>
1443
1444         readlink doc: Mention an old glibc bug.
1445         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
1446
1447 2010-12-25  Bruno Haible  <bruno@clisp.org>
1448
1449         fcntl-h: Fix for use of C++ on glibc systems.
1450         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1451         also on glibc systems in C++ mode.
1452         Reported by Gary V. Vaughan <gary@gnu.org>.
1453
1454 2010-12-25  Bruno Haible  <bruno@clisp.org>
1455
1456         roundl-ieee: Make it work on OSF/1 5.1 with cc.
1457         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
1458
1459 2010-12-25  Bruno Haible  <bruno@clisp.org>
1460
1461         truncl-ieee: Make it work on OSF/1 5.1 with cc.
1462         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
1463         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
1464         test whether truncl works according to ISO C 99 with IEC 60559.
1465         * m4/truncl-ieee.m4: New file.
1466         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
1467         m4/signbit.m4.
1468         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
1469
1470 2010-12-25  Bruno Haible  <bruno@clisp.org>
1471
1472         ceill-ieee: Make it work on OSF/1 5.1 with cc.
1473         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
1474         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
1475         test whether ceill works according to ISO C 99 with IEC 60559.
1476         * m4/ceill-ieee.m4: New file.
1477         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
1478         m4/signbit.m4.
1479         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
1480
1481 2010-12-25  Bruno Haible  <bruno@clisp.org>
1482
1483         Ensure all prerequisites of <wchar.h> are included.
1484         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
1485         before <wchar.h>.
1486         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1487         gl_MBRLEN_NUL_RETVAL): Likewise.
1488         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1489         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
1490         AC_FUNC_MBRTOWC): Likewise.
1491         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1492         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1493         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1494         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1495         Likewise.
1496         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1497         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
1498         (gl_WCHAR_H): Improve comments.
1499         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1500
1501 2010-12-25  Bruno Haible  <bruno@clisp.org>
1502
1503         strtok_r: Fix C syntax error in autoconf macro.
1504         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
1505         characters in test program.
1506
1507 2010-12-24  Bruno Haible  <bruno@clisp.org>
1508
1509         ceil, trunc, round: Fix gcc warnings.
1510         * lib/ceil.c (MIN): Undefine before redefining.
1511         * lib/trunc.c (MIN): Likewise.
1512         * lib/round.c (MIN): Likewise.
1513         Include <math.h> first.
1514
1515 2010-12-24  Bruno Haible  <bruno@clisp.org>
1516
1517         select tests: Avoid failures on OSF/1 5.1.
1518         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
1519         failure of closing the last socket; it may fail with ECONNRESET.
1520
1521 2010-12-24  Eric Blake  <eblake@redhat.com>
1522
1523         stdint: avoid HP-UX 10.20 preprocessor bug
1524         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
1525         than #if.
1526         * tests/test-floor2.c (main): Likewise.
1527         Reported by Peter O'Gorman.
1528
1529         pipe: make obsoletion transition easier
1530         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
1531         * modules/pipe (Files): Include revived file.
1532         (Include): Drop reference, to mirror getdate's behavior.
1533
1534 2010-12-24  Bruno Haible  <bruno@clisp.org>
1535
1536         sys_socket: Hide mismatch of declarations on NonStop Kernel.
1537         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
1538         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
1539         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1540
1541 2010-12-24  Bruno Haible  <bruno@clisp.org>
1542
1543         gethostname: Ensure declaration on NonStop Kernel.
1544         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
1545         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1546
1547 2010-12-24  Bruno Haible  <bruno@clisp.org>
1548
1549         sys_select: Ensure all necessary types on NonStop Kernel.
1550         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
1551         include <sys/time.h>.
1552         * doc/posix-headers/sys_select.texi: Mention that it's missing on
1553         NonStop Kernel.
1554         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1555
1556 2010-12-24  Bruno Haible  <bruno@clisp.org>
1557
1558         sys_select: Remove unneeded include.
1559         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
1560         have <sys/select.h>.
1561
1562 2010-12-24  Bruno Haible  <bruno@clisp.org>
1563
1564         gethostname: Provide a fallback for HOST_NAME_MAX.
1565         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
1566         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
1567         instead.
1568         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1569
1570 2010-12-24  Bruno Haible  <bruno@clisp.org>
1571
1572         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
1573         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
1574         (SA_RESTART): Likewise.
1575         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1576
1577 2010-12-24  Bruno Haible  <bruno@clisp.org>
1578
1579         signal: Define NSIG.
1580         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
1581         * tests/test-signal.c (nsig): New variable.
1582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1583
1584 2010-12-24  Bruno Haible  <bruno@clisp.org>
1585
1586         rename, renameat: Avoid test failures on OSF/1 5.1.
1587         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
1588         alternative error codes.
1589         * tests/test-renameat.c (main): Likewise.
1590
1591 2010-12-24  Bruno Haible  <bruno@clisp.org>
1592
1593         *printf: Detect large precisions bug on Solaris 10/SPARC.
1594         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
1595         by Paul Eggert.
1596         * tests/test-snprintf-posix.h (test_function): Add this test code here
1597         too.
1598         * tests/test-sprintf-posix.h (test_function): Likewise.
1599         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1600         * tests/test-vasprintf-posix.c (test_function): Likewise.
1601         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
1602         around by gnulib.
1603         * doc/posix-functions/printf.texi: Likewise.
1604         * doc/posix-functions/snprintf.texi: Likewise.
1605         * doc/posix-functions/sprintf.texi: Likewise.
1606         * doc/posix-functions/vfprintf.texi: Likewise.
1607         * doc/posix-functions/vprintf.texi: Likewise.
1608         * doc/posix-functions/vsnprintf.texi: Likewise.
1609         * doc/posix-functions/vsprintf.texi: Likewise.
1610         * doc/posix-functions/dprintf.texi: Undo last commit.
1611         * doc/posix-functions/vdprintf.texi: Likewise.
1612
1613 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1614
1615         tests: port test-fdutimensat.c to Solaris 8
1616         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
1617         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
1618         On Solaris 8, it fails with errno == ENOSYS, because there is no
1619         futimens (so it can't use the fd), and there is no lutimens (so it
1620         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
1621
1622         vsnprintf: make more consistent with snprintf; doc fixes
1623
1624         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
1625         the byte count return problem was promoted from the snprintf-posix
1626         to the snprintf module.
1627         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1628         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
1629         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
1630         * tests/test-snprintf.c (main): Check the byte count returned.
1631         * tests/test-vsnprintf.c (main): Likewise.
1632
1633 2010-12-23  Eric Blake  <eblake@redhat.com>
1634
1635         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
1636         * modules/sigpipe (License): Relax license.
1637
1638 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1639
1640         doc: document Solaris printf bug with large float precisions
1641         * doc/posix-functions/dprintf.texi (dprintf):
1642         * doc/posix-functions/fprintf.texi (fprintf):
1643         * doc/posix-functions/printf.texi (printf):
1644         * doc/posix-functions/snprintf.texi (snprintf):
1645         * doc/posix-functions/sprintf.texi (sprintf):
1646         * doc/posix-functions/vdprintf.texi (vdprintf):
1647         * doc/posix-functions/vfprintf.texi (vfprintf):
1648         * doc/posix-functions/vprintf.texi (vprintf):
1649         * doc/posix-functions/vsnprintf.texi (vsnprintf):
1650         * doc/posix-functions/vsprintf.texi (vsprintf):
1651         Mention that these functions mishandle large floating point
1652         precisions on Solaris 10.  The same bug is also present in Solaris
1653         8, and I assume earlier.  This causes "cd gnulib-tests; make
1654         check" to fail on Solaris 8 (and I assume, later) when building
1655         the latest coreutils, in test-vasprintf-posix's call to
1656         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
1657         the wide flavors (e.g., wprintf) so this patch just updates the
1658         documentation for the narrow ones.
1659
1660         test-posixtm.c: add two tests
1661         * tests/test-posixtm.c: Add two tests, to highlight the
1662         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
1663         around this bug; this is merely to document it.
1664
1665 2010-12-22  Bruno Haible  <bruno@clisp.org>
1666
1667         getlogin_r: Work around portability problem on OSF/1.
1668         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
1669         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
1670         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
1671         test for a truncated result.
1672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
1673         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
1674         * modules/getlogin_r (Depends-on): Add memchr.
1675         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
1676
1677 2010-12-22  Bruno Haible  <bruno@clisp.org>
1678
1679         ptsname: Avoid test failure on OSF/1 5.1.
1680         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
1681         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
1682         (same_slave): New function.
1683         (main): Use it to compare ptsname's result with the expected file name.
1684
1685 2010-12-22  Bruno Haible  <bruno@clisp.org>
1686
1687         Port extended stdio modules to HP NonStop Kernel.
1688         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
1689         macros.
1690         * lib/fbufmode.c: Update comments.
1691         * lib/fflush.c: Likewise.
1692         * lib/fpurge.c: Likewise.
1693         * lib/freadable.c: Likewise.
1694         * lib/freadahead.c: Likewise.
1695         * lib/freading.c: Likewise.
1696         * lib/freadptr.c: Likewise.
1697         * lib/freadseek.c: Likewise.
1698         * lib/fseeko.c: Likewise.
1699         * lib/fseterr.c: Likewise.
1700         * lib/fwritable.c: Likewise.
1701         * lib/fwriting.c: Likewise.
1702         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1703
1704 2010-12-22  Bruno Haible  <bruno@clisp.org>
1705
1706         ttyname_r: Work around bug on OSF/1 5.1.
1707         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
1708         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
1709         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
1710         present.
1711         * lib/ttyname_r.c (ttyname_r): Update comments.
1712
1713 2010-12-22  Bruno Haible  <bruno@clisp.org>
1714
1715         round: Implement result sign according to IEEE 754.
1716         * lib/round.c (MIN, MINUS_ZERO): New macros.
1717         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
1718         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
1719         * tests/test-round-ieee.c (main): Likewise.
1720         * tests/test-roundl-ieee.c (main): Likewise.
1721
1722         trunc: Implement result sign according to IEEE 754.
1723         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
1724         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
1725         * tests/test-trunc2.c: Include minus-zero.h.
1726         (MINUS_ZERO): New macro.
1727         (trunc_reference): Keep in sync with lib/trunc.c.
1728         * tests/test-truncf2.c: Include minus-zero.h.
1729         (MINUS_ZERO): New macro.
1730         (truncf_reference): Keep in sync with lib/trunc.c.
1731         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
1732         * tests/test-trunc-ieee.c (main): Likewise.
1733         * tests/test-truncl-ieee.c (main): Likewise.
1734
1735         ceil: Implement result sign according to IEEE 754.
1736         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
1737         (FUNC): Return -0.0 for -1 < x < 0.
1738         * tests/test-ceil2.c: Include minus-zero.h.
1739         (MINUS_ZERO): New macro.
1740         (ceil_reference): Keep in sync with lib/ceil.c.
1741         * tests/test-ceilf2.c: Include minus-zero.h.
1742         (MINUS_ZERO): New macro.
1743         (ceilf_reference): Keep in sync with lib/ceil.c.
1744         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
1745         * tests/test-ceil-ieee.c (main): Likewise.
1746         * tests/test-ceill-ieee.c (main): Likewise.
1747
1748         floor: Implement result sign according to IEEE 754.
1749         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
1750         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
1751         * tests/test-floorf2.c (floorf_reference): Likewise.
1752         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
1753         * tests/test-floor-ieee.c (main): Likewise.
1754         * tests/test-floorl-ieee.c (main): Likewise.
1755
1756 2010-12-22  Bruno Haible  <bruno@clisp.org>
1757
1758         getaddrinfo: Update doc.
1759         * doc/posix-functions/gai_strerror.texi: Return type is also different
1760         on AIX and HP-UX.
1761
1762 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1763
1764         getaddrinfo, inet_ntop: Update doc for Solaris.
1765         * doc/posix-functions/gai_strerror.texi: Return type is also an
1766         issue on Solaris 9 and earlier.
1767         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
1768         on Solaris 10 and earlier.
1769
1770 2010-12-21  Bruno Haible  <bruno@clisp.org>
1771
1772         New module 'roundl-ieee'.
1773         * modules/roundl-ieee: New file.
1774         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
1775         test whether roundl works according to ISO C 99 with IEC 60559.
1776         * m4/roundl-ieee.m4: New file.
1777         * modules/roundl-ieee-tests: New file.
1778         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
1779         * tests/test-roundl.c (main): Remove signbit tests.
1780         * modules/roundl-tests (Depends-on): Remove signbit.
1781         * doc/posix-functions/roundl.texi: Mention the new module.
1782
1783 2010-12-21  Bruno Haible  <bruno@clisp.org>
1784
1785         New module 'truncl-ieee'.
1786         * modules/truncl-ieee: New file.
1787         * modules/truncl-ieee-tests: New file.
1788         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
1789         * tests/test-truncl.c (main): Remove signbit tests.
1790         * modules/truncl-tests (Depends-on): Remove signbit.
1791         * doc/posix-functions/truncl.texi: Mention the new module.
1792
1793 2010-12-21  Bruno Haible  <bruno@clisp.org>
1794
1795         New module 'ceill-ieee'.
1796         * modules/ceill-ieee: New file.
1797         * modules/ceill-ieee-tests: New file.
1798         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
1799         * tests/test-ceill.c (main): Remove signbit tests.
1800         * modules/ceill-tests (Depends-on): Remove signbit.
1801         * doc/posix-functions/ceill.texi: Mention the new module.
1802
1803 2010-12-21  Bruno Haible  <bruno@clisp.org>
1804
1805         New module 'floorl-ieee'.
1806         * modules/floorl-ieee: New file.
1807         * modules/floorl-ieee-tests: New file.
1808         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
1809         * tests/test-floorl.c (main): Remove signbit tests.
1810         * modules/floorl-tests (Depends-on): Remove signbit.
1811         * doc/posix-functions/floorl.texi: Mention the new module.
1812
1813 2010-12-21  Bruno Haible  <bruno@clisp.org>
1814
1815         New module 'round-ieee'.
1816         * modules/round-ieee: New file.
1817         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
1818         whether round works according to ISO C 99 with IEC 60559.
1819         * m4/round-ieee.m4: New file.
1820         * modules/round-ieee-tests: New file.
1821         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
1822         * tests/test-round1.c (main): Remove signbit tests.
1823         * modules/round-tests (Depends-on): Remove 'signbit'.
1824         * doc/posix-functions/round.texi: Mention the new module.
1825
1826 2010-12-21  Bruno Haible  <bruno@clisp.org>
1827
1828         New module 'trunc-ieee'.
1829         * modules/trunc-ieee: New file.
1830         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
1831         whether trunc works according to ISO C 99 with IEC 60559.
1832         * m4/trunc-ieee.m4: New file.
1833         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
1834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
1835         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
1836         * modules/trunc-ieee-tests: New file.
1837         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
1838         * tests/test-trunc1.c (main): Remove signbit tests.
1839         * modules/trunc-tests (Depends-on): Remove 'signbit'.
1840         * doc/posix-functions/trunc.texi: Mention the new module.
1841
1842 2010-12-21  Bruno Haible  <bruno@clisp.org>
1843
1844         New module 'ceil-ieee'.
1845         * modules/ceil-ieee: New file.
1846         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
1847         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
1848         ISO C 99 with IEC 60559.
1849         * m4/ceil-ieee.m4: New file.
1850         * modules/ceil (Files): Add lib/ceil.c.
1851         (Depends-on): Add 'float'.
1852         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1853         * lib/math.in.h (ceil): New declaration.
1854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
1855         REPLACE_CEIL.
1856         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
1857         * modules/ceil-ieee-tests: New file.
1858         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
1859         * tests/test-math-c++.cc: Check the signature of 'ceil'.
1860         * doc/posix-functions/ceil.texi: Mention the new module.
1861
1862 2010-12-21  Bruno Haible  <bruno@clisp.org>
1863
1864         New module 'floor-ieee'.
1865         * modules/floor-ieee: New file.
1866         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
1867         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
1868         ISO C 99 with IEC 60559.
1869         * m4/floor-ieee.m4: New file.
1870         * modules/floor (Files): Add lib/floor.c.
1871         (Depends-on): Add 'float'.
1872         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1873         * lib/math.in.h (floor): New declaration.
1874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
1875         REPLACE_FLOOR.
1876         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
1877         * modules/floor-ieee-tests: New file.
1878         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
1879         * tests/test-math-c++.cc: Check the signature of 'floor'.
1880         * doc/posix-functions/floor.texi: Mention the new module.
1881
1882 2010-12-21  Bruno Haible  <bruno@clisp.org>
1883
1884         New module 'roundf-ieee'.
1885         * modules/roundf-ieee: New file.
1886         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
1887         test whether roundf works according to ISO C 99 with IEC 60559.
1888         * m4/roundf-ieee.m4: New file.
1889         * modules/roundf-ieee-tests: New file.
1890         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
1891         * tests/test-roundf1.c (main): Remove signbit tests.
1892         * modules/roundf-tests (Depends-on): Remove 'signbit'.
1893         * doc/posix-functions/roundf.texi: Mention the new module.
1894
1895 2010-12-21  Bruno Haible  <bruno@clisp.org>
1896
1897         New module 'truncf-ieee'.
1898         * modules/truncf-ieee: New file.
1899         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
1900         test whether truncf works according to ISO C 99 with IEC 60559.
1901         * m4/truncf-ieee.m4: New file.
1902         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
1903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
1904         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
1905         * modules/truncf-ieee-tests: New file.
1906         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
1907         * tests/test-truncf1.c (main): Remove signbit tests.
1908         * modules/truncf-tests (Depends-on): Remove 'signbit'.
1909         * doc/posix-functions/truncf.texi: Mention the new module.
1910
1911 2010-12-21  Bruno Haible  <bruno@clisp.org>
1912
1913         New module 'ceilf-ieee'.
1914         * modules/ceilf-ieee: New file.
1915         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
1916         test whether ceilf works according to ISO C 99 with IEC 60559.
1917         * m4/ceilf-ieee.m4: New file.
1918         * modules/ceilf-ieee-tests: New file.
1919         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
1920         * tests/test-ceilf1.c (main): Remove signbit tests.
1921         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
1922         * doc/posix-functions/ceilf.texi: Mention the new module.
1923
1924 2010-12-21  Bruno Haible  <bruno@clisp.org>
1925
1926         New module 'floorf-ieee'.
1927         * modules/floorf-ieee: New file.
1928         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
1929         test whether floorf works according to ISO C 99 with IEC 60559.
1930         * m4/floorf-ieee.m4: New file.
1931         * modules/floorf-ieee-tests: New file.
1932         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
1933         * tests/test-floorf1.c (main): Remove signbit tests.
1934         * modules/floorf-tests (Depends-on): Remove 'signbit'.
1935         * doc/posix-functions/floorf.texi: Mention the new module.
1936
1937 2010-12-21  Bruno Haible  <bruno@clisp.org>
1938
1939         Support for minus zero in autoconf macros.
1940         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
1941         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
1942         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
1943         * tests/minus-zero.h: Update comments.
1944
1945 2010-12-21  Bruno Haible  <bruno@clisp.org>
1946
1947         Tests for module 'ceil'.
1948         * modules/ceil-tests: New file.
1949         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
1950         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
1951
1952 2010-12-21  Bruno Haible  <bruno@clisp.org>
1953
1954         Tests for module 'floor'.
1955         * modules/floor-tests: New file.
1956         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
1957         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
1958
1959 2010-12-21  Bruno Haible  <bruno@clisp.org>
1960
1961         math: Fix indentation.
1962         * lib/math.in.h (floorf): Fix indentation.
1963
1964 2010-12-21  Bruno Haible  <bruno@clisp.org>
1965
1966         Fix cross-compilation guesses on Solaris.
1967         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
1968         not match "solaris2.10".
1969         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1970         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
1971         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
1972
1973 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1974
1975         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
1976         This fixes a problem observed with the latest coreutils snapshot
1977         that caused a test to fail on Solaris 8.  src/csplit.c's call
1978         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
1979         earlier, instead of returning the number of bytes that would have
1980         been generated; this causes csplit to incorrectly report memory
1981         exhaustion.
1982         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
1983         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
1984         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
1985         comments to match.
1986         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
1987         Fix typo in matching older versions of Solaris: "solaris2.10"
1988         is matched by the shell pattern "solaris2.[0-9]*".  This matters
1989         only for guessing while cross-compiling.
1990         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
1991
1992 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1993
1994         ftoastr: fix comment again
1995         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
1996         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
1997         Also, simplify example a bit by using flags = 0.
1998
1999 2010-12-20  Bruno Haible  <bruno@clisp.org>
2000
2001         round*, trunc*: Update documentation regarding glibc.
2002         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2003         * doc/posix-functions/round.texi: Likewise.
2004         * doc/posix-functions/roundl.texi: Likewise.
2005         * doc/posix-functions/truncf.texi: Likewise.
2006         * doc/posix-functions/trunc.texi: Likewise.
2007         * doc/posix-functions/truncl.texi: Likewise.
2008
2009 2010-12-20  Bruno Haible  <bruno@clisp.org>
2010
2011         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2012         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2013         * doc/posix-functions/round.texi: Likewise.
2014         * doc/posix-functions/roundl.texi: Likewise.
2015
2016 2010-12-20  Bruno Haible  <bruno@clisp.org>
2017
2018         ttyname_r: Add missing declaration on HP-UX 11.
2019         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2020         HAVE_TTYNAME_R.
2021         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2022         declared. Set HAVE_TTYNAME_R always.
2023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2024         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2025         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2026         HAVE_TTYNAME_R.
2027         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2028
2029 2010-12-20  Bruno Haible  <bruno@clisp.org>
2030
2031         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2032         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2033         * doc/posix-functions/getlogin_r.texi: Likewise.
2034         * tests/test-getlogin.c: Include <errno.h>.
2035         (main): Avoid test failure on HP-UX 11.11.
2036         * tests/test-getlogin_r.c (main): Likewise.
2037
2038 2010-12-20  Bruno Haible  <bruno@clisp.org>
2039
2040         getlogin_r: Add missing declaration on HP-UX 11.
2041         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2042         declared also when it exists as a function.
2043         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2044
2045 2010-12-20  Bruno Haible  <bruno@clisp.org>
2046
2047         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2048         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2049         through wcrtomb.
2050
2051 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2052
2053         ftoastr: fix comment
2054         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2055         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2056
2057 2010-12-19  Bruno Haible  <bruno@clisp.org>
2058
2059         isnan: Ensure it is a macro.
2060         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2061         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2062         Solaris.
2063
2064 2010-12-19  Bruno Haible  <bruno@clisp.org>
2065
2066         ldexpl test: Fix link error on OSF/1 5.1.
2067         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2068
2069 2010-12-19  Bruno Haible  <bruno@clisp.org>
2070
2071         wctype: Make it work in C++ mode on OSF/1 5.1.
2072         * lib/wctype.in.h (iswblank): Declare but not define here.
2073         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2074         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2075         * modules/wctype (Files): Add lib/iswblank.c.
2076
2077 2010-12-19  Bruno Haible  <bruno@clisp.org>
2078
2079         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2080         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2081         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2082
2083 2010-12-19  Bruno Haible  <bruno@clisp.org>
2084
2085         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2086         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2087         _POSIX_PII_SOCKET.
2088         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2089         * doc/posix-functions/recvfrom.texi: Likewise.
2090         * doc/posix-functions/send.texi: Likewise.
2091         * doc/posix-functions/sendto.texi: Likewise.
2092
2093 2010-12-19  Bruno Haible  <bruno@clisp.org>
2094
2095         tcgetsid: Add missing declaration on OSF/1 5.1.
2096         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2097         HAVE_TCGETSID.
2098         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2099         Don't set HAVE_TCGETSID.
2100         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2101         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2102         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2103         HAVE_TCGETSID.
2104         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2105
2106 2010-12-19  Bruno Haible  <bruno@clisp.org>
2107
2108         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2109         * lib/stdio.in.h: During the include_next statement, let recursive
2110         includes of this file include only the system header file.
2111
2112 2010-12-19  Bruno Haible  <bruno@clisp.org>
2113
2114         iconv_open: Fix regression from 2010-12-04.
2115         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2116         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2117
2118 2010-12-19  Bruno Haible  <bruno@clisp.org>
2119
2120         stdbool test: Avoid a gcc warning.
2121         * tests/test-stdbool.c (main): Fail if e1 is false.
2122         Reported by Jim Meyering.
2123
2124 2010-12-19  Jim Meyering  <meyering@redhat.com>
2125
2126         setenv: restore to working order
2127         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2128         mistakenly removed.
2129         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2130         HAVE_SETENV.
2131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2132         HAVE_SETENV.
2133
2134 2010-12-19  Bruno Haible  <bruno@clisp.org>
2135
2136         Document some different function declarations on OSF/1 5.1.
2137         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2138         * doc/posix-functions/inet_ntop.texi: Likewise.
2139         * doc/posix-functions/gethostname.texi: Likewise.
2140         * lib/unistd.in.h (gethostname): Update comment.
2141
2142 2010-12-19  Bruno Haible  <bruno@clisp.org>
2143
2144         doc: Mention vasprintf-posix module.
2145         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2146         the 'vasprintf-posix' module.
2147         * doc/glibc-functions/vasprintf.texi: Likewise.
2148
2149 2010-12-19  Bruno Haible  <bruno@clisp.org>
2150
2151         unsetenv: Add missing declaration on OSF/1 5.1.
2152         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2153         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2154         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2156         not HAVE_UNSETENV.
2157         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2158         HAVE_UNSETENV.
2159         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2160
2161 2010-12-19  Bruno Haible  <bruno@clisp.org>
2162
2163         setenv: Add missing declaration on OSF/1 5.1.
2164         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2165         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2166         declared. Don't set HAVE_SETENV.
2167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2168         not HAVE_SETENV.
2169         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2170         HAVE_SETENV.
2171         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2172
2173 2010-12-19  Bruno Haible  <bruno@clisp.org>
2174
2175         nl_langinfo tests: Avoid gcc warning.
2176         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2177
2178 2010-12-19  Bruno Haible  <bruno@clisp.org>
2179
2180         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2181         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2182         _GL_CXXALIAS_SYS.
2183
2184 2010-12-19  Bruno Haible  <bruno@clisp.org>
2185
2186         stdbool: Relax test.
2187         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2188         address to 'bool' work in static initializer, for compilers other than
2189         GCC.
2190
2191 2010-12-19  Bruno Haible  <bruno@clisp.org>
2192
2193         ftello: Add missing declaration on OSF/1 5.1.
2194         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2195         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2197         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2198         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2199
2200 2010-12-19  Bruno Haible  <bruno@clisp.org>
2201
2202         fseeko: Add missing declaration on OSF/1 5.1.
2203         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2206         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2207         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2208
2209 2010-12-19  Bruno Haible  <bruno@clisp.org>
2210
2211         fchdir: Add missing declaration on OSF/1 5.1.
2212         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2215         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2216         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2217
2218 2010-12-19  Bruno Haible  <bruno@clisp.org>
2219
2220         relocatable-prog-wrapper: Separate from relocatable-prog.
2221         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2222         uninstall-relocwrapper rule here.
2223         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2224         Reported by Ian Beckwith <ianb@erislabs.net>.
2225
2226 2010-12-19  Bruno Haible  <bruno@clisp.org>
2227
2228         unistr/u8-mbsnlen: Add missing dependency.
2229         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2230         Reported by Ian Beckwith <ianb@erislabs.net>.
2231
2232 2010-12-19  Bruno Haible  <bruno@clisp.org>
2233
2234         iconv: Make it possible again to use this module without 'iconv-h'.
2235         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2236         if it is not defined.
2237         Reported by Ian Beckwith <ianb@erislabs.net>.
2238
2239 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2240
2241         acl: port to Solaris 8 when copying from tmpfs to ufs
2242         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2243         error number.  Problem observed on Solaris 8 with latest
2244         coreutils, with "mv A B", where A is on a tmpfs file system and B
2245         is on a ufs file system.  This caused coreutils' mv/part-symlink
2246         test to fail.
2247
2248         tests: set fail=0 at start
2249         * tests/init.sh (setup_): Move fail=0 initialization here ...
2250         (mktempd_): ... from here, so that tests can rely on fail being
2251         set to 0 initially.  This fixes a problem in coreutils; see:
2252         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2253
2254 2010-12-18  Bruno Haible  <bruno@clisp.org>
2255
2256         memmem-simple: Stylistic changes.
2257         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2258         Fix preprocessor directive indentation.
2259
2260 2010-12-15  Pádraig Brady <P@draigBrady.com>
2261
2262         memmem, memmem-simple: reorganize and expand empty needle check
2263         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2264         functional checks to memmem-simple so that one has a fully functional
2265         memmem by using just this module.
2266         Restrict the performance only check to the memmem module.
2267         Also expand the empty needle check to ensure the correct
2268         pointer is returned, not just a non NULL pointer.
2269         * doc/glibc-functions/memmem.texi: Rearrange the portability
2270         documentation to correlate with the rearranged checks.
2271         Clarify exactly how the memmem and memmem-simple modules
2272         relate to each other.
2273
2274 2010-12-15  Pádraig Brady <P@draigBrady.com>
2275             Bruno Haible  <bruno@clisp.org>
2276
2277         Improve cross-compilation guesses for uClibc.
2278         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2279         that uClibc does not have the glibc bug.
2280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2281         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2282
2283 2010-12-14  Eric Blake  <eblake@redhat.com>
2284
2285         configmake: provide fallbacks for oldest supported autotools
2286         * m4/configmake.m4: New file.
2287         * modules/configmake (Files): Ship it.
2288         (configure.ac): Use it to guarantee fallbacks.
2289
2290 2010-12-13  Pádraig Brady <P@draigBrady.com>
2291
2292         read-file: Improve handling of large files
2293         * lib/read-file.c (fread_file): Minimize realloc()s
2294         for regular files, and better manage sizes around SIZE_MAX.
2295
2296 2010-12-13  Eric Blake  <eblake@redhat.com>
2297
2298         cloexec, fcntl: relax license
2299         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2300         consent from all contributors.
2301         * modules/fcntl (License): Likewise.
2302
2303 2010-12-10  Bruno Haible  <bruno@clisp.org>
2304
2305         Tests for module 'pipe-posix'.
2306         * modules/pipe-posix-tests: New file.
2307         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2308
2309 2010-12-10  Bruno Haible  <bruno@clisp.org>
2310
2311         pipe-posix: Make it work in C++ mode.
2312         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2313         (pipe): Use common idiom, not a macro definition.
2314         * lib/pipe.c: New file.
2315         * m4/pipe.m4: New file.
2316         * modules/pipe-posix (Description): Enhance.
2317         (Files): Add lib/pipe.c, m4/pipe.m4.
2318         (configure.ac): Invoke gl_FUNC_PIPE.
2319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2320         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2321         * tests/test-unistd-c++.cc: Check the signature of pipe.
2322
2323 2010-12-10  Bruno Haible  <bruno@clisp.org>
2324
2325         Rename module 'pipe' to 'spawn-pipe'.
2326         * modules/spawn-pipe: New file, renamed from modules/pipe.
2327         (Files, configure.ac, Makefile.am): Update.
2328         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2329         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2330         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2331         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2332         "spawn-pipe.h" instead of "pipe.h".
2333         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2334         to gl_SPAWN_PIPE.
2335         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2336         (Files, Makefile.am): Update.
2337         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2338         Update.
2339         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
2340         Include "spawn-pipe.h" instead of "pipe.h".
2341         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
2342         * lib/javacomp.c: Likewise.
2343         * lib/javaversion.c: Likewise.
2344         * lib/pipe-filter-gi.c: Likewise.
2345         * lib/pipe-filter-ii.c: Likewise.
2346         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
2347         * modules/javacomp (Depends-on): Likewise.
2348         * modules/javaversion (Depends-on): Likewise.
2349         * modules/pipe-filter-gi (Depends-on): Likewise.
2350         * modules/pipe-filter-ii (Depends-on): Likewise.
2351         * MODULES.html.sh (Executing programs): Update.
2352         * NEWS: Mention the change.
2353
2354 2010-12-10  Eric Blake  <eblake@redhat.com>
2355
2356         pipe-posix: new module
2357         * modules/pipe-posix: New file.
2358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
2359         (gl_UNISTD_H): Check for declaration.
2360         * modules/unistd (Makefile.am): Substitute it.
2361         * lib/unistd.in.h (pipe): Provide it for mingw.
2362         * doc/posix-functions/pipe.texi (pipe): Update documentation.
2363         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
2364
2365 2010-12-07  Bruno Haible  <bruno@clisp.org>
2366
2367         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2368         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2369         u8_strcmp_gnu.
2370         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2371
2372 2010-12-06  Bruno Haible  <bruno@clisp.org>
2373
2374         Update internal documentation.
2375         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2376
2377 2010-12-04  Bruno Haible  <bruno@clisp.org>
2378
2379         Put more information about failed tests into the test return codes.
2380         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2381         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2382         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2383         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2384         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2385         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2386         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2387         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2388         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2390         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2391         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2392         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2393         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2394         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2395         returns a bit mask.
2396         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2397         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2398         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2399         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2400         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2401         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2404         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2405         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2406         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2407         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2408         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2409         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2410         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2411         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2412         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
2413         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
2414         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2415         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
2416         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2417         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2418         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2419         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2420         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2421         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2422         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2423         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2424         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2425         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
2426         gl_PRINTF_PRECISION): Likewise.
2427         * m4/regex.m4 (gl_REGEX): Likewise.
2428         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2430         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
2431         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2432         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2434         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2435         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
2436         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2437         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2438         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2439         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2440         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2441         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2442         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2443         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2444         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2445         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2447         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
2448         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
2449         enumerated value.
2450         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
2451
2452 2010-12-04  Bruno Haible  <bruno@clisp.org>
2453
2454         Update for Solaris 11 2010-11.
2455         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
2456         Express, released in November 2010.
2457
2458 2010-12-04  Bruno Haible  <bruno@clisp.org>
2459
2460         nproc: Relax license.
2461         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
2462         and Paul Eggert.
2463         Requested by Ludovic Courtès <ludo@gnu.org>.
2464
2465 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2466
2467         utimecmp: fine-grained src to nearby coarse-grained dest
2468
2469         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
2470         and the source is on a file system with higher-resolution time
2471         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
2472         not work, and the time stamps are close together, the algorithm to
2473         determine the exact resolution from the read-back mtime was buggy:
2474         it had a "!=" where it should have had an "==".  This bug has been
2475         in the code ever since it was introduced to gnulib.
2476         Problem reported by Dan Jacobson in
2477         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
2478
2479 2010-11-30  Bruno Haible  <bruno@clisp.org>
2480
2481         strerror_r-posix: Fix autoconf test.
2482         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
2483
2484 2010-11-28  Bruno Haible  <bruno@clisp.org>
2485             Paul Eggert  <eggert@cs.ucla.edu>
2486
2487         Tests for module 'getdomainname'.
2488         * modules/getdomainname-tests: New file.
2489         * tests/test-getdomainname.c: New file, based on
2490         tests/test-gethostname.c.
2491
2492 2010-11-28  Bruno Haible  <bruno@clisp.org>
2493             Paul Eggert  <eggert@cs.ucla.edu>
2494
2495         getdomainname: Use the system function when possible.
2496         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
2497         (getdomainname): Replace if needed. Provide the declaration if it is
2498         missing. Don't use _GL_CXXALIAS_SYS_CAST.
2499         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
2500         (getdomainname): When the system has getdomainname, call the system
2501         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
2502         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
2503         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
2504         found in libnsl. Look for the declaration also in <netdb.h>. Replace
2505         the function if its second argument is of type 'int' or if it is found
2506         in libnsl.
2507         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
2508         <sys/systeminfo.h> and sysinfo().
2509         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
2510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2511         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
2512         HAVE_GETDOMAINNAME.
2513         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
2514         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
2515         * doc/glibc-functions/getdomainname.texi: Document the problems with
2516         the getdomainname declaration.
2517
2518 2010-11-28  Bruno Haible  <bruno@clisp.org>
2519
2520         sys_socket: Ensure ss_family field on AIX.
2521         * lib/sys_socket.in.h (ss_family): New macro definition.
2522         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
2523         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
2524         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2525         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2526         * modules/sys_socket (Makefile.am): Substitute
2527         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2528         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
2529
2530 2010-11-27  Bruno Haible  <bruno@clisp.org>
2531
2532         readline: Improve configure output.
2533         * m4/readline.m4 (gl_FUNC_READLINE): Make the
2534         "checking for readline..." result understandable.
2535
2536 2010-11-27  Bruno Haible  <bruno@clisp.org>
2537
2538         *printf-posix: Detect a bug on Solaris 10/x86.
2539         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
2540         for floating-point output.
2541         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
2542         directive.
2543         * tests/test-snprintf-posix.h (test_function): Likewise.
2544         * tests/test-sprintf-posix.h (test_function): Likewise.
2545         * tests/test-vasprintf-posix.c (test_function): Likewise.
2546         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
2547         * doc/posix-functions/printf.texi: Likewise.
2548         * doc/posix-functions/snprintf.texi: Likewise.
2549         * doc/posix-functions/sprintf.texi: Likewise.
2550         * doc/posix-functions/vfprintf.texi: Likewise.
2551         * doc/posix-functions/vprintf.texi: Likewise.
2552         * doc/posix-functions/vsnprintf.texi: Likewise.
2553         * doc/posix-functions/vsprintf.texi: Likewise.
2554         * doc/glibc-functions/obstack_printf.texi: Likewise.
2555         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2556
2557 2010-11-27  Bruno Haible  <bruno@clisp.org>
2558
2559         Fix link error when module libunistring-optional is in use.
2560         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
2561         * modules/striconveha-tests (Makefile.am): Likewise.
2562
2563 2010-11-27  Bruno Haible  <bruno@clisp.org>
2564
2565         regex: Mention link dependencies.
2566         * modules/regex (Link): New section.
2567         * modules/rpmatch (Link): Likewise.
2568         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
2569
2570 2010-11-27  Bruno Haible  <bruno@clisp.org>
2571
2572         ftoastr: Fix compilation error on Solaris.
2573         * lib/ftoastr.c: Include <config.h>.
2574
2575 2010-11-27  Bruno Haible  <bruno@clisp.org>
2576
2577         getloadavg: Update documentation.
2578         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
2579
2580 2010-11-27  Bruno Haible  <bruno@clisp.org>
2581
2582         sys_socket: Fix test whether the functions are declared.
2583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
2584         not <sys/select.h>.
2585
2586 2010-11-27  Bruno Haible  <bruno@clisp.org>
2587
2588         getpass: Make sure to get system declaration on some platforms.
2589         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
2590         gl_USE_SYSTEM_EXTENSIONS.
2591         * modules/getpass (Depends-on): Add extensions.
2592
2593 2010-11-26  Bruno Haible  <bruno@clisp.org>
2594
2595         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
2596         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
2597         'iconv' module is present.
2598         (ICONV_CONST): New macro.
2599         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
2600         ICONV_CONST.
2601         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
2602         set ICONV_CONST.
2603         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
2604         here.
2605         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
2606         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
2607         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
2608         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
2609         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
2610         present.
2611
2612 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
2613
2614         ftoastr: comment fix
2615         * lib/ftoastr.c: "little" -> "little or no" in comment
2616
2617 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2618
2619         stdint: port to GCC 4.3 + OSX + Octave
2620         On this platform, stdint.h is buggy and defines int64_t to long
2621         long int.  The replacement defined it to long int, causing
2622         problems with C++ style name mangling.  Instead, trust the system
2623         definition if INT64_MAX is defined, and likewise for the unsigned
2624         variant.   Problem reported by Jarno Rajahalme in
2625         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
2626         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
2627         and don't mess with int64_t and INT64_MAX in this case.
2628         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
2629
2630 2010-11-24  Bruno Haible  <bruno@clisp.org>
2631
2632         doc: Corrections regarding MacOS X 10.4 and 10.5.
2633         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
2634         MacOS X.
2635         Reported by Simon Josefsson.
2636
2637 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
2638
2639         Uninstall ".bin" files installed by relocwrapper.
2640         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
2641         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
2642         unless it is already there.
2643
2644 2010-11-21  Bruno Haible  <bruno@clisp.org>
2645
2646         Update for NetBSD 5.0.
2647         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2648         NetBSD; the test fails on NetBSD 5.0.
2649         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2650         about NetBSD.
2651
2652 2010-11-21  Bruno Haible  <bruno@clisp.org>
2653
2654         Update for HP-UX 11.23 and HP-UX 11.31.
2655         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
2656         HP-UX.
2657
2658 2010-11-21  Bruno Haible  <bruno@clisp.org>
2659
2660         Update for MacOS X 10.5.
2661         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2662         MacOS X; the test fails on MacOS X 10.5.8.
2663         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2664         about MacOS X.
2665
2666 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
2667
2668         bootstrap: add bootstrap_sync option.
2669         See discussion at
2670         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
2671         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
2672         * build-aux/bootstrap: Accept --bootstrap-sync to update
2673         bootstrap if it is not identical to the local gnulib's
2674         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
2675         enable this by default.  Accept --no-bootstrap-sync to disable
2676         it.
2677
2678 2010-11-20  Bruno Haible  <bruno@clisp.org>
2679
2680         Ensure that <features.h> is included before __GLIBC__ is tested.
2681         * lib/printf-parse.h: Include <features.h>.
2682         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
2683         Reported by Mike Frysinger <vapier@gentoo.org>.
2684
2685         Ensure that <features.h> is included before __GLIBC__ is tested.
2686         * lib/wchar.in.h: Include <features.h>.
2687         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
2688         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
2689         Reported by Mike Frysinger <vapier@gentoo.org>.
2690
2691         Ensure that <features.h> is included before __GLIBC__ is tested.
2692         * lib/arpa_inet.in.h: Include <features.h>.
2693         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
2694         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
2695         Reported by Mike Frysinger <vapier@gentoo.org>.
2696
2697         Ensure that <features.h> is included before __GLIBC__ is tested.
2698         * build-aux/link-warning.h: Include <features.h>.
2699         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
2700         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
2701         Reported by Mike Frysinger <vapier@gentoo.org>.
2702
2703         Ensure that <features.h> is included before __GLIBC__ is tested.
2704         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
2705         Reported by Mike Frysinger <vapier@gentoo.org>.
2706
2707 2010-11-20  Bruno Haible  <bruno@clisp.org>
2708
2709         memmem: Fix autoconf test.
2710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
2711
2712 2010-11-20  Bruno Haible  <bruno@clisp.org>
2713
2714         Port to uClibc.
2715         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
2716         * lib/fcntl.in.h: Likewise.
2717         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
2718         * lib/mbrtowc.c (mbrtowc): Likewise.
2719         * lib/relocatable.c (find_shared_library_fullname): Likewise.
2720         * lib/strerror_r.c: Likewise.
2721         * lib/unistr/u8-strnlen.c: Likewise.
2722         * lib/vasnprintf.c (decimal_point_char): Likewise.
2723         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2724         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2726         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
2727         * tests/test-sigaction.c (handler, main): Likewise.
2728         * lib/freading.h: Treat uClibc like a non-glibc platform.
2729         * lib/freading.c: Likewise.
2730         * lib/gettext.h: Likewise.
2731         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
2732         Likewise.
2733         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
2734         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2735         * lib/propername.c (proper_name_utf8): Likewise.
2736         * lib/spawn.in.h: Likewise.
2737         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
2738         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
2739         mem_cd_iconveh_internal): Likewise.
2740         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
2741         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2742         strstr, strcasestr): Likewise.
2743         * lib/unicodeio.c (unicode_to_mb): Likewise.
2744         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
2745         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
2746         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
2747         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
2748         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
2749         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
2750         * lib/unistr/u8-stpncpy.c: Likewise.
2751         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2752         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
2753         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2754         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2755         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
2756         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
2757         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
2758         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
2759         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2760         Likewise.
2761         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2762         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2763         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2765         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2766         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2767         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2768         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2769         * tests/test-getopt.h (OPTIND_MIN): Likewise.
2770         * tests/test-striconveha.c (main): Likewise.
2771         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2772         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
2773         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
2774         * doc/posix-functions/getline.texi: Likewise.
2775         Reported by Mike Frysinger <vapier@gentoo.org>.
2776
2777 2010-11-20  Bruno Haible  <bruno@clisp.org>
2778
2779         nproc: Fix condition.
2780         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
2781         HAVE_PTHREAD_AFFINITY_NP.
2782
2783 2010-11-20  Bruno Haible  <bruno@clisp.org>
2784
2785         Fix a comment.
2786         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
2787
2788 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
2789
2790         ftoastr: don't assume snprintf
2791         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
2792         Implement a subset of snprintf here, by using sprintf safely.
2793         * modules/ftoastr (Depends-on): Remove snprintf.
2794
2795 2010-11-19  Jim Meyering  <meyering@redhat.com>
2796
2797         test-rename.h: fix compilation failure
2798         * tests/test-rename.h (test_rename): Add omitted "}".
2799
2800 2010-11-17  Jim Meyering  <meyering@redhat.com>
2801
2802         maint.mk: add a URL discussing the no-@acronym policy
2803         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
2804
2805 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2806
2807         ftoastr: depend on snprintf, improve comments
2808         * lib/ftoastr.c: Also mention Loitsch's draft.
2809         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
2810         needed in the current implementation, but it might simplify
2811         speeding up the code later.
2812         * modules/ftoastr: Depend on snprintf; this improves portability.
2813         Suggested by Bruno Haible in the same email.
2814
2815         ftoastr: port to hosts lacking strtof and strtold
2816         Problem reported by Bruno Haible in
2817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
2818         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
2819         environment and strtold (and presumably strtof) are not available.
2820         * modules/ftoastr (Files): Add m4/c-strtod.m4.
2821         (configure.ac): Require gl_C99_STRTOLD.
2822
2823 2010-11-18  Bruno Haible  <bruno@clisp.org>
2824
2825         c-strtold: Avoid link error on AIX 7.
2826         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
2827         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
2828         (gl_C_STRTOLD): Test whether strtold_l exists.
2829         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2830
2831 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2832
2833         intprops: new macro INT_BITS_STRLEN_BOUND
2834         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
2835         ftoastr.h.  This exposes an internal of intprops.h that was formerly
2836         not exposed.  Also, it uses a slightly tighter bound than before;
2837         though this makes no practical difference, we might as well be as
2838         tight as we easily can.
2839
2840         ftoastr: new module, for lossless conversion of floats to short strings
2841         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
2842         * modules/ftoastr: New files.
2843
2844 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2845
2846         bootstrap: port to Solaris sed
2847         * build-aux/bootstrap (get_version): Port to Solaris sed.
2848         See Ralf Wildenhues's note in
2849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
2850
2851 2010-11-14  Jim Meyering  <meyering@redhat.com>
2852
2853         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
2854         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
2855         and move definition closer to sole use.
2856
2857 2010-11-13  Jim Meyering  <meyering@redhat.com>
2858
2859         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
2860         Now we require at least autoconf-2.59, which means the work-around
2861         is no longer needed.
2862         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
2863         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2864         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2865         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
2866         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2867
2868 2010-11-13  Bruno Haible  <bruno@clisp.org>
2869
2870         rename, renameat: Avoid test failures at NFS mounted locations.
2871         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
2872         functions.
2873         (test_rename): Use assert_nonexistent.
2874         * tests/test-rename.c: Include <dirent.h>.
2875         * tests/test-renameat.c: Likewise.
2876         Reported by Gary V. Vaughan <gary@gnu.org>.
2877
2878         rename, renameat: Document Linux bug with NFS
2879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
2880         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
2881         * doc/posix-functions/renameat.texi: Likewise.
2882         Suggested by Eric Blake.
2883
2884 2010-11-13  Bruno Haible  <bruno@clisp.org>
2885
2886         rename test: Add comments.
2887         * tests/test-rename.h (test_rename): Add structure and comments.
2888
2889 2010-11-13  Eric Blake  <eblake@redhat.com>
2890
2891         maintainer-makefile: cover a few more files
2892         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
2893         scripts generated within C files, for libvirt.
2894
2895 2010-11-13  Bruno Haible  <bruno@clisp.org>
2896
2897         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
2898         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
2899         character, return the number of bytes that belong together, not always
2900         1.
2901         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
2902         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
2903         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
2904         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
2905         number of bytes of an invalid character.
2906         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
2907         (main): Invoke it.
2908         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
2909         results.
2910         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
2911         malformed byte sequences.
2912         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
2913         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
2914         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
2915         Reported by Ben Pfaff and Paolo Bonzini.
2916
2917 2010-11-13  Bruno Haible  <bruno@clisp.org>
2918
2919         openat: Work around glibc bug with fchownat() and empty file names.
2920         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
2921         (gl_FUNC_FCHOWNAT): Invoke it.
2922         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
2923         * doc/posix-functions/fchownat.texi: Document the glibc bug.
2924         Reported by Gary V. Vaughan <gary@gnu.org>.
2925
2926 2010-11-13  Bruno Haible  <bruno@clisp.org>
2927
2928         openat: Ensure autoconf macro ordering.
2929         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
2930         gl_USE_SYSTEM_EXTENSIONS.
2931         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
2932
2933 2010-11-13  Bruno Haible  <bruno@clisp.org>
2934
2935         Update comments.
2936         * lib/unistr/u8-check.c: Update file name in comments.
2937         * lib/unistr/u8-mblen.c: Likewise.
2938         * lib/unistr/u8-prev.c: Likewise.
2939         * lib/unistr/u8-strmblen.c: Likewise.
2940         * lib/unistr/u8-strmbtouc.c: Likewise.
2941
2942 2010-11-13  Jim Meyering  <meyering@redhat.com>
2943
2944         tests: avoid test failure on Solaris 10 due to lack of PATH export
2945         * tests/test-update-copyright.sh: Don't forget to export PATH.
2946
2947         init.sh: ensure that IFS is defined, just in case...
2948         * tests/init.sh (setup_): Ensure that IFS is defined,
2949         so that saving and restoring it works as expected.  This
2950         appears to be useful at least for an old version of dash
2951         from a long time ago (RH 6).  See here for details:
2952         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
2953
2954         maint.mk: tighten "test a == b" check
2955         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
2956         test to files that contain something like #!/bin/sh.
2957         Without this, coreutils would get two false positives in
2958         the comments of C source files.
2959
2960 2010-11-12  Eric Blake  <eblake@redhat.com>
2961
2962         bootstrap: fix typo in previous attempt
2963         * build-aux/bootstrap (buildreq): Correct the grouping.
2964         Reported by Paul Eggert.
2965
2966         maintainer-makefile: prohibit test x == x
2967         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
2968         Based on a report by Matthias Bolte.
2969
2970         bootstrap: allow FreeBSD gzip
2971         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
2972         which has no '.' and goes to stderr.
2973         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
2974         Reported by Matthias Bolte.
2975
2976         maintainer-makefile: check for i18n setup
2977         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
2978         will likely work.
2979
2980 2010-11-12  Bruno Haible  <bruno@clisp.org>
2981
2982         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
2983         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
2984         * lib/nanosleep.c (nanosleep): Likewise.
2985
2986 2010-11-11  Bruno Haible  <bruno@clisp.org>
2987
2988         fcntl-h: Fix for use of C++ on glibc systems.
2989         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2990         also on glibc systems in C++ mode.
2991         Reported by Gary V. Vaughan <gary@gnu.org>.
2992
2993 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2994
2995         mknod: avoid false failure with dash
2996         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
2997
2998 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2999
3000         unlink: Fix "is it should" typo in diagnostic.
3001         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3002         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3003
3004 2010-11-11  Bruno Haible  <bruno@clisp.org>
3005
3006         Tests for module 'strerror_r-posix'.
3007         * modules/strerror_r-posix-tests: New file.
3008         * tests/test-strerror_r.c: New file.
3009         * tests/test-string-c++.cc: Check the signature of strerror_r.
3010
3011         New module 'strerror_r-posix'.
3012         * lib/string.in.h (strerror_r): New declaration.
3013         * lib/strerror_r.c: New file.
3014         * m4/strerror_r.m4: New file.
3015         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3016         of strerror_r.
3017         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3018         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3019         * modules/strerror_r-posix: New file.
3020         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3021         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3022         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3023         portability problems.
3024
3025 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3026
3027         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3028         line is also considered for output. Quoted function name in shell
3029         command, so temporary files for functions like MyClass::operator()
3030         are removed correctly without errors.
3031
3032 2010-11-09  Bruno Haible  <bruno@clisp.org>
3033
3034         * doc/posix-functions/strerror.texi: List more failing platforms.
3035
3036         * doc/posix-functions/strerror.texi: Add a comment.
3037
3038 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3039
3040         fdopendir: fix bug on MacOS X when low on file descriptors
3041
3042         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3043         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3044         All callers changed.
3045         (fdopendir): Invoke save_cwd at the top level, not after using
3046         multiple dup() calls to use up file descriptors.  Then retry
3047         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3048         less than the maximum number of open file descriptors, because
3049         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3050         on Mac OS X 10.6.4 for tar 1.24
3051         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3052         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3053         and for tar 1.25
3054         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3055
3056 2010-11-07  Bruno Haible  <bruno@clisp.org>
3057
3058         vasnprintf: Support I flag on glibc systems.
3059         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3060         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3061         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3062         snprintf function.
3063         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3064         glibc systems.
3065         * tests/test-vasnprintf-posix3.c: New file.
3066         * modules/vasnprintf-posix-tests (Files): Add it.
3067         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3068
3069 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3070
3071         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3072         * MODULES.html.sh: For compiler warnings, use name
3073         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3074
3075 2010-11-05  Eric Blake  <eblake@redhat.com>
3076
3077         ceil, floor: avoid spurious failure with icc
3078         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3079         [denormals-as-zero] when optimizing without -mieee-fp option.
3080         * tests/test-floorf2.c (floorf_reference): Likewise.
3081         * tests/test-ceilf1.c (dummy): New function.
3082         (main): Use it to outsmart icc's optimization.
3083         * tests/test-floorf1.c (dummy, main): Likewise.
3084
3085         tests: require working signbit
3086         * modules/ceilf-tests (Depends-on): Add signbit.
3087         * modules/ceill-tests (Depends-on): Likewise.
3088         * modules/floorf-tests (Depends-on): Likewise.
3089         * modules/floorl-tests (Depends-on): Likewise.
3090         * modules/round-tests (Depends-on): Likewise.
3091         * modules/roundf-tests (Depends-on): Likewise.
3092         * modules/roundl-tests (Depends-on): Likewise.
3093         * modules/trunc-tests (Depends-on): Likewise.
3094         * modules/truncf-tests (Depends-on): Likewise.
3095         * modules/truncl-tests (Depends-on): Likewise.
3096
3097         strtod: work around icc bug
3098         * lib/strtod.c (minus_zero): Define to working value.
3099         (strtod): Use it to avoid icc bug.
3100
3101         copysign: enhance tests
3102         * modules/copysign-tests (Files): Add minus-zero.h.
3103         * tests/test-copysign.c (main): Also test zeros.
3104
3105 2010-11-04  Eric Blake  <eblake@redhat.com>
3106
3107         ceil, floor, round, trunc: enhance tests of -0
3108         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3109         * tests/test-ceill.c (main): Likewise.
3110         * tests/test-floorf1.c (main): Likewise.
3111         * tests/test-floorl.c (main): Likewise.
3112         * tests/test-round1.c (main): Likewise.
3113         * tests/test-roundf1.c (main): Likewise.
3114         * tests/test-roundl.c (main): Likewise.
3115         * tests/test-trunc1.c (main): Likewise.
3116         * tests/test-truncf1.c (main): Likewise.
3117         * tests/test-truncl.c (main): Likewise.
3118
3119 2010-11-04  Eric Blake  <eblake@redhat.com>
3120
3121         frexp, tests: work around ICC bug with -zero
3122         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3123         works with more compilers.
3124         * tests/minus-zero.h: New file.
3125         * modules/ceilf-tests (Files): Include it.
3126         * modules/ceill-tests (Files): Likewise.
3127         * modules/floorf-tests (Files): Likewise.
3128         * modules/floorl-tests (Files): Likewise.
3129         * modules/frexp-nolibm-tests (Files): Likewise.
3130         * modules/frexp-tests (Files): Likewise.
3131         * modules/frexpl-nolibm-tests (Files): Likewise.
3132         * modules/frexpl-tests (Files): Likewise.
3133         * modules/isnan-tests (Files): Likewise.
3134         * modules/isnand-nolibm-tests (Files): Likewise.
3135         * modules/isnand-tests (Files): Likewise.
3136         * modules/isnanf-nolibm-tests (Files): Likewise.
3137         * modules/isnanf-tests (Files): Likewise.
3138         * modules/isnanl-nolibm-tests (Files): Likewise.
3139         * modules/isnanl-tests (Files): Likewise.
3140         * modules/round-tests (Files): Likewise.
3141         * modules/roundf-tests (Files): Likewise.
3142         * modules/roundl-tests (Files): Likewise.
3143         * modules/ldexpl-tests (Files): Likewise.
3144         * modules/signbit-tests (Files): Likewise.
3145         * modules/snprintf-posix-tests (Files): Likewise.
3146         * modules/sprintf-posix-tests (Files): Likewise.
3147         * modules/strtod-tests (Files): Likewise.
3148         * modules/trunc-tests (Files): Likewise.
3149         * modules/truncf-tests (Files): Likewise.
3150         * modules/truncl-tests (Files): Likewise.
3151         * modules/vsnprintf-posix-tests (Files): Likewise.
3152         * modules/vsprintf-posix-tests (Files): Likewise.
3153         * modules/vasnprintf-posix-tests (Files): Likewise.
3154         * modules/vasprintf-posix-tests (Files): Likewise.
3155         * tests/test-ceilf1.c (main): Use it.
3156         * tests/test-ceill.c (main): Likewise.
3157         * tests/test-floorf1.c (main): Likewise.
3158         * tests/test-floorl.c (main): Likewise.
3159         * tests/test-frexp.c (main): Likewise.
3160         * tests/test-frexpl.c (main): Likewise.
3161         * tests/test-isnan.c (main): Likewise.
3162         * tests/test-isnand.h (main): Likewise.
3163         * tests/test-isnanf.h (main): Likewise.
3164         * tests/test-isnanl.h (main): Likewise.
3165         * tests/test-ldexpl.c (main): Likewise.
3166         * tests/test-round.c (main): Likewise.
3167         * tests/test-roundf.c (main): Likewise.
3168         * tests/test-roundl.c (main): Likewise.
3169         * tests/test-signbit.c (test_signbitf, test_signbitd)
3170         (test_signbitl): Likewise.
3171         * tests/test-snprintf-posix.h (test_function): Likewise.
3172         * tests/test-sprintf-posix.h (test_function): Likewise.
3173         * tests/test-strtod.c (main): Likewise.
3174         * tests/test-trunc1.c (main): Likewise.
3175         * tests/test-truncf1.c (main): Likewise.
3176         * tests/test-truncl.c (main): Likewise.
3177
3178         isnanl: work around icc bug
3179         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3180
3181 2010-11-03  Eric Blake  <eblake@redhat.com>
3182
3183         tests: fix compiler warnings
3184         * tests/test-getopt.h (test_getopt): Fix condition.
3185         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3186         * tests/test-pipe2.c (main): Likewise.
3187         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3188
3189         utimens: fix broken m4 test
3190         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3191
3192 2010-10-28  Bruno Haible  <bruno@clisp.org>
3193
3194         posix_spawn*, getdtablesize: Relax license.
3195         * modules/posix_spawn (License): Change to LGPLv2+.
3196         * modules/posix_spawnp (License): Likewise.
3197         * modules/posix_spawn-internal (License): Likewise.
3198         * modules/posix_spawnattr_init (License): Likewise.
3199         * modules/posix_spawnattr_getflags (License): Likewise.
3200         * modules/posix_spawnattr_setflags (License): Likewise.
3201         * modules/posix_spawnattr_getpgroup (License): Likewise.
3202         * modules/posix_spawnattr_setpgroup (License): Likewise.
3203         * modules/posix_spawnattr_getschedparam (License): Likewise.
3204         * modules/posix_spawnattr_setschedparam (License): Likewise.
3205         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3206         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3207         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3208         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3209         * modules/posix_spawnattr_getsigmask (License): Likewise.
3210         * modules/posix_spawnattr_setsigmask (License): Likewise.
3211         * modules/posix_spawnattr_destroy (License): Likewise.
3212         * modules/posix_spawn_file_actions_init (License): Likewise.
3213         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3214         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3215         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3216         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3217         * modules/getdtablesize (License): Likewise.
3218         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3219
3220 2010-10-26  Bruno Haible  <bruno@clisp.org>
3221
3222         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3223         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3224         Cygwin and mingw.
3225         Suggested by Eric Blake.
3226
3227 2010-10-26  Bruno Haible  <bruno@clisp.org>
3228
3229         stdio: Work around compilation error due to renameat() on Solaris 10.
3230         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3231         * lib/renameat.c: Don't include <unistd.h> here.
3232         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3233         Reported by Paul Eggert and Eric Blake.
3234
3235 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3236
3237         renameat: port to Solaris 10, which declares renameat in unistd.h
3238
3239         * lib/renameat.c: Include unistd.h before stdio.h, because
3240         Solaris 10 declares renameat in unistd.h.  Problem encountered
3241         when building GNU tar 1.24 on Solaris 10.
3242
3243 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3244
3245         fdopendir: fix C89 compilation
3246         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3247         compilers.
3248
3249 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3250
3251         inttostr: simplify by removing unnecessary redundancy
3252         * lib/anytostr.c: Don't include verify.h.
3253         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3254         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3255         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3256         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3257         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3258         Likewise.
3259         * modules/inttostr (Depends-on): Remove 'verify'.
3260
3261 2010-10-23  Bruno Haible  <bruno@clisp.org>
3262
3263         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3264         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3265         Reported by Eric Blake.
3266
3267 2010-10-23  Bruno Haible  <bruno@clisp.org>
3268
3269         Tests: Fix LOCALE_JA on MirBSD 10.
3270         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3271         to an UTF-8 locale.
3272         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3273         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3274         Reported by Eric Blake.
3275
3276 2010-10-21  Bruno Haible  <bruno@clisp.org>
3277
3278         nl_langinfo test: Avoid test failure on NetBSD 5.
3279         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3280         Reported by Eric Blake.
3281
3282 2010-10-21  Eric Blake  <eblake@redhat.com>
3283
3284         c-stack: work around libsigsegv 2.8 bug
3285         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3286         overflow on at least PowerPC64.
3287
3288 2010-10-17  Bruno Haible  <bruno@clisp.org>
3289
3290         userspec: Drop redundant file.
3291         * modules/userspec (Files): Remove lib/inttostr.h.
3292
3293 2010-10-17  Bruno Haible  <bruno@clisp.org>
3294
3295         nl_langinfo tests: Silence some warnings.
3296         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3297         Reported by Jim Meyering.
3298
3299 2010-10-17  Bruno Haible  <bruno@clisp.org>
3300
3301         Make use of GCC's attribute __alloc_size__.
3302         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3303         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3304         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3305         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3306         __alloc_size__.
3307         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3308         Suggested by Jim Meyering.
3309
3310 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3311
3312         bootstrap: anchor .gitignore entries.
3313         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3314         with...
3315         (insert_vc_ignore): ... this new function, which prepends `/' to
3316         all .gitignore entries before passing them to
3317         insert_sorted_if_absent.
3318
3319 2010-10-16  Bruno Haible  <bruno@clisp.org>
3320
3321         nextafter: Fix configure check.
3322         * modules/nextafter (configure.ac): Correct expected prototype.
3323
3324 2010-10-16  Bruno Haible  <bruno@clisp.org>
3325
3326         termios: Update documentation.
3327         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3328
3329 2010-10-16  Bruno Haible  <bruno@clisp.org>
3330
3331         tests: Make them compile with TinyCC.
3332         * tests/test-strstr.c (main): Remove parentheses around array
3333         initializer.
3334
3335 2010-10-15  Eric Blake  <eblake@redhat.com>
3336
3337         ignore-value: make header idempotent
3338         * lib/ignore-value.h: Add double-inclusion guards.
3339         Reported by Stefan Berger.
3340
3341 2010-10-15  Jim Meyering  <meyering@redhat.com>
3342
3343         GNUmakefile: handle "stable" target, not "major"
3344         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
3345         lists in maint.mk and announce-gen.  Without this, "make stable"
3346         would fail to ensure that $(VERSION) is up to date.
3347
3348 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
3349
3350         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
3351         & co.
3352
3353 2010-10-14  Bruno Haible  <bruno@clisp.org>
3354
3355         vasnprintf: Don't set errno to 0.
3356         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
3357         block that sets it to 0.
3358         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3359
3360 2010-10-14  Bruno Haible  <bruno@clisp.org>
3361
3362         socketlib: Fix.
3363         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
3364         gl_PREREQ_SYS_H_WINSOCK2.
3365         Reported by Ian Beckwith <ianb@erislabs.net>.
3366
3367 2010-10-13  Jim Meyering  <meyering@redhat.com>
3368
3369         test-select-stdin.c: avoid warn_unused_result warnings
3370         * tests/test-select-stdin.c: Include "macros.h".
3371         ASSERT that read and fflush succeed.
3372
3373 2010-10-13  Jim Meyering  <meyering@redhat.com>
3374
3375         git-version-gen: do require git-VC'd files in cwd
3376         * build-aux/git-version-gen: Reject a git version string
3377         if there are no commits associated with the current directory.
3378         This avoids an unlikely false-positive (unrelated dir whose parent
3379         repository also contains a tag matching v*), as pointed out
3380         by Giuseppe Scrivano in
3381         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3382
3383 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3384
3385         argv-iter: omit nonconforming declaration
3386         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3387         enum arg_iter_err declaration, which doesn't conform to C99.
3388         Solaris 10 cc warns about this.
3389
3390 2010-10-13  Eric Blake  <eblake@redhat.com>
3391
3392         termios: fix compilation on mingw
3393         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3394         (gl_TERMIOS_H): Adjust it on mingw.
3395         * modules/termios (Makefile.am): Substitute new key.
3396         * lib/termios.in.h (includes): Make include_next conditional.
3397         * doc/posix-headers/termios.texi (termios.h): Update
3398         documentation.
3399         Reported by Daniel P. Berrange.
3400
3401 2010-10-13  Jim Meyering  <meyering@redhat.com>
3402
3403         git-version-gen: don't require that .git/ be in the current dir
3404         * build-aux/git-version-gen: Adjust this script so that it works
3405         when run from any working directory beneath the top-level .git/-
3406         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3407         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3408
3409         test-select: avoid warn_unused_result warnings
3410         * tests/test-select.c: Include "macros.h".
3411         ASSERT that each call to read, write, and pipe succeeds.
3412         While not technically required, also check each "close".
3413         * modules/select-tests (Files): Add tests/macros.h.
3414
3415         test-symlinkat: remove declaration of unused local
3416         * tests/test-symlinkat.c (main): Remove unused local, "buf".
3417
3418         test-inttostr: avoid shadowing warnings
3419         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
3420         and use malloc rather than the stack for the same reason as
3421         mentioned in the comment justifying the other allocation.
3422
3423 2010-10-11  Bruno Haible  <bruno@clisp.org>
3424
3425         stdlib: Allow multiple gnulib generated replacements to coexist.
3426         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
3427         Reported by Sam Steingold <sds@gnu.org>.
3428
3429 2010-10-11  Jim Meyering  <meyering@redhat.com>
3430
3431         fix a documentation typo
3432         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
3433
3434 2010-10-11  Eric Blake  <eblake@redhat.com>
3435
3436         futimens: work around Solaris 11 bug
3437         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
3438         * tests/test-futimens.h (test_futimens): Enhance, rather than
3439         weaken test.
3440         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3441
3442 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3443
3444         Indentation.
3445         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
3446         higher-level operators more to the left.
3447
3448 2010-10-11  Jim Meyering  <meyering@redhat.com>
3449
3450         test-futimens: avoid unwarranted test failure on Solaris 5.11
3451         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
3452         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
3453         because it tries to dereference the NULL name argument.
3454
3455 2010-10-11  Bruno Haible  <bruno@clisp.org>
3456
3457         Indentation.
3458         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
3459         indentation.
3460
3461 2010-10-11  Jim Meyering  <meyering@redhat.com>
3462
3463         spawn.in.h: make indentation consistent with parentheses
3464         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
3465         Make indentation consistent with parentheses.
3466
3467 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
3468
3469         Fix mismatched parens in previous commit
3470         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
3471         parens.
3472
3473 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3474
3475         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
3476
3477         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
3478         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
3479         * lib/malloca.c: Include "verify.h".
3480         (verify1): Remove, replacing with a verify call.
3481         * lib/relocwrapper.c (verify1): Likewise.
3482         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
3483         Likewise.
3484         * modules/malloca (Depends-on): Add 'verify'.
3485         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
3486         * modules/vasnprintf (Depends-on): Add 'verify'.
3487         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3488         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3489         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3490         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3491         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3492         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3493         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3494
3495         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
3496
3497         Formerly the style was sometimes 2*X - 1, because the C standard
3498         was wrongly thought to disallow ?: in integral constant expressions.
3499         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
3500         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
3501         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3502         * lib/stdint.in.h (_verify_intmax_size): Likewise.
3503         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
3504         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
3505         verify that time_t cannot be floating.
3506
3507 2010-10-08  Eric Blake  <eblake@redhat.com>
3508
3509         time: enforce recent POSIX ruling that time_t is integral
3510         * lib/time.in.h (__time_t_must_be_integral): Detect any
3511         problematic systems, allowing the rest of gnulib to assume POSIX.
3512
3513 2010-10-08  Jim Meyering  <meyering@redhat.com>
3514
3515         fdopendir: fix a bug on systems lacking openat and /proc support
3516         OpenBSD 4.7 is one such system.  The most noticeable effect was
3517         failure of any application making nontrivial use of fts: rm, du,
3518         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
3519           ./rm: traversal failed: `a': Bad file descriptor
3520         Debugging that, you see that even though FD 6 was closed just
3521         prior to the opendir call in fd_clone_opendir, its resulting
3522         dir->dd_fd was 8, rather than the expected value of 6:
3523
3524         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
3525         93                close (fd);
3526         (gdb) n
3527         94                dir = fd_clone_opendir (dupfd);
3528         (gdb) n
3529         95                saved_errno = errno;
3530         (gdb) p dir->dd_fd
3531         $11 = 8
3532
3533         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
3534         The problem is that on OpenBSD, fd_clone_opendir has to resort
3535         to using the old-style save/restore CWD mechanism, due to its
3536         lack of openat/proc support, and *that* would steal the FD (6)
3537         that opendir was supposed to use.
3538
3539         The fix is to squirrel away the desired FD so that save_cwd uses a
3540         different one, and then free the dest FD right before calling opendir.
3541         That guarantees opendir will use the required file descriptor.
3542
3543         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
3544
3545 2010-10-08  Bruno Haible  <bruno@clisp.org>
3546
3547         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
3548         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
3549
3550 2010-10-08  Bruno Haible  <bruno@clisp.org>
3551
3552         nanosleep: Make replacement POSIX compliant.
3553         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
3554         is out of range.
3555         Reported by Jim Meyering.
3556
3557 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3558
3559         bootstrap: add hook for altering gnulib.mk, for Bison
3560         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
3561         the Bison bootstrapping process can rewrite file names and variables
3562         in this file before later parts of 'bootstrap' use the file.
3563         Bison wants to include lib/gnulib.mk from the top-level makefile,
3564         so it needs the file names in this file to be relative to the top
3565         level, not relative to lib; plus it needs variable names to be
3566         rewritten.
3567         (slurp): Use the new function.
3568
3569         bootstrap: reformat for readability
3570         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
3571
3572 2010-10-08  Eric Blake  <eblake@redhat.com>
3573
3574         docs: update cygwin progress
3575         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
3576         1.7.7.
3577         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
3578         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
3579         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
3580         * doc/posix-functions/carg.texi (carg): Likewise.
3581         * doc/posix-functions/cargf.texi (cargf): Likewise.
3582         * doc/posix-functions/casin.texi (casin): Likewise.
3583         * doc/posix-functions/casinf.texi (casinf): Likewise.
3584         * doc/posix-functions/casinh.texi (casinh): Likewise.
3585         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
3586         * doc/posix-functions/catan.texi (catan): Likewise.
3587         * doc/posix-functions/catanf.texi (catanf): Likewise.
3588         * doc/posix-functions/catanh.texi (catanh): Likewise.
3589         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
3590         * doc/posix-functions/ccos.texi (ccos): Likewise.
3591         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
3592         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
3593         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
3594         * doc/posix-functions/cexp.texi (cexp): Likewise.
3595         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
3596         * doc/posix-functions/cimag.texi (cimag): Likewise.
3597         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
3598         * doc/posix-functions/clog.texi (clog): Likewise.
3599         * doc/posix-functions/clogf.texi (clogf): Likewise.
3600         * doc/posix-functions/conj.texi (conj): Likewise.
3601         * doc/posix-functions/conjf.texi (conjf): Likewise.
3602         * doc/posix-functions/cpow.texi (cpow): Likewise.
3603         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
3604         * doc/posix-functions/cproj.texi (cproj): Likewise.
3605         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
3606         * doc/posix-functions/creal.texi (creal): Likewise.
3607         * doc/posix-functions/crealf.texi (crealf): Likewise.
3608         * doc/posix-functions/csin.texi (csin): Likewise.
3609         * doc/posix-functions/csinf.texi (csinf): Likewise.
3610         * doc/posix-functions/csinh.texi (csinh): Likewise.
3611         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
3612         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
3613         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
3614         * doc/posix-functions/ctan.texi (ctan): Likewise.
3615         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
3616         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
3617         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
3618         * doc/posix-headers/complex.texi (complex.h): Likewise.
3619
3620 2010-10-07  Jim Meyering  <meyering@redhat.com>
3621
3622         parse-datetime: avoid compilation failure on OpenBSD 4.7
3623         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
3624         This works around a compilation failure on OpenBSD 4.7:
3625         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
3626
3627 2010-10-07  Eric Blake  <eblake@redhat.com>
3628
3629         docs: update cygwin progress
3630         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
3631         1.7.6.
3632         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
3633         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
3634         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
3635         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
3636         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
3637         Likewise.
3638         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
3639         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
3640         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
3641         Likewise.
3642         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
3643         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
3644         Likewise.
3645         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
3646         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
3647         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
3648         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
3649         Likewise.
3650         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
3651         Likewise.
3652         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
3653
3654         docs: update parse-datetime history
3655         * doc/parse-datetime.texi (Authors of parse_datetime): Better
3656         documentation of this function's history and alternatives.
3657
3658         cygwin: use more robust version check
3659         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
3660         exclude an eventual cygwin 1.9.1.
3661         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3662         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3663         (gl_FUNC_STRCASESTR): Likewise.
3664         Reported by Bruno Haible.
3665
3666 2010-10-06  Bruno Haible  <bruno@clisp.org>
3667
3668         string, sys_select: Avoid #including large headers unless necessary.
3669         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
3670         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
3671         OSF/1, BeOS, Haiku.
3672         Reported by Jim Meyering.
3673
3674 2010-10-05  Eric Blake  <eblake@redhat.com>
3675
3676         memmem, strstr, strcasestr: fix bug with long periodic needle
3677         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
3678         periodic needle having false positive.
3679         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
3680         and cygwin 1.7.7.
3681         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
3682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3683         (gl_FUNC_STRCASESTR): Likewise.
3684         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3685         * tests/test-memmem.c (main): Expose the bug.
3686         * tests/test-strcasestr.c (main): Likewise.
3687         * tests/test-strstr.c (main): Likewise.
3688         * tests/test-c-strcasestr.c (main): Likewise.
3689         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
3690         * doc/posix-functions/strstr.texi (strstr): Likewise.
3691         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3692         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
3693
3694 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3695
3696         parse-datetime: do some more renaming
3697         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
3698         parse_datetime, not get_date.  Mention the renaming.
3699         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
3700         in comments.
3701         * m4/bison.m4: Likewise.
3702
3703 2010-10-05  Eric Blake  <eblake@redhat.com>
3704
3705         parse-datetime: better name than get_date
3706         * NEWS: Reword the deprecation notice.
3707         * modules/get_date: Rename to modules/parse-datetime.
3708         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
3709         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
3710         * lib/get_date.y: Rename to lib/parse-datetime.y.
3711         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
3712         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
3713         * doc/getdate.texi: Provide fallback wrapper.
3714         * lib/getdate.h: Move guts, and wrap...
3715         * lib/parse-datetime.h: ...new file.
3716         * lib/parse-datetime.y (get_date): Rename...
3717         (parse_datetime): ...to this.
3718         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
3719         (gl_PARSE_DATETIME): ...to this.
3720         * doc/posix-functions/getdate.texi (get_date): Provide fallback
3721         documentation.
3722         * modules/getdate (Files): Provide fallback docs and header.
3723         (Notice, Depends-on): Update references.
3724         * tests/test-parse-datetime.c: Likewise.
3725         * DEPENDENCIES: Likewise.
3726         * MODULES.html.sh (Date and time <time.h>): Likewise.
3727         * doc/parse-datetime.texi (Date input formats)
3728         (Authors of parse_datetime): Likewise.
3729         * modules/parse-datetime (Files, configure.ac, Makefile.am)
3730         (Include): Likewise.
3731         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
3732         * gnulib-tool: Likewise.
3733         * m4/bison.m4 (gl_BISON): Likewise.
3734         Suggested by Bruno Haible.
3735
3736 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3737
3738         more ports to Solaris tr, which needs [] around ranges
3739         * gnulib-tool: Solaris tr needs [] around ranges.
3740         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3741         * tests/test-pipe-filter-gi1.c (main): Likewise.
3742         * tests/test-pipe-filter-ii1.c (main): Likewise.
3743
3744 2010-10-05  Eric Blake  <eblake@redhat.com>
3745
3746         bootstrap: fix Solaris regression
3747         * build-aux/bootstrap (check_versions): Solaris tr still needs []
3748         around ranges.
3749         Reported by Pádraig Brady.
3750
3751         bootstrap: work with pkg-config
3752         * build-aux/bootstrap (check_versions): Also transliterate - in
3753         prerequisite name.
3754         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
3755         prerequisites that were already found, to avoid confusion.
3756         Reported by Justin Clift.
3757
3758         faccessat: remove unused wrappers
3759         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
3760         presence of these wrappers dragged in -lgen on Solaris.
3761         Reported by Clemens Brogi; fix suggested by Paul Eggert.
3762
3763 2010-10-05  Jim Meyering  <meyering@redhat.com>
3764
3765         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
3766         * Makefile (sc_pragma_columns): New syntax-check rule.
3767
3768 2010-10-04  Bruno Haible  <bruno@clisp.org>
3769
3770         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
3771         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
3772         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
3773         Reported by Bruce Korb and Eric Blake.
3774
3775 2010-10-04  Bruno Haible  <bruno@clisp.org>
3776
3777         threadlib: Make option --with-libpth-prefix work.
3778         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
3779         use $LIBPTH, not just -lpth.
3780
3781 2010-10-04  Bruno Haible  <bruno@clisp.org>
3782
3783         Avoid line length limitation from HP NonStop system header files.
3784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
3785         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
3786         * lib/ctype.in.h: Likewise.
3787         * lib/dirent.in.h: Likewise.
3788         * lib/errno.in.h: Likewise.
3789         * lib/fcntl.in.h: Likewise.
3790         * lib/float.in.h: Likewise.
3791         * lib/getopt.in.h: Likewise.
3792         * lib/iconv.in.h: Likewise.
3793         * lib/inttypes.in.h: Likewise.
3794         * lib/langinfo.in.h: Likewise.
3795         * lib/locale.in.h: Likewise.
3796         * lib/math.in.h: Likewise.
3797         * lib/netdb.in.h: Likewise.
3798         * lib/netinet_in.in.h: Likewise.
3799         * lib/poll.in.h: Likewise.
3800         * lib/pthread.in.h: Likewise.
3801         * lib/pty.in.h: Likewise.
3802         * lib/sched.in.h: Likewise.
3803         * lib/se-selinux.in.h: Likewise.
3804         * lib/search.in.h: Likewise.
3805         * lib/signal.in.h: Likewise.
3806         * lib/spawn.in.h: Likewise.
3807         * lib/stdarg.in.h: Likewise.
3808         * lib/stddef.in.h: Likewise.
3809         * lib/stdint.in.h: Likewise.
3810         * lib/stdio.in.h: Likewise.
3811         * lib/stdlib.in.h: Likewise.
3812         * lib/string.in.h: Likewise.
3813         * lib/strings.in.h: Likewise.
3814         * lib/sys_file.in.h: Likewise.
3815         * lib/sys_ioctl.in.h: Likewise.
3816         * lib/sys_select.in.h: Likewise.
3817         * lib/sys_socket.in.h: Likewise.
3818         * lib/sys_stat.in.h: Likewise.
3819         * lib/sys_time.in.h: Likewise.
3820         * lib/sys_times.in.h: Likewise.
3821         * lib/sys_utsname.in.h: Likewise.
3822         * lib/sys_wait.in.h: Likewise.
3823         * lib/sysexits.in.h: Likewise.
3824         * lib/termios.in.h: Likewise.
3825         * lib/time.in.h: Likewise.
3826         * lib/unistd.in.h: Likewise.
3827         * lib/wchar.in.h: Likewise.
3828         * lib/wctype.in.h: Likewise.
3829         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
3830         * modules/ctype (Makefile.am): Likewise.
3831         * modules/dirent (Makefile.am): Likewise.
3832         * modules/errno (Makefile.am): Likewise.
3833         * modules/fcntl-h (Makefile.am): Likewise.
3834         * modules/float (Makefile.am): Likewise.
3835         * modules/getopt-posix (Makefile.am): Likewise.
3836         * modules/iconv-h (Makefile.am): Likewise.
3837         * modules/inttypes (Makefile.am): Likewise.
3838         * modules/langinfo (Makefile.am): Likewise.
3839         * modules/locale (Makefile.am): Likewise.
3840         * modules/math (Makefile.am): Likewise.
3841         * modules/netdb (Makefile.am): Likewise.
3842         * modules/netinet_in (Makefile.am): Likewise.
3843         * modules/poll-h (Makefile.am): Likewise.
3844         * modules/pthread (Makefile.am): Likewise.
3845         * modules/pty (Makefile.am): Likewise.
3846         * modules/sched (Makefile.am): Likewise.
3847         * modules/search (Makefile.am): Likewise.
3848         * modules/selinux-h (Makefile.am): Likewise.
3849         * modules/signal (Makefile.am): Likewise.
3850         * modules/spawn (Makefile.am): Likewise.
3851         * modules/stdarg (Makefile.am): Likewise.
3852         * modules/stddef (Makefile.am): Likewise.
3853         * modules/stdint (Makefile.am): Likewise.
3854         * modules/stdio (Makefile.am): Likewise.
3855         * modules/stdlib (Makefile.am): Likewise.
3856         * modules/string (Makefile.am): Likewise.
3857         * modules/strings (Makefile.am): Likewise.
3858         * modules/sys_file (Makefile.am): Likewise.
3859         * modules/sys_ioctl (Makefile.am): Likewise.
3860         * modules/sys_select (Makefile.am): Likewise.
3861         * modules/sys_socket (Makefile.am): Likewise.
3862         * modules/sys_stat (Makefile.am): Likewise.
3863         * modules/sys_time (Makefile.am): Likewise.
3864         * modules/sys_times (Makefile.am): Likewise.
3865         * modules/sys_utsname (Makefile.am): Likewise.
3866         * modules/sys_wait (Makefile.am): Likewise.
3867         * modules/sysexits (Makefile.am): Likewise.
3868         * modules/termios (Makefile.am): Likewise.
3869         * modules/time (Makefile.am): Likewise.
3870         * modules/unistd (Makefile.am): Likewise.
3871         * modules/wchar (Makefile.am): Likewise.
3872         * modules/wctype (Makefile.am): Likewise.
3873
3874 2010-10-04  Bruno Haible  <bruno@clisp.org>
3875
3876         read-file tests: Avoid a test failure on NonStop Kernel.
3877         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
3878         a regular file.
3879         Reported by Joachim Schmitz <schmitz@hp.com>.
3880
3881 2010-10-03  Bruno Haible  <bruno@clisp.org>
3882
3883         gnulib-tool: Fixes for --create-testdir with --libtool.
3884         * gnulib-tool (func_get_automake_snippet): Don't augment
3885         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
3886         an executable.
3887         (func_create_testdir): Handle module 'alloca' like func_import.
3888         Reported by Bruce Korb <bruce.korb@gmail.com>.
3889
3890 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3891
3892         Avoid some lines longer than 80 characters.
3893         * lib/stdint.in.h: Break long comment lines.
3894         * lib/math.in.h: Likewise.
3895         (_GL_NUM_UINT_WORDS): New macro, for readability.
3896         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
3897         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
3898         * lib/stdlib.in.h: Likewise.
3899         * lib/spawn.in.h: Likewise.
3900         * lib/sys_socket.in.h: Update an URL.
3901         * lib/sys_stat.in.h: Break long line.
3902
3903 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
3904
3905         Improve pmccabe2html.
3906         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
3907         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
3908         when the sources change. Remove the line in the HTML about "Used
3909         ranges" (which implied that there might be other unused ranges),
3910         rename "Resume" to "Summary" (easier to understand for more users).
3911         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
3912         styles, and some unnecessary blank lines.
3913
3914 2010-10-03  Bruno Haible  <bruno@clisp.org>
3915             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3916
3917         acl: Add support for ACLs on NonStop Kernel.
3918         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
3919         Check whether the function aclsort() exists.
3920         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
3921         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
3922         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3923         (acl_nontrivial [HAVE_ACLSORT]: New function.
3924         (file_has_acl): Implement for NonStop Kernel.
3925         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3926         (qset_acl): Implement for NonStop Kernel.
3927         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
3928         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3929         (main): Implement for NonStop Kernel.
3930         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
3931         Kernel. Handle this flavor.
3932         * tests/test-set-mode-acl.sh: Likewise.
3933         * tests/test-copy-acl.sh: Likewise.
3934         * tests/test-copy-file.sh: Likewise.
3935
3936 2010-10-03  Bruno Haible  <bruno@clisp.org>
3937
3938         Info about ACLs on NonStop Kernel.
3939         * doc/acl-resources.txt: Add info about NonStop Kernel.
3940         References by Joachim Schmitz <schmitz@hp.com>.
3941
3942 2010-10-02  Bruno Haible  <bruno@clisp.org>
3943
3944         Define missing EDQUOT on NonStop Kernel.
3945         * lib/errno.in.h (EDQUOT): Assign a value if missing.
3946         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
3947         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
3948         missing.
3949         * doc/posix-headers/errno.texi: Mention the NSK bug.
3950         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
3951         Reported by Joachim Schmitz <schmitz@hp.com>.
3952
3953 2010-10-02  Bruno Haible  <bruno@clisp.org>
3954
3955         Update doc for POSIX:2008.
3956         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
3957         Update URL of POSIX specification.
3958
3959 2010-10-02  Bruno Haible  <bruno@clisp.org>
3960
3961         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
3962         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
3963         from gnulib, not from Automake.
3964
3965 2010-10-02  Bruno Haible  <bruno@clisp.org>
3966
3967         New module 'system-posix'.
3968         * modules/system-posix: New file.
3969         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
3970         module is present.
3971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
3972         GNULIB_SYSTEM_POSIX.
3973         * modules/stdlib (Depends-on): Remove sys_wait.
3974         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
3975         * doc/posix-functions/system.texi: Mention the new module.
3976         * doc/posix-headers/stdlib.texi: Likewise.
3977         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
3978         define test_sys_wait_macros to a no-op.
3979         Reported by Sam Steingold <sds@gnu.org>.
3980
3981 2010-09-30  Bruno Haible  <bruno@clisp.org>
3982
3983         More renaming from 'getdate' to 'get_date'.
3984         * doc/get_date.texi: Renamed from doc/getdate.texi.
3985         * modules/get_date (Files): Update.
3986         * MODULES.html.sh (Date and time <time.h>): Update.
3987         * DEPENDENCIES: Update.
3988         * gnulib-tool: Update comment.
3989         * m4/bison.m4 (gl_BISON): Likewise.
3990         * m4/get_date.m4 (gl_GET_DATE): Likewise.
3991
3992 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
3993
3994         bootstrap: support ACLOCAL_FLAGS during aclocal
3995         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
3996         can add additional -I dir for third-party .m4 files.
3997
3998 2010-09-30  Eric Blake  <eblake@redhat.com>
3999
4000         bootstrap: use glibtoolize on MacOS
4001         * build-aux/bootstrap (check_versions): Convert libtool into
4002         libtoolize.
4003         (tool search): Move libtool check earlier, and look for
4004         glibtoolize for MacOS.
4005         (gnulib_tool_options): Auto-add --libtool when appropriate.
4006         Reported by Justin Clift.
4007
4008         poll: fix typo that broke test on MacOS
4009         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4010         Reported by Justin Clift.
4011
4012         getdate: rename to get_date
4013         Note: getdate.h is not renamed, to minimize client impact.
4014         * modules/getdate: Mark obsolete.  Move old contents...
4015         * modules/get_date: ...to new module name.
4016         * modules/getdate-tests: Move...
4017         * modules/get_date-tests: ...here.
4018         * m4/getdate.m4: Move...
4019         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4020         * lib/getdate.y: Move...
4021         * lib/get_date.y: ...here.
4022         * tests/test-getdate.c: Move...
4023         * tests/test-get_date.c: ...here.
4024         * doc/posix-functions/getdate.texi (getdate): Update name.
4025         * NEWS: Mention the change.
4026
4027 2010-09-29  Bruno Haible  <bruno@clisp.org>
4028
4029         Separate the module 'waitpid' from the module 'sys_wait'.
4030         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4031         present.
4032         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4033         gl_MODULE_INDICATOR_FOR_TESTS.
4034         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4035         * modules/sys_wait (Depends-on): Remove waitpid.
4036         (Makefile.am): Substitute GNULIB_WAITPID.
4037         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4038         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4039         signature only if the 'waitpid' module is present.
4040         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4041         * NEWS: Mention the change.
4042         * modules/grantpt (Depends-on): Add waitpid.
4043         * modules/wait-process (Depends-on): Likewise.
4044
4045 2010-09-29  Bruno Haible  <bruno@clisp.org>
4046
4047         More tests for module 'sys_wait'.
4048         * modules/sys_wait-c++-tests: New file.
4049         * tests/test-sys_wait-c++.cc: New file.
4050         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4051         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4052
4053 2010-09-29  Bruno Haible  <bruno@clisp.org>
4054
4055         New module 'waitpid'.
4056         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4057         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4058         Don't include <process.h>.
4059         (waitpid): Declare only, using modern idiom.
4060         * m4/waitpid.m4: New file.
4061         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4062         * modules/waitpid: New file.
4063         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4064         (Makefile.am): Update.
4065         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4066
4067 2010-09-28  Bruno Haible  <bruno@clisp.org>
4068
4069         poll: Assume ANSI C.
4070         * lib/poll.c (poll): Use an ANSI C declaration.
4071
4072 2010-09-28  Bruno Haible  <bruno@clisp.org>
4073
4074         poll-h: Create poll.h on all platforms.
4075         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4076         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4077         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4078         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4079         (gl_REPLACE_POLL_H): Don't set POLL_H.
4080         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4081         * modules/poll-h (Depends-on): Add include_next.
4082         (Makefile.am): Create poll.h unconditionally. Substitute also
4083         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4084
4085 2010-09-28  Bruno Haible  <bruno@clisp.org>
4086
4087         Tests for module 'poll-h'.
4088         * modules/poll-h-c++-tests: New file.
4089         * tests/test-poll-h-c++.cc: New file.
4090
4091         Tests for module 'poll-h'.
4092         * modules/poll-h-tests: New file.
4093         * tests/test-poll-h.c: New file.
4094
4095 2010-09-28  Bruno Haible  <bruno@clisp.org>
4096
4097         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4098         * modules/poll-h (Depends-on): Add 'extensions'.
4099
4100 2010-09-28  Bruno Haible  <bruno@clisp.org>
4101
4102         New module 'poll-h'.
4103         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4104         (poll): Use modern idiom.
4105         * modules/poll-h: New file.
4106         * modules/poll (Files): Remove lib/poll.in.h.
4107         (Depends-on): Add poll-h.
4108         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4109         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4110         * m4/poll_h.m4: New file.
4111         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4112         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4113         and invoke gl_REPLACE_POLL_H.
4114         * lib/poll.c: Use common idiom.
4115         * tests/test-poll.c: Likewise.
4116         * doc/posix-headers/poll.texi: Mention the poll-h module.
4117         Suggested by Eric Blake.
4118
4119 2010-09-26  Bruno Haible  <bruno@clisp.org>
4120
4121         sys_wait: Implement WSTOPSIG.
4122         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4123         Reported by Simon Josefsson.
4124
4125 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4126
4127         stdlib, sys_wait: Avoid compilation error on mingw.
4128         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4129
4130 2010-09-26  Bruno Haible  <bruno@clisp.org>
4131
4132         stdlib tests: Avoid code duplication.
4133         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4134         * modules/sys_wait-tests (Files): Likewise.
4135         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4136         * tests/test-stdlib.c: Include test-sys_wait.h.
4137         (main): Invoke test_sys_wait_macros.
4138         * tests/test-sys_wait.c: Include test-sys_wait.h.
4139         (main): Invoke test_sys_wait_macros.
4140
4141 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4142
4143         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4144         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4145         sure Windows sockets are working before calling getaddrinfo.
4146         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4147         * doc/gnulib.texi (Windows sockets): Fix typo.
4148
4149 2010-09-25  Bruno Haible  <bruno@clisp.org>
4150
4151         Tests for module 'regex-quote'.
4152         * modules/regex-quote-tests: New file.
4153         * tests/test-regex-quote.c: New file.
4154
4155         New module 'regex-quote'.
4156         * lib/regex-quote.h: New file.
4157         * lib/regex-quote.c: New file.
4158         * modules/regex-quote: New file.
4159         Suggested by Reuben Thomas <rrt@sc3d.org>.
4160
4161 2010-09-24  Bruno Haible  <bruno@clisp.org>
4162
4163         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4164         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4165
4166 2010-09-23  Bruno Haible  <bruno@clisp.org>
4167
4168         setenv: Relax license.
4169         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4170         Blake.
4171         Requested by Eric Blake.
4172
4173 2010-09-22  Bruno Haible  <bruno@clisp.org>
4174
4175         termios: Relax license.
4176         * modules/termios (License): Change to LGPLv2+.
4177         Requested by Eric Blake.
4178
4179 2010-09-22  Bruno Haible  <bruno@clisp.org>
4180
4181         threadlib: Allow the package to change the default to 'no'.
4182         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4183         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4184         Reported by Paul Eggert.
4185
4186 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4187             Bruno Haible  <bruno@clisp.org>
4188
4189         Fix endless loop in mbmemcasecoll.
4190         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4191         byte.
4192         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4193
4194 2010-09-22  Bruno Haible  <bruno@clisp.org>
4195
4196         Tests for module 'memcoll'.
4197         * modules/memcoll-tests: New file.
4198         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4199
4200         memcoll, xmemcoll: Clarify size vs. length.
4201         * modules/memcoll.c (memcoll0): Clarify specification.
4202         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4203         passed to collate_error.
4204
4205 2010-09-22  Bruno Haible  <bruno@clisp.org>
4206
4207         Tests for module 'memcasecmp'.
4208         * modules/memcasecmp-tests: New file.
4209         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4210
4211 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4212
4213         * lib/pthread.in.h: Add split double-inclusion guard, and include
4214         system <pthread.h> if there is one.  Use @@-style as in other
4215         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4216         pthread.h doesn't.
4217         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4218         (pthread_mutexattr_settype, pthread_mutex_trylock):
4219         New static inline functions, if there's no system <pthread.h>.
4220         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4221         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4222         Approximate with mutexes if the system lacks spinlocks, as in
4223         MacOS.
4224         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4225         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4226         @@-style.  Check for spinlocks separately.
4227         (gl_PTHREAD_DEFAULTS): New macro.
4228         * modules/pthread: Redo to use a more typical style for in.h files.
4229
4230 2010-09-21  Eric Blake  <eblake@redhat.com>
4231
4232         net_if: enhance tests
4233         * tests/test-net_if.c (main): Move signature checks earlier.
4234         Print failures to stderr.
4235         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4236         Document the bug that we do not yet fix.
4237
4238 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4239
4240         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4241         about gnulib, not GSS.
4242
4243 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4244
4245         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4246         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4247         for Emacs.
4248         * build-aux/pmccabe2html: Make Makefile.am example code more
4249         cut-and-paste friendly.
4250
4251 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4252
4253         * tests/test-net_if.c: New file.
4254         * modules/net_if-tests: New file.
4255
4256 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4257
4258         pthread: add pthread_spin_destroy
4259         * lib/pthread.in.h (pthread_spin_destroy): New function.
4260
4261 2010-09-19  Bruno Haible  <bruno@clisp.org>
4262
4263         gnulib-tool: Fix --help output.
4264         * gnulib-tool (func_usage): Fix help message.
4265         Reported by Reuben Thomas <rrt@sc3d.org>.
4266
4267 2010-09-18  Jim Meyering  <meyering@redhat.com>
4268
4269         maint.mk: avoid unexpanded \n in two diagnostics
4270         * top/maint.mk (sc_prohibit_always_true_header_tests):
4271         Don't use a literal \n in a halt=... assignment.  It would not be
4272         expanded, and the two \n bytes would appear in the diagnostic output
4273         rather than the desired newline.  Use halt=$$(printf ... instead.
4274         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4275
4276 2010-09-18  Bruno Haible  <bruno@clisp.org>
4277
4278         netinet_in: Doc tweak.
4279         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4280         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4281
4282 2010-09-18  Jim Meyering  <meyering@redhat.com>
4283
4284         init.sh: correct an outdated comment
4285         * tests/init.sh (create_exe_shims_):  s/function/alias/
4286
4287         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4288         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4289         a file named "*.exe" is removed between the glob expansion and the
4290         processing of that oddly named file.
4291
4292 2010-09-17  Eric Blake  <eblake@redhat.com>
4293
4294         mirbsd: add some more support
4295         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4296         in BSD family.
4297         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4298         devices as OpenBSD.
4299         * m4/host-os.m4 (mirbsd): Add MirBSD.
4300
4301         tests: fix unportable assumption on sys/wait.h
4302         * tests/test-sys_wait.c (main): Relax test.
4303         * tests/test-stdlib.c (main): Likewise.
4304
4305         init.sh: accomodate directory with no .exes
4306         * tests/init.sh: Accomodate directory containing only scripts.
4307
4308         tests: avoid compiler warning
4309         * tests/test-stdlib.c (main): Use the variable.
4310
4311         fdutimens, fdutimensat: update signature, again
4312         * lib/utimens.h (gl_futimens): Delete, and move signature...
4313         (fdutimens): ...here.
4314         (fdutimensat): Rearrange signature.
4315         (lutimensat): Rename variable for clarity.
4316         * lib/fdutimensat.c (fdutimensat): Update signature.
4317         * lib/utimens.c (fdutimens): Likewise.
4318         (gl_futimens): Delete.
4319         (utimens, lutimens): Update callers.
4320         * lib/futimens.c (futimens): Likewise.
4321         * tests/test-fdutimensat.c: Likewise.
4322         * tests/test-utimens.c: Likewise.
4323         * tests/test-futimens.h: Update comment.
4324         * NEWS: Mention this.
4325         Suggested by Paul Eggert.
4326
4327 2010-09-17  Bruno Haible  <bruno@clisp.org>
4328
4329         Take over the maintenance of some older macros from Autoconf.
4330         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4331         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4332         GNU Autoconf.
4333         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4334         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4335
4336 2010-09-17  Eric Blake  <eblake@redhat.com>
4337
4338         fdutimensat: drop atflag validation
4339         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
4340         with valid fd, to close a race scenario where futimens is
4341         unsupported and FILE was replaced by a symlink.
4342         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
4343         accordingly.
4344         Suggested by Paul Eggert.
4345
4346 2010-09-16  Bruno Haible  <bruno@clisp.org>
4347
4348         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
4349         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
4350
4351 2010-09-16  Bruno Haible  <bruno@clisp.org>
4352
4353         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
4354         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
4355         login_tty exists.
4356         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4357
4358 2010-09-16  Bruno Haible  <bruno@clisp.org>
4359
4360         login_tty: Make the replacement code work on BSD systems.
4361         * lib/login_tty.c: Include <sys/ioctl.h>.
4362         (login_tty): Use ioctl TIOCSCTTY when available.
4363         * modules/login_tty (Depends-on): Add sys_ioctl.
4364         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4365
4366 2010-09-16  Bruno Haible  <bruno@clisp.org>
4367
4368         login_tty: Stricter unit test.
4369         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4370         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4371         and tcgetsid() after login_tty.
4372         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4373
4374 2010-09-16  Bruno Haible  <bruno@clisp.org>
4375
4376         New module 'tcgetsid'.
4377         * lib/tcgetsid.c: New file.
4378         * m4/tcgetsid.m4: New file.
4379         * modules/tcgetsid: New file.
4380         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4381         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4382         GNULIB_TCGETSID, HAVE_TCGETSID.
4383         * lib/termios.in.h: Include <sys/types.h>.
4384         (tcgetsid): New declaration.
4385         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4386         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4387         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4388         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4389
4390 2010-09-16  Bruno Haible  <bruno@clisp.org>
4391
4392         Tests for module 'termios'.
4393         * modules/termios-c++-tests: New file.
4394         * modules/termios-tests: New file.
4395         * tests/test-termios-c++.cc: New file.
4396         * tests/test-termios.c: New file.
4397
4398         New module 'termios'.
4399         * modules/termios: New file.
4400         * lib/termios.in.h: New file.
4401         * m4/termios_h.m4: New file.
4402         * doc/posix-headers/termios.texi: Mention the new module.
4403
4404 2010-09-16  Eric Blake  <eblake@redhat.com>
4405
4406         fdutimensat: add an atflag parameter
4407         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4408         * lib/utimens.h (fdutimensat): Update prototype.
4409         * tests/test-fdutimensat.c: Adjust test to match.
4410         * NEWS: Document the change.
4411         Suggested by Paul Eggert.
4412
4413 2010-09-16  Bruno Haible  <bruno@clisp.org>
4414
4415         Fix typos in comments.
4416         * lib/striconveh.h: Fix typo in comment.
4417         * lib/login_tty.c (login_tty): Likewise.
4418
4419 2010-09-15  Bruno Haible  <bruno@clisp.org>
4420
4421         stdlib: clarify MirBSD WEXITSTATUS bug
4422         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
4423         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4424
4425 2010-09-15  Eric Blake  <eblake@redhat.com>
4426
4427         stdlib: work around MirBSD WEXITSTATUS bug
4428         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
4429         * modules/stdlib (Depends-on): Add sys_wait.
4430         * tests/test-sys_wait.c (main): Enhance test.
4431         * tests/test-stdlib.c (main): Likewise.
4432         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
4433
4434         docs: mention MacOS issue with WEXITSTATUS(constant)
4435         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
4436         issue.
4437         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4438
4439         strnlen: add tests
4440         * modules/strnlen-tests: New file.
4441         * tests/test-strnlen.c: Likewise.
4442
4443 2010-09-14  Bruno Haible  <bruno@clisp.org>
4444
4445         unistr/base: Avoid link errors when module 'libunistring' is also used.
4446         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
4447         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
4448         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
4449         Declare also when HAVE_LIBUNISTRING is set.
4450         Reported by Pádraig Brady <P@draigbrady.com>.
4451
4452 2010-09-14  Eric Blake  <eblake@redhat.com>
4453
4454         test-rawmemchr: make more robust
4455         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
4456         (Depends-on, configure.ac): Add needed prerequisites to use it.
4457         * modules/memchr-tests (Files, Depends-on, configure.ac):
4458         Likewise, to avoid implicit reliance on memchr module prereqs.
4459         * tests/test-memchr.c (main): Ensure proper masking.
4460         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
4461         reads.
4462
4463         memchr: detect glibc Alpha bug
4464         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
4465         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
4466         Alpha.
4467         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
4468         * tests/test-memchr.c (main): Enhance test.
4469         Reported by Nelson H. F. Beebe.
4470
4471 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4472
4473         fts, getcwd, glob: audit for dirfd returning -1
4474         * lib/fts.c (opendir): Remove #define; no longer used.
4475         (opendirat): New arg PDIR_FD.  All callers changed.
4476         (fts_build, _opendir2): Use new opendirat to avoid the need for
4477         dirfd, or for checking whether dirfd returns a negative value.
4478         Don't use opendir; always use openat followed by fdopendir.
4479         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
4480         it.
4481         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
4482         returns -1 here.
4483         * modules/fts (Depends-on): Remove dirfd.
4484         * modules/getcwd (Depends-on): Likewise.
4485
4486 2010-09-13  Eric Blake  <eblake@redhat.com>
4487
4488         float: fix broken MirBSD header
4489         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
4490         * doc/posix-headers/float.texi (float.h): Document it.
4491
4492 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4493
4494         fts: use O_NOFOLLOW to avoid race condition when opening a directory
4495         * lib/fts.c (opendirat): New arg extra_flags.
4496         (__opendir2): Use it to avoid following symlinks when opening
4497         a directory, if symlinks are not supposed to be followed.  See
4498         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
4499
4500         fdopendir: preserve argument fd before returning
4501         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
4502         (fdopendir_with_dup, fd_clone_opendir): New static functions.
4503         (fdopendir): Use them, arranging for FD to be open to the same
4504         directory that it was when it started.  (It might be temporarily
4505         closed while fdopendir is running, so this not thread- or
4506         signal-safe.)  Be careful to do the right thing even when file
4507         descriptors are scarce and dup fails with errno == EMFILE.  See
4508         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
4509
4510 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
4511
4512         regex: Pass the system regex if its only problem is 32-bit regoff_t.
4513         * NEWS: Document change.
4514         * m4/regex.m4: Disable test for regoff_t size.
4515
4516 2010-09-13  Jim Meyering  <meyering@redhat.com>
4517
4518         fts: don't operate on an invalid file descriptor after failed dup
4519         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
4520         negative file descriptor.
4521
4522 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4523
4524         savedir: add streamsavedir, deprecate fdsavedir
4525         * NEWS: Mention deprecation of fdsavedir.
4526         * lib/savedir.c (streamsavedir): New extern function, whose name
4527         ends in "savedir" to be consistent with the others.  This differs
4528         from savedirstream in that it doesn't close its argument.  The
4529         next version of GNU tar will use this instead of fdsavedir, to
4530         avoid some race conditions and conserve file descriptors.
4531         (savedirstream): Reimplement as a wrapper around streamsavedir.
4532         (fdsavedir): Add a comment deprecating this function.  As far as
4533         I know, only GNU tar used it, and GNU tar doesn't need it any more.
4534         * lib/savedir.h (streamsavedir): New decl.
4535         (fdsavedir): Add a comment deprecating this.
4536
4537 2010-09-10  Bruno Haible  <bruno@clisp.org>
4538
4539         langinfo: Fix last commit.
4540         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
4541         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
4542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4543
4544 2010-09-10  Bruno Haible  <bruno@clisp.org>
4545
4546         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
4547         * lib/progreloc.c (O_EXEC): Define fallback.
4548
4549 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4550
4551         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
4552         * NEWS: Document recent changes to fcntl-h.
4553         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
4554         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
4555         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
4556         Similarly for O_SEARCH; this last was already true, but not documented.
4557         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
4558         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
4559         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
4560         Likewise.
4561         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
4562         is zero, not whether it is defined.
4563         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
4564         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
4565         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
4566
4567 2010-09-10  Bruno Haible  <bruno@clisp.org>
4568
4569         langinfo, nl_langinfo: Fix for IRIX 5.3.
4570         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
4571         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
4572         HAVE_LANGINFO_YESEXPR.
4573         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
4574         HAVE_LANGINFO_YESEXPR.
4575         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
4576         HAVE_LANGINFO_T_FMT_AMPM is 0.
4577         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
4578         HAVE_LANGINFO_YESEXPR is 0.
4579         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
4580         NOEXPR.
4581         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
4582         * doc/posix-functions/nl_langinfo.texi: Likewise.
4583         Reported by Eric Blake.
4584
4585 2010-09-10  Bruno Haible  <bruno@clisp.org>
4586
4587         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
4588         * doc/glibc-functions/login_tty.texi: Mention the include file problem
4589         on FreeBSD 8.0 and OpenBSD 4.6.
4590         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
4591         * m4/pty_h.m4 (gl_PTY_H): Likewise.
4592         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
4593         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
4594         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
4595         ac_includes_default.
4596         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4597
4598 2010-09-09  Eric Blake  <eblake@redhat.com>
4599
4600         strsignal: work around NetBSD bug
4601         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
4602         * lib/string.in.h (includes): Likewise.
4603         * doc/posix-functions/strsignal.texi (strsignal): Document the
4604         bug.
4605         Reported by Nelson H. F. Beebe.
4606
4607         gnulib-tool: work with NetBSD /bin/sh
4608         * gnulib-tool (func_cache_var, func_cache_lookup_module)
4609         (func_get_description, func_get_comment, func_get_status)
4610         (func_get_notice, func_get_applicability, func_get_filelist)
4611         (func_get_dependencies, func_get_autoconf_early_snippet)
4612         (func_get_autoconf_snippet, func_get_automake_snippet)
4613         (func_get_include_directive, func_get_link_directive)
4614         (func_get_license, func_get_maintainer, func_import): Avoid
4615         shell syntax errors from parsing syntax extensions.
4616
4617 2010-09-09  Bruno Haible  <bruno@clisp.org>
4618
4619         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4620         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
4621         a reliable way to determine whether the 'alias' command works.
4622
4623 2010-09-08  Jim Meyering  <meyering@redhat.com>
4624
4625         init.sh: penalize a set-x-impaired shell; don't disqualify it
4626         * tests/init.sh: Too many shells corrupt application stderr when
4627         you set -x, so we can't afford to disqualify them, since at least
4628         on Irix-6.5, that would disqualify all bourne shells.
4629         Instead, use a two-pass approach.
4630         On the first pass, try to find a shell that meets the stricter
4631         condition that set -x does not corrupt stderr.
4632         If no shell meets the stricter condition, retest each candidate
4633         shell, but without that extra condition.  Finally, when
4634         VERBOSE=yes is requested and set -x might cause trouble, simply
4635         issue a warning and refrain from enabling debug output.
4636
4637 2010-09-08  Eric Blake  <eblake@redhat.com>
4638
4639         unsetenv: fix OpenBSD bug
4640         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
4641         * doc/posix-functions/unsetenv.texi (unsetenv): Update
4642         documentation.
4643         Reported by Jim Meyering.
4644
4645         strtod: work around IRIX 6.5 bug
4646         * lib/strtod.c (strtod): Reparse number on shorter string if
4647         exponent parse was invalid.
4648         * tests/test-strtod.c (main): Add check for "0x1p 2".
4649         Reported by Tom G. Christensen.
4650
4651         getopt: optimize previous patch
4652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
4653         empty variable.  Speed up awk script.
4654         Reported by Paolo Bonzini.
4655
4656 2010-09-08  Jim Meyering  <meyering@redhat.com>
4657
4658         test.sh: disqualify shells for which set -x corrupts stderr
4659         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
4660         and OpenBSD 4.7.  They make it so with "set -x", environment settings
4661         appear in stderr output.  For example, this command:
4662             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
4663         prints "P=1" on those two systems:
4664
4665 2010-09-08  Bruno Haible  <bruno@clisp.org>
4666
4667         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4668         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
4669         commands, because some shells ignore redirections when there is an
4670         error in the command lookup.
4671         Reported by Eric Blake.
4672
4673 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
4674
4675         * lib/regex.h: Fix a mention of `regex_compile' (should be
4676         `re_compile_pattern').
4677         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
4678         (re_set_registers): Correct name of parameter in comment.
4679
4680         * doc/regex.texi: Add documentation for missing syntax flags.
4681         Remove commented-out documentation of defunct syntax option
4682         RE_NO_EMPTY_ALTS.
4683         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
4684         Add documentation of re_set_registers.
4685         Document trick to re-use a pattern buffer by setting fastmap manually.
4686         Update documentation of struct re_pattern_buffer per public members.
4687         Uncomment documentation of equivalence class operators and
4688         collating symbol operators, since they are now implemented,
4689         Explain leftmost-longest matching in relation to alternatives.
4690         Tidy documentation of substring matching.
4691         Remove POSIX documentation, which is done better in
4692         glibc, and refer the reader there. Keep BSD API documentation, as
4693         that is not readily available elsewhere.
4694
4695 2010-09-07  Eric Blake  <eblake@redhat.com>
4696
4697         getopt: handle POSIXLY_CORRECT set but not exported
4698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
4699         export state of POSIXLY_CORRECT, due to bash set -o posix.
4700         Reported by Dustin J. Mitchell.
4701
4702 2010-09-05  Bruno Haible  <bruno@clisp.org>
4703
4704         gnulib-tool: Highlight the changed options.
4705         * gnulib-tool (func_usage): Display the --import, --add-import,
4706         --remove-import explanations in bold font.
4707
4708 2010-09-06  Karl Berry  <karl@gnu.org>
4709
4710         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
4711
4712 2010-09-05  Bruno Haible  <bruno@clisp.org>
4713
4714         uniwidth/width: Update comment.
4715         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
4716         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
4717
4718 2010-09-05  Bruno Haible  <bruno@clisp.org>
4719
4720         isinf, isnan: Relax license.
4721         * modules/isinf (License): Change from GPL to LGPL, with consent from
4722         Ben Pfaff.
4723         * modules/isnan (License): Likewise.
4724         Requested by Ludovic Courtès.
4725
4726 2010-09-04  Bruno Haible  <bruno@clisp.org>
4727
4728         gnulib-tool: Help migration from --import to --add-import or --update.
4729         * gnulib-tool: Emit a verbose error message when --import is used
4730         without any module name.
4731
4732 2010-09-04  Bruno Haible  <bruno@clisp.org>
4733
4734         Update doc about gnulib-tool.
4735         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
4736         'gnulib-tool --update' in more detail.
4737         Reported by Eric Blake.
4738
4739 2010-09-04  Bruno Haible  <bruno@clisp.org>
4740
4741         gnulib-tool: Change --import. New options --add/remove-import.
4742         * gnulib-tool: New options --add-import, --remove-import.
4743         (func_usage): Document them.
4744         (have_associative): Define always.
4745         (func_import): In import mode, don't merge the specified settings with
4746         the cached settings. Implement remove-import mode.
4747         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
4748         Explain when to use them versus --import.
4749         (Simple update): Use --add-import instead of --import.
4750         * NEWS: Mention the change.
4751
4752 2010-09-04  Bruno Haible  <bruno@clisp.org>
4753
4754         * doc/gnulib-tool.texi (Initial import): Update paragraph about
4755         separate gnulib.mk.
4756
4757 2010-09-04  Bruno Haible  <bruno@clisp.org>
4758
4759         gnulib-tool: Don't talk about CVS any more.
4760         * gnulib-tool (func_usage, func_import): Write "version control"
4761         instead of CVS.
4762
4763 2010-09-04  Jim Meyering  <meyering@redhat.com>
4764
4765         maint.mk: avoid obscure sc_copyright_check failure in coreutils
4766         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
4767         false positives (whose names may be ill-chosen) when searching
4768         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
4769         would cause a false-positive.
4770
4771         avoid coreutils "make distcheck" failure
4772         Coreutils tests with an absolute build directory name that contains
4773         a space.  Not quoting this directory name caused a failure.
4774         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
4775         * tests/test-vc-list-files-cvs.sh: Likewise.
4776
4777 2010-09-04  Bruno Haible  <bruno@clisp.org>
4778
4779         gnulib-tool: Avoid error when run in a package without Makefile.am.
4780         * gnulib-tool: When collecting the m4dirs in a package that does not
4781         have a Makefile.am, eliminate those directories that contain no
4782         gnulib-cache.m4. Fix expression that counts these directories.
4783
4784 2010-09-04  Bruno Haible  <bruno@clisp.org>
4785
4786         update-copyright test: Improve output when perl is missing or too old.
4787         * tests/test-update-copyright.sh: Move test of Perl version down after
4788         the test whether Perl exists. Provide an explanation relating Perl's
4789         error message to Automake's SKIP: message.
4790
4791 2010-09-04  Bruno Haible  <bruno@clisp.org>
4792
4793         Don't augment PATH in TESTS_ENVIRONMENT.
4794         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
4795         set abs_aux_dir instead of augmenting PATH.
4796         * modules/vc-list-files-tests (Makefile.am): Likewise.
4797         * tests/test-update-copyright.sh: Augment PATH here.
4798         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
4799         path_prepend_.
4800         * tests/test-vc-list-files-git.sh: Likewise.
4801
4802 2010-09-04  Jim Meyering  <meyering@redhat.com>
4803
4804         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
4805         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
4806
4807 2010-09-04  Bruno Haible  <bruno@clisp.org>
4808
4809         strdup: Fix compilation error in C++ mode.
4810         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
4811         the macro.
4812
4813 2010-09-04  Bruno Haible  <bruno@clisp.org>
4814
4815         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
4816         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
4817         macro into a function.
4818         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4819
4820 2010-09-04  Bruno Haible  <bruno@clisp.org>
4821
4822         Set PATH_SEPARATOR the same way autoconf does.
4823         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
4824         the value of PATH_SEPARATOR the same way autoconf-generated configure
4825         scripts do.
4826         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
4827         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
4828
4829 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4830
4831         Set PATH_SEPARATOR the same way autoconf does.
4832         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
4833         the same way autoconf-generated configure scripts do.
4834         * posix-modules: Likewise.
4835
4836 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
4837
4838         hash: fix safe_hasher const typo
4839         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
4840         const; otherwise, there is a type error later.
4841
4842 2010-09-02  Jim Meyering  <meyering@redhat.com>
4843
4844         test-update-copyright.sh: require perl 5.8.0
4845         * tests/test-update-copyright.sh: Require 5.8.0,
4846         which Tom G. Christensen has confirmed is adequate,
4847         while 5.6.1 is not.
4848
4849 2010-09-02  Eric Blake  <eblake@redhat.com>
4850
4851         tests: init.sh improvements for re-exec'ing with zsh
4852         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
4853         -vx through shell re-exec.
4854         Reported by Tom G. Christensen.
4855
4856         wctype: fix typo in previous commit
4857         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
4858         Reported by Ludovic Courtès.
4859
4860 2010-09-02  Jim Meyering  <meyering@redhat.com>
4861
4862         test-update-copyright.sh: skip test if Perl is too old
4863         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
4864         Reported by Tom G. Christensen.
4865
4866 2010-09-02  Bruno Haible  <bruno@clisp.org>
4867
4868         wctype: Avoid compilation error on IRIX 6.5.30.
4869         * lib/wctype.in.h (iswblank): Declare with a replacement if
4870         REPLACE_ISWBLANK is set.
4871         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
4872         declared. Set REPLACE_ISWBLANK.
4873         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
4874         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
4875         * doc/posix-headers/wctype.texi: Likewise.
4876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4877
4878 2010-09-01  Bruno Haible  <bruno@clisp.org>
4879
4880         New module 'socketlib'.
4881         * modules/socketlib: New file.
4882         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
4883         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
4884         * modules/sockets (Depends-on): Add socketlib.
4885         Suggested by Sam Steingold <sds@gnu.org>.
4886
4887 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4888
4889         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
4890
4891         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
4892         when one needs search access to a directory but not read access.
4893         On systems where it is available, it works in some cases where
4894         O_RDONLY does not, namely on directories that are searchable but
4895         not readable, and which need only to be searchable.  If O_SEARCH
4896         is not available, fall back to the traditional method of using
4897         O_RDONLY.
4898
4899         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
4900         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
4901         when opening a directory that needs only to be searchable.
4902         * lib/chdir-safer.c (chdir_no_follow): Likewise.
4903         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
4904         * lib/openat-proc.c (openat_proc_name): Likewise.
4905         * lib/openat.c (openat_needs_fchdir): Likewise.
4906         * lib/save-cwd.c (save_cwd): Likewise.
4907         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
4908
4909 2010-08-28  Bruno Haible  <bruno@clisp.org>
4910
4911         New module 'host-cpu-c-abi'.
4912         * modules/host-cpu-c-abi: New file.
4913         * m4/host-cpu-c-abi.m4: New file, based on part of
4914         clisp/src/m4/general.m4.
4915         Requested by Sam Steingold <sds@gnu.org>.
4916
4917 2010-08-31  Eric Blake  <eblake@redhat.com>
4918         and Jim Meyering  <meyering@redhat.com>
4919
4920         hash: factor, and guard against misbehaving hasher function
4921         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
4922         of table->hasher's return value.  Also protect against a hash value
4923         so large that adding it to table->bucket results in a NULL pointer.
4924         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
4925         Use it in place of open-coded check-and-abort.
4926
4927 2010-08-30  Bruno Haible  <bruno@clisp.org>
4928
4929         hash: silence spurious clang warning
4930         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
4931         Reported by Eric Blake.
4932
4933 2010-08-30  Eric Blake  <eblake@redhat.com>
4934
4935         strstr, memmem, strcasestr: avoid leaked shell message
4936         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
4937         FreeBSD.
4938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4939         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4940
4941         tests: silence clang warning
4942         * tests/test-malloca.c (do_allocation): Avoid dead store.
4943
4944 2010-08-29  Bruno Haible  <bruno@clisp.org>
4945
4946         gettext: Fix recent mistake.
4947         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
4948
4949 2010-08-29  Bruno Haible  <bruno@clisp.org>
4950
4951         selinux-h: Offer a --without-selinux option.
4952         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
4953         --without-selinux was specified, skip all tests and define
4954         HAVE_SELINUX_SELINUX_H to 0.
4955         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
4956         set LIB_SELINUX to empty.
4957         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
4958         gl_LIBSELINUX. If --without-selinux was specified, replace
4959         selinux/context.h.
4960         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
4961
4962 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4963             Bruno Haible  <bruno@clisp.org>
4964
4965         Make the module 'realloc-gnu' work again on AIX and OSF/1.
4966         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
4967         of HAVE_REALLOC.
4968         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
4969         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
4970         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
4971         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
4972
4973 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4974             Bruno Haible  <bruno@clisp.org>
4975
4976         Make the module 'calloc-gnu' work again on AIX and OSF/1.
4977         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
4978         HAVE_CALLOC.
4979         * lib/xmalloc.c: Update accordingly.
4980         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
4981         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
4982         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
4983
4984 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4985             Bruno Haible  <bruno@clisp.org>
4986
4987         Make the module 'malloc-gnu' work again on AIX and OSF/1.
4988         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
4989         HAVE_MALLOC.
4990         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
4991         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
4992         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
4993
4994 2010-08-29  Bruno Haible  <bruno@clisp.org>
4995
4996         Update modules list.
4997         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
4998         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
4999         (String handling <string.h>): Add astrxfrm.
5000         (File system functions): Add readlinkat.
5001
5002 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5003
5004         Tests for module 'realloc-gnu'.
5005         * modules/realloc-gnu-tests: New file.
5006         * tests/test-realloc-gnu.c: New file.
5007
5008         Tests for module 'calloc-gnu'.
5009         * modules/calloc-gnu-tests: New file.
5010         * tests/test-calloc-gnu.c: New file.
5011
5012         Tests for module 'malloc-gnu'.
5013         * modules/malloc-gnu-tests: New file.
5014         * tests/test-malloc-gnu.c: New file.
5015
5016 2010-08-28  Bruno Haible  <bruno@clisp.org>
5017
5018         Rename module 'realloc' -> 'realloc-gnu'.
5019         * modules/realloc-gnu: New file, copied from modules/realloc.
5020         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5021         obsolete.
5022         * modules/mgetgroups (Depends-on): Update.
5023         * doc/posix-functions/realloc.texi: Update.
5024         * NEWS: Mention the change.
5025
5026         Rename module 'calloc' -> 'calloc-gnu'.
5027         * modules/calloc-gnu: New file, copied from modules/calloc.
5028         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5029         obsolete.
5030         * doc/posix-functions/calloc.texi: Update.
5031         * NEWS: Mention the change.
5032
5033         Rename module 'malloc' -> 'malloc-gnu'.
5034         * modules/malloc-gnu: New file, copied from modules/malloc.
5035         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5036         obsolete.
5037         * modules/argp (Depends-on): Update.
5038         * modules/regex (Depends-on): Update.
5039         * doc/posix-functions/malloc.texi: Update.
5040         * NEWS: Mention the change.
5041
5042 2010-08-28  Eric Blake  <eblake@redhat.com>
5043
5044         pread, pwrite: add missing dependency
5045         * modules/pread (Depends-on): Add extensions.
5046         * modules/pwrite (Depends-on): Likewise.
5047
5048 2010-08-28  Bruno Haible  <bruno@clisp.org>
5049
5050         unistr/u*-strchr: Fix tests dependencies.
5051         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5052         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5053         Reported by Ian Beckwith <ianb@erislabs.net>.
5054
5055 2010-08-28  Bruno Haible  <bruno@clisp.org>
5056
5057         read-file: Don't occupy too much unused memory.
5058         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5059
5060 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5061             Eric Blake  <eblake@redhat.com>
5062             Bruno Haible  <bruno@clisp.org>
5063
5064         read-file: Avoid memory reallocations with regular files.
5065         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5066         (fread_file): With regular files, use the remaining length as the
5067         initial buffer size.  Check against overflow.
5068         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5069         sys_stat.
5070
5071 2010-08-28  Bruno Haible  <bruno@clisp.org>
5072
5073         ftello: Relax license.
5074         * modules/ftello (License): Relax to LGPLv2+.
5075         Reported by Eric Blake.
5076
5077 2010-08-28  Bruno Haible  <bruno@clisp.org>
5078
5079         Avoid relocwrapper link errors due to gnulib replacement functions.
5080         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5081         function.
5082         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5083
5084 2010-08-28  Bruno Haible  <bruno@clisp.org>
5085
5086         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5087         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5088         defined.
5089         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5090         Suggested by Eric Blake.
5091
5092 2010-08-28  Bruno Haible  <bruno@clisp.org>
5093
5094         sys_socket, netdb: Ensure socklen_t gets defined.
5095         * modules/sys_socket (Depends-on): Add socklen.
5096         * modules/netdb (Depends-on): Likewise.
5097         * modules/getaddrinfo (Depends-on): Remove socklen.
5098         * modules/getsockopt (Depends-on): Likewise.
5099         * modules/setsockopt (Depends-on): Likewise.
5100         * tests/test-sys_socket.c: Check that socklen_t is defined.
5101         * tests/test-netdb.c: Likewise.
5102         * m4/socklen.m4: Update comments.
5103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5104
5105 2010-08-27  Eric Blake  <eblake@redhat.com>
5106
5107         login_tty: add missing dependency
5108         * modules/login_tty (Depends-on): Add pty.
5109
5110 2010-08-26  Eric Blake  <eblake@redhat.com>
5111
5112         lib-symbol-versions: fix m4 quoting
5113         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5114         format for AC_LINK_IFELSE.
5115
5116         glob: fix compile test
5117         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5118
5119         btowc: fix missing file
5120         * modules/btowc (Files): Also ship locale-fr.m4.
5121
5122         lseek: fix link test
5123         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5124         AC_LINK_IFELSE.
5125
5126         include_next: silence autoconf 2.68 warning
5127         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5128         AC_COMPILE_IFELSE as special.
5129         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5130         autoconf < 2.68.
5131
5132         acl: fix compilation test
5133         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5134         AC_COMPILE_IFELSE.
5135
5136 2010-08-26  Bruno Haible  <bruno@clisp.org>
5137
5138         Modernize AC_TRY_RUN invocations.
5139         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5140         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5141         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5142         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5143         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5144         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5145         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5147         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5148         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5149         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5150         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5151         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5152         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5154         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5155         gl_MBRLEN_NUL_RETVAL): Likewise.
5156         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5157         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5158         Likewise.
5159         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5160         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5161         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5162         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5163         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5164         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5165         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5166         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5167         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5168         Likewise.
5169         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5170         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5171         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5172         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5173         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5174         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5175         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5176         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5177         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5179
5180 2010-08-26  Bruno Haible  <bruno@clisp.org>
5181
5182         Modernize AC_TRY_LINK invocations.
5183         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5184         AC_TRY_LINK.
5185         * m4/argp.m4 (gl_ARGP): Likewise.
5186         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5187         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5188         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5189         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5190         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5191         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5192         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5193         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5194         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5195         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5196         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5197         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5198         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5199         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5200         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5201         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5202         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5203         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5204         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5205         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5206         Likewise.
5207         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5208         Likewise.
5209         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5210         Likewise.
5211         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5212         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5213         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5214         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5215         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5216         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5217         * m4/servent.m4 (gl_SERVENT): Likewise.
5218         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5219         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5220         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5221         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5222         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5223         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5224         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5225         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5226         * modules/tsearch-tests (configure.ac): Likewise.
5227
5228 2010-08-26  Bruno Haible  <bruno@clisp.org>
5229
5230         Modernize AC_TRY_COMPILE invocations.
5231         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5232         AC_TRY_COMPILE.
5233         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5234         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5235         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5236         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5237         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5238         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5239         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5240         * m4/lock.m4 (gl_LOCK): Likewise.
5241         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5242         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5243         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5244         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5245         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5246         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5247         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5248         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5249         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5250         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5251         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5252         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5253         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5254         extraneous semicolon.
5255
5256 2010-08-26  Jim Meyering  <meyering@redhat.com>
5257
5258         stat-time: relax license LGPL
5259         * modules/stat-time (License): Change from GPL to LGPL,
5260         with consent from all contributors, for use in libguile.
5261         Requested by Ludovic Courtès.
5262
5263 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5264
5265         poll: return immediately on POLLHUP.
5266         * lib/poll.c (poll): Always set timeout before wait_timeout is
5267         computed.
5268
5269 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5270
5271         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5272         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5273         rmdir ("dir/.//"), unlinkat.
5274
5275 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5276
5277         stdbool: avoid spurious failure with modern xlc
5278         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5279
5280 2010-08-24  Bruno Haible  <bruno@clisp.org>
5281
5282         getloadavg: simplify code
5283         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5284         gl_have_func. Update comments.
5285
5286 2010-08-24  Eric Blake  <eblake@redhat.com>
5287
5288         getloadavg: don't define SVR4 on cygwin
5289         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5290         only define SVR4 when -lkvm is required.
5291         Reported by Yaakov Selkowitz.
5292
5293 2010-08-24  Bruno Haible  <bruno@clisp.org>
5294
5295         priv-set: fix comment
5296         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5297
5298 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5299
5300         priv-set: fix comments
5301         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5302         to match code, as suggested by David Bartley in:
5303         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5304
5305 2010-08-23  Eric Blake  <eblake@redhat.com>
5306
5307         stdbool: avoid rejecting clang
5308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5309         * tests/test-stdbool.c: Enable more tests if using the system
5310         <stdbool.h> instead of the gnulib replacement.
5311         (main): Move xlc bug test to a runtime test for all compilers.
5312         Reported by Anders Kaseorg.
5313
5314         argz: fix shell quoting issue
5315         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5316         Reported by Charles Wilson.
5317
5318 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5319             Erik Faye-Lund <kusmabite@gmail.com>
5320
5321         poll, select: handle ERROR_BROKEN_PIPE.
5322         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5323         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5324         * lib/select.c (win32_compute_revents): Do not mark a pipe
5325         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5326
5327 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5328
5329         fts: allow compilation with C++
5330         * lib/fts_.h: Specify extern "C" linkage with C++.
5331
5332 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5333
5334         Fix gnulib-tool sed script de-commentation for AIX sed.
5335         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5336         sed.
5337
5338 2010-08-17  Eric Blake  <eblake@redhat.com>
5339
5340         test-stddef: test for (some) offsetof bugs
5341         * tests/test-stddef.c: Enhance test to ensure correct type of
5342         offsetof.
5343         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
5344         that we are not fixing at this time.
5345
5346 2010-08-15  Bruno Haible  <bruno@clisp.org>
5347
5348         stpncpy: Allow stpncpy to be defined as a macro.
5349         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
5350         if it's already correctly declared.
5351         * lib/string.in.h (stpncpy): Undefine before redefining.
5352         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
5353
5354 2010-08-14  Bruno Haible  <bruno@clisp.org>
5355
5356         Rename module 'memxfrm' to 'amemxfrm'.
5357         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
5358         (amemxfrm): Renamed from memxfrm.
5359         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
5360         (amemxfrm): Renamed from memxfrm.
5361         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
5362         * NEWS: Mention the change.
5363         * MODULES.html.sh (String handling <string.h>): Update.
5364         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
5365         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5366         * lib/unicase/u16-casexfrm.c: Likewise.
5367         * lib/unicase/u32-casexfrm.c: Likewise.
5368         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5369         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5370         * lib/uninorm/u16-normxfrm.c: Likewise.
5371         * lib/uninorm/u32-normxfrm.c: Likewise.
5372         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5373         memxfrm.
5374         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5375         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5376         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5377         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5378         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5379         Suggested by Paul Eggert.
5380
5381 2010-08-14  Bruno Haible  <bruno@clisp.org>
5382
5383         Tests for module 'astrxfrm'.
5384         * modules/astrxfrm-tests: New file.
5385         * tests/test-astrxfrm.c: New file.
5386
5387         New module 'astrxfrm'.
5388         * lib/astrxfrm.h: New file.
5389         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5390         * modules/astrxfrm: New file.
5391
5392 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5393
5394         regex: Tweak doc.
5395         * doc/regex.texi (Overview): Don't mention regex.c.
5396         (GNU Regular Expression Compiling): Likewise.
5397         (Match-end-of-line Operator): Mention 'not_eol'.
5398
5399 2010-08-14  Brian Gough  <bjg@gnu.org>
5400             Bruno Haible  <bruno@clisp.org>
5401
5402         git-merge-changelog: add doc relating to use with bzr and hg.
5403         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5404
5405 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5406
5407         pthread: fix pthread.h creation for srcdir != builddir
5408         * modules/pthread (Makefile.am): Fix the rule to work also in a
5409         non-srcdir build.
5410
5411 2010-08-13  Karl Berry  <karl@gnu.org>
5412
5413         * doc/regex.texi (Predefined Syntaxes): @smallexample.
5414         * doc/posix-*/*: force line break before @url of POSIX
5415         specifications.
5416         Suggested by Werner Lemberg.
5417
5418 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5419
5420         strtod: fix const diagnostic
5421         * lib/strtod.c (strtod): Don't assign const char * to char *,
5422         as this elicits a warning from GCC when warnings are enabled.
5423
5424 2010-08-10  Pádraig Brady <P@draigbrady.com>
5425         and Eric Blake  <eblake@redhat.com>
5426
5427         copy-acl: ignore ENOTSUP on HP-UX
5428         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
5429         so that it is available for HP-UX.
5430         * lib/copy-acl.c (qcopy_acl): Use it.
5431         Reported by Patrick M. Callahan.
5432
5433 2010-08-10  Eric Blake  <eblake@redhat.com>
5434
5435         open, chown: relax license
5436         * modules/open (License): Change to LGPLv2+, with consent by all
5437         authors, for use in augeas.
5438         * modules/chown (License): Likewise.
5439         * modules/lchown (Likewise): Likewise.
5440         Requested by Adam Stokes.
5441
5442 2010-08-09  Karl Berry  <karl@gnu.org>
5443
5444         * build-aux/ar-lib: new file, import from Automake.
5445         * config/srclist.txt: autocheck for updates.
5446
5447 2010-08-09  Eric Blake  <eblake@redhat.com>
5448
5449         readlinkat: adjust client modules
5450         * modules/areadlinkat (Depends-on): Use readlinkat, not
5451         symlinkat.
5452         * modules/areadlinkat-with-size (Depends-on): Likewise.
5453
5454         mknod: be more vocal about danger of running tests as root
5455         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
5456         root, since that is just asking for problems.
5457         Suggested by Bruno Haible, based on a report by Rainer Tammer.
5458
5459         readlinkat: split into its own module
5460         * modules/symlinkat: Split readlinkat...
5461         * modules/readlinkat: ...into separate module.
5462         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
5463         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
5464         * lib/symlinkat.c (readlinkat): Move...
5465         * lib/readlinkat.c: ...into new file.
5466         * modules/symlinkat-tests: Split readlinkat test...
5467         * modules/readlinkat-tests: ...into separate module.
5468         * tests/test-symlinkat.c: Split...
5469         * tests/test-readlinkat.c: ...into new file.
5470         * NEWS: Document the split.
5471         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5472         * lib/unistd.in.h (readlinkat): Likewise.
5473         Suggested by Bruno Haible.
5474
5475 2010-08-08  Bruno Haible  <bruno@clisp.org>
5476
5477         memxfrm: Speed up.
5478         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
5479         that usually only one call to strxfrm is necessary for each string
5480         part.
5481         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5482
5483 2010-08-07  Karl Berry  <karl@gnu.org>
5484
5485         * doc/posix-headers/limits.texi,
5486         * doc/posix-functions/malloc.texi,
5487         * doc/posix-functions/strsignal.texi: missing @item.
5488         * doc/ld-version-script.texi: spurious leading i.
5489         * doc/regex.texi (Interval Operators): no commas inside @var.
5490
5491 2010-08-01  Bruno Haible  <bruno@clisp.org>
5492
5493         Integrate the regex documentation.
5494         * doc/gnulib.texi: Define 'cn' index.
5495         (Regular expressions): New a chapter that includes regex.texi and
5496         regexprops-generic.texi.
5497         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
5498         syntax.
5499
5500         Whitespace cleanup.
5501         * doc/regex.texi: Remove trailing spaces.
5502
5503         Add regex documentation.
5504         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
5505         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
5506         Written by Kathy A. Hargreaves and Karl Berry.
5507
5508 2010-08-01  Bruno Haible  <bruno@clisp.org>
5509
5510         link: Update documentation.
5511         * doc/posix-functions/link.texi: Update regarding Solaris.
5512
5513 2010-07-31  Bruno Haible  <bruno@clisp.org>
5514
5515         Update modules list.
5516         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
5517         (String handling <string.h>): Add memcmp2, memxfrm.
5518         (Container data structures): Add xlist, xsublist, xoset.
5519         (Core language properties): Add alignof, unused-parameter.
5520         (Process control, Numeric conversion functions <stdlib.h>): Renamed
5521         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
5522         (Unibyte characters <ctype.h>): New section.
5523         (String handling <string.h>): New section.
5524         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
5525         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
5526         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
5527         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
5528         tan, tanh, tanl, y0, y1, yn.
5529         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
5530         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
5531         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
5532         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
5533         unlockpt, vdprintf, vdprintf-posix.
5534         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
5535         (File system functions): Add concat-filename, sys_file, sys_ioctl,
5536         xconcat-filename.
5537         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
5538         getdtablesize, pipe2, pipe2-safer.
5539         (Security): New section.
5540         (Networking functions): Add accept4.
5541         (Signal handling): Add sigpipe.
5542         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
5543         mbmemcasecoll.
5544         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
5545         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
5546         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
5547         pipe-filter-ii.
5548         (Misc): Add argp-version-etc, login_tty, parse-duration.
5549
5550 2010-07-31  Bruno Haible  <bruno@clisp.org>
5551
5552         Improve doc in MODULES.html.
5553         * modules/linkat (Description): Add the word "function".
5554         * modules/mkfifo (Description): Likewise.
5555         * modules/mknod (Description): Likewise.
5556         * modules/remove (Description): Likewise.
5557         * modules/renameat (Description): Likewise.
5558         * modules/stat (Description): Likewise.
5559         * modules/symlink (Description): Likewise.
5560         * modules/unlink (Description): Likewise.
5561
5562 2010-07-31  Bruno Haible  <bruno@clisp.org>
5563
5564         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
5565         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
5566         option --enable/disable-c++ instead of --enable/disable-cxx.
5567         * NEWS: Mention the change.
5568
5569 2010-07-31  Bruno Haible  <bruno@clisp.org>
5570
5571         readlink, areadlink: Relax test a bit.
5572         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
5573         alternative to ENOTDIR.
5574         * tests/test-areadlink.h (test_areadlink): Likewise.
5575         Reported by Rainer Tammer.
5576
5577 2010-07-31  Bruno Haible  <bruno@clisp.org>
5578
5579         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
5580         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
5581         character, perform the search using U_STRCHR.
5582         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
5583         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
5584         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
5585         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
5586         Suggested by Paolo Bonzini.
5587
5588 2010-07-31  Bruno Haible  <bruno@clisp.org>
5589
5590         unistr/u*-strstr: Fix dependencies.
5591         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
5592         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
5593         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
5594
5595 2010-07-31  Bruno Haible  <bruno@clisp.org>
5596
5597         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
5598         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
5599         the beginning of the loop.
5600         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
5601         cases in 'switch' statement.
5602
5603         unistr/u8-strchr: Fix several bugs.
5604         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
5605         the string. When not found, return NULL, not a pointer near the end.
5606
5607         More tests for unistr/u8-strchr.
5608         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
5609         that the function does not read past the first occurrence of the byte
5610         being searched.
5611         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
5612         * tests/unistr/test-u16-strchr.c (main): New function.
5613         * tests/unistr/test-u32-strchr.c (main): New function.
5614
5615 2010-07-31  Bruno Haible  <bruno@clisp.org>
5616
5617         posix-modules: Ignore backup files of documentation files.
5618         * posix-modules: grep only through files named *.texi.
5619
5620 2010-07-31  Bruno Haible  <bruno@clisp.org>
5621
5622         symlinkat: Fix documentation.
5623         * doc/posix-functions/readlinkat.texi: Fix module name.
5624
5625 2010-07-31  Bruno Haible  <bruno@clisp.org>
5626
5627         fchownat: Replace also when chown has the trailing slash bug.
5628         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
5629         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
5630         introduced on 2010-04-10.
5631         Reported by Rainer Tammer.
5632
5633 2010-07-31  Bruno Haible  <bruno@clisp.org>
5634
5635         linkat: Work around AIX 7.1 bug.
5636         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
5637         whether linkat handles trailing slash correctly. If not, replace linkat
5638         and define LINKAT_TRAILING_SLASH_BUG.
5639         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
5640         check whether (fd1,file1) points to a directory if file1 or file2 ends
5641         in a slash. Code taken from lib/link.c.
5642         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
5643         Reported by Rainer Tammer.
5644
5645 2010-07-31  Bruno Haible  <bruno@clisp.org>
5646
5647         Correctly determine whether pow is available in libc on AIX 7 with xlc.
5648         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
5649         This disables an xlc optimization that was causing wrong test results.
5650         Reported by Rainer Tammer.
5651
5652 2010-07-31  Bruno Haible  <bruno@clisp.org>
5653
5654         iconv: Work around AIX 6.1..7.1 bug.
5655         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
5656         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
5657         cross-compiling, guess no on all versions of AIX.
5658         Reported by Rainer Tammer.
5659
5660 2010-07-31  Bruno Haible  <bruno@clisp.org>
5661
5662         readlink: Relax test a bit.
5663         * tests/test-readlink.h (test_readlink): Allow different errno value
5664         when readlink is called with a file name that ends in / and refers to
5665         a file.
5666         Suggested by Eric Blake.
5667         Reported by Rainer Tammer.
5668
5669 2010-07-31  Bruno Haible  <bruno@clisp.org>
5670
5671         copysign: Does not require -lm on glibc systems.
5672         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
5673         gl_COMMON_DOUBLE_MATHFUNC.
5674         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
5675
5676 2010-07-31  Bruno Haible  <bruno@clisp.org>
5677
5678         duplocale: Work around AIX 7.1 bug.
5679         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
5680         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
5681         * lib/duplocale.c (rpl_duplocale): Update comment.
5682         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
5683         Reported by Rainer Tammer.
5684
5685 2010-07-30  Bruno Haible  <bruno@clisp.org>
5686
5687         dirfd: Avoid link error on AIX 7.1.
5688         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
5689         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
5690         exist, set REPLACE_DIRFD.
5691         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
5692         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
5693         * doc/posix-functions/dirfd.texi: Update.
5694         Reported by Rainer Tammer.
5695
5696 2010-07-30  Eric Blake  <eblake@redhat.com>
5697
5698         strtod: next round of AIX fixes
5699         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
5700         exponent.
5701         * tests/test-strtod.c (main): Enhance tests.
5702         * doc/posix-functions/strtod.texi (strtod): Document next bug.
5703         Reported by Rainer Tammer.
5704
5705         futimens: fix configure check
5706         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
5707         Reported by Bruno Haible.
5708
5709 2010-07-30  Bruno Haible  <bruno@clisp.org>
5710
5711         getline: Update regarding AIX.
5712         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
5713         Reported by Rainer Tammer.
5714
5715 2010-07-30  Bruno Haible  <bruno@clisp.org>
5716
5717         wcwidth: Drop replacement on AIX 7.
5718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
5719         AIX 7.
5720         Reported by Rainer Tammer.
5721
5722 2010-07-30  Bruno Haible  <bruno@clisp.org>
5723
5724         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
5725         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
5726         a 'char *'.
5727         Reported by Rainer Tammer.
5728
5729 2010-07-30  Bruno Haible  <bruno@clisp.org>
5730
5731         unlink: Update regarding AIX.
5732         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
5733         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
5734         Reported by Rainer Tammer.
5735
5736 2010-07-30  Bruno Haible  <bruno@clisp.org>
5737
5738         symlink: Update regarding AIX.
5739         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
5740         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
5741         Reported by Rainer Tammer.
5742
5743 2010-07-30  Bruno Haible  <bruno@clisp.org>
5744
5745         strndup: Update regarding AIX.
5746         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
5747         AIX 7.
5748         Reported by Rainer Tammer.
5749
5750 2010-07-30  Bruno Haible  <bruno@clisp.org>
5751
5752         stat: Update regarding AIX.
5753         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
5754         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
5755         Reported by Rainer Tammer.
5756
5757 2010-07-30  Bruno Haible  <bruno@clisp.org>
5758
5759         truncl: Fix autoconf test.
5760         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
5761         whether truncl works.
5762         Reported by Rainer Tammer.
5763
5764 2010-07-30  Bruno Haible  <bruno@clisp.org>
5765
5766         round: Update regarding AIX.
5767         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
5768         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
5769         Reported by Rainer Tammer.
5770
5771 2010-07-30  Bruno Haible  <bruno@clisp.org>
5772
5773         rename: Update regarding AIX.
5774         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
5775         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
5776         Reported by Rainer Tammer.
5777
5778 2010-07-30  Bruno Haible  <bruno@clisp.org>
5779
5780         printf.m4: Update regarding AIX.
5781         * m4/printf.m4: Update comments regarding AIX.
5782         Reported by Rainer Tammer.
5783
5784 2010-07-30  Bruno Haible  <bruno@clisp.org>
5785
5786         iconv: Update regarding AIX.
5787         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
5788         AIX 7.
5789         Reported by Rainer Tammer.
5790
5791 2010-07-30  Bruno Haible  <bruno@clisp.org>
5792
5793         getopt: Update regarding AIX.
5794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
5795         no on AIX.
5796         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
5797         Reported by Rainer Tammer.
5798
5799 2010-07-30  Bruno Haible  <bruno@clisp.org>
5800
5801         ldexpl; Update regarding AIX.
5802         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
5803         on AIX 7.
5804         Reported by Rainer Tammer.
5805
5806 2010-07-30  Bruno Haible  <bruno@clisp.org>
5807
5808         frexpl: Update regarding AIX.
5809         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
5810         on AIX 7.
5811         Reported by Rainer Tammer.
5812
5813 2010-07-30  Bruno Haible  <bruno@clisp.org>
5814
5815         open, fopen: Update regarding AIX.
5816         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
5817         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5818         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
5819         * doc/posix-functions/fopen.texi: Likewise.
5820         Reported by Rainer Tammer.
5821
5822 2010-07-30  Bruno Haible  <bruno@clisp.org>
5823
5824         chown: Update doc regarding AIX.
5825         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
5826         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
5827         Reported by Rainer Tammer.
5828
5829 2010-07-30  Eric Blake  <eblake@redhat.com>
5830
5831         strtod: fix bug in replacement function on AIX
5832         * lib/strtod.c (strtod): Special case broken "0x" parse in
5833         underlying strtod.
5834         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
5835         * doc/posix-functions/strtod.texi (strtod): Likewise.
5836         Reported by Rainer Tammer.
5837
5838 2010-07-30  Bruno Haible  <bruno@clisp.org>
5839
5840         mbrlen: Fix cross-compilation guess for AIX.
5841         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
5842         guess. Leftover from 2008-12-22.
5843
5844 2010-07-30  Bruno Haible  <bruno@clisp.org>
5845
5846         mbrtowc: Fix cross-compilation guess for AIX.
5847         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
5848         guess. Leftover from 2008-12-21.
5849
5850 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
5851
5852         init.sh: work around trap limitation of some shells
5853         * tests/init.sh (setup_): Move exit trap outside of shell function.
5854
5855 2010-07-29  Eric Blake  <eblake@redhat.com>
5856
5857         strtod: aid debugging
5858         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
5859         understanding why strtod is rejected.
5860
5861 2010-07-28  Bruno Haible  <bruno@clisp.org>
5862
5863         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
5864         * lib/unistr/u8-chr.c: Include <string.h>.
5865         * tests/unistr/test-u8-chr.c: Likewise.
5866         * tests/unistr/test-u16-chr.c: Likewise.
5867         * tests/unistr/test-u32-chr.c: Likewise.
5868         * tests/unistr/test-u8-strchr.c: Likewise.
5869         * tests/unistr/test-u16-strchr.c: Likewise.
5870         * tests/unistr/test-u32-strchr.c: Likewise.
5871         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
5872         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
5873         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
5874         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
5875
5876 2010-07-28  Bruno Haible  <bruno@clisp.org>
5877
5878         Use spaces for indentation, not tabs.
5879         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5880
5881 2010-07-27  Bruno Haible  <bruno@clisp.org>
5882
5883         mbspcasecmp: Fix function specification.
5884         * lib/string.in.h (mbspcasecmp): Fix specification comment.
5885         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
5886         Reported by Eric Blake <eblake@redhat.com>.
5887
5888 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
5889
5890         timespec: use cast and not conditional, as truncation isn't possible
5891         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
5892         instead of a conditional.  Comment about the situation in more detail.
5893         This undoes most of the 2009-10-29 patch.
5894
5895 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
5896
5897         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
5898         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
5899         * lib/unistr/u8-strchr.c: Likewise.
5900         * modules/unistr/u8-chr: Depend on memchr.
5901
5902         unistr/u*-strchr: add tests
5903         * modules/unistr/u8-strchr-tests: New file.
5904         * modules/unistr/u16-strchr-tests: New file.
5905         * modules/unistr/u32-strchr-tests: New file.
5906         * tests/unistr/test-strchr.h: New file.
5907         * tests/unistr/test-u8-strchr.c: New file.
5908         * tests/unistr/test-u16-strchr.c: New file.
5909         * tests/unistr/test-u32-strchr.c: New file.
5910
5911         unistr/u*-chr: test multibyte sequences more
5912         * tests/unistr/test-chr.h: Do complete testing of the characters in the
5913         test vector.
5914         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
5915         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
5916         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
5917
5918         unistr/u*-chr: test multibyte sequences
5919         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
5920
5921         unistr/u*-chr: prepare for multibyte tests
5922         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
5923         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
5924         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
5925         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
5926         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
5927         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
5928
5929 2010-07-18  Bruno Haible  <bruno@clisp.org>
5930
5931         unistr/u8-strchr: Optimize non-ASCII argument case.
5932         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
5933         because the first byte often matches anyway.
5934         Reported by Pádraig Brady <P@draigbrady.com>.
5935
5936 2010-07-15  Karl Berry  <karl@gnu.org>
5937
5938         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
5939
5940 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
5941
5942         getcwd: on Solaris, work better if ancestors are inaccessible
5943         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
5944         buffer and size, try again with a large buffer.  This works better
5945         on Solaris, since its getcwd succeeds even if the path to the root
5946         is inaccessible, and this is helpful in common cases such as .zfs
5947         hidden directories.  Problem reported by J Chapman Flack in
5948         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
5949         Use system getcwd if it's declared, not merely if it's partly
5950         working; use the partly-working test only to avoid needless effort
5951         if the system getcwd fails.
5952         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
5953         comment that was already obsolete and is now even more obsolete.
5954         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
5955         now might call strdup.
5956
5957 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
5958
5959         pthread: Add enough so that coreutils/src/sort.c compiles.
5960         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
5961         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
5962         gnulib. Include <sched.h> and <time.h>, as per POSIX.
5963         Include <sys/types.h>, in case it defines pthread_t.
5964         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
5965         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
5966         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
5967         (pthread_rwlockattr_t, pthread_spinlock_t):
5968         New typedefs, if HAVE_PTHREAD_T is not defined.
5969         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
5970         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
5971         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
5972         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
5973         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
5974         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
5975         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
5976         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
5977         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
5978         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
5979         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
5980         New macros.
5981         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
5982         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
5983         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
5984         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
5985         (pthread_spin_unlock): New dummy functions.
5986         (pthread_create): Return EAGAIN; don't set errno.
5987         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
5988         require AC_C_INLINE.
5989         * modules/pthread (Depends-on): Add sched, time.
5990         (pthread.h): Use AM_V_GEN.
5991
5992 2010-07-13  Bruno Haible  <bruno@clisp.org>
5993
5994         striconveh: Don't malloc memory if the result buffer is sufficient.
5995         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
5996         buffer if its size is sufficient.
5997         Reported by Ludovic Courtès <ludo@gnu.org>.
5998
5999 2010-07-13  Bruno Haible  <bruno@clisp.org>
6000
6001         strtod: Add safety check.
6002         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6003
6004 2010-07-12  Bruno Haible  <bruno@clisp.org>
6005
6006         Unify tests that set gl_cv_func_ldexpl_no_libm.
6007         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6008         gl_FUNC_LDEXPL.
6009         (gl_FUNC_LDEXPL): Invoke it.
6010         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6011
6012 2010-07-12  Bruno Haible  <bruno@clisp.org>
6013
6014         Unify tests that set gl_cv_func_ldexp_no_libm.
6015         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6016         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6017         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6018         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6019         * modules/strtod (Files): Add m4/ldexp.m4.
6020
6021 2010-07-12  Bruno Haible  <bruno@clisp.org>
6022
6023         Unify tests that set gl_cv_func_frexpl_no_libm.
6024         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6025         gl_FUNC_FREXPL_NO_LIBM.
6026         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6027         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6028
6029 2010-07-12  Bruno Haible  <bruno@clisp.org>
6030
6031         Unify tests that set gl_cv_func_frexp_no_libm.
6032         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6033         gl_FUNC_FREXP_NO_LIBM.
6034         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6035         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6036
6037 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6038
6039         memcoll: clarify sizes versus lengths, document better, and tweak perf
6040         * lib/memcoll.c (strcoll_loop, memcoll0):
6041         Improve quality of descriptive comments.  Name variables
6042         consistently as to whether they are lengths (which do not include
6043         terminating null) versus sizes (which do).
6044         * lib/xmemcoll.c (xmemcoll0): Likewise.
6045         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6046         returned when s1size == 0; this is easier to compile and saves
6047         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6048
6049 2010-07-12  Bruno Haible  <bruno@clisp.org>
6050
6051         Tests for module '_Exit'.
6052         * modules/_Exit-tests: New file.
6053         * tests/test-_Exit.sh: New file.
6054         * tests/test-_Exit.c: New file.
6055
6056         New module '_Exit'.
6057         * lib/stdlib.in.h (__attribute__): New macro.
6058         (_Exit): New declaration.
6059         * lib/_Exit.c: New file.
6060         * m4/_Exit.m4: New file.
6061         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6062         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6063         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6064         * modules/_Exit: New file.
6065         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6066         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6067
6068 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6069
6070         strtod: make it more-accurate typically, and don't require libm
6071         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6072         Include limits.h.  Don't include string.h.
6073         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6074         (locale_isspace): New function, so that no casts are needed to
6075         check whether *s is a space.
6076         (ldexp): Provide an unused dummy if not available.
6077         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6078         (strtod): Use them.  This implementation prefers to use the
6079         underlying strtod if available, falling back on our own code
6080         only to fix known bugs.  This is more likely to produce an
6081         accurate result.  Also, it avoids the use of libm functions.
6082         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6083         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6084         was absent, but it caused a test failure with coreutils.
6085         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6086         with libm.
6087         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6088         * modules/strtod-tests (Makefile.am): Likewise.
6089
6090 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6091             Bruno Haible  <bruno@clisp.org>
6092
6093         unistr/u8-strchr: Optimize ASCII argument case.
6094         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6095
6096 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6097
6098         (x)memcoll: minor tweaks
6099         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6100         is after the type that it qualifies.
6101         (memcoll0): Likewise.
6102         * lib/memcoll.h (memcoll0): Likewise.
6103         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6104         * lib/xmemcoll.h (xmemcoll0): Likewise.
6105         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6106         differs from memcoll in that the NUL byte is part of the argument.
6107         Omit the abort-checks, as performance is a real issue here.  Plus,
6108         the checks were wrong anyway (an off-by-one error).  Omit local
6109         variable 'diff', as it's a bit clearer that way.
6110         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6111         no longer needed.
6112
6113 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6114
6115         (x)memcoll: speedup when input is known to be NUL delimited
6116         * lib/memcoll.c: Include stdlib.
6117         (memcoll0) New function.
6118         (strcoll_loop) New function, refactored for use in both memcoll
6119         and memcoll0.
6120         * lib/memcoll.h: Add prototype for memcoll0.
6121         * lib/xmemcoll.c: (xmemcoll0) New function.
6122         (collate_error) New function, refactored for use in both xmemcoll
6123         and xmemcoll0.
6124         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6125         * m4/memcoll.m4: add inline invocation.
6126
6127 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6128
6129         * build-aux/bootstrap: Remove any local translations
6130         from the translation project synchronization directory,
6131         so that local only translations are not distributed.
6132
6133 2010-07-04  Bruno Haible  <bruno@clisp.org>
6134
6135         fsusage: Clarify which code applies to which platforms.
6136         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6137         platform.
6138         * lib/fsusage.c (get_fs_usage): Likewise.
6139
6140 2010-07-04  Bruno Haible  <bruno@clisp.org>
6141
6142         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6143         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6144         Reported by Martin Lambers <marlam@marlam.de>.
6145
6146 2010-07-04  Jim Meyering  <meyering@redhat.com>
6147
6148         hash: once again explicitly disallow insertion of NULL
6149         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6150         inserting a NULL pointer cannot work with these functions.
6151         Add a comment with details.
6152         This reverts part of the 2010-07-01 commit, 5bef1a35
6153         "hash: extend module to deal with non-pointer keys".
6154
6155 2010-07-01  Bruno Haible  <bruno@clisp.org>
6156
6157         stdbool: Update doc.
6158         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6159         Info from Christian Weisgerber <naddy@mips.inka.de>.
6160
6161 2010-07-01  Jim Meyering  <meyering@redhat.com>
6162
6163         hash: extend module to deal with non-pointer keys
6164         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6165         but that allows insertion of non-pointer entries.
6166         Do not disallow an ENTRY value of NULL.
6167         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6168         * lib/hash.h (hash_insert0): Declare.
6169
6170 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6171
6172         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6173         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6174         not present (i.e. with autoconf 2.59 and when using gettextize, not
6175         gnulib), require AC_GNU_SOURCE instead.
6176
6177 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6178
6179         idpriv-drop: Fix tests.
6180         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6181         not to the test-idpriv-droptemp program.
6182
6183 2010-06-29  Bruno Haible  <bruno@clisp.org>
6184
6185         string: Fix syntax error with g++ 2.96.
6186         * lib/string.in.h (__pure__): Remove definition.
6187         (_GL_ATTRIBUTE_PURE): New macro.
6188         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6189         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6190         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6191
6192 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6193
6194         unitypes: Fix bug introduced on 2010-05-18.
6195         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6196
6197 2010-06-22  Eric Blake  <eblake@redhat.com>
6198
6199         memmem: slight optimization
6200         * lib/str-two-way.h (critical_factorization): Update comments.
6201         Reduce work during factorization phase.
6202         Reported by Carlos Bueno <carlos@bueno.org>.
6203
6204 2010-06-21  Bruno Haible  <bruno@clisp.org>
6205
6206         Fix HAVE_CALLOC_POSIX misnomer.
6207         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6208         !HAVE_CALLOC_POSIX.
6209         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6210         HAVE_CALLOC_POSIX.
6211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6212         instead of HAVE_CALLOC_POSIX.
6213         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6214         HAVE_CALLOC_POSIX.
6215
6216         Use modern idiom for calloc() replacement.
6217         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6218         AC_FUNC_CALLOC.
6219         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6220         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6221         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6222         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6223         (gl_REPLACE_CALLOC): New macro.
6224
6225 2010-06-21  Bruno Haible  <bruno@clisp.org>
6226
6227         Fix HAVE_REALLOC_POSIX misnomer.
6228         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6229         !HAVE_REALLOC_POSIX.
6230         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6231         HAVE_REALLOC_POSIX.
6232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6233         instead of HAVE_REALLOC_POSIX.
6234         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6235         HAVE_REALLOC_POSIX.
6236
6237         Use modern idiom for realloc() replacement.
6238         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6239         AC_FUNC_REALLOC.
6240         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6241         Autoconf's AC_FUNC_REALLOC.
6242         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6243         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6244         (gl_REPLACE_REALLOC): New macro.
6245         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6246
6247 2010-06-21  Bruno Haible  <bruno@clisp.org>
6248
6249         Fix HAVE_MALLOC_POSIX misnomer.
6250         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6251         !HAVE_MALLOC_POSIX.
6252         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6253         HAVE_MALLOC_POSIX.
6254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6255         instead of HAVE_MALLOC_POSIX.
6256         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6257         HAVE_MALLOC_POSIX.
6258
6259         Use modern idiom for malloc() replacement.
6260         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6261         AC_FUNC_MALLOC.
6262         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6263         Autoconf's AC_FUNC_MALLOC.
6264         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6265         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6266         (gl_REPLACE_MALLOC): New macro.
6267         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6268
6269 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6270
6271         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6272         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6273         This macro takes 3 arguments, not 4.
6274
6275 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6276
6277         ipv6: fix detection under mingw
6278         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6279         in6_addr.
6280
6281 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6282
6283         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6284         that strtod() works when cross-compiling to a glibc version known
6285         to work.
6286
6287 2010-06-15  Bruno Haible  <bruno@clisp.org>
6288
6289         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6290
6291 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6292
6293         select: Correct timeout.
6294         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6295
6296 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6297
6298         git-version-gen: init shell var to avoid env var influence
6299         * build-aux/git-version-gen (v): Init shell var to empty.
6300
6301 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6302
6303         priv-set: Don't assume that priv.h exists merely because getppriv does.
6304         See Jan Andersen's bug report about AIX 5L in
6305         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6306         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6307         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6308         * lib/priv-set.h: Likewise.
6309         * tests/test-priv-set.c: Likewise.
6310
6311 2010-06-13  Bruno Haible  <bruno@clisp.org>
6312
6313         relocatable: Make it easier to test whether to install wrappers.
6314         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6315         RELOCATABLE_VIA_WRAPPER.
6316
6317 2010-06-13  Bruno Haible  <bruno@clisp.org>
6318
6319         gnulib-tool: Display specified modules and dependencies differently.
6320         * gnulib-tool (func_show_module_list): New function.
6321         (func_import, func_create_testdir): Invoke it.
6322         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6323
6324 2010-06-13  Bruno Haible  <bruno@clisp.org>
6325
6326         gnulib-tool: Align code of func_import and func_create_testdir.
6327         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6328         specified_modules.
6329
6330 2010-06-12  Jim Meyering  <meyering@redhat.com>
6331
6332         test-inttostr: avoid spurious failure on Solaris 9
6333         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6334         to accept "%ju".  Reported by Bruno Haible.
6335
6336 2010-06-11  Jim Meyering  <meyering@redhat.com>
6337
6338         test-sys_socket: mark variables as used more readably
6339         * tests/test-sys_socket.c (main): Mark otherwise unused variables
6340         as "used" explicitly via (void) statement casts.  This is more
6341         readable than using them in an artificial return expression.
6342         Suggestion from Bruno Haible.
6343
6344 2010-06-11  Bruno Haible  <bruno@clisp.org>
6345
6346         Avoid some more warnings from "gcc -Wwrite-strings".
6347         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
6348         to 'const char *'.
6349         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
6350         * tests/test-c-strcasestr.c (main): Likewise.
6351         * tests/test-mbscasestr1.c (main): Likewise.
6352         * tests/test-mbscasestr2.c (main): Likewise.
6353         * tests/test-memmem.c (main): Likewise.
6354         * tests/test-strstr.c (main): Likewise.
6355         * tests/test-strcasestr.c (main): Likewise.
6356
6357 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6358
6359         init.sh: change framework_failure_ to fail with status 99, not 1
6360         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
6361         automake's parallel-tests rule that this is an unexpected failure,
6362         even if the test is listed in XFAIL_TESTS.
6363
6364 2010-06-11  Jim Meyering  <meyering@redhat.com>
6365
6366         test-inttostr: avoid warnings about 4-6KB literal strings
6367         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6368         Include "macros.h", for its definition of ASSERT.
6369         (CK): s/assert/ASSERT/
6370         * modules/inttostr-tests (Files): Add macros.h.
6371
6372         init.sh: don't use $ME_ or skip_ before they are defined
6373         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6374         their first uses.  Also hoist their companions: warn_, fail_,
6375         framework_failure_, $stderr_fileno.  Prompted by a patch from
6376         Stefano Lattarini.
6377
6378         test-sys_socket: avoid set-but-not-used warnings from gcc
6379         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6380         avoid warning about set-but-not-used variables.
6381
6382         test-xvasprintf: avoid 'const' discard warnings
6383         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6384         "const" when assigning from literal strings.
6385         (test_xasprintf): Add "void" in function argument list to placate
6386         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6387
6388         tests: avoid compilation warnings in argmatch and exclude tests...
6389         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6390         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6391         Since it always exits, declare with the "noreturn" attribute.
6392         * tests/test-argmatch.c: Likewise.
6393
6394         tests: avoid 'const' discard warnings in mbsstr tests
6395         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6396         * tests/test-mbsstr2.c (main): Likewise.
6397
6398         test-verify: avoid warning from gcc's -Wmissing-declarations
6399         * tests/test-verify.c (function): Declare to be static.
6400
6401         test-inttostr.c: include <string.h> for use of strcmp
6402         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6403
6404         test-linkat: avoid failed assertion on "other" architectures
6405         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6406         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6407         sparc: https://bugs.launchpad.net/bugs/591968
6408
6409 2010-06-11  Jim Meyering  <meyering@redhat.com>
6410
6411         printf.m4: avoid autoconf's "Expanded Before Required" warning
6412         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
6413         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
6414         autoconf warning.
6415
6416 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
6417
6418         Replacement header templates are now named with ".in", not "_".
6419         * doc/gnulib-intro.texi: Correct.
6420
6421 2010-06-10  Jim Meyering  <meyering@redhat.com>
6422
6423         inttostr-tests: depend on snprintf, not snprintf-posix
6424         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
6425         snprintf-posix, to avoid this aclocal failure:
6426           missing file gnulib-tests/vasnprintf.c
6427           configure.ac:45: error: expected source file, required through \
6428           AC_LIBSOURCES, not found
6429
6430 2010-06-10  Jim Meyering  <meyering@redhat.com>
6431
6432         inttostr: add a new function, inttostr, and tests
6433         The namesake function was not available.  The existence of the
6434         template file, inttostr.c makes its addition nontrivial.
6435         * lib/anytostr.c: Rename from inttostr.c.
6436         (anytostr): Rename from inttostr.
6437         * lib/inttostr.c: New file.
6438         * modules/inttostr (Files): Add anytostr.c.
6439         (Makefile.am): Set lib_SOURCES instead of ...
6440         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
6441         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
6442         * lib/offtostr.c: Likewise.
6443         * lib/uinttostr.c: Likewise.
6444         * lib/umaxtostr.c: Likewise.
6445         * modules/inttostr-tests: New file.
6446         * tests/test-inttostr.c: New file.  Test these functions.
6447
6448 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
6449             Bruno Haible  <bruno@clisp.org>
6450
6451         Add "Extending Gnulib" chapter to manual.
6452         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
6453         chapter.
6454         (Extending Gnulib): New chapter.
6455         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
6456         chapter.
6457
6458 2010-06-09  Bruno Haible  <bruno@clisp.org>
6459
6460         Avoid relocwrapper link errors due to gnulib replacement functions.
6461         * lib/areadlink.c: Use the system's malloc, realloc functions.
6462         (areadlink): Set errno to ENOMEM explicitly.
6463         * modules/areadlink (Depends-on): Remove malloc-posix.
6464         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6465
6466 2010-06-09  Bruno Haible  <bruno@clisp.org>
6467
6468         Avoid relocwrapper link errors due to gnulib replacement functions.
6469         * lib/canonicalize-lgpl.c: Use the system's malloc function.
6470         * lib/malloca.c: Likewise.
6471         * lib/relocatable.c: Likewise.
6472         * lib/progreloc.c: Use the system's malloc, sprintf functions.
6473         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
6474         * lib/setenv.c: Use the system's malloc, realloc functions.
6475         * lib/strerror.c: Use the system's sprintf function.
6476         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6477
6478 2010-06-04  Bruno Haible  <bruno@clisp.org>
6479
6480         Prefer documented low-level autoconf macro names.
6481         * m4/lib-link.m4: Use m4_translit instead of translit.
6482         * m4/environ.m4: Likewise.
6483         * m4/mathfunc.m4: Likewise.
6484         * m4/onceonly.m4: Likewise.
6485         * m4/stdint.m4: Likewise.
6486         Suggested by Eric Blake.
6487
6488 2010-06-04  Martin Lambers  <marlam@marlam.de>
6489             Bruno Haible  <bruno@clisp.org>
6490
6491         havelib: Allow library names with '+' characters.
6492         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6493         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
6494
6495 2010-06-09  Bruno Haible  <bruno@clisp.org>
6496
6497         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
6498         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
6499         realloc failed.
6500
6501 2010-06-08  Peter Simons  <simons@cryp.to>
6502
6503         maint.mk: make the news-check rule more configurable
6504         * top/maint.mk (news-check-lines-spec) New variable.
6505         (news-check): Use "sed -n 1,10p" in place of "head".
6506
6507 2010-06-07  Jim Meyering  <meyering@redhat.com>
6508
6509         do-release-commit-and-tag: fix typo in --help
6510         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
6511
6512         regex: avoid new dead-code warning with gcc-4.6.0
6513         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
6514         if-block containing a while-loop.  It's been unused for at least
6515         5 years.
6516
6517 2010-06-05  Bruno Haible  <bruno@clisp.org>
6518
6519         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
6520         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
6521
6522 2010-06-04  Bruno Haible  <bruno@clisp.org>
6523
6524         Update to GNU gettext 0.18.1.
6525         * modules/gettext (configure.ac): Require gettext infrastructure from
6526         version 0.18.1.
6527
6528 2010-06-03  Bruno Haible  <bruno@clisp.org>
6529
6530         Don't use AC_LIBOBJ with file names in subdirectories.
6531         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
6532         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
6533         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
6534         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
6535         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
6536         gl_LIBUNISTRING_LIBSOURCE.
6537         (Makefile.am): Augment lib_SOURCES here, conditionally.
6538         * NEWS: Drop requirement for Automake option 'subdir-objects'.
6539
6540 2010-06-03  Bruno Haible  <bruno@clisp.org>
6541
6542         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
6543         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
6544         expansion does not end with a newline.
6545         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
6546         unnecessary newline.
6547
6548 2010-06-03  Bruno Haible  <bruno@clisp.org>
6549
6550         Reduce dependencies.
6551         * tests/test-quotearg.h: New file, extracted from
6552         tests/test-quotearg.c.
6553         * tests/test-quotearg-simple.c: New file, extracted from
6554         tests/test-quotearg.c.
6555         * tests/test-quotearg.c: Don't include <ctype.h>.
6556         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
6557         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
6558         use_quote_double_quotes, use_quotearg_colon): Moved to
6559         tests/test-quotearg.h.
6560         (results_g, flag_results, custom_quotes, custom_results): Moved
6561         to tests/test-quotearg-simple.c.
6562         (main): Moved the part that does not depend on gettext to
6563         tests/test-quotearg-simple.c. Return 77 if the test cannot be
6564         performed.
6565         * modules/quotearg-simple: New file.
6566         * modules/quotearg-simple-tests: New file.
6567         * modules/quotearg (Depends-on): Add quotearg-simple.
6568         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
6569         (Files): Add tests/test-quotearg.h.
6570         Reported by Paolo Bonzini.
6571
6572 2010-06-03  Bruno Haible  <bruno@clisp.org>
6573
6574         Reduce dependencies.
6575         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
6576
6577 2010-06-03  Bruno Haible  <bruno@clisp.org>
6578
6579         time: Undefine more broken macros.
6580         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
6581         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
6582         Reported by Eric Blake.
6583
6584 2010-06-03  Bruno Haible  <bruno@clisp.org>
6585
6586         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
6587         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
6588         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
6589         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
6590         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
6591         Reported by Ludovic Courtès <ludo@gnu.org>.
6592
6593 2010-06-02  Eric Blake  <eblake@redhat.com>
6594
6595         time: work with mingw + pthreads-win32 library
6596         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
6597         if timespec is defined only in pthread.h.
6598         * modules/time (Makefile.am): Substitute it.
6599         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
6600         <pthread.h>, when needed.
6601         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
6602         from the library.
6603
6604 2010-05-31  Bruno Haible  <bruno@clisp.org>
6605
6606         Avoid expanding two macros in the wrong order.
6607         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
6608         gl_LIBUNISTRING if it is defined.
6609         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
6610         autoconf >= 2.64.
6611         Reported by Ludovic Courtès <ludo@gnu.org>.
6612
6613 2010-05-27  Jim Meyering  <meyering@redhat.com>
6614
6615         maint.mk: also prohibit "#undef" of always-defined symbols
6616         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
6617         Allow more than one space before the symbol name.
6618         (sc_prohibit_always-defined_macros): Use grep's -E, now that
6619         the regexp uses alternation.
6620
6621 2010-05-26  Eric Blake  <eblake@redhat.com>
6622
6623         maint.mk: avoid echo -e
6624         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
6625         Convert all uses of echo -* to printf.
6626         Reported by Matthias Bolte.
6627
6628 2010-05-25  Bruno Haible  <bruno@clisp.org>
6629
6630         Update to GNU gettext 0.18, part 2.
6631         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
6632         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
6633
6634 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6635
6636         Add missing include in test-pwrite.c.
6637         * tests/test-pwrite.c: Include string.h, for strcmp.
6638
6639 2010-05-24  Bruno Haible  <bruno@clisp.org>
6640
6641         * NEWS: Mention requirement for Automake option 'subdir-objects'.
6642
6643 2010-05-24  Bruno Haible  <bruno@clisp.org>
6644
6645         Don't use conversion with transliteration in u{8,16,32}_strcoll.
6646         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
6647         iconveh_error argument.
6648         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
6649         U_STRCONV_TO_LOCALE.
6650         * lib/unistr/u16-strcoll.c: Likewise.
6651         * lib/unistr/u32-strcoll.c: Likewise.
6652         * modules/unistr/u8-strcoll (Depends-on): Add
6653         uniconv/u8-strconv-to-enc, localcharset. Remove
6654         uniconv/u8-strconv-to-locale.
6655         (configure.ac): Bump version number.
6656         * modules/unistr/u16-strcoll (Depends-on): Add
6657         uniconv/u16-strconv-to-enc, localcharset. Remove
6658         uniconv/u16-strconv-to-locale.
6659         (configure.ac): Bump version number.
6660         * modules/unistr/u32-strcoll (Depends-on): Add
6661         uniconv/u32-strconv-to-enc, localcharset. Remove
6662         uniconv/u32-strconv-to-locale.
6663         (configure.ac): Bump version number.
6664
6665 2010-05-24  Bruno Haible  <bruno@clisp.org>
6666
6667         Avoid a test failure on NetBSD 5.0.
6668         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
6669         an iconv() bug.
6670
6671 2010-05-24  Bruno Haible  <bruno@clisp.org>
6672
6673         Adjust #include directive style.
6674         * modules/regex (Includes): Recommend to write <regex.h>.
6675
6676 2010-05-24  Bruno Haible  <bruno@clisp.org>
6677
6678         regex: Don't require alloca.
6679         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
6680         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
6681         only inside if (0).
6682
6683 2010-05-23  Jim Meyering  <meyering@redhat.com>
6684
6685         test-renameat.c: include <sys/stat.h>
6686         * tests/test-renameat.c: Include <sys/stat.h>; required for
6687         definition of S_IS* macros.
6688
6689 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
6690
6691         Update maintainer documentation for 'relocatable-prog' module.
6692         * doc/relocatable-maint.texi: Update.
6693         Comments by Bruno Haible.
6694
6695 2010-05-23  Bruno Haible  <bruno@clisp.org>
6696
6697         git-merge-changelog: Enable --split-merged-entry by default.
6698         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
6699         (usage): Don't mention this option any more.
6700         Reported by Ralf Wildenhues.
6701
6702 2010-05-23  Jim Meyering  <meyering@redhat.com>
6703
6704         test-pwrite: do not leave behind a test file named "out"
6705         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
6706         The trivial-looking use of init.sh is really necessary.
6707         It ensures that the temporary file, "out", is created in
6708         a temporary directory, and removed upon termination.
6709         * tests/test-pwrite.sh: Re-add file.
6710         * modules/pwrite-tests: Reference it.
6711
6712 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6713
6714         Fix output redirection buglet in init.sh.
6715         * tests/init.sh: Fix redirection of stderr.
6716
6717 2010-05-20  Simon Josefsson  <simon@josefsson.org>
6718
6719         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
6720
6721 2010-05-17  Simon Josefsson  <simon@josefsson.org>
6722
6723         * modules/valgrind-tests: New file.
6724         * m4/valgrind-tests.m4: New file.
6725         * doc/valgrind-tests.texi: New file.
6726         * doc/gnulib.texi (Running self-tests under valgrind): New
6727         section.
6728
6729 2010-05-19  Bruno Haible  <bruno@clisp.org>
6730
6731         Clean up dead code in recent commit.
6732         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
6733         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
6734         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
6735         Suggested by Paolo Bonzini.
6736
6737 2010-05-19  Bruno Haible  <bruno@clisp.org>
6738
6739         Avoid valgrind error reports from libunistring.
6740         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
6741         * modules/libunistring (Files): Add it.
6742         * modules/libunistring-optional (Files): Likewise.
6743
6744 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
6745             Bruno Haible  <bruno@clisp.org>
6746
6747         New module 'libunistring-optional'.
6748         * modules/libunistring-optional: New file.
6749         * m4/libunistring-base.m4: New file.
6750         * m4/libunistring-optional.m4: New file.
6751         * lib/unicase.in.h: Renamed from lib/unicase.h.
6752         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
6753         * lib/unictype.in.h: Renamed from lib/unictype.h.
6754         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
6755         * lib/uniname.in.h: Renamed from lib/uniname.h.
6756         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
6757         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
6758         * lib/unistr.in.h: Renamed from lib/unistr.h.
6759         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
6760         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
6761         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
6762         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
6763         gl_LIBUNISTRING. If the library was found, determine the installed
6764         version and set LIBUNISTRING_VERSION.
6765         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
6766         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
6767         handle a configuration option --with-included-libunistring.
6768         * modules/libunistring (Files): Add m4/absolute-header.m4.
6769         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
6770         Add m4/libunistring-base.m4.
6771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6772         (Makefile.am): Build unicase.h from unicase.in.h.
6773         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
6774         Add m4/libunistring-base.m4.
6775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6776         (Makefile.am): Build uniconv.h from uniconv.in.h.
6777         * modules/unictype/base (Files): Use unictype.in.h instead of
6778         unictype.h. Add m4/libunistring-base.m4.
6779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6780         (Makefile.am): Build unictype.h from unictype.in.h.
6781         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
6782         Add m4/libunistring-base.m4.
6783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6784         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
6785         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
6786         Add m4/libunistring-base.m4.
6787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6788         (Makefile.am): Build uniname.h from uniname.in.h.
6789         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
6790         Add m4/libunistring-base.m4.
6791         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6792         (Makefile.am): Build uninorm.h from uninorm.in.h.
6793         * modules/unistdio/base (Files): Use unistdio.in.h instead of
6794         unistdio.h. Add m4/libunistring-base.m4.
6795         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6796         (Makefile.am): Build unistdio.h from unistdio.in.h.
6797         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
6798         Add m4/libunistring-base.m4.
6799         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6800         (Makefile.am): Build unistr.h from unistr.in.h.
6801         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
6802         Add m4/libunistring-base.m4.
6803         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6804         (Makefile.am): Build unitypes.h from unitypes.in.h.
6805         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
6806         Add m4/libunistring-base.m4.
6807         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6808         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
6809         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
6810         uniwidth.h. Add m4/libunistring-base.m4.
6811         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6812         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
6813         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
6814         instead of augmenting lib_SOURCES.
6815         * modules/unicase/empty-suffix-context: Likewise.
6816         * modules/unicase/locale-language: Likewise.
6817         * modules/unicase/tolower: Likewise.
6818         * modules/unicase/totitle: Likewise.
6819         * modules/unicase/toupper: Likewise.
6820         * modules/unicase/u8-casecmp: Likewise.
6821         * modules/unicase/u8-casecoll: Likewise.
6822         * modules/unicase/u8-casefold: Likewise.
6823         * modules/unicase/u8-casexfrm: Likewise.
6824         * modules/unicase/u8-ct-casefold: Likewise.
6825         * modules/unicase/u8-ct-tolower: Likewise.
6826         * modules/unicase/u8-ct-totitle: Likewise.
6827         * modules/unicase/u8-ct-toupper: Likewise.
6828         * modules/unicase/u8-is-cased: Likewise.
6829         * modules/unicase/u8-is-casefolded: Likewise.
6830         * modules/unicase/u8-is-lowercase: Likewise.
6831         * modules/unicase/u8-is-titlecase: Likewise.
6832         * modules/unicase/u8-is-uppercase: Likewise.
6833         * modules/unicase/u8-prefix-context: Likewise.
6834         * modules/unicase/u8-suffix-context: Likewise.
6835         * modules/unicase/u8-tolower: Likewise.
6836         * modules/unicase/u8-totitle: Likewise.
6837         * modules/unicase/u8-toupper: Likewise.
6838         * modules/unicase/u16-casecmp: Likewise.
6839         * modules/unicase/u16-casecoll: Likewise.
6840         * modules/unicase/u16-casefold: Likewise.
6841         * modules/unicase/u16-casexfrm: Likewise.
6842         * modules/unicase/u16-ct-casefold: Likewise.
6843         * modules/unicase/u16-ct-tolower: Likewise.
6844         * modules/unicase/u16-ct-totitle: Likewise.
6845         * modules/unicase/u16-ct-toupper: Likewise.
6846         * modules/unicase/u16-is-cased: Likewise.
6847         * modules/unicase/u16-is-casefolded: Likewise.
6848         * modules/unicase/u16-is-lowercase: Likewise.
6849         * modules/unicase/u16-is-titlecase: Likewise.
6850         * modules/unicase/u16-is-uppercase: Likewise.
6851         * modules/unicase/u16-prefix-context: Likewise.
6852         * modules/unicase/u16-suffix-context: Likewise.
6853         * modules/unicase/u16-tolower: Likewise.
6854         * modules/unicase/u16-totitle: Likewise.
6855         * modules/unicase/u16-toupper: Likewise.
6856         * modules/unicase/u32-casecmp: Likewise.
6857         * modules/unicase/u32-casecoll: Likewise.
6858         * modules/unicase/u32-casefold: Likewise.
6859         * modules/unicase/u32-casexfrm: Likewise.
6860         * modules/unicase/u32-ct-casefold: Likewise.
6861         * modules/unicase/u32-ct-tolower: Likewise.
6862         * modules/unicase/u32-ct-totitle: Likewise.
6863         * modules/unicase/u32-ct-toupper: Likewise.
6864         * modules/unicase/u32-is-cased: Likewise.
6865         * modules/unicase/u32-is-casefolded: Likewise.
6866         * modules/unicase/u32-is-lowercase: Likewise.
6867         * modules/unicase/u32-is-titlecase: Likewise.
6868         * modules/unicase/u32-is-uppercase: Likewise.
6869         * modules/unicase/u32-prefix-context: Likewise.
6870         * modules/unicase/u32-suffix-context: Likewise.
6871         * modules/unicase/u32-tolower: Likewise.
6872         * modules/unicase/u32-totitle: Likewise.
6873         * modules/unicase/u32-toupper: Likewise.
6874         * modules/unicase/ulc-casecmp: Likewise.
6875         * modules/unicase/ulc-casecoll: Likewise.
6876         * modules/unicase/ulc-casexfrm: Likewise.
6877         * modules/uniconv/u8-conv-from-enc: Likewise.
6878         * modules/uniconv/u8-conv-to-enc: Likewise.
6879         * modules/uniconv/u8-strconv-from-enc: Likewise.
6880         * modules/uniconv/u8-strconv-from-locale: Likewise.
6881         * modules/uniconv/u8-strconv-to-enc: Likewise.
6882         * modules/uniconv/u8-strconv-to-locale: Likewise.
6883         * modules/uniconv/u16-conv-from-enc: Likewise.
6884         * modules/uniconv/u16-conv-to-enc: Likewise.
6885         * modules/uniconv/u16-strconv-from-enc: Likewise.
6886         * modules/uniconv/u16-strconv-from-locale: Likewise.
6887         * modules/uniconv/u16-strconv-to-enc: Likewise.
6888         * modules/uniconv/u16-strconv-to-locale: Likewise.
6889         * modules/uniconv/u32-conv-from-enc: Likewise.
6890         * modules/uniconv/u32-conv-to-enc: Likewise.
6891         * modules/uniconv/u32-strconv-from-enc: Likewise.
6892         * modules/uniconv/u32-strconv-from-locale: Likewise.
6893         * modules/uniconv/u32-strconv-to-enc: Likewise.
6894         * modules/uniconv/u32-strconv-to-locale: Likewise.
6895         * modules/unictype/bidicategory-byname: Likewise.
6896         * modules/unictype/bidicategory-name: Likewise.
6897         * modules/unictype/bidicategory-of: Likewise.
6898         * modules/unictype/bidicategory-test: Likewise.
6899         * modules/unictype/block-list: Likewise.
6900         * modules/unictype/block-test: Likewise.
6901         * modules/unictype/category-C: Likewise.
6902         * modules/unictype/category-Cc: Likewise.
6903         * modules/unictype/category-Cf: Likewise.
6904         * modules/unictype/category-Cn: Likewise.
6905         * modules/unictype/category-Co: Likewise.
6906         * modules/unictype/category-Cs: Likewise.
6907         * modules/unictype/category-L: Likewise.
6908         * modules/unictype/category-Ll: Likewise.
6909         * modules/unictype/category-Lm: Likewise.
6910         * modules/unictype/category-Lo: Likewise.
6911         * modules/unictype/category-Lt: Likewise.
6912         * modules/unictype/category-Lu: Likewise.
6913         * modules/unictype/category-M: Likewise.
6914         * modules/unictype/category-Mc: Likewise.
6915         * modules/unictype/category-Me: Likewise.
6916         * modules/unictype/category-Mn: Likewise.
6917         * modules/unictype/category-N: Likewise.
6918         * modules/unictype/category-Nd: Likewise.
6919         * modules/unictype/category-Nl: Likewise.
6920         * modules/unictype/category-No: Likewise.
6921         * modules/unictype/category-P: Likewise.
6922         * modules/unictype/category-Pc: Likewise.
6923         * modules/unictype/category-Pd: Likewise.
6924         * modules/unictype/category-Pe: Likewise.
6925         * modules/unictype/category-Pf: Likewise.
6926         * modules/unictype/category-Pi: Likewise.
6927         * modules/unictype/category-Po: Likewise.
6928         * modules/unictype/category-Ps: Likewise.
6929         * modules/unictype/category-S: Likewise.
6930         * modules/unictype/category-Sc: Likewise.
6931         * modules/unictype/category-Sk: Likewise.
6932         * modules/unictype/category-Sm: Likewise.
6933         * modules/unictype/category-So: Likewise.
6934         * modules/unictype/category-Z: Likewise.
6935         * modules/unictype/category-Zl: Likewise.
6936         * modules/unictype/category-Zp: Likewise.
6937         * modules/unictype/category-Zs: Likewise.
6938         * modules/unictype/category-and: Likewise.
6939         * modules/unictype/category-and-not: Likewise.
6940         * modules/unictype/category-byname: Likewise.
6941         * modules/unictype/category-name: Likewise.
6942         * modules/unictype/category-none: Likewise.
6943         * modules/unictype/category-of: Likewise.
6944         * modules/unictype/category-or: Likewise.
6945         * modules/unictype/category-test: Likewise.
6946         * modules/unictype/combining-class: Likewise.
6947         * modules/unictype/ctype-alnum: Likewise.
6948         * modules/unictype/ctype-alpha: Likewise.
6949         * modules/unictype/ctype-blank: Likewise.
6950         * modules/unictype/ctype-cntrl: Likewise.
6951         * modules/unictype/ctype-digit: Likewise.
6952         * modules/unictype/ctype-graph: Likewise.
6953         * modules/unictype/ctype-lower: Likewise.
6954         * modules/unictype/ctype-print: Likewise.
6955         * modules/unictype/ctype-punct: Likewise.
6956         * modules/unictype/ctype-space: Likewise.
6957         * modules/unictype/ctype-upper: Likewise.
6958         * modules/unictype/ctype-xdigit: Likewise.
6959         * modules/unictype/decimal-digit: Likewise.
6960         * modules/unictype/digit: Likewise.
6961         * modules/unictype/mirror: Likewise.
6962         * modules/unictype/numeric: Likewise.
6963         * modules/unictype/property-alphabetic: Likewise.
6964         * modules/unictype/property-ascii-hex-digit: Likewise.
6965         * modules/unictype/property-bidi-arabic-digit: Likewise.
6966         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
6967         * modules/unictype/property-bidi-block-separator: Likewise.
6968         * modules/unictype/property-bidi-boundary-neutral: Likewise.
6969         * modules/unictype/property-bidi-common-separator: Likewise.
6970         * modules/unictype/property-bidi-control: Likewise.
6971         * modules/unictype/property-bidi-embedding-or-override: Likewise.
6972         * modules/unictype/property-bidi-eur-num-separator: Likewise.
6973         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
6974         * modules/unictype/property-bidi-european-digit: Likewise.
6975         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
6976         * modules/unictype/property-bidi-left-to-right: Likewise.
6977         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
6978         * modules/unictype/property-bidi-other-neutral: Likewise.
6979         * modules/unictype/property-bidi-pdf: Likewise.
6980         * modules/unictype/property-bidi-segment-separator: Likewise.
6981         * modules/unictype/property-bidi-whitespace: Likewise.
6982         * modules/unictype/property-byname: Likewise.
6983         * modules/unictype/property-combining: Likewise.
6984         * modules/unictype/property-composite: Likewise.
6985         * modules/unictype/property-currency-symbol: Likewise.
6986         * modules/unictype/property-dash: Likewise.
6987         * modules/unictype/property-decimal-digit: Likewise.
6988         * modules/unictype/property-default-ignorable-code-point: Likewise.
6989         * modules/unictype/property-deprecated: Likewise.
6990         * modules/unictype/property-diacritic: Likewise.
6991         * modules/unictype/property-extender: Likewise.
6992         * modules/unictype/property-format-control: Likewise.
6993         * modules/unictype/property-grapheme-base: Likewise.
6994         * modules/unictype/property-grapheme-extend: Likewise.
6995         * modules/unictype/property-grapheme-link: Likewise.
6996         * modules/unictype/property-hex-digit: Likewise.
6997         * modules/unictype/property-hyphen: Likewise.
6998         * modules/unictype/property-id-continue: Likewise.
6999         * modules/unictype/property-id-start: Likewise.
7000         * modules/unictype/property-ideographic: Likewise.
7001         * modules/unictype/property-ids-binary-operator: Likewise.
7002         * modules/unictype/property-ids-trinary-operator: Likewise.
7003         * modules/unictype/property-ignorable-control: Likewise.
7004         * modules/unictype/property-iso-control: Likewise.
7005         * modules/unictype/property-join-control: Likewise.
7006         * modules/unictype/property-left-of-pair: Likewise.
7007         * modules/unictype/property-line-separator: Likewise.
7008         * modules/unictype/property-logical-order-exception: Likewise.
7009         * modules/unictype/property-lowercase: Likewise.
7010         * modules/unictype/property-math: Likewise.
7011         * modules/unictype/property-non-break: Likewise.
7012         * modules/unictype/property-not-a-character: Likewise.
7013         * modules/unictype/property-numeric: Likewise.
7014         * modules/unictype/property-other-alphabetic: Likewise.
7015         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7016         * modules/unictype/property-other-grapheme-extend: Likewise.
7017         * modules/unictype/property-other-id-continue: Likewise.
7018         * modules/unictype/property-other-id-start: Likewise.
7019         * modules/unictype/property-other-lowercase: Likewise.
7020         * modules/unictype/property-other-math: Likewise.
7021         * modules/unictype/property-other-uppercase: Likewise.
7022         * modules/unictype/property-paired-punctuation: Likewise.
7023         * modules/unictype/property-paragraph-separator: Likewise.
7024         * modules/unictype/property-pattern-syntax: Likewise.
7025         * modules/unictype/property-pattern-white-space: Likewise.
7026         * modules/unictype/property-private-use: Likewise.
7027         * modules/unictype/property-punctuation: Likewise.
7028         * modules/unictype/property-quotation-mark: Likewise.
7029         * modules/unictype/property-radical: Likewise.
7030         * modules/unictype/property-sentence-terminal: Likewise.
7031         * modules/unictype/property-soft-dotted: Likewise.
7032         * modules/unictype/property-space: Likewise.
7033         * modules/unictype/property-terminal-punctuation: Likewise.
7034         * modules/unictype/property-test: Likewise.
7035         * modules/unictype/property-titlecase: Likewise.
7036         * modules/unictype/property-unassigned-code-value: Likewise.
7037         * modules/unictype/property-unified-ideograph: Likewise.
7038         * modules/unictype/property-uppercase: Likewise.
7039         * modules/unictype/property-variation-selector: Likewise.
7040         * modules/unictype/property-white-space: Likewise.
7041         * modules/unictype/property-xid-continue: Likewise.
7042         * modules/unictype/property-xid-start: Likewise.
7043         * modules/unictype/property-zero-width: Likewise.
7044         * modules/unictype/scripts: Likewise.
7045         * modules/unictype/syntax-c-ident: Likewise.
7046         * modules/unictype/syntax-c-whitespace: Likewise.
7047         * modules/unictype/syntax-java-ident: Likewise.
7048         * modules/unictype/syntax-java-whitespace: Likewise.
7049         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7050         * modules/unilbrk/u8-width-linebreaks: Likewise.
7051         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7052         * modules/unilbrk/u16-width-linebreaks: Likewise.
7053         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7054         * modules/unilbrk/u32-width-linebreaks: Likewise.
7055         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7056         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7057         * modules/uniname/uniname: Likewise.
7058         * modules/uninorm/canonical-decomposition: Likewise.
7059         * modules/uninorm/composition: Likewise.
7060         * modules/uninorm/decomposing-form: Likewise.
7061         * modules/uninorm/decomposition: Likewise.
7062         * modules/uninorm/filter: Likewise.
7063         * modules/uninorm/nfc: Likewise.
7064         * modules/uninorm/nfd: Likewise.
7065         * modules/uninorm/nfkc: Likewise.
7066         * modules/uninorm/nfkd: Likewise.
7067         * modules/uninorm/u8-normalize: Likewise.
7068         * modules/uninorm/u8-normcmp: Likewise.
7069         * modules/uninorm/u8-normcoll: Likewise.
7070         * modules/uninorm/u8-normxfrm: Likewise.
7071         * modules/uninorm/u16-normalize: Likewise.
7072         * modules/uninorm/u16-normcmp: Likewise.
7073         * modules/uninorm/u16-normcoll: Likewise.
7074         * modules/uninorm/u16-normxfrm: Likewise.
7075         * modules/uninorm/u32-normalize: Likewise.
7076         * modules/uninorm/u32-normcmp: Likewise.
7077         * modules/uninorm/u32-normcoll: Likewise.
7078         * modules/uninorm/u32-normxfrm: Likewise.
7079         * modules/unistdio/u8-asnprintf: Likewise.
7080         * modules/unistdio/u8-asprintf: Likewise.
7081         * modules/unistdio/u8-snprintf: Likewise.
7082         * modules/unistdio/u8-sprintf: Likewise.
7083         * modules/unistdio/u8-u8-asnprintf: Likewise.
7084         * modules/unistdio/u8-u8-asprintf: Likewise.
7085         * modules/unistdio/u8-u8-snprintf: Likewise.
7086         * modules/unistdio/u8-u8-sprintf: Likewise.
7087         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7088         * modules/unistdio/u8-u8-vasprintf: Likewise.
7089         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7090         * modules/unistdio/u8-u8-vsprintf: Likewise.
7091         * modules/unistdio/u8-vasnprintf: Likewise.
7092         * modules/unistdio/u8-vasprintf: Likewise.
7093         * modules/unistdio/u8-vsnprintf: Likewise.
7094         * modules/unistdio/u8-vsprintf: Likewise.
7095         * modules/unistdio/u16-asnprintf: Likewise.
7096         * modules/unistdio/u16-asprintf: Likewise.
7097         * modules/unistdio/u16-snprintf: Likewise.
7098         * modules/unistdio/u16-sprintf: Likewise.
7099         * modules/unistdio/u16-u16-asnprintf: Likewise.
7100         * modules/unistdio/u16-u16-asprintf: Likewise.
7101         * modules/unistdio/u16-u16-snprintf: Likewise.
7102         * modules/unistdio/u16-u16-sprintf: Likewise.
7103         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7104         * modules/unistdio/u16-u16-vasprintf: Likewise.
7105         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7106         * modules/unistdio/u16-u16-vsprintf: Likewise.
7107         * modules/unistdio/u16-vasnprintf: Likewise.
7108         * modules/unistdio/u16-vasprintf: Likewise.
7109         * modules/unistdio/u16-vsnprintf: Likewise.
7110         * modules/unistdio/u16-vsprintf: Likewise.
7111         * modules/unistdio/u32-asnprintf: Likewise.
7112         * modules/unistdio/u32-asprintf: Likewise.
7113         * modules/unistdio/u32-snprintf: Likewise.
7114         * modules/unistdio/u32-sprintf: Likewise.
7115         * modules/unistdio/u32-u32-asnprintf: Likewise.
7116         * modules/unistdio/u32-u32-asprintf: Likewise.
7117         * modules/unistdio/u32-u32-snprintf: Likewise.
7118         * modules/unistdio/u32-u32-sprintf: Likewise.
7119         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7120         * modules/unistdio/u32-u32-vasprintf: Likewise.
7121         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7122         * modules/unistdio/u32-u32-vsprintf: Likewise.
7123         * modules/unistdio/u32-vasnprintf: Likewise.
7124         * modules/unistdio/u32-vasprintf: Likewise.
7125         * modules/unistdio/u32-vsnprintf: Likewise.
7126         * modules/unistdio/u32-vsprintf: Likewise.
7127         * modules/unistdio/ulc-asnprintf: Likewise.
7128         * modules/unistdio/ulc-asprintf: Likewise.
7129         * modules/unistdio/ulc-fprintf: Likewise.
7130         * modules/unistdio/ulc-snprintf: Likewise.
7131         * modules/unistdio/ulc-sprintf: Likewise.
7132         * modules/unistdio/ulc-vasnprintf: Likewise.
7133         * modules/unistdio/ulc-vasprintf: Likewise.
7134         * modules/unistdio/ulc-vfprintf: Likewise.
7135         * modules/unistdio/ulc-vsnprintf: Likewise.
7136         * modules/unistdio/ulc-vsprintf: Likewise.
7137         * modules/unistr/u8-check: Likewise.
7138         * modules/unistr/u8-chr: Likewise.
7139         * modules/unistr/u8-cmp: Likewise.
7140         * modules/unistr/u8-cmp2: Likewise.
7141         * modules/unistr/u8-cpy: Likewise.
7142         * modules/unistr/u8-cpy-alloc: Likewise.
7143         * modules/unistr/u8-endswith: Likewise.
7144         * modules/unistr/u8-mblen: Likewise.
7145         * modules/unistr/u8-mbsnlen: Likewise.
7146         * modules/unistr/u8-mbtouc: Likewise.
7147         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7148         * modules/unistr/u8-mbtoucr: Likewise.
7149         * modules/unistr/u8-move: Likewise.
7150         * modules/unistr/u8-next: Likewise.
7151         * modules/unistr/u8-prev: Likewise.
7152         * modules/unistr/u8-set: Likewise.
7153         * modules/unistr/u8-startswith: Likewise.
7154         * modules/unistr/u8-stpcpy: Likewise.
7155         * modules/unistr/u8-stpncpy: Likewise.
7156         * modules/unistr/u8-strcat: Likewise.
7157         * modules/unistr/u8-strchr: Likewise.
7158         * modules/unistr/u8-strcmp: Likewise.
7159         * modules/unistr/u8-strcoll: Likewise.
7160         * modules/unistr/u8-strcpy: Likewise.
7161         * modules/unistr/u8-strcspn: Likewise.
7162         * modules/unistr/u8-strdup: Likewise.
7163         * modules/unistr/u8-strlen: Likewise.
7164         * modules/unistr/u8-strmblen: Likewise.
7165         * modules/unistr/u8-strmbtouc: Likewise.
7166         * modules/unistr/u8-strncat: Likewise.
7167         * modules/unistr/u8-strncmp: Likewise.
7168         * modules/unistr/u8-strncpy: Likewise.
7169         * modules/unistr/u8-strnlen: Likewise.
7170         * modules/unistr/u8-strpbrk: Likewise.
7171         * modules/unistr/u8-strrchr: Likewise.
7172         * modules/unistr/u8-strspn: Likewise.
7173         * modules/unistr/u8-strstr: Likewise.
7174         * modules/unistr/u8-strtok: Likewise.
7175         * modules/unistr/u8-to-u16: Likewise.
7176         * modules/unistr/u8-to-u32: Likewise.
7177         * modules/unistr/u8-uctomb: Likewise.
7178         * modules/unistr/u16-check: Likewise.
7179         * modules/unistr/u16-chr: Likewise.
7180         * modules/unistr/u16-cmp: Likewise.
7181         * modules/unistr/u16-cmp2: Likewise.
7182         * modules/unistr/u16-cpy: Likewise.
7183         * modules/unistr/u16-cpy-alloc: Likewise.
7184         * modules/unistr/u16-endswith: Likewise.
7185         * modules/unistr/u16-mblen: Likewise.
7186         * modules/unistr/u16-mbsnlen: Likewise.
7187         * modules/unistr/u16-mbtouc: Likewise.
7188         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7189         * modules/unistr/u16-mbtoucr: Likewise.
7190         * modules/unistr/u16-move: Likewise.
7191         * modules/unistr/u16-next: Likewise.
7192         * modules/unistr/u16-prev: Likewise.
7193         * modules/unistr/u16-set: Likewise.
7194         * modules/unistr/u16-startswith: Likewise.
7195         * modules/unistr/u16-stpcpy: Likewise.
7196         * modules/unistr/u16-stpncpy: Likewise.
7197         * modules/unistr/u16-strcat: Likewise.
7198         * modules/unistr/u16-strchr: Likewise.
7199         * modules/unistr/u16-strcmp: Likewise.
7200         * modules/unistr/u16-strcoll: Likewise.
7201         * modules/unistr/u16-strcpy: Likewise.
7202         * modules/unistr/u16-strcspn: Likewise.
7203         * modules/unistr/u16-strdup: Likewise.
7204         * modules/unistr/u16-strlen: Likewise.
7205         * modules/unistr/u16-strmblen: Likewise.
7206         * modules/unistr/u16-strmbtouc: Likewise.
7207         * modules/unistr/u16-strncat: Likewise.
7208         * modules/unistr/u16-strncmp: Likewise.
7209         * modules/unistr/u16-strncpy: Likewise.
7210         * modules/unistr/u16-strnlen: Likewise.
7211         * modules/unistr/u16-strpbrk: Likewise.
7212         * modules/unistr/u16-strrchr: Likewise.
7213         * modules/unistr/u16-strspn: Likewise.
7214         * modules/unistr/u16-strstr: Likewise.
7215         * modules/unistr/u16-strtok: Likewise.
7216         * modules/unistr/u16-to-u32: Likewise.
7217         * modules/unistr/u16-to-u8: Likewise.
7218         * modules/unistr/u16-uctomb: Likewise.
7219         * modules/unistr/u32-check: Likewise.
7220         * modules/unistr/u32-chr: Likewise.
7221         * modules/unistr/u32-cmp: Likewise.
7222         * modules/unistr/u32-cmp2: Likewise.
7223         * modules/unistr/u32-cpy: Likewise.
7224         * modules/unistr/u32-cpy-alloc: Likewise.
7225         * modules/unistr/u32-endswith: Likewise.
7226         * modules/unistr/u32-mblen: Likewise.
7227         * modules/unistr/u32-mbsnlen: Likewise.
7228         * modules/unistr/u32-mbtouc: Likewise.
7229         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7230         * modules/unistr/u32-mbtoucr: Likewise.
7231         * modules/unistr/u32-move: Likewise.
7232         * modules/unistr/u32-next: Likewise.
7233         * modules/unistr/u32-prev: Likewise.
7234         * modules/unistr/u32-set: Likewise.
7235         * modules/unistr/u32-startswith: Likewise.
7236         * modules/unistr/u32-stpcpy: Likewise.
7237         * modules/unistr/u32-stpncpy: Likewise.
7238         * modules/unistr/u32-strcat: Likewise.
7239         * modules/unistr/u32-strchr: Likewise.
7240         * modules/unistr/u32-strcmp: Likewise.
7241         * modules/unistr/u32-strcoll: Likewise.
7242         * modules/unistr/u32-strcpy: Likewise.
7243         * modules/unistr/u32-strcspn: Likewise.
7244         * modules/unistr/u32-strdup: Likewise.
7245         * modules/unistr/u32-strlen: Likewise.
7246         * modules/unistr/u32-strmblen: Likewise.
7247         * modules/unistr/u32-strmbtouc: Likewise.
7248         * modules/unistr/u32-strncat: Likewise.
7249         * modules/unistr/u32-strncmp: Likewise.
7250         * modules/unistr/u32-strncpy: Likewise.
7251         * modules/unistr/u32-strnlen: Likewise.
7252         * modules/unistr/u32-strpbrk: Likewise.
7253         * modules/unistr/u32-strrchr: Likewise.
7254         * modules/unistr/u32-strspn: Likewise.
7255         * modules/unistr/u32-strstr: Likewise.
7256         * modules/unistr/u32-strtok: Likewise.
7257         * modules/unistr/u32-to-u16: Likewise.
7258         * modules/unistr/u32-to-u8: Likewise.
7259         * modules/unistr/u32-uctomb: Likewise.
7260         * modules/uniwbrk/u8-wordbreaks: Likewise.
7261         * modules/uniwbrk/u16-wordbreaks: Likewise.
7262         * modules/uniwbrk/u32-wordbreaks: Likewise.
7263         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7264         * modules/uniwbrk/wordbreak-property: Likewise.
7265         * modules/uniwidth/u8-strwidth: Likewise.
7266         * modules/uniwidth/u8-width: Likewise.
7267         * modules/uniwidth/u16-strwidth: Likewise.
7268         * modules/uniwidth/u16-width: Likewise.
7269         * modules/uniwidth/u32-strwidth: Likewise.
7270         * modules/uniwidth/u32-width: Likewise.
7271         * modules/uniwidth/width: Likewise.
7272         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7273         with $(LIBUNISTRING).
7274         * modules/unicase/ignorable-tests: Likewise.
7275         * modules/unicase/locale-language-tests: Likewise.
7276         * modules/unicase/tolower-tests: Likewise.
7277         * modules/unicase/totitle-tests: Likewise.
7278         * modules/unicase/toupper-tests: Likewise.
7279         * modules/unicase/u8-casecmp-tests: Likewise.
7280         * modules/unicase/u8-casecoll-tests: Likewise.
7281         * modules/unicase/u8-casefold-tests: Likewise.
7282         * modules/unicase/u8-is-cased-tests: Likewise.
7283         * modules/unicase/u8-is-casefolded-tests: Likewise.
7284         * modules/unicase/u8-is-lowercase-tests: Likewise.
7285         * modules/unicase/u8-is-titlecase-tests: Likewise.
7286         * modules/unicase/u8-is-uppercase-tests: Likewise.
7287         * modules/unicase/u8-tolower-tests: Likewise.
7288         * modules/unicase/u8-totitle-tests: Likewise.
7289         * modules/unicase/u8-toupper-tests: Likewise.
7290         * modules/unicase/u16-casecmp-tests: Likewise.
7291         * modules/unicase/u16-casecoll-tests: Likewise.
7292         * modules/unicase/u16-casefold-tests: Likewise.
7293         * modules/unicase/u16-is-cased-tests: Likewise.
7294         * modules/unicase/u16-is-casefolded-tests: Likewise.
7295         * modules/unicase/u16-is-lowercase-tests: Likewise.
7296         * modules/unicase/u16-is-titlecase-tests: Likewise.
7297         * modules/unicase/u16-is-uppercase-tests: Likewise.
7298         * modules/unicase/u16-tolower-tests: Likewise.
7299         * modules/unicase/u16-totitle-tests: Likewise.
7300         * modules/unicase/u16-toupper-tests: Likewise.
7301         * modules/unicase/u32-casecmp-tests: Likewise.
7302         * modules/unicase/u32-casecoll-tests: Likewise.
7303         * modules/unicase/u32-casefold-tests: Likewise.
7304         * modules/unicase/u32-is-cased-tests: Likewise.
7305         * modules/unicase/u32-is-casefolded-tests: Likewise.
7306         * modules/unicase/u32-is-lowercase-tests: Likewise.
7307         * modules/unicase/u32-is-titlecase-tests: Likewise.
7308         * modules/unicase/u32-is-uppercase-tests: Likewise.
7309         * modules/unicase/u32-tolower-tests: Likewise.
7310         * modules/unicase/u32-totitle-tests: Likewise.
7311         * modules/unicase/u32-toupper-tests: Likewise.
7312         * modules/unicase/ulc-casecmp-tests: Likewise.
7313         * modules/unicase/ulc-casecoll-tests: Likewise.
7314         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7315         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7316         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7317         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7318         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7319         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7320         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7321         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7322         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7323         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7324         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7325         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7326         * modules/unictype/bidicategory-byname-tests: Likewise.
7327         * modules/unictype/bidicategory-name-tests: Likewise.
7328         * modules/unictype/bidicategory-of-tests: Likewise.
7329         * modules/unictype/bidicategory-test-tests: Likewise.
7330         * modules/unictype/block-list-tests: Likewise.
7331         * modules/unictype/block-of-tests: Likewise.
7332         * modules/unictype/block-test-tests: Likewise.
7333         * modules/unictype/category-C-tests: Likewise.
7334         * modules/unictype/category-Cc-tests: Likewise.
7335         * modules/unictype/category-Cf-tests: Likewise.
7336         * modules/unictype/category-Cn-tests: Likewise.
7337         * modules/unictype/category-Co-tests: Likewise.
7338         * modules/unictype/category-Cs-tests: Likewise.
7339         * modules/unictype/category-L-tests: Likewise.
7340         * modules/unictype/category-Ll-tests: Likewise.
7341         * modules/unictype/category-Lm-tests: Likewise.
7342         * modules/unictype/category-Lo-tests: Likewise.
7343         * modules/unictype/category-Lt-tests: Likewise.
7344         * modules/unictype/category-Lu-tests: Likewise.
7345         * modules/unictype/category-M-tests: Likewise.
7346         * modules/unictype/category-Mc-tests: Likewise.
7347         * modules/unictype/category-Me-tests: Likewise.
7348         * modules/unictype/category-Mn-tests: Likewise.
7349         * modules/unictype/category-N-tests: Likewise.
7350         * modules/unictype/category-Nd-tests: Likewise.
7351         * modules/unictype/category-Nl-tests: Likewise.
7352         * modules/unictype/category-No-tests: Likewise.
7353         * modules/unictype/category-P-tests: Likewise.
7354         * modules/unictype/category-Pc-tests: Likewise.
7355         * modules/unictype/category-Pd-tests: Likewise.
7356         * modules/unictype/category-Pe-tests: Likewise.
7357         * modules/unictype/category-Pf-tests: Likewise.
7358         * modules/unictype/category-Pi-tests: Likewise.
7359         * modules/unictype/category-Po-tests: Likewise.
7360         * modules/unictype/category-Ps-tests: Likewise.
7361         * modules/unictype/category-S-tests: Likewise.
7362         * modules/unictype/category-Sc-tests: Likewise.
7363         * modules/unictype/category-Sk-tests: Likewise.
7364         * modules/unictype/category-Sm-tests: Likewise.
7365         * modules/unictype/category-So-tests: Likewise.
7366         * modules/unictype/category-Z-tests: Likewise.
7367         * modules/unictype/category-Zl-tests: Likewise.
7368         * modules/unictype/category-Zp-tests: Likewise.
7369         * modules/unictype/category-Zs-tests: Likewise.
7370         * modules/unictype/category-and-not-tests: Likewise.
7371         * modules/unictype/category-and-tests: Likewise.
7372         * modules/unictype/category-byname-tests: Likewise.
7373         * modules/unictype/category-name-tests: Likewise.
7374         * modules/unictype/category-none-tests: Likewise.
7375         * modules/unictype/category-of-tests: Likewise.
7376         * modules/unictype/category-or-tests: Likewise.
7377         * modules/unictype/category-test-withtable-tests: Likewise.
7378         * modules/unictype/combining-class-tests: Likewise.
7379         * modules/unictype/ctype-alnum-tests: Likewise.
7380         * modules/unictype/ctype-alpha-tests: Likewise.
7381         * modules/unictype/ctype-blank-tests: Likewise.
7382         * modules/unictype/ctype-cntrl-tests: Likewise.
7383         * modules/unictype/ctype-digit-tests: Likewise.
7384         * modules/unictype/ctype-graph-tests: Likewise.
7385         * modules/unictype/ctype-lower-tests: Likewise.
7386         * modules/unictype/ctype-print-tests: Likewise.
7387         * modules/unictype/ctype-punct-tests: Likewise.
7388         * modules/unictype/ctype-space-tests: Likewise.
7389         * modules/unictype/ctype-upper-tests: Likewise.
7390         * modules/unictype/ctype-xdigit-tests: Likewise.
7391         * modules/unictype/decimal-digit-tests: Likewise.
7392         * modules/unictype/digit-tests: Likewise.
7393         * modules/unictype/mirror-tests: Likewise.
7394         * modules/unictype/numeric-tests: Likewise.
7395         * modules/unictype/property-alphabetic-tests: Likewise.
7396         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7397         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7398         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7399         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7400         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7401         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7402         * modules/unictype/property-bidi-control-tests: Likewise.
7403         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7404         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7405         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7406         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7407         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7408         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7409         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7410         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7411         * modules/unictype/property-bidi-pdf-tests: Likewise.
7412         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
7413         * modules/unictype/property-bidi-whitespace-tests: Likewise.
7414         * modules/unictype/property-byname-tests: Likewise.
7415         * modules/unictype/property-combining-tests: Likewise.
7416         * modules/unictype/property-composite-tests: Likewise.
7417         * modules/unictype/property-currency-symbol-tests: Likewise.
7418         * modules/unictype/property-dash-tests: Likewise.
7419         * modules/unictype/property-decimal-digit-tests: Likewise.
7420         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
7421         * modules/unictype/property-deprecated-tests: Likewise.
7422         * modules/unictype/property-diacritic-tests: Likewise.
7423         * modules/unictype/property-extender-tests: Likewise.
7424         * modules/unictype/property-format-control-tests: Likewise.
7425         * modules/unictype/property-grapheme-base-tests: Likewise.
7426         * modules/unictype/property-grapheme-extend-tests: Likewise.
7427         * modules/unictype/property-grapheme-link-tests: Likewise.
7428         * modules/unictype/property-hex-digit-tests: Likewise.
7429         * modules/unictype/property-hyphen-tests: Likewise.
7430         * modules/unictype/property-id-continue-tests: Likewise.
7431         * modules/unictype/property-id-start-tests: Likewise.
7432         * modules/unictype/property-ideographic-tests: Likewise.
7433         * modules/unictype/property-ids-binary-operator-tests: Likewise.
7434         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
7435         * modules/unictype/property-ignorable-control-tests: Likewise.
7436         * modules/unictype/property-iso-control-tests: Likewise.
7437         * modules/unictype/property-join-control-tests: Likewise.
7438         * modules/unictype/property-left-of-pair-tests: Likewise.
7439         * modules/unictype/property-line-separator-tests: Likewise.
7440         * modules/unictype/property-logical-order-exception-tests: Likewise.
7441         * modules/unictype/property-lowercase-tests: Likewise.
7442         * modules/unictype/property-math-tests: Likewise.
7443         * modules/unictype/property-non-break-tests: Likewise.
7444         * modules/unictype/property-not-a-character-tests: Likewise.
7445         * modules/unictype/property-numeric-tests: Likewise.
7446         * modules/unictype/property-other-alphabetic-tests: Likewise.
7447         * modules/unictype/property-other-default-ignorable-code-point-tests:
7448         Likewise.
7449         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
7450         * modules/unictype/property-other-id-continue-tests: Likewise.
7451         * modules/unictype/property-other-id-start-tests: Likewise.
7452         * modules/unictype/property-other-lowercase-tests: Likewise.
7453         * modules/unictype/property-other-math-tests: Likewise.
7454         * modules/unictype/property-other-uppercase-tests: Likewise.
7455         * modules/unictype/property-paired-punctuation-tests: Likewise.
7456         * modules/unictype/property-paragraph-separator-tests: Likewise.
7457         * modules/unictype/property-pattern-syntax-tests: Likewise.
7458         * modules/unictype/property-pattern-white-space-tests: Likewise.
7459         * modules/unictype/property-private-use-tests: Likewise.
7460         * modules/unictype/property-punctuation-tests: Likewise.
7461         * modules/unictype/property-quotation-mark-tests: Likewise.
7462         * modules/unictype/property-radical-tests: Likewise.
7463         * modules/unictype/property-sentence-terminal-tests: Likewise.
7464         * modules/unictype/property-soft-dotted-tests: Likewise.
7465         * modules/unictype/property-space-tests: Likewise.
7466         * modules/unictype/property-terminal-punctuation-tests: Likewise.
7467         * modules/unictype/property-test-tests: Likewise.
7468         * modules/unictype/property-titlecase-tests: Likewise.
7469         * modules/unictype/property-unassigned-code-value-tests: Likewise.
7470         * modules/unictype/property-unified-ideograph-tests: Likewise.
7471         * modules/unictype/property-uppercase-tests: Likewise.
7472         * modules/unictype/property-variation-selector-tests: Likewise.
7473         * modules/unictype/property-white-space-tests: Likewise.
7474         * modules/unictype/property-xid-continue-tests: Likewise.
7475         * modules/unictype/property-xid-start-tests: Likewise.
7476         * modules/unictype/property-zero-width-tests: Likewise.
7477         * modules/unictype/scripts-tests: Likewise.
7478         * modules/unictype/syntax-c-ident-tests: Likewise.
7479         * modules/unictype/syntax-c-whitespace-tests: Likewise.
7480         * modules/unictype/syntax-java-ident-tests: Likewise.
7481         * modules/unictype/syntax-java-whitespace-tests: Likewise.
7482         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
7483         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
7484         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
7485         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
7486         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
7487         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
7488         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
7489         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
7490         * modules/uniname/uniname-tests: Likewise.
7491         * modules/uninorm/canonical-decomposition-tests: Likewise.
7492         * modules/uninorm/compat-decomposition-tests: Likewise.
7493         * modules/uninorm/composition-tests: Likewise.
7494         * modules/uninorm/decomposing-form-tests: Likewise.
7495         * modules/uninorm/decomposition-tests: Likewise.
7496         * modules/uninorm/filter-tests: Likewise.
7497         * modules/uninorm/nfc-tests: Likewise.
7498         * modules/uninorm/nfd-tests: Likewise.
7499         * modules/uninorm/nfkc-tests: Likewise.
7500         * modules/uninorm/nfkd-tests: Likewise.
7501         * modules/uninorm/u8-normcmp-tests: Likewise.
7502         * modules/uninorm/u8-normcoll-tests: Likewise.
7503         * modules/uninorm/u16-normcmp-tests: Likewise.
7504         * modules/uninorm/u16-normcoll-tests: Likewise.
7505         * modules/uninorm/u32-normcmp-tests: Likewise.
7506         * modules/uninorm/u32-normcoll-tests: Likewise.
7507         * modules/unistdio/u8-asnprintf-tests: Likewise.
7508         * modules/unistdio/u8-vasnprintf-tests: Likewise.
7509         * modules/unistdio/u8-vasprintf-tests: Likewise.
7510         * modules/unistdio/u8-vsnprintf-tests: Likewise.
7511         * modules/unistdio/u8-vsprintf-tests: Likewise.
7512         * modules/unistdio/u16-asnprintf-tests: Likewise.
7513         * modules/unistdio/u16-vasnprintf-tests: Likewise.
7514         * modules/unistdio/u16-vasprintf-tests: Likewise.
7515         * modules/unistdio/u16-vsnprintf-tests: Likewise.
7516         * modules/unistdio/u16-vsprintf-tests: Likewise.
7517         * modules/unistdio/u32-asnprintf-tests: Likewise.
7518         * modules/unistdio/u32-vasnprintf-tests: Likewise.
7519         * modules/unistdio/u32-vasprintf-tests: Likewise.
7520         * modules/unistdio/u32-vsnprintf-tests: Likewise.
7521         * modules/unistdio/u32-vsprintf-tests: Likewise.
7522         * modules/unistdio/ulc-asnprintf-tests: Likewise.
7523         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
7524         * modules/unistdio/ulc-vasprintf-tests: Likewise.
7525         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
7526         * modules/unistdio/ulc-vsprintf-tests: Likewise.
7527         * modules/unistr/u8-check-tests: Likewise.
7528         * modules/unistr/u8-chr-tests: Likewise.
7529         * modules/unistr/u8-cmp-tests: Likewise.
7530         * modules/unistr/u8-cmp2-tests: Likewise.
7531         * modules/unistr/u8-cpy-alloc-tests: Likewise.
7532         * modules/unistr/u8-cpy-tests: Likewise.
7533         * modules/unistr/u8-mblen-tests: Likewise.
7534         * modules/unistr/u8-mbsnlen-tests: Likewise.
7535         * modules/unistr/u8-mbtouc-tests: Likewise.
7536         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
7537         * modules/unistr/u8-mbtoucr-tests: Likewise.
7538         * modules/unistr/u8-move-tests: Likewise.
7539         * modules/unistr/u8-next-tests: Likewise.
7540         * modules/unistr/u8-prev-tests: Likewise.
7541         * modules/unistr/u8-set-tests: Likewise.
7542         * modules/unistr/u8-stpcpy-tests: Likewise.
7543         * modules/unistr/u8-stpncpy-tests: Likewise.
7544         * modules/unistr/u8-strcat-tests: Likewise.
7545         * modules/unistr/u8-strcmp-tests: Likewise.
7546         * modules/unistr/u8-strcoll-tests: Likewise.
7547         * modules/unistr/u8-strcpy-tests: Likewise.
7548         * modules/unistr/u8-strdup-tests: Likewise.
7549         * modules/unistr/u8-strlen-tests: Likewise.
7550         * modules/unistr/u8-strmblen-tests: Likewise.
7551         * modules/unistr/u8-strmbtouc-tests: Likewise.
7552         * modules/unistr/u8-strncat-tests: Likewise.
7553         * modules/unistr/u8-strncmp-tests: Likewise.
7554         * modules/unistr/u8-strncpy-tests: Likewise.
7555         * modules/unistr/u8-strnlen-tests: Likewise.
7556         * modules/unistr/u8-to-u16-tests: Likewise.
7557         * modules/unistr/u8-to-u32-tests: Likewise.
7558         * modules/unistr/u8-uctomb-tests: Likewise.
7559         * modules/unistr/u16-check-tests: Likewise.
7560         * modules/unistr/u16-chr-tests: Likewise.
7561         * modules/unistr/u16-cmp-tests: Likewise.
7562         * modules/unistr/u16-cmp2-tests: Likewise.
7563         * modules/unistr/u16-cpy-alloc-tests: Likewise.
7564         * modules/unistr/u16-cpy-tests: Likewise.
7565         * modules/unistr/u16-mblen-tests: Likewise.
7566         * modules/unistr/u16-mbsnlen-tests: Likewise.
7567         * modules/unistr/u16-mbtouc-tests: Likewise.
7568         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
7569         * modules/unistr/u16-mbtoucr-tests: Likewise.
7570         * modules/unistr/u16-move-tests: Likewise.
7571         * modules/unistr/u16-next-tests: Likewise.
7572         * modules/unistr/u16-prev-tests: Likewise.
7573         * modules/unistr/u16-set-tests: Likewise.
7574         * modules/unistr/u16-stpcpy-tests: Likewise.
7575         * modules/unistr/u16-stpncpy-tests: Likewise.
7576         * modules/unistr/u16-strcat-tests: Likewise.
7577         * modules/unistr/u16-strcmp-tests: Likewise.
7578         * modules/unistr/u16-strcoll-tests: Likewise.
7579         * modules/unistr/u16-strcpy-tests: Likewise.
7580         * modules/unistr/u16-strdup-tests: Likewise.
7581         * modules/unistr/u16-strlen-tests: Likewise.
7582         * modules/unistr/u16-strmblen-tests: Likewise.
7583         * modules/unistr/u16-strmbtouc-tests: Likewise.
7584         * modules/unistr/u16-strncat-tests: Likewise.
7585         * modules/unistr/u16-strncmp-tests: Likewise.
7586         * modules/unistr/u16-strncpy-tests: Likewise.
7587         * modules/unistr/u16-strnlen-tests: Likewise.
7588         * modules/unistr/u16-to-u32-tests: Likewise.
7589         * modules/unistr/u16-to-u8-tests: Likewise.
7590         * modules/unistr/u16-uctomb-tests: Likewise.
7591         * modules/unistr/u32-check-tests: Likewise.
7592         * modules/unistr/u32-chr-tests: Likewise.
7593         * modules/unistr/u32-cmp-tests: Likewise.
7594         * modules/unistr/u32-cmp2-tests: Likewise.
7595         * modules/unistr/u32-cpy-alloc-tests: Likewise.
7596         * modules/unistr/u32-cpy-tests: Likewise.
7597         * modules/unistr/u32-mblen-tests: Likewise.
7598         * modules/unistr/u32-mbsnlen-tests: Likewise.
7599         * modules/unistr/u32-mbtouc-tests: Likewise.
7600         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
7601         * modules/unistr/u32-mbtoucr-tests: Likewise.
7602         * modules/unistr/u32-move-tests: Likewise.
7603         * modules/unistr/u32-next-tests: Likewise.
7604         * modules/unistr/u32-prev-tests: Likewise.
7605         * modules/unistr/u32-set-tests: Likewise.
7606         * modules/unistr/u32-stpcpy-tests: Likewise.
7607         * modules/unistr/u32-stpncpy-tests: Likewise.
7608         * modules/unistr/u32-strcat-tests: Likewise.
7609         * modules/unistr/u32-strcmp-tests: Likewise.
7610         * modules/unistr/u32-strcoll-tests: Likewise.
7611         * modules/unistr/u32-strcpy-tests: Likewise.
7612         * modules/unistr/u32-strdup-tests: Likewise.
7613         * modules/unistr/u32-strlen-tests: Likewise.
7614         * modules/unistr/u32-strmblen-tests: Likewise.
7615         * modules/unistr/u32-strmbtouc-tests: Likewise.
7616         * modules/unistr/u32-strncat-tests: Likewise.
7617         * modules/unistr/u32-strncmp-tests: Likewise.
7618         * modules/unistr/u32-strncpy-tests: Likewise.
7619         * modules/unistr/u32-strnlen-tests: Likewise.
7620         * modules/unistr/u32-to-u16-tests: Likewise.
7621         * modules/unistr/u32-to-u8-tests: Likewise.
7622         * modules/unistr/u32-uctomb-tests: Likewise.
7623         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
7624         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
7625         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
7626         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
7627         * modules/uniwidth/u8-strwidth-tests: Likewise.
7628         * modules/uniwidth/u8-width-tests: Likewise.
7629         * modules/uniwidth/u16-strwidth-tests: Likewise.
7630         * modules/uniwidth/u16-width-tests: Likewise.
7631         * modules/uniwidth/u32-strwidth-tests: Likewise.
7632         * modules/uniwidth/u32-width-tests: Likewise.
7633         * modules/uniwidth/width-tests: Likewise.
7634
7635 2010-05-18  Richard Jones  <rjones@redhat.com>
7636
7637         doc: users.txt: list hivex
7638         * users.txt: Add hivex.
7639
7640 2010-05-18  Richard Jones  <rjones@redhat.com>
7641
7642         doc: users.txt: list febootstrap
7643         * users.txt: Add febootstrap.
7644
7645 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
7646
7647         bootstrap: fix an error when gnulib is not used as a git submodule
7648         * build-aux/bootstrap (gnulib_path): If its length is zero then
7649         assign "gnulib" to it.
7650         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
7651
7652 2010-05-16  Bruno Haible  <bruno@clisp.org>
7653
7654         Avoid autoconf warnings about AM_ICONV.
7655         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
7656         2.64.
7657
7658 2010-05-16  Bruno Haible  <bruno@clisp.org>
7659
7660         absolute-header: Make the macro usable in more situations.
7661         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
7662         from gl_ABSOLUTE_HEADER.
7663         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
7664
7665 2010-05-16  James Youngman  <jay@gnu.org>
7666
7667         doc: update users.txt
7668         * users.txt: Add CSSC.
7669
7670 2010-05-16  Jim Meyering  <meyering@redhat.com>
7671
7672         init.sh: fix an error in the previous change; add more comments
7673         * tests/init.sh: Compare exit code in loop against 9, not 2.
7674         Patch by Bruno Haible.
7675         Make the two tests more similar by adding an empty "then" clause.
7676         Add comments.
7677
7678         init.sh: avoid unnecessary shell re-exec
7679         * tests/init.sh: Improve the re-exec-required check to first test the
7680         current shell.  If it passes the test, do not search for a shell that
7681         does pass, and do not re-exec.  This test is particularly contorted to
7682         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
7683         of $(...) evokes a syntax error and causes immediate shell exit with
7684         status 2.  Bruno Haible reported that the re-exec made it impossible
7685         to single-step through any init.sh-using script.
7686
7687 2010-05-16  Bruno Haible  <bruno@clisp.org>
7688
7689         Fix collision between gnulib's and libintl's printf replacements.
7690         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
7691         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
7692         (printf): When using GNU C, map the __printf__ function to rpl_printf
7693         via __asm__. When not using GNU C, define rpl_printf instead of
7694         __printf__.
7695         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
7696         commit.
7697         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
7698         commit.
7699         * m4/asm-underscore.m4: New file.
7700         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
7701         * modules/stdio (Files): Add m4/asm-underscore.m4.
7702         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
7703         Reported by Ben Pfaff.
7704
7705 2010-05-16  Bruno Haible  <bruno@clisp.org>
7706
7707         verify: Avoid skipping the test on openSUSE 11.0.
7708         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
7709
7710 2010-05-13  Bruno Haible  <bruno@clisp.org>
7711
7712         Avoid useless warnings from G++.
7713         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
7714         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
7715         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7716
7717 2010-05-11  Jim Meyering  <meyering@redhat.com>
7718
7719         maint.mk: tweak preceding change
7720         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
7721         regexps tighter by anchoring at EOL, and make the new group "shy"
7722         for slightly decreased overhead.
7723
7724 2010-05-11  Eric Blake  <eblake@redhat.com>
7725
7726         maint.mk: gnulib doesn't guarantee NSIG
7727         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
7728
7729 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7730
7731         test-pwrite.c: Remove unused variable declaration.
7732         * tests/test-pwrite.c (main): Remove read_buf declaration.
7733
7734         Remove useless test-pwrite.sh file.
7735         * tests/test-pwrite.sh: Delete file.
7736         * modules/pwrite-tests: Remove references.
7737         Reported by Bruno Haible.
7738
7739 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7740
7741         init.sh: fix a typo
7742         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
7743
7744 2010-05-10  Jim Meyering  <meyering@redhat.com>
7745
7746         maint.mk: avoid using a temporary file in the always-defined-macros check
7747         * top/maint.mk (.re-defmac): Remove rule.
7748         (gl_trap_): Remove definition.
7749         (sc_prohibit_always-defined_macros): Rewrite not to create and
7750         depend on a temporary file.  Instead, depend on GNU grep's ability
7751         to read a list of regular expressions from stdin when given "-f -".
7752
7753 2010-05-09  Bruno Haible  <bruno@clisp.org>
7754
7755         Update to GNU gettext 0.18, part 1.
7756         * m4/gettext.m4: Update to GNU gettext 0.18.
7757         * m4/intl.m4: Likewise.
7758         * m4/po.m4: Likewise.
7759         * modules/gettext (Files): Add m4/fcntl-o.m4.
7760         (configure.ac): Require gettext infrastructure from version 0.18.
7761
7762 2010-05-09  Jim Meyering  <meyering@redhat.com>
7763
7764         init.sh: enable MALLOC_PERTURB_
7765         * tests/init.sh: Enable glibc's malloc-perturbing option.
7766
7767         maint.mk: improve sc_cross_check_PATH_usage_in_tests
7768         With my recent change in init.sh from the two-line form:
7769             -#   : ${srcdir=.}
7770             -#   . "$srcdir/init.sh"; path_prepend_ .
7771             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
7772         I noticed that using the one-line form would cause this test
7773         to fail with a false-positive, or to stop working altogether,
7774         depending on whether help-version changed or all the tests did.
7775         * top/maint.mk (_hv_regex): Remove this definition.
7776         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
7777         (_hv_regex_strong): Use a stronger regex to check for conformance.
7778         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
7779         Give a separate diagnostic for lack of conforming use.
7780
7781         maint.mk: prohibit definition of symbols defined by gnulib
7782         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
7783         definition of symbols defined by gnulib.
7784
7785 2010-05-09  Bruno Haible  <bruno@clisp.org>
7786
7787         acl: Avoid test failure on Cygwin-hosted mingw.
7788         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
7789
7790 2010-05-09  Bruno Haible  <bruno@clisp.org>
7791
7792         error: Use system's fcntl function.
7793         * lib/error.c (fcntl): Undefine.
7794
7795 2010-05-09  Jim Meyering  <meyering@redhat.com>
7796
7797         verify: adjust formatting to be more consistent
7798         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
7799         argument-list '('s, and after one comma.
7800
7801 2010-05-09  Bruno Haible  <bruno@clisp.org>
7802
7803         error: More reliable output on mingw.
7804         * lib/error.c: Include <windows.h>.
7805         (is_open): New function.
7806         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
7807         defined.
7808
7809 2010-05-09  Bruno Haible  <bruno@clisp.org>
7810
7811         vasnprintf: Fix syntax errors in libintl build on mingw.
7812         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
7813         pad_ourselves and prec_ourselves after use.
7814
7815 2010-05-08  Bruno Haible  <bruno@clisp.org>
7816
7817         * lib/config.charset: Update comments for Cygwin 1.7.
7818         * lib/localcharset.c: Likewise.
7819
7820 2010-05-07  Jim Meyering  <meyering@redhat.com>
7821
7822         init.sh: improve comments
7823         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
7824         . "${srcdir=.}/init.sh"; path_prepend_ .
7825         Add a note about path_prepend_ and the alternative of using
7826         TESTS_ENVIRONMENT.
7827
7828 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7829
7830         exclude: Unescape hashed patterns in wildcard mode.
7831         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
7832         to the hash list.
7833         * tests/test-exclude8.sh: New test case.
7834         * modules/exclude-tests: Add new test.
7835
7836 2010-05-05  Eric Blake  <eblake@redhat.com>
7837
7838         verify: automate tests
7839         * modules/verify-tests: New module.
7840         * tests/test-verify.sh: New file.
7841         * tests/test-verify.c: Guard each negative test with a unique id.
7842         Also avoid warning about unused left hand of comma expressions.
7843
7844 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7845
7846         Further improvements to verify.h, suggested by Eric Blake.
7847         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
7848         the GL_* versions, to avoid collision with OpenGL.
7849         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
7850         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
7851         than testing merely whether it's defined.
7852
7853         Modify verify.h to pacify gcc -Wredundant_decls.
7854         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
7855         These use the prefix "GL_" since they're likely to be useful elsewhere.
7856         We may need to break them out into a different .h file.
7857         (__COUNTER__): Define to 0 if the compiler doesn't support it.
7858         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
7859         of verify_function__.
7860
7861 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
7862
7863         Tests for module pwrite.
7864         * modules/pwrite-tests: New file.
7865         * tests/test-pwrite.sh: New file.
7866         * tests/test-pwrite.c: New file.
7867
7868         New module pwrite.
7869         * lib/unistd.in.h (pwrite): New declaration.
7870         * lib/pwrite.c: New file, from glibc with modifications.
7871         * m4/pwrite.m4: New file.
7872         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
7873         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
7874         REPLACE_PWRITE.
7875         * modules/pwrite: New file.
7876         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
7877         REPLACE_PWRITE.
7878         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
7879         * doc/posix-functions/pwrite.texi: Mention the new module.
7880
7881 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
7882
7883         pread: Update documentation.
7884         * doc/posix-functions/pread.texi: Mention the 'pread' module.
7885
7886 2010-05-04  Eric Blake  <eblake@redhat.com>
7887
7888         docs: update cygwin progress
7889         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
7890         this bug.
7891         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
7892         Added in cygwin 1.7.2.
7893         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
7894         Likewise.
7895         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
7896         Likewise.
7897         * doc/glibc-functions/dup3.texi (dup3): Likewise.
7898         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7899         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7900         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
7901         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
7902         Mention nproc module.
7903         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
7904         bug in cygwin 1.7.5 addition.
7905         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
7906         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
7907         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
7908         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
7909         1.7.5.
7910         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
7911         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
7912         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
7913         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
7914         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
7915         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
7916         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
7917         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
7918         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
7919         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
7920         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
7921         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
7922         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
7923         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
7924         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
7925         Likewise.
7926         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
7927         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
7928         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
7929         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
7930         Likewise.
7931         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
7932         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
7933         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
7934         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
7935         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
7936         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
7937         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
7938         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
7939         Likewise.
7940         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
7941         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
7942         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
7943         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
7944         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
7945         Likewise.
7946         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
7947         Likewise.
7948         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
7949         Likewise.
7950         * doc/glibc-functions/xdrrec_endofrecord.texi
7951         (xdrrec_endofrecord): Likewise.
7952         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
7953         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
7954         Likewise.
7955         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
7956         Likewise.
7957
7958 2010-05-04  Jim Meyering  <meyering@redhat.com>
7959
7960         gendocs.sh: make its "-s FILE" option more useful
7961         * build-aux/gendocs.sh: When honoring the -s FILE option, update
7962         $PACKAGE to reflect the probably-different basename of "FILE".
7963
7964 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
7965
7966         bootstrap: don't ignore download_po_files failure
7967         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
7968         failure.
7969
7970 2010-05-03  Jim Meyering  <meyering@redhat.com>
7971
7972         maint.mk: allow to pass options to gendocs.sh
7973         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
7974         (gendocs_options_): New overridable variable.
7975
7976         gnu-web-doc-update: don't ignore configure or build failure
7977         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
7978
7979         announce-gen: backslash-escape '@'s in --help output
7980         * build-aux/announce-gen: Fix syntax errors.
7981
7982         maint.mk, announce-gen: allow project-specific announcement mail headers
7983         * top/maint.mk (translation_project_): Define default.
7984         (announcement_Cc_, announcement_mail_headers_): Likewise.
7985         (announcement): Invoke announce-gen with new --mail-headers option.
7986         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
7987
7988         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
7989         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
7990         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
7991         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
7992         line in the "err2" output file when running "make check" in verbose
7993         mode (i.e., with set -x enabled).
7994
7995 2010-05-03  Bruno Haible  <bruno@clisp.org>
7996
7997         wctob: Fix for weird platforms.
7998         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
7999         argument value.
8000
8001 2010-05-03  Jim Meyering  <meyering@redhat.com>
8002
8003         maint.mk: prohibit unwarranted use of <strings.h>
8004         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8005         strings.h in a file that does not also use strcasecmp, strncasecmp,
8006         ffs or ffsll.
8007
8008         maint.mk: remove obsolete comments
8009         * top/maint.mk: Remove stale, commented-out rules.
8010
8011 2010-05-02  Bruno Haible  <bruno@clisp.org>
8012
8013         wcwidth: Declare also when it's aliased.
8014         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8015         macro.
8016
8017 2010-05-02  Bruno Haible  <bruno@clisp.org>
8018
8019         Fix regression from 2010-04-25.
8020         * gnulib-tool (func_modules_transitive_closure): Check the status of
8021         all modules, not only of the tests that are of the form foo-tests where
8022         foo is a module.
8023
8024 2010-05-02  Bruno Haible  <bruno@clisp.org>
8025
8026         wctob: Work around nasty Cygwin 1.7.2 bug.
8027         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8028         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8029
8030 2010-05-01  Bruno Haible  <bruno@clisp.org>
8031
8032         fpurge: Sharper test.
8033         * tests/test-fpurge.c (main): Add one more ftell check.
8034         * modules/fpurge-tests (Depends-on): Add ftell.
8035         Suggested by Eric Blake.
8036
8037 2010-05-01  Bruno Haible  <bruno@clisp.org>
8038
8039         ftello: Another test.
8040         * tests/test-ftello3.c: New file.
8041         * modules/ftello-tests (Files): Add it.
8042         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8043         MOSTLYCLEANFILES.
8044
8045         ftell: Another test.
8046         * tests/test-ftell3.c: New file.
8047         * modules/ftell-tests (Files): Add it.
8048         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8049         MOSTLYCLEANFILES.
8050
8051 2010-05-01  Bruno Haible  <bruno@clisp.org>
8052
8053         ftell, ftello: Work around Solaris bug.
8054         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8055         * lib/ftello.c: Include stdio-impl.h.
8056         (ftello): On Solaris, when _IOWRT is set, compute the result without
8057         looking at _IOREAD.
8058         * modules/ftello (Files): Add lib/stdio-impl.h.
8059         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8060         * doc/posix-functions/ftello.texi: Likewise.
8061         Reported by Eric Blake.
8062
8063 2010-05-01  Bruno Haible  <bruno@clisp.org>
8064
8065         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8066         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8067         the _IOWRT flag is also set.
8068
8069 2010-05-01  Bruno Haible  <bruno@clisp.org>
8070
8071         Fix doc about a HP-UX stdio bug.
8072         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8073         * doc/posix-functions/ftello.texi: Likewise.
8074
8075 2010-05-01  Bruno Haible  <bruno@clisp.org>
8076
8077         lseek test: Fix failure on Solaris.
8078         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8079         output.
8080
8081 2010-04-30  Jim Meyering  <meyering@redhat.com>
8082
8083         bootstrap: don't ignore failure to generate po*/Makevars
8084         * build-aux/bootstrap (with_gettext): Don't ignore failure
8085         to create po/Makevars or runtime-po/Makevars.
8086
8087 2010-04-29  Eric Blake  <eblake@redhat.com>
8088
8089         headers: relax license to LGPLv2+
8090         * modules/fcntl-h (License): Relax license.
8091         * modules/getopt-posix (License): Likewise.
8092         * modules/locale (License): Likewise.
8093         * modules/math (License): Likewise.
8094         * modules/pty (License): Likewise.
8095         * modules/sched (License): Likewise.
8096         * modules/search (License): Likewise.
8097         * modules/spawn (License): Likewise.
8098         * modules/stdarg (License): Likewise.
8099         * modules/sysexits (License): Likewise.
8100
8101 2010-04-29  Jim Meyering  <meyering@redhat.com>
8102
8103         inttypes: relax license to LGPLv2+
8104         * modules/inttypes (License): Relax license.
8105
8106 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8107
8108         * top/maint.mk (indent): Run twice to produce idempotent results.
8109
8110 2010-04-28  Bruno Haible  <bruno@clisp.org>
8111
8112         getdate: Generate getdate.c in the source directory.
8113         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8114         MOSTLYCLEANFILES.
8115         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8116
8117 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8118
8119         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8120         is not declared as a const *; avoid warnings in that case.
8121
8122 2010-04-28  Eric Blake  <eblake@redhat.com>
8123
8124         canonicalize-lgpl: avoid compiler warning
8125         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8126         declaration' / 'extraneous semicolon' warning with some compilers.
8127         Reported by Andreas Gruenbacher.
8128
8129 2010-04-28  Jim Meyering  <meyering@redhat.com>
8130
8131         init.sh: ensure a more reliable exit status when exiting via trap
8132         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8133         Inspired by patches from Dmitry V. Levin.
8134         Also trap on signal 3 (SIGQUIT).
8135
8136 2010-04-27  Bruno Haible  <bruno@clisp.org>
8137
8138         Update doc about utimes().
8139         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8140         'utimens' module.
8141         Reported by Andreas Gruenbacher <agruen@suse.de>.
8142
8143 2010-04-27  Eric Blake  <eblake@redhat.com>
8144
8145         full-read, full-write: relax license
8146         * modules/full-read (License): Drop to LGPLv2+.
8147         * modules/full-write (License): Likewise.
8148         * modules/safe-read (License): Likewise.
8149         * modules/safe-write (License): Likewise.
8150
8151         pthread: mention library for linking
8152         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8153
8154 2010-04-27  Jim Meyering  <meyering@redhat.com>
8155
8156         maint.mk: fix a bug introduced in last change
8157         * top/maint.mk (gl_assured_headers_): Now that all names are on
8158         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8159         is not anchored to end of word, it should be adequate.
8160
8161         maint.mk: avoid side-effect in latest syntax-check
8162         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8163         to run commands via $(shell...), and hence to incur cost only when
8164         the new rule is actually run.
8165
8166         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8167         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8168         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8169         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8170         (gl_assured_headers_, az_, AZ_): Define.
8171         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8172
8173 2010-04-26  Jim Meyering  <jim@meyering.net>
8174             Bruno Haible  <bruno@clisp.org>
8175
8176         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8177         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8178         Prompted by an exchange with Gilles Espinasse.
8179
8180 2010-04-26  Jim Meyering  <meyering@redhat.com>
8181
8182         git-version-gen: aesthetic tweak
8183         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8184         so that the command remains on a single line.
8185
8186 2010-04-26  Eric Blake  <eblake@redhat.com>
8187
8188         git-version-gen: allow use on EBCDIC hosts
8189         * build-aux/git-version-gen (dirty): Use literal rather than tying
8190         ourselves to ascii.
8191         Reported by Steve Goetze.
8192
8193 2010-04-25  Bruno Haible  <bruno@clisp.org>
8194
8195         netdb: Add support for GNULIB_POSIXCHECK.
8196         * lib/netdb.in.h: Include warn-on-use.h.
8197         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8198         functions are used when GNULIB_POSIXCHECK is defined and the
8199         getaddrinfo module is not in use.
8200         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8201         freeaddrinfo, gai_strerror, getnameinfo are declared.
8202         * modules/netdb (Depends-on): Add warn-on-use.
8203         (Makefile.am): Include warn-on-use.h in netdb.h.
8204
8205 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8206
8207         build: avoid "make check" failure without .git/ directory
8208         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8209         there is no .git/ directory.
8210
8211 2010-04-25  Bruno Haible  <bruno@clisp.org>
8212
8213         ptsname: Fix misuse of ttyname_r.
8214         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8215         of errno.
8216
8217 2010-04-25  Bruno Haible  <bruno@clisp.org>
8218
8219         ttyname_r: Make it work on Solaris 10.
8220         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8221         if the system function has the POSIX declaration. Test whether the
8222         function fails if the buffer is less than 128 bytes large.
8223         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8224         system's ttyname_r function. Provide a reasonably large buffer.
8225         * modules/ttyname_r (Depends-on): Add extensions.
8226         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8227
8228 2010-04-25  Bruno Haible  <bruno@clisp.org>
8229
8230         Use the 'extensions' module for some more functions on Solaris.
8231         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8232         module.
8233         * doc/posix-functions/ctime_r.texi: Likewise.
8234         * doc/posix-functions/getgrgid_r.texi: Likewise.
8235         * doc/posix-functions/getgrnam_r.texi: Likewise.
8236         * doc/posix-functions/getpwnam_r.texi: Likewise.
8237         * doc/posix-functions/getpwuid_r.texi: Likewise.
8238         * doc/posix-functions/readdir_r.texi: Likewise.
8239         * doc/posix-functions/sigwait.texi: Likewise.
8240         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8241         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8242
8243 2010-04-25  Bruno Haible  <bruno@clisp.org>
8244
8245         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8246         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8247         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8248         * lib/ttyname_r.c: Include <limits.h>.
8249         (ttyname_r): Define using the system's ttyname_r function, if it exists
8250         and not on Solaris.
8251         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8252         set.
8253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8254         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8255         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8256         Reported by Simon Josefsson.
8257
8258 2010-04-25  Bruno Haible  <bruno@clisp.org>
8259
8260         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8261         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8262         * doc/posix-functions/ctime_r.texi: Likewise.
8263         * doc/posix-functions/getgrgid_r.texi: Likewise.
8264         * doc/posix-functions/getgrnam_r.texi: Likewise.
8265         * doc/posix-functions/getlogin_r.texi: Likewise.
8266         * doc/posix-functions/getpwnam_r.texi: Likewise.
8267         * doc/posix-functions/getpwuid_r.texi: Likewise.
8268         * doc/posix-functions/readdir_r.texi: Likewise.
8269         * doc/posix-functions/sigwait.texi: Likewise.
8270         * doc/posix-functions/ttyname_r.texi: Likewise.
8271         Reported by Simon Josefsson.
8272
8273 2010-04-25  Bruno Haible  <bruno@clisp.org>
8274
8275         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8276         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8277         also to --create-testdir.
8278         (func_acceptable): Don't consider the status of *-tests modules here.
8279         (func_modules_transitive_closure): Consider it here, before including a
8280         test module.
8281         (func_import, func_create_testdir): Set inc_all_direct_tests,
8282         inc_all_indirect_tests.
8283         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8284         --create-testdir and --create-megatestdir.
8285
8286 2010-04-25  Bruno Haible  <bruno@clisp.org>
8287
8288         gnulib-tool: Add --without-*-tests options.
8289         * gnulib-tool (func_usage): Document the --without-*-tests options.
8290         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8291         excl_unportable_tests): New variables.
8292         Fail if they are specified with --import or --update.
8293         (func_acceptable): Respect the excl_*_tests variables.
8294         (func_import): Set the excl_*_tests variables to empty.
8295
8296 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8297             Bruno Haible  <bruno@clisp.org>
8298
8299         Work around a MacOS X 10.4 bug with openpty.
8300         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8301         * tests/test-openpty.c (main): Close the master side explicitly.
8302
8303 2010-04-25  Bruno Haible  <bruno@clisp.org>
8304
8305         strnlen: Fix a C++ test error on MacOS X and Solaris.
8306         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8307         the function is not declared.
8308         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8309         Simon Josefsson.
8310
8311 2010-04-24  Bruno Haible  <bruno@clisp.org>
8312
8313         Avoid a gcc warning.
8314         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8315         of correct type for %08lx directive.
8316         Reported by Eric Blake.
8317
8318 2010-04-24  Bruno Haible  <bruno@clisp.org>
8319
8320         vasnprintf: Correct errno value in case of out-of-memory.
8321         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8322         or sprintf. Use the errno value from SNPRINTF or sprintf.
8323         Reported by Ian Beckwith <ianb@erislabs.net>.
8324
8325 2010-04-24  Bruno Haible  <bruno@clisp.org>
8326
8327         ansi-c++-opt: Find correct compiler when cross-compiling.
8328         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8329         AC_CHECK_PROGS.
8330         Reported by Simon Josefsson.
8331
8332 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8333
8334         vc-list-files: Add support for subversion
8335         * build-aux/vc-list-files: Use "svn list" to generate the list of
8336         files controlled by subversion.
8337
8338 2010-04-23  Jim Meyering  <meyering@redhat.com>
8339
8340         vc-list-files tests: convert to use init.sh
8341         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
8342         path_prepend_.
8343         Use Exit, not exit.
8344         Use skip_ rather than open coding it.
8345         Remove trap set-up and compare definitions.
8346         * tests/test-vc-list-files-git.sh: Likewise.
8347         * modules/vc-list-files-tests (Files): Add tests/init.sh.
8348
8349 2010-04-22  Simon Josefsson  <simon@josefsson.org>
8350
8351         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
8352         backup files.
8353
8354 2010-04-21  Simon Josefsson  <simon@josefsson.org>
8355
8356         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
8357
8358 2010-04-20  Eric Blake  <eblake@redhat.com>
8359
8360         tests: be robust to ignored SIGPIPE
8361         * tests/test-select-in.sh: Consume all output.
8362         * tests/test-lseek.sh: Check correct exit status, while avoiding
8363         EPIPE.
8364
8365 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8366             Bruno Haible  <bruno@clisp.org>
8367
8368         visibility: Don't use -fvisibility if it leads to a warning.
8369         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8370         yes, don't pretend that visibility works if it leads to a warning.
8371         Reported by Mike Gran <spk121@yahoo.com>.
8372
8373 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8374
8375         * build-aux/bootstrap: Use "git -h" for testing for supported options
8376         instead of "git --help".  The short-form option only shows a summary,
8377         and doesn't layout the full man page.  Grep for the full option name
8378         in the summary, too.
8379
8380 2010-04-19  Bruno Haible  <bruno@clisp.org>
8381
8382         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8383         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8384         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8385         mention of RELOCATABLE_STRIP.
8386         Reported by Sylvain Beucler <beuc@beuc.net>.
8387
8388 2010-04-19  Bruno Haible  <bruno@clisp.org>
8389
8390         * lib/diffseq.h: Fix typo in comment.
8391         Reported by Eric Blake.
8392
8393 2010-04-19  Bruno Haible  <bruno@clisp.org>
8394
8395         ioctl: Move autoconf macro to a .m4 file.
8396         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8397         * modules/ioctl (Files): Add it.
8398         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8399         Reported by Ian Beckwith <ianb@erislabs.net>.
8400
8401 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8402             Bruno Haible  <bruno@clisp.org>
8403
8404         diffseq: Accommodate use-case with abstract arrays.
8405         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8406         is not defined.
8407         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8408         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8409
8410 2010-04-18  Bruno Haible  <bruno@clisp.org>
8411
8412         * doc/posix-headers/stdbool.texi: More precise wording.
8413
8414 2010-04-17  Jim Meyering  <meyering@redhat.com>
8415
8416         maint.mk: use gnu-style indentation in an embedded perl script
8417         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
8418         Rename variable: s/two/last_two_bytes/
8419
8420 2010-04-16  Eric Blake  <eblake@redhat.com>
8421
8422         test-stdbool: skip test that fails with Solaris CC
8423         * tests/test-stdbool.c (f): Skip test that causes compilation
8424         error under buggy C++ compiler.
8425         * lib/stdbool.in.h: Document the limitation.
8426         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8427
8428         setenv: allow compilation with C++
8429         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
8430         register keyword.
8431
8432         stdint: allow test to pass with C++
8433         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
8434
8435         getopt: allow compilation with C++
8436         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
8437         struct.
8438         * lib/getopt.c (_getopt_internal_r): Use correct type.
8439         Reported by Dagobert Michelson, via Joel E. Denny.
8440
8441 2010-04-16  Bruno Haible  <bruno@clisp.org>
8442
8443         Override netdb.h always.
8444         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
8445         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
8446         Reported by Ludovic Courtès <ludo@gnu.org>.
8447
8448 2010-04-15  Bruno Haible  <bruno@clisp.org>
8449
8450         openpty: Fix mistake from 2010-03-21.
8451         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
8452         Reported by Simon Josefsson.
8453
8454 2010-04-15  Eric Blake  <eblake@redhat.com>
8455
8456         test-forkpty: fix expected signature
8457         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
8458         Reported by Simon Josefsson.
8459
8460 2010-04-15  Jim Meyering  <meyering@redhat.com>
8461
8462         maint.mk: texinfo_suffix_re_: correct the default regexp
8463         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
8464
8465         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
8466         make it configurable via texinfo_suffix_re_.
8467
8468 2010-04-14  Eric Blake  <eblake@redhat.com>
8469
8470         strtok_r: relax license to LGPLv2+
8471         * modules/strtok_r (License): Relax license.
8472         Reported by Matthias Bolte.
8473
8474 2010-04-14  Simon Josefsson  <simon@josefsson.org>
8475
8476         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
8477         version 1.4.4 by default instead of requiring the libgcrypt
8478         version used during build.  This makes it possible to use the
8479         application with older but still binary compatible libgcrypt
8480         versions.
8481
8482 2010-04-13  Eric Blake  <eblake@redhat.com>
8483
8484         getopt-gnu: match recent glibc fixes and posix ruling
8485         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
8486         '+' handling, when requesting extensions.
8487         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
8488         'W;' handling.
8489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
8490         * doc/posix-functions/getopt.texi (getopt): Document this.
8491         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8492         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8493         Likewise.
8494
8495         getopt: merge bug fixes from glibc
8496         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
8497         diagnostics.  Honor '+:' correctly.  Reject ';'.
8498
8499         getopt-posix: detect MacOS bug
8500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
8501         optind when missing a required argument.
8502         * doc/posix-functions/getopt.texi (getopt): Document the bug.
8503         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8504         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8505         Likewise.
8506
8507         getopt-posix: avoid spurious failure on Solaris
8508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
8509         an indicator that setting optind=1 is sufficient for reset.
8510
8511         getopt-posix: avoid spurious failure on FreeBSD
8512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
8513         in POSIX mode, since the m4 test uses it.
8514
8515         gnulib-tool: silence warning on BSD sh
8516         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
8517
8518 2010-04-13  Jim Meyering  <meyering@redhat.com>
8519
8520         doc: users.txt: GNU patch now uses gnulib
8521         * users.txt: Add patch.
8522
8523 2010-04-12  Jim Meyering  <meyering@redhat.com>
8524
8525         maint.mk: generate more concise timing data for syntax-check rules
8526         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
8527         " done" from each line that reports a syntax-check test duration.
8528
8529 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
8530
8531         git-version-gen: use "git update-index..." rather than "git status"
8532         * build-aux/git-version-gen: Use git update-index --refresh, not
8533         "git status".  With some versions of git, "git status" would fail
8534         to update the index and result in an unwarranted "-dirty" suffix.
8535
8536 2010-04-11  Jim Meyering  <meyering@redhat.com>
8537
8538         openat: correct formatting (no semantic change)
8539         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
8540         Suggested by Bruno Haible.
8541
8542 2010-04-11  Bruno Haible  <bruno@clisp.org>
8543
8544         Stricter declaration checking in testdirs.
8545         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8546         If for_tests is true, augment AM_CPPFLAGS to define
8547         GNULIB_STRICT_CHECKING.
8548         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8549         GNULIB_STRICT_CHECKING is defined, verify that the function is
8550         declared.
8551
8552 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
8553             Bruno Haible  <bruno@clisp.org>
8554
8555         libunistring: Improve configure output.
8556         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
8557         Don't say "consider installing GNU libunistring" when checking again
8558         with libiconv.
8559
8560 2010-04-11  Bruno Haible  <bruno@clisp.org>
8561
8562         libunistring: Correct value of $LTLIBUNISTRING.
8563         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
8564         correct the value of $LTLIBUNISTRING.
8565
8566 2010-04-11  Bruno Haible  <bruno@clisp.org>
8567
8568         havelib: Add static libraries to LIBS in the right order.
8569         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
8570         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
8571
8572 2010-04-11  Bruno Haible  <bruno@clisp.org>
8573
8574         libunistring: Detect libunistring also when it depends on libiconv.
8575         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
8576         the second AC_LIB_HAVE_LINKFLAGS invocation.
8577
8578 2010-04-11  James Youngman  <jay@gnu.org>
8579
8580         close-stream: declare local scalars to be "const"
8581         * lib/close-stream.c (close_stream): Make boolean variables const
8582         to document the fact that we set but do not change them.
8583
8584 2010-04-11  Bruno Haible  <bruno@clisp.org>
8585
8586         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
8587
8588 2010-04-11  Jim Meyering  <meyering@redhat.com>
8589
8590         maint.mk: don't include dist-check.mk
8591         * top/maint.mk: Remove bogus include directive.
8592
8593         maint.mk: improve empty-line-at-EOF check
8594         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
8595         solution, rather than tail+Perl-based one.  The latter would read
8596         a few kilobytes from the end of each file, and did not handle empty
8597         files properly.
8598
8599         maint.mk: print the elapsed time for each syntax-check rule
8600         * top/maint.mk (sc_m_rules_): Save start time in a file.
8601         (sc_z_rules_): New rules: remove temp file and print elapsed time.
8602         (local-check): Interpose the .z rules
8603
8604 2010-04-11  Jim Meyering  <meyering@redhat.com>
8605
8606         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
8607         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
8608         empty file with one that ends in an empty line.
8609
8610 2010-04-10  Bruno Haible  <bruno@clisp.org>
8611
8612         mkdir: Make it work on mingw64.
8613         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
8614         * lib/mkdir.c: Update comment.
8615         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
8616
8617 2010-04-10  Bruno Haible  <bruno@clisp.org>
8618
8619         Don't override improved macro from newer autoconf.
8620         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
8621         autoconf >= 2.62.
8622         Reported by Joel E. Denny <jdenny@clemson.edu>.
8623
8624 2010-04-10  Jim Meyering  <meyering@redhat.com>
8625
8626         maint.mk: new syntax-check rule: prohibit empty lines at end of file
8627         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
8628
8629         maint.mk: correct a diagnostic
8630         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
8631         in diagnostic; now use $prohibit.
8632
8633 2010-04-10  Bruno Haible  <address@hidden>
8634
8635         fchownat: Fix a C++ test error on Solaris 8.
8636         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
8637         the function does not exist.
8638
8639 2010-04-10  Bruno Haible  <bruno@clisp.org>
8640
8641         vasnprintf: Add more tests.
8642         * tests/test-vasnprintf-posix.c: Include <errno.h>.
8643         (test_function): Test converting an invalid wide string.
8644
8645         vasnprintf: Correct handling of unconvertible wide string arguments.
8646         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
8647         VASNPRINTF.
8648         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
8649         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
8650         smaller than the expected maximum need for the directive. Set errno to
8651         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
8652         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
8653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
8654         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
8655         * modules/vasnprintf (Files): Add m4/printf.m4.
8656         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8657
8658 2010-04-10  Bruno Haible  <bruno@clisp.org>
8659
8660         vasnprintf: Fix crash in %ls directive.
8661         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
8662         string is passed as argument to %ls, with no precision and no width.
8663         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8664
8665 2010-04-10  Bruno Haible  <bruno@clisp.org>
8666
8667         vasnprintf: Fix multiple test failures on mingw.
8668         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
8669         _snprintf, or snwprintf, not _snwprintf.
8670
8671 2010-04-10  Bruno Haible  <bruno@clisp.org>
8672
8673         write: Fix a C++ test error on mingw.
8674         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
8675
8676 2010-04-10  Bruno Haible  <bruno@clisp.org>
8677
8678         vasnprintf test: Reduce code duplication.
8679         * tests/test-vasnprintf.c (test_function): New function, extracted from
8680         test_vasnprintf.
8681         (test_vasnprintf, test_asnprintf): Invoke it.
8682
8683 2010-04-10  Bruno Haible  <bruno@clisp.org>
8684
8685         strnlen: Fix warning in C++ mode on MacOS X.
8686         * lib/string.in.h (strnlen): Use the modern idiom.
8687         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
8688         defining strnlen as a macro already in <config.h>.
8689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8690         REPLACE_STRNLEN.
8691         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
8692         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8693
8694 2010-04-08  James Youngman  <jay@gnu.org>
8695
8696         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
8697         the example.
8698
8699 2010-04-09  Jim Meyering  <meyering@redhat.com>
8700
8701         maint.mk: print better diagnostic when there is no $(_hv_file)
8702         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
8703         announce that when $(_hv_file) (aka help-version) does not exist.
8704
8705         init.sh: run tr in the "C" locale to avoid multibyte interpretation
8706         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
8707         not try to interpret its random input bytes.  Jarno Rajahalme reported
8708         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
8709         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
8710         (mktempd_): Likewise, just in case.
8711
8712         ftruncate: add two years to projected module removal date: 2012
8713         * m4/ftruncate.m4: Adjust comments.
8714
8715         ftruncate: mark module as obsolete; even MinGW provides it, now
8716         * modules/ftruncate (Status): Obsolete.
8717         (Notice): Say that.
8718         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
8719         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
8720
8721 2010-04-08  Bruno Haible  <bruno@clisp.org>
8722
8723         Fix side effects from tests-related modules.
8724         * modules/dprintf-posix (Comment): New section.
8725         * modules/fprintf-posix (Comment): Likewise.
8726         * modules/obstack-printf-posix (Comment): Likewise.
8727         * modules/printf-posix (Comment): Likewise.
8728         * modules/snprintf-posix (Comment): Likewise.
8729         * modules/sprintf-posix (Comment): Likewise.
8730         * modules/vasnprintf-posix (Comment): Likewise.
8731         * modules/vasprintf-posix (Comment): Likewise.
8732         * modules/vdprintf-posix (Comment): Likewise.
8733         * modules/vfprintf-posix (Comment): Likewise.
8734         * modules/vprintf-posix (Comment): Likewise.
8735         * modules/vsnprintf-posix (Comment): Likewise.
8736         * modules/vsprintf-posix (Comment): Likewise.
8737         * modules/xprintf-posix (Comment): Likewise.
8738         * modules/xvasprintf-posix (Comment): Likewise.
8739         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
8740         * modules/floorf-tests (Depends-on): Likewise.
8741         * modules/round-tests (Depends-on): Likewise.
8742         * modules/roundf-tests (Depends-on): Likewise.
8743         * modules/trunc-tests (Depends-on): Likewise.
8744         * modules/truncf-tests (Depends-on): Likewise.
8745         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
8746         'fprintf-posix' module is not present.
8747         * tests/test-floorf2.c (check): Likewise.
8748         * tests/test-trunc2.c (check): Likewise.
8749         * tests/test-truncf2.c (check): Likewise.
8750         * tests/test-round2.c (equal): Likewise.
8751         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8752
8753 2010-04-07  Karl Berry  <karl@gnu.org>
8754
8755         * config/srclist.txt,
8756         * config/srclistvars.sh,
8757         * config/srclist-update: doc fixes.
8758
8759 2010-04-07  Jim Meyering  <meyering@redhat.com>
8760
8761         maint.mk: add a PATH crosschecking syntax-check rule
8762         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
8763         Useful if you use a test like the one in help-version (coreutils,
8764         diffutils, grep, gzip) that ensures $(VERSION) matches what is
8765         printed by prog --version.
8766
8767 2010-04-06  Bruno Haible  <bruno@clisp.org>
8768
8769         Fix link error on mingw.
8770         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
8771         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
8772
8773 2010-04-06  Bruno Haible  <bruno@clisp.org>
8774
8775         Assume rmdir exists.
8776         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
8777
8778 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
8779
8780         doc: update users.txt
8781         * users.txt: Add gcal.
8782
8783 2010-04-06  Jim Meyering  <meyering@redhat.com>
8784
8785         init.sh: simply unset TMPDIR rather than risking env -i
8786         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
8787         although it probably works fine on all Unix-based systems, some
8788         systems (Cygwin?) cannot tolerate a totally cleared environment.
8789         Suggestion from Eric Blake.
8790
8791 2010-04-06  Jim Meyering  <meyering@redhat.com>
8792
8793         init.sh: portability fix: use env's POSIX-specified -i option not -u
8794         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
8795         than unportable env -u.  Solaris 5.11's env lacks support for -u.
8796
8797 2010-04-05  Bruno Haible  <bruno@clisp.org>
8798
8799         btowc: Work around Cygwin 1.7.2 bug.
8800         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
8801         does not map NUL to 0.
8802         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
8803
8804 2010-04-05  Bruno Haible  <bruno@clisp.org>
8805
8806         Make the multithread modules work on Cygwin 1.7.2.
8807         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
8808         imported symbols can be declared weak, so that it returns "no" on
8809         Cygwin 1.7.2.
8810
8811 2010-04-05  Bruno Haible  <bruno@clisp.org>
8812
8813         Use the module 'strncat'.
8814         * modules/unistr/u8-strncat (Depends-on): Add strncat.
8815
8816         Tests for module 'strncat'.
8817         * modules/strncat-tests: New file.
8818         * tests/test-strncat.c: New file.
8819
8820         New module 'strncat'.
8821         * lib/string.in.h (strncat): New declaration.
8822         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
8823         * m4/strncat.m4: New file, based on m4/memchr.m4.
8824         * modules/strncat: New file.
8825         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
8826         is declared.
8827         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
8828         REPLACE_STRNCAT.
8829         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
8830         REPLACE_STRNCAT.
8831         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
8832         module.
8833         * tests/test-string-c++.cc: Check signature of strncat.
8834
8835 2010-04-05  Jim Meyering  <meyering@redhat.com>
8836
8837         xstrtoumax-tests: convert to use init.sh
8838         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
8839         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8840         Use Exit, not exit.
8841         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8842
8843         xstrtoimax-tests: convert to use init.sh
8844         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
8845         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8846         Use Exit, not exit.
8847         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8848
8849 2010-04-05  Bruno Haible  <bruno@clisp.org>
8850
8851         sys_socket: Avoid #define replacements in C++ mode.
8852         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
8853         warning to the function if possible, rather than #defining the symbol
8854         to a dysfunctional alias.
8855
8856 2010-04-05  Bruno Haible  <bruno@clisp.org>
8857
8858         fseeko: Fix C++ test error on mingw.
8859         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
8860         gl_FUNC_FSEEKO.
8861         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
8862         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
8863         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
8864         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
8865
8866 2010-04-05  Bruno Haible  <bruno@clisp.org>
8867
8868         duplocale: Improve test output.
8869         * tests/test-duplocale.c (main): Print reason for skipped test.
8870
8871 2010-04-05  Bruno Haible  <bruno@clisp.org>
8872
8873         Assume rmdir exists.
8874         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
8875         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
8876
8877 2010-04-05  Bruno Haible  <bruno@clisp.org>
8878
8879         Fix link error on Solaris 8 with cc.
8880         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
8881
8882 2010-04-05  Bruno Haible  <bruno@clisp.org>
8883
8884         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
8885         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
8886
8887 2010-04-05  Bruno Haible  <bruno@clisp.org>
8888
8889         vasprintf: Update documentation.
8890         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
8891
8892 2010-04-05  Bruno Haible  <bruno@clisp.org>
8893
8894         ptsname: Improve test.
8895         * tests/test-ptsname.c (main): Also try the various master names of BSD
8896         systems.
8897
8898 2010-04-05  Bruno Haible  <bruno@clisp.org>
8899
8900         memchr: Avoid a possible C++ test error.
8901         * lib/string.in.h (memchr): Provide declaration if function is missing.
8902         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
8903         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
8904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
8905         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
8906
8907 2010-04-05  Bruno Haible  <bruno@clisp.org>
8908
8909         strtok_r: Improve idiom.
8910         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
8911         AC_LIBOBJ is used.
8912
8913 2010-04-05  Bruno Haible  <bruno@clisp.org>
8914
8915         strdup: Improve idiom.
8916         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
8917         AC_LIBOBJ is used.
8918         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
8919         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
8920         when AC_LIBOBJ is used.
8921
8922 2010-04-05  Bruno Haible  <bruno@clisp.org>
8923
8924         mbsinit, mbrtowc, wcrtomb: Improve idioms.
8925         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
8926         don't set REPLACE_MBSINIT to 1.
8927         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
8928         don't set REPLACE_MBRTOWC to 1.
8929         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
8930         exist, don't set REPLACE_MBSRTOWCS to 1.
8931         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
8932         exist, don't set REPLACE_MBSNRTOWCS to 1.
8933         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
8934         don't set REPLACE_WCRTOMB to 1.
8935         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
8936         exist, don't set REPLACE_WCSRTOMBS to 1.
8937         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
8938         exist, don't set REPLACE_WCSNRTOMBS to 1.
8939
8940 2010-04-05  Bruno Haible  <bruno@clisp.org>
8941
8942         ldexpl: Improve idiom.
8943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
8944         make sure to set HAVE_DECL_LDEXPL to 0.
8945
8946 2010-04-05  Jim Meyering  <meyering@redhat.com>
8947
8948         xstrtol-tests: convert to use init.sh
8949         * modules/xstrtol-tests (Files): Add tests/init.sh.
8950         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8951         Use Exit, not exit.
8952         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8953
8954         atexit-tests: convert to use init.sh
8955         * modules/atexit-tests (Files): Add tests/init.sh.
8956         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8957         Use Exit, not exit.
8958         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8959
8960         init.sh: fix typo
8961         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
8962
8963         init.sh: make it easier for a test script to write to the tty, ...
8964         when using automake's parallel-tests mode.
8965         * tests/init.sh (stderr_fileno_): Define overridable variable.
8966         (warn_): New function, to use it.
8967         (fail_, skip_, framework_failure_): Use warn_.
8968
8969 2010-04-04  Bruno Haible  <bruno@clisp.org>
8970
8971         btowc: Avoid warning.
8972         * lib/btowc.c: Include <stdlib.h>.
8973         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
8974
8975 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
8976             Bruno Haible  <bruno@clisp.org>
8977
8978         wchar: Port to NetBSD 1.5.
8979         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
8980         * lib/wctype.in.h (WEOF): Likewise.
8981
8982 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
8983             Bruno Haible  <bruno@clisp.org>
8984
8985         Port extended stdio to NetBSD 1.5.
8986         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
8987         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
8988         older.
8989
8990 2010-04-04  Bruno Haible  <bruno@clisp.org>
8991
8992         string: Remove unused substitution.
8993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
8994         HAVE_DECL_STRERROR.
8995         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
8996
8997 2010-04-04  Bruno Haible  <bruno@clisp.org>
8998
8999         strtod: Avoid a possible C++ test error.
9000         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9001         set REPLACE_STRTOD.
9002
9003 2010-04-04  Bruno Haible  <bruno@clisp.org>
9004
9005         strerror: Update documentation.
9006         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9007
9008 2010-04-04  Bruno Haible  <bruno@clisp.org>
9009
9010         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9011         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9012         _GL_CXXALIAS_SYS_CAST.
9013
9014 2010-04-04  Bruno Haible  <bruno@clisp.org>
9015
9016         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9017         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9018         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9019         REPLACE_FREXPL to 1.
9020         * doc/posix-functions/frexpl.texi: Update documentation.
9021
9022 2010-04-04  Bruno Haible  <bruno@clisp.org>
9023
9024         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9025         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9026
9027 2010-04-04  Bruno Haible  <bruno@clisp.org>
9028
9029         Implement nanosleep for native Windows.
9030         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9031
9032 2010-04-04  Bruno Haible  <bruno@clisp.org>
9033
9034         math: Fix some C++ test errors on Solaris 8.
9035         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9036
9037 2010-04-04  Bruno Haible  <bruno@clisp.org>
9038
9039         math: Fix some C++ test errors on Cygwin.
9040         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9041         truncl): Provide declaration if the system does not have it.
9042         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9043         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9044         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9045         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9046         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9047         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9048         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9049         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9050         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9051         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9052         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9053         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9054         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9055         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9056         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9057         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9059         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9060         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9061         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9062         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9063         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9064
9065 2010-04-04  Bruno Haible  <bruno@clisp.org>
9066
9067         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9068         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9069         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9070         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9071         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9072         * m4/isinf.m4 (gl_ISINF): Likewise.
9073         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9074
9075 2010-04-04  Bruno Haible  <bruno@clisp.org>
9076
9077         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9078         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9079
9080 2010-04-04  Bruno Haible  <bruno@clisp.org>
9081
9082         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9083         * modules/tmpfile (configure.ac): Update.
9084
9085         tmpfile: Fix C++ test error on mingw.
9086         * lib/stdio.in.h (tmpfile): New declaration.
9087         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9088         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9089         * modules/tmpfile (Depends-on): Add stdio.
9090         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9091         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9092         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9093         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9094         REPLACE_TMPFILE.
9095         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9096
9097 2010-04-04  Bruno Haible  <bruno@clisp.org>
9098
9099         ioctl: Fix C++ test error on mingw.
9100         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9101         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9102         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9103
9104 2010-04-03  Bruno Haible  <bruno@clisp.org>
9105
9106         wcwidth: Fix C++ test error on mingw.
9107         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9109         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9110
9111 2010-04-03  Bruno Haible  <bruno@clisp.org>
9112
9113         nanosleep: Fix C++ test error on mingw.
9114         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9115         * lib/time.in.h (nanosleep): Use modern idiom.
9116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9117         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9118         REPLACE_NANOSLEEP to 1.
9119         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9120         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9121
9122 2010-04-03  Bruno Haible  <bruno@clisp.org>
9123
9124         strptime: Fix C++ test error on mingw.
9125         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9126         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9127         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9128         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9129         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9130         not REPLACE_STRPTIME.
9131         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9132         REPLACE_STRPTIME.
9133
9134 2010-04-03  Bruno Haible  <bruno@clisp.org>
9135
9136         timegm: Fix C++ test error on mingw.
9137         * lib/time.in.h (timegm): Use modern idiom.
9138         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9139         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9140         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9141         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9142
9143 2010-04-03  Bruno Haible  <bruno@clisp.org>
9144
9145         timegm: Assume declaration if function exists.
9146         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9147         if it exists. Don't clobber ac_cv_func_timegm.
9148
9149 2010-04-03  Bruno Haible  <bruno@clisp.org>
9150
9151         time_r: Fix C++ test error on mingw.
9152         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9153         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9154         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9155         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9156         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9157
9158 2010-04-03  Bruno Haible  <bruno@clisp.org>
9159
9160         time_r: Minor updates.
9161         * modules/time_r (Description): Mention the provided functions.
9162         * lib/time_r.c: Don't include <string.h>.
9163         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9164         * doc/posix-functions/localtime_r.texi: Likewise.
9165
9166 2010-04-03  Bruno Haible  <bruno@clisp.org>
9167
9168         time: Fix regression introduced on 2010-03-08.
9169         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9170         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9171
9172 2010-04-03  Jim Meyering  <meyering@redhat.com>
9173
9174         maint.mk: don't silently disable project-specific syntax-check rules
9175         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9176         that they need to convert their project-specific syntax-check rules
9177         to use the new _sc_search_regexp.
9178
9179 2010-04-03  Bruno Haible  <bruno@clisp.org>
9180
9181         fchdir: Fix regression introduced on 2010-03-08.
9182         * lib/unistd.in.h (fchdir): Fix declaration.
9183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9185         REPLACE_FCHDIR.
9186         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9187         REPLACE_FCHDIR.
9188
9189 2010-04-03  Bruno Haible  <bruno@clisp.org>
9190
9191         getpagesize: Fix C++ test error on mingw.
9192         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9193         system does not declare the function.
9194         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9195         declared.
9196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9197         HAVE_DECL_GETPAGESIZE.
9198         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9199
9200 2010-04-03  Bruno Haible  <bruno@clisp.org>
9201
9202         stdio: Make C++ tests work on mingw.
9203         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9204         does not declare the function.
9205
9206 2010-04-03  Bruno Haible  <bruno@clisp.org>
9207
9208         ftello: Fix C++ test error on mingw.
9209         * lib/stdio.in.h (ftello): Use modern idiom.
9210         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9211         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9212         is missing and that it needs to be replaced.
9213         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9215         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9216
9217 2010-04-03  Bruno Haible  <bruno@clisp.org>
9218
9219         fseeko: Fix C++ test error on mingw.
9220         * lib/stdio.in.h (fseeko): Use modern idiom.
9221         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9222         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9223         is missing and that it needs to be replaced.
9224         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9226         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9227
9228 2010-04-03  Bruno Haible  <bruno@clisp.org>
9229
9230         mkstemp: Fix C++ test error on mingw.
9231         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9233         function is missing and that it needs to be replaced.
9234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9235         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9236
9237 2010-04-03  Bruno Haible  <bruno@clisp.org>
9238
9239         stpncpy: Fix C++ test error on mingw.
9240         * lib/string.in.h (stpncpy): Use modern idiom.
9241         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9242         function is missing and that it needs to be replaced.
9243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9244         REPLACE_STPNCPY.
9245         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9246
9247 2010-04-03  Bruno Haible  <bruno@clisp.org>
9248
9249         sys_stat: Fix C++ test error on mingw.
9250         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9251         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9252
9253 2010-04-03  Bruno Haible  <bruno@clisp.org>
9254
9255         pty: Update doc.
9256         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9257
9258 2010-04-03  Bruno Haible  <bruno@clisp.org>
9259
9260         unistd: Fix C++ test error on mingw.
9261         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9262
9263 2010-04-03  Bruno Haible  <bruno@clisp.org>
9264
9265         Update doc regarding mingw.
9266         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9267         * doc/glibc-functions/login_tty.texi: Likewise.
9268         * doc/glibc-functions/forkpty.texi: Likewise.
9269
9270 2010-04-03  Bruno Haible  <bruno@clisp.org>
9271
9272         stdlib: Avoid compilation failure of c-strtold on mingw.
9273         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9274
9275 2010-04-03  Bruno Haible  <bruno@clisp.org>
9276
9277         locale: Make C++ tests work on Cygwin and mingw.
9278         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9279         cannot provide the function.
9280         Reported by Simon Josefsson.
9281
9282 2010-04-03  Bruno Haible  <bruno@clisp.org>
9283
9284         localename: Port to MacOS X 10.6.
9285         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9286         memory layout of the locales in MacOS X 10.6 as well.
9287         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9288
9289 2010-04-02  Bruno Haible  <bruno@clisp.org>
9290
9291         gnulib-tool: Ensure that long-running tests are executed last.
9292         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9293         running tests after the one for the other tests.
9294
9295 2010-04-02  Bruno Haible  <bruno@clisp.org>
9296
9297         gnulib-tool: Ensure the tests in the main directory are executed first.
9298         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9299         start with the current directory.
9300
9301 2010-04-02  Bruno Haible  <bruno@clisp.org>
9302
9303         Tests for module 'havelib', moved here from GNU gettext.
9304         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9305         modifications.
9306         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9307         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9308         with modifications.
9309         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9310         modifications.
9311         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9312         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9313         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9314         with modifications.
9315         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9316         with modifications.
9317         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9318         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9319         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9320         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9321         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9322         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9323         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9324         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9325         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9326         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9327         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9328         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9329         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9330         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9331         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9332         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9333         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9334         with modifications.
9335         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9336         with modifications.
9337         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9338         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9339         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
9340         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
9341         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
9342         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
9343         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
9344         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
9345         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
9346         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
9347         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
9348         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
9349         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
9350         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
9351         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
9352         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
9353         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
9354         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
9355         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
9356         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
9357         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
9358         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
9359         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
9360         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
9361         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
9362         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
9363         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
9364         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
9365         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9366         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9367         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9368         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9369         * tests/havelib/rpathx/rpathx.c: New file, from
9370         gettext/autoconf-lib-link.
9371         * tests/havelib/rpathx/Makefile.am: New file, from
9372         gettext/autoconf-lib-link.
9373         * tests/havelib/rpathx/configure.ac: New file, from
9374         gettext/autoconf-lib-link with modifications.
9375         * tests/havelib/rpathy/rpathy.c: New file, from
9376         gettext/autoconf-lib-link.
9377         * tests/havelib/rpathy/Makefile.am: New file, from
9378         gettext/autoconf-lib-link.
9379         * tests/havelib/rpathy/configure.ac: New file, from
9380         gettext/autoconf-lib-link with modifications.
9381         * tests/havelib/rpathz/rpathz.c: New file, from
9382         gettext/autoconf-lib-link.
9383         * tests/havelib/rpathz/Makefile.am: New file, from
9384         gettext/autoconf-lib-link.
9385         * tests/havelib/rpathz/configure.ac: New file, from
9386         gettext/autoconf-lib-link with modifications.
9387         * tests/havelib/rpathlx/usex.c: New file, from
9388         gettext/autoconf-lib-link.
9389         * tests/havelib/rpathlx/Makefile.am: New file, from
9390         gettext/autoconf-lib-link.
9391         * tests/havelib/rpathlx/configure.ac: New file, from
9392         gettext/autoconf-lib-link with modifications.
9393         * tests/havelib/rpathly/usey.c: New file, from
9394         gettext/autoconf-lib-link.
9395         * tests/havelib/rpathly/Makefile.am: New file, from
9396         gettext/autoconf-lib-link.
9397         * tests/havelib/rpathly/configure.ac: New file, from
9398         gettext/autoconf-lib-link with modifications.
9399         * tests/havelib/rpathlz/usez.c: New file, from
9400         gettext/autoconf-lib-link.
9401         * tests/havelib/rpathlz/Makefile.am: New file, from
9402         gettext/autoconf-lib-link.
9403         * tests/havelib/rpathlz/configure.ac: New file, from
9404         gettext/autoconf-lib-link with modifications.
9405         * tests/havelib/rpathlyx/usey.c: New file, from
9406         gettext/autoconf-lib-link.
9407         * tests/havelib/rpathlyx/Makefile.am: New file, from
9408         gettext/autoconf-lib-link.
9409         * tests/havelib/rpathlyx/configure.ac: New file, from
9410         gettext/autoconf-lib-link with modifications.
9411         * tests/havelib/rpathlzyx/usez.c: New file, from
9412         gettext/autoconf-lib-link.
9413         * tests/havelib/rpathlzyx/Makefile.am: New file, from
9414         gettext/autoconf-lib-link.
9415         * tests/havelib/rpathlzyx/configure.ac: New file, from
9416         gettext/autoconf-lib-link with modifications.
9417         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
9418         with modifications.
9419
9420 2010-04-02  Bruno Haible  <bruno@clisp.org>
9421
9422         gnulib-tool: Create distributed built sources also for the tests.
9423         * gnulib-tool (func_create_testdir): Also generate distributed built
9424         sources in the tests directory.
9425
9426 2010-04-02  Bruno Haible  <bruno@clisp.org>
9427
9428         gnulib-tool: Obey user's environment variables.
9429         * gnulib-tool (func_create_testdir): When creating built sources,
9430         respect the environment variables for autoconf, automake, etc. given by
9431         the user.
9432
9433 2010-04-02  Bruno Haible  <bruno@clisp.org>
9434
9435         gnulib-tool: Provide the value of --m4-base to modules.
9436         * gnulib-tool (func_import, func_create_testdir): Emit a definition
9437         of gl_m4_base.
9438
9439 2010-04-02  Eric Blake  <eblake@redhat.com>
9440
9441         maint.mk: fix some fallout
9442         * NEWS: Document the incompatible change, and its effect on cfg.mk.
9443         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
9444
9445 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9446
9447         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
9448         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
9449         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
9450         (sc_cast_of_x_alloc_return_value): Likewise.
9451         (sc_cast_of_alloca_return_value): Likewise.
9452         (sc_space_tab): Likewise.
9453         (sc_prohibit_atoi_atof): Likewise.
9454         (sc_prohibit_magic_number_exit): Likewise.
9455         (sc_error_exit_success): Likewise.
9456         (sc_file_system): Likewise.
9457         (sc_prohibit_have_config_h): Likewise.
9458         (sc_require_config_h): Likewise.
9459         (sc_prohibit_HAVE_MBRTOWC): Likewise.
9460         (sc_obsolete_symbols): Likewise.
9461         (sc_changelog): Likewise.
9462         (sc_program_name): Likewise.
9463         (sc_the_the): Likewise.
9464         (sc_trailing_blank): Likewise.
9465         (sc_two_space_separator_in_usage): Likewise.
9466         (sc_useless_cpp_parens): Likewise.
9467         (sc_GPL_version): Likewise.
9468         (sc_GFDL_version): Likewise.
9469         (sc_texinfo_acronym): Likewise.
9470         (sc_prohibit_cvs_keyword): Likewise.
9471         (sc_prohibit_stat_st_blocks): Likewise.
9472         (sc_prohibit_S_IS_definition): Likewise.
9473         (sc_redundant_const): Likewise.
9474         (sc_makefile_TAB_only_indentation): Likewise.
9475         (sc_m4_quote_check): Likewise.
9476         (sc_makefile_path_separator_check): Likewise.
9477         (sc_copyright_check): Likewise.
9478         (sc_Wundef_boolean): Likewise.
9479         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9480
9481         maint.mk: match 0 or more whitespace-before-function-call '('
9482         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
9483         that have zero or two-and-more spaces between the function name
9484         and the open parenthesis.
9485         (sc_error_message_warn_fatal): Likewise.
9486         (sc_error_message_uppercase): Likewise.
9487         (sc_error_message_period): Likewise.
9488
9489 2010-03-31  Eric Blake  <eblake@redhat.com>
9490
9491         maint.mk: check for [ as well as test
9492         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
9493         Based on a libvirt report by Matthias Bolte.
9494
9495         gnumakefile: don't squelch _version output
9496         * top/GNUmakefile (_version): Create one-shot dependency rather
9497         than using $(shell) when version must be regenerated.
9498         (_autoreconf): Run verbosely, by default.
9499
9500         sys_time: avoid compiler warnings
9501         * lib/sys_time.in.h (includes): Ensure gcc pragma is
9502         unconditional, fixing regression from 2010-03-29.
9503         Reported by Simon Josefsson.
9504
9505 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9506
9507         maint.mk: s/_header_without_use/_sc_header_without_use/
9508         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
9509         (sc_prohibit_assert_without_use): Use the new name.
9510         (sc_prohibit_close_stream_without_use): Likewise.
9511         (sc_prohibit_getopt_without_use): Likewise.
9512         (sc_prohibit_quotearg_without_use): Likewise.
9513         (sc_prohibit_quote_without_use): Likewise.
9514         (sc_prohibit_long_options_without_use): Likewise.
9515         (sc_prohibit_inttostr_without_use): Likewise.
9516         (sc_prohibit_ignore_value_without_use): Likewise.
9517         (sc_prohibit_error_without_use): Likewise.
9518         (sc_prohibit_xalloc_without_use): Likewise.
9519         (sc_prohibit_hash_without_use): Likewise.
9520         (sc_prohibit_hash_pjw_without_use): Likewise.
9521         (sc_prohibit_safe_read_without_use): Likewise.
9522         (sc_prohibit_argmatch_without_use): Likewise.
9523         (sc_prohibit_canonicalize_without_use): Likewise.
9524         (sc_prohibit_root_dev_ino_without_use): Likewise.
9525         (sc_prohibit_openat_without_use): Likewise.
9526         (sc_prohibit_c_ctype_without_use): Likewise.
9527         (sc_prohibit_signal_without_use): Likewise.
9528         (sc_prohibit_intprops_without_use): Likewise.
9529
9530 2010-03-30  Eric Blake  <eblake@redhat.com>
9531
9532         maint: improve module indicators
9533         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
9534         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
9535         columns, and avoid extra macro expansion.
9536
9537         fdopendir: work around FreeBSD bug
9538         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9539         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
9540         * modules/dirent (Makefile.am): Substitute it.
9541         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
9542         declaration.
9543         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
9544         fix.
9545         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9546
9547 2010-03-29  Bruno Haible  <bruno@clisp.org>
9548
9549         Emit #pragma system_header after the inclusion guard, not before.
9550         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
9551         guard that spans the entire file, not before. This enables an
9552         optimization in GCC's preprocessor.
9553         * lib/ctype.in.h: Likewise.
9554         * lib/dirent.in.h: Likewise.
9555         * lib/errno.in.h: Likewise.
9556         * lib/float.in.h: Likewise.
9557         * lib/getopt.in.h: Likewise.
9558         * lib/iconv.in.h: Likewise.
9559         * lib/langinfo.in.h: Likewise.
9560         * lib/locale.in.h: Likewise.
9561         * lib/math.in.h: Likewise.
9562         * lib/netdb.in.h: Likewise.
9563         * lib/netinet_in.in.h: Likewise.
9564         * lib/pty.in.h: Likewise.
9565         * lib/sched.in.h: Likewise.
9566         * lib/se-selinux.in.h: Likewise.
9567         * lib/search.in.h: Likewise.
9568         * lib/spawn.in.h: Likewise.
9569         * lib/stdarg.in.h: Likewise.
9570         * lib/stdint.in.h: Likewise.
9571         * lib/string.in.h: Likewise.
9572         * lib/strings.in.h: Likewise.
9573         * lib/sys_file.in.h: Likewise.
9574         * lib/sys_ioctl.in.h: Likewise.
9575         * lib/sys_time.in.h: Likewise.
9576         * lib/sys_times.in.h: Likewise.
9577         * lib/sys_utsname.in.h: Likewise.
9578         * lib/sys_wait.in.h: Likewise.
9579         * lib/sysexits.in.h: Likewise.
9580         * lib/wctype.in.h: Likewise.
9581
9582 2010-03-28  James Youngman  <jay@gnu.org>
9583
9584         save-cwd: don't leak a file descriptor when the caller execs.
9585         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
9586         saved file descriptor.
9587         * modules/save-cwd (Depends-on): Depend on cloexec.
9588
9589 2010-03-29  Bruno Haible  <bruno@clisp.org>
9590
9591         Remove vestiges of fts-lgpl module.
9592         * lib/fts_.h: Assume GNULIB_FTS is 1.
9593         * lib/fts.c: Likewise.
9594         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9595
9596 2010-03-28  Bruno Haible  <bruno@clisp.org>
9597
9598         Fix definition of tests witness macro.
9599         * gnulib-tool (func_import): Fix definition of witness macro.
9600
9601 2010-03-28  Bruno Haible  <bruno@clisp.org>
9602
9603         Fix ioctl's protoype on glibc systems.
9604         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
9605         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
9606         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
9607         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
9608         signature. If not, arrange to replace the ioctl function.
9609         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9610         REPLACE_IOCTL.
9611         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
9612         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
9613         Reported by Ludovic Courtès <ludo@gnu.org>.
9614
9615 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
9616
9617         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
9618         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
9619         made it so grep -r --include=GLOB* ... did not work.
9620
9621 2010-03-26  Jim Meyering  <meyering@redhat.com>
9622             Eric Blake  <eblake@redhat.com>
9623
9624         maint.mk: prohibit use of test's -o and -a operators
9625         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
9626
9627 2010-03-28  Bruno Haible  <bruno@clisp.org>
9628
9629         Remove unused GNULIB_XYZ macro definitions.
9630         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
9631         invocation.
9632
9633 2010-03-28  Bruno Haible  <bruno@clisp.org>
9634
9635         Mark privileged tests modules.
9636         * modules/idpriv-drop-tests (Status): New section.
9637         * modules/idpriv-droptemp-tests (Status): New section.
9638
9639 2010-03-28  Bruno Haible  <bruno@clisp.org>
9640
9641         Split C++ tests into separate tests modules.
9642         * modules/dirent-c++-tests: New file, extracted from
9643         modules/dirent-tests.
9644         * modules/dirent-tests: Depend on it.
9645         * modules/fcntl-h-c++-tests: New file, extracted from
9646         modules/fcntl-h-tests.
9647         * modules/fcntl-h-tests: Depend on it.
9648         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
9649         * modules/glob-tests: Depend on it.
9650         * modules/iconv-h-c++-tests: New file, extracted from
9651         modules/iconv-h-tests.
9652         * modules/iconv-h-tests: Depend on it.
9653         * modules/langinfo-c++-tests: New file, extracted from
9654         modules/langinfo-tests.
9655         * modules/langinfo-tests: Depend on it.
9656         * modules/locale-c++-tests: New file, extracted from
9657         modules/locale-tests.
9658         * modules/locale-tests: Depend on it.
9659         * modules/math-c++-tests: New file, extracted from modules/math-tests.
9660         * modules/math-tests: Depend on it.
9661         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
9662         * modules/pty-tests: Depend on it.
9663         * modules/search-c++-tests: New file, extracted from
9664         modules/search-tests.
9665         * modules/search-tests: Depend on it.
9666         * modules/signal-c++-tests: New file, extracted from
9667         modules/signal-tests.
9668         * modules/signal-tests: Depend on it.
9669         * modules/spawn-c++-tests: New file, extracted from
9670         modules/spawn-tests.
9671         * modules/spawn-tests: Depend on it.
9672         * modules/stdio-c++-tests: New file, extracted from
9673         modules/stdio-tests.
9674         * modules/stdio-tests: Depend on it.
9675         * modules/stdlib-c++-tests: New file, extracted from
9676         modules/stdlib-tests.
9677         * modules/stdlib-tests: Depend on it.
9678         * modules/string-c++-tests: New file, extracted from
9679         modules/string-tests.
9680         * modules/string-tests: Depend on it.
9681         * modules/sys_ioctl-c++-tests: New file, extracted from
9682         modules/sys_ioctl-tests.
9683         * modules/sys_ioctl-tests: Depend on it.
9684         * modules/sys_select-c++-tests: New file, extracted from
9685         modules/sys_select-tests.
9686         * modules/sys_select-tests: Depend on it.
9687         * modules/sys_socket-c++-tests: New file, extracted from
9688         modules/sys_socket-tests.
9689         * modules/sys_socket-tests: Depend on it.
9690         * modules/sys_stat-c++-tests: New file, extracted from
9691         modules/sys_stat-tests.
9692         * modules/sys_stat-tests: Depend on it.
9693         * modules/sys_time-c++-tests: New file, extracted from
9694         modules/sys_time-tests.
9695         * modules/sys_time-tests: Depend on it.
9696         * modules/time-c++-tests: New file, extracted from modules/time-tests.
9697         * modules/time-tests: Depend on it.
9698         * modules/unistd-c++-tests: New file, extracted from
9699         modules/unistd-tests.
9700         * modules/unistd-tests: Depend on it.
9701         * modules/wchar-c++-tests: New file, extracted from
9702         modules/wchar-tests.
9703         * modules/wchar-tests: Depend on it.
9704         * modules/wctype-c++-tests: New file, extracted from
9705         modules/wctype-tests.
9706         * modules/wctype-tests: Depend on it.
9707         Reported by Simon Josefsson.
9708
9709 2010-03-28  Bruno Haible  <bruno@clisp.org>
9710
9711         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
9712         * gnulib-tool (func_exists_module): New function, extracted from
9713         func_verify_module.
9714         (func_verify_module): Use it.
9715         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
9716         'foo' only if 'foo' exists.
9717         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
9718         module.
9719
9720 2010-03-28  Bruno Haible  <bruno@clisp.org>
9721
9722         gnulib-tool: Add support for special categories of tests.
9723         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
9724         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
9725         (func_usage): Document them.
9726         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
9727         inc_unportable_tests, inc_all_tests): New variables.
9728         (func_acceptable): Consider these variables.
9729         (func_modules_transitive_closure): Make it work when the 'Status' field
9730         consists of multiple words.
9731         (func_import): Store and restore the values of inc_cxx_tests,
9732         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
9733         inc_all_tests in gnulib-comp.m4.
9734         (func_create_testdir): Set inc_all_tests to true.
9735         * doc/gnulib.texi (Extra tests modules): New section.
9736         Suggested by Jim Meyering.
9737
9738 2010-03-28  Bruno Haible  <bruno@clisp.org>
9739
9740         ansi-c++-opt: Allow turning off the C++ build by default.
9741         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
9742         gl_CXX_CHOICE_DEFAULT_NO is defined.
9743         Requested by Eric Blake.
9744
9745 2010-03-28  Bruno Haible  <bruno@clisp.org>
9746
9747         unistd: Avoid #define replacements in C++ mode.
9748         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9749         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9750         setsockopt, shutdown, select): In C++, attach a warning to the function
9751         if possible, rather than #defining the symbol to a dysfunctional alias.
9752         Reported by John W. Eaton <jwe@gnu.org>.
9753
9754 2010-03-28  Bruno Haible  <bruno@clisp.org>
9755
9756         Fix link errors on mingw.
9757         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
9758         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
9759         $(LIBSOCKET).
9760         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
9761         $(LIBSOCKET).
9762
9763 2010-03-28  Bruno Haible  <bruno@clisp.org>
9764             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9765
9766         lib-ignore: Determine different options for different compilers.
9767         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
9768         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
9769         Add comments.
9770         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
9771         * NEWS: Mention the change.
9772
9773 2010-03-27  Bruno Haible  <bruno@clisp.org>
9774
9775         Remove unused GNULIB_XYZ macro definitions.
9776         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9777         * modules/fseek (configure.ac): Likewise.
9778         * modules/ioctl (configure.ac): Likewise.
9779         * modules/open (configure.ac): Likewise.
9780         * modules/stdlib-safer (configure.ac): Likewise.
9781
9782 2010-03-27  Bruno Haible  <bruno@clisp.org>
9783
9784         Add a remark about certain modules.
9785         * modules/malloc (Comment): New section.
9786         * modules/realloc (Comment): Likewise.
9787         * modules/sigpipe (Comment): Likewise.
9788
9789 2010-03-27  Bruno Haible  <bruno@clisp.org>
9790
9791         Resolve conflict between the two kinds of module indicators.
9792         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
9793         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
9794         * modules/canonicalize (configure.ac): Invoke
9795         gl_MODULE_INDICATOR_FOR_TESTS.
9796         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
9797         GNULIB_XYZ.
9798         * tests/test-dirent-c++.cc: Likewise.
9799         * tests/test-dirent-safer.c: Likewise.
9800         * tests/test-dup2.c: Likewise.
9801         * tests/test-fchdir.c: Likewise.
9802         * tests/test-fcntl-h-c++.cc: Likewise.
9803         * tests/test-getopt.c: Likewise.
9804         * tests/test-getopt.h: Likewise.
9805         * tests/test-langinfo-c++.cc: Likewise.
9806         * tests/test-locale-c++.cc: Likewise.
9807         * tests/test-math-c++.cc: Likewise.
9808         * tests/test-pty-c++.cc: Likewise.
9809         * tests/test-search-c++.cc: Likewise.
9810         * tests/test-signal-c++.cc: Likewise.
9811         * tests/test-spawn-c++.cc: Likewise.
9812         * tests/test-stdio-c++.cc: Likewise.
9813         * tests/test-stdlib-c++.cc: Likewise.
9814         * tests/test-string-c++.cc: Likewise.
9815         * tests/test-sys_ioctl-c++.cc: Likewise.
9816         * tests/test-sys_select-c++.cc: Likewise.
9817         * tests/test-sys_socket-c++.cc: Likewise.
9818         * tests/test-sys_stat-c++.cc: Likewise.
9819         * tests/test-sys_time-c++.cc: Likewise.
9820         * tests/test-time-c++.cc: Likewise.
9821         * tests/test-unistd-c++.cc: Likewise.
9822         * tests/test-wchar-c++.cc: Likewise.
9823         * tests/uninorm/test-u8-nfc.c: Likewise.
9824         * tests/uninorm/test-u8-nfd.c: Likewise.
9825         * tests/uninorm/test-u8-nfkc.c: Likewise.
9826         * tests/uninorm/test-u8-nfkd.c: Likewise.
9827         * tests/uninorm/test-u16-nfc.c: Likewise.
9828         * tests/uninorm/test-u16-nfd.c: Likewise.
9829         * tests/uninorm/test-u16-nfkc.c: Likewise.
9830         * tests/uninorm/test-u16-nfkd.c: Likewise.
9831         * tests/uninorm/test-u32-nfc.c: Likewise.
9832         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9833         * tests/uninorm/test-u32-nfd.c: Likewise.
9834         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9835         * tests/uninorm/test-u32-nfkc.c: Likewise.
9836         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9837         * tests/uninorm/test-u32-nfkd.c: Likewise.
9838         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9839         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9840
9841 2010-03-27  Bruno Haible  <bruno@clisp.org>
9842
9843         Distinguish two kinds of module indicators.
9844         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
9845         gl_MODULE_INDICATOR.
9846         (gl_MODULE_INDICATOR): New macro.
9847         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9848         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
9849         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9850         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9851         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9852         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9853         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9854         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9855         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9856         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9857         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9858         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9860         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
9861         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
9862         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
9863         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
9864         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
9865         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
9866         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
9867         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
9868         * modules/cloexec (configure.ac): Likewise.
9869         * modules/getopt-gnu (configure.ac): Likewise.
9870         * modules/uninorm/u8-normalize (configure.ac): Likewise.
9871         * modules/uninorm/u16-normalize (configure.ac): Likewise.
9872         * modules/uninorm/u32-normalize (configure.ac): Likewise.
9873         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
9874
9875 2010-03-27  Bruno Haible  <bruno@clisp.org>
9876
9877         New module description field 'Comment'.
9878         * gnulib-tool: New option --extract-comment.
9879         (func_usage): Document it.
9880         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
9881         (func_get_comment): New function.
9882         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
9883
9884 2010-03-27  Bruno Haible  <bruno@clisp.org>
9885
9886         Addendum to 2010-02-07 commit.
9887         * gnulib-tool (func_usage): Document --extract-applicability option.
9888
9889 2010-03-27  Bruno Haible  <bruno@clisp.org>
9890
9891         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
9892         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
9893         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
9894         rather than link errors.
9895
9896 2010-03-27  Bruno Haible  <bruno@clisp.org>
9897
9898         Avoid side effects from tests-related modules on the compilation of lib.
9899         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
9900         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
9901         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
9902         parameter. Emit into AM_CPPFLAGS a definition of the designated C
9903         macro.
9904         (func_import): Define a witness macro. Assign it a value that depends
9905         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
9906         tests-related modules.
9907         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
9908         Reported by Jim Meyering.
9909
9910 2010-03-27  Bruno Haible  <bruno@clisp.org>
9911
9912         Factorize common .m4 code.
9913         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
9914         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
9915         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
9916         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
9917         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9918         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
9919         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
9920         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9921         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9922         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9923         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
9924         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9925         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9926         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9927         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9928         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
9929         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9930         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9932         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
9933         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
9934         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
9935         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
9936         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
9937         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
9938         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
9939         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
9940         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
9941         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
9942         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
9943         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
9944         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
9945
9946 2010-03-27  Bruno Haible  <bruno@clisp.org>
9947
9948         Fix a compilation error on Cygwin with g++ >= 4.3.
9949         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
9950         if it is undefined or if we alias it to chmod.
9951         (lstat): Don't warn about the use of this function if it is undefined
9952         or if we alias it to stat.
9953         Reported by Simon Josefsson.
9954
9955 2010-03-27  Bruno Haible  <bruno@clisp.org>
9956
9957         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
9958         * modules/getlogin (configure.ac): Update.
9959
9960         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
9961         * modules/getlogin_r (configure.ac): Update.
9962
9963         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
9964         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
9965         * modules/inet_ntop (configure.ac): Update.
9966
9967         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
9968         * modules/inet_pton (configure.ac): Update.
9969
9970         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
9971         * modules/mbslen (configure.ac): Update.
9972
9973         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
9974         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
9975         * modules/forkpty (configure.ac): Update.
9976         * modules/openpty (configure.ac): Update.
9977
9978 2010-03-26  Simon Josefsson  <simon@josefsson.org>
9979
9980         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
9981         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
9982
9983 2010-03-25  Eric Blake  <eblake@redhat.com>
9984
9985         maint: use pragma consistently across replacement headers
9986         * lib/ctype.in.h (system_header): Hoist for consistent placement.
9987         * lib/dirent.in.h (system_header): Likewise.
9988         * lib/errno.in.h (system_header): Likewise.
9989         * lib/float.in.h (system_header): Likewise.
9990         * lib/getopt.in.h (system_header): Likewise.
9991         * lib/iconv.in.h (system_header): Likewise.
9992         * lib/inttypes.in.h (system_header): Likewise.
9993         * lib/langinfo.in.h (system_header): Likewise.
9994         * lib/locale.in.h (system_header): Likewise.
9995         * lib/math.in.h (system_header): Likewise.
9996         * lib/netdb.in.h (system_header): Likewise.
9997         * lib/netinet_in.in.h (system_header): Likewise.
9998         * lib/pty.in.h (system_header): Likewise.
9999         * lib/sched.in.h (system_header): Likewise.
10000         * lib/se-selinux.in.h (system_header): Likewise.
10001         * lib/search.in.h (system_header): Likewise.
10002         * lib/spawn.in.h (system_header): Likewise.
10003         * lib/stdarg.in.h (system_header): Likewise.
10004         * lib/stdint.in.h (system_header): Likewise.
10005         * lib/string.in.h (system_header): Likewise.
10006         * lib/strings.in.h (system_header): Likewise.
10007         * lib/sys_file.in.h (system_header): Likewise.
10008         * lib/sys_ioctl.in.h (system_header): Likewise.
10009         * lib/sys_socket.in.h (system_header): Likewise.
10010         * lib/sys_times.in.h (system_header): Likewise.
10011         * lib/sys_utsname.in.h (system_header): Likewise.
10012         * lib/sys_wait.in.h (system_header): Likewise.
10013         * lib/sysexits.in.h (system_header): Likewise.
10014         * lib/unistd.in.h (system_header): Likewise.
10015         * lib/wctype.in.h (system_header): Likewise.
10016
10017         arpa/inet: fix mingw compilation warning
10018         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10019         Reported by Matthew Bolte.
10020
10021 2010-03-25  Bruno Haible  <bruno@clisp.org>
10022
10023         Avoid collision between gnulib wrapper and libintl wrapper.
10024         * lib/printf.c (printf): Don't define if a printf wrapper is already
10025         defined in intl/printf.c.
10026         Reported by Michel Boaventura <michel@michelboaventura.com>.
10027
10028 2010-03-25  Bruno Haible  <bruno@clisp.org>
10029
10030         Use ANSI C.
10031         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10032
10033 2010-03-25  Bruno Haible  <bruno@clisp.org>
10034
10035         Minor formatting changes.
10036         * lib/acosl.c: Insert space before function argument list.
10037         * lib/argz.c: Likewise.
10038         * lib/asinl.c: Likewise.
10039         * lib/expl.c: Likewise.
10040         * lib/gen-uni-tables.c: Likewise.
10041         * lib/gettext.h: Likewise.
10042         * lib/glthread/lock.h: Likewise.
10043         * lib/tanl.c: Likewise.
10044         * lib/uniname/uniname.c: Likewise.
10045         * tests/test-idpriv-drop.c: Likewise.
10046         * tests/test-idpriv-droptemp.c: Likewise.
10047         * tests/test-lock.c: Likewise.
10048         * tests/test-tls.c: Likewise.
10049         * lib/argp-help.c: Insert space before function-like macro argument
10050         list.
10051         * lib/memcmp.c: Likewise.
10052         * tests/test-base64.c: Likewise.
10053         * lib/localename.c: Insert space before sizeof's argument list.
10054         * lib/safe-alloc.h: Likewise.
10055         * lib/file-set.h: Insert space before macro argument list.
10056         * tests/test-argp.c: Likewise.
10057         * lib/argp-namefrob.h: Insert space before function parameter list.
10058         * lib/getaddrinfo.c: Likewise.
10059         * lib/netdb.in.h: Likewise.
10060         * lib/parse-duration.h: Likewise.
10061         * lib/parse-duration.c: Likewise.
10062         * lib/poll.c: Likewise.
10063         * lib/select.c: Likewise.
10064         * lib/trim.h: Likewise.
10065         * tests/test-usleep.c: Likewise.
10066         * lib/ldexpl.c: Insert space before function parameter list and before
10067         function argument list.
10068         * lib/logl.c: Likewise.
10069         * lib/sqrtl.c: Likewise.
10070         * lib/trim.c: Likewise.
10071         * lib/cosl.c: Use GNU style indentation. Insert space before function
10072         argument list.
10073         * lib/sinl.c: Likewise.
10074         * lib/tsearch.c: Insert space after 'for'.
10075         Reported by Jim Meyering.
10076
10077 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10078
10079         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10080         config header before grepping, as it's not present before
10081         autoreconf/configure are run.  Reported by Simon Josefsson.
10082
10083 2010-03-23  Bruno Haible  <bruno@clisp.org>
10084
10085         pt_chown: Make it work with automake < 1.11.
10086         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10087         Reported by Simon Josefsson.
10088
10089 2010-03-23  Bruno Haible  <bruno@clisp.org>
10090
10091         pt_chown: Don't depend on GPLed modules.
10092         * lib/pt_chown.c: Don't include idpriv.h.
10093         (main): Don't drop privileges.
10094         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10095         Reported by Simon Josefsson.
10096
10097 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10098
10099         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10100         suggestions from karl@freefriends.org (Karl Berry).
10101
10102 2010-03-22  Eric Blake  <eblake@redhat.com>
10103
10104         gethostname: further tweaks
10105         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10106         are overriding gethostname.
10107         Suggested by Bruno Haible.
10108
10109 2010-03-21  Bruno Haible  <bruno@clisp.org>
10110
10111         Fix comments.
10112         * lib/forkpty.c (rpl_forkpty): Fix comment.
10113         * lib/openpty.c (rpl_openpty): Likewise.
10114         Reported by Eric Blake.
10115
10116 2010-03-22  Eric Blake  <eblake@redhat.com>
10117
10118         gethostname: fix build on mingw
10119         * lib/unistd.in.h (includes): Work around fact that mingw
10120         <winsock2.h> re-includes <unistd.h>, by avoiding any
10121         redeclarations if we are being included by <winsock2.h>.
10122         Reported by Matthias Bolte.
10123
10124 2010-03-21  Bruno Haible  <bruno@clisp.org>
10125
10126         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10127         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10128         modifications.
10129         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10130         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10131         provide the replacement.
10132         * modules/forkpty (Depends-on): Add openpty, login_tty.
10133         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10134         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10135         * doc/glibc-functions/forkpty.texi: More supported platforms.
10136         * config/srclist.txt: Add forkpty.c (commented).
10137
10138 2010-03-21  Bruno Haible  <bruno@clisp.org>
10139
10140         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10141         (Makefile.am): Verify that PTY_LIB is defined.
10142
10143         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10144
10145 2010-03-21  Bruno Haible  <bruno@clisp.org>
10146
10147         Tests for module 'login_tty'.
10148         * modules/login_tty-tests: New file.
10149         * tests/test-login_tty.c: New file.
10150
10151         New module 'login_tty'.
10152         * lib/login_tty.c: New file.
10153         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10154         * modules/login_tty: New file.
10155         * doc/glibc-functions/login_tty.texi: Mention the new module.
10156
10157 2010-03-21  Bruno Haible  <bruno@clisp.org>
10158
10159         login_tty: Documentation.
10160         * doc/glibc-functions/login_tty.texi: New file.
10161         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10162
10163 2010-03-21  Bruno Haible  <bruno@clisp.org>
10164
10165         pty: Consistent macro naming.
10166         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10167         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10168         * modules/pty (configure.ac): Update.
10169
10170 2010-03-21  Bruno Haible  <bruno@clisp.org>
10171
10172         Tests for openpty: Make stricter.
10173         * tests/test-openpty.c (main): Add test of canonical processing and
10174         erase.
10175         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10176
10177         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10178         * lib/openpty.c (openpty): New replacement function.
10179         * lib/pty.in.h: Include <termios.h>.
10180         (openpty): Update declaration. Add comments.
10181         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10182         is not declared, arrange to provide the replacement. Check for _getpty
10183         and posix_openpt.
10184         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10185         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10186         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10187         * modules/pty-tests (test_pty_c___LDADD): New variable.
10188         * doc/glibc-functions/openpty.texi: More supported platforms.
10189
10190 2010-03-21  Bruno Haible  <bruno@clisp.org>
10191
10192         setenv: Tweaks.
10193         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10194         the test program.
10195         * doc/posix-functions/setenv.texi: Update platforms list.
10196
10197 2010-03-21  Bruno Haible  <bruno@clisp.org>
10198
10199         New module 'unlockpt'.
10200         * lib/unlockpt.c: New file, from glibc with modifications.
10201         * m4/unlockpt.m4: New file.
10202         * modules/unlockpt: New file.
10203         * lib/stdlib.in.h (unlockpt): New declaration.
10204         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10205         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10206         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10207         HAVE_UNLOCKPT.
10208         * doc/posix-functions/unlockpt.texi: Mention the new module.
10209         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10210         * config/srclist.txt: Add unlockpt.c (commented).
10211
10212 2010-03-21  Jim Meyering  <meyering@redhat.com>
10213
10214         maint.mk: prohibit inclusion of "intprops.h" without use
10215         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10216
10217 2010-03-21  Bruno Haible  <bruno@clisp.org>
10218
10219         New module 'grantpt'.
10220         * lib/grantpt.c: New file, from glibc with modifications.
10221         * m4/grantpt.m4: New file.
10222         * modules/grantpt: New file.
10223         * lib/stdlib.in.h (grantpt): New declaration.
10224         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10225         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10226         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10227         HAVE_GRANTPT.
10228         * doc/posix-functions/grantpt.texi: Mention the new module.
10229         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10230         * config/srclist.txt: Add grantpt.c (commented).
10231
10232 2010-03-21  Bruno Haible  <bruno@clisp.org>
10233
10234         New module 'pt_chown'.
10235         * lib/pt_chown.c: New file, from glibc with modifications.
10236         * lib/pty-private.h: New file, from glibc with modifications.
10237         * modules/pt_chown: New file.
10238         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10239
10240 2010-03-21  Bruno Haible  <bruno@clisp.org>
10241
10242         Tests for module 'ptsname'.
10243         * modules/ptsname-tests: New file.
10244         * tests/test-ptsname.c: New file.
10245
10246         New module 'ptsname'.
10247         * lib/ptsname.c: New file, from glibc with modifications.
10248         * m4/ptsname.m4: New file.
10249         * modules/ptsname: New file.
10250         * lib/stdlib.in.h (ptsname): New declaration.
10251         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10252         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10253         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10254         HAVE_PTSNAME.
10255         * doc/posix-functions/ptsname.texi: Mention the new module.
10256         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10257         * config/srclist.txt: Add ptsname.c (commented).
10258
10259 2010-03-21  Bruno Haible  <bruno@clisp.org>
10260
10261         Tests for module 'ttyname_r'.
10262         * modules/ttyname_r-tests: New file.
10263         * tests/test-ttyname_r.c: New file.
10264
10265         New module 'ttyname_r'.
10266         * lib/ttyname_r.c: New file.
10267         * m4/ttyname_r.m4: New file.
10268         * modules/ttyname_r: New file.
10269         * lib/unistd.in.h (ttyname_r): New declaration.
10270         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10271         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10272         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10273         HAVE_TTYNAME_R.
10274         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10275         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10276
10277 2010-03-20  Bruno Haible  <bruno@clisp.org>
10278
10279         signal: Undefine macro definitions in C++ mode.
10280         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10281         sigfillset): Undefine macro definitions from the system header in C++
10282         mode.
10283         Reported by John W. Eaton <jwe@gnu.org>.
10284
10285 2010-03-20  Bruno Haible  <bruno@clisp.org>
10286
10287         Ensure no #include statements inside extern "C" { ... }.
10288         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10289         contain #include statements.
10290         * lib/time.in.h: Likewise.
10291
10292 2010-03-20  Bruno Haible  <bruno@clisp.org>
10293
10294         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10295         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10296         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10297         Reported by John W. Eaton <jwe@gnu.org>.
10298
10299 2010-03-20  Bruno Haible  <bruno@clisp.org>
10300
10301         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10302         Reported by Jim Meyering.
10303
10304 2010-03-20  Bruno Haible  <bruno@clisp.org>
10305
10306         pipe: Set errno upon failure.
10307         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10308         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10309         errno value in error message.
10310
10311 2010-03-20  Bruno Haible  <bruno@clisp.org>
10312             Jim Meyering  <meyering@redhat.com>
10313
10314         lchown: Avoid "unused variable" warning.
10315         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10316
10317 2010-03-20  Bruno Haible  <bruno@clisp.org>
10318
10319         Work around unlink() bug on MacOS X 10.5.6.
10320         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10321         attempting to unlink a parent directory.
10322         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10323         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10324         activate for the replacement function.
10325         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10326
10327 2010-03-20  Bruno Haible  <bruno@clisp.org>
10328
10329         Fix link errors on Solaris 8.
10330         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10331         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10332
10333 2010-03-19  Jim Meyering  <meyering@redhat.com>
10334
10335         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10336         The _LIBC implementation of build_range_exp correctly honors the
10337         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10338         However, the non-_LIBC implementation would ignore that syntax-bit
10339         flag and return REG_ERANGE unconditionally.
10340         This change makes it honor that flag.
10341         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
10342         Make two pointer parameters "const".
10343         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
10344         (parse_bracket_exp): Update caller.
10345
10346         regex.m4: correct the reversed range endpoint ([b-a]) test
10347         * m4/regex.m4: When requiring that [b-a] evoke failure,
10348         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
10349         test pass once again for x86-based systems.
10350
10351 2010-03-19  Bruno Haible  <bruno@clisp.org>
10352
10353         scandir: Fix link error on Solaris 8.
10354         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
10355         macros.
10356
10357 2010-03-19  Bruno Haible  <bruno@clisp.org>
10358
10359         getusershell: Fix documentation.
10360         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
10361         module.
10362         * doc/glibc-functions/setusershell.texi: Likewise.
10363
10364         getusershell: Provide declaration, missing on Solaris 9.
10365         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10366         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10367         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10368         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10370         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10371         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10372         HAVE_GETUSERSHELL.
10373         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10374
10375 2010-03-19  Bruno Haible  <bruno@clisp.org>
10376
10377         wctype: Provide iswblank function.
10378         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10379         exists and is fine.
10380         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10381         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10382         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10383         * doc/posix-functions/iswblank.texi: Update.
10384
10385 2010-03-19  Bruno Haible  <bruno@clisp.org>
10386
10387         Tests of module 'pty' in C++ mode.
10388         * modules/pty-tests: New file.
10389         * tests/test-pty-c++.cc: New file.
10390         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10391
10392 2010-03-19  Eric Blake  <eblake@redhat.com>
10393
10394         logb: fix documentation
10395         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10396         1.5 declaration bug.
10397
10398         forkpty, openpty: prefer glibc's const-safe prototype
10399         * lib/forkpty.c (rpl_forkpty): New file.
10400         * lib/openpty.c (rpl_openpty): Likewise.
10401         * modules/forkpty (Files): Distribute it.
10402         * modules/openpty (Files): Likewise.
10403         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10404         check...
10405         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10406         replacement for for non-const BSD signature.
10407         * modules/pty (Makefile.am): Substitute witnesses.
10408         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10409         * tests/test-forkpty.c: Update signature check.
10410         * tests/test-openpty.c: Likewise.
10411         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
10412         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10413
10414         forkpty, openpty: split functions into new modules
10415         * modules/pty (Makefile.am): Substitute new witnesses.
10416         (Libraries): Move library detection...
10417         * modules/forkpty: ...into new module.
10418         * modules/openpty: Another new module.
10419         * modules/pty-tests: Rename and split...
10420         * modules/forkpty-tests: ...to this...
10421         * modules/openpty-tests: ...and this.
10422         * tests/test-pty.c: Rename and split...
10423         * tests/test-forkpty.c: ...to this...
10424         * tests/test-openpty.c: ...and this.
10425         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
10426         (gl_PTY): Split library searching...
10427         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
10428         (gl_FORKPTY, gl_OPENPTY): New macros.
10429         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
10430         * NEWS: Mention the split.
10431         * MODULES.html.sh (Misc): Document the modules.
10432         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
10433         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10434
10435         pty: improve replacement header
10436         * lib/pty.in.h: New file.
10437         * modules/pty (Files): Ship it.
10438         (Makefile.am): Always build replacement.
10439         * m4/pty.m4: Rename...
10440         * m4/pty_h.m4: ...to this.
10441         (gl_PTY): Modernize setting of witness macros; update check of
10442         forkpty to take proper advantage of cache.
10443         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
10444
10445         getopt: avoid compiler warning
10446         * lib/getopt.c (attribute_hidden): Remove unused macro.
10447
10448 2010-03-18  Bruno Haible  <bruno@clisp.org>
10449
10450         Fix link errors on Solaris 8.
10451         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
10452         * modules/search-tests (test_search_c___LDADD): Likewise.
10453         * modules/signal-tests (test_signal_c___LDADD): Likewise.
10454         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
10455         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
10456         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
10457         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
10458         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
10459         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
10460
10461 2010-03-18  Bruno Haible  <bruno@clisp.org>
10462
10463         Fix bug introduced on 2010-03-14.
10464         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
10465         (gl_SPAWN_H): Require it.
10466         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
10467         Reported by Simon Josefsson.
10468
10469 2010-03-18  Bruno Haible  <bruno@clisp.org>
10470
10471         Fix typo introduced on 2009-12-31.
10472         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
10473         posix_spawn_file_actions_adddup2.
10474
10475 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
10476         and Eric Blake  <eblake@redhat.com>
10477
10478         test-vc-list-files-git: make more robust
10479         * tests/test-vc-list-files-git.sh: Unset problematic environment
10480         variables.  Chain commands together.
10481
10482 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
10483
10484         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
10485         `AC_CHECK_DECL' invocation.
10486
10487 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
10488
10489         * lib/inttostr.c (inttostr): Make sure the invocation of verify
10490         appears before executable statements. Suggested by Petr Sumbera
10491         <Petr.Sumbera@Sun.COM>.
10492
10493 2010-03-14  Bruno Haible  <bruno@clisp.org>
10494
10495         * tests/test-flock.c (test_exclusive): Comment out a test that causes
10496         portability problems. Instead use a simpler test.
10497         (main): Check that invalid arguments are rejected only on Linux.
10498
10499 2010-03-14  Bruno Haible  <bruno@clisp.org>
10500
10501         Fix bug introduced on 2009-12-31.
10502         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10503         gl_PREREQ_SYS_H_WINSOCK2 always.
10504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
10505         SYS_SOCKET_H variable.
10506         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10507         Update comments.
10508         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
10509         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10510         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10511         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10512         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10513
10514 2010-03-14  Bruno Haible  <bruno@clisp.org>
10515
10516         Fix values returned by sinl, cosl.
10517         * lib/trigl.h: Add specification comments.
10518         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
10519         that combines the values from the precomputed table with the values of
10520         the Chebyshev polynomials.
10521
10522 2010-03-14  Bruno Haible  <bruno@clisp.org>
10523
10524         Fix compilation error when modules 'posix_spawn[p]' are not used.
10525         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
10526         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
10527
10528 2010-03-14  Bruno Haible  <bruno@clisp.org>
10529
10530         Fix compilation error on mingw when module 'time_r' is not used.
10531         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
10532         is 1.
10533         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
10534         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10535         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
10536         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
10537
10538 2010-03-14  Bruno Haible  <bruno@clisp.org>
10539
10540         Fix compilation error with Sun C.
10541         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
10542         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
10543         instead of GCC specific ULONG_LONG_MAX.
10544         * lib/xstrtoll.c: Likewise.
10545         * lib/xstrtoull.c: Likewise.
10546
10547 2010-03-13  Bruno Haible  <bruno@clisp.org>
10548
10549         Allow the user to disable C++ code and tests.
10550         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
10551         (gl_PROG_ANSI_CXX): Require it.
10552
10553 2010-03-13  Bruno Haible  <bruno@clisp.org>
10554
10555         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10556         cases.
10557
10558 2010-03-13  Bruno Haible  <bruno@clisp.org>
10559
10560         Test that gnulib does not break the standard C++ headers.
10561         * tests/test-locale-c++2.cc: New file.
10562         * modules/locale-tests (Files): Add it.
10563         (Makefile.am): Compile it for test-locale-c++.
10564         * tests/test-math-c++2.cc: New file.
10565         * modules/math-tests (Files): Add it.
10566         (Makefile.am): Compile it for test-math-c++.
10567         * tests/test-signal-c++2.cc: New file.
10568         * modules/signal-tests (Files): Add it.
10569         (Makefile.am): Compile it for test-signal-c++.
10570         * tests/test-stdio-c++2.cc: New file.
10571         * modules/stdio-tests (Files): Add it.
10572         (Makefile.am): Compile it for test-stdio-c++.
10573         * tests/test-stdlib-c++2.cc: New file.
10574         * modules/stdlib-tests (Files): Add it.
10575         (Makefile.am): Compile it for test-stdlib-c++.
10576         * tests/test-string-c++2.cc: New file.
10577         * modules/string-tests (Files): Add it.
10578         (Makefile.am): Compile it for test-string-c++.
10579         * tests/test-time-c++2.cc: New file.
10580         * modules/time-tests (Files): Add it.
10581         (Makefile.am): Compile it for test-time-c++.
10582         Reported by John W. Eaton <jwe@gnu.org>.
10583
10584 2010-03-13  Bruno Haible  <bruno@clisp.org>
10585
10586         * gnulib-tool (func_usage): Clarify which options are available for
10587         --create-testdir and --create-megatestdir.
10588
10589 2010-03-13  Bruno Haible  <bruno@clisp.org>
10590
10591         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
10592         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
10593         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
10594         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10595         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
10596         when appropriate.
10597         Reported by Jim Meyering.
10598
10599 2010-03-12  Simon Josefsson  <simon@josefsson.org>
10600
10601         * gnulib-tool (func_import): Explain origin of code.
10602
10603 2010-03-12  Bruno Haible  <bruno@clisp.org>
10604
10605         Fix problem with automake's definition of CXXLINK.
10606         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
10607         Reported by Simon Josefsson and Ludovic Courtès.
10608
10609 2010-03-12  Bruno Haible  <bruno@clisp.org>
10610
10611         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
10612         stable releases.
10613
10614 2010-03-11  Bruno Haible  <bruno@clisp.org>
10615
10616         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
10617         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
10618         whether the system provides one variant or multiple variants of the
10619         function.
10620         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
10621         C++ compilers.
10622         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
10623         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
10624         Reported by Jim Meyering.
10625
10626 2010-03-09  Simon Josefsson  <simon@josefsson.org>
10627
10628         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
10629
10630 2010-03-08  Bruno Haible  <bruno@clisp.org>
10631
10632         gnulib-tool: Add support for --libtool in --create-testdir.
10633         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
10634         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
10635
10636 2010-03-08  Eric Blake  <eblake@redhat.com>
10637
10638         gnulib-tool.texi: mention possibility of git submodule
10639         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
10640         submodules.
10641         * doc/.gitignore: Ignore another generated file.
10642
10643 2010-03-08  Karl Berry  <karl@gnu.org>
10644
10645         * doc/gnulib-tool.texi (VCS Issues): Mention third option
10646         of committing gnulib files while skipping others.
10647
10648 2010-03-07  Bruno Haible  <bruno@clisp.org>
10649
10650         Tests of module 'wctype' in C++ mode.
10651         * tests/test-wctype-c++.cc: New file.
10652         * modules/wctype-tests (Files): Add it and tests/signature.h.
10653         (Depends-on): Add ansi-c++-opt.
10654         (Makefile.am): Arrange to compile and run test-wctype-c++.
10655
10656         Tests of module 'wchar' in C++ mode.
10657         * tests/test-wchar-c++.cc: New file.
10658         * modules/wchar-tests (Files): Add it and tests/signature.h.
10659         (Depends-on): Add ansi-c++-opt.
10660         (Makefile.am): Arrange to compile and run test-wchar-c++.
10661         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
10662         gl_MODULE_INDICATOR.
10663
10664         Tests of module 'unistd' in C++ mode.
10665         * tests/test-unistd-c++.cc: New file.
10666         * modules/unistd-tests (Files): Add it and tests/signature.h.
10667         (Depends-on): Add ansi-c++-opt.
10668         (Makefile.am): Arrange to compile and run test-unistd-c++.
10669         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
10670         gl_MODULE_INDICATOR.
10671
10672         Tests of module 'time' in C++ mode.
10673         * tests/test-time-c++.cc: New file.
10674         * modules/time-tests (Files): Add it and tests/signature.h.
10675         (Depends-on): Add ansi-c++-opt.
10676         (Makefile.am): Arrange to compile and run test-time-c++.
10677         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10678
10679         Tests of module 'sys_time' in C++ mode.
10680         * tests/test-sys_time-c++.cc: New file.
10681         * modules/sys_time-tests (Files): Add it and tests/signature.h.
10682         (Depends-on): Add ansi-c++-opt.
10683         (Makefile.am): Arrange to compile and run test-sys_time-c++.
10684         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
10685         gl_MODULE_INDICATOR.
10686
10687         Tests of module 'sys_stat' in C++ mode.
10688         * tests/test-sys_stat-c++.cc: New file.
10689         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
10690         (Depends-on): Add ansi-c++-opt.
10691         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
10692         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
10693         gl_MODULE_INDICATOR.
10694
10695         Tests of module 'sys_socket' in C++ mode.
10696         * tests/test-sys_socket-c++.cc: New file.
10697         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
10698         (Depends-on): Add ansi-c++-opt.
10699         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
10700         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
10701         gl_MODULE_INDICATOR.
10702
10703         Tests of module 'sys_select' in C++ mode.
10704         * tests/test-sys_select-c++.cc: New file.
10705         * modules/sys_select-tests (Files): Add it and tests/signature.h.
10706         (Depends-on): Add ansi-c++-opt.
10707         (Makefile.am): Arrange to compile and run test-sys_select-c++.
10708         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
10709         gl_MODULE_INDICATOR.
10710
10711         Tests of module 'sys_ioctl' in C++ mode.
10712         * tests/test-sys_ioctl-c++.cc: New file.
10713         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
10714         (Depends-on): Add ansi-c++-opt.
10715         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
10716         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
10717         gl_MODULE_INDICATOR.
10718
10719         Tests of module 'string' in C++ mode.
10720         * tests/test-string-c++.cc: New file.
10721         * modules/string-tests (Files): Add it and tests/signature.h.
10722         (Depends-on): Add ansi-c++-opt.
10723         (Makefile.am): Arrange to compile and run test-string-c++.
10724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
10725         gl_MODULE_INDICATOR.
10726
10727         Tests of module 'stdlib' in C++ mode.
10728         * tests/test-stdlib-c++.cc: New file.
10729         * modules/stdlib-tests (Files): Add it and tests/signature.h.
10730         (Depends-on): Add ansi-c++-opt.
10731         (Makefile.am): Arrange to compile and run test-stdlib-c++.
10732         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
10733         gl_MODULE_INDICATOR.
10734
10735         Tests of module 'stdio' in C++ mode.
10736         * tests/test-stdio-c++.cc: New file.
10737         * modules/stdio-tests (Files): Add it and tests/signature.h.
10738         (Depends-on): Add ansi-c++-opt.
10739         (Makefile.am): Arrange to compile and run test-stdio-c++.
10740         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
10741         gl_MODULE_INDICATOR.
10742
10743         Tests of module 'spawn' in C++ mode.
10744         * tests/test-spawn-c++.cc: New file.
10745         * modules/spawn-tests (Files): Add it and tests/signature.h.
10746         (Depends-on): Add ansi-c++-opt.
10747         (Makefile.am): Arrange to compile and run test-spawn-c++.
10748         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
10749         gl_MODULE_INDICATOR.
10750
10751         Tests of module 'signal' in C++ mode.
10752         * tests/test-signal-c++.cc: New file.
10753         * modules/signal-tests (Files): Add it and tests/signature.h.
10754         (Depends-on): Add ansi-c++-opt.
10755         (Makefile.am): Arrange to compile and run test-signal-c++.
10756         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
10757         gl_MODULE_INDICATOR.
10758
10759         Tests of module 'search' in C++ mode.
10760         * tests/test-search-c++.cc: New file.
10761         * modules/search-tests (Files): Add it and tests/signature.h.
10762         (Depends-on): Add ansi-c++-opt.
10763         (Makefile.am): Arrange to compile and run test-search-c++.
10764         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
10765         gl_MODULE_INDICATOR.
10766
10767         Tests of module 'math' in C++ mode.
10768         * tests/test-math-c++.cc: New file.
10769         * modules/math-tests (Files): Add it and tests/signature.h.
10770         (Depends-on): Add ansi-c++-opt.
10771         (Makefile.am): Arrange to compile and run test-math-c++.
10772         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10773
10774         Tests of module 'locale' in C++ mode.
10775         * tests/test-locale-c++.cc: New file.
10776         * modules/locale-tests (Files): Add it and tests/signature.h.
10777         (Depends-on): Add ansi-c++-opt.
10778         (Makefile.am): Arrange to compile and run test-locale-c++.
10779         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
10780         gl_MODULE_INDICATOR.
10781
10782         Tests of module 'langinfo' in C++ mode.
10783         * tests/test-langinfo-c++.cc: New file.
10784         * modules/langinfo-tests (Files): Add it and tests/signature.h.
10785         (Depends-on): Add ansi-c++-opt.
10786         (Makefile.am): Arrange to compile and run test-langinfo-c++.
10787         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
10788         gl_MODULE_INDICATOR.
10789
10790         Tests of module 'iconv-h' in C++ mode.
10791         * tests/test-iconv-h-c++.cc: New file.
10792         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
10793         (Depends-on): Add ansi-c++-opt.
10794         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
10795
10796         Tests of module 'glob' in C++ mode.
10797         * tests/test-glob-c++.cc: New file.
10798         * modules/glob-tests (Files): Add it.
10799         (Depends-on): Add ansi-c++-opt.
10800         (Makefile.am): Arrange to compile and run test-glob-c++.
10801
10802         Tests of module 'fcntl-h' in C++ mode.
10803         * tests/test-fcntl-h-c++.cc: New file.
10804         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
10805         (Depends-on): Add ansi-c++-opt.
10806         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
10807         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
10808         gl_MODULE_INDICATOR.
10809
10810         Tests of module 'dirent' in C++ mode.
10811         * tests/test-dirent-c++.cc: New file.
10812         * modules/dirent-tests (Files): Add it and tests/signature.h.
10813         (Depends-on): Add ansi-c++-opt.
10814         (Makefile.am): Arrange to compile and run test-dirent-c++.
10815         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10816         gl_MODULE_INDICATOR.
10817
10818         New module 'ansi-c++-opt'.
10819         * modules/ansi-c++-opt: New file.
10820         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
10821
10822         Document C++ namespace mode.
10823         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
10824
10825         wctype: Avoid #define replacements in C++ mode.
10826         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
10827         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
10828         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
10829         In C++, define a namespaced alias symbol.
10830         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
10831         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
10832         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
10833         rule.
10834
10835         wchar: Avoid #define replacements in C++ mode.
10836         * lib/wchar.in.h: Include c++defs.h.
10837         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
10838         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
10839         symbol.
10840         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
10841         * modules/wchar (Depends-on): Add c++defs.
10842         (Makefile.am): Update wchar.h rule.
10843
10844         unistd: Avoid #define replacements in C++ mode.
10845         * lib/unistd.in.h: Include c++defs.h.
10846         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
10847         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
10848         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
10849         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
10850         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
10851         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
10852         symbol.
10853         (environ): Update.
10854         * modules/unistd (Depends-on): Add c++defs.
10855         (Makefile.am): Update unistd.h rule.
10856
10857         time: Avoid #define replacements in C++ mode.
10858         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
10859         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
10860         define a namespaced alias symbol.
10861         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
10862         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
10863         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
10864         * modules/time (Depends-on): Add c++defs, warn-on-use.
10865         (Makefile.am): Update time.h rule.
10866         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10867         * modules/nanosleep (configure.ac): Likewise.
10868         * modules/strptime (configure.ac): Likewise.
10869         * modules/timegm (configure.ac): Likewise.
10870
10871         sys_time: Avoid #define replacements in C++ mode.
10872         * lib/sys_time.in.h: Include c++defs.h.
10873         (gettimeofday): In C++, define a namespaced alias symbol.
10874         * modules/sys_time (Depends-on): Add c++defs.
10875         (Makefile.am): Update sys/time.h rule.
10876
10877         sys_stat: Avoid #define replacements in C++ mode.
10878         * lib/sys_stat.in.h: Include c++defs.h.
10879         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
10880         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
10881         namespaced alias symbol.
10882         In C++, define a namespaced alias symbol.
10883         * modules/sys_stat (Depends-on): Add c++defs.
10884         (Makefile.am): Update sys/stat.h rule.
10885
10886         sys_socket: Avoid #define replacements in C++ mode.
10887         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
10888         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
10889         definitions also when the system has a <sys/socket.h>.
10890         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10891         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
10892         In C++, define a namespaced alias symbol.
10893         * modules/sys_socket (Depends-on): Add c++defs.
10894         (Makefile.am): Update sys/socket.h rule.
10895
10896         sys_select: Avoid #define replacements in C++ mode.
10897         * lib/sys_select.in.h: Include c++defs.h. Enable the function
10898         definitions also when the system has a <sys/select.h>.
10899         (select): In C++, define a namespaced alias symbol.
10900         * modules/sys_select (Depends-on): Add c++defs.
10901         (Makefile.am): Update sys/select.h rule.
10902
10903         sys_ioctl: Avoid #define replacements in C++ mode.
10904         * lib/sys_ioctl.in.h: Include c++defs.h.
10905         (ioctl): In C++, define a namespaced alias symbol.
10906         * modules/sys_ioctl (Depends-on): Add c++defs.
10907         (Makefile.am): Update sys/ioctl.h rule.
10908
10909         string: Avoid #define replacements in C++ mode.
10910         * lib/string.in.h: Include c++defs.h.
10911         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
10912         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10913         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10914         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
10915         strsignal, strverscmp): In C++, define a namespaced alias symbol.
10916         * modules/string (Depends-on): Add c++defs.
10917         (Makefile.am): Update string.h rule.
10918
10919         stdlib: Avoid #define replacements in C++ mode.
10920         * lib/stdlib.in.h: Include c++defs.h.
10921         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
10922         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
10923         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
10924         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
10925         symbol.
10926         * modules/stdlib (Depends-on): Add c++defs.
10927         (Makefile.am): Update stdlib.h rule.
10928
10929         stdio: Avoid #define replacements in C++ mode.
10930         * lib/stdio.in.h: Include c++defs.h.
10931         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
10932         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
10933         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
10934         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
10935         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
10936         namespaced alias symbol.
10937         * modules/stdio (Depends-on): Add c++defs.
10938         (Makefile.am): Update stdio.h rule.
10939
10940         spawn: Avoid #define replacements in C++ mode.
10941         * lib/spawn.in.h: Include c++defs.h.
10942         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10943         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10944         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10945         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10946         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10947         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10948         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10949         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10950         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10951         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10952         In C++, define a namespaced alias symbol.
10953         * modules/spawn (Depends-on): Add c++defs.
10954         (Makefile.am): Update spawn.h rule.
10955
10956         signal: Avoid #define replacements in C++ mode.
10957         * lib/signal.in.h: Include c++defs.h.
10958         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10959         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
10960         namespaced alias symbol.
10961         * modules/signal (Depends-on): Add c++defs.
10962         (Makefile.am): Update signal.h rule.
10963
10964         search: Avoid #define replacements in C++ mode.
10965         * lib/search.in.h: Include c++defs.h.
10966         (_gl_search_compar_fn, _gl_search_action_fn): New types.
10967         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
10968         symbol.
10969         * modules/search (Depends-on): Add c++defs.
10970         (Makefile.am): Update search.h rule.
10971
10972         math: Avoid #define replacements in C++ mode.
10973         * lib/math.in.h: Include c++defs.h.
10974         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
10975         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
10976         trunc, truncl): In C++, define a namespaced alias symbol.
10977         * modules/math (Depends-on): Add c++defs.
10978         (Makefile.am): Update math.h rule.
10979
10980         locale: Avoid #define replacements in C++ mode.
10981         * lib/locale.in.h: Include c++defs.h.
10982         (duplocale): In C++, define a namespaced alias symbol.
10983         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
10984         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
10985         * modules/locale (Depends-on): Add c++defs.
10986         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
10987
10988         langinfo: Avoid #define replacements in C++ mode.
10989         * lib/langinfo.in.h: Include c++defs.h.
10990         (nl_langinfo): In C++, define a namespaced alias symbol.
10991         * modules/langinfo (Depends-on): Add c++defs.
10992         (Makefile.am): Update langinfo.h rule.
10993
10994         iconv-h: Avoid #define replacements in C++ mode.
10995         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
10996         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
10997         symbol.
10998         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
10999         whenever iconv is present.
11000         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11001         (Makefile.am): Update iconv.h rule.
11002
11003         glob: Avoid #define replacements in C++ mode.
11004         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11005         (_gl_glob_errfunc_fn): New type.
11006         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11007         symbol.
11008         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11009         (Makefile.am): Update glob.h rule.
11010
11011         fcntl-h: Avoid #define replacements in C++ mode.
11012         * lib/fcntl.in.h: Include c++defs.h.
11013         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11014         * modules/fcntl-h (Depends-on): Add c++defs.
11015         (Makefile.am): Update fcntl.h rule.
11016
11017         dirent: Avoid #define replacements in C++ mode.
11018         * lib/dirent.in.h: Include c++defs.h.
11019         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11020         namespaced alias symbol.
11021         (dirfd): Update declaration.
11022         * modules/dirent (Depends-on): Add c++defs.
11023         (Makefile.am): Update dirent.h rule.
11024
11025         ctype: Make it usable in C++ code.
11026         * lib/ctype.in.h: Include c++defs.h.
11027         (isblank): Declare as extern "C".
11028         * modules/ctype (Depends-on): Add c++defs.
11029         (Makefile.am): Update ctype.h rule.
11030
11031         New module 'c++defs'.
11032         * modules/c++defs: New file.
11033         * build-aux/c++defs.h: New file.
11034         Reported by John W. Eaton <jwe@gnu.org>.
11035
11036 2010-03-07  Bruno Haible  <bruno@clisp.org>
11037
11038         logb: Provide missing declaration for Cygwin.
11039         * lib/math.in.h (logb): New declaration.
11040         * m4/logb.m4: New file.
11041         * modules/logb (Files): Add m4/logb.m4.
11042         (Depends-on): Add math.
11043         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11044         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11046         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11047         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11048
11049 2010-03-07  Bruno Haible  <bruno@clisp.org>
11050
11051         Fix test-cond link error.
11052         * tests/test-cond.c: Include <stdio.h>.
11053
11054 2010-03-07  Bruno Haible  <bruno@clisp.org>
11055
11056         Fix test-dirent-safer link error.
11057         * modules/dirent-safer-tests (Makefile.am): Define
11058         test_dirent_safer_LDADD.
11059
11060 2010-03-07  Bruno Haible  <bruno@clisp.org>
11061
11062         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11063         among default module list.
11064
11065 2010-03-07  Bruno Haible  <bruno@clisp.org>
11066
11067         Fix link error on platforms with GNU libiconv.
11068         * modules/unistr/u8-strcoll-tests (Makefile): Define
11069         test_u8_strcoll_LDADD.
11070         * modules/unistr/u16-strcoll-tests (Makefile): Define
11071         test_u16_strcoll_LDADD.
11072         * modules/unistr/u32-strcoll-tests (Makefile): Define
11073         test_u32_strcoll_LDADD.
11074
11075 2010-03-07  Bruno Haible  <bruno@clisp.org>
11076
11077         Use POSIX declarations for socket functions.
11078         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11079         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11080         rpl_sendto): Change declaration to match POSIX.
11081         * lib/connect.c (rpl_connect): Likewise.
11082         * lib/accept.c (rpl_accept): Likewise.
11083         * lib/bind.c (rpl_bind): Likewise.
11084         * lib/getpeername.c (rpl_getpeername): Likewise.
11085         * lib/getsockname.c (rpl_getsockname): Likewise.
11086         * lib/recv.c (rpl_recv): Likewise.
11087         * lib/send.c (rpl_send): Likewise.
11088         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11089         * lib/sendto.c (rpl_sendto): Likewise.
11090
11091 2010-03-06  Bruno Haible  <bruno@clisp.org>
11092
11093         Clarify access, euidaccess, faccessat.
11094         * doc/posix-functions/faccessat.texi: Mention security problem under
11095         "Other problems", not "Portability problems".
11096         * doc/posix-functions/access.texi: Likewise. Mention a related security
11097         problem.
11098         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11099         * lib/euidaccess.c: Add comments about platforms.
11100         * lib/unistd.in.h (access, euidaccess): Add warnings.
11101
11102 2010-03-07  Bruno Haible  <bruno@clisp.org>
11103
11104         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11105         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11106         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11107         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11108         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11109         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11110         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11111         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11112         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11113         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11114         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11115         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11116         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11117         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11118         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11119         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11120         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11121         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11122         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11123         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11124         Likewise.
11125         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11126         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11127         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11128         Likewise.
11129         * tests/test-spawn.c (main): Make it work when
11130         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11131
11132 2010-03-07  Bruno Haible  <bruno@clisp.org>
11133
11134         Fix incorrect Makefile.am generation in German locale.
11135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11136         Execute sed command with character range in C locale.
11137
11138 2010-03-06  Bruno Haible  <bruno@clisp.org>
11139
11140         Tests for module 'iconv-h'.
11141         * modules/iconv-h-tests: New file.
11142         * tests/test-iconv-h.c: New file.
11143
11144         New module 'iconv-h'.
11145         * modules/iconv-h: New file.
11146         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11147         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11148         (configure.ac): Remove gl_ICONV_H.
11149         (Makefile.am): Remove rule for iconv.h.
11150
11151 2010-03-06  Bruno Haible  <bruno@clisp.org>
11152
11153         More consistent naming of *.m4 files.
11154         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11155         * modules/wctype (Files): Update.
11156
11157         More consistent naming of *.m4 files.
11158         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11159         * modules/wchar (Files): Update.
11160
11161 2010-03-06  Jim Meyering  <meyering@redhat.com>
11162
11163         euidaccess: relax license to LGPLv2+
11164         * modules/euidaccess (License): Relax to LGPLv2+.
11165
11166 2010-03-06  Bruno Haible  <bruno@clisp.org>
11167
11168         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11169         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11170         (Makefile.am): Augment lib_SOURCES instead.
11171
11172 2010-03-04  Jim Meyering  <meyering@redhat.com>
11173
11174         utime: remove obsolete module
11175         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11176         unnecessary for years, and has been marked as obsolete for 10 months.
11177         * modules/utime: Remove file.
11178         * lib/utime.c: Remove file.
11179         * m4/utime.m4: Remove file.
11180         * m4/utimes-null.m4: Remove file.
11181         * doc/posix-functions/utime.texi (utime): Remove reference to
11182         the module.  Move the sole "fixed by gnulib" item into the
11183         "problems not fixed by Gnulib" list.
11184         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11185
11186 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11187
11188         * modules/exit (License): Relax license to LGPLv2+.
11189         (Status): Mark as obsolete.
11190         * NEWS: Mention deprecated 'exit' module.
11191         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11192         of now obsolete 'exit'.
11193
11194 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11195
11196         fts-lgpl: remove unused module
11197         * modules/fts-lgpl: Remove.
11198         * MODULES.html.sh (func_all_modules): Adjust.
11199         * check-module (find_included_lib_files): Adjust.
11200         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11201
11202 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11203
11204         copy-acl: enhance Solaris ACL error handling
11205         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11206         * lib/set-mode-acl.c (qset_acl): Likewise.
11207
11208 2010-03-02  Bruno Haible  <bruno@clisp.org>
11209
11210         spawn: Don't override the system defined values on FreeBSD 8.
11211         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11212         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11213         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11214         if HAVE_POSIX_SPAWN is 1.
11215         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11216
11217 2010-03-01  Bruno Haible  <bruno@clisp.org>
11218
11219         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11220         regarding Automake.
11221
11222 2010-02-25  Bruno Haible  <bruno@clisp.org>
11223
11224         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11225         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11226         setting, not afterwards.
11227         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11228
11229 2010-02-24  Eric Blake  <eblake@redhat.com>
11230
11231         bootstrap, git-version-gen: use timestamp
11232         * build-aux/git-version-gen (scriptversion): Force UTC.
11233         * build-aux/bootstrap (scriptversion): New variable.
11234
11235         bootstrap: allow older git
11236         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11237         older than 1.6.4.  Requested by the libvirt project.
11238
11239 2010-02-23  Eric Blake  <eblake@redhat.com>
11240
11241         warn-on-use: work with old autoconf
11242         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11243         AS_VAR semantics of autoconf 2.60.
11244         Reported by Bruno Haible.
11245
11246         bootstrap: improve some comments
11247         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11248         clarification comments.
11249
11250         gettimeofday: provide correct function
11251         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11252         when replacement is declared, otherwise provide gettimeofday.
11253         Reported by Michael Goffioul.
11254
11255 2010-02-23  Jim Meyering  <meyering@redhat.com>
11256
11257         lib-ignore: relax license to "unlimited", not LGPLv2+
11258         * modules/lib-ignore (License): Relax to "unlimited".
11259
11260 2010-02-23  Jim Meyering  <meyering@redhat.com>
11261
11262         lib-ignore: relax license to LGPLv2+
11263         * modules/lib-ignore (License): Relax to LGPLv2+.
11264
11265 2010-02-22  Eric Blake  <eblake@redhat.com>
11266
11267         lseek: avoid bash 3.2 broken pipe bug
11268         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11269         warning from bash 3.2.
11270         Reported by Ben Pfaff, with analysis from Bruno Haible.
11271
11272         bootstrap: support non-FSF copyright holder
11273         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11274         bootstrap.conf override of COPYRIGHT_HOLDER.
11275         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11276
11277         bootstrap: interoperate with gettext 0.14.1
11278         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11279
11280         bootstrap: allow for alternate submodule location
11281         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11282         hardcoding submodule location.
11283         (gnulib_mk): Allow direct use of Makefile.am.
11284
11285         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11286         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11287         rather than reconfiguring where the submodule points.
11288
11289         gettimeofday: restore support for platforms that lack function
11290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11291         replacement if function is missing.
11292         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11293         * modules/sys_time (Makefile.am): Substitute it.
11294         * lib/sys_time.in.h (gettimeofday): Check it.
11295         Reported by Michael Goffioul.
11296
11297 2010-02-21  Bruno Haible  <bruno@clisp.org>
11298
11299         * lib/stdio.in.h (obstack_printf): Fix typo.
11300
11301 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11302
11303         vc-list-files: use bzr ls's -R option
11304         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11305         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11306
11307 2010-02-21  Jim Meyering  <meyering@redhat.com>
11308
11309         init.sh: fix EXEEXT shims to work also for names like test-prog
11310         * tests/init.sh: Re-exec a better shell, when needed.
11311         If the current shell lacks support for posix $(...), an init.sh-using
11312         test will now try to find a shell that supports that.  If EXEEXT is
11313         nonempty, we also require support for hyphen-in-alias-name and shell
11314         substitutions like ${var#glob}.  Failure to find such a shell results
11315         in a skipped test.
11316
11317 2010-02-21  Bruno Haible  <bruno@clisp.org>
11318
11319         Really work around around "broken pipe" error message from bash 3.2.
11320         * gnulib-tool (func_reset_sigpipe): Remove function.
11321         (echo): In bash 3.2, define to a function that uses printf.
11322         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11323
11324 2010-02-20  Bruno Haible  <bruno@clisp.org>
11325
11326         Restore support for automake 1.9.6 with autoconf 2.61.
11327         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11328         Reported by James Youngman <jay@gnu.org>.
11329
11330 2010-02-20  Bruno Haible  <bruno@clisp.org>
11331
11332         Improve *printf warning condition.
11333         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11334         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11335         and the function is overridden due to SIGPIPE emulation.
11336
11337 2010-02-20  Bruno Haible  <bruno@clisp.org>
11338
11339         * lib/stdio.in.h: Tweak comments.
11340
11341 2010-02-19  Bruno Haible  <bruno@clisp.org>
11342
11343         Make it easier to find modules. New gnulib-tool option '--find'.
11344         * gnulib-tool: New option --find.
11345         (func_usage): Document it.
11346         (func_sanitize_modulelist): New function, extracted from
11347         func_all_modules.
11348         (func_all_modules): Invoke it.
11349         * doc/gnulib-tool.texi (Which modules?): New node.
11350
11351 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
11352
11353         * lib/sys_select.in.h: Provide select replacement even if
11354         sys/select.h exists on a system, for Interix.
11355
11356 2010-02-18  Jim Meyering  <meyering@redhat.com>
11357
11358         init.sh: don't use $(...) just yet
11359         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
11360         to accommodate e.g., Solaris' /bin/sh.
11361
11362 2010-02-17  Bruno Haible  <bruno@clisp.org>
11363
11364         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
11365         Reported by Ludovic Courtès <ludo@gnu.org>.
11366
11367 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11368
11369         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11370         linking with -lintl.
11371
11372 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11373
11374         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11375         if not provided by the system's netdb.h.  Reported by
11376         ludo@gnu.org (Ludovic Courtès).
11377
11378 2010-02-15  Jim Meyering  <meyering@redhat.com>
11379
11380         init.sh: improve portability and efficiency
11381         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11382         "dummy" in a for loop.
11383         Use '!', not '^' to select the complement of a character set used
11384         in a "case" statement.
11385         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11386         Suggestions from Eric Blake.
11387
11388         init.sh: automatically accommodate programs with the .exe suffix
11389         Automatically arrange for an invocation of "prog" to execute the
11390         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11391         may use the simpler "prog", yet still work when built on a system
11392         that requires specifying the added suffix.
11393         Do this by constructing a function named "prog" that invokes
11394         "prog.exe" for each .exe file in selected directories.
11395         * tests/init.sh (find_exe_basenames_): New function.
11396         (create_exe_shim_functions_): New function.
11397         (path_prepend_): Use it.
11398
11399         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11400         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11401         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11402
11403 2010-02-14  Jim Meyering  <meyering@redhat.com>
11404
11405         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11406         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11407         (sc_prohibit_hash_pjw_without_use): New rule.
11408
11409         maint.mk: allow the default upload destination dir to be overridden
11410         * top/maint.mk (upload_dest_dir_): Define with a default that
11411         preserves the status quo.
11412         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
11413         Reported by Peter Simons.
11414
11415         maint.mk: prohibit inclusion of "hash.h" without_use
11416         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
11417
11418 2010-02-10  Jim Meyering  <meyering@redhat.com>
11419
11420         maint.mk: prohibit inclusion of "ignore-value.h" without_use
11421         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
11422
11423 2010-02-09  Eric Blake  <ebb9@byu.net>
11424         and Bruno Haible  <bruno@clisp.org>
11425
11426         obstack-printf-posix: ensure declaration
11427         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
11428         extracted from gl_FUNC_OBSTACK_PRINTF.
11429         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
11430         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11431         Likewise.
11432         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
11433         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
11434         0.
11435
11436 2010-02-08  Bruno Haible  <bruno@clisp.org>
11437
11438         gnulib-tool: Fix typo in 2010-02-07 commit.
11439         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
11440         Reported by Eric Blake.
11441
11442 2010-02-07  Bruno Haible  <bruno@clisp.org>
11443
11444         gnulib-tool: Fix up caching patches.
11445         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
11446         option --no-cache. Use associative arrays when supported by the shell.
11447         (sed_comments): New variable.
11448         (modcache): Renamed from do_cache.
11449         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
11450         abbreviate unnecessarily.
11451         (have_associative): New variable.
11452         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
11453         way also for ksh and zsh.
11454         (func_init_sed_convert_to_cache_statements): New function, extracted
11455         from func_cache_lookup_module. Add support for associative arrays.
11456         Don't set the c_MODULE_cached variable here. Ignore all lines before
11457         the first field header. Remove only the final newline, not all trailing
11458         newlines. Support empty fields correctly. Limit the use of 'eval' to
11459         assignments.
11460         (func_get_description, func_get_status, func_get_notice,
11461         func_get_applicability, func_get_filelist, func_get_dependencies,
11462         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
11463         func_get_automake_snippet, func_get_include_directive,
11464         func_get_link_directive, func_get_license, func_get_maintainer):
11465         Update documentation. List the unoptimized code first. Add support for
11466         associative arrays. Limit the use of 'eval' to assignments.
11467         (func_get_applicability): Undo stylistic pessimisations.
11468         (func_get_automake_snippet, func_get_include_directive): Reduce code
11469         duplication.
11470         (func_modules_transitive_closure, func_modules_add_dummy,
11471         func_modules_notice, func_modules_to_filelist, func_add_file,
11472         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
11473         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
11474         func_create_testdir, func_create_megatestdir): Update documentation.
11475
11476 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11477
11478         * gnulib-tool (func_cache_lookup_module): Store the module name
11479         belonging to the cache variable; error out if two different
11480         module names map to the same cache variable name.
11481
11482 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11483
11484         gnulib-tool: Make caching optional.
11485         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
11486         Update matching short versions of --no-changelog.
11487         (func_usage): Update.
11488         (sed_extract_cache_prog): Renamed from ...
11489         (sed_extract_prog): ... this; revert to old extraction script.
11490         (func_get_description, func_get_status)
11491         (func_get_notice, func_get_applicability, func_get_filelist)
11492         (func_get_dependencies, func_get_autoconf_early_snippet)
11493         (func_get_autoconf_snippet, func_get_automake_snippet)
11494         (func_get_include_directive, func_get_link_directive)
11495         (func_get_license, func_get_maintainer): If $do_cache is false,
11496         use old, non-caching extraction scripts.
11497         Suggestion by Bruno Haible.
11498
11499 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11500
11501         gnulib-tool: cache module metainformation.
11502         * gnulib-tool (sed_extract_prog): Match newline before each
11503         header, and rewrite header to a shell variable suffix.
11504         (func_cache_var, func_cache_lookup_module): New functions,
11505         to turn a module name into a cache variable prefix, and to
11506         look up and cache module metainformation.
11507         (func_get_description, func_get_status)
11508         (func_get_notice, func_get_applicability, func_get_filelist)
11509         (func_get_dependencies, func_get_autoconf_early_snippet)
11510         (func_get_autoconf_snippet, func_get_automake_snippet)
11511         (func_get_include_directive, func_get_link_directive)
11512         (func_get_license, func_get_maintainer): Use
11513         func_cache_lookup_module.
11514
11515 2010-02-07  Bruno Haible  <bruno@clisp.org>
11516
11517         fnctl: Fix missing dependency.
11518         * modules/fcntl (Depends-on): Add getdtablesize.
11519         Reported by John W. Eaton <jwe@gnu.org>.
11520
11521 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11522
11523         Argp: fix recognition of short alias options.
11524
11525         * lib/argp-parse.c (convert_options): Fix improper use of
11526         `|' between character values.
11527         * tests/test-argp.c (group1_option): New alias option
11528         --read (-r).
11529         (group1_parser): Special handling for 'r'.
11530         (test15): New test case.
11531         (test_fun): Add test15.
11532         * tests/test-argp-2.sh: Update expected --help and --usage
11533         outputs.
11534
11535 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11536
11537         * tests/test-argp.c: Fix indentation.
11538
11539 2010-02-04  Eric Blake  <ebb9@byu.net>
11540
11541         gettimeofday: expose type of second argument
11542         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
11543         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
11544         * tests/test-gettimeofday.c: Use it to silence warning.
11545         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
11546         the issue.
11547
11548 2010-02-03  Jim Meyering  <meyering@redhat.com>
11549
11550         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
11551         * lib/regcomp.c (TYPE_SIGNED): Define.
11552         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
11553
11554         regcomp.c: avoid a new -Wshadow warning
11555         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
11556
11557 2010-02-01  Jim Meyering  <meyering@redhat.com>
11558
11559         removing useless parentheses in cpp #define directives
11560         For motivation, see commit c0221df4, "define STREQ(a,b)
11561         consistently, removing useless parentheses"
11562         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
11563         * lib/mountlist.c (MNT_IGNORE): Likewise.
11564         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
11565
11566 2010-02-01  Eric Blake  <ebb9@byu.net>
11567
11568         sys_time: use link-warning
11569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
11570         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
11571         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
11572         * modules/sys_time (Depends-on): Add warn-on-use.
11573         (Makefile.am): Always build replacement.
11574         (configure.ac): Update substitutions.
11575         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
11576         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
11577         bother with SYS_TIME_H.
11578         * modules/gettimeofday (configure.ac): Declare indicator.
11579         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
11580         in use.
11581
11582         closein-tests: silence compiler warning
11583         * tests/test-closein.c (main): Ignore fread result.
11584         * modules/closein-tests (Depends-on): Add ignore-value.
11585
11586         tests: silence warning about system return
11587         * tests/test-areadlink-with-size.c (main): Ignore system result.
11588         * tests/test-areadlink.c (main): Likewise.
11589         * tests/test-areadlinkat-with-size.c (main): Likewise.
11590         * tests/test-areadlinkat.c (main): Likewise.
11591         * tests/test-canonicalize-lgpl.c (main): Likewise.
11592         * tests/test-canonicalize.c (main): Likewise.
11593         * tests/test-chown.c (main): Likewise.
11594         * tests/test-fchownat.c (main): Likewise.
11595         * tests/test-fdutimensat.c (main): Likewise.
11596         * tests/test-fstatat.c (main): Likewise.
11597         * tests/test-futimens.c (main): Likewise.
11598         * tests/test-lchown.c (main): Likewise.
11599         * tests/test-link.c (main): Likewise.
11600         * tests/test-linkat.c (main): Likewise.
11601         * tests/test-lstat.c (main): Likewise.
11602         * tests/test-mkdir.c (main): Likewise.
11603         * tests/test-mkdirat.c (main): Likewise.
11604         * tests/test-mkfifo.c (main): Likewise.
11605         * tests/test-mkfifoat.c (main): Likewise.
11606         * tests/test-mknod.c (main): Likewise.
11607         * tests/test-readlink.c (main): Likewise.
11608         * tests/test-remove.c (main): Likewise.
11609         * tests/test-rename.c (main): Likewise.
11610         * tests/test-renameat.c (main): Likewise.
11611         * tests/test-rmdir.c (main): Likewise.
11612         * tests/test-symlink.c (main): Likewise.
11613         * tests/test-symlinkat.c (main): Likewise.
11614         * tests/test-unlink.c (main): Likewise.
11615         * tests/test-unlinkat.c (main): Likewise.
11616         * tests/test-utimens.c (main): Likewise.
11617         * tests/test-utimensat.c (main): Likewise.
11618         * modules/areadlink-tests (Depends-on): Add ignore-value.
11619         * modules/areadlink-with-size-tests (Depends-on): Likewise.
11620         * modules/areadlinkat-tests (Depends-on): Likewise.
11621         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
11622         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11623         * modules/canonicalize-tests (Depends-on): Likewise.
11624         * modules/chown-tests (Depends-on): Likewise.
11625         * modules/fdutimensat-tests (Depends-on): Likewise.
11626         * modules/futimens-tests (Depends-on): Likewise.
11627         * modules/lchown-tests (Depends-on): Likewise.
11628         * modules/link-tests (Depends-on): Likewise.
11629         * modules/linkat-tests (Depends-on): Likewise.
11630         * modules/lstat-tests (Depends-on): Likewise.
11631         * modules/mkdir-tests (Depends-on): Likewise.
11632         * modules/mkfifo-tests (Depends-on): Likewise.
11633         * modules/mkfifoat-tests (Depends-on): Likewise.
11634         * modules/mknod-tests (Depends-on): Likewise.
11635         * modules/openat-tests (Depends-on): Likewise.
11636         * modules/readlink-tests (Depends-on): Likewise.
11637         * modules/remove-tests (Depends-on): Likewise.
11638         * modules/rename-tests (Depends-on): Likewise.
11639         * modules/renameat-tests (Depends-on): Likewise.
11640         * modules/rmdir-tests (Depends-on): Likewise.
11641         * modules/symlink-tests (Depends-on): Likewise.
11642         * modules/symlinkat-tests (Depends-on): Likewise.
11643         * modules/unlink-tests (Depends-on): Likewise.
11644         * modules/utimens-tests (Depends-on): Likewise.
11645         * modules/utimensat-tests (Depends-on): Likewise.
11646
11647 2010-01-31  Bruno Haible  <bruno@clisp.org>
11648
11649         Perform the same test for many <math.h> functions.
11650         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
11651         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
11652         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
11653         of gl_MATHFUNC.
11654         * modules/acos (configure.ac): Likewise.
11655         * modules/asin (configure.ac): Likewise.
11656         * modules/atan (configure.ac): Likewise.
11657         * modules/atan2 (configure.ac): Likewise.
11658         * modules/cbrt (configure.ac): Likewise.
11659         * modules/copysign (configure.ac): Likewise.
11660         * modules/cos (configure.ac): Likewise.
11661         * modules/cosh (configure.ac): Likewise.
11662         * modules/erf (configure.ac): Likewise.
11663         * modules/erfc (configure.ac): Likewise.
11664         * modules/exp (configure.ac): Likewise.
11665         * modules/fmod (configure.ac): Likewise.
11666         * modules/hypot (configure.ac): Likewise.
11667         * modules/j0 (configure.ac): Likewise.
11668         * modules/j1 (configure.ac): Likewise.
11669         * modules/jn (configure.ac): Likewise.
11670         * modules/lgamma (configure.ac): Likewise.
11671         * modules/log (configure.ac): Likewise.
11672         * modules/log10 (configure.ac): Likewise.
11673         * modules/log1p (configure.ac): Likewise.
11674         * modules/pow (configure.ac): Likewise.
11675         * modules/remainder (configure.ac): Likewise.
11676         * modules/sin (configure.ac): Likewise.
11677         * modules/sinh (configure.ac): Likewise.
11678         * modules/tan (configure.ac): Likewise.
11679         * modules/tanh (configure.ac): Likewise.
11680         * modules/y0 (configure.ac): Likewise.
11681         * modules/y1 (configure.ac): Likewise.
11682         * modules/yn (configure.ac): Likewise.
11683         Suggested by Paolo Bonzini.
11684
11685 2010-01-31  Bruno Haible  <bruno@clisp.org>
11686
11687         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
11688
11689 2010-01-31  Bruno Haible  <bruno@clisp.org>
11690
11691         Work around getdelim() bug on FreeBSD 8.0.
11692         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
11693         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
11694         not work.
11695         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
11696         is 1.
11697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
11698         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
11699         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
11700         a non-zero size.
11701         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
11702
11703 2010-01-31  Bruno Haible  <bruno@clisp.org>
11704
11705         Work around getline() bug on FreeBSD 8.0.
11706         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
11707         and a non-zero size.
11708         * tests/test-getline.c (main): Likewise.
11709         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
11710         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
11711
11712 2010-01-28  Eric Blake  <ebb9@byu.net>
11713
11714         regex: fix build failure
11715         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
11716         platforms.
11717
11718 2010-01-28  Jim Meyering  <meyering@redhat.com>
11719
11720         regex: do not ignore memory allocation failure
11721         * lib/regex_internal.c (create_cd_newstate): Detect
11722         re_node_set_init_copy failure.   Extracted from glibc commit
11723         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11724
11725         regex: sync more white-space changes from libc
11726         * lib/regex_internal.c: White-space only changes.
11727         * lib/regexec.c: Likewise.
11728
11729         regex: add many uses of __attribute_warn_unused_result__
11730         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
11731         * lib/regexec.c: Likewise.
11732         Extracted from a messy glibc commit.
11733
11734         regcomp.c: spelling and merge-artifact from glibc
11735         * lib/regcomp.c: Merge remainder of glibc's
11736         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11737
11738         regcomp.c: sync white-space changes from glibc
11739         * lib/regcomp.c: Merge to accommodate white space
11740         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11741
11742         regcomp.c: do not ignore internal return values
11743         * lib/regcomp.c: Do not ignore internal return values.
11744         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
11745         but without its white-space changes and spelling fixes.
11746
11747         regex_internal.h: define __attribute_warn_unused_result__
11748         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
11749
11750         maint: add a syntax-check rule to check for vulnerable Makefile.in
11751         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
11752
11753 2010-01-27  Jim Meyering  <meyering@redhat.com>
11754
11755         ncftpput-ftp: clean up spaces
11756         * build-aux/ncftpput-ftp: Make Copyright line consistent.
11757         Remove trailing blanks.
11758
11759 2010-01-27  Simon Josefsson  <simon@josefsson.org>
11760
11761         * build-aux/git-version-gen: Fix copyright statement.
11762         * build-aux/gnupload: Likewise.
11763         * tests/test-arcfour.c: Likewise.
11764         * tests/test-arctwo.c: Likewise.
11765         * tests/test-count-one-bits.c: Likewise.
11766         * tests/test-crc.c: Likewise.
11767         * tests/test-des.c: Likewise.
11768         * tests/test-gc-arcfour.c: Likewise.
11769         * tests/test-gc-arctwo.c: Likewise.
11770         * tests/test-gc-des.c: Likewise.
11771         * tests/test-gc-hmac-md5.c: Likewise.
11772         * tests/test-gc-hmac-sha1.c: Likewise.
11773         * tests/test-gc-md2.c: Likewise.
11774         * tests/test-gc-md4.c: Likewise.
11775         * tests/test-gc-md5.c: Likewise.
11776         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11777         * tests/test-gc-rijndael.c: Likewise.
11778         * tests/test-gc-sha1.c: Likewise.
11779         * tests/test-gc.c: Likewise.
11780         * tests/test-gethostname.c: Likewise.
11781         * tests/test-gettimeofday.c: Likewise.
11782         * tests/test-hash.c: Likewise.
11783         * tests/test-hmac-md5.c: Likewise.
11784         * tests/test-hmac-sha1.c: Likewise.
11785         * tests/test-md2.c: Likewise.
11786         * tests/test-md4.c: Likewise.
11787         * tests/test-md5.c: Likewise.
11788         * tests/test-memchr.c: Likewise.
11789         * tests/test-memchr2.c: Likewise.
11790         * tests/test-memcmp.c: Likewise.
11791         * tests/test-memmem.c: Likewise.
11792         * tests/test-memrchr.c: Likewise.
11793         * tests/test-rawmemchr.c: Likewise.
11794         * tests/test-read-file.c: Likewise.
11795         * tests/test-rijndael.c: Likewise.
11796         * tests/test-sockets.c: Likewise.
11797         * tests/test-strchrnul.c: Likewise.
11798         * tests/test-strstr.c: Likewise.
11799         * tests/test-strtod.c: Likewise.
11800         * build-aux/ncftpput-ftp: Likewise.
11801
11802 2010-01-26  Eric Blake  <ebb9@byu.net>
11803
11804         ignore-value: update recommended header name
11805         * modules/ignore-value (Include): Only use <> for headers that
11806         exist in glibc.
11807
11808 2010-01-26  Jim Meyering  <meyering@redhat.com>
11809
11810         test-userspec.c: avoid compiler warnings
11811         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
11812         and "initialization discards qualifiers..." warnings.
11813         Put the first "uid" in its own scope, and make char* members "const".
11814
11815 2010-01-25  Bruno Haible  <bruno@clisp.org>
11816
11817         gnulib-tool: Make warning diagnostics consistent.
11818         * gnulib-tool (func_warning): New function.
11819         Use it everywhere where gnulib-tool produces output to stderr and it is
11820         not a fatal error.
11821
11822 2010-01-25  Bruno Haible  <bruno@clisp.org>
11823
11824         Fix test dependencies.
11825         * modules/xstrtol-tests (Depends-on): Add inttypes.
11826         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
11827
11828 2010-01-25 Pádraig Brady <P@draigBrady.com>
11829
11830         syntax-check: detect incorrect boolean macro values in config.h
11831         * modules/maintainer-makefile (configure.ac): Parameterize the location
11832         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
11833         The logic is from Eric Blake and the location indicated by Jim Meyering.
11834         Note the more natural CONFIG_HEADER name is prohibited by automake
11835         for backwards compatibility reasons.
11836         * top/maint.mk (sc_Wundef_boolean): New rule.
11837
11838 2010-01-25  Jim Meyering  <meyering@redhat.com>
11839
11840         bootstrap: detect MacOS 10.6's shasum, too
11841         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
11842         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
11843
11844 2010-01-23  Jim Meyering  <meyering@redhat.com>
11845
11846         xstrtoll: new module
11847         * modules/xstrtoll: New file.
11848         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
11849         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
11850         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
11851         ./configure fails if you use this module and lack "long long".
11852         * modules/xstrtoll-tests: New module.
11853         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
11854         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
11855         new init.sh-based test framework.
11856
11857 2010-01-24  Bruno Haible  <bruno@clisp.org>
11858
11859         Tests for module 'yn'.
11860         * modules/yn-tests: New file.
11861         * tests/test-yn.c: New file.
11862
11863         Tests for module 'y1'.
11864         * modules/y1-tests: New file.
11865         * tests/test-y1.c: New file.
11866
11867         Tests for module 'y0'.
11868         * modules/y0-tests: New file.
11869         * tests/test-y0.c: New file.
11870
11871         Tests for module 'tanh'.
11872         * modules/tanh-tests: New file.
11873         * tests/test-tanh.c: New file.
11874
11875         Tests for module 'tan'.
11876         * modules/tan-tests: New file.
11877         * tests/test-tan.c: New file.
11878
11879         Tests for module 'sqrt'.
11880         * modules/sqrt-tests: New file.
11881         * tests/test-sqrt.c: New file.
11882
11883         Tests for module 'sinh'.
11884         * modules/sinh-tests: New file.
11885         * tests/test-sinh.c: New file.
11886
11887         Tests for module 'sin'.
11888         * modules/sin-tests: New file.
11889         * tests/test-sin.c: New file.
11890
11891         Tests for module 'rint'.
11892         * modules/rint-tests: New file.
11893         * tests/test-rint.c: New file.
11894
11895         Tests for module 'remainder'.
11896         * modules/remainder-tests: New file.
11897         * tests/test-remainder.c: New file.
11898
11899         Tests for module 'pow'.
11900         * modules/pow-tests: New file.
11901         * tests/test-pow.c: New file.
11902
11903         Tests for module 'nextafter'.
11904         * modules/nextafter-tests: New file.
11905         * tests/test-nextafter.c: New file.
11906
11907         Tests for module 'modf'.
11908         * modules/modf-tests: New file.
11909         * tests/test-modf.c: New file.
11910
11911         Tests for module 'logb'.
11912         * modules/logb-tests: New file.
11913         * tests/test-logb.c: New file.
11914
11915         Tests for module 'log1p'.
11916         * modules/log1p-tests: New file.
11917         * tests/test-log1p.c: New file.
11918
11919         Tests for module 'log10'.
11920         * modules/log10-tests: New file.
11921         * tests/test-log10.c: New file.
11922
11923         Tests for module 'log'.
11924         * modules/log-tests: New file.
11925         * tests/test-log.c: New file.
11926
11927         Tests for module 'lgamma'.
11928         * modules/lgamma-tests: New file.
11929         * tests/test-lgamma.c: New file.
11930
11931         Tests for module 'ldexp'.
11932         * modules/ldexp-tests: New file.
11933         * tests/test-ldexp.c: New file.
11934
11935         Tests for module 'jn'.
11936         * modules/jn-tests: New file.
11937         * tests/test-jn.c: New file.
11938
11939         Tests for module 'j1'.
11940         * modules/j1-tests: New file.
11941         * tests/test-j1.c: New file.
11942
11943         Tests for module 'j0'.
11944         * modules/j0-tests: New file.
11945         * tests/test-j0.c: New file.
11946
11947         Tests for module 'hypot'.
11948         * modules/hypot-tests: New file.
11949         * tests/test-hypot.c: New file.
11950
11951         Tests for module 'fmod'.
11952         * modules/fmod-tests: New file.
11953         * tests/test-fmod.c: New file.
11954
11955         Tests for module 'fabs'.
11956         * modules/fabs-tests: New file.
11957         * tests/test-fabs.c: New file.
11958
11959         Tests for module 'exp'.
11960         * modules/exp-tests: New file.
11961         * tests/test-exp.c: New file.
11962
11963         Tests for module 'erfc'.
11964         * modules/erfc-tests: New file.
11965         * tests/test-erfc.c: New file.
11966
11967         Tests for module 'erf'.
11968         * modules/erf-tests: New file.
11969         * tests/test-erf.c: New file.
11970
11971         Tests for module 'cosh'.
11972         * modules/cosh-tests: New file.
11973         * tests/test-cosh.c: New file.
11974
11975         Tests for module 'cos'.
11976         * modules/cos-tests: New file.
11977         * tests/test-cos.c: New file.
11978
11979         Tests for module 'copysign'.
11980         * modules/copysign-tests: New file.
11981         * tests/test-copysign.c: New file.
11982
11983         Tests for module 'cbrt'.
11984         * modules/cbrt-tests: New file.
11985         * tests/test-cbrt.c: New file.
11986
11987         Tests for module 'atan2'.
11988         * modules/atan2-tests: New file.
11989         * tests/test-atan2.c: New file.
11990
11991         Tests for module 'atan'.
11992         * modules/atan-tests: New file.
11993         * tests/test-atan.c: New file.
11994
11995         Tests for module 'asin'.
11996         * modules/asin-tests: New file.
11997         * tests/test-asin.c: New file.
11998
11999         Tests for module 'acos'.
12000         * modules/acos-tests: New file.
12001         * tests/test-acos.c: New file.
12002
12003 2010-01-24  Bruno Haible  <bruno@clisp.org>
12004
12005         Fix tests for common <math.h> functions.
12006         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12007         code snippet that references the function pointer, rather than merely
12008         calling the function. Substitute the FUNC_LIBM variable.
12009         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12010         * modules/acos (configure.ac): Likewise.
12011         * modules/asin (configure.ac): Likewise.
12012         * modules/atan (configure.ac): Likewise.
12013         * modules/atan2 (configure.ac): Likewise.
12014         * modules/cbrt (configure.ac): Likewise.
12015         * modules/copysign (configure.ac): Likewise.
12016         * modules/cos (configure.ac): Likewise.
12017         * modules/cosh (configure.ac): Likewise.
12018         * modules/erf (configure.ac): Likewise.
12019         * modules/erfc (configure.ac): Likewise.
12020         * modules/exp (configure.ac): Likewise.
12021         * modules/fabs (configure.ac): Likewise.
12022         * modules/fmod (configure.ac): Likewise.
12023         * modules/hypot (configure.ac): Likewise.
12024         * modules/j0 (configure.ac): Likewise.
12025         * modules/j1 (configure.ac): Likewise.
12026         * modules/jn (configure.ac): Likewise.
12027         * modules/ldexp (configure.ac): Likewise.
12028         * modules/lgamma (configure.ac): Likewise.
12029         * modules/log (configure.ac): Likewise.
12030         * modules/log10 (configure.ac): Likewise.
12031         * modules/log1p (configure.ac): Likewise.
12032         * modules/logb (configure.ac): Likewise.
12033         * modules/modf (configure.ac): Likewise.
12034         * modules/nextafter (configure.ac): Likewise.
12035         * modules/pow (configure.ac): Likewise.
12036         * modules/remainder (configure.ac): Likewise.
12037         * modules/rint (configure.ac): Likewise.
12038         * modules/sin (configure.ac): Likewise.
12039         * modules/sinh (configure.ac): Likewise.
12040         * modules/tan (configure.ac): Likewise.
12041         * modules/tanh (configure.ac): Likewise.
12042         * modules/y0 (configure.ac): Likewise.
12043         * modules/y1 (configure.ac): Likewise.
12044         * modules/yn (configure.ac): Likewise.
12045
12046 2010-01-24  Bruno Haible  <bruno@clisp.org>
12047
12048         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12049         * tests/test-acosl.c (x): New variable.
12050         (main): Store argument in x and fetch it from x.
12051         * tests/test-asinl.c (x): New variable.
12052         (main): Store argument in x and fetch it from x.
12053         * tests/test-atanl.c (x): New variable.
12054         (main): Store argument in x and fetch it from x.
12055         * tests/test-cosl.c (x): New variable.
12056         (main): Store argument in x and fetch it from x.
12057         * tests/test-expl.c (x): New variable.
12058         (main): Store argument in x and fetch it from x.
12059         * tests/test-logl.c (x): New variable.
12060         (main): Store argument in x and fetch it from x.
12061         * tests/test-sinl.c (x): New variable.
12062         (main): Store argument in x and fetch it from x.
12063         * tests/test-sqrtl.c (x): New variable.
12064         (main): Store argument in x and fetch it from x.
12065         * tests/test-tanl.c (x): New variable.
12066         (main): Store argument in x and fetch it from x.
12067
12068 2010-01-24  Bruno Haible  <bruno@clisp.org>
12069
12070         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12071         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12072         assignments to the initial TESTS_ENVIRONMENT.
12073         * doc/gnulib.texi (Unit test modules): Document it.
12074         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12075         TESTS_ENVIRONMENT.
12076         * modules/btowc-tests (Makefile.am): Likewise.
12077         * modules/c-stack-tests (Makefile.am): Likewise.
12078         * modules/c-strcase-tests (Makefile.am): Likewise.
12079         * modules/copy-file-tests (Makefile.am): Likewise.
12080         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12081         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12082         * modules/mbrtowc-tests (Makefile.am): Likewise.
12083         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12084         * modules/mbscasestr-tests (Makefile.am): Likewise.
12085         * modules/mbschr-tests (Makefile.am): Likewise.
12086         * modules/mbscspn-tests (Makefile.am): Likewise.
12087         * modules/mbsinit-tests (Makefile.am): Likewise.
12088         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12089         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12090         * modules/mbspbrk-tests (Makefile.am): Likewise.
12091         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12092         * modules/mbsrchr-tests (Makefile.am): Likewise.
12093         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12094         * modules/mbsspn-tests (Makefile.am): Likewise.
12095         * modules/mbsstr-tests (Makefile.am): Likewise.
12096         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12097         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12098         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12099         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12100         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12101         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12102         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12103         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12104         * modules/wcrtomb-tests (Makefile.am): Likewise.
12105         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12106         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12107         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12108         assignments from TESTS_ENVIRONMENT.
12109         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12110         augmentation.
12111         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12112         * modules/atexit-tests (Makefile.am): Likewise.
12113         * modules/binary-io-tests (Makefile.am): Likewise.
12114         * modules/closein-tests (Makefile.am): Likewise.
12115         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12116         * modules/exclude-tests (Makefile.am): Likewise.
12117         * modules/fflush-tests (Makefile.am): Likewise.
12118         * modules/fpending-tests (Makefile.am): Likewise.
12119         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12120         * modules/freadahead-tests (Makefile.am): Likewise.
12121         * modules/freadptr-tests (Makefile.am): Likewise.
12122         * modules/freadseek-tests (Makefile.am): Likewise.
12123         * modules/fseek-tests (Makefile.am): Likewise.
12124         * modules/fseeko-tests (Makefile.am): Likewise.
12125         * modules/ftell-tests (Makefile.am): Likewise.
12126         * modules/ftello-tests (Makefile.am): Likewise.
12127         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12128         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12129         * modules/lseek-tests (Makefile.am): Likewise.
12130         * modules/parse-duration-tests (Makefile.am): Likewise.
12131         * modules/perror-tests (Makefile.am): Likewise.
12132         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12133         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12134         * modules/pipe-tests (Makefile.am): Likewise.
12135         * modules/pread-tests (Makefile.am): Likewise.
12136         * modules/printf-posix-tests (Makefile.am): Likewise.
12137         * modules/select-tests (Makefile.am): Likewise.
12138         * modules/sigpipe-tests (Makefile.am): Likewise.
12139         * modules/tsearch-tests (Makefile.am): Likewise.
12140         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12141         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12142         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12143         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12144         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12145         * modules/version-etc-tests (Makefile.am): Likewise.
12146         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12147         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12148         * modules/xalloc-die-tests (Makefile.am): Likewise.
12149         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12150         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12151         * modules/xstrtol-tests (Makefile.am): Likewise.
12152         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12153         * modules/yesno-tests (Makefile.am): Likewise.
12154         Suggested by Jim Meyering.
12155
12156 2010-01-24  Bruno Haible  <bruno@clisp.org>
12157
12158         More documentation.
12159         * doc/gnulib.texi (Writing modules): New chapter.
12160         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12161         the new chapter.
12162
12163 2010-01-24  Jim Meyering  <meyering@redhat.com>
12164
12165         maint.mk: do not prepend "./" after filtering
12166         * top/maint.mk (_prepend_srcdir_prefix): New variable
12167         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12168         "./" when $(srcdir) is ".".
12169
12170         define STREQ(a,b) consistently, removing useless parentheses
12171         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12172         since the only risk is that "a" or "b" contains an unparenthesized
12173         comma, but if either did that, STREQ would have 3 or more arguments.
12174         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12175         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12176         * lib/hash-triple.c (STREQ): Likewise.
12177         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12178         * lib/getugroups.c (STREQ): Likewise.
12179
12180 2010-01-23  Jim Meyering  <meyering@redhat.com>
12181
12182         maint.mk: fix syntax-check in a non-srcdir build directory
12183         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12184         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12185
12186 2010-01-22  Jim Meyering  <meyering@redhat.com>
12187
12188         userspec: add unit tests
12189         * tests/test-userspec.c: New file.
12190         * modules/userspec-tests: Likewise.
12191
12192 2010-01-21  Jim Meyering  <meyering@redhat.com>
12193
12194         maint.mk: handle source file names containing "." robustly
12195         * top/maint.mk (_dot_escaped_srcdir): Define.
12196         (VC_LIST): Use it in LHS of sed substitution.
12197
12198 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12199
12200         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12201         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12202         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12203         from a non-srcdir build.
12204
12205 2010-01-20  Eric Blake  <ebb9@byu.net>
12206
12207         warn-on-use: use instead of link-warning
12208         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12209         * modules/unistd (Depends-on, Makefile.am): Likewise.
12210         * modules/arpa_inet (Depends-on): Replace link-warning with
12211         warn-on-use.
12212         (Makefile.am): Update rules accordingly.
12213         * modules/ctype (Depends-on, Makefile.am): Likewise.
12214         * modules/dirent (Depends-on, Makefile.am): Likewise.
12215         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12216         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12217         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12218         * modules/locale (Depends-on, Makefile.am): Likewise.
12219         * modules/math (Depends-on, Makefile.am): Likewise.
12220         * modules/search (Depends-on, Makefile.am): Likewise.
12221         * modules/signal (Depends-on, Makefile.am): Likewise.
12222         * modules/spawn (Depends-on, Makefile.am): Likewise.
12223         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12224         * modules/string (Depends-on, Makefile.am): Likewise.
12225         * modules/strings (Depends-on, Makefile.am): Likewise.
12226         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12227         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12228         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12229         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12230         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12231         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12232         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12233         * modules/wchar (Depends-on, Makefile.am): Likewise.
12234         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12235         should be poisoned.
12236         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12237         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12238         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12239         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12240         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12241         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12242         * m4/math_h.m4 (gl_MATH_H): Likewise.
12243         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12244         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12245         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12246         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12247         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12248         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12249         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12250         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12251         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12254         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12255         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12256         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12257         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12258         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12259         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12260         GL_LINK_WARNING.
12261         * lib/ctype.in.h: Likewise.
12262         * lib/dirent.in.h: Likewise.
12263         * lib/fcntl.in.h: Likewise.
12264         * lib/inttypes.in.h: Likewise.
12265         * lib/langinfo.in.h: Likewise.
12266         * lib/locale.in.h: Likewise.
12267         * lib/math.in.h: Likewise.
12268         * lib/search.in.h: Likewise.
12269         * lib/signal.in.h: Likewise.
12270         * lib/spawn.in.h: Likewise.
12271         * lib/stdio.in.h: Likewise.
12272         * lib/stdlib.in.h: Likewise.
12273         * lib/string.in.h: Likewise.
12274         * lib/strings.in.h: Likewise.
12275         * lib/sys_file.in.h: Likewise.
12276         * lib/sys_ioctl.in.h: Likewise.
12277         * lib/sys_select.in.h: Likewise.
12278         * lib/sys_socket.in.h: Likewise.
12279         * lib/sys_stat.in.h: Likewise.
12280         * lib/sys_times.in.h: Likewise.
12281         * lib/sys_utsname.in.h: Likewise.
12282         * lib/unistd.in.h: Likewise.
12283         * lib/wchar.in.h: Likewise.
12284
12285 2010-01-20  Bruno Haible  <bruno@clisp.org>
12286
12287         Avoid duplicate -lm.
12288         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12289         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12290         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12291         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12292         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12293         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12294         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12295         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12296         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12297         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12298         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12299         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12300         Reported by Paolo Bonzini.
12301
12302 2010-01-19  Bruno Haible  <bruno@clisp.org>
12303
12304         langinfo, nl_langinfo: Relicense under LGPLv2+.
12305         * modules/langinfo (License): Change to LGPLv2+.
12306         * modules/nl_langinfo (License): Likewise.
12307         Patch by David Lutterkort <lutter@redhat.com>.
12308
12309 2010-01-19  Bruno Haible  <bruno@clisp.org>
12310
12311         Avoid compilation error with cc on OSF/1 5.1.
12312         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12313         statement, not before.
12314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12315
12316 2010-01-18  Bruno Haible  <bruno@clisp.org>
12317
12318         Avoid a link error due to the __printf__ symbol.
12319         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12320         and 2.6.x.
12321         (__format__, __printf__): Remove definitions.
12322         * lib/argp-fmtstream.h: Likewise.
12323         * lib/argp.h: Likewise.
12324         * lib/error.h: Likewise.
12325         * lib/vasnprintf.h: Likewise.
12326         * lib/xprintf.h: Likewise.
12327         * lib/xvasprintf.h: Likewise.
12328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12329
12330 2010-01-18  Bruno Haible  <bruno@clisp.org>
12331
12332         Tests for module 'tanl'.
12333         * modules/tanl-tests: New file.
12334         * tests/test-tanl.c: New file.
12335
12336         Tests for module 'sqrtl'.
12337         * modules/sqrtl-tests: New file.
12338         * tests/test-sqrtl.c: New file.
12339
12340         Tests for module 'sinl'.
12341         * modules/sinl-tests: New file.
12342         * tests/test-sinl.c: New file.
12343
12344         Tests for module 'logl'.
12345         * modules/logl-tests: New file.
12346         * tests/test-logl.c: New file.
12347
12348         Tests for module 'expl'.
12349         * modules/expl-tests: New file.
12350         * tests/test-expl.c: New file.
12351
12352         Tests for module 'cosl'.
12353         * modules/cosl-tests: New file.
12354         * tests/test-cosl.c: New file.
12355
12356         Tests for module 'atanl'.
12357         * modules/atanl-tests: New file.
12358         * tests/test-atanl.c: New file.
12359
12360         Tests for module 'asinl'.
12361         * modules/asinl-tests: New file.
12362         * tests/test-asinl.c: New file.
12363
12364         Tests for module 'acosl'.
12365         * modules/acosl-tests: New file.
12366         * tests/test-acosl.c: New file.
12367
12368         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12369         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12370         tanl): Use the standard gnulib idiom.
12371         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12372         * lib/sinl.c: Likewise.
12373         * lib/tanl.c: Don't include trigl.c.
12374         (kernel_tanl): Make static.
12375         * lib/sincosl.c: Include trigl.h first.
12376         * lib/trigl.c: Likewise.
12377         * m4/acosl.m4: New file.
12378         * m4/asinl.m4: New file.
12379         * m4/atanl.m4: New file.
12380         * m4/cosl.m4: New file.
12381         * m4/expl.m4: New file.
12382         * m4/logl.m4: New file.
12383         * m4/sinl.m4: New file.
12384         * m4/sqrtl.m4: New file.
12385         * m4/tanl.m4: New file.
12386         * m4/mathl.m4: Remove file.
12387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12388         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12389         Don't initialize GNULIB_MATHL.
12390         * modules/acosl: New file.
12391         * modules/asinl: New file.
12392         * modules/atanl: New file.
12393         * modules/cosl: New file.
12394         * modules/expl: New file.
12395         * modules/logl: New file.
12396         * modules/sinl: New file.
12397         * modules/sqrtl: New file.
12398         * modules/tanl: New file.
12399         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12400         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12401         substitute GNULIB_MATHL.
12402         * modules/mathl: Rewritten.
12403         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12404         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12405         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12406         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12407         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12408         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12409         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12410         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12411         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
12412
12413 2010-01-18  Bruno Haible  <bruno@clisp.org>
12414
12415         sqrt: Make gl_FUNC_SQRT requirable.
12416         * m4/sqrt.m4: New file.
12417         * modules/sqrt (Files): Add it.
12418         (configure.ac): Invoke gl_FUNC_SQRT.
12419
12420 2010-01-18  Bruno Haible  <bruno@clisp.org>
12421
12422         New modules for common <math.h> functions.
12423         * m4/mathfunc.m4: New file.
12424         * modules/acos: New file.
12425         * modules/asin: New file.
12426         * modules/atan: New file.
12427         * modules/atan2: New file.
12428         * modules/cbrt: New file.
12429         * modules/copysign: New file.
12430         * modules/cos: New file.
12431         * modules/cosh: New file.
12432         * modules/erf: New file.
12433         * modules/erfc: New file.
12434         * modules/exp: New file.
12435         * modules/fabs: New file.
12436         * modules/fmod: New file.
12437         * modules/hypot: New file.
12438         * modules/j0: New file.
12439         * modules/j1: New file.
12440         * modules/jn: New file.
12441         * modules/ldexp: New file.
12442         * modules/lgamma: New file.
12443         * modules/log: New file.
12444         * modules/log10: New file.
12445         * modules/log1p: New file.
12446         * modules/logb: New file.
12447         * modules/modf: New file.
12448         * modules/nextafter: New file.
12449         * modules/pow: New file.
12450         * modules/remainder: New file.
12451         * modules/rint: New file.
12452         * modules/sin: New file.
12453         * modules/sinh: New file.
12454         * modules/sqrt: New file.
12455         * modules/tan: New file.
12456         * modules/tanh: New file.
12457         * modules/y0: New file.
12458         * modules/y1: New file.
12459         * modules/yn: New file.
12460         * doc/posix-functions/acos.texi: Mention the 'acos' module.
12461         * doc/posix-functions/asin.texi: Mention the 'asin' module.
12462         * doc/posix-functions/atan.texi: Mention the 'atan' module.
12463         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
12464         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
12465         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
12466         * doc/posix-functions/cos.texi: Mention the 'cos' module.
12467         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
12468         * doc/posix-functions/erf.texi: Mention the 'erf' module.
12469         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
12470         * doc/posix-functions/exp.texi: Mention the 'exp' module.
12471         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
12472         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
12473         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
12474         * doc/posix-functions/j0.texi: Mention the 'j0' module.
12475         * doc/posix-functions/j1.texi: Mention the 'j1' module.
12476         * doc/posix-functions/jn.texi: Mention the 'jn' module.
12477         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
12478         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
12479         * doc/posix-functions/log.texi: Mention the 'log' module.
12480         * doc/posix-functions/log10.texi: Mention the 'log10' module.
12481         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
12482         * doc/posix-functions/logb.texi: Mention the 'logb' module.
12483         * doc/posix-functions/modf.texi: Mention the 'modf' module.
12484         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
12485         * doc/posix-functions/pow.texi: Mention the 'pow' module.
12486         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
12487         * doc/posix-functions/rint.texi: Mention the 'rint' module.
12488         * doc/posix-functions/sin.texi: Mention the 'sin' module.
12489         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
12490         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
12491         * doc/posix-functions/tan.texi: Mention the 'tan' module.
12492         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
12493         * doc/posix-functions/y0.texi: Mention the 'y0' module.
12494         * doc/posix-functions/y1.texi: Mention the 'y1' module.
12495         * doc/posix-functions/yn.texi: Mention the 'yn' module.
12496
12497 2010-01-18  Jim Meyering  <meyering@redhat.com>
12498
12499         ignore-value: relax license to LGPLv2+
12500         * modules/ignore-value (License): Relax to LGPLv2+.
12501
12502         getdate: don't leak when TZ contains two or more '"'s
12503         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
12504         double quote in TZ after the first one.
12505
12506         readtokens: do not leak internal token_lengths buffer
12507         * lib/readtokens.c (readtokens): Free the local, lengths,
12508         when the supplied "token_lengths" parameter is NULL.
12509
12510 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12511
12512         Fix a couple of missing LIBTHREAD link failures on AIX.
12513         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
12514         $(LIBTHREAD).
12515         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
12516
12517         Link test-poll against INET_PTON_LIB.
12518         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
12519         for inet_pton on Solaris 10.
12520
12521 2010-01-17  Bruno Haible  <bruno@clisp.org>
12522
12523         unistdio/*-sprintf: Fix typo in module description.
12524         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
12525         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
12526         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
12527         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
12528         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
12529         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
12530         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
12531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12532
12533 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12534
12535         gnulib-tool: fix filelist for AIX, HP-UX ksh.
12536         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
12537         variables in shell case patterns, for AIX and HP-UX ksh.
12538
12539         Split large sed scripts, for HP-UX sed.
12540         * modules/stdio: Split sed scripts around 50 sed commands,
12541         to avoid HP-UX limit of 99 commands, in the near future.
12542         * modules/string: Likewise.
12543         * modules/unistd: Likewise.
12544
12545         gnulib-tool: avoid writing in the current directory.
12546         * gnulib-tool (func_emit_lib_Makefile_am)
12547         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
12548         not in the current directory, so concurrent gnulib-tool
12549         instances do not interfere.
12550
12551 2010-01-16  Jim Meyering  <meyering@redhat.com>
12552
12553         doc: update users.txt
12554         * users.txt: Add grep.
12555         (diffutils, gzip): Update URLs.
12556
12557 2010-01-12  Bruno Haible  <bruno@clisp.org>
12558
12559         posix_spawn: Avoid test failure on Cygwin.
12560         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
12561         characters.
12562         Reported by Simon Josefsson.
12563
12564 2010-01-12  Bruno Haible  <bruno@clisp.org>
12565
12566         * tests/test-cond.c (main): When skipping the test, show the reason.
12567
12568 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12569
12570         * lib/striconv.c (str_cd_iconv): Avoid if before free.
12571
12572 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12573
12574         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
12575         VC_LIST_ALWAYS_EXCLUDE_REGEX.
12576
12577 2010-01-12  Eric Blake  <ebb9@byu.net>
12578
12579         build: guarantee AS_VAR_IF
12580         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
12581         (gl_AS_VAR_IF): Move...
12582         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
12583         Reported by Simon Josefsson.
12584
12585 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12586
12587         * lib/stdio.in.h: Fix typo.
12588
12589 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12590
12591         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
12592         libgpg-error.
12593
12594 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12595
12596         * tests/test-xalloc-die.sh: Use $EXEEXT.
12597
12598 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12599             Bruno Haible  <bruno@clisp.org>
12600
12601         getlogin, getlogin_r: Avoid test failure.
12602         * tests/test-getlogin.c: Include <stdio.h>.
12603         (main): Skip the test when the function fails because stdin is not a
12604         tty.
12605         * tests/test-getlogin_r.c: Include <stdio.h>.
12606         (main): Skip the test when the function fails because stdin is not a
12607         tty.
12608
12609 2010-01-11  Eric Blake  <ebb9@byu.net>
12610
12611         tests: avoid more large file warnings
12612         * tests/test-fflush.c: Avoid warning about ftell use.
12613         * tests/test-fseek.c: Avoid warning about fseek use.
12614
12615 2010-01-10  Bruno Haible  <bruno@clisp.org>
12616
12617         nproc: Work better on Linux when /proc and /sys are not mounted.
12618         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
12619         as lower bound when, on glibc/Linux systems,
12620         sysconf (_SC_NPROCESSORS_CONF) returns 1.
12621         Suggested by Pádraig Brady <P@draigbrady.com>.
12622         Reported by Dmitry V. Levin <ldv@altlinux.org>.
12623
12624         nproc: Refactor.
12625         * lib/nproc.c (num_processors_via_affinity_mask): New function,
12626         extracted from num_processors.
12627         (num_processors): Call it.
12628
12629 2010-01-11  Jim Meyering  <meyering@redhat.com>
12630
12631         utimecmp: avoid new warning from upcoming gcc-4.5.0
12632         * lib/utimecmp.c (BILLION): Define using #define rather than an
12633         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
12634
12635 2010-01-11  Eric Blake  <ebb9@byu.net>
12636
12637         math: add portability warnings for classification macros
12638         * modules/math (Depends-on): Add warn-on-use.
12639         (Makefile.am): Provide new substitutions.
12640         * m4/math_h.m4 (gl_MATH_H): Require inline.
12641         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
12642         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
12643         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
12644         implement warnings.
12645
12646         unistd: warn on use of environ without module
12647         * modules/unistd (Depends-on): Add warn-on-use.
12648         (Makefile.am): Provide new substitutions.
12649         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
12650         * lib/unistd.in.h (environ): Wrap with a warning helper function.
12651
12652         stdio: warn on suspicious uses
12653         * modules/stdio (Depends-on): Add warn-on-use.
12654         (Makefile.am): Provide new substitutions.
12655         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
12656         fseeko.
12657         * lib/stdio.in.h (gets): Always warn on use.
12658         (fseek, ftell): Adjust when warnings are issued, and honor
12659         _GL_NO_LARGE_FILES as a way to silence the warning.
12660         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
12661         any warning about large file offsets.
12662         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
12663         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
12664         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
12665         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
12666         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
12667         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
12668         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
12669         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
12670
12671         warn-on-use: new module
12672         * modules/warn-on-use: New file.
12673         * build-aux/warn-on-use.h: Likewise.
12674         * m4/warn-on-use.m4: Likewise.
12675         * MODULES.html.sh (Support for building): Mention it.
12676
12677 2010-01-10  Bruno Haible  <bruno@clisp.org>
12678
12679         Tests for module 'unistr/u32-strdup'.
12680         * modules/unistr/u32-strdup-tests: New file.
12681         * tests/unistr/test-u32-strdup.c: New file.
12682
12683         Tests for module 'unistr/u16-strdup'.
12684         * modules/unistr/u16-strdup-tests: New file.
12685         * tests/unistr/test-u16-strdup.c: New file.
12686
12687         Tests for module 'unistr/u8-strdup'.
12688         * modules/unistr/u8-strdup-tests: New file.
12689         * tests/unistr/test-u8-strdup.c: New file.
12690         * tests/unistr/test-strdup.h: New file.
12691
12692         Tests for module 'unistr/u32-strncmp'.
12693         * modules/unistr/u32-strncmp-tests: New file.
12694         * tests/unistr/test-u32-strncmp.c: New file.
12695
12696         Tests for module 'unistr/u16-strncmp'.
12697         * modules/unistr/u16-strncmp-tests: New file.
12698         * tests/unistr/test-u16-strncmp.c: New file.
12699
12700         Tests for module 'unistr/u8-strncmp'.
12701         * modules/unistr/u8-strncmp-tests: New file.
12702         * tests/unistr/test-u8-strncmp.c: New file.
12703         * tests/unistr/test-strncmp.h: New file.
12704
12705         Tests for module 'unistr/u32-strcoll'.
12706         * modules/unistr/u32-strcoll-tests: New file.
12707         * tests/unistr/test-u32-strcoll.c: New file.
12708
12709         Tests for module 'unistr/u16-strcoll'.
12710         * modules/unistr/u16-strcoll-tests: New file.
12711         * tests/unistr/test-u16-strcoll.c: New file.
12712
12713         Tests for module 'unistr/u8-strcoll'.
12714         * modules/unistr/u8-strcoll-tests: New file.
12715         * tests/unistr/test-u8-strcoll.c: New file.
12716
12717         Tests for module 'unistr/u32-strcmp'.
12718         * modules/unistr/u32-strcmp-tests: New file.
12719         * tests/unistr/test-u32-strcmp.c: New file.
12720         * tests/unistr/test-u32-strcmp.h: New file.
12721
12722         Tests for module 'unistr/u16-strcmp'.
12723         * modules/unistr/u16-strcmp-tests: New file.
12724         * tests/unistr/test-u16-strcmp.c: New file.
12725         * tests/unistr/test-u16-strcmp.h: New file.
12726
12727         Tests for module 'unistr/u8-strcmp'.
12728         * modules/unistr/u8-strcmp-tests: New file.
12729         * tests/unistr/test-u8-strcmp.c: New file.
12730         * tests/unistr/test-u8-strcmp.h: New file.
12731         * tests/unistr/test-strcmp.h: New file.
12732
12733         Tests for module 'unistr/u32-strncat'.
12734         * modules/unistr/u32-strncat-tests: New file.
12735         * tests/unistr/test-u32-strncat.c: New file.
12736
12737         Tests for module 'unistr/u16-strncat'.
12738         * modules/unistr/u16-strncat-tests: New file.
12739         * tests/unistr/test-u16-strncat.c: New file.
12740
12741         Tests for module 'unistr/u8-strncat'.
12742         * modules/unistr/u8-strncat-tests: New file.
12743         * tests/unistr/test-u8-strncat.c: New file.
12744         * tests/unistr/test-strncat.h: New file.
12745
12746         Tests for module 'unistr/u32-strcat'.
12747         * modules/unistr/u32-strcat-tests: New file.
12748         * tests/unistr/test-u32-strcat.c: New file.
12749
12750         Tests for module 'unistr/u16-strcat'.
12751         * modules/unistr/u16-strcat-tests: New file.
12752         * tests/unistr/test-u16-strcat.c: New file.
12753
12754         Tests for module 'unistr/u8-strcat'.
12755         * modules/unistr/u8-strcat-tests: New file.
12756         * tests/unistr/test-u8-strcat.c: New file.
12757         * tests/unistr/test-strcat.h: New file.
12758
12759         Tests for module 'unistr/u32-stpncpy'.
12760         * modules/unistr/u32-stpncpy-tests: New file.
12761         * tests/unistr/test-u32-stpncpy.c: New file.
12762
12763         Tests for module 'unistr/u16-stpncpy'.
12764         * modules/unistr/u16-stpncpy-tests: New file.
12765         * tests/unistr/test-u16-stpncpy.c: New file.
12766
12767         Tests for module 'unistr/u8-stpncpy'.
12768         * modules/unistr/u8-stpncpy-tests: New file.
12769         * tests/unistr/test-u8-stpncpy.c: New file.
12770         * tests/unistr/test-stpncpy.h: New file.
12771
12772         Tests for module 'unistr/u32-strncpy'.
12773         * modules/unistr/u32-strncpy-tests: New file.
12774         * tests/unistr/test-u32-strncpy.c: New file.
12775
12776         Tests for module 'unistr/u16-strncpy'.
12777         * modules/unistr/u16-strncpy-tests: New file.
12778         * tests/unistr/test-u16-strncpy.c: New file.
12779
12780         Tests for module 'unistr/u8-strncpy'.
12781         * modules/unistr/u8-strncpy-tests: New file.
12782         * tests/unistr/test-u8-strncpy.c: New file.
12783         * tests/unistr/test-strncpy.h: New file.
12784
12785         Tests for module 'unistr/u32-stpcpy'.
12786         * modules/unistr/u32-stpcpy-tests: New file.
12787         * tests/unistr/test-u32-stpcpy.c: New file.
12788
12789         Tests for module 'unistr/u16-stpcpy'.
12790         * modules/unistr/u16-stpcpy-tests: New file.
12791         * tests/unistr/test-u16-stpcpy.c: New file.
12792
12793         Tests for module 'unistr/u8-stpcpy'.
12794         * modules/unistr/u8-stpcpy-tests: New file.
12795         * tests/unistr/test-u8-stpcpy.c: New file.
12796         * tests/unistr/test-stpcpy.h: New file.
12797
12798         Tests for module 'unistr/u32-strcpy'.
12799         * modules/unistr/u32-strcpy-tests: New file.
12800         * tests/unistr/test-u32-strcpy.c: New file.
12801
12802         Tests for module 'unistr/u16-strcpy'.
12803         * modules/unistr/u16-strcpy-tests: New file.
12804         * tests/unistr/test-u16-strcpy.c: New file.
12805
12806         Tests for module 'unistr/u8-strcpy'.
12807         * modules/unistr/u8-strcpy-tests: New file.
12808         * tests/unistr/test-u8-strcpy.c: New file.
12809         * tests/unistr/test-strcpy.h: New file.
12810
12811         Tests for module 'unistr/u32-strnlen'.
12812         * modules/unistr/u32-strnlen-tests: New file.
12813         * tests/unistr/test-u32-strnlen.c: New file.
12814
12815         Tests for module 'unistr/u16-strnlen'.
12816         * modules/unistr/u16-strnlen-tests: New file.
12817         * tests/unistr/test-u16-strnlen.c: New file.
12818
12819         Tests for module 'unistr/u8-strnlen'.
12820         * modules/unistr/u8-strnlen-tests: New file.
12821         * tests/unistr/test-u8-strnlen.c: New file.
12822         * tests/unistr/test-strnlen.h: New file.
12823
12824         Tests for module 'unistr/u32-strlen'.
12825         * modules/unistr/u32-strlen-tests: New file.
12826         * tests/unistr/test-u32-strlen.c: New file.
12827
12828         Tests for module 'unistr/u16-strlen'.
12829         * modules/unistr/u16-strlen-tests: New file.
12830         * tests/unistr/test-u16-strlen.c: New file.
12831
12832         Tests for module 'unistr/u8-strlen'.
12833         * modules/unistr/u8-strlen-tests: New file.
12834         * tests/unistr/test-u8-strlen.c: New file.
12835
12836         Tests for module 'unistr/u32-prev'.
12837         * modules/unistr/u32-prev-tests: New file.
12838         * tests/unistr/test-u32-prev.c: New file.
12839
12840         Tests for module 'unistr/u16-prev'.
12841         * modules/unistr/u16-prev-tests: New file.
12842         * tests/unistr/test-u16-prev.c: New file.
12843
12844         Tests for module 'unistr/u8-prev'.
12845         * modules/unistr/u8-prev-tests: New file.
12846         * tests/unistr/test-u8-prev.c: New file.
12847
12848         Tests for module 'unistr/u32-next'.
12849         * modules/unistr/u32-next-tests: New file.
12850         * tests/unistr/test-u32-next.c: New file.
12851
12852         Tests for module 'unistr/u16-next'.
12853         * modules/unistr/u16-next-tests: New file.
12854         * tests/unistr/test-u16-next.c: New file.
12855
12856         Tests for module 'unistr/u8-next'.
12857         * modules/unistr/u8-next-tests: New file.
12858         * tests/unistr/test-u8-next.c: New file.
12859
12860         Tests for module 'unistr/u32-strmbtouc'.
12861         * modules/unistr/u32-strmbtouc-tests: New file.
12862         * tests/unistr/test-u32-strmbtouc.c: New file.
12863
12864         Tests for module 'unistr/u16-strmbtouc'.
12865         * modules/unistr/u16-strmbtouc-tests: New file.
12866         * tests/unistr/test-u16-strmbtouc.c: New file.
12867
12868         Tests for module 'unistr/u8-strmbtouc'.
12869         * modules/unistr/u8-strmbtouc-tests: New file.
12870         * tests/unistr/test-u8-strmbtouc.c: New file.
12871
12872         Tests for module 'unistr/u32-strmblen'.
12873         * modules/unistr/u32-strmblen-tests: New file.
12874         * tests/unistr/test-u32-strmblen.c: New file.
12875
12876         Tests for module 'unistr/u16-strmblen'.
12877         * modules/unistr/u16-strmblen-tests: New file.
12878         * tests/unistr/test-u16-strmblen.c: New file.
12879
12880         Tests for module 'unistr/u8-strmblen'.
12881         * modules/unistr/u8-strmblen-tests: New file.
12882         * tests/unistr/test-u8-strmblen.c: New file.
12883
12884         Tests for module 'unistr/u32-cpy-alloc'.
12885         * modules/unistr/u32-cpy-alloc-tests: New file.
12886         * tests/unistr/test-u32-cpy-alloc.c: New file.
12887
12888         Tests for module 'unistr/u16-cpy-alloc'.
12889         * modules/unistr/u16-cpy-alloc-tests: New file.
12890         * tests/unistr/test-u16-cpy-alloc.c: New file.
12891
12892         Tests for module 'unistr/u8-cpy-alloc'.
12893         * modules/unistr/u8-cpy-alloc-tests: New file.
12894         * tests/unistr/test-u8-cpy-alloc.c: New file.
12895         * tests/unistr/test-cpy-alloc.h: New file.
12896
12897         Tests for module 'unistr/u32-mbsnlen'.
12898         * modules/unistr/u32-mbsnlen-tests: New file.
12899         * tests/unistr/test-u32-mbsnlen.c: New file.
12900
12901         Tests for module 'unistr/u16-mbsnlen'.
12902         * modules/unistr/u16-mbsnlen-tests: New file.
12903         * tests/unistr/test-u16-mbsnlen.c: New file.
12904
12905         Tests for module 'unistr/u8-mbsnlen'.
12906         * modules/unistr/u8-mbsnlen-tests: New file.
12907         * tests/unistr/test-u8-mbsnlen.c: New file.
12908
12909         Tests for module 'unistr/u32-chr'.
12910         * modules/unistr/u32-chr-tests: New file.
12911         * tests/unistr/test-u32-chr.c: New file.
12912
12913         Tests for module 'unistr/u16-chr'.
12914         * modules/unistr/u16-chr-tests: New file.
12915         * tests/unistr/test-u16-chr.c: New file.
12916
12917         Tests for module 'unistr/u8-chr'.
12918         * modules/unistr/u8-chr-tests: New file.
12919         * tests/unistr/test-u8-chr.c: New file.
12920         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
12921
12922         Tests for module 'unistr/u32-cmp2'.
12923         * modules/unistr/u32-cmp2-tests: New file.
12924         * tests/unistr/test-u32-cmp2.c: New file.
12925
12926         Tests for module 'unistr/u16-cmp2'.
12927         * modules/unistr/u16-cmp2-tests: New file.
12928         * tests/unistr/test-u16-cmp2.c: New file.
12929
12930         Tests for module 'unistr/u8-cmp2'.
12931         * modules/unistr/u8-cmp2-tests: New file.
12932         * tests/unistr/test-u8-cmp2.c: New file.
12933         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
12934
12935         Tests for module 'unistr/u32-cmp'.
12936         * modules/unistr/u32-cmp-tests: New file.
12937         * tests/unistr/test-u32-cmp.c: New file.
12938
12939         Tests for module 'unistr/u16-cmp'.
12940         * modules/unistr/u16-cmp-tests: New file.
12941         * tests/unistr/test-u16-cmp.c: New file.
12942
12943         Tests for module 'unistr/u8-cmp'.
12944         * modules/unistr/u8-cmp-tests: New file.
12945         * tests/unistr/test-u8-cmp.c: New file.
12946         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
12947
12948         Tests for module 'unistr/u32-set'.
12949         * modules/unistr/u32-set-tests: New file.
12950         * tests/unistr/test-u32-set.c: New file.
12951
12952         Tests for module 'unistr/u16-set'.
12953         * modules/unistr/u16-set-tests: New file.
12954         * tests/unistr/test-u16-set.c: New file.
12955
12956         Tests for module 'unistr/u8-set'.
12957         * modules/unistr/u8-set-tests: New file.
12958         * tests/unistr/test-u8-set.c: New file.
12959         * tests/unistr/test-set.h: New file.
12960
12961         Tests for module 'unistr/u32-move'.
12962         * modules/unistr/u32-move-tests: New file.
12963         * tests/unistr/test-u32-move.c: New file.
12964
12965         Tests for module 'unistr/u16-move'.
12966         * modules/unistr/u16-move-tests: New file.
12967         * tests/unistr/test-u16-move.c: New file.
12968
12969         Tests for module 'unistr/u8-move'.
12970         * modules/unistr/u8-move-tests: New file.
12971         * tests/unistr/test-u8-move.c: New file.
12972         * tests/unistr/test-move.h: New file.
12973
12974         Tests for module 'unistr/u32-cpy'.
12975         * modules/unistr/u32-cpy-tests: New file.
12976         * tests/unistr/test-u32-cpy.c: New file.
12977
12978         Tests for module 'unistr/u16-cpy'.
12979         * modules/unistr/u16-cpy-tests: New file.
12980         * tests/unistr/test-u16-cpy.c: New file.
12981
12982         Tests for module 'unistr/u8-cpy'.
12983         * modules/unistr/u8-cpy-tests: New file.
12984         * tests/unistr/test-u8-cpy.c: New file.
12985         * tests/unistr/test-cpy.h: New file.
12986
12987 2010-01-09  Bruno Haible  <bruno@clisp.org>
12988
12989         Tests for module 'unistr/u32-uctomb'.
12990         * modules/unistr/u32-uctomb-tests: New file.
12991         * tests/unistr/test-u32-uctomb.c: New file.
12992
12993         Tests for module 'unistr/u16-uctomb'.
12994         * modules/unistr/u16-uctomb-tests: New file.
12995         * tests/unistr/test-u16-uctomb.c: New file.
12996
12997         Tests for module 'unistr/u8-uctomb'.
12998         * modules/unistr/u8-uctomb-tests: New file.
12999         * tests/unistr/test-u8-uctomb.c: New file.
13000
13001         Tests for module 'unistr/u32-mbtoucr'.
13002         * modules/unistr/u32-mbtoucr-tests: New file.
13003         * tests/unistr/test-u32-mbtoucr.c: New file.
13004
13005         Tests for module 'unistr/u16-mbtoucr'.
13006         * modules/unistr/u16-mbtoucr-tests: New file.
13007         * tests/unistr/test-u16-mbtoucr.c: New file.
13008
13009         Tests for module 'unistr/u8-mbtoucr'.
13010         * modules/unistr/u8-mbtoucr-tests: New file.
13011         * tests/unistr/test-u8-mbtoucr.c: New file.
13012
13013         Tests for module 'unistr/u32-mbtouc'.
13014         * modules/unistr/u32-mbtouc-tests: New file.
13015         * tests/unistr/test-u32-mbtouc.c: New file.
13016
13017         Tests for module 'unistr/u16-mbtouc'.
13018         * modules/unistr/u16-mbtouc-tests: New file.
13019         * tests/unistr/test-u16-mbtouc.c: New file.
13020
13021         Tests for module 'unistr/u8-mbtouc'.
13022         * modules/unistr/u8-mbtouc-tests: New file.
13023         * tests/unistr/test-u8-mbtouc.c: New file.
13024
13025         Tests for module 'unistr/u32-mbtouc-unsafe'.
13026         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13027         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13028         * tests/unistr/test-u32-mbtouc.h: New file.
13029
13030         Tests for module 'unistr/u16-mbtouc-unsafe'.
13031         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13032         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13033         * tests/unistr/test-u16-mbtouc.h: New file.
13034
13035         Tests for module 'unistr/u8-mbtouc-unsafe'.
13036         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13037         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13038         * tests/unistr/test-u8-mbtouc.h: New file.
13039
13040         Tests for module 'unistr/u32-mblen'.
13041         * modules/unistr/u32-mblen-tests: New file.
13042         * tests/unistr/test-u32-mblen.c: New file.
13043
13044         Tests for module 'unistr/u16-mblen'.
13045         * modules/unistr/u16-mblen-tests: New file.
13046         * tests/unistr/test-u16-mblen.c: New file.
13047
13048         Tests for module 'unistr/u8-mblen'.
13049         * modules/unistr/u8-mblen-tests: New file.
13050         * tests/unistr/test-u8-mblen.c: New file.
13051
13052         Tests for module 'unistr/u32-to-u16'.
13053         * modules/unistr/u32-to-u16-tests: New file.
13054         * tests/unistr/test-u32-to-u16.c: New file.
13055
13056         Tests for module 'unistr/u32-to-u8'.
13057         * modules/unistr/u32-to-u8-tests: New file.
13058         * tests/unistr/test-u32-to-u8.c: New file.
13059
13060         Tests for module 'unistr/u16-to-u32'.
13061         * modules/unistr/u16-to-u32-tests: New file.
13062         * tests/unistr/test-u16-to-u32.c: New file.
13063
13064         Tests for module 'unistr/u16-to-u8'.
13065         * modules/unistr/u16-to-u8-tests: New file.
13066         * tests/unistr/test-u16-to-u8.c: New file.
13067
13068         Tests for module 'unistr/u8-to-u32'.
13069         * modules/unistr/u8-to-u32-tests: New file.
13070         * tests/unistr/test-u8-to-u32.c: New file.
13071
13072         Tests for module 'unistr/u8-to-u16'.
13073         * modules/unistr/u8-to-u16-tests: New file.
13074         * tests/unistr/test-u8-to-u16.c: New file.
13075
13076         Tests for module 'unistr/u32-check'.
13077         * modules/unistr/u32-check-tests: New file.
13078         * tests/unistr/test-u32-check.c: New file.
13079
13080         Tests for module 'unistr/u16-check'.
13081         * modules/unistr/u16-check-tests: New file.
13082         * tests/unistr/test-u16-check.c: New file.
13083
13084         Tests for module 'unistr/u8-check'.
13085         * modules/unistr/u8-check-tests: New file.
13086         * tests/unistr/test-u8-check.c: New file.
13087
13088         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13089         (category_equals): New function.
13090         (main): Add more tests.
13091         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13092
13093         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13094
13095 2010-01-10  Bruno Haible  <bruno@clisp.org>
13096
13097         unistr/u*-strcoll: Try harder to distinguish different strings.
13098         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13099         compare s1 and s2 to see if they are different.
13100
13101 2010-01-10  Bruno Haible  <bruno@clisp.org>
13102
13103         unistr/u*-stpncpy: Fix the return value.
13104         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13105         description of the return value consistent with stpncpy in glibc.
13106         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13107         written non-NUL unit.
13108
13109 2010-01-10  Bruno Haible  <bruno@clisp.org>
13110
13111         unistr/u*-next: Add missing dependencies.
13112         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13113         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13114         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13115
13116 2010-01-10  Bruno Haible  <bruno@clisp.org>
13117
13118         unistr/u8-mbsnlen: Fix return value for incomplete character.
13119         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13120         u8_mblen.
13121         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13122         Remove unistr/u8-mblen.
13123         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13124         u16_mblen.
13125         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13126         Remove unistr/u16-mblen.
13127
13128 2010-01-10  Bruno Haible  <bruno@clisp.org>
13129
13130         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13131         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13132         Reported by Brian Gough <bjg@gnu.org> and
13133         Chris Clayton <chris2553@googlemail.com> via
13134         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13135
13136 2010-01-09  Bruno Haible  <bruno@clisp.org>
13137
13138         unistr/u16-to-u32: Reject invalid input.
13139         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13140         u16_mbtouc.
13141         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13142         Remove unistr/u16-mbtouc.
13143
13144         unistr/u16-to-u8: Reject invalid input.
13145         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13146         u16_mbtouc.
13147         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13148         Remove unistr/u16-mbtouc.
13149
13150         unistr/u8-to-u32: Reject invalid input.
13151         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13152         u8_mbtouc.
13153         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13154         Remove unistr/u8-mbtouc.
13155
13156         unistr/u8-to-u16: Reject invalid input.
13157         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13158         u8_mbtouc.
13159         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13160         Remove unistr/u8-mbtouc.
13161
13162 2010-01-09  Bruno Haible  <bruno@clisp.org>
13163
13164         Tests for module 'getlogin'.
13165         * modules/getlogin-tests: New file.
13166         * tests/test-getlogin.c: New file.
13167
13168         New module 'getlogin'.
13169         * lib/unistd.in.h (getlogin): New declaration.
13170         * lib/getlogin.c: New file.
13171         * m4/getlogin.m4: New file.
13172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13173         HAVE_GETLOGIN.
13174         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13175         HAVE_GETLOGIN.
13176         * modules/getlogin: New file.
13177         * doc/posix-functions/getlogin.texi: Mention the new module.
13178         Reported by John W. Eaton <jwe@gnu.org>.
13179
13180 2010-01-09  Bruno Haible  <bruno@clisp.org>
13181
13182         getlogin_r: Support for native Windows.
13183         * lib/getlogin_r.c: Include <windows.h>
13184         (getlogin_r): Implement for native Windows.
13185         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13186         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13187         via John W. Eaton <jwe@gnu.org>.
13188
13189 2010-01-09  Bruno Haible  <bruno@clisp.org>
13190
13191         getlogin_r: Small fixes.
13192         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13193         succeeds.
13194         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13195         before testing whether getlogin_r is declared. No need to set
13196         HAVE_DECL_GETLOGIN_R to 1.
13197         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13198
13199 2010-01-09  Bruno Haible  <bruno@clisp.org>
13200
13201         * lib/unistd.in.h (getlogin_r): Add comment.
13202
13203 2010-01-09  Bruno Haible  <bruno@clisp.org>
13204
13205         Tests for module 'getlogin_r'.
13206         * modules/getlogin_r-tests: New file.
13207         * tests/test-getlogin_r.c: New file.
13208
13209 2010-01-09  Jim Meyering  <meyering@redhat.com>
13210
13211         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13212         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13213         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13214
13215 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13216
13217         * lib/dup2.c (rpl_dup2): Improve comment.
13218
13219 2010-01-08  Eric Blake  <ebb9@byu.net>
13220
13221         maint.mk: allow packages to add makefile @@ exceptions
13222         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13223         (sc_makefile_check): Rename...
13224         (sc_makefile_at_at_check): ...to this, and use hook.
13225
13226         dup2: work around mingw bug
13227         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13228         Reported by Simon Josefsson.
13229
13230 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13231
13232         glob: Fix C++ compilation.
13233         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13234         C++.
13235
13236 2010-01-07  Bruno Haible  <bruno@clisp.org>
13237
13238         Fix indentation of wctype.in.h, broken since 2007-01-06.
13239         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13240
13241 2010-01-07  Bruno Haible  <bruno@clisp.org>
13242
13243         mbslen: Avoid collision with system function.
13244         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13245         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13246         * m4/mbslen.m4: New file.
13247         * modules/mbslen (Files): Add it.
13248         (configure.ac): Invoke gl_MBSLEN.
13249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13250         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13251         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13252         via Ian Beckwith <ianb@erislabs.net>.
13253
13254 2010-01-07  Bruno Haible  <bruno@clisp.org>
13255
13256         dirent: Document the last fix.
13257         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13258
13259 2010-01-07  Bruno Haible  <bruno@clisp.org>
13260
13261         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13262         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13263         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13264         va_list are defined.
13265         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13266         Reported by Eric Blake.
13267
13268 2010-01-07  Bruno Haible  <bruno@clisp.org>
13269
13270         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13271         * modules/xlist (Depends-on): Add 'list',
13272         * modules/xoset (Depends-on): Add 'oset'.
13273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13274
13275 2010-01-07  Bruno Haible  <bruno@clisp.org>
13276
13277         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13278         * doc/posix-functions/strncasecmp.texi: Likewise.
13279
13280 2010-01-07  Bruno Haible  <bruno@clisp.org>
13281
13282         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13283
13284 2010-01-07  John W. Eaton  <jwe@octave.org>
13285
13286         wctype: allow C++ use
13287         * lib/wctype.in.h: Add extern "C" block for C++.
13288
13289 2010-01-06  Eric Blake  <ebb9@byu.net>
13290
13291         maint.mk: detect incorrect GFDL usage
13292         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13293
13294 2010-01-06  Jim Meyering  <meyering@redhat.com>
13295         and Eric Blake  <ebb9@byu.net>
13296
13297         maint.mk: ignore multi-line copyright in NEWS
13298         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13299
13300 2010-01-06  Eric Blake  <ebb9@byu.net>
13301
13302         select: add missing dependency
13303         * modules/select-tests (Depends-on): Move sockets dependency...
13304         * modules/select (Depends-on): ...here.
13305         Reported by Ian Beckwith.
13306
13307         doc: regenerate INSTALL
13308         * doc/INSTALL: Reflect recent autoconf update.
13309         * doc/INSTALL.ISO: Likewise.
13310         * doc/INSTALL.UTF-8: Likewise.
13311
13312         pread: fix compilation on glibc
13313         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13314         Reported by Ralf Wildenhues.
13315
13316         dirent: fix test failure
13317         * lib/dirent.in.h (includes): Guarantee ino_t.
13318         Reported by Ralf Wildenhues.
13319
13320 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13321
13322         linkat, renameat: avoid bad free
13323         * lib/at-func2.c (at_func2): Fix typo.
13324         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13325
13326 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13327
13328         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13329         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13330         to avoid failure of symlink test later.
13331
13332 2010-01-06  Eric Blake  <ebb9@byu.net>
13333
13334         stdio, unistd: guarantee ssize_t
13335         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13336         2008 are exposed when needed.
13337         * lib/stdio.in.h (includes): Likewise.
13338         Reported by Ralf Wildenhues.
13339
13340 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
13341
13342         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
13343         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
13344         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
13345
13346 2010-01-06  Jim Meyering  <meyering@redhat.com>
13347
13348         readtokens: this module *does* require xalloc.h
13349         It uses only functions that were omitted by the old syntax-check rule.
13350         * lib/readtokens.c: Include "xalloc.h" once again.
13351         * modules/readtokens (Depends-on): Add xalloc.
13352         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
13353
13354 2010-01-05  Eric Blake  <ebb9@byu.net>
13355
13356         maint: support 'make announcement' from a VPATH build
13357         * top/maint.mk (announcement): Look for correct NEWS file.
13358
13359 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
13360
13361         utimens (fdutimens): ignore a negative FD, per contract
13362         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
13363         when we have a valid file descriptor.  Otherwise, using a brand
13364         new glibc (with just-patched futimens that now fails with EBADF)
13365         would cause this function to fail with ENOSYS.
13366         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13367         See also http://bugzilla.redhat.com/552320.
13368
13369 2010-01-05  Eric Blake  <ebb9@byu.net>
13370
13371         strcase: document what it provides
13372         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13373         gnulib module.
13374         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13375         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13376
13377 2010-01-05  Jim Meyering  <meyering@redhat.com>
13378
13379         maint: remove useless inclusions of "xalloc.h"
13380         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13381         * lib/readtokens.c: Likewise.
13382         * lib/same.c: Likewise.
13383         * modules/getloadavg (Depends-on): Remove xalloc.
13384         * modules/readtokens: Likewise.
13385         * modules/same: Likewise.
13386
13387         maint.mk: include 4 more function names in alloca.h-checking regexp
13388         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13389         regexp.  Before, we would give a false-positive (saying alloca.h
13390         is included unnecessarily) when the only uses involved omitted symbols.
13391
13392         xalloc.h: use consistent formatting
13393         * lib/xalloc.h: Move declarations to start in the first column.
13394
13395 2010-01-05  Eric Blake  <ebb9@byu.net>
13396
13397         mkdir: avoid xalloc
13398         * lib/mkdir.c (includes): Drop unused header.
13399         Reported by John W. Eaton.
13400
13401 2010-01-04  Jim Meyering  <meyering@redhat.com>
13402
13403         nl_langinfo: avoid configure-time syntax error
13404         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13405         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13406         the empty string.  Don't let that provoke a shell syntax error.
13407
13408         regcomp, regexec, fnmatch: avoid array bounds read error
13409         * lib/regcomp.c (build_equiv_class): From glibc:
13410         Use only the low 24 bits of a findidx return value as an index
13411         into the weights array.  Patch by Ulrich Drepper:
13412         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
13413         * lib/regexec.c (check_node_accept_bytes): Likewise.
13414         * lib/fnmatch_loop.c (FCT): Likewise.
13415
13416         regcomp: skip collseq lookup when there are no rules
13417         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
13418         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
13419
13420         regcomp: recognize ill-formed { } expressions
13421         * lib/regcomp.c (parse_dup_op): From glibc:
13422         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
13423
13424         regcomp: fix typo in comment
13425         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
13426         s/satisfy/satisfies/.
13427
13428         regcomp: sync from glibc: remove dead store
13429         * lib/regcomp.c (duplicate_node_closure): Remove useless
13430         search_duplicated_node call and dead store.
13431
13432         regcomp: sync from glibc; always use nl_langinfo
13433         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
13434         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
13435         * modules/regex (Depends-on): Add nl_langinfo.
13436
13437 2010-01-04  Eric Blake  <ebb9@byu.net>
13438
13439         fdopendir: fix configure test
13440         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
13441
13442 2010-01-01  Bruno Haible  <bruno@clisp.org>
13443
13444         wchar: Remove unused configure check.
13445         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
13446
13447 2010-01-01  Eric Blake  <ebb9@byu.net>
13448
13449         headers: make check of system header explicit
13450         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
13451         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
13452         ourselves.
13453         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13454         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13455         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13456         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
13457         internals.
13458         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
13459         missing.
13460         Suggested by Bruno Haible.
13461
13462 2010-01-01  Jim Meyering  <meyering@redhat.com>
13463
13464         ChangeLog: tweak to eliminate unnecessary copyright line
13465         * ChangeLog: Remove a copyright line that was mistakenly updated
13466         by today's update-copyright run.  Reported by Eric Blake.
13467
13468         test-update-copyright: don't let envvar setting cause test failure
13469         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13470
13471 2010-01-01  Bruno Haible  <bruno@clisp.org>
13472
13473         localename: Avoid gcc warning.
13474         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
13475         function if it is not used.
13476
13477 2010-01-01  Jim Meyering  <meyering@redhat.com>
13478
13479         update nearly all FSF copyright year lists to include 2010
13480         Use the same procedure as for 2009, outlined in
13481         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
13482
13483         version-etc: set COPYRIGHT_YEAR to 2010
13484         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
13485
13486 2009-12-31  Eric Blake  <ebb9@byu.net>
13487
13488         doc: correct availability of cygwin 1.5.x getopt
13489         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
13490         variables.
13491         * doc/posix-functions/opterr.texi (opterr): Likewise.
13492         * doc/posix-functions/optind.texi (optind): Likewise.
13493         * doc/posix-functions/optopt.texi (optopt): Likewise.
13494         * doc/posix-functions/tzname.texi (tzname): Likewise.
13495
13496         openat: update maintainer
13497         * modules/openat (Maintainer): Add myself.
13498
13499         utimens: avoid shadowing warning
13500         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
13501         buffers into one, to avoid shadowing, as well as avoiding a
13502         redundant stat.
13503         Reported by Jim Meyering.
13504
13505         test-dup2: avoid compiler warning
13506         * tests/test-dup2.c (is_inheritable): Only define if used.
13507
13508 2010-01-01  Bruno Haible  <bruno@clisp.org>
13509
13510         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
13511         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
13512         defined, use wctomb instead of wcrtomb.
13513
13514 2010-01-01  Bruno Haible  <bruno@clisp.org>
13515
13516         iconv: Reject native Solaris iconv.
13517         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
13518         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
13519
13520 2009-12-31  Bruno Haible  <bruno@clisp.org>
13521
13522         * tests/test-signal.c (main): Remove test of 'SIG'.
13523
13524 2009-12-31  Bruno Haible  <bruno@clisp.org>
13525
13526         spawn: Fix incomplete fix.
13527         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13528         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13529         warnings for GNULIB_POSIXCHECK again.
13530         Reported by Eric Blake.
13531
13532 2009-12-31  Bruno Haible  <bruno@clisp.org>
13533
13534         Avoid namespace pollution on glibc systems.
13535         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
13536         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
13537         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
13538         glibc systems.
13539
13540 2009-12-31  Bruno Haible  <bruno@clisp.org>
13541
13542         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
13543         (gl_REPLACE_WCHAR_H): Turn into a no-op.
13544         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
13545         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13546         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13547         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13548         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13549
13550 2009-12-31  Bruno Haible  <bruno@clisp.org>
13551
13552         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13553         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
13554         afterwards.
13555
13556 2009-12-31  Bruno Haible  <bruno@clisp.org>
13557
13558         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
13559         SYS_UTSNAME_H.
13560
13561 2009-12-31  Bruno Haible  <bruno@clisp.org>
13562
13563         spawn: Fix misapplied patch.
13564         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13565         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13566         warnings for GNULIB_POSIXCHECK.
13567
13568 2009-12-31  Bruno Haible  <bruno@clisp.org>
13569
13570         times: Update after sys_times changed.
13571         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
13572         * modules/times (Files): Add it.
13573         (configure.ac): Invoke gl_FUNC_TIMES.
13574
13575 2009-12-31  Bruno Haible  <bruno@clisp.org>
13576
13577         Use AC_C_INLINE where necessary.
13578         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
13579         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13580         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13581         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
13582         * m4/mbfile.m4 (gl_MBFILE): Likewise.
13583         * m4/mbiter.m4 (gl_MBITER): Likewise.
13584         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13585         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13586         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
13587         * modules/u64 (configure.ac): Likewise.
13588
13589 2009-12-31  Bruno Haible  <bruno@clisp.org>
13590
13591         Use AC_C_INLINE instead of module 'inline' where possible.
13592         * modules/inline (Description): Clarify purpose.
13593         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
13594         * modules/count-one-bits (Depends-on): Remove inline.
13595         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
13596         * modules/openat (Depends-on): Remove inline.
13597         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
13598         instead of depending on module 'inline'.
13599         * modules/filevercmp (Depends-on, configure.ac): Likewise.
13600         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
13601         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
13602         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
13603         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
13604         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
13605         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
13606         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
13607         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
13608         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
13609         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
13610         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
13611         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
13612         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
13613         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
13614         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
13615         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
13616         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
13617         Likewise.
13618         * modules/unictype/property-ascii-hex-digit (Depends-on,
13619         configure.ac): Likewise.
13620         * modules/unictype/property-bidi-arabic-digit (Depends-on,
13621         configure.ac): Likewise.
13622         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
13623         configure.ac): Likewise.
13624         * modules/unictype/property-bidi-block-separator (Depends-on,
13625         configure.ac): Likewise.
13626         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
13627         configure.ac): Likewise.
13628         * modules/unictype/property-bidi-common-separator (Depends-on,
13629         configure.ac): Likewise.
13630         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
13631         Likewise.
13632         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
13633         configure.ac): Likewise.
13634         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
13635         configure.ac): Likewise.
13636         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
13637         configure.ac): Likewise.
13638         * modules/unictype/property-bidi-european-digit (Depends-on,
13639         configure.ac): Likewise.
13640         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
13641         configure.ac): Likewise.
13642         * modules/unictype/property-bidi-left-to-right (Depends-on,
13643         configure.ac): Likewise.
13644         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
13645         configure.ac): Likewise.
13646         * modules/unictype/property-bidi-other-neutral (Depends-on,
13647         configure.ac): Likewise.
13648         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
13649         Likewise.
13650         * modules/unictype/property-bidi-segment-separator (Depends-on,
13651         configure.ac): Likewise.
13652         * modules/unictype/property-bidi-whitespace (Depends-on,
13653         configure.ac): Likewise.
13654         * modules/unictype/property-combining (Depends-on, configure.ac):
13655         Likewise.
13656         * modules/unictype/property-composite (Depends-on, configure.ac):
13657         Likewise.
13658         * modules/unictype/property-currency-symbol (Depends-on,
13659         configure.ac): Likewise.
13660         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
13661         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
13662         Likewise.
13663         * modules/unictype/property-default-ignorable-code-point (Depends-on,
13664         configure.ac): Likewise.
13665         * modules/unictype/property-deprecated (Depends-on, configure.ac):
13666         Likewise.
13667         * modules/unictype/property-diacritic (Depends-on, configure.ac):
13668         Likewise.
13669         * modules/unictype/property-extender (Depends-on, configure.ac):
13670         Likewise.
13671         * modules/unictype/property-format-control (Depends-on, configure.ac):
13672         Likewise.
13673         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
13674         Likewise.
13675         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
13676         Likewise.
13677         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
13678         Likewise.
13679         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
13680         Likewise.
13681         * modules/unictype/property-hyphen (Depends-on, configure.ac):
13682         Likewise.
13683         * modules/unictype/property-id-continue (Depends-on, configure.ac):
13684         Likewise.
13685         * modules/unictype/property-id-start (Depends-on, configure.ac):
13686         Likewise.
13687         * modules/unictype/property-ideographic (Depends-on, configure.ac):
13688         Likewise.
13689         * modules/unictype/property-ids-binary-operator (Depends-on,
13690         configure.ac): Likewise.
13691         * modules/unictype/property-ids-trinary-operator (Depends-on,
13692         configure.ac): Likewise.
13693         * modules/unictype/property-ignorable-control (Depends-on,
13694         configure.ac): Likewise.
13695         * modules/unictype/property-iso-control (Depends-on, configure.ac):
13696         Likewise.
13697         * modules/unictype/property-join-control (Depends-on, configure.ac):
13698         Likewise.
13699         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
13700         Likewise.
13701         * modules/unictype/property-line-separator (Depends-on, configure.ac):
13702         Likewise.
13703         * modules/unictype/property-logical-order-exception (Depends-on,
13704         configure.ac): Likewise.
13705         * modules/unictype/property-lowercase (Depends-on, configure.ac):
13706         Likewise.
13707         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
13708         * modules/unictype/property-non-break (Depends-on, configure.ac):
13709         Likewise.
13710         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
13711         Likewise.
13712         * modules/unictype/property-numeric (Depends-on, configure.ac):
13713         Likewise.
13714         * modules/unictype/property-other-alphabetic (Depends-on,
13715         configure.ac): Likewise.
13716         * modules/unictype/property-other-default-ignorable-code-point
13717         (Depends-on, configure.ac): Likewise.
13718         * modules/unictype/property-other-grapheme-extend (Depends-on,
13719         configure.ac): Likewise.
13720         * modules/unictype/property-other-id-continue (Depends-on,
13721         configure.ac): Likewise.
13722         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
13723         Likewise.
13724         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
13725         Likewise.
13726         * modules/unictype/property-other-math (Depends-on, configure.ac):
13727         Likewise.
13728         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
13729         Likewise.
13730         * modules/unictype/property-paired-punctuation (Depends-on,
13731         configure.ac): Likewise.
13732         * modules/unictype/property-paragraph-separator (Depends-on,
13733         configure.ac): Likewise.
13734         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
13735         Likewise.
13736         * modules/unictype/property-pattern-white-space (Depends-on,
13737         configure.ac): Likewise.
13738         * modules/unictype/property-private-use (Depends-on, configure.ac):
13739         Likewise.
13740         * modules/unictype/property-punctuation (Depends-on, configure.ac):
13741         Likewise.
13742         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
13743         Likewise.
13744         * modules/unictype/property-radical (Depends-on, configure.ac):
13745         Likewise.
13746         * modules/unictype/property-sentence-terminal (Depends-on,
13747         configure.ac): Likewise.
13748         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
13749         Likewise.
13750         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
13751         * modules/unictype/property-terminal-punctuation (Depends-on,
13752         configure.ac): Likewise.
13753         * modules/unictype/property-titlecase (Depends-on, configure.ac):
13754         Likewise.
13755         * modules/unictype/property-unassigned-code-value (Depends-on,
13756         configure.ac): Likewise.
13757         * modules/unictype/property-unified-ideograph (Depends-on,
13758         configure.ac): Likewise.
13759         * modules/unictype/property-uppercase (Depends-on, configure.ac):
13760         Likewise.
13761         * modules/unictype/property-variation-selector (Depends-on,
13762         configure.ac): Likewise.
13763         * modules/unictype/property-white-space (Depends-on, configure.ac):
13764         Likewise.
13765         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
13766         Likewise.
13767         * modules/unictype/property-xid-start (Depends-on, configure.ac):
13768         Likewise.
13769         * modules/unictype/property-zero-width (Depends-on, configure.ac):
13770         Likewise.
13771         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
13772         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
13773         Likewise.
13774
13775 2009-12-31  Bruno Haible  <bruno@clisp.org>
13776
13777         Remove unnecessary AC_C_INLINE invocation.
13778         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
13779         since 2009-08-21.
13780
13781 2009-12-31  Jim Meyering  <meyering@redhat.com>
13782
13783         maint.mk: don't require explicit gpg_key_ID in cfg.mk
13784         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
13785         With this change, we can all remove the gpg_key_ID = ... definition
13786         from our respective cfg.mk files.
13787
13788         maint.mk: create announcement template in ~/, not in /tmp
13789         * top/maint.mk (emit_upload_commands): Adjust.
13790         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
13791         Remove temporary file, .ci-msg.
13792
13793 2009-12-31  Eric Blake  <ebb9@byu.net>
13794
13795         link-warning: always build headers with link warnings
13796         * modules/arpa_inet (Makefile.am): Always build replacement
13797         header.
13798         * modules/ctype (Makefile.am): Likewise.
13799         * modules/dirent (Makefile.am): Likewise.
13800         * modules/inttypes (Makefile.am): Likewise.
13801         * modules/langinfo (Makefile.am): Likewise.
13802         * modules/locale (Makefile.am): Likewise.
13803         * modules/spawn (Makefile.am): Likewise.
13804         * modules/sys_file (Makefile.am): Likewise.
13805         * modules/sys_ioctl (Makefile.am): Likewise.
13806         * modules/sys_select (Makefile.am): Likewise.
13807         * modules/sys_socket (Makefile.am): Likewise.
13808         * modules/sys_times (Makefile.am): Likewise.
13809         * modules/sys_utsname (Makefile.am): Likewise.
13810         * modules/sys_wait (Makefile.am): Likewise.
13811         * modules/wchar (Makefile.am): Likewise.
13812         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
13813         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
13814         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
13815         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
13816         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
13817         Likewise.
13818         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13819         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13820         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
13821         Likewise.
13822         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
13823         Likewise.
13824         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13825         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
13826         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
13827         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13828         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13829         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13830         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13831         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
13832         (gl_WCHAR_H_DEFAULTS): Likewise.
13833
13834 2009-12-31  Eric Blake  <ebb9@byu.net>
13835
13836         signal, spawn: use link warnings
13837         * lib/signal.in.h (sigset_t): Make unconditional.
13838         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
13839         (sigpending, sigprocmask, sigaction): Add link warnings.
13840         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
13841         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
13842         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
13843         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
13844         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
13845         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
13846         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
13847         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
13848         (posix_spawn_file_actions_destroy)
13849         (posix_spawn_file_actions_addopen)
13850         (posix_spawn_file_actions_addclose)
13851         (posix_spawn_file_actions_adddup2): Likewise.
13852         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
13853         * tests/test-signal.c (main): Enhance test.
13854
13855         spawn: improve wrapper support
13856         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
13857         (gl_SPAWN_H_DEFAULTS): New defaults.
13858         * modules/spawn (Makefile.am): Substitute them.
13859         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
13860         Only declare if missing or broken.
13861
13862         sys_times, sys_utsname: use include_next
13863         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
13864         header.
13865         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
13866         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13867         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13868         * modules/sys_times (Depends-on): Add include_next.
13869         (Makefile.am): Substitute additional values.
13870         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13871         * lib/sys_times.in.h (includes): Include native header, if
13872         available.
13873         * lib/sys_utsname.in.h (includes): Likewise.
13874         * tests/test-sys_times.c (main): Enhance test.
13875
13876         fdutimensat: revert prior patch
13877         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
13878         utimens.h.
13879         Reported by Bruno Haible.
13880
13881 2009-12-30  Eric Blake  <ebb9@byu.net>
13882
13883         sys_wait: drop link-warning dependency
13884         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
13885         link-warning efforts.
13886         * lib/sys_wait.in.h: Likewise.
13887
13888         fdutimensat: remove bogus dependency
13889         * modules/fdutimensat (Depends-on): Drop inline.
13890
13891         unistd: fix typo
13892         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
13893
13894 2009-12-30  Bruno Haible  <bruno@clisp.org>
13895
13896         Fix compilation error with Solaris cc.
13897         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
13898         * lib/unicase/u16-is-invariant.c: Likewise.
13899         * lib/unicase/u32-is-invariant.c: Likewise.
13900         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13901
13902 2009-12-30  Bruno Haible  <bruno@clisp.org>
13903
13904         Fix test crash.
13905         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
13906         locales.
13907         Reported by Simon Josefsson <simon@josefsson.org>.
13908
13909 2009-12-30  Bruno Haible  <bruno@clisp.org>
13910
13911         Fix compilation error on most platforms.
13912         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
13913         Reported by Simon Josefsson <simon@josefsson.org>
13914         and Nelson H. F. Beebe <beebe@math.utah.edu>.
13915
13916 2009-12-30  Eric Blake  <ebb9@byu.net>
13917
13918         futimens, utimensat: work around ntfs-3g bug
13919         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
13920         a ctime bug is present, and expand workaround to cover ntfs-3g.
13921         * lib/utimens.c (fdutimens, lutimens): Likewise.
13922         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
13923         (validate_timespec): Adjust return value.
13924         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
13925         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13926         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
13927
13928 2009-12-29  Eric Blake  <ebb9@byu.net>
13929
13930         link-warning: make usage consistent
13931         * modules/ctype (Depends-on): Add link-warning.
13932         (Makefile.am): Update rules accordingly.
13933         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13934         * modules/locale (Depends-on, Makefile.am): Likewise.
13935         * modules/sys_file (Makefile.am): Likewise.
13936         * modules/getopt-posix (Makefile.am): Delete unused link warning
13937         efforts.
13938         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
13939         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
13940         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
13941         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
13942
13943         stdio: remove unused variables
13944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
13945         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
13946         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13947
13948         tests: test more substitute headers
13949         * modules/ctype-tests: New file.
13950         * modules/dirent-tests: Likewise.
13951         * modules/spawn-tests: Likewise.
13952         * modules/sys_file-tests: Likewise.
13953         * modules/sys_ioctl-tests: Likewise.
13954         * modules/sys_wait-tests: Likewise.
13955         * tests/test-ctype.c: Likewise.
13956         * tests/test-dirent.c: Likewise.
13957         * tests/test-spawn.c: Likewise.
13958         * tests/test-sys_file.c: Likewise.
13959         * tests/test-sys_ioctl.c: Likewise.
13960         * tests/test-sys_wait.c: Likewise.
13961         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
13962         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
13963         whether or not flock is in use.
13964
13965         tests: remove License section from module
13966         * modules/arpa_inet-tests: Remove unneeded section.
13967         * modules/byteswap-tests: Likewise.
13968         * modules/ceilf-tests: Likewise.
13969         * modules/ceill-tests: Likewise.
13970         * modules/crypto/des-tests: Likewise.
13971         * modules/crypto/gc-arcfour-tests: Likewise.
13972         * modules/crypto/gc-arctwo-tests: Likewise.
13973         * modules/crypto/gc-des-tests: Likewise.
13974         * modules/crypto/gc-hmac-md5-tests: Likewise.
13975         * modules/crypto/gc-hmac-sha1-tests: Likewise.
13976         * modules/crypto/gc-md2-tests: Likewise.
13977         * modules/crypto/gc-md4-tests: Likewise.
13978         * modules/crypto/gc-md5-tests: Likewise.
13979         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
13980         * modules/crypto/gc-rijndael-tests: Likewise.
13981         * modules/crypto/gc-sha1-tests: Likewise.
13982         * modules/crypto/gc-tests: Likewise.
13983         * modules/crypto/md2-tests: Likewise.
13984         * modules/crypto/md4-tests: Likewise.
13985         * modules/fcntl-h-tests: Likewise.
13986         * modules/floorf-tests: Likewise.
13987         * modules/floorl-tests: Likewise.
13988         * modules/frexp-nolibm-tests: Likewise.
13989         * modules/frexp-tests: Likewise.
13990         * modules/frexpl-nolibm-tests: Likewise.
13991         * modules/frexpl-tests: Likewise.
13992         * modules/getaddrinfo-tests: Likewise.
13993         * modules/inttypes-tests: Likewise.
13994         * modules/isfinite-tests: Likewise.
13995         * modules/isinf-tests: Likewise.
13996         * modules/ldexpl-tests: Likewise.
13997         * modules/locale-tests: Likewise.
13998         * modules/math-tests: Likewise.
13999         * modules/netdb-tests: Likewise.
14000         * modules/netinet_in-tests: Likewise.
14001         * modules/printf-frexp-tests: Likewise.
14002         * modules/printf-frexpl-tests: Likewise.
14003         * modules/priv-set-tests: Likewise.
14004         * modules/random_r-tests: Likewise.
14005         * modules/round-tests: Likewise.
14006         * modules/roundf-tests: Likewise.
14007         * modules/roundl-tests: Likewise.
14008         * modules/search-tests: Likewise.
14009         * modules/select-tests: Likewise.
14010         * modules/signal-tests: Likewise.
14011         * modules/stdbool-tests: Likewise.
14012         * modules/stddef-tests: Likewise.
14013         * modules/stdint-tests: Likewise.
14014         * modules/stdio-tests: Likewise.
14015         * modules/stdlib-tests: Likewise.
14016         * modules/string-tests: Likewise.
14017         * modules/strings-tests: Likewise.
14018         * modules/sys_select-tests: Likewise.
14019         * modules/sys_socket-tests: Likewise.
14020         * modules/sys_stat-tests: Likewise.
14021         * modules/sys_time-tests: Likewise.
14022         * modules/sys_utsname-tests: Likewise.
14023         * modules/sysexits-tests: Likewise.
14024         * modules/time-tests: Likewise.
14025         * modules/trunc-tests: Likewise.
14026         * modules/truncf-tests: Likewise.
14027         * modules/truncl-tests: Likewise.
14028         * modules/tsearch-tests: Likewise.
14029         * modules/unistd-tests: Likewise.
14030         * modules/wchar-tests: Likewise.
14031         * modules/wctype-tests: Likewise.
14032
14033         tests: fix license on several tests
14034         * tests/test-des.c: Update to GPLv3+.
14035         * tests/test-flock.c: Likewise.
14036         * tests/test-fsync.c: Likewise.
14037         * tests/test-futimens.h: Likewise.
14038         * tests/test-gc-arcfour.c: Likewise.
14039         * tests/test-gc-arctwo.c: Likewise.
14040         * tests/test-gc-des.c: Likewise.
14041         * tests/test-gc-hmac-md5.c: Likewise.
14042         * tests/test-gc-hmac-sha1.c: Likewise.
14043         * tests/test-gc-md2.c: Likewise.
14044         * tests/test-gc-md4.c: Likewise.
14045         * tests/test-gc-md5.c: Likewise.
14046         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14047         * tests/test-gc-rijndael.c: Likewise.
14048         * tests/test-gc-sha1.c: Likewise.
14049         * tests/test-gc.c: Likewise.
14050         * tests/test-getcwd.c: Likewise.
14051         * tests/test-link.c: Likewise.
14052         * tests/test-link.h: Likewise.
14053         * tests/test-lutimens.h: Likewise.
14054         * tests/test-md2.c: Likewise.
14055         * tests/test-md4.c: Likewise.
14056         * tests/test-mkdir.h: Likewise.
14057         * tests/test-rename.c: Likewise.
14058         * tests/test-rename.h: Likewise.
14059         * tests/test-safe-alloc.c: Likewise.
14060         * tests/test-utimens-common.h: Likewise.
14061         * tests/test-utimens.h: Likewise.
14062
14063         maint: sync license texts
14064         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14065         * doc/gpl-3.0.texi: Revert copyright year update.
14066         * doc/lgpl-3.0.texi: Likewise.
14067
14068 2009-12-29  Jim Meyering  <meyering@redhat.com>
14069
14070         update nearly all FSF copyright year lists to include 2009
14071         The files named by the following are exempted:
14072             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14073               test -f "$dst" && { echo "$dst"; continue; }
14074               test -d "$dst" || continue
14075               echo "$dst"/$(basename "$src")
14076             done > exempt
14077             git ls-files tests/unictype >> exempt
14078         In the remaining files, convert to all-interval notation if
14079         - there is already at least one year interval like 2000-2003
14080         - the file is maintained by me
14081         - the file is in lib/uni*/, where that style already prevails
14082         Otherwise, use update-copyright's default.
14083
14084 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14085         and Eric Blake  <ebb9@byu.net>
14086
14087         tests: don't require debug system() to pass
14088         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14089         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14090         * tests/test-unlink.h (test_unlink_func): Likewise.
14091         * tests/test-fstatat.c (main): ...into callers.
14092         * tests/test-lstat.c (main): Likewise.
14093         * tests/test-rmdir.c (main): Likewise.
14094         * tests/test-unlink.c (main): Likewise.
14095         * tests/test-unlinkat.c (main): Likewise.
14096         * tests/test-areadlink-with-size.c (main): Don't require a
14097         debug-only system call to pass, aiding cross-testing to mingw.
14098         * tests/test-areadlink.c (main): Likewise.
14099         * tests/test-areadlinkat-with-size.c (main): Likewise.
14100         * tests/test-areadlinkat.c (main): Likewise.
14101         * tests/test-canonicalize-lgpl.c (main): Likewise.
14102         * tests/test-canonicalize.c (main): Likewise.
14103         * tests/test-chown.c (main): Likewise.
14104         * tests/test-fchownat.c (main): Likewise.
14105         * tests/test-lchown.c (main): Likewise.
14106         * tests/test-fdutimensat.c (main): Likewise.
14107         * tests/test-futimens.c (main): Likewise.
14108         * tests/test-link.c (main): Likewise.
14109         * tests/test-linkat.c (main): Likewise.
14110         * tests/test-mkdir.c (main): Likewise.
14111         * tests/test-mkdirat.c (main): Likewise.
14112         * tests/test-mkfifo.c (main): Likewise.
14113         * tests/test-mkfifoat.c (main): Likewise.
14114         * tests/test-mknod.c (main): Likewise.
14115         * tests/test-readlink.c (main): Likewise.
14116         * tests/test-remove.c (main): Likewise.
14117         * tests/test-rename.c (main): Likewise.
14118         * tests/test-renameat.c (main): Likewise.
14119         * tests/test-symlink.c (main): Likewise.
14120         * tests/test-symlinkat.c (main): Likewise.
14121         * tests/test-utimens.c (main): Likewise.
14122         * tests/test-utimensat.c (main): Likewise.
14123
14124 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14125
14126         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14127         on $(UNUSED_PARAMETER_H) to avoid build failure.
14128
14129 2009-12-28  Jim Meyering  <meyering@redhat.com>
14130
14131         update-copyright: you may specify a max. line length other than 72
14132         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14133
14134         maint: use consistent FSF copyright line syntax
14135         * lib/posixtm.c: Add missing comma in FSF copyright line.
14136         * lib/posixtm.h: Likewise.
14137         * lib/getugroups.c: Add missing ", Inc.".
14138
14139         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14140         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14141         FSF copyright line.  Remove trailing blanks.
14142
14143 2009-12-28  Eric Blake  <ebb9@byu.net>
14144
14145         test-dup2: reduce dependencies
14146         * modules/cloexec (Configure.ac): Set witness.
14147         * modules/dup2-tests (Depends-on): Drop cloexec.
14148         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14149         not present.
14150         Suggested by Bruno Haible.
14151
14152 2009-12-26  Bruno Haible  <bruno@clisp.org>
14153
14154         Remove an unneeded dependency.
14155         * modules/fseterr (Depends-on): Remove dup2.
14156
14157 2009-12-26  Eric Blake  <ebb9@byu.net>
14158
14159         tests: use macros.h in more places
14160         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14161         (ASSERT_STREAM): Provide default of stderr.
14162         * tests/test-dirent-safer.c: Include macros.h, using alternate
14163         stream for assertions.
14164         * tests/test-dup-safer.c: Likewise.
14165         * tests/test-freopen-safer.c: Likewise.
14166         * tests/test-getopt.c: Likewise.
14167         * tests/test-openat-safer.c: Likewise.
14168         * tests/test-pipe.c: Likewise.
14169         * tests/test-popen-safer.c: Likewise.
14170         * modules/dirent-safer-tests (Files): Include macros.h.
14171         * modules/unistd-safer-tests (Files): Likewise.
14172         * modules/freopen-safer-tests (Files): Likewise.
14173         * modules/getopt-posix-tests (Files): Likewise.
14174         * modules/openat-safer-tests (Files): Likewise.
14175         * modules/pipe-tests (Files): Likewise.
14176
14177 2009-12-26  Bruno Haible  <bruno@clisp.org>
14178
14179         javacomp: Portability fix.
14180         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14181         that it also works on Solaris.
14182
14183 2009-12-26  Bruno Haible  <bruno@clisp.org>
14184
14185         localename: Fix storage allocation of gl_locale_name_thread's result.
14186         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14187         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14188         all platforms that have 'uselocale'.
14189         (gl_locale_name_thread_unsafe): New function, extracted from
14190         gl_locale_name_thread.
14191         (gl_locale_name_thread): Call struniq on all platforms that have
14192         'uselocale'.
14193         * tests/test-localename.c (test_locale_name_thread): Check that the
14194         resulting strings are permanently allocated.
14195         * modules/localename-tests (Depends-on): Add strdup.
14196
14197 2009-12-26  Bruno Haible  <bruno@clisp.org>
14198
14199         * tests/test-localename.c (categories): Fill in the strings.
14200
14201 2009-12-26  Jim Meyering  <meyering@redhat.com>
14202
14203         isdir: complete the removal of m4/isdir.m4
14204         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14205
14206         isdir: clean up, since at least grep still uses it
14207         * lib/isdir.c: Include "isdir.h".
14208         (S_ISDIR): Remove now-unneeded definition.
14209         * modules/isdir (Files): Add lib/isdir.h.
14210         * lib/isdir.h: New file, with declaration.
14211         * m4/isdir.m4: Remove file -- unneeded.
14212
14213 2009-12-25  Bruno Haible  <bruno@clisp.org>
14214
14215         selinux-h: Make generated .h files standalone.
14216         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14217         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14218         * lib/se-selinux.in.h: Likewise.
14219         * modules/selinux-h (Depends-on): Add unused-parameter.
14220         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14221         selinux/selinux.h and selinux/context.h.
14222         Suggested by Eric Blake.
14223
14224 2009-12-25  Bruno Haible  <bruno@clisp.org>
14225
14226         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14227         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14228         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14229         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14230         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14231
14232 2009-12-24  Bruno Haible  <bruno@clisp.org>
14233
14234         openat: Fix warning.
14235         * lib/openat-proc.c: Include <unistd.h>.
14236
14237 2009-12-24  Bruno Haible  <bruno@clisp.org>
14238
14239         New module 'unused-parameter'.
14240         * build-aux/unused-parameter.h: New file, extracted from earlier
14241         gnulib-common.m4.
14242         * modules/unused-parameter: New file.
14243         * lib/unistr.h: Include unused-parameter.h.
14244         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14245         _GL_UNUSED.
14246         * modules/unistr/base (Depends-on): Add unused-parameter.
14247
14248 2009-12-24  Bruno Haible  <bruno@clisp.org>
14249
14250         Add missing dependencies to 'extensions' module.
14251         * m4/extensions.m4: Add comment.
14252         * modules/accept4 (Depends-on): Add extensions.
14253         * modules/dup3 (Depends-on): Likewise.
14254         * modules/fcntl (Depends-on): Likewise.
14255         * modules/futimens (Depends-on): Likewise.
14256         * modules/mknod (Depends-on): Likewise.
14257         * modules/pipe2 (Depends-on): Likewise.
14258         * modules/stat-time (Depends-on): Likewise.
14259         * modules/strcasestr-simple (Depends-on): Likewise.
14260         * modules/strsignal (Depends-on): Likewise.
14261         * modules/utimensat (Depends-on): Likewise.
14262         * modules/localcharset (Depends-on): Likewise. Needed because of
14263         gl_FCNTL_O_FLAGS.
14264         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14265         AC_TYPE_MBSTATE_T.
14266         * modules/wcsnrtombs (Depends-on): Likewise.
14267         * modules/wcsrtombs (Depends-on): Likewise.
14268
14269 2009-12-24  Bruno Haible  <bruno@clisp.org>
14270
14271         binary-io: Avoid gcc warning due to SET_BINARY.
14272         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14273         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14274
14275 2009-12-24  Bruno Haible  <bruno@clisp.org>
14276
14277         Avoid future namespace pollution on glibc systems.
14278         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14279         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14280         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14281         glibc systems.
14282
14283 2009-12-24  Bruno Haible  <bruno@clisp.org>
14284
14285         Refactor common macros used in tests.
14286         * tests/macros.h: New file.
14287         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14288         and/or <stdlib.h>, if appropriate.
14289         (ASSERT, SIZEOF): Remove macros.
14290         * tests/test-areadlink-with-size.c: Likewise.
14291         * tests/test-areadlinkat.c: Likewise.
14292         * tests/test-areadlinkat-with-size.c: Likewise.
14293         * tests/test-argmatch.c: Likewise.
14294         * tests/test-argv-iter.c: Likewise.
14295         * tests/test-array-mergesort.c: Likewise.
14296         * tests/test-array_list.c: Likewise.
14297         * tests/test-array_oset.c: Likewise.
14298         * tests/test-avltree_list.c: Likewise.
14299         * tests/test-avltree_oset.c: Likewise.
14300         * tests/test-avltreehash_list.c: Likewise.
14301         * tests/test-base64.c: Likewise.
14302         * tests/test-binary-io.c: Likewise.
14303         * tests/test-bitrotate.c: Likewise.
14304         * tests/test-btowc.c: Likewise.
14305         * tests/test-byteswap.c: Likewise.
14306         * tests/test-c-ctype.c: Likewise.
14307         * tests/test-c-stack.c: Likewise.
14308         * tests/test-c-strcasecmp.c: Likewise.
14309         * tests/test-c-strcasestr.c: Likewise.
14310         * tests/test-c-strncasecmp.c: Likewise.
14311         * tests/test-c-strstr.c: Likewise.
14312         * tests/test-canonicalize-lgpl.c: Likewise.
14313         * tests/test-canonicalize.c: Likewise.
14314         * tests/test-carray_list.c: Likewise.
14315         * tests/test-ceilf1.c: Likewise.
14316         * tests/test-ceilf2.c: Likewise.
14317         * tests/test-ceill.c: Likewise.
14318         * tests/test-chown.c: Likewise.
14319         * tests/test-cloexec.c: Likewise.
14320         * tests/test-copy-acl.c: Likewise.
14321         * tests/test-copy-file.c: Likewise.
14322         * tests/test-count-one-bits.c: Likewise.
14323         * tests/test-dprintf-posix.c: Likewise.
14324         * tests/test-dup2.c: Likewise.
14325         * tests/test-dup3.c: Likewise.
14326         * tests/test-duplocale.c: Likewise.
14327         * tests/test-fbufmode.c: Likewise.
14328         * tests/test-fchdir.c: Likewise.
14329         * tests/test-fchownat.c: Likewise.
14330         * tests/test-fcntl-safer.c: Likewise.
14331         * tests/test-fcntl.c: Likewise.
14332         * tests/test-fdopendir.c: Likewise.
14333         * tests/test-fdutimensat.c: Likewise.
14334         * tests/test-fflush2.c: Likewise.
14335         * tests/test-file-has-acl.c: Likewise.
14336         * tests/test-filevercmp.c: Likewise.
14337         * tests/test-flock.c: Likewise.
14338         * tests/test-floorf1.c: Likewise.
14339         * tests/test-floorf2.c: Likewise.
14340         * tests/test-floorl.c: Likewise.
14341         * tests/test-fnmatch.c: Likewise.
14342         * tests/test-fopen.h: Likewise.
14343         * tests/test-fpending.c: Likewise.
14344         * tests/test-fprintf-posix.c: Likewise.
14345         * tests/test-fpurge.c: Likewise.
14346         * tests/test-freadable.c: Likewise.
14347         * tests/test-freadahead.c: Likewise.
14348         * tests/test-freading.c: Likewise.
14349         * tests/test-freadptr.c: Likewise.
14350         * tests/test-freadptr2.c: Likewise.
14351         * tests/test-freadseek.c: Likewise.
14352         * tests/test-freopen.c: Likewise.
14353         * tests/test-frexp.c: Likewise.
14354         * tests/test-frexpl.c: Likewise.
14355         * tests/test-fseek.c: Likewise.
14356         * tests/test-fseeko.c: Likewise.
14357         * tests/test-fstatat.c: Likewise.
14358         * tests/test-fstrcmp.c: Likewise.
14359         * tests/test-fsync.c: Likewise.
14360         * tests/test-ftell.c: Likewise.
14361         * tests/test-ftello.c: Likewise.
14362         * tests/test-func.c: Likewise.
14363         * tests/test-futimens.c: Likewise.
14364         * tests/test-fwritable.c: Likewise.
14365         * tests/test-fwriting.c: Likewise.
14366         * tests/test-getcwd.c: Likewise.
14367         * tests/test-getdate.c: Likewise.
14368         * tests/test-getdelim.c: Likewise.
14369         * tests/test-getdtablesize.c: Likewise.
14370         * tests/test-getgroups.c: Likewise.
14371         * tests/test-getline.c: Likewise.
14372         * tests/test-getndelim2.c: Likewise.
14373         * tests/test-glob.c: Likewise.
14374         * tests/test-hash.c: Likewise.
14375         * tests/test-i-ring.c: Likewise.
14376         * tests/test-iconv-utf.c: Likewise.
14377         * tests/test-iconv.c: Likewise.
14378         * tests/test-idpriv-drop.c: Likewise.
14379         * tests/test-idpriv-droptemp.c: Likewise.
14380         * tests/test-inet_ntop.c: Likewise.
14381         * tests/test-inet_pton.c: Likewise.
14382         * tests/test-isblank.c: Likewise.
14383         * tests/test-isfinite.c: Likewise.
14384         * tests/test-isinf.c: Likewise.
14385         * tests/test-isnan.c: Likewise.
14386         * tests/test-isnand.h: Likewise.
14387         * tests/test-isnanf.h: Likewise.
14388         * tests/test-isnanl.h: Likewise.
14389         * tests/test-lchown.c: Likewise.
14390         * tests/test-ldexpl.c: Likewise.
14391         * tests/test-link.c: Likewise.
14392         * tests/test-linkat.c: Likewise.
14393         * tests/test-linked_list.c: Likewise.
14394         * tests/test-linkedhash_list.c: Likewise.
14395         * tests/test-localename.c: Likewise.
14396         * tests/test-lseek.c: Likewise.
14397         * tests/test-lstat.c: Likewise.
14398         * tests/test-mbmemcasecmp.c: Likewise.
14399         * tests/test-mbmemcasecoll.c: Likewise.
14400         * tests/test-mbrtowc.c: Likewise.
14401         * tests/test-mbscasecmp.c: Likewise.
14402         * tests/test-mbscasestr1.c: Likewise.
14403         * tests/test-mbscasestr2.c: Likewise.
14404         * tests/test-mbscasestr3.c: Likewise.
14405         * tests/test-mbscasestr4.c: Likewise.
14406         * tests/test-mbschr.c: Likewise.
14407         * tests/test-mbscspn.c: Likewise.
14408         * tests/test-mbsinit.c: Likewise.
14409         * tests/test-mbsncasecmp.c: Likewise.
14410         * tests/test-mbsnrtowcs.c: Likewise.
14411         * tests/test-mbspbrk.c: Likewise.
14412         * tests/test-mbspcasecmp.c: Likewise.
14413         * tests/test-mbsrchr.c: Likewise.
14414         * tests/test-mbsrtowcs.c: Likewise.
14415         * tests/test-mbsspn.c: Likewise.
14416         * tests/test-mbsstr1.c: Likewise.
14417         * tests/test-mbsstr2.c: Likewise.
14418         * tests/test-mbsstr3.c: Likewise.
14419         * tests/test-memchr.c: Likewise.
14420         * tests/test-memchr2.c: Likewise.
14421         * tests/test-memcmp.c: Likewise.
14422         * tests/test-memmem.c: Likewise.
14423         * tests/test-memrchr.c: Likewise.
14424         * tests/test-mkdir.c: Likewise.
14425         * tests/test-mkdirat.c: Likewise.
14426         * tests/test-mkfifo.c: Likewise.
14427         * tests/test-mkfifoat.c: Likewise.
14428         * tests/test-mknod.c: Likewise.
14429         * tests/test-nanosleep.c: Likewise.
14430         * tests/test-nl_langinfo.c: Likewise.
14431         * tests/test-obstack-printf.c: Likewise.
14432         * tests/test-open.c: Likewise.
14433         * tests/test-openat.c: Likewise.
14434         * tests/test-pipe-filter-gi1.c: Likewise.
14435         * tests/test-pipe-filter-gi2-main.c: Likewise.
14436         * tests/test-pipe-filter-ii1.c: Likewise.
14437         * tests/test-pipe-filter-ii2-main.c: Likewise.
14438         * tests/test-pipe2.c: Likewise.
14439         * tests/test-popen.h: Likewise.
14440         * tests/test-posixtm.c: Likewise.
14441         * tests/test-pread.c: Likewise.
14442         * tests/test-printf-frexp.c: Likewise.
14443         * tests/test-printf-frexpl.c: Likewise.
14444         * tests/test-printf-posix.c: Likewise.
14445         * tests/test-priv-set.c: Likewise.
14446         * tests/test-quotearg.c: Likewise.
14447         * tests/test-random_r.c: Likewise.
14448         * tests/test-rawmemchr.c: Likewise.
14449         * tests/test-rbtree_list.c: Likewise.
14450         * tests/test-rbtree_oset.c: Likewise.
14451         * tests/test-rbtreehash_list.c: Likewise.
14452         * tests/test-readlink.c: Likewise.
14453         * tests/test-remove.c: Likewise.
14454         * tests/test-rename.c: Likewise.
14455         * tests/test-renameat.c: Likewise.
14456         * tests/test-rmdir.c: Likewise.
14457         * tests/test-round1.c: Likewise.
14458         * tests/test-roundf1.c: Likewise.
14459         * tests/test-roundl.c: Likewise.
14460         * tests/test-safe-alloc.c: Likewise.
14461         * tests/test-sameacls.c: Likewise.
14462         * tests/test-set-mode-acl.c: Likewise.
14463         * tests/test-setenv.c: Likewise.
14464         * tests/test-sigaction.c: Likewise.
14465         * tests/test-signbit.c: Likewise.
14466         * tests/test-sleep.c: Likewise.
14467         * tests/test-snprintf-posix.c: Likewise.
14468         * tests/test-snprintf.c: Likewise.
14469         * tests/test-sprintf-posix.c: Likewise.
14470         * tests/test-stat-time.c: Likewise.
14471         * tests/test-stat.c: Likewise.
14472         * tests/test-strcasestr.c: Likewise.
14473         * tests/test-strchrnul.c: Likewise.
14474         * tests/test-strerror.c: Likewise.
14475         * tests/test-striconv.c: Likewise.
14476         * tests/test-striconveh.c: Likewise.
14477         * tests/test-striconveha.c: Likewise.
14478         * tests/test-strsignal.c: Likewise.
14479         * tests/test-strstr.c: Likewise.
14480         * tests/test-strtod.c: Likewise.
14481         * tests/test-strverscmp.c: Likewise.
14482         * tests/test-symlink.c: Likewise.
14483         * tests/test-symlinkat.c: Likewise.
14484         * tests/test-trunc1.c: Likewise.
14485         * tests/test-trunc2.c: Likewise.
14486         * tests/test-truncf1.c: Likewise.
14487         * tests/test-truncf2.c: Likewise.
14488         * tests/test-truncl.c: Likewise.
14489         * tests/test-uname.c: Likewise.
14490         * tests/test-unlink.c: Likewise.
14491         * tests/test-unlinkat.c: Likewise.
14492         * tests/test-unsetenv.c: Likewise.
14493         * tests/test-usleep.c: Likewise.
14494         * tests/test-utimens.c: Likewise.
14495         * tests/test-utimensat.c: Likewise.
14496         * tests/test-vasnprintf-posix.c: Likewise.
14497         * tests/test-vasnprintf-posix2.c: Likewise.
14498         * tests/test-vasnprintf.c: Likewise.
14499         * tests/test-vasprintf-posix.c: Likewise.
14500         * tests/test-vasprintf.c: Likewise.
14501         * tests/test-vdprintf-posix.c: Likewise.
14502         * tests/test-vfprintf-posix.c: Likewise.
14503         * tests/test-vprintf-posix.c: Likewise.
14504         * tests/test-vsnprintf-posix.c: Likewise.
14505         * tests/test-vsnprintf.c: Likewise.
14506         * tests/test-vsprintf-posix.c: Likewise.
14507         * tests/test-wcrtomb.c: Likewise.
14508         * tests/test-wcsnrtombs.c: Likewise.
14509         * tests/test-wcsrtombs.c: Likewise.
14510         * tests/test-wctype.c: Likewise.
14511         * tests/test-wcwidth.c: Likewise.
14512         * tests/test-xfprintf-posix.c: Likewise.
14513         * tests/test-xmemdup0.c: Likewise.
14514         * tests/test-xprintf-posix.c: Likewise.
14515         * tests/test-xvasprintf.c: Likewise.
14516         * tests/unicase/test-locale-language.c: Likewise.
14517         * tests/unicase/test-mapping-part1.h: Likewise.
14518         * tests/unicase/test-predicate-part1.h: Likewise.
14519         * tests/unicase/test-u8-casecmp.c: Likewise.
14520         * tests/unicase/test-u8-casecoll.c: Likewise.
14521         * tests/unicase/test-u8-casefold.c: Likewise.
14522         * tests/unicase/test-u8-is-cased.c: Likewise.
14523         * tests/unicase/test-u8-is-casefolded.c: Likewise.
14524         * tests/unicase/test-u8-is-lowercase.c: Likewise.
14525         * tests/unicase/test-u8-is-titlecase.c: Likewise.
14526         * tests/unicase/test-u8-is-uppercase.c: Likewise.
14527         * tests/unicase/test-u8-tolower.c: Likewise.
14528         * tests/unicase/test-u8-totitle.c: Likewise.
14529         * tests/unicase/test-u8-toupper.c: Likewise.
14530         * tests/unicase/test-u16-casecmp.c: Likewise.
14531         * tests/unicase/test-u16-casecoll.c: Likewise.
14532         * tests/unicase/test-u16-casefold.c: Likewise.
14533         * tests/unicase/test-u16-is-cased.c: Likewise.
14534         * tests/unicase/test-u16-is-casefolded.c: Likewise.
14535         * tests/unicase/test-u16-is-lowercase.c: Likewise.
14536         * tests/unicase/test-u16-is-titlecase.c: Likewise.
14537         * tests/unicase/test-u16-is-uppercase.c: Likewise.
14538         * tests/unicase/test-u16-tolower.c: Likewise.
14539         * tests/unicase/test-u16-totitle.c: Likewise.
14540         * tests/unicase/test-u16-toupper.c: Likewise.
14541         * tests/unicase/test-u32-casecmp.c: Likewise.
14542         * tests/unicase/test-u32-casecoll.c: Likewise.
14543         * tests/unicase/test-u32-casefold.c: Likewise.
14544         * tests/unicase/test-u32-is-cased.c: Likewise.
14545         * tests/unicase/test-u32-is-casefolded.c: Likewise.
14546         * tests/unicase/test-u32-is-lowercase.c: Likewise.
14547         * tests/unicase/test-u32-is-titlecase.c: Likewise.
14548         * tests/unicase/test-u32-is-uppercase.c: Likewise.
14549         * tests/unicase/test-u32-tolower.c: Likewise.
14550         * tests/unicase/test-u32-totitle.c: Likewise.
14551         * tests/unicase/test-u32-toupper.c: Likewise.
14552         * tests/unicase/test-ulc-casecmp.c: Likewise.
14553         * tests/unicase/test-ulc-casecoll.c: Likewise.
14554         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14555         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
14556         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14557         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14558         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
14559         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
14560         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14561         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14562         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14563         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
14564         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14565         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14566         * tests/unictype/test-bidi_byname.c: Likewise.
14567         * tests/unictype/test-bidi_name.c: Likewise.
14568         * tests/unictype/test-bidi_of.c: Likewise.
14569         * tests/unictype/test-bidi_test.c: Likewise.
14570         * tests/unictype/test-block_list.c: Likewise.
14571         * tests/unictype/test-block_of.c: Likewise.
14572         * tests/unictype/test-block_test.c: Likewise.
14573         * tests/unictype/test-categ_and.c: Likewise.
14574         * tests/unictype/test-categ_and_not.c: Likewise.
14575         * tests/unictype/test-categ_byname.c: Likewise.
14576         * tests/unictype/test-categ_name.c: Likewise.
14577         * tests/unictype/test-categ_none.c: Likewise.
14578         * tests/unictype/test-categ_of.c: Likewise.
14579         * tests/unictype/test-categ_or.c: Likewise.
14580         * tests/unictype/test-categ_test_withtable.c: Likewise.
14581         * tests/unictype/test-combining.c: Likewise.
14582         * tests/unictype/test-decdigit.c: Likewise.
14583         * tests/unictype/test-digit.c: Likewise.
14584         * tests/unictype/test-mirror.c: Likewise.
14585         * tests/unictype/test-numeric.c: Likewise.
14586         * tests/unictype/test-pr_byname.c: Likewise.
14587         * tests/unictype/test-pr_test.c: Likewise.
14588         * tests/unictype/test-predicate-part1.h: Likewise.
14589         * tests/unictype/test-scripts.c: Likewise.
14590         * tests/unictype/test-sy_c_ident.c: Likewise.
14591         * tests/unictype/test-sy_java_ident.c: Likewise.
14592         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
14593         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
14594         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
14595         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
14596         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
14597         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
14598         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
14599         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
14600         * tests/uninorm/test-canonical-decomposition.c: Likewise.
14601         * tests/uninorm/test-compat-decomposition.c: Likewise.
14602         * tests/uninorm/test-composition.c: Likewise.
14603         * tests/uninorm/test-decomposing-form.c: Likewise.
14604         * tests/uninorm/test-decomposition.c: Likewise.
14605         * tests/uninorm/test-u8-nfc.c: Likewise.
14606         * tests/uninorm/test-u8-nfd.c: Likewise.
14607         * tests/uninorm/test-u8-nfkc.c: Likewise.
14608         * tests/uninorm/test-u8-nfkd.c: Likewise.
14609         * tests/uninorm/test-u8-normcmp.c: Likewise.
14610         * tests/uninorm/test-u8-normcoll.c: Likewise.
14611         * tests/uninorm/test-u16-nfc.c: Likewise.
14612         * tests/uninorm/test-u16-nfd.c: Likewise.
14613         * tests/uninorm/test-u16-nfkc.c: Likewise.
14614         * tests/uninorm/test-u16-nfkd.c: Likewise.
14615         * tests/uninorm/test-u16-normcmp.c: Likewise.
14616         * tests/uninorm/test-u16-normcoll.c: Likewise.
14617         * tests/uninorm/test-u32-nfc.c: Likewise.
14618         * tests/uninorm/test-u32-nfd.c: Likewise.
14619         * tests/uninorm/test-u32-nfkc.c: Likewise.
14620         * tests/uninorm/test-u32-nfkd.c: Likewise.
14621         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14622         * tests/uninorm/test-u32-normcmp.c: Likewise.
14623         * tests/uninorm/test-u32-normcoll.c: Likewise.
14624         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
14625         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
14626         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
14627         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
14628         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
14629         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
14630         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
14631         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
14632         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
14633         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
14634         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
14635         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
14636         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
14637         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
14638         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
14639         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
14640         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
14641         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
14642         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
14643         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
14644         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
14645         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
14646         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
14647         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
14648         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
14649         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
14650         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
14651         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
14652         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
14653         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
14654         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
14655         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
14656         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
14657         * tests/uniwidth/test-u8-strwidth.c: Likewise.
14658         * tests/uniwidth/test-u8-width.c: Likewise.
14659         * tests/uniwidth/test-u16-strwidth.c: Likewise.
14660         * tests/uniwidth/test-u16-width.c: Likewise.
14661         * tests/uniwidth/test-u32-strwidth.c: Likewise.
14662         * tests/uniwidth/test-u32-width.c: Likewise.
14663         * tests/uniwidth/test-uc_width.c: Likewise.
14664         * tests/uniwidth/test-uc_width2.c: Likewise.
14665         * modules/acl-tests (Files): Add tests/macros.h.
14666         * modules/areadlink-tests (Files): Likewise.
14667         * modules/areadlink-with-size-tests (Files): Likewise.
14668         * modules/areadlinkat-tests (Files): Likewise.
14669         * modules/areadlinkat-with-size-tests (Files): Likewise.
14670         * modules/argmatch-tests (Files): Likewise.
14671         * modules/argv-iter-tests (Files): Likewise.
14672         * modules/array-list-tests (Files): Likewise.
14673         * modules/array-mergesort-tests (Files): Likewise.
14674         * modules/array-oset-tests (Files): Likewise.
14675         * modules/avltree-list-tests (Files): Likewise.
14676         * modules/avltree-oset-tests (Files): Likewise.
14677         * modules/avltreehash-list-tests (Files): Likewise.
14678         * modules/base64-tests (Files): Likewise.
14679         * modules/binary-io-tests (Files): Likewise.
14680         * modules/bitrotate-tests (Files): Likewise.
14681         * modules/btowc-tests (Files): Likewise.
14682         * modules/byteswap-tests (Files): Likewise.
14683         * modules/c-ctype-tests (Files): Likewise.
14684         * modules/c-stack-tests (Files): Likewise.
14685         * modules/c-strcase-tests (Files): Likewise.
14686         * modules/c-strcasestr-tests (Files): Likewise.
14687         * modules/c-strstr-tests (Files): Likewise.
14688         * modules/canonicalize-lgpl-tests (Files): Likewise.
14689         * modules/canonicalize-tests (Files): Likewise.
14690         * modules/carray-list-tests (Files): Likewise.
14691         * modules/ceilf-tests (Files): Likewise.
14692         * modules/ceill-tests (Files): Likewise.
14693         * modules/chown-tests (Files): Likewise.
14694         * modules/cloexec-tests (Files): Likewise.
14695         * modules/copy-file-tests (Files): Likewise.
14696         * modules/count-one-bits-tests (Files): Likewise.
14697         * modules/dprintf-posix-tests (Files): Likewise.
14698         * modules/dup2-tests (Files): Likewise.
14699         * modules/dup3-tests (Files): Likewise.
14700         * modules/duplocale-tests (Files): Likewise.
14701         * modules/fbufmode-tests (Files): Likewise.
14702         * modules/fchdir-tests (Files): Likewise.
14703         * modules/fcntl-safer-tests (Files): Likewise.
14704         * modules/fcntl-tests (Files): Likewise.
14705         * modules/fdopendir-tests (Files): Likewise.
14706         * modules/fdutimensat-tests (Files): Likewise.
14707         * modules/fflush-tests (Files): Likewise.
14708         * modules/filevercmp-tests (Files): Likewise.
14709         * modules/flock-tests (Files): Likewise.
14710         * modules/floorf-tests (Files): Likewise.
14711         * modules/floorl-tests (Files): Likewise.
14712         * modules/fnmatch-tests (Files): Likewise.
14713         * modules/fopen-safer-tests (Files): Likewise.
14714         * modules/fopen-tests (Files): Likewise.
14715         * modules/fpending-tests (Files): Likewise.
14716         * modules/fprintf-posix-tests (Files): Likewise.
14717         * modules/fpurge-tests (Files): Likewise.
14718         * modules/freadable-tests (Files): Likewise.
14719         * modules/freadahead-tests (Files): Likewise.
14720         * modules/freading-tests (Files): Likewise.
14721         * modules/freadptr-tests (Files): Likewise.
14722         * modules/freadseek-tests (Files): Likewise.
14723         * modules/freopen-tests (Files): Likewise.
14724         * modules/frexp-nolibm-tests (Files): Likewise.
14725         * modules/frexp-tests (Files): Likewise.
14726         * modules/frexpl-nolibm-tests (Files): Likewise.
14727         * modules/frexpl-tests (Files): Likewise.
14728         * modules/fseek-tests (Files): Likewise.
14729         * modules/fseeko-tests (Files): Likewise.
14730         * modules/fstrcmp-tests (Files): Likewise.
14731         * modules/fsync-tests (Files): Likewise.
14732         * modules/ftell-tests (Files): Likewise.
14733         * modules/ftello-tests (Files): Likewise.
14734         * modules/func-tests (Files): Likewise.
14735         * modules/futimens-tests (Files): Likewise.
14736         * modules/fwritable-tests (Files): Likewise.
14737         * modules/fwriting-tests (Files): Likewise.
14738         * modules/getcwd-tests (Files): Likewise.
14739         * modules/getdate-tests (Files): Likewise.
14740         * modules/getdelim-tests (Files): Likewise.
14741         * modules/getdtablesize-tests (Files): Likewise.
14742         * modules/getgroups-tests (Files): Likewise.
14743         * modules/getline-tests (Files): Likewise.
14744         * modules/getndelim2-tests (Files): Likewise.
14745         * modules/glob-tests (Files): Likewise.
14746         * modules/hash-tests (Files): Likewise.
14747         * modules/i-ring-tests (Files): Likewise.
14748         * modules/iconv-tests (Files): Likewise.
14749         * modules/iconv_open-utf-tests (Files): Likewise.
14750         * modules/idpriv-drop-tests (Files): Likewise.
14751         * modules/idpriv-droptemp-tests (Files): Likewise.
14752         * modules/inet_ntop-tests (Files): Likewise.
14753         * modules/inet_pton-tests (Files): Likewise.
14754         * modules/isblank-tests (Files): Likewise.
14755         * modules/isfinite-tests (Files): Likewise.
14756         * modules/isinf-tests (Files): Likewise.
14757         * modules/isnan-tests (Files): Likewise.
14758         * modules/isnand-nolibm-tests (Files): Likewise.
14759         * modules/isnand-tests (Files): Likewise.
14760         * modules/isnanf-nolibm-tests (Files): Likewise.
14761         * modules/isnanf-tests (Files): Likewise.
14762         * modules/isnanl-nolibm-tests (Files): Likewise.
14763         * modules/isnanl-tests (Files): Likewise.
14764         * modules/lchown-tests (Files): Likewise.
14765         * modules/ldexpl-tests (Files): Likewise.
14766         * modules/link-tests (Files): Likewise.
14767         * modules/linkat-tests (Files): Likewise.
14768         * modules/linked-list-tests (Files): Likewise.
14769         * modules/linkedhash-list-tests (Files): Likewise.
14770         * modules/localename-tests (Files): Likewise.
14771         * modules/lseek-tests (Files): Likewise.
14772         * modules/lstat-tests (Files): Likewise.
14773         * modules/mbmemcasecmp-tests (Files): Likewise.
14774         * modules/mbmemcasecoll-tests (Files): Likewise.
14775         * modules/mbrtowc-tests (Files): Likewise.
14776         * modules/mbscasecmp-tests (Files): Likewise.
14777         * modules/mbscasestr-tests (Files): Likewise.
14778         * modules/mbschr-tests (Files): Likewise.
14779         * modules/mbscspn-tests (Files): Likewise.
14780         * modules/mbsinit-tests (Files): Likewise.
14781         * modules/mbsncasecmp-tests (Files): Likewise.
14782         * modules/mbsnrtowcs-tests (Files): Likewise.
14783         * modules/mbspbrk-tests (Files): Likewise.
14784         * modules/mbspcasecmp-tests (Files): Likewise.
14785         * modules/mbsrchr-tests (Files): Likewise.
14786         * modules/mbsrtowcs-tests (Files): Likewise.
14787         * modules/mbsspn-tests (Files): Likewise.
14788         * modules/mbsstr-tests (Files): Likewise.
14789         * modules/memchr-tests (Files): Likewise.
14790         * modules/memchr2-tests (Files): Likewise.
14791         * modules/memcmp-tests (Files): Likewise.
14792         * modules/memmem-tests (Files): Likewise.
14793         * modules/memrchr-tests (Files): Likewise.
14794         * modules/mkdir-tests (Files): Likewise.
14795         * modules/mkfifo-tests (Files): Likewise.
14796         * modules/mkfifoat-tests (Files): Likewise.
14797         * modules/mknod-tests (Files): Likewise.
14798         * modules/nanosleep-tests (Files): Likewise.
14799         * modules/nl_langinfo-tests (Files): Likewise.
14800         * modules/obstack-printf-tests (Files): Likewise.
14801         * modules/open-tests (Files): Likewise.
14802         * modules/openat-tests (Files): Likewise.
14803         * modules/pipe-filter-gi-tests (Files): Likewise.
14804         * modules/pipe-filter-ii-tests (Files): Likewise.
14805         * modules/pipe2-tests (Files): Likewise.
14806         * modules/popen-safer-tests (Files): Likewise.
14807         * modules/popen-tests (Files): Likewise.
14808         * modules/posixtm-tests (Files): Likewise.
14809         * modules/pread-tests (Files): Likewise.
14810         * modules/printf-frexp-tests (Files): Likewise.
14811         * modules/printf-frexpl-tests (Files): Likewise.
14812         * modules/printf-posix-tests (Files): Likewise.
14813         * modules/priv-set-tests (Files): Likewise.
14814         * modules/quotearg-tests (Files): Likewise.
14815         * modules/random_r-tests (Files): Likewise.
14816         * modules/rawmemchr-tests (Files): Likewise.
14817         * modules/rbtree-list-tests (Files): Likewise.
14818         * modules/rbtree-oset-tests (Files): Likewise.
14819         * modules/rbtreehash-list-tests (Files): Likewise.
14820         * modules/readlink-tests (Files): Likewise.
14821         * modules/remove-tests (Files): Likewise.
14822         * modules/rename-tests (Files): Likewise.
14823         * modules/renameat-tests (Files): Likewise.
14824         * modules/rmdir-tests (Files): Likewise.
14825         * modules/round-tests (Files): Likewise.
14826         * modules/roundf-tests (Files): Likewise.
14827         * modules/roundl-tests (Files): Likewise.
14828         * modules/safe-alloc-tests (Files): Likewise.
14829         * modules/setenv-tests (Files): Likewise.
14830         * modules/sigaction-tests (Files): Likewise.
14831         * modules/signbit-tests (Files): Likewise.
14832         * modules/sleep-tests (Files): Likewise.
14833         * modules/snprintf-posix-tests (Files): Likewise.
14834         * modules/snprintf-tests (Files): Likewise.
14835         * modules/sprintf-posix-tests (Files): Likewise.
14836         * modules/stat-tests (Files): Likewise.
14837         * modules/stat-time-tests (Files): Likewise.
14838         * modules/strcasestr-tests (Files): Likewise.
14839         * modules/strchrnul-tests (Files): Likewise.
14840         * modules/strerror-tests (Files): Likewise.
14841         * modules/striconv-tests (Files): Likewise.
14842         * modules/striconveh-tests (Files): Likewise.
14843         * modules/striconveha-tests (Files): Likewise.
14844         * modules/strsignal-tests (Files): Likewise.
14845         * modules/strstr-tests (Files): Likewise.
14846         * modules/strtod-tests (Files): Likewise.
14847         * modules/strverscmp-tests (Files): Likewise.
14848         * modules/symlink-tests (Files): Likewise.
14849         * modules/symlinkat-tests (Files): Likewise.
14850         * modules/trunc-tests (Files): Likewise.
14851         * modules/truncf-tests (Files): Likewise.
14852         * modules/truncl-tests (Files): Likewise.
14853         * modules/uname-tests (Files): Likewise.
14854         * modules/unicase/cased-tests (Files): Likewise.
14855         * modules/unicase/ignorable-tests (Files): Likewise.
14856         * modules/unicase/locale-language-tests (Files): Likewise.
14857         * modules/unicase/tolower-tests (Files): Likewise.
14858         * modules/unicase/totitle-tests (Files): Likewise.
14859         * modules/unicase/toupper-tests (Files): Likewise.
14860         * modules/unicase/u8-casecmp-tests (Files): Likewise.
14861         * modules/unicase/u8-casecoll-tests (Files): Likewise.
14862         * modules/unicase/u8-casefold-tests (Files): Likewise.
14863         * modules/unicase/u8-is-cased-tests (Files): Likewise.
14864         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
14865         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
14866         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
14867         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
14868         * modules/unicase/u8-tolower-tests (Files): Likewise.
14869         * modules/unicase/u8-totitle-tests (Files): Likewise.
14870         * modules/unicase/u8-toupper-tests (Files): Likewise.
14871         * modules/unicase/u16-casecmp-tests (Files): Likewise.
14872         * modules/unicase/u16-casecoll-tests (Files): Likewise.
14873         * modules/unicase/u16-casefold-tests (Files): Likewise.
14874         * modules/unicase/u16-is-cased-tests (Files): Likewise.
14875         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
14876         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
14877         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
14878         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
14879         * modules/unicase/u16-tolower-tests (Files): Likewise.
14880         * modules/unicase/u16-totitle-tests (Files): Likewise.
14881         * modules/unicase/u16-toupper-tests (Files): Likewise.
14882         * modules/unicase/u32-casecmp-tests (Files): Likewise.
14883         * modules/unicase/u32-casecoll-tests (Files): Likewise.
14884         * modules/unicase/u32-casefold-tests (Files): Likewise.
14885         * modules/unicase/u32-is-cased-tests (Files): Likewise.
14886         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
14887         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
14888         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
14889         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
14890         * modules/unicase/u32-tolower-tests (Files): Likewise.
14891         * modules/unicase/u32-totitle-tests (Files): Likewise.
14892         * modules/unicase/u32-toupper-tests (Files): Likewise.
14893         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
14894         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
14895         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
14896         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
14897         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
14898         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
14899         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
14900         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
14901         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
14902         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
14903         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
14904         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
14905         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
14906         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
14907         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
14908         * modules/unictype/bidicategory-name-tests (Files): Likewise.
14909         * modules/unictype/bidicategory-of-tests (Files): Likewise.
14910         * modules/unictype/bidicategory-test-tests (Files): Likewise.
14911         * modules/unictype/block-list-tests (Files): Likewise.
14912         * modules/unictype/block-of-tests (Files): Likewise.
14913         * modules/unictype/block-test-tests (Files): Likewise.
14914         * modules/unictype/category-C-tests (Files): Likewise.
14915         * modules/unictype/category-Cc-tests (Files): Likewise.
14916         * modules/unictype/category-Cf-tests (Files): Likewise.
14917         * modules/unictype/category-Cn-tests (Files): Likewise.
14918         * modules/unictype/category-Co-tests (Files): Likewise.
14919         * modules/unictype/category-Cs-tests (Files): Likewise.
14920         * modules/unictype/category-L-tests (Files): Likewise.
14921         * modules/unictype/category-Ll-tests (Files): Likewise.
14922         * modules/unictype/category-Lm-tests (Files): Likewise.
14923         * modules/unictype/category-Lo-tests (Files): Likewise.
14924         * modules/unictype/category-Lt-tests (Files): Likewise.
14925         * modules/unictype/category-Lu-tests (Files): Likewise.
14926         * modules/unictype/category-M-tests (Files): Likewise.
14927         * modules/unictype/category-Mc-tests (Files): Likewise.
14928         * modules/unictype/category-Me-tests (Files): Likewise.
14929         * modules/unictype/category-Mn-tests (Files): Likewise.
14930         * modules/unictype/category-N-tests (Files): Likewise.
14931         * modules/unictype/category-Nd-tests (Files): Likewise.
14932         * modules/unictype/category-Nl-tests (Files): Likewise.
14933         * modules/unictype/category-No-tests (Files): Likewise.
14934         * modules/unictype/category-P-tests (Files): Likewise.
14935         * modules/unictype/category-Pc-tests (Files): Likewise.
14936         * modules/unictype/category-Pd-tests (Files): Likewise.
14937         * modules/unictype/category-Pe-tests (Files): Likewise.
14938         * modules/unictype/category-Pf-tests (Files): Likewise.
14939         * modules/unictype/category-Pi-tests (Files): Likewise.
14940         * modules/unictype/category-Po-tests (Files): Likewise.
14941         * modules/unictype/category-Ps-tests (Files): Likewise.
14942         * modules/unictype/category-S-tests (Files): Likewise.
14943         * modules/unictype/category-Sc-tests (Files): Likewise.
14944         * modules/unictype/category-Sk-tests (Files): Likewise.
14945         * modules/unictype/category-Sm-tests (Files): Likewise.
14946         * modules/unictype/category-So-tests (Files): Likewise.
14947         * modules/unictype/category-Z-tests (Files): Likewise.
14948         * modules/unictype/category-Zl-tests (Files): Likewise.
14949         * modules/unictype/category-Zp-tests (Files): Likewise.
14950         * modules/unictype/category-Zs-tests (Files): Likewise.
14951         * modules/unictype/category-and-not-tests (Files): Likewise.
14952         * modules/unictype/category-and-tests (Files): Likewise.
14953         * modules/unictype/category-byname-tests (Files): Likewise.
14954         * modules/unictype/category-name-tests (Files): Likewise.
14955         * modules/unictype/category-none-tests (Files): Likewise.
14956         * modules/unictype/category-of-tests (Files): Likewise.
14957         * modules/unictype/category-or-tests (Files): Likewise.
14958         * modules/unictype/category-test-withtable-tests (Files): Likewise.
14959         * modules/unictype/combining-class-tests (Files): Likewise.
14960         * modules/unictype/ctype-alnum-tests (Files): Likewise.
14961         * modules/unictype/ctype-alpha-tests (Files): Likewise.
14962         * modules/unictype/ctype-blank-tests (Files): Likewise.
14963         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
14964         * modules/unictype/ctype-digit-tests (Files): Likewise.
14965         * modules/unictype/ctype-graph-tests (Files): Likewise.
14966         * modules/unictype/ctype-lower-tests (Files): Likewise.
14967         * modules/unictype/ctype-print-tests (Files): Likewise.
14968         * modules/unictype/ctype-punct-tests (Files): Likewise.
14969         * modules/unictype/ctype-space-tests (Files): Likewise.
14970         * modules/unictype/ctype-upper-tests (Files): Likewise.
14971         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
14972         * modules/unictype/decimal-digit-tests (Files): Likewise.
14973         * modules/unictype/digit-tests (Files): Likewise.
14974         * modules/unictype/mirror-tests (Files): Likewise.
14975         * modules/unictype/numeric-tests (Files): Likewise.
14976         * modules/unictype/property-alphabetic-tests (Files): Likewise.
14977         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
14978         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
14979         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
14980         Likewise.
14981         * modules/unictype/property-bidi-block-separator-tests (Files):
14982         Likewise.
14983         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
14984         Likewise.
14985         * modules/unictype/property-bidi-common-separator-tests (Files):
14986         Likewise.
14987         * modules/unictype/property-bidi-control-tests (Files): Likewise.
14988         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
14989         Likewise.
14990         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
14991         Likewise.
14992         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
14993         Likewise.
14994         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
14995         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
14996         Likewise.
14997         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
14998         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
14999         Likewise.
15000         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15001         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15002         * modules/unictype/property-bidi-segment-separator-tests (Files):
15003         Likewise.
15004         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15005         * modules/unictype/property-byname-tests (Files): Likewise.
15006         * modules/unictype/property-combining-tests (Files): Likewise.
15007         * modules/unictype/property-composite-tests (Files): Likewise.
15008         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15009         * modules/unictype/property-dash-tests (Files): Likewise.
15010         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15011         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15012         Likewise.
15013         * modules/unictype/property-deprecated-tests (Files): Likewise.
15014         * modules/unictype/property-diacritic-tests (Files): Likewise.
15015         * modules/unictype/property-extender-tests (Files): Likewise.
15016         * modules/unictype/property-format-control-tests (Files): Likewise.
15017         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15018         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15019         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15020         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15021         * modules/unictype/property-hyphen-tests (Files): Likewise.
15022         * modules/unictype/property-id-continue-tests (Files): Likewise.
15023         * modules/unictype/property-id-start-tests (Files): Likewise.
15024         * modules/unictype/property-ideographic-tests (Files): Likewise.
15025         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15026         * modules/unictype/property-ids-trinary-operator-tests (Files):
15027         Likewise.
15028         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15029         * modules/unictype/property-iso-control-tests (Files): Likewise.
15030         * modules/unictype/property-join-control-tests (Files): Likewise.
15031         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15032         * modules/unictype/property-line-separator-tests (Files): Likewise.
15033         * modules/unictype/property-logical-order-exception-tests (Files):
15034         Likewise.
15035         * modules/unictype/property-lowercase-tests (Files): Likewise.
15036         * modules/unictype/property-math-tests (Files): Likewise.
15037         * modules/unictype/property-non-break-tests (Files): Likewise.
15038         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15039         * modules/unictype/property-numeric-tests (Files): Likewise.
15040         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15041         * modules/unictype/property-other-default-ignorable-code-point-tests
15042         (Files): Likewise.
15043         * modules/unictype/property-other-grapheme-extend-tests (Files):
15044         Likewise.
15045         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15046         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15047         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15048         * modules/unictype/property-other-math-tests (Files): Likewise.
15049         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15050         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15051         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15052         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15053         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15054         * modules/unictype/property-private-use-tests (Files): Likewise.
15055         * modules/unictype/property-punctuation-tests (Files): Likewise.
15056         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15057         * modules/unictype/property-radical-tests (Files): Likewise.
15058         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15059         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15060         * modules/unictype/property-space-tests (Files): Likewise.
15061         * modules/unictype/property-terminal-punctuation-tests (Files):
15062         Likewise.
15063         * modules/unictype/property-test-tests (Files): Likewise.
15064         * modules/unictype/property-titlecase-tests (Files): Likewise.
15065         * modules/unictype/property-unassigned-code-value-tests (Files):
15066         Likewise.
15067         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15068         * modules/unictype/property-uppercase-tests (Files): Likewise.
15069         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15070         * modules/unictype/property-white-space-tests (Files): Likewise.
15071         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15072         * modules/unictype/property-xid-start-tests (Files): Likewise.
15073         * modules/unictype/property-zero-width-tests (Files): Likewise.
15074         * modules/unictype/scripts-tests (Files): Likewise.
15075         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15076         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15077         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15078         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15079         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15080         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15081         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15082         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15083         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15084         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15085         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15086         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15087         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15088         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15089         * modules/uninorm/composition-tests (Files): Likewise.
15090         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15091         * modules/uninorm/decomposition-tests (Files): Likewise.
15092         * modules/uninorm/filter-tests (Files): Likewise.
15093         * modules/uninorm/nfc-tests (Files): Likewise.
15094         * modules/uninorm/nfd-tests (Files): Likewise.
15095         * modules/uninorm/nfkc-tests (Files): Likewise.
15096         * modules/uninorm/nfkd-tests (Files): Likewise.
15097         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15098         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15099         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15100         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15101         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15102         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15103         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15104         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15105         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15106         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15107         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15108         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15109         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15110         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15111         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15112         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15113         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15114         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15115         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15116         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15117         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15118         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15119         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15120         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15121         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15122         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15123         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15124         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15125         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15126         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15127         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15128         * modules/uniwidth/u8-width-tests (Files): Likewise.
15129         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15130         * modules/uniwidth/u16-width-tests (Files): Likewise.
15131         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15132         * modules/uniwidth/u32-width-tests (Files): Likewise.
15133         * modules/uniwidth/width-tests (Files): Likewise.
15134         * modules/unlink-tests (Files): Likewise.
15135         * modules/unsetenv-tests (Files): Likewise.
15136         * modules/usleep-tests (Files): Likewise.
15137         * modules/utimens-tests (Files): Likewise.
15138         * modules/utimensat-tests (Files): Likewise.
15139         * modules/vasnprintf-posix-tests (Files): Likewise.
15140         * modules/vasnprintf-tests (Files): Likewise.
15141         * modules/vasprintf-posix-tests (Files): Likewise.
15142         * modules/vasprintf-tests (Files): Likewise.
15143         * modules/vdprintf-posix-tests (Files): Likewise.
15144         * modules/vfprintf-posix-tests (Files): Likewise.
15145         * modules/vprintf-posix-tests (Files): Likewise.
15146         * modules/vsnprintf-posix-tests (Files): Likewise.
15147         * modules/vsnprintf-tests (Files): Likewise.
15148         * modules/vsprintf-posix-tests (Files): Likewise.
15149         * modules/wcrtomb-tests (Files): Likewise.
15150         * modules/wcsnrtombs-tests (Files): Likewise.
15151         * modules/wcsrtombs-tests (Files): Likewise.
15152         * modules/wctype-tests (Files): Likewise.
15153         * modules/wcwidth-tests (Files): Likewise.
15154         * modules/xmemdup0-tests (Files): Likewise.
15155         * modules/xprintf-posix-tests (Files): Likewise.
15156         * modules/xvasprintf-tests (Files): Likewise.
15157
15158 2009-12-24  Eric Blake  <ebb9@byu.net>
15159
15160         test-nanosleep: fix typo
15161         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15162         patch.
15163         Reported by Bruno Haible.
15164
15165 2009-12-24  Bruno Haible  <bruno@clisp.org>
15166
15167         Reduce namespace pollution on glibc systems.
15168         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15169         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15170         systems.
15171         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15172         <getopt.h> on glibc systems.
15173         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15174         systems.
15175         * lib/fcntl.c: Include <unistd.h> here instead.
15176
15177 2009-12-24  Bruno Haible  <bruno@clisp.org>
15178
15179         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15180
15181 2009-12-24  Eric Blake  <ebb9@byu.net>
15182
15183         tests: add signature checks
15184         * tests/signature.h (SIGNATURE_CHECK): New file.
15185         * modules/atexit-tests (Files): Use it.
15186         * modules/btowc-tests (Files): Likewise.
15187         * modules/canonicalize-lgpl-tests (Files): Likewise.
15188         * modules/ceilf-tests (Files): Likewise.
15189         * modules/ceill-tests (Files): Likewise.
15190         * modules/chown-tests (Files): Likewise.
15191         * modules/dprintf-posix-tests (Files): Likewise.
15192         * modules/dup2-tests (Files): Likewise.
15193         * modules/dup3-tests (Files): Likewise.
15194         * modules/duplocale-tests (Files): Likewise.
15195         * modules/fchdir-tests (Files): Likewise.
15196         * modules/fcntl-tests (Files): Likewise.
15197         * modules/fdopendir-tests (Files): Likewise.
15198         * modules/fflush-tests (Files): Likewise.
15199         * modules/flock-tests (Files): Likewise.
15200         * modules/floorf-tests (Files): Likewise.
15201         * modules/floorl-tests (Files): Likewise.
15202         * modules/fnmatch-tests (Files): Likewise.
15203         * modules/fopen-tests (Files): Likewise.
15204         * modules/fprintf-posix-tests (Files): Likewise.
15205         * modules/freopen-tests (Files): Likewise.
15206         * modules/frexp-nolibm-tests (Files): Likewise.
15207         * modules/frexp-tests (Files): Likewise.
15208         * modules/frexpl-nolibm-tests (Files): Likewise.
15209         * modules/frexpl-tests (Files): Likewise.
15210         * modules/fseek-tests (Files): Likewise.
15211         * modules/fseeko-tests (Files): Likewise.
15212         * modules/fsync-tests (Files): Likewise.
15213         * modules/ftell-tests (Files): Likewise.
15214         * modules/ftello-tests (Files): Likewise.
15215         * modules/futimens-tests (Files): Likewise.
15216         * modules/getaddrinfo-tests (Files): Likewise.
15217         * modules/getcwd-tests (Files): Likewise.
15218         * modules/getdelim-tests (Files): Likewise.
15219         * modules/getdtablesize-tests (Files): Likewise.
15220         * modules/getgroups-tests (Files): Likewise.
15221         * modules/gethostname-tests (Files): Likewise.
15222         * modules/getline-tests (Files): Likewise.
15223         * modules/getopt-posix-tests (Files): Likewise.
15224         * modules/gettimeofday-tests (Files): Likewise.
15225         * modules/glob-tests (Files): Likewise.
15226         * modules/iconv-tests (Files): Likewise.
15227         * modules/inet_ntop-tests (Files): Likewise.
15228         * modules/inet_pton-tests (Files): Likewise.
15229         * modules/isblank-tests (Files): Likewise.
15230         * modules/lchown-tests (Files): Likewise.
15231         * modules/ldexpl-tests (Files): Likewise.
15232         * modules/link-tests (Files): Likewise.
15233         * modules/linkat-tests (Files): Likewise.
15234         * modules/lseek-tests (Files): Likewise.
15235         * modules/lstat-tests (Files): Likewise.
15236         * modules/mbrtowc-tests (Files): Likewise.
15237         * modules/mbsinit-tests (Files): Likewise.
15238         * modules/mbsnrtowcs-tests (Files): Likewise.
15239         * modules/mbsrtowcs-tests (Files): Likewise.
15240         * modules/memchr-tests (Files): Likewise.
15241         * modules/memcmp-tests (Files): Likewise.
15242         * modules/memmem-tests (Files): Likewise.
15243         * modules/memrchr-tests (Files): Likewise.
15244         * modules/mkdir-tests (Files): Likewise.
15245         * modules/mkfifo-tests (Files): Likewise.
15246         * modules/mkfifoat-tests (Files): Likewise.
15247         * modules/mknod-tests (Files): Likewise.
15248         * modules/nanosleep-tests (Files): Likewise.
15249         * modules/nl_langinfo-tests (Files): Likewise.
15250         * modules/obstack-printf-tests (Files): Likewise.
15251         * modules/open-tests (Files): Likewise.
15252         * modules/openat-tests (Files): Likewise.
15253         * modules/perror-tests (Files): Likewise.
15254         * modules/pipe2-tests (Files): Likewise.
15255         * modules/poll-tests (Files): Likewise.
15256         * modules/popen-tests (Files): Likewise.
15257         * modules/posix_spawn-tests (Files): Likewise.
15258         * modules/posix_spawnp-tests (Files): Likewise.
15259         * modules/pread-tests (Files): Likewise.
15260         * modules/printf-posix-tests (Files): Likewise.
15261         * modules/pty-tests (Files): Likewise.
15262         * modules/random_r-tests (Files): Likewise.
15263         * modules/rawmemchr-tests (Files): Likewise.
15264         * modules/readlink-tests (Files): Likewise.
15265         * modules/remove-tests (Files): Likewise.
15266         * modules/rename-tests (Files): Likewise.
15267         * modules/renameat-tests (Files): Likewise.
15268         * modules/rmdir-tests (Files): Likewise.
15269         * modules/round-tests (Files): Likewise.
15270         * modules/roundf-tests (Files): Likewise.
15271         * modules/roundl-tests (Files): Likewise.
15272         * modules/select-tests (Files): Likewise.
15273         * modules/setenv-tests (Files): Likewise.
15274         * modules/sigaction-tests (Files): Likewise.
15275         * modules/sleep-tests (Files): Likewise.
15276         * modules/snprintf-posix-tests (Files): Likewise.
15277         * modules/snprintf-tests (Files): Likewise.
15278         * modules/sprintf-posix-tests (Files): Likewise.
15279         * modules/stat-tests (Files): Likewise.
15280         * modules/strcasestr-tests (Files): Likewise.
15281         * modules/strchrnul-tests (Files): Likewise.
15282         * modules/strerror-tests (Files): Likewise.
15283         * modules/strsignal-tests (Files): Likewise.
15284         * modules/strstr-tests (Files): Likewise.
15285         * modules/strtod-tests (Files): Likewise.
15286         * modules/strverscmp-tests (Files): Likewise.
15287         * modules/symlink-tests (Files): Likewise.
15288         * modules/symlinkat-tests (Files): Likewise.
15289         * modules/times-tests (Files): Likewise.
15290         * modules/trunc-tests (Files): Likewise.
15291         * modules/truncf-tests (Files): Likewise.
15292         * modules/truncl-tests (Files): Likewise.
15293         * modules/tsearch-tests (Files): Likewise.
15294         * modules/uname-tests (Files): Likewise.
15295         * modules/unlink-tests (Files): Likewise.
15296         * modules/unsetenv-tests (Files): Likewise.
15297         * modules/usleep-tests (Files): Likewise.
15298         * modules/utimensat-tests (Files): Likewise.
15299         * modules/vasprintf-tests (Files): Likewise.
15300         * modules/vdprintf-posix-tests (Files): Likewise.
15301         * modules/vfprintf-posix-tests (Files): Likewise.
15302         * modules/vprintf-posix-tests (Files): Likewise.
15303         * modules/vsnprintf-posix-tests (Files): Likewise.
15304         * modules/vsnprintf-tests (Files): Likewise.
15305         * modules/vsprintf-posix-tests (Files): Likewise.
15306         * modules/wcrtomb-tests (Files): Likewise.
15307         * modules/wcsnrtombs-tests (Files): Likewise.
15308         * modules/wcsrtombs-tests (Files): Likewise.
15309         * modules/wcwidth-tests (Files): Likewise.
15310         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15311         * tests/test-isinf.c (isinf): Likewise.
15312         * tests/test-isnan.c (isnan): Likewise.
15313         * tests/test-signbit.c (signbit): Likewise.
15314         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15315         declaration, either as macro or with correct signature.
15316         (select): Ensure function under test is declared with correct
15317         signature in correct header.
15318         * tests/test-atexit.c (atexit): Likewise.
15319         * tests/test-btowc.c (btowc): Likewise.
15320         * tests/test-canonicalize-lgpl.c (realpath)
15321         (canonicalize_file_name): Likewise.
15322         * tests/test-ceilf1.c (ceilf): Likewise.
15323         * tests/test-ceill.c (ceill): Likewise.
15324         * tests/test-chown.c (chown): Likewise.
15325         * tests/test-dprintf-posix.c (dprintf): Likewise.
15326         * tests/test-dup2.c (dup2): Likewise.
15327         * tests/test-dup3.c (dup3): Likewise.
15328         * tests/test-duplocale.c (duplocale): Likewise.
15329         * tests/test-fchdir.c (fchdir): Likewise.
15330         * tests/test-fchownat.c (fchownat): Likewise.
15331         * tests/test-fcntl.c (fcntl): Likewise.
15332         * tests/test-fdopendir.c (fdopendir): Likewise.
15333         * tests/test-fflush.c (fflush): Likewise.
15334         * tests/test-flock.c (flock): Likewise.
15335         * tests/test-floorf1.c (floorf): Likewise.
15336         * tests/test-floorl.c (floorl): Likewise.
15337         * tests/test-fnmatch.c (fnmatch): Likewise.
15338         * tests/test-fopen.c (fopen): Likewise.
15339         * tests/test-fprintf-posix.c (fprintf): Likewise.
15340         * tests/test-freopen.c (freopen): Likewise.
15341         * tests/test-frexp.c (frexp): Likewise.
15342         * tests/test-frexpl.c (frexpl): Likewise.
15343         * tests/test-fseek.c (fseek): Likewise.
15344         * tests/test-fseeko.c (fseeko): Likewise.
15345         * tests/test-fstatat.c (fstatat): Likewise.
15346         * tests/test-fsync.c (fsync): Likewise.
15347         * tests/test-ftell.c (ftell): Likewise.
15348         * tests/test-ftello.c (ftello): Likewise.
15349         * tests/test-futimens.c (futimens): Likewise.
15350         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
15351         (gai_strerror): Likewise.
15352         * tests/test-getcwd.c (getcwd): Likewise.
15353         * tests/test-getdelim.c (getdelim): Likewise.
15354         * tests/test-getdtablesize.c (getdtablesize): Likewise.
15355         * tests/test-getgroups.c (getgroups): Likewise.
15356         * tests/test-gethostname.c (gethostname): Likewise.
15357         * tests/test-getline.c (getline): Likewise.
15358         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
15359         Likewise.
15360         * tests/test-gettimeofday.c (gettimeofday): Likewise.
15361         * tests/test-glob.c (glob, globfree): Likewise.
15362         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
15363         * tests/test-inet_ntop.c (inet_ntop): Likewise.
15364         * tests/test-inet_pton.c (inet_pton): Likewise.
15365         * tests/test-isblank.c (isblank): Likewise.
15366         * tests/test-lchown.c (lchown): Likewise.
15367         * tests/test-ldexpl.c (ldexpl): Likewise.
15368         * tests/test-link.c (link): Likewise.
15369         * tests/test-linkat.c (linkat): Likewise.
15370         * tests/test-lseek.c (lseek): Likewise.
15371         * tests/test-lstat.c (lstat): Likewise.
15372         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15373         * tests/test-mbsinit.c (mbsinit): Likewise.
15374         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15375         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15376         * tests/test-memchr.c (memchr): Likewise.
15377         * tests/test-memcmp.c (memcmp): Likewise.
15378         * tests/test-memmem.c (memmem): Likewise.
15379         * tests/test-memrchr.c (memrchr): Likewise.
15380         * tests/test-mkdir.c (mkdir): Likewise.
15381         * tests/test-mkdirat.c (mkdirat): Likewise.
15382         * tests/test-mkfifo.c (mkfifo): Likewise.
15383         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15384         * tests/test-mknod.c (mknod): Likewise.
15385         * tests/test-nanosleep.c (nanosleep): Likewise.
15386         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15387         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15388         Likewise.
15389         * tests/test-open.c (open): Likewise.
15390         * tests/test-openat.c (openat): Likewise.
15391         * tests/test-perror.c (perror): Likewise.
15392         * tests/test-pipe2.c (pipe2): Likewise.
15393         * tests/test-poll.c (poll): Likewise.
15394         * tests/test-popen.c (popen, pclose): Likewise.
15395         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15396         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15397         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15398         (posix_spawn_file_actions_destroy)
15399         (posix_spawn_file_actions_addclose)
15400         (posix_spawn_file_actions_addopen)
15401         (posix_spawn_file_actions_adddup2): Likewise.
15402         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15403         * tests/test-pread.c (pread): Likewise.
15404         * tests/test-printf-posix.c (printf): Likewise.
15405         * tests/test-pty.c (openpty, forkpty): Likewise.
15406         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15407         (random_r): Likewise.
15408         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15409         * tests/test-readlink.c (readlink): Likewise.
15410         * tests/test-remove.c (remove): Likewise.
15411         * tests/test-rename.c (rename): Likewise.
15412         * tests/test-renameat.c (renameat): Likewise.
15413         * tests/test-rmdir.c (rmdir): Likewise.
15414         * tests/test-round1.c (round): Likewise.
15415         * tests/test-roundf1.c (roundf): Likewise.
15416         * tests/test-roundl.c (roundl): Likewise.
15417         * tests/test-setenv.c (setenv): Likewise.
15418         * tests/test-sigaction.c (sigaction): Likewise.
15419         * tests/test-sleep.c (sleep): Likewise.
15420         * tests/test-snprintf.c (snprintf): Likewise.
15421         * tests/test-sprintf-posix.c (sprintf): Likewise.
15422         * tests/test-stat.c (stat): Likewise.
15423         * tests/test-stpncpy.c (stpncpy): Likewise.
15424         * tests/test-strcasestr.c (strcasestr): Likewise.
15425         * tests/test-strchrnul.c (strchrnul): Likewise.
15426         * tests/test-strerror.c (strerror): Likewise.
15427         * tests/test-strsignal.c (strsignal): Likewise.
15428         * tests/test-strstr.c (strstr): Likewise.
15429         * tests/test-strtod.c (strtod): Likewise.
15430         * tests/test-strverscmp.c (strverscmp): Likewise.
15431         * tests/test-symlink.c (symlink): Likewise.
15432         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
15433         * tests/test-times.c (times): Likewise.
15434         * tests/test-trunc1.c (trunc): Likewise.
15435         * tests/test-truncf1.c (truncf): Likewise.
15436         * tests/test-truncl.c (truncl): Likewise.
15437         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
15438         Likewise.
15439         * tests/test-uname.c (uname): Likewise.
15440         * tests/test-unlink.c (unlink): Likewise.
15441         * tests/test-unlinkat.c (unlinkat): Likewise.
15442         * tests/test-unsetenv.c (unsetenv): Likewise.
15443         * tests/test-usleep.c (usleep): Likewise.
15444         * tests/test-utimensat.c (utimensat): Likewise.
15445         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
15446         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
15447         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
15448         * tests/test-vprintf-posix.c (vprintf): Likewise.
15449         * tests/test-vsnprintf.c (vsnprintf): Likewise.
15450         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
15451         * tests/test-wcrtomb.c (wcrtomb): Likewise.
15452         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
15453         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
15454         * tests/test-wcwidth.c (wcwidth): Likewise.
15455
15456         build: pull in conditional headers during GNULIB_POSIXCHECK
15457         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
15458         definitions from any conditionally-included headers.
15459         * lib/stdlib.in.h (includes): Likewise.
15460         * lib/unistd.in.h (includes): Likewise.
15461
15462 2009-12-24  Bruno Haible  <bruno@clisp.org>
15463
15464         * tests/test-argv-iter.c: Include header file being tested immediately
15465         after config.h.
15466         * tests/test-base64.c: Likewise.
15467         * tests/test-flock.c: Likewise.
15468         * tests/test-fsync.c: Likewise.
15469         * tests/test-getdate.c: Likewise.
15470         * tests/test-getndelim2.c: Likewise.
15471         * tests/test-isfinite.c: Likewise.
15472         * tests/test-isinf.c: Likewise.
15473         * tests/test-strerror.c: Likewise.
15474         * tests/test-strsignal.c: Likewise.
15475
15476 2009-12-23  Eric Blake  <ebb9@byu.net>
15477
15478         unistd: work around cygwin bug
15479         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
15480         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
15481         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15482
15483 2009-12-23  Bruno Haible  <bruno@clisp.org>
15484
15485         localename: More tests.
15486         * tests/test-localename.c (SIZEOF): New macro.
15487         (categories): New variable.
15488         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
15489         test_locale_name_default): Add test w.r.t. thread locale.
15490         (test_locale_name_thread): New function.
15491         (main): Invoke it.
15492
15493         localename: Make aware of thread locale.
15494         * lib/localename.h (gl_locale_name_thread): New declaration.
15495         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
15496         behaviour with respect to thread locale.
15497         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
15498         <langinfo.h>, glthread/lock.h.
15499         (SIZE_BITS): New macro.
15500         (string_hash): New function.
15501         (struct hash_node): New type.
15502         (HASH_TABLE_SIZE): New macro.
15503         (struniq_hash_table, struniq_lock): New variables.
15504         (struniq): New function.
15505         (gl_locale_name_thread): New function.
15506         (gl_locale_name): Invoke it.
15507         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
15508         * modules/localename (Depends-on): Add lock.
15509         Reported by Mike Gran <spk121@yahoo.com>.
15510
15511 2009-12-23  Eric Blake  <ebb9@byu.net>
15512
15513         va-args: new module
15514         * modules/va-args: New file.
15515         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
15516         * MODULES.html.sh (Core language properties): Mention it.
15517
15518         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
15519         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
15520         named alias for __attribute__((__unused__)).
15521         * lib/chown.c: Update client.
15522         * lib/fchmodat.c: Likewise.
15523         * lib/fts.c: Likewise.
15524         * lib/getdate.y: Likewise.
15525         * lib/getgroups.c: Likewise.
15526         * lib/getopt.c: Likewise.
15527         * lib/getugroups.c: Likewise.
15528         * lib/mkdir.c: Likewise.
15529         * lib/mkfifo.c: Likewise.
15530         * lib/mkfifoat.c: Likewise.
15531         * lib/mknod.c: Likewise.
15532         * lib/mknodat.c: Likewise.
15533         * lib/readlink.c: Likewise.
15534         * lib/se-context.in.h: Likewise.
15535         * lib/se-selinux.in.h: Likewise.
15536         * lib/sockets.c: Likewise.
15537         * lib/symlink.c: Likewise.
15538         * lib/symlinkat.c: Likewise.
15539         * lib/unicodeio.c: Likewise.
15540         * lib/unistr.h: Likewise.
15541         * tests/test-areadlink.c: Likewise.
15542         * tests/test-areadlinkat.c: Likewise.
15543         * tests/test-filenamecat.c: Likewise.
15544         * tests/test-fseeko.c: Likewise.
15545         * tests/test-ftello.c: Likewise.
15546         * tests/test-getdate.c: Likewise.
15547         * tests/test-getgroups.c: Likewise.
15548         * tests/test-gethostname.c: Likewise.
15549         * tests/test-quotearg.c: Likewise.
15550         * tests/test-version-etc.c: Likewise.
15551         * tests/test-xalloc-die.c: Likewise.
15552         * tests/test-xfprintf-posix.c: Likewise.
15553         * tests/test-xprintf-posix.c: Likewise.
15554         * tests/test-xvasprintf.c: Likewise.
15555
15556         tests: avoid compiler warnings
15557         * tests/test-fcntl.c (main): Delete unused parameters.
15558         * tests/test-freopen-safer.c (main): Likewise.
15559         * tests/test-xalloc-die.c (main): Mark unused parameters.
15560         * tests/test-fseeko.c (main): Likewise.
15561         * tests/test-ftello.c (main): Likewise.
15562         * tests/test-nanosleep.c (main): Avoid declaration warning.
15563         * tests/test-sleep.c (main): Likewise.
15564         * tests/test-unsetenv.c (main): Silence warning about string
15565         literal.
15566         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15567
15568 2009-12-23  Bruno Haible  <bruno@clisp.org>
15569
15570         * tests/test-localename.c (test_locale_name): New function, extracted
15571         from main. Also test mixed situations.
15572         (test_locale_name_posix, test_locale_name_environ,
15573         test_locale_name_default): New functions.
15574         (main): Invoke them all.
15575         * modules/localename-tests (configure.ac): Test for newlocale.
15576
15577 2009-12-23  Bruno Haible  <bruno@clisp.org>
15578
15579         unistd: Ensure getcwd gets declared before being overridden.
15580         * lib/unistd.in.h: Conditionally include <io.h>.
15581
15582 2009-12-22  Bruno Haible  <bruno@clisp.org>
15583
15584         wchar: Diagnose broken combination of glibc and gcc versions and flags.
15585         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
15586         (gl_WCHAR_H): Invoke it.
15587         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
15588         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
15589         Reported by Karl Berry <karl@freefriends.org>.
15590
15591 2009-12-22  Eric Blake  <ebb9@byu.net>
15592
15593         math, unistd: avoid redundant includes
15594         * lib/math.in.h (isnan): No need to re-include <math.h>.
15595         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
15596
15597         getsubopt: work around cygwin bug
15598         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
15599         avoid conflicting with system getsubopt.
15600         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
15601         bug.
15602
15603         getopt: synchronize from glibc
15604         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
15605         parameter order.  Adjust all callers.
15606         (_getopt_internal_r, main): Adjust quoting in error messages.
15607         Drop considerations for outdated POSIX 1003.2 error message.
15608         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
15609         callers.
15610         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
15611
15612         test-getopt: test stderr behavior
15613         * modules/getopt-posix-tests (Depends-on): Add dup2.
15614         * tests/test-getopt.c (ASSERT): Avoid stderr.
15615         (main): Move stderr to a temporary file.
15616         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
15617         Instead, add parameter to inform caller if output occurred.
15618         (test_getopt): Adjust all existing tests to expect silence, and
15619         add new tests of leading ":".
15620         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15621         glibc shortcomings with leading "-:" or "+:" in optstring.
15622         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15623         Likewise.
15624         * doc/posix-functions/getopt.texi (getopt): Likewise.
15625
15626         test-getopt: enhance test
15627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
15628         supports optind=0.
15629         * tests/test-getopt.c (OPTIND_MIN): Move...
15630         * tests/test-getopt.h (OPTIND_MIN): ...here.
15631         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
15632         Require that optind=0 works, since modern BSD supports it in
15633         addition to optreset, and since coreutils expects it.
15634         (test_getopt_long_only): New test.
15635         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15636         glibc shortcomings with 'W;', and enforcement of optind=0.
15637         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15638         Likewise.
15639
15640 2009-12-21  Bruno Haible  <bruno@clisp.org>
15641
15642         localename: Improvements for MacOS X and Cygwin.
15643         * lib/localename.h (gl_locale_name_environ): New declaration.
15644         * lib/localename.c (gl_locale_name_environ): New function, extracted from
15645         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
15646         (gl_locale_name_posix): Invoke it.
15647         (gl_locale_name_default): Add comments. Use Windows native API also on
15648         Cygwin.
15649
15650 2009-12-21  Bruno Haible  <bruno@clisp.org>
15651
15652         Update list of Win32 locale ids.
15653         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
15654         (LANG_SAMI): Renamed from LANG_SAAMI.
15655         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
15656         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
15657         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
15658         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
15659         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
15660         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
15661         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
15662         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
15663         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
15664         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
15665         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
15666         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
15667         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
15668         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
15669         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
15670         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
15671         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
15672         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
15673         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
15674         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
15675         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
15676         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
15677         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
15678         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
15679         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
15680         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
15681         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
15682         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
15683         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
15684         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
15685         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
15686         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
15687         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
15688         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
15689         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
15690         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
15691         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
15692         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
15693         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
15694         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
15695         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
15696         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
15697         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
15698         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
15699         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
15700         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
15701         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
15702         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
15703         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
15704         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
15705         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
15706         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
15707         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
15708         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
15709         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
15710         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
15711         Add more languages and countries for Sami, Sorbian. Add more countries
15712         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
15713         for Pashto. Change country for Syriac, Tswana.
15714
15715 2009-12-21  Eric Blake  <ebb9@byu.net>
15716
15717         test-utimens: avoid spurious failure
15718         * tests/test-chown.h (nap): Factor...
15719         * tests/nap.h: ...into new file.
15720         * tests/test-lchown.h (nap): Avoid duplication.
15721         * tests/test-utimens-common.h (nap): Use shared implementation,
15722         necessary on file systems with 1-second resolution.
15723         * modules/chown-tests (Files): Include new file.
15724         * modules/fdutimensat-tests (Files): Likewise.
15725         * modules/futimens-tests (Files): Likewise.
15726         * modules/lchown-tests (Files): Likewise.
15727         * modules/openat-tests (Files): Likewise.
15728         * modules/utimens-tests (Files): Likewise.
15729         * modules/utimensat-tests (Files): Likewise.
15730
15731 2009-12-19  Eric Blake  <ebb9@byu.net>
15732
15733         futimens, utimensat: work around Linux bug
15734         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
15735         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15736         * lib/utimensat.c (rpl_utimensat): Work around it.
15737         * lib/futimens.c (rpl_futimens): Adjust comment.
15738
15739         utimens: work around Linux ctime bug
15740         * lib/utimens.c (detect_ctime_bug): New helper function.
15741         (update_timespec): Differentiate between workaround needed for
15742         this bug vs. what is needed for systems that lack utimensat.
15743         (fdutimens, lutimens): Work around bug.
15744
15745         utimens: check for ctime update
15746         * tests/test-utimens-common.h (check_ctime): Define.
15747         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
15748         * tests/test-futimens.h (test_futimens): Likewise.
15749         * tests/test-lutimens.h (test_lutimens): Likewise.
15750         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15751         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15752
15753 2009-12-19  Bruno Haible  <bruno@clisp.org>
15754
15755         dprintf-posix: Check against memory leak fixed on 2009-12-15.
15756         * tests/test-dprintf-posix2.sh: New file.
15757         * tests/test-dprintf-posix2.c: New file.
15758         * modules/dprintf-posix-tests (Files): Add them.
15759         (configure.ac): Check for getrlimit and setrlimit.
15760         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15761
15762 2009-12-19  Bruno Haible  <bruno@clisp.org>
15763
15764         fprintf-posix: Check against memory leak fixed on 2009-12-15.
15765         * tests/test-fprintf-posix3.sh: New file.
15766         * tests/test-fprintf-posix3.c: New file.
15767         * modules/fprintf-posix-tests (Files): Add them.
15768         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15769
15770 2009-12-19  Eric Blake  <ebb9@byu.net>
15771
15772         dirfd: fix prototype
15773         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
15774         * lib/dirfd.c (dirfd): Likewise.
15775
15776         canonicalize: reduce memory usage
15777         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
15778         allocation to size.
15779         Reported by Solar Designer <solar@openwall.com>.
15780
15781 2009-12-19  Bruno Haible  <bruno@clisp.org>
15782
15783         New module attribute 'Applicability'.
15784         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
15785         * gnulib-tool: New option --extract-applicability.
15786         (func_usage): Document it.
15787         (sed_extract_prog): Recognize it.
15788         (func_get_applicability): New function.
15789         (func_import): Generalize handling of 'link-warning' module.
15790         * modules/link-warning (Applicability): New section.
15791         * modules/arg-nonnull (Applicability): New section.
15792         Repoted by Simon Josefsson <simon@josefsson.org>.
15793
15794 2009-12-19  Bruno Haible  <bruno@clisp.org>
15795
15796         fflush: tweak
15797         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
15798         * lib/fseeko.c (rpl_fseeko): Likewise.
15799
15800 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
15801
15802         * lib/gl_list.h: Fix typo in comment.
15803
15804 2009-12-16  Eric Blake  <ebb9@byu.net>
15805
15806         fcntl: use to simplify other modules
15807         * modules/cloexec (Depends-on): Add fcntl.
15808         * modules/fchdir (Depends-on): Likewise.
15809         * modules/fd-safer-flag (Depends-on): Likewise.
15810         * modules/unistd-safer (Depends-on): Likewise.
15811         * modules/dup3 (configure.ac): Set module indicator.
15812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
15813         missing.
15814         * lib/fchdir.c (_gl_register_dup): Fix comment.
15815         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
15816         * lib/dup-safer.c (dup_safer): Likewise.
15817         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
15818         * lib/dup3.c (dup3): Likewise.
15819         * tests/test-fchdir.c (main): Enhance test.
15820         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
15821
15822         fcntl: port portions of fcntl to mingw
15823         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
15824         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
15825         replacement for mingw.
15826         * modules/fcntl (Description): Update.
15827         (Depends-on): Add dup2.
15828         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
15829         * modules/fcntl-h (Makefile.am): Substitute it.
15830         * lib/fcntl.in.h (fcntl): Update declaration.
15831         (F_DUPFD, F_GETFD): New macros, when needed.
15832         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15833         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
15834         * tests/test-fcntl.c (check_flags, main): Enhance test for items
15835         we now guarantee.
15836
15837         fcntl: work around cygwin bug in F_DUPFD
15838         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
15839         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
15840         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
15841         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
15842         * doc/posix-functions/fcntl.texi (fcntl): Document it.
15843
15844         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
15845         * modules/fcntl (Files): List new files.
15846         (configure.ac): Run a test.
15847         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
15848         * lib/fcntl.c (rpl_fcntl): Likewise.
15849         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
15850         (gl_FCNTL_H): Always replace fcntl.h.
15851         * modules/fcntl-h (Makefile.am): Substitute witnesses.
15852         * lib/fcntl.in.h (fcntl): Declare replacement.
15853         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
15854         needed, plus a witness.
15855         * doc/posix-functions/fcntl.texi (fcntl): Document this.
15856         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15857         * tests/test-fcntl.c: New file.
15858         * modules/fcntl-tests: Likewise.
15859
15860         binary-io: avoid potential compilation warning
15861         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
15862         directives.
15863
15864         fflush: avoid compilation error on NetBSD
15865         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
15866         between off_t and fpos_t, since the latter is sometimes a struct.
15867         * lib/fseeko.c (rpl_fseeko): Likewise.
15868         Reported by Alexander Nasonov <alnsn@yandex.ru>.
15869
15870 2009-12-15  Eric Blake  <ebb9@byu.net>
15871
15872         fcntl-h, stdio, sys_ioctl: fix declarations
15873         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
15874         function must not take arguments.
15875         * lib/sys_ioctl.in.h (ioctl): Likewise.
15876         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
15877         (open): Add a link warning.
15878
15879 2009-12-15  Jim Meyering  <meyering@redhat.com>
15880
15881         areadlink, areadlink-with-size: relax license to LGPLv2+
15882         * modules/areadlink (License): Relax to LGPLv2+.
15883         * modules/areadlink-with-size (License): Likewise.
15884
15885 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
15886             Bruno Haible  <bruno@clisp.org>
15887
15888         *printf: Fix memory leak.
15889         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
15890         * lib/vfprintf.c (vfprintf): Likewise.
15891         * lib/dprintf.c (dprintf): Likewise.
15892         * lib/vdprintf.c (vdprintf): Likewise.
15893
15894 2009-12-14  Eric Blake  <ebb9@byu.net>
15895
15896         accept4: adjust module dependencies
15897         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
15898
15899         utimens: one more try at avoiding compiler warning
15900         * lib/utimens.c (lutimens): Lower scope of result.
15901
15902 2009-12-13  Bruno Haible  <bruno@clisp.org>
15903
15904         Move the malloc checking from module 'list' to new module 'xlist'.
15905         * modules/xlist: New file.
15906         * lib/gl_xlist.h: New file.
15907         * lib/gl_xlist.c: New file.
15908         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
15909         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
15910         gl_list_add_last, gl_list_add_before, gl_list_add_after,
15911         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
15912         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
15913         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
15914         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
15915         gl_sortedlist_nx_add): New declarations.
15916         (struct gl_list_implementation): Rename and change methods accordingly.
15917         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
15918         (gl_list_nx_create): Renamed from gl_list_create.
15919         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15920         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15921         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15922         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15923         (gl_list_nx_add_before): Renamed from gl_list_add_before.
15924         (gl_list_nx_add_after): Renamed from gl_list_add_after.
15925         (gl_list_nx_add_at): Renamed from gl_list_add_at.
15926         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
15927         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
15928         gl_list_create_empty.
15929         (gl_list_nx_create): Renamed from gl_list_create.
15930         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15931         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15932         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15933         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15934         (gl_list_nx_add_before): Renamed from gl_list_add_before.
15935         (gl_list_nx_add_after): Renamed from gl_list_add_after.
15936         (gl_list_nx_add_at): Renamed from gl_list_add_at.
15937         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
15938         * lib/gl_array_list.c: Don't include xalloc.h.
15939         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
15940         NULL upon out-of-memory.
15941         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
15942         out-of-memory.
15943         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
15944         Change return type to 'int'.
15945         (gl_array_nx_set_at): Renamed from gl_array_set_at.
15946         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
15947         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
15948         upon out-of-memory.
15949         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
15950         upon out-of-memory.
15951         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
15952         upon out-of-memory.
15953         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
15954         upon out-of-memory.
15955         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
15956         out-of-memory.
15957         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
15958         Update.
15959         (gl_array_list_implementation): Update.
15960         * lib/gl_carray_list.c: Don't include xalloc.h.
15961         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
15962         Return NULL upon out-of-memory.
15963         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
15964         out-of-memory.
15965         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
15966         Change return type to 'int'.
15967         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
15968         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
15969         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
15970         upon out-of-memory.
15971         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
15972         upon out-of-memory.
15973         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
15974         out-of-memory.
15975         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
15976         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
15977         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
15978         Update.
15979         (gl_carray_list_implementation): Update.
15980         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
15981         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
15982         gl_linked_create_empty. Return NULL upon out-of-memory.
15983         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
15984         out-of-memory.
15985         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
15986         Change return type to 'int'. Return -1 upon out-of-memory.
15987         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
15988         out-of-memory.
15989         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
15990         upon out-of-memory.
15991         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
15992         upon out-of-memory.
15993         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
15994         NULL upon out-of-memory.
15995         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
15996         upon out-of-memory.
15997         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
15998         out-of-memory.
15999         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16000         Update.
16001         * lib/gl_linked_list.c: Don't include xalloc.h.
16002         (gl_linked_list_implementation): Update.
16003         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16004         (add_to_bucket): Change return type to 'int'.
16005         (gl_linkedhash_list_implementation): Update.
16006         * lib/gl_anytree_list1.h (free_subtree): New function.
16007         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16008         gl_tree_create_empty. Return NULL upon out-of-memory.
16009         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16010         Change return type to 'int'. Return -1 upon out-of-memory.
16011         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16012         out-of-memory.
16013         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16014         (gl_tree_remove_node): New function, moved here from
16015         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16016         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16017         Update.
16018         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16019         malloc, not xmalloc. Return NULL upon out-of-memory.
16020         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16021         out-of-memory.
16022         (gl_tree_remove_node_from_tree): New function, extracted from
16023         gl_tree_remove_node.
16024         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16025         upon out-of-memory.
16026         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16027         out-of-memory.
16028         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16029         upon out-of-memory.
16030         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16031         upon out-of-memory.
16032         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16033         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16034         not xmalloc. Return NULL upon out-of-memory.
16035         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16036         out-of-memory.
16037         (gl_tree_remove_node_from_tree): New function, extracted from
16038         gl_tree_remove_node.
16039         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16040         upon out-of-memory.
16041         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16042         out-of-memory.
16043         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16044         upon out-of-memory.
16045         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16046         upon out-of-memory.
16047         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16048         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16049         gl_anytree_list1.h before gl_anyavltree_list2.h.
16050         (gl_avltree_list_implementation): Update.
16051         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16052         gl_anytree_list1.h before gl_anyavltree_list2.h.
16053         (gl_rbtree_list_implementation): Update.
16054         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16055         Change return type to 'int'. Return -1 upon out-of-memory. Use
16056         __builtin_expect.
16057         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16058         (gl_avltreehash_list_implementation): Update.
16059         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16060         (gl_rbtreehash_list_implementation): Update.
16061         * modules/array-list (Depends-on): Remove xalloc.
16062         * modules/carray-list (Depends-on): Likewise.
16063         * modules/linked-list (Depends-on): Likewise.
16064         * modules/linkedhash-list (Depends-on): Likewise.
16065         * modules/avltree-list (Depends-on): Likewise.
16066         * modules/rbtree-list (Depends-on): Likewise.
16067         * modules/avltreehash-list (Depends-on): Likewise.
16068         * modules/rbtreehash-list (Depends-on): Likewise.
16069
16070         * modules/xsublist: New file.
16071         * lib/gl_xsublist.h: New file.
16072         * lib/gl_xsublist.c: New file.
16073         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16074         (gl_sublist_nx_create): New declaration.
16075         * lib/gl_sublist.c: Don't include xalloc.h.
16076         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16077         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16078         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16079         Change return type to 'int'. Return -1 upon out-of-memory.
16080         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16081         upon out-of-memory.
16082         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16083         NULL upon out-of-memory.
16084         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16085         upon out-of-memory.
16086         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16087         NULL upon out-of-memory.
16088         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16089         NULL upon out-of-memory.
16090         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16091         upon out-of-memory.
16092         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16093         (gl_sublist_list_implementation): Update.
16094         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16095         upon out-of-memory.
16096         * modules/sublist (Depends-on): Remove xalloc.
16097
16098         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16099         * tests/test-carray_list.c: Likewise.
16100         * tests/test-linked_list.c: Likewise.
16101         * tests/test-linkedhash_list.c: Likewise.
16102         * tests/test-avltree_list.c: Likewise.
16103         * tests/test-rbtree_list.c: Likewise.
16104         * tests/test-avltreehash_list.c: Likewise.
16105         * tests/test-rbtreehash_list.c: Likewise.
16106         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16107         * modules/carray-list-tests (Makefile.am): Likewise.
16108         * modules/linked-list-tests (Makefile.am): Likewise.
16109         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16110         * modules/avltree-list-tests (Makefile.am): Likewise.
16111         * modules/rbtree-list-tests (Makefile.am): Likewise.
16112         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16113         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16114
16115         * NEWS: Mention the changes.
16116
16117         * lib/clean-temp.c: Include gl_xlist.h.
16118         * modules/clean-temp (Depends-on): Add xlist.
16119
16120         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16121         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16122
16123         * tests/test-array_oset.c: Include gl_xlist.h.
16124         * modules/array-oset-tests (Depends-on): Add xlist.
16125
16126         Reported by José E. Marchesi <jemarch@gnu.org>.
16127
16128 2009-12-13  Bruno Haible  <bruno@clisp.org>
16129
16130         Move the malloc checking from module 'oset' to new module 'xoset'.
16131         * modules/xoset: New file.
16132         * lib/gl_xoset.h: New file.
16133         * lib/gl_xoset.c: New file.
16134         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16135         declarations.
16136         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16137         (struct gl_oset_implementation): Rename and change methods accordingly.
16138         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16139         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16140         'int'. Mark as __warn_unused_result__.
16141         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16142         gl_oset_create_empty.
16143         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16144         'int'.
16145         * lib/gl_array_oset.c: Don't include xalloc.h.
16146         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16147         malloc, not xmalloc.
16148         (grow): Change return type to 'int'. Don't call xalloc_die.
16149         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16150         to 'int'.
16151         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16152         'int'.
16153         (gl_array_oset_implementation): Update.
16154         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16155         gl_tree_create_empty.
16156         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16157         'int'.
16158         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16159         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16160         xmalloc.
16161         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16162         not xmalloc.
16163         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16164         xmalloc.
16165         (gl_avltree_oset_implementation): Update.
16166         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16167         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16168         xmalloc.
16169         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16170         not xmalloc.
16171         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16172         xmalloc.
16173         (gl_rbtree_oset_implementation): Update.
16174         * modules/array-oset (Depends-on): Remove xalloc.
16175         * modules/avltree-oset (Depends-on): Likewise.
16176         * modules/rbtree-oset (Depends-on): Likewise.
16177         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16178         * tests/test-avltree_oset.c: Likewise.
16179         * tests/test-rbtree_oset.c: Likewise.
16180         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16181         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16182         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16183         * NEWS: Mention the change.
16184
16185 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16186
16187         maint.mk: allow a project to override release-prep commands
16188         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16189         commands into a new rule.
16190         (release-prep): New rule.
16191         (release-prep-hook): New overridable variable.
16192
16193 2009-12-13  Bruno Haible  <bruno@clisp.org>
16194
16195         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16196
16197 2009-12-13  Jim Meyering  <meyering@redhat.com>
16198
16199         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16200         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16201
16202 2009-12-12  Bruno Haible  <bruno@clisp.org>
16203
16204         duplocale: Tweak.
16205         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16206
16207 2009-12-12  Karl Berry  <karl@gnu.org>
16208
16209         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16210
16211 2009-12-12  Bruno Haible  <bruno@clisp.org>
16212
16213         * m4/po.m4: Undo incorrect untabification.
16214
16215 2009-12-12  Bruno Haible  <bruno@clisp.org>
16216
16217         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16218         * modules/c-strtod (Depends-on): Add locale.
16219         * modules/c-strtold (Depends-on): Likewise.
16220
16221 2009-12-12  Bruno Haible  <bruno@clisp.org>
16222
16223         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16224
16225 2009-12-11  Eric Blake  <ebb9@byu.net>
16226
16227         setenv: relax requirement in light of POSIX ruling
16228         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16229         not NULL.
16230         * tests/test-setenv.c (main): Relax test.
16231         * tests/test-unsetenv.c (main): Likewise.
16232         * doc/posix-functions/setenv.texi (setenv): Document this.
16233         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16234
16235 2009-12-11  Bruno Haible  <bruno@clisp.org>
16236
16237         New module 'fd-safer-flag'.
16238         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16239         * lib/dup-safer.c (dup_safer_flag): Remove function.
16240         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16241         * lib/fd-safer.c (fd_safer_flag): Remove function.
16242         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16243         * modules/cloexec (configure.ac): Drop indicator macro.
16244         * modules/fd-safer-flag: New file.
16245         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16246         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16247         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16248
16249 2009-12-11  Bruno Haible  <bruno@clisp.org>
16250
16251         Tests for module 'nl_langinfo'.
16252         * modules/nl_langinfo-tests: New file.
16253         * tests/test-nl_langinfo.sh: New file.
16254         * tests/test-nl_langinfo.c: New file.
16255
16256         New module 'nl_langinfo'.
16257         * lib/nl_langinfo.c: New file.
16258         * m4/nl_langinfo.m4: New file.
16259         * modules/nl_langinfo: New file.
16260         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16261
16262 2009-12-11  Bruno Haible  <bruno@clisp.org>
16263
16264         Tests for module 'langinfo'.
16265         * modules/langinfo-tests: New file.
16266         * tests/test-langinfo.c: New file.
16267
16268         New module 'langinfo'.
16269         * lib/langinfo.in.h: New file.
16270         * m4/langinfo_h.m4: New file.
16271         * modules/langinfo: New file.
16272         * doc/posix-headers/langinfo.texi: Mention the new module.
16273
16274 2009-12-11  Bruno Haible  <bruno@clisp.org>
16275
16276         * lib/config.charset: Untabify.
16277
16278 2009-12-11  Bruno Haible  <bruno@clisp.org>
16279
16280         * modules/unistd-safer (configure.ac): Drop indicator macro.
16281
16282 2009-12-11  Bruno Haible  <bruno@clisp.org>
16283
16284         Move pipe2-safer code to its own file.
16285         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16286         * lib/pipe-safer.c (pipe2_safer): Remove function.
16287         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16288         (Makefile.am): Add it to lib_SOURCES.
16289
16290 2009-12-10  Bruno Haible  <bruno@clisp.org>
16291
16292         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16293
16294 2009-12-10  Bruno Haible  <bruno@clisp.org>
16295
16296         Declare which arguments expect non-NULL values, for GCC and clang.
16297         * build-aux/arg-nonnull.h: New file.
16298         * modules/arg-nonnull: New file.
16299         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16300         (inet_ntop, inet_pton): Use it.
16301         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16302         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16303         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16304         (open, openat): Use it.
16305         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16306         (fnmatch): Use it.
16307         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16308         (getopt, getopt_long, getopt_long_only): Use it.
16309         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16310         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16311         Use it.
16312         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16313         (iconv_open): Use it.
16314         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16315         (strtoimax, strtoumax): Use it.
16316         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16317         (duplocale): Use it.
16318         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16319         (frexp, frexpl): Use it.
16320         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16321         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16322         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16323         (tsearch, tfind, tdelete, twalk): Use it.
16324         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16325         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16326         sigpending): Use it.
16327         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16328         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16329         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16330         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16331         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16332         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16333         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16334         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16335         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16336         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16337         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16338         Use it.
16339         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
16340         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
16341         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
16342         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
16343         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
16344         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
16345         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
16346         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
16347         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
16348         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
16349         strtoull, unsetenv): Use it.
16350         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
16351         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16352         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16353         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16354         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16355         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
16356         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
16357         (strcasecmp, strncasecmp): Use it.
16358         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
16359         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
16360         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
16361         rpl_setsockopt): Use it.
16362         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
16363         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
16364         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
16365         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16366         (gettimeofday): Use it.
16367         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16368         (times): Use it.
16369         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16370         (uname): Use it.
16371         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16372         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16373         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16374         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16375         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16376         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16377         unlinkat, write): Use it.
16378         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16379         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16380         * lib/argv-iter.h: Include arg-nonnull.h.
16381         (_ATTRIBUTE_NONNULL_): Remove macro.
16382         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16383         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16384         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16385         optimization.
16386         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16387         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16388         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16389         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16390         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16391         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16392         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16393         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16394         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16395         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16396         * modules/dirent (Depends-on): Add arg-nonnull.
16397         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16398         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16399         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16400         * modules/fnmatch (Depends-on): Add arg-nonnull.
16401         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16402         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16403         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16404         * modules/glob (Depends-on): Add arg-nonnull.
16405         (Makefile.am): Insert arg-nonnull.h into glob.h.
16406         * modules/iconv_open (Depends-on): Add arg-nonnull.
16407         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16408         * modules/inttypes (Depends-on): Add arg-nonnull.
16409         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16410         * modules/locale (Depends-on): Add arg-nonnull.
16411         (Makefile.am): Insert arg-nonnull.h into locale.h.
16412         * modules/math (Depends-on): Add arg-nonnull.
16413         (Makefile.am): Insert arg-nonnull.h into math.h.
16414         * modules/netdb (Depends-on): Add arg-nonnull.
16415         (Makefile.am): Insert arg-nonnull.h into netdb.h.
16416         * modules/search (Depends-on): Add arg-nonnull.
16417         (Makefile.am): Insert arg-nonnull.h into search.h.
16418         * modules/signal (Depends-on): Add arg-nonnull.
16419         (Makefile.am): Insert arg-nonnull.h into signal.h.
16420         * modules/spawn (Depends-on): Add arg-nonnull.
16421         (Makefile.am): Insert arg-nonnull.h into spawn.h.
16422         * modules/stdio (Depends-on): Add arg-nonnull.
16423         (Makefile.am): Insert arg-nonnull.h into stdio.h.
16424         * modules/stdlib (Depends-on): Add arg-nonnull.
16425         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
16426         * modules/string (Depends-on): Add arg-nonnull.
16427         (Makefile.am): Insert arg-nonnull.h into string.h.
16428         * modules/strings (Depends-on): Add arg-nonnull.
16429         (Makefile.am): Insert arg-nonnull.h into strings.h.
16430         * modules/sys_socket (Depends-on): Add arg-nonnull.
16431         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
16432         * modules/sys_stat (Depends-on): Add arg-nonnull.
16433         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
16434         * modules/sys_time (Depends-on): Add arg-nonnull.
16435         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
16436         * modules/sys_times (Depends-on): Add arg-nonnull.
16437         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
16438         * modules/sys_utsname (Depends-on): Add arg-nonnull.
16439         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
16440         * modules/time (Depends-on): Add arg-nonnull.
16441         (Makefile.am): Insert arg-nonnull.h into time.h.
16442         * modules/unistd (Depends-on): Add arg-nonnull.
16443         (Makefile.am): Insert arg-nonnull.h into unistd.h.
16444         * modules/wchar (Depends-on): Add arg-nonnull.
16445         (Makefile.am): Insert arg-nonnull.h into wchar.h.
16446         * modules/argv-iter (Depends-on): Add arg-nonnull.
16447         * tests/test-canonicalize.c (null_ptr): New function.
16448         (main): Use it.
16449         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
16450         (main): Use it.
16451         * tests/test-memmem.c (null_ptr): New function.
16452         (main): Use it.
16453         Reported by Jim Meyering.
16454
16455 2009-12-10  Bruno Haible  <bruno@clisp.org>
16456
16457         Use spaces for indentation, not tabs.
16458         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16459         * m4/*.m4: Untabify.
16460         * build-aux/*.h: Untabify.
16461         * tests/**/*.[hc]: Untabify.
16462         * README: New section "Indent with spaces, not TABs", based on
16463         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
16464         * NEWS: Mention the change.
16465
16466 2009-12-10  Bruno Haible  <bruno@clisp.org>
16467
16468         pty test: Fix link error.
16469         * modules/pty-tests (Makefile.am): Add the default LDADD value to
16470         test_pty_LDADD.
16471
16472 2009-12-07  Simon Josefsson  <simon@josefsson.org>
16473
16474         * modules/pty: New file.
16475         * modules/pty-tests: New file.
16476         * m4/pty.m4: New file.
16477         * tests/test-pty.c: New file.
16478         * doc/glibc-headers/pty.texi: Modified.
16479         * doc/glibc-functions/forkpty.texi: Modified.
16480         * doc/glibc-functions/openpty.texi: Modified.
16481
16482 2009-12-10  Bruno Haible  <bruno@clisp.org>
16483
16484         Avoid syntax error in C++ mode.
16485         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
16486
16487 2009-12-10  Bruno Haible  <bruno@clisp.org>
16488
16489         Use sed with option -e.
16490         * gnulib-tool (func_version, func_emit_copyright_notice,
16491         func_emit_initmacro_end, func_import, func_create_testdir): Pass
16492         option -e to sed.
16493         * modules/link-warning (Makefile.am): Likewise.
16494
16495 2009-12-10  Jim Meyering  <meyering@redhat.com>
16496
16497         mgetgroups: do not write bytes beyond end of malloc'd buffer
16498         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
16499         username, we call getgroups with a one-element-shorter buffer,
16500         but still told it the length was original, max_n_groups.
16501
16502 2009-12-09  Eric Blake  <ebb9@byu.net>
16503
16504         cloexec: relax license
16505         * modules/cloexec (Maintainer): Add myself.
16506         (License): Use LGPL, not GPL.
16507
16508         link-warning: optimize generation
16509         * modules/link-warning (Makefile.am): Reduce process usage.
16510
16511 2009-12-09  Bruno Haible  <bruno@clisp.org>
16512
16513         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
16514         workaround was added on 2009-11-17.
16515
16516 2009-12-09  Jim Meyering  <meyering@redhat.com>
16517             Bruno Haible  <bruno@clisp.org>
16518
16519         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
16520         * modules/link-warning (Makefile.am): Make the comment-removing sed
16521         command more robust in the face of bootstrap-prepended comment lines.
16522
16523 2009-12-09  Bruno Haible  <bruno@clisp.org>
16524
16525         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
16526         most one group.
16527
16528 2009-12-09  Simon Josefsson <simon@josefsson.org>
16529             Bruno Haible  <bruno@clisp.org>
16530
16531         * build-aux/link-warning.h: Add copyright notice.
16532         * modules/link-warning (Makefile.am): Generate link-warning.h from
16533         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
16534         * NEWS: Mention change in link-warning module.
16535         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
16536         * modules/dirent (Makefile.am): Add dependency to dirent.h.
16537         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
16538         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
16539         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
16540         * modules/math (Makefile.am): Add dependency to math.h.
16541         * modules/search (Makefile.am): Add dependency to search.h.
16542         * modules/signal (Makefile.am): Add dependency to signal.h.
16543         * modules/spawn (Makefile.am): Add dependency to spawn.h.
16544         * modules/stdio (Makefile.am): Add dependency to stdio.h.
16545         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
16546         * modules/string (Makefile.am): Add dependency to string.h.
16547         * modules/strings (Makefile.am): Add dependency to strings.h.
16548         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
16549         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
16550         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
16551         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
16552         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
16553         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
16554         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
16555         * modules/unistd (Makefile.am): Add dependency to unistd.h.
16556         * modules/wchar (Makefile.am): Add dependency to wchar.h.
16557
16558 2009-12-09  Bruno Haible  <bruno@clisp.org>
16559
16560         fchdir: Optimize away rpl_fstat when possible.
16561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
16562         REPLACE_OPEN_DIRECTORY.
16563         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
16564
16565 2009-12-09  Bruno Haible  <bruno@clisp.org>
16566
16567         * lib/fchdir.c: Update comment.
16568
16569 2009-12-09  Bruno Haible  <bruno@clisp.org>
16570
16571         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
16572
16573 2009-12-08  Eric Blake  <ebb9@byu.net>
16574
16575         fchdir: avoid memory leak on re-registration.
16576         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
16577
16578 2009-12-08  Jim Meyering  <meyering@redhat.com>
16579
16580         init.sh: avoid Solaris 10 /bin/sh portability problem
16581         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
16582         sourced script:
16583           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
16584           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
16585           bar
16586         tests/init.sh relied on that, accepting a --set-path=DIR argument,
16587         and two tests used that idiom.
16588         * tests/init.sh: Update suggested usage comments.
16589         (path_prepend_): New function, to be used in place
16590         of the --src-path=DIR option.
16591         (setup_): Move PATH-prepending code into path_prepend_.
16592         * tests/test-pread.sh: Adapt to new usage.
16593         * tests/test-xalloc-die.sh: Likewise.
16594
16595 2009-12-08  Simon Josefsson  <simon@josefsson.org>
16596
16597         * doc/gnulib.texi (Glibc pty.h): Add.
16598         * doc/glibc-functions/forkpty.texi: Add.
16599         * doc/glibc-functions/openpty.texi: Add.
16600         Suggested by Bruno Haible.
16601
16602 2009-12-08  Eric Blake  <ebb9@byu.net>
16603
16604         fchdir: fix logic bugs
16605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
16606         * tests/test-fchdir.c (main): Enhance test.
16607         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
16608         is in use.
16609
16610         dup2: fix logic bugs
16611         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
16612         REPLACE_DUP2 to decide when rpl_dup2 is needed.
16613         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
16614         exists.
16615         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
16616
16617 2009-12-07  Eric Blake  <ebb9@byu.net>
16618
16619         unlink: fix m4 detection
16620         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
16621
16622         unistd-safer: add unit test
16623         * modules/unistd-safer-tests: New file.
16624         * tests/test-dup-safer.c: Likewise.
16625         * tests/test-cloexec.c (setmode): Avoid compiler warning.
16626         * tests/test-dup2.c (setmode): Likewise.
16627         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
16628
16629         cloexec: preserve text vs. binary across dup_cloexec
16630         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
16631         mode.
16632         * modules/dup2-tests (Depends-on): Add binary-io.
16633         * modules/cloexec-tests (Depends-on): Likewise.
16634         * tests/test-dup2.c (setmode, is_mode): New helpers.
16635         (main): Add tests that translation mode is preserved.
16636         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
16637         Reported by Bruno Haible.
16638
16639         mgetgroups: reduce duplicate listings
16640         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
16641         resulting array.
16642         * tests/test-chown.h (test_chown): Simplify client.
16643         * tests/test-lchown.h (test_lchown): Likewise.
16644
16645 2009-12-06  Bruno Haible  <bruno@clisp.org>
16646
16647         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
16648         value.
16649
16650 2009-12-06  Bruno Haible  <bruno@clisp.org>
16651
16652         * lib/progname.c: Include stdio.h, stdlib.h.
16653         (set_program_name): Reject a NULL argument.
16654
16655 2009-12-05  Eric Blake  <ebb9@byu.net>
16656
16657         pipe2-safer: new module
16658         * modules/pipe2-safer: New file.
16659         * lib/unistd-safer.h (pipe2_safer): New prototype.
16660         * lib/unistd--.h (pipe2): New wrapper.
16661         * lib/pipe-safer.c (pipe2_safer): New function.
16662         * modules/pipe (Depends-on): Add pipe2-safer.
16663         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
16664
16665         stdlib-safer: preserve cloexec flag for mkostemp[s]
16666         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
16667         fd_safer_flag.
16668
16669         unistd-safer: allow preservation of cloexec status via flag
16670         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
16671         prototypes.
16672         * lib/dup-safer.c (dup_safer_flag): New function.
16673         * lib/fd-safer.c (fd_safer_flag): Likewise.
16674         * modules/cloexec (configure.ac): Set witness.
16675
16676         test-dup2: enhance test
16677         * modules/dup2-tests (Depends-on): Add cloexec.
16678         * tests/test-dup2.c (main): Enhance test.
16679
16680         cloexec: add dup_cloexec
16681         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
16682         header and comments.
16683         * lib/cloexec.c (set_cloexec_flag): Add comments.
16684         (dup_cloexec): New function, with mingw implementation borrowed
16685         from...
16686         * lib/w32spawn.h (dup_noinherit): ...here.
16687         * modules/execute (Depends-on): Add cloexec.
16688         * modules/pipe (Depends-on): Likewise.
16689         * modules/cloexec (Depends-on): Add dup2.
16690         * modules/cloexec-tests (Files): New file.
16691         * tests/test-cloexec.c: Likewise.
16692
16693         test-xalloc-die: fix test for mingw
16694         * modules/xalloc-die-tests (Files): Add tests/init.sh.
16695         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
16696         directory and .exe suffix off argv[0] output.
16697
16698         test-fseeko: fix test for mingw
16699         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
16700         than undefining fseek, so test will pass on mingw.
16701
16702 2009-12-05  Bruno Haible  <bruno@clisp.org>
16703
16704         * lib/progname.h (set_program_name): Clarify specification.
16705         * lib/progname.c (set_program_name): Likewise.
16706         Reported by Jim Meyering.
16707
16708 2009-12-05  Jim Meyering  <meyering@redhat.com>
16709
16710         maint.mk: backslash-escape parens in default regexp
16711         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
16712         backslash-escape the literal parentheses.
16713
16714         maint.mk: news-date-check: use grep -E
16715         * top/maint.mk (today): Define a Make variable, not a...
16716         (news-date-check): ...shell variable.
16717         (news-date-regexp): Use the Make variable.
16718         Use grep's -E option.  Change the failing diagnostic to mention
16719         the variable, $(news-date-regexp).
16720
16721 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
16722
16723         maintainer-makefile: allow customization of NEWS entry format
16724         * top/maint.mk (news-date-regexp): New overridable variable.
16725         (news-date-check): Use it.
16726
16727 2009-12-04  Eric Blake  <ebb9@byu.net>
16728
16729         mgetgroups: add xgetgroups, and avoid ENOSYS failures
16730         * lib/mgetgroups.h (xgetgroups): New prototype.
16731         * lib/mgetgroups.c (xgetgroups): New wrapper.
16732         (mgetgroups): Handle ENOSYS.
16733         * modules/mgetgroups (Depends-on): Add realloc.
16734         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
16735
16736         mgetgroups: avoid argument promotion issues with -1
16737         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
16738         for invalid gid_t.
16739         * tests/test-chown.h (getegid, test_chown): Likewise.
16740         * tests/test-lchown.h (getegid, test_lchown): Likewise.
16741
16742 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
16743
16744         exclude: Fix header file problems.
16745         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
16746
16747 2009-12-01  Jim Meyering  <meyering@redhat.com>
16748
16749         fts: fts_open: do not let an empty string cause immediate failure
16750         This is required in support of GNU rm, for which the command
16751         "rm A '' B" must process and remove both A and B, in spite of
16752         the empty string argument.
16753         * lib/fts.c (fts_open): Do not let the presence of an empty string
16754         cause fts_open to fail immediately.  Most fts-using tools must be
16755         able to process all arguments, in order, and can be expected to
16756         diagnose such arguments themselves.
16757
16758 2009-11-30  Eric Blake  <ebb9@byu.net>
16759
16760         utimens: fix compilation error
16761         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
16762         Declare variable at right scope.
16763
16764 2009-11-29  Jim Meyering  <meyering@redhat.com>
16765
16766         bootstrap: handle perl-5.11's changed --version output
16767         * build-aux/bootstrap (get_version): Handle perl separately,
16768         since perl-5.11's --version output is different.
16769
16770 2009-11-28  Jim Meyering  <meyering@redhat.com>
16771
16772         userspec: depend on the inttostr module, too
16773         * modules/userspec (Depends-on): Add inttostr.
16774
16775         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
16776         * lib/userspec.c (parse_with_separator): Do not accept a user ID
16777         number of MAXUID when it evaluates to (uid_t) -1.
16778         Likewise for group ID.  Reported by Matt McCutchen in
16779         <http://savannah.gnu.org/bugs/?28113>
16780
16781         userspec: reformat to use spaces, not TABs
16782         * lib/userspec.c: Expand TABs to spaces.
16783         Add Emacs' "indent-tabs-mode: nil" hint.
16784
16785 2009-11-27  Eric Blake  <ebb9@byu.net>
16786
16787         getopt-gnu: flush out another BSD bug
16788         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
16789         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
16790         flush out BSD bug.
16791         * tests/test-getopt.h (test_getopt): End lists with NULL.
16792         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16793         (test_getopt_long_posix): Enhance test.
16794         * modules/getopt-posix-tests (Depends-on): Add stdbool.
16795         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
16796         getopt-gnu.
16797         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16798         Likewise.
16799
16800 2009-11-27  Simon Josefsson  <simon@josefsson.org>
16801
16802         * modules/idpriv-droptemp-tests (Notice): Fix text.
16803
16804 2009-11-27  Jim Meyering  <meyering@redhat.com>
16805
16806         test-xalloc-die: avoid spurious failure due to libtool argv difference
16807         In a libtool-enabled project, this test would fail due to a difference
16808         in the emitted program name, e.g.,
16809         -test-xalloc-die: memory exhausted
16810         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
16811         Use program to avoid that.
16812         * modules/xalloc-die-tests (Depends-on): Add progname.
16813         * tests/test-xalloc-die.c: Include progname.h".
16814         (program_name): Remove decl.
16815         (main): Call set_program_name.
16816         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
16817
16818 2009-11-26  Richard Jones  <rjones@redhat.com>
16819
16820         w32sock: leave win32 error in place.
16821         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
16822
16823 2009-11-26  Eric Blake  <ebb9@byu.net>
16824
16825         init.sh: suggest to use skip_ and fail_ functions in comments
16826         * tests/init.sh: Add a sentence.
16827
16828 2009-11-25  Bruno Haible  <bruno@clisp.org>
16829
16830         init.sh: add documentation in comments
16831         * tests/init.sh: Add some developer and user documentation.
16832
16833 2009-11-26  Jim Meyering  <meyering@redhat.com>
16834
16835         init.sh: accommodate even those who specify bogus srcdir manually
16836         * tests/init.sh: Normally, srcdir is guaranteed by automake and
16837         configure-time tests to be sanitized, so that there is no need to
16838         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
16839         (with no double quotes) suffices.  However, since tests may be
16840         invoked manually, and since you may explicitly set srcdir to the
16841         name of a directory containing spaces, do quote its uses here.
16842         * tests/test-pread.sh: Likewise.
16843         Suggested by Bruno Haible.
16844
16845         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
16846         * tests/test-pread.sh: Write no data into the pipe, because
16847         test-pread actually reads none.  This avoids a diagnostic,
16848         "bash: echo: write error: Broken pipe", that arises in the unusual
16849         event something is ignoring SIGPIPE, and might be interpreted
16850         as some sort of failure.  Reported by Bruno Haible.
16851
16852 2009-11-25  Jim Meyering  <meyering@redhat.com>
16853
16854         test-pread: cover failure with ESPIPE and EINVAL
16855         * tests/test-pread.c (main): Test for failure, too.
16856         * tests/test-pread.sh: Invoke with stdin on a pipe.
16857         Suggested by Eric Blake.
16858
16859         pread: improvement and fix
16860         * modules/pread (Depends-on): Depend on lseek, for portability to
16861         e.g., mingw.  Suggested by Eric Blake.
16862         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
16863
16864         unistd.in.h: correct declaration of pread
16865         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
16866         Reported by Richard W.M. Jones.
16867
16868         test-pread.sh: distribute the test script
16869         * modules/pread-tests (Files): Include test-pread.sh.
16870
16871         test-pread.sh: clean up
16872         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
16873         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
16874         That is unnecessary, since it's always ".".
16875         Suggestion from Eric Blake.
16876
16877         test-pread.sh: make executable
16878         * tests/test-pread.sh: Set executable bit.
16879         Reported by Eric Blake.
16880
16881         correct typo in test-pread.sh
16882         * tests/test-pread.sh: Add #! line.
16883
16884         test pread
16885         * tests/test-pread.c: New file.
16886         * tests/test-pread.sh: Likewise.
16887         * modules/pread-tests: Likewise.
16888
16889         pread: new module
16890         * modules/pread: New file.
16891         * lib/unistd.in.h (pread): Define/declare.
16892         * lib/pread.c (pread): New file.
16893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
16894         * modules/unistd (Makefile.am): Substitute witnesses.
16895         * doc/posix-functions/pread.texi (pread): Update.
16896         * MODULES.html.sh: Add pread.
16897
16898 2009-11-25  Jim Meyering  <meyering@redhat.com>
16899
16900         tests/init.sh: new file to be used via most *.sh tests
16901         * tests/init.sh: New file.
16902
16903 2009-11-25  Eric Blake  <ebb9@byu.net>
16904
16905         utimens: work around older Linux failure with symlinks
16906         * lib/utimens.c (lutimensat_works_really): New variable.
16907         (fdutimens, lutimens): Use it to manage kernels that support
16908         nanosecond times on files, but not on symlinks.
16909         Reported by OndÅ™ej Vašík.
16910
16911         utimes: fix configure grammar
16912         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
16913
16914 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
16915
16916         regex: Fix fastmap for multibyte character ranges.
16917         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
16918         characters when a multibyte character range is included.
16919
16920 2009-11-22  Andy Wingo  <wingo@pobox.com>
16921
16922         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
16923         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
16924
16925 2009-11-24  Bruno Haible  <bruno@clisp.org>
16926
16927         doc: Most *_l functions exist in MacOS X 10.5.
16928         * doc/posix-functions/duplocale.texi: Update platforms list.
16929         * doc/posix-functions/freelocale.texi: Likewise.
16930         * doc/posix-functions/newlocale.texi: Likewise.
16931         * doc/posix-functions/uselocale.texi: Likewise.
16932         * doc/posix-functions/isalnum_l.texi: Likewise.
16933         * doc/posix-functions/isalpha_l.texi: Likewise.
16934         * doc/posix-functions/isblank_l.texi: Likewise.
16935         * doc/posix-functions/iscntrl_l.texi: Likewise.
16936         * doc/posix-functions/isdigit_l.texi: Likewise.
16937         * doc/posix-functions/isgraph_l.texi: Likewise.
16938         * doc/posix-functions/islower_l.texi: Likewise.
16939         * doc/posix-functions/isprint_l.texi: Likewise.
16940         * doc/posix-functions/ispunct_l.texi: Likewise.
16941         * doc/posix-functions/isspace_l.texi: Likewise.
16942         * doc/posix-functions/isupper_l.texi: Likewise.
16943         * doc/posix-functions/iswalnum_l.texi: Likewise.
16944         * doc/posix-functions/iswalpha_l.texi: Likewise.
16945         * doc/posix-functions/iswblank_l.texi: Likewise.
16946         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16947         * doc/posix-functions/iswctype_l.texi: Likewise.
16948         * doc/posix-functions/iswdigit_l.texi: Likewise.
16949         * doc/posix-functions/iswgraph_l.texi: Likewise.
16950         * doc/posix-functions/iswlower_l.texi: Likewise.
16951         * doc/posix-functions/iswprint_l.texi: Likewise.
16952         * doc/posix-functions/iswpunct_l.texi: Likewise.
16953         * doc/posix-functions/iswspace_l.texi: Likewise.
16954         * doc/posix-functions/iswupper_l.texi: Likewise.
16955         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16956         * doc/posix-functions/isxdigit_l.texi: Likewise.
16957         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
16958         * doc/posix-functions/strcasecmp_l.texi: Likewise.
16959         * doc/posix-functions/strcoll_l.texi: Likewise.
16960         * doc/posix-functions/strfmon_l.texi: Likewise.
16961         * doc/posix-functions/strftime_l.texi: Likewise.
16962         * doc/posix-functions/strncasecmp_l.texi: Likewise.
16963         * doc/posix-functions/strxfrm_l.texi: Likewise.
16964         * doc/posix-functions/tolower_l.texi: Likewise.
16965         * doc/posix-functions/toupper_l.texi: Likewise.
16966         * doc/posix-functions/towctrans_l.texi: Likewise.
16967         * doc/posix-functions/towlower_l.texi: Likewise.
16968         * doc/posix-functions/towupper_l.texi: Likewise.
16969         * doc/posix-functions/wcscoll_l.texi: Likewise.
16970         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16971         * doc/posix-functions/wctrans_l.texi: Likewise.
16972         * doc/posix-functions/wctype_l.texi: Likewise.
16973         * doc/glibc-functions/strptime_l.texi: Likewise.
16974         * doc/glibc-functions/strtod_l.texi: Likewise.
16975         * doc/glibc-functions/strtof_l.texi: Likewise.
16976         * doc/glibc-functions/strtol_l.texi: Likewise.
16977         * doc/glibc-functions/strtold_l.texi: Likewise.
16978         * doc/glibc-functions/strtoll_l.texi: Likewise.
16979         * doc/glibc-functions/strtoul_l.texi: Likewise.
16980         * doc/glibc-functions/strtoull_l.texi: Likewise.
16981         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16982         * doc/glibc-functions/wcstod_l.texi: Likewise.
16983         * doc/glibc-functions/wcstof_l.texi: Likewise.
16984         * doc/glibc-functions/wcstol_l.texi: Likewise.
16985         * doc/glibc-functions/wcstold_l.texi: Likewise.
16986         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16987         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16988         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16989
16990 2009-11-24  Bruno Haible  <bruno@clisp.org>
16991
16992         duplocale: Fix logic bug.
16993         * lib/duplocale.c: Don't include <langinfo.h>.
16994         (_NL_LOCALE_NAME): Remove macro.
16995         (rpl_duplocale): Use setlocale instead of nl_langinfo.
16996         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
16997
16998 2009-11-23  Jim Meyering  <meyering@redhat.com>
16999
17000         test-update-copyright: don't hard-code /usr/bin/perl
17001         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17002         perl to print the current year.  Gilles Espinasse reported that
17003         the replaced use of perl was hard-coded as /usr/bin/perl.
17004
17005 2009-11-23  Bruno Haible  <bruno@clisp.org>
17006
17007         duplocale: Add support for glibc 2.3.x.
17008         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17009
17010 2009-11-22  Bruno Haible  <bruno@clisp.org>
17011
17012         vasnprintf: Tiny optimization.
17013         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17014         MacOS X.
17015
17016 2009-11-22  Bruno Haible  <bruno@clisp.org>
17017
17018         Tests for module 'duplocale'.
17019         * modules/duplocale-tests: New file.
17020         * tests/test-duplocale.c: New file.
17021
17022         New module 'duplocale'.
17023         * m4/duplocale.m4: New file.
17024         * lib/locale.in.h (duplocale): New declaration.
17025         * lib/duplocale.c: New file.
17026         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17027         gl_LOCALE_H_DEFAULTS): New macros.
17028         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17029         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17030         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17031         REPLACE_DUPLOCALE.
17032         * modules/duplocale: New file.
17033         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17034
17035 2009-11-22  Bruno Haible  <bruno@clisp.org>
17036
17037         * modules/locale-tests (configure.ac): Test for newlocale function.
17038         * tests/test-locale.c: When the system has extended locale functions,
17039         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17040
17041         locale: Make locale_t available when possible.
17042         * lib/locale.in.h: Include <xlocale.h> when it exists.
17043         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17044         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17045         * modules/locale (Depends-on): Add extensions.
17046         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17047         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17048
17049 2009-11-22  Bruno Haible  <bruno@clisp.org>
17050
17051         Add comments.
17052         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17053         invocation.
17054         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17055         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17056         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17057
17058 2009-11-22  Bruno Haible  <bruno@clisp.org>
17059
17060         error: account for the possibility of freopen (stdout).
17061         * lib/error.c: Include <unistd.h>.
17062         (flush_stdout): New function, extracted from error and error_at_line.
17063         Determine stdout's fd dynamically.
17064         (error, error_at_line): Invoke flush_stdout.
17065         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17066         * modules/error (Depends-on): Add unistd.
17067
17068 2009-11-22  Bruno Haible  <bruno@clisp.org>
17069
17070         diffseq: Add comment.
17071         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17072
17073 2009-11-22  Jim Meyering  <meyering@redhat.com>
17074
17075         c-stack: avoid defining an unused static function
17076         * lib/c-stack.c (find_stack_direction): Do not define this function
17077         when it will not be used.
17078
17079         diffseq: avoid spurious gcc warnings
17080         * lib/diffseq.h (IF_LINT2): Define.
17081         (compareseq): Use it to initialize two members of "part".
17082         This avoids two used-uninitialized warnings.
17083
17084 2009-11-21  Jim Meyering  <meyering@redhat.com>
17085
17086         c-stack: avoid "ignoring return value of `write'" warning
17087         * lib/c-stack.c: Include "ignore-value.h".
17088         (die): Explicitly ignore each write return value.
17089         * modules/c-stack (Depends-on): Add ignore-value.
17090
17091 2009-11-21  Bruno Haible  <bruno@clisp.org>
17092
17093         diffseq: reduce scope of variable 'best'.
17094         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17095         variable, earlier used for two different purposes.
17096
17097 2009-11-21  Jim Meyering  <meyering@redhat.com>
17098
17099         diffseq: remove useless assignment to "best"
17100         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17101         assignment.  At that point "best" is already guaranteed to be zero.
17102
17103 2009-11-20  Eric Blake  <ebb9@byu.net>
17104
17105         build: mention ftp redirector in release announcements
17106         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17107         values that used to come from cfg.mk; mention FTP redirect URL.
17108         * build-aux/announce-gen: Mention the mirror list.
17109         Suggested by Karl Berry.
17110
17111         nanosleep: improve port to mingw
17112         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17114         LIB_NANOSLEEP, but only when needed.
17115         * modules/select (Link): Document LIBSOCKET.
17116         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17117         enough.
17118
17119         nanosleep: work around cygwin bug
17120         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17121         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17122         bug.
17123         (getnow): Delete, not needed.
17124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17125         LIB_CLOCK_GETTIME.
17126         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17127         clock-time, gettime.
17128         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17129         bug.
17130         * modules/nanosleep-tests: New test.
17131         * tests/test-nanosleep.c: New file.
17132
17133         sleep: work around cygwin bug
17134         * lib/sleep.c (rpl_sleep): Work around the bug.
17135         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17136         (gl_PREREQ_SLEEP): Delete unused macro.
17137         * modules/sleep (Depends-on): Add verify.
17138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17139         * modules/unistd (Makefile.am): Substitute witness.
17140         * lib/unistd.in.h (sleep): Update prototype.
17141         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17142         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17143         * modules/sleep-tests (Depends-on): Check for alarm.
17144
17145 2009-11-20  Jim Meyering  <meyering@redhat.com>
17146
17147         maint.mk: improve sc_prohibit_magic_number_exit
17148         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17149         so it does not match uses like System.exit(1).
17150         Add comments showing how to correct all offenders.
17151
17152 2009-11-19  Eric Blake  <ebb9@byu.net>
17153
17154         xalloc-die-tests: add missing library
17155         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17156
17157         test-xvasprintf: silence compiler warnings
17158         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17159         empty string from gcc.
17160
17161 2009-11-19  Jim Meyering  <meyering@redhat.com>
17162
17163         xfreopen: new module, from coreutils
17164         * modules/xfreopen: New module.
17165         * lib/xfreopen.c: New file.
17166         * lib/xfreopen.h: New file.
17167         * MODULES.html.sh (File stream based Input/Output"): Add it.
17168
17169 2009-11-19  Eric Blake  <ebb9@byu.net>
17170
17171         manywarnings: depend on warnings
17172         * modules/manywarnings (Depends-on): Add warnings.
17173
17174         build: avoid compiler warnings
17175         * lib/select.c (rpl_select): Delete unused variable.
17176         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17177
17178 2009-11-18  Eric Blake  <ebb9@byu.net>
17179
17180         tests: avoid false negative with --with-packager
17181         * tests/test-version-etc.sh: Discard packager information.
17182         * tests/test-argp-version-etc-1.sh: Likewise.
17183         Reported by Mike Frysinger.
17184
17185         utimens: fix regression on Solaris
17186         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17187         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17188         can only change fd timestamps via futimesat.  Instead, use an
17189         additional witness macro to avoid BSD bug.
17190         Reported by Jim Meyering.
17191
17192 2009-11-17  Eric Blake  <ebb9@byu.net>
17193
17194         usleep: use it to simplify tests
17195         * modules/stat-time-tests (Depends-on): Add usleep.
17196         (configure.ac): Drop usleep check.
17197         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17198         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17199         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17200         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17201         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17202         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17203         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17204         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17205         Likewise.
17206         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17207         * tests/test-lchown.h (nap): Likewise.
17208         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17209         * tests/test-stat-time.c (nap): Likewise.
17210         * tests/test-utimens-common.h (nap): Update comments.
17211
17212         usleep: new module
17213         * modules/usleep: New file.
17214         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17215         * lib/usleep.c (usleep): Likewise.
17216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17217         * modules/unistd (Makefile.am): Substitute witnesses.
17218         * lib/unistd.in.h (usleep): Add declaration.
17219         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17220         * MODULES.html.sh (Date and time): Likewise.
17221         * modules/usleep-tests (Depends-on): New test.
17222         * tests/test-usleep.c: New file.
17223
17224         chown: work around OpenBSD bug
17225         * lib/chown.c (rpl_chown): Work around the bug.
17226         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17227         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17228         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17229         * modules/chown (Depends-on): Add stdbool.
17230         * modules/lchown (Depends-on): Likewise.
17231         * doc/posix-functions/chown.texi (chown): Document the bug.
17232         * doc/posix-functions/lchown.texi (lchown): Likewise.
17233         * tests/test-lchown.h (test_chown): Relax test.
17234
17235         mkstemp: avoid conflict with C++ keyword template
17236         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17237         * lib/mkostemp.c (mkostemp): Likewise.
17238         * lib/mkostemps.c (mkostemps): Likewise.
17239         * lib/mkstemp.c (mkstemp): Likewise.
17240         * lib/mkstemps.c (mkstemps): Likewise.
17241
17242         xalloc-die-tests: optimize
17243         * tests/test-xalloc-die.sh: Reduce number of processes.
17244
17245 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17246
17247         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17248         patch from ludo@gnu.org (Ludovic Courtès).
17249
17250 2009-11-17  Jim Meyering  <meyering@redhat.com>
17251
17252         version-etc: use proper license string
17253         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17254         * modules/version-etc-fsf: Likewise.
17255
17256 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17257
17258         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17259         printed to stdout.  Deal with EOL differences.
17260
17261 2009-11-17  Eric Blake  <ebb9@byu.net>
17262
17263         unsetenv: work around Solaris bug
17264         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17265         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17266         Reported by Jim Meyering.
17267
17268         vasnprintf: avoid compiler warnings
17269         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17270         variables.
17271         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17272
17273 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17274
17275         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17276         settings since xalloc-die is no longer the self test,
17277         xalloc-die.sh is.
17278
17279 2009-11-17  Jim Meyering  <meyering@redhat.com>
17280
17281         test-xalloc-die.sh: make the code agree with the commit log
17282         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17283         at the end, just in case you happen to have a test-xalloc-die
17284         program in some other PATH directory.
17285
17286         test-xalloc-die.sh: fix a portability bug
17287         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17288         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17289         Otherwise, argv[0] (as often seen in diagnostics) would be too
17290         system-dependent, sometimes with, and sometimes without the leading "./".
17291
17292         version-etc-fsf: relax license to LGPLv3+
17293         * modules/version-etc-fsf (License): Relax license.
17294
17295 2009-11-16  Eric Blake  <ebb9@byu.net>
17296
17297         xalloc-die-tests: avoid printing null pointer
17298         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17299         shell script.
17300         * tests/test-xalloc-die.c (program_name): Declare.
17301         * tests/test-xalloc-die.sh (tmpfiles): New file.
17302
17303         setenv, unsetenv: work around various bugs
17304         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17305         (setenv) [HAVE_SETENV]: Work around bugs.
17306         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17307         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17308         for bugs.
17309         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17310         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17312         * modules/stdlib (Makefile.am): Update substitutions.
17313         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17314         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17315         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17316         * modules/setenv-tests: New test.
17317         * modules/unsetenv-tests: Likewise.
17318         * tests/test-setenv.c: New file.
17319         * tests/test-unsetenv.c: Likewise.
17320
17321 2009-11-16  Jim Meyering  <meyering@redhat.com>
17322
17323         version-etc: relax license to LGPLv3+
17324         * modules/version-etc (License): Relax license.
17325
17326         better AC_REQUIRE expanded-before-required-warning avoidance
17327         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17328         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17329         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17330         which is no longer needed.
17331
17332 2009-11-16  Eric Blake  <ebb9@byu.net>
17333
17334         test-freading: clean up temporary file
17335         * tests/test-freading.c (main): Remove file on success, and use
17336         ASSERT more liberally.
17337         Reported by Jim Meyering.
17338
17339 2009-11-16  Jim Meyering  <meyering@redhat.com>
17340
17341         avoid new AC_REQUIRE expanded-before-required warnings
17342         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
17343         merely using it.
17344         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
17345         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
17346
17347 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17348
17349         * tests/test-xalloc-die.c: New file.
17350         * modules/xalloc-die-tests: New file.
17351         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
17352         XFAIL_TESTS so it can be appended by modules.
17353
17354 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17355
17356         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
17357         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
17358
17359 2009-11-14  Eric Blake  <ebb9@byu.net>
17360
17361         fnmatch: avoid compiler warning
17362         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
17363         to silence compiler warning about mismatch signedness in ?:.
17364         Reported by Robert Millan.
17365
17366         intprops: add double-inclusion guard
17367         * lib/intprops.h: Allow idempotent includes.
17368         Suggested by Bruce Korb.
17369
17370         openat: detect Solaris fchownat bug
17371         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17372         penalizing glibc chownat when only lchownat is broken.
17373         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17374         trailing slash bugs.
17375         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17376         * modules/openat-tests (Files): Include more files.
17377         (Depends-on): Add mgetgroups, sleep, stat-time.
17378         (configure.ac): Add additional checks.
17379         (Makefile.am): Build new test.
17380         * tests/test-fchownat.c: New file.
17381
17382         lchown: detect Solaris and FreeBSD bug
17383         * lib/lchown.c (rpl_lchown): Work around bug.
17384         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17386         * modules/unistd (Makefile.am): Populate it.
17387         * lib/unistd.in.h (lchown): Update declaration.
17388         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17389         * modules/lchown-tests: New file.
17390         * tests/test-lchown.h (test_lchown): Likewise.
17391         * tests/test-lchown.c (main): Likewise.
17392
17393         chown: detect Solaris and FreeBSD bug
17394         * lib/chown.c (rpl_chown): Work around bug.
17395         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17396         (gl_PREREQ_CHOWN): Delete.
17397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17398         * modules/unistd (Makefile.am): Populate it.
17399         * lib/unistd.in.h (chown): Update declaration.
17400         * lib/lchown.c (chown): Update client.
17401         * modules/lchown (Depends-on): Add lstat.
17402         * doc/posix-functions/chown.texi (chown): Document the bug.
17403         * doc/posix-functions/getgroups.texi (getgroups): Document
17404         getgroups pitfall.
17405         * modules/chown-tests: New file.
17406         * tests/test-chown.h (test_chown): Likewise.
17407         * tests/test-chown.c (main): Likewise.
17408
17409 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17410
17411         gnulib-tool: correctly detect absence of m4 directories
17412         * gnulib-tool: Avoid extra newline on data passed to wc -l.
17413
17414 2009-11-14  Jim Meyering  <meyering@redhat.com>
17415
17416         maint.mk: Prohibit inclusion of "xalloc.h" without use.
17417         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17418
17419 2009-11-14  John W. Eaton  <jwe@gnu.org>
17420
17421         strftime.h: wrap funtion declaration in extern "C" block
17422         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
17423
17424 2009-11-13  Eric Blake  <ebb9@byu.net>
17425
17426         getgroups: avoid compiler warning
17427         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
17428
17429         getgroups: work around FreeBSD bug
17430         * lib/getgroups.c (rpl_getgroups): Work around the bug.
17431         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
17432         * doc/posix-functions/getgroups.texi (getgroups): Document it.
17433         * tests/test-getgroups.c (main): Fix buffer overrun.
17434
17435         getgroups: avoid compilation failure
17436         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
17437         * modules/getgroups (Depends-on): Add stdint.
17438
17439 2009-11-13  Jim Meyering  <meyering@redhat.com>
17440
17441         test-getgroups: avoid compilation failure
17442         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
17443
17444 2009-11-13  Eric Blake  <ebb9@byu.net>
17445
17446         mgetgroups: new module, taken from coreutils
17447         * modules/mgetgroups: New file.
17448         * lib/mgetgroups.h: Likewise.
17449         * lib/mgetgroups.c (mgetgroups): Likewise.
17450         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
17451         * MODULES.html.sh (Users and groups): Mention it.
17452
17453         getgroups: don't expose GETGROUPS_T to user
17454         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
17455         an element at a time if GETGROUPS_T is wrong size.
17456         * lib/getugroups.h (getugroups): Change signature.
17457         * lib/unistd.in.h (getgroups): Likewise.
17458         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
17459         signature needs fixing.
17460         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
17461         AC_TYPE_GETGROUPS.
17462         * modules/group-member (Depends-on): Add getgroups.
17463         * lib/group-member.c (group_info, get_group_info): Use gid_t.
17464         (group_member): Rely on getgroups replacement.
17465         * lib/getugroups.c (getugroups): Use gid_t.
17466         * tests/test-getgroups.c (main): Likewise.
17467         * NEWS: Mention the signature change.
17468         * doc/posix-functions/getgroups.texi (getgroups): Mention the
17469         problem with signature.
17470         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
17471         GETGROUPS_T is still useful for setgroups.
17472
17473         getgroups, getugroups: provide stubs for mingw
17474         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
17475         * lib/getugroups.c (getugroups): Likewise.
17476         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
17477         function.  Modernize replacement scheme.
17478         (gl_PREREQ_GETGROUPS): Delete.
17479         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
17480         * modules/getgroups (configure.ac): Declare witness.
17481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17482         * modules/unistd (Depends-on): Substitute witness.
17483         * lib/unistd.in.h (getgroups): Declare replacement.
17484
17485         getgroups: avoid calling exit
17486         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
17487         drop xalloc.
17488         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
17489         dependencies.
17490         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
17491         exiting, in the rare case of malloc failure.
17492
17493         getgroups: fix logic error
17494         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
17495         has more than 20 groups.
17496         * modules/getgroups-tests: New test.
17497         * tests/test-getgroups.c: New file.
17498
17499 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17500
17501         * tests/test-base64.c: Improve.
17502
17503 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17504
17505         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
17506         Blake <ebb9@byu.net>.
17507
17508 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17509
17510         * tests/test-xvasprintf.c: Add %s%s related checks.
17511
17512 2009-11-12  Eric Blake  <ebb9@byu.net>
17513
17514         version-etc: match standards.texi style
17515         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
17516         and use <> only for URLs.
17517
17518 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
17519
17520         fts: do not fail on a submount during traversal
17521         * lib/fts.c (fts_build): Read the stat info again after opening
17522         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
17523         Original report at http://bugzilla.redhat.com/501848.
17524
17525 2009-11-12  Jim Meyering  <meyering@redhat.com>
17526
17527         bootstrap: sync from coreutils
17528         * build-aux/bootstrap (bootstrap_epilogue): New function.
17529         Use git_modules_config in one more place.  This make bootstrap's
17530         --gnulib-srcdir option more useful for testing.
17531
17532         bootstrap: generalize autoheader check
17533         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
17534         AC_CONFIG_HEADERS.
17535
17536 2009-11-11  Eric Blake  <ebb9@byu.net>
17537
17538         mkfifoat: use new modules for Solaris and BSD bugs
17539         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
17540         * lib/mkfifoat.c (mknodat): Split...
17541         * lib/mknodat.c (mknodat): ...into new file.
17542         * modules/mkfifoat (Files): Ship new file.
17543         (Depends-on): Add mkfifo, mknod.
17544         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
17545         (Depends-on): Add symlink.
17546         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
17547         redundant with test_mkfifo.h.
17548         (do_mkfifoat, do_mknodat): New helpers.
17549
17550         mknod: new module
17551         * modules/mknod: New file.
17552         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17553         * lib/mknod.c (mknod): Likewise.
17554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17555         defaults.
17556         * modules/sys_stat (Makefile.am): Substitute them.
17557         * lib/sys_stat.in.h (mknod): Declare replacement.
17558         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17559         Document it.
17560         * doc/posix-functions/mknod.texi (mknod): Likewise.
17561         * modules/mknod-tests: New test.
17562         * tests/test-mknod.c: Likewise.
17563
17564         mkfifo: new module
17565         * modules/mkfifo: New file.
17566         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17567         * lib/mkfifo.c (mkfifo): Likewise.
17568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17569         defaults.
17570         * modules/sys_stat (Makefile.am): Substitute them.
17571         * lib/sys_stat.in.h (mkfifo): Declare replacement.
17572         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17573         Document it.
17574         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
17575         * modules/mkfifo-tests: New test.
17576         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
17577         from test-mkfifoat.c.
17578         * tests/test-mkfifo.c: New file.
17579
17580         readlink: detect FreeBSD bug
17581         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
17582         slash on symlink.
17583         * doc/posix-functions/readlink.texi (readlink): Document the bug.
17584         * tests/test-readlink.h (test_readlink): Enhance test.
17585
17586         symlink: detect FreeBSD bug
17587         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
17588         slash on symlink.
17589         * doc/posix-functions/symlink.texi (symlink): Document the bug.
17590         * tests/test-symlink.h (test_symlink): Enhance test.
17591
17592 2009-11-10  Eric Blake  <ebb9@byu.net>
17593
17594         link: detect FreeBSD bug
17595         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
17596         symlink.
17597         * doc/posix-functions/link.texi (link): Document the bug.
17598         * tests/test-link.h (test_link): Enhance test.
17599         * tests/test-linkat.c (main): Update caller.
17600
17601         unlink, remove: detect FreeBSD bug
17602         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
17603         slash on symlink.
17604         * doc/posix-functions/unlink.texi (unlink): Document the bug.
17605         * doc/posix-functions/remove.texi (remove): Likewise.
17606         * tests/test-unlink.h (test_unlink): Enhance test.
17607         * tests/test-remove.c (main): Likewise.
17608
17609 2009-11-09  Eric Blake  <ebb9@byu.net>
17610
17611         rename: detect FreeBSD bug
17612         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
17613         slash on symlink.
17614         * modules/renameat-tests (Depends-on): Add filenamecat.
17615         * tests/test-rename.h (test_rename): Allow one more errno.
17616         * tests/test-renameat.c (main): Likewise.
17617         * doc/posix-functions/rename.texi (rename): Document the bug.
17618
17619         open: detect FreeBSD bug
17620         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
17621         symlink.
17622         * doc/posix-functions/open.texi (open): Document the bug.
17623         * doc/posix-functions/utimes.texi (utimes): Likewise.
17624         * tests/test-open.h (test_open): Add parameters, and test symlink
17625         handling.
17626         * tests/test-open.c (main): Adjust caller.
17627         * tests/test-fcntl-safer.c (main): Likewise.
17628         * modules/open-tests (Depends-on): Add stdbool, symlink.
17629         * modules/fcntl-safer-tests (Depends-on): Likewise.
17630         * tests/test-openat.c (main): Add test-open tests.
17631
17632         stat: detect FreeBSD bug
17633         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
17634         symlink.
17635         * doc/posix-functions/stat.texi (stat): Document the bug.
17636         * tests/test-stat.h (test_stat_func): Add argument.
17637         * tests/test-stat.c (main): Adjust caller.
17638         * tests/test-fstatat.c (main): Likewise.
17639         * modules/stat-tests (Depends-on): Add stdbool, symlink.
17640         Reported by Jim Meyering.
17641
17642 2009-11-09  James Youngman  <jay@gnu.org>
17643
17644         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
17645         * lib/strftime.c: Correct placement of #include "ignore-value.h".
17646
17647 2009-11-08  Jim Meyering  <meyering@redhat.com>
17648
17649         utimens: remove invalid futimesat call
17650         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
17651         It used the file descriptor of the target file as the DIR_FD
17652         parameter and NULL as the file name.  That caused failure with
17653         errno == EFAULT on FreeBSD-8.0-rc2
17654
17655 2009-11-07  Eric Blake  <ebb9@byu.net>
17656
17657         fflush, freadseek: use fseeko, not fseek
17658         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17659         (clear_ungetc_buffer): Avoid potential problems on large files.
17660         * lib/freadseek.c (freadseek): Likewise.
17661         * modules/freadseek (Depends-on): Add fseeko.
17662         * modules/fseek (configure.ac): Set a witness.
17663         * tests/test-fflush.c (main): Use fseeko.
17664         * tests/test-fpurge.c (fseek): Disable link warning.
17665         * tests/test-freadable.c (fseek): Likewise.
17666         * tests/test-freading.c (fseek): Likewise.
17667         * tests/test-fseeko.c (fseek): Likewise.
17668         * tests/test-ftell.c (fseek): Likewise.
17669         * tests/test-ftello.c (fseek): Likewise.
17670         * tests/test-fwritable.c (fseek): Likewise.
17671         * tests/test-fwriting.c (fseek): Likewise.
17672
17673 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17674
17675         * modules/memchr (Depends-on): Drop getpagesize dependency.
17676
17677 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17678
17679         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
17680         Reported by Ludovic Courtès.
17681         * build-aux/pmccabe2html: Improve example usage.
17682         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
17683
17684 2009-11-06  Jim Meyering  <meyering@redhat.com>
17685
17686         do-release-commit-and-tag: New module.
17687         Automate the release-commit and tag process.
17688         * build-aux/do-release-commit-and-tag: New script, from coreutils.
17689         * modules/do-release-commit-and-tag: New file.
17690         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17691
17692 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17693
17694         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
17695         because test-select.c uses inet_pton.
17696
17697 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17698
17699         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
17700         GETADDRINFO_LIB.  Bump serial number.
17701         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
17702         Suggested by Eric Blake <ebb9@byu.net>.
17703
17704 2009-11-05  Eric Blake  <ebb9@byu.net>
17705
17706         strtod: detect darwin bug
17707         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
17708         Reported by Leo Davis.
17709
17710         freopen-safer: new module
17711         * modules/freopen-safer: New module.
17712         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
17713         * lib/freopen-safer.c (freopen_safer): New file.
17714         * lib/stdio-safer.h (freopen_safer): New declaration.
17715         * lib/stdio--.h (freopen): New override.
17716         * MODULES.html.sh (File stream based Input/Output): Mention it.
17717         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
17718         freopen-safer module.
17719         * doc/posix-functions/stderr.texi (stderr): Likewise.
17720         * doc/posix-functions/stdin.texi (stdin): Likewise.
17721         * doc/posix-functions/stdout.texi (stdout): Likewise.
17722         * modules/freopen-safer-tests: New test.
17723         * tests/test-reopen-safer.c: New file.
17724
17725 2009-11-05  Jim Meyering  <meyering@redhat.com>
17726
17727         maint.mk: Prohibit inclusion of "close-stream.h" without use.
17728         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17729
17730 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17731
17732         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
17733
17734 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17735
17736         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
17737
17738 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17739
17740         Fix link error.
17741         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17742         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17743
17744 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17745
17746         * tests/test-func.c: Also test value of __func__.
17747
17748 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17749
17750         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
17751         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
17752
17753 2009-11-05  Bruno Haible  <bruno@clisp.org>
17754
17755         Fix link error.
17756         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17757         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17758         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
17759
17760 2009-11-05  Bruno Haible  <bruno@clisp.org>
17761
17762         Tests for module 'inet_pton'.
17763         * modules/inet_pton-tests: New file.
17764         * tests/test-inet_pton.c: New file.
17765
17766 2009-11-05  Bruno Haible  <bruno@clisp.org>
17767
17768         Tests for module 'inet_ntop'.
17769         * modules/inet_ntop-tests: New file.
17770         * tests/test-inet_ntop.c: New file.
17771
17772 2009-11-04  Eric Blake  <ebb9@byu.net>
17773
17774         stdlib-safer: wrap all mkstemp variants
17775         * modules/mkostemp (configure.ac): Set witness.
17776         * modules/mkostemps (configure.ac): Likewise.
17777         * modules/mkstemps (configure.ac): Likewise.
17778         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
17779         (mkstemps_safer): Wrap more functions.
17780         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
17781         wrapping.
17782         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
17783         (mkstemps_safer): Implement the wrappers.
17784
17785         mkstemps, mkostemps: new modules
17786         * modules/mkostemps: New module.
17787         * modules/mkstemps: Likewise.
17788         * lib/mkostemps.c (mkostemps): New file.
17789         * lib/mkstemps.c (mkstemps): Likewise.
17790         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
17791         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
17792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
17793         * modules/stdlib (Makefile.am): Substitute them.
17794         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
17795         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
17796         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17797         * doc/gnulib.texi (Glibc stdlib.h): Include them.
17798         * MODULES.html.sh (File system functions): Mention them.
17799
17800         tempname: resync from glibc
17801         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
17802         same values for __GT_FILE as glibc.  Abort even when assertions
17803         are disabled.
17804         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
17805         match its value otherwise.  Allow idempotent inclusion.
17806         * lib/mkdtemp.c (mkdtemp): Adjust caller.
17807         * lib/mkostemp.c (mkostemp): Likewise.
17808         * lib/mkstemp.c (mkstemp): Likewise.
17809         * lib/tmpfile.c (tmpfile): Likewise.
17810         * NEWS: Document this.
17811
17812         utimens: fix use of futimens on older Linux
17813         * lib/utimens.c (fdutimens): Use updated, rather than original,
17814         timespec to avoid bug in older Linux kernel.
17815         Reported by Simon Josefsson.
17816
17817 2009-11-04  Bruno Haible  <bruno@clisp.org>
17818
17819         Make num_processors more flexible and consistent.
17820         * lib/nproc.h (enum nproc_query): New type.
17821         (num_processors): Add a 'query' argument.
17822         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
17823         (num_processors): Add a 'query' argument. Test the value of the
17824         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
17825         mingw, count the number of CPUs available for the current process.
17826         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
17827         Check for sched_getaffinity and sched_getaffinity_np.
17828         * modules/nproc (Depends-on): Add c-ctype, extensions.
17829         * NEWS: Mention the change.
17830
17831 2009-11-03  Bruno Haible  <bruno@clisp.org>
17832
17833         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
17834
17835 2009-11-03  Jim Meyering  <meyering@redhat.com>
17836
17837         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
17838         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
17839         if it is defined.
17840
17841 2009-11-02  Eric Blake  <ebb9@byu.net>
17842
17843         mktime, timegm: share common declaration
17844         * lib/mktime-internal.h: New file.
17845         * lib/mktime.c: Use it rather than open-coding a declaration.
17846         * lib/timegm.c: Likewise.
17847         * modules/mktime (Files): Ship it.
17848         * modules/timegm (Files): Likewise.
17849         Suggested by Bruno Haible.
17850
17851         test-update-copyright: update test to match script changes
17852         * tests/test-update-copyright.sh: Avoid hard-coding perl
17853         location.  Don't update *.bak created by earlier runs.
17854
17855 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17856             Simon Josefsson  <simon@josefsson.org>
17857             Bruno Haible  <bruno@clisp.org>
17858
17859         Fix link error on Solaris 8.
17860         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
17861         also in libnsl. Define also INET_PTON_LIB.
17862         * modules/inet_pton (Link): New section.
17863
17864 2009-11-02  Simon Josefsson  <simon@josefsson.org>
17865             Bruno Haible  <bruno@clisp.org>
17866
17867         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
17868         * modules/inet_ntop (Link): New section.
17869         Reported by Boyan Kasarov <bkasarov@gmail.com>.
17870
17871 2009-11-02  Eric Blake  <ebb9@byu.net>
17872
17873         maint: avoid compiler warnings in m4 macros
17874         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
17875         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
17876
17877 2009-11-02  Simon Josefsson  <simon@josefsson.org>
17878
17879         * m4/pmccabe2html.m4: Remove file.
17880         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
17881         function.  Change maintainer.
17882         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
17883         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
17884         Courtès).
17885
17886 2009-10-31  Eric Blake  <ebb9@byu.net>
17887
17888         fseeko: fix m4 regression
17889         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
17890         regression from 2009-10-27.
17891         Reported by Ralf Wildenhues.
17892
17893 2009-10-31  Jim Meyering  <meyering@redhat.com>
17894
17895         inttostr: aesthetics and improved (compile-time) safety
17896         Define inttype_is_signed rather than inttype_is_unsigned,
17897         since the sole use is via "#if inttype_is_signed".
17898         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
17899         inttype_is_unsigned.
17900         * lib/offtostr.c (inttype_is_signed): Likewise.
17901         * lib/uinttostr.c (inttype_is_signed): Likewise.
17902         * lib/umaxtostr.c (inttype_is_signed): Likewise.
17903         * lib/inttostr.c (inttostr): Use verify to cross-check the
17904         inttype_is_signed value and the signedness of the actual type.
17905         * modules/inttostr (Depends-on): Add verify.
17906
17907 2009-10-30  Eric Blake  <ebb9@byu.net>
17908
17909         build: avoid compiler warnings
17910         * lib/fchmodat.c (lchmod): Mark unused variables.
17911         * lib/getopt.c (_getopt_initialize): Likewise.
17912         * lib/mktime.c (__mktime_internal): Provide prototype.
17913         * lib/inttostr.c (inttostr): Avoid compiler warning even with
17914         older gcc that do not understand #pragma GCC diagnostic.
17915         * lib/uinttostr.c (inttype_is_unsigned): Define.
17916         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
17917
17918 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
17919
17920         stat: fix compilation on AIX
17921         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
17922         only see struct stat64.
17923
17924 2009-10-30  Eric Blake  <ebb9@byu.net>
17925
17926         exclude: make more robust
17927         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
17928         rather than masking a coding bug.
17929         Suggested by Bruno Haible.
17930
17931 2009-10-30  Jim Meyering  <meyering@redhat.com>
17932
17933         perl scripts: remove #!/usr/bin/perl in favor of more portable...
17934         Rather than putting #!/usr/bin/perl on the first line,
17935         start with a variant of what's recommended by "man perlrun" that
17936         invokes the first "perl" program from your shell's search path.
17937         * build-aux/gitlog-to-changelog: Replace #!... as above.
17938         Add a "Local Variables" perl mode setting.
17939         Prompted by a patch from Ludovic Courtès.
17940         Improved by Eric Blake.
17941         * build-aux/useless-if-before-free: Likewise.
17942         * build-aux/announce-gen: Likewise.
17943         * build-aux/update-copyright: Likewise.
17944
17945 2009-10-29  Eric Blake  <ebb9@byu.net>
17946
17947         filenamecat-lgpl: adjust clients
17948         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
17949         filenamecat.
17950         * modules/renameat (Depends-on): Likewise.
17951
17952         filenamecat: split into filenamecat-lgpl
17953         * modules/filenamecat-lgpl: New module.
17954         * modules/filenamecat (Files): Move library-safe files into
17955         filenamecat-lgpl.
17956         (Depends-on): Add filenamecat-lgpl.
17957         (configure.ac): Declare witness.
17958         * lib/filenamecat.h (file_name_concat): Only declare when using
17959         GPL module.
17960         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
17961         Move...
17962         * lib/filenamecat-lgpl.c: ...into new file.
17963         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
17964         (gl_FILE_NAME_CONCAT): Use it.
17965         * MODULES.html.sh (File system functions): Mention new module.
17966
17967         argp: avoid memory leak
17968         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
17969         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
17970         base_name, since the latter malloc()s and can call exit().
17971         Leak introduced 2006-07-03.
17972
17973         dirname-lgpl: adjust clients that don't need full dirname
17974         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
17975         * modules/filenamecat (Depends-on): Likewise.
17976         * modules/linkat (Depends-on): Likewise.
17977         * modules/mkancesdirs (Depends-on): Likewise.
17978         * modules/mkdir (Depends-on): Likewise.
17979         * modules/openat (Depends-on): Likewise.
17980         * modules/savewd (Depends-on): Likewise.
17981         * modules/rename (Depends-on): Likewise.
17982         (License): Relax license.
17983         * modules/mkdir-tests (Depends-on): Drop progname.
17984         (Makefile.am): Delete unneeded LDADD.
17985         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
17986
17987         dirname: split into dirname-lgpl
17988         * modules/dirname-lgpl: New module.
17989         * modules/dirname (Files): Move library-safe files into
17990         dirname-lgpl.
17991         (Depends-on): Add dirname-lgpl.
17992         (configure.ac): Declare witness.
17993         * modules/double-slash-root (License): Relax license.
17994         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
17995         module.
17996         * lib/dirname.c (dir_len, mdir_name): Move...
17997         * lib/dirname-lgpl.c: ...into new file.
17998         * lib/basename.c (last_component, base_len): Move...
17999         * lib/basename-lgpl.c: ...into new file.
18000         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18001         (gl_DIRNAME): Use it.
18002         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18003         Mention new module.
18004         * modules/dirname-tests (Depends-on): Add progname.
18005         * tests/test-dirname.c (program_name): Delete.
18006
18007         mkdir: make safe for libraries
18008         * modules/mkdir (Depends-on): Drop xalloc.
18009         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18010         exit.
18011
18012         tests: avoid some compiler warnings
18013         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18014         literals.
18015         * tests/test-memchr.c (main): Avoid type mismatch.
18016         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18017         * tests/test-base64.c (main): Likewise.
18018         * tests/test-getdelim.c (main): Likewise.
18019         * tests/test-gethostname.c (main): Likewise.
18020         * tests/test-getline.c (main): Likewise.
18021         * tests/test-netinet_in.c (main): Likewise.
18022         * tests/test-select.c (open_server_socket, main): Likewise.
18023         * tests/test-select-stdin.c (main): Likewise.
18024         * tests/test-sockets.c (main): Likewise.
18025         * tests/test-strsignal.c (main): Likewise.
18026         * tests/test-sys_select.c (main): Likewise.
18027         * tests/test-sys_socket.c (main): Likewise.
18028         * tests/test-u64.c (main): Likewise.
18029         * tests/test-xfprintf-posix.c (main): Likewise.
18030         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18031
18032         sockets: avoid compiler warning
18033         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18034
18035         maint: detect usage(1) and other suspicious exits
18036         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18037
18038 2009-10-29  Jim Meyering  <meyering@redhat.com>
18039
18040         timespec: long-to-int truncation could make timespec_cmp malfunction
18041         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18042         a multiple of 2^32 nanoseconds as no difference.
18043
18044 2009-10-28  Jim Meyering  <meyering@redhat.com>
18045
18046         fprintftime: wrap macro code argument in "do {...} while(0)"
18047         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18048         cpy macro must be a statement that can be followed by a semicolon.
18049         Now that the else clause contains a comment and is hence longer
18050         than one line, I require curly braces.  That in turn requires
18051         that we wrap this code block in the standard do...while(0).
18052
18053         fprintftime: remove stray semicolon from previous change
18054         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18055
18056         fprintftime: avoid a warning about ignored fwrite return value
18057         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18058         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18059         that is unsafe.
18060         * modules/fprintftime (Depends-on): Add ignore-value.
18061
18062         exclude: avoid an unwarranted warning
18063         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18064
18065 2009-10-27  Eric Blake  <ebb9@byu.net>
18066
18067         fseek: avoid compilation failure when fflush is replaced
18068         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18069         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18070         module is in use.
18071         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18072         module is not in use; since REPLACE_FSEEK worked otherwise.
18073         (GNULIB_FTELLO): Likewise for ftell.
18074         Reported by Ian Beckwith and others.
18075
18076 2009-10-27  Bruno Haible  <bruno@clisp.org>
18077
18078         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18079         Reported by Jim Meyering.
18080
18081 2009-10-27  Jim Meyering  <jim@meyering.net>
18082             Bruno Haible  <bruno@clisp.org>
18083
18084         Avoid warning despite dropping the return value of fwrite.
18085         * lib/unicodeio.c: Include ignore-value.h.
18086         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18087         * modules/unicodeio (Depends-on): Add ignore-value.
18088
18089 2009-10-26  Eric Blake  <ebb9@byu.net>
18090
18091         areadlinkat: fix fallback path
18092         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18093         pointer and zero.
18094
18095 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18096
18097         Use a better IO block size for modern systems
18098         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18099         * lib/md2.c: Likewise.
18100         * lib/md4.c: Likewise.
18101         * lib/md5.c: Likewise.
18102         * lib/sha1.c: Likewise.
18103         * lib/sha256.c: Likewise.
18104         * lib/sha512.c: Likewise.
18105
18106 2009-10-22  Eric Blake  <ebb9@byu.net>
18107
18108         tests: avoid several compiler warnings
18109         * tests/test-getcwd.c (main): Avoid buffer underflow.
18110         * tests/test-getdate.c (main): String literals are not safe with
18111         putenv, so use setenv.  Declare unused argument.
18112         * modules/getdate-tests (Depends-on): Add setenv.
18113         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18114         problems with string literals in char *.
18115         * tests/test-hash.c (main): Avoid shadowing declaration.
18116         (insert_new): Treat string literals as char const *.
18117         * tests/test-getopt.h (test_getopt): Likewise.
18118         (getopt_loop): Alter types to minimize casting elsewhere.
18119         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18120         (test_getopt_long_posix): Likewise.
18121         (do_getopt_long): Add wrapper to minimize casting.
18122         * tests/test-atexit.c (clear_temp_file): Use void.
18123         * tests/test-areadlink-with-size.c (main): Declare unused
18124         arguments.
18125         * tests/test-areadlink.c (main): Likewise.
18126         * tests/test-areadlinkat-with-size.c (main): Likewise.
18127         * tests/test-areadlinkat.c (main): Likewise.
18128         * tests/test-canonicalize-lgpl.c (main): Likewise.
18129         * tests/test-canonicalize.c (main): Likewise.
18130         * tests/test-dirent-safer.c (main): Likewise.
18131         * tests/test-dirname.c (main): Likewise.
18132         * tests/test-dup2.c (main): Likewise.
18133         * tests/test-fchdir.c (main): Likewise.
18134         * tests/test-fcntl-h.c (main): Likewise.
18135         * tests/test-fcntl-safer.c (main): Likewise.
18136         * tests/test-fdopendir.c (main): Likewise.
18137         * tests/test-fdutimensat.c (main): Likewise.
18138         * tests/test-fflush.c (main): Likewise.
18139         * tests/test-filenamecat.c (main): Likewise.
18140         * tests/test-filevercmp.c (main): Likewise.
18141         * tests/test-fopen-safer.c (main): Likewise.
18142         * tests/test-fopen.c (main): Likewise.
18143         * tests/test-fpending.c (main): Likewise.
18144         * tests/test-fpurge.c (main): Likewise.
18145         * tests/test-freading.c (main): Likewise.
18146         * tests/test-fstatat.c (main): Likewise.
18147         * tests/test-fsync.c (main): Likewise.
18148         * tests/test-futimens.c (main): Likewise.
18149         * tests/test-getndelim2.c (main): Likewise.
18150         * tests/test-gettimeofday.c (main): Likewise.
18151         * tests/test-getopt.c (main): Likewise.
18152         * tests/test-i-ring.c (main): Likewise.
18153         * tests/test-inttypes.c (main): Likewise.
18154         * tests/test-link.c (main): Likewise.
18155         * tests/test-lstat.c (main): Likewise.
18156         * tests/test-math.c (main): Likewise.
18157         * tests/test-md5.c (main): Likewise.
18158         * tests/test-memchr2.c (main): Likewise.
18159         * tests/test-memrchr.c (main): Likewise.
18160         * tests/test-mkdir.c (main): Likewise.
18161         * tests/test-mkdirat.c (main): Likewise.
18162         * tests/test-mkfifoat.c (main): Likewise.
18163         * tests/test-open.c (main): Likewise.
18164         * tests/test-openat-safer.c (main): Likewise.
18165         * tests/test-openat.c (main): Likewise.
18166         * tests/test-quotearg.c (main): Likewise.
18167         * tests/test-rawmemchr.c (main): Likewise.
18168         * tests/test-readlink.c (main): Likewise.
18169         * tests/test-remove.c (main): Likewise.
18170         * tests/test-rename.c (main): Likewise.
18171         * tests/test-renameat.c (main): Likewise.
18172         * tests/test-rmdir.c (main): Likewise.
18173         * tests/test-sha1.c (main): Likewise.
18174         * tests/test-signal.c (main): Likewise.
18175         * tests/test-sigaction.c (main): Likewise.
18176         * tests/test-stat.c (main): Likewise.
18177         * tests/test-stat-time.c (main): Likewise.
18178         * tests/test-stddef.c (main): Likewise.
18179         * tests/test-stdint.c (main): Likewise.
18180         * tests/test-stdio.c (main): Likewise.
18181         * tests/test-stdlib.c (main): Likewise.
18182         * tests/test-strchrnul.c (main): Likewise.
18183         * tests/test-strerror.c (main): Likewise.
18184         * tests/test-string.c (main): Likewise.
18185         * tests/test-strtod.c (main): Likewise.
18186         * tests/test-strverscmp.c (main): Likewise.
18187         * tests/test-symlink.c (main): Likewise.
18188         * tests/test-symlinkat.c (main): Likewise.
18189         * tests/test-sys_stat.c (main): Likewise.
18190         * tests/test-sys_time.c (main): Likewise.
18191         * tests/test-time.c (main): Likewise.
18192         * tests/test-unistd.c (main): Likewise.
18193         * tests/test-unlink.c (main): Likewise.
18194         * tests/test-unlinkat.c (main): Likewise.
18195         * tests/test-utimens.c (main): Likewise.
18196         * tests/test-utimensat.c (main): Likewise.
18197         * tests/test-version-etc.c (main): Likewise.
18198         * tests/test-wchar.c (main): Likewise.
18199         * tests/test-wctype.c (main): Likewise.
18200         * tests/test-xprintf-posix.c (main): Likewise.
18201         * tests/test-posixtm.c (main): Likewise.
18202         (STREQ): Delete unused macro.
18203         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18204         shadowed variables.
18205         * tests/test-memchr.c (main): Likewise.
18206
18207 2009-10-21  Eric Blake  <ebb9@byu.net>
18208
18209         areadlinkat: avoid failure on older glibc
18210         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18211         rather than mis-comparing 0 against FUNC_RESULT of char*.
18212
18213 2009-10-21  Bruno Haible  <bruno@clisp.org>
18214
18215         * modules/stpncpy (License): Relicense under LGPLv2+.
18216         Reported by David Lutterkort <lutter@redhat.com>.
18217
18218 2009-10-20  Eric Blake  <ebb9@byu.net>
18219
18220         utimensat: work around Solaris 9 bug
18221         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18222         has trailing slash bugs.
18223         * tests/test-lutimens.h (test_lutimens): Enhance test.
18224         * tests/test-utimens.h (test_utimens): Likewise.
18225         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18226         * doc/posix-functions/utimes.texi (utimes): Likewise.
18227         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18228         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18229         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18230         * doc/posix-functions/futimens.texi (futimens): Likewise.
18231
18232         fdutimensat: new module
18233         * modules/fdutimensat: New file.
18234         * lib/fdutimensat.c (fdutimensat): Likewise.
18235         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18236         * MODULES.html.sh (File system functions): Mention module.
18237         * modules/fdutimensat-tests: New test.
18238         * tests/test-fdutimensat.c: Likewise.
18239
18240         doc: regenerate INSTALL
18241         * doc/INSTALL: Reflect recent autoconf update.
18242         * doc/INSTALL.ISO: Likewise.
18243         * doc/INSTALL.UTF-8: Likewise.
18244
18245 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18246
18247         acl: warn if ACL support is not detected
18248         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18249
18250 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18251
18252         * lib/nproc.h: Add extern "C" block for C++.
18253
18254 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18255             Bruno Haible  <bruno@clisp.org>
18256
18257         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18258         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18259         * doc/posix-functions/isalpha.texi: Likewise.
18260         * doc/posix-functions/isblank.texi: Likewise.
18261         * doc/posix-functions/iscntrl.texi: Likewise.
18262         * doc/posix-functions/isdigit.texi: Likewise.
18263         * doc/posix-functions/isgraph.texi: Likewise.
18264         * doc/posix-functions/islower.texi: Likewise.
18265         * doc/posix-functions/isprint.texi: Likewise.
18266         * doc/posix-functions/ispunct.texi: Likewise.
18267         * doc/posix-functions/isspace.texi: Likewise.
18268         * doc/posix-functions/isupper.texi: Likewise.
18269         * doc/posix-functions/isxdigit.texi: Likewise.
18270
18271 2009-10-18  Bruno Haible  <bruno@clisp.org>
18272
18273         Tests for module 'isblank'.
18274         * modules/isblank-tests: New file.
18275         * tests/test-isblank.c: New file.
18276
18277         New module 'isblank'.
18278         * lib/isblank.c: New file.
18279         * m4/isblank.m4: New file.
18280         * modules/isblank: New file.
18281         * doc/posix-functions/isblank.texi: Mention the new module.
18282
18283 2009-10-18  Bruno Haible  <bruno@clisp.org>
18284
18285         New module 'ctype'.
18286         * lib/ctype.in.h: New file.
18287         * m4/ctype.m4: New file.
18288         * modules/ctype: New file.
18289         * doc/posix-headers/ctype.texi: Mention the new module.
18290
18291 2009-10-18  Jim Meyering  <meyering@redhat.com>
18292
18293         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18294         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18295         right after its initialization, rather than farther down.
18296         Keeping these in close proximity makes it easier to ensure
18297         that each such variable is initialized.  E.g.,
18298
18299             LIB_CLOCK_GETTIME=
18300             AC_SUBST([LIB_CLOCK_GETTIME])
18301
18302         This change also increments these serial numbers.
18303         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18304         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18306
18307 2009-10-18  Bruno Haible  <bruno@clisp.org>
18308
18309         Don't let environment variables perturb build.
18310         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18311         (gl_PREREQ_GETHRXTIME): ... not here.
18312
18313 2009-10-18  Bruno Haible  <bruno@clisp.org>
18314
18315         Avoid symlink attack in localcharset module.
18316         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18317         (O_NOFOLLOW): Define fallback.
18318         (get_charset_aliases): Don't open the file if it is a symbolic link.
18319         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18320         gl_FCNTL_H.
18321         (gl_FCNTL_H): Require it.
18322         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18323         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18324         Reported by Fergal Glynn <fglynn@veracode.com>.
18325
18326 2009-10-18  Bruno Haible  <bruno@clisp.org>
18327
18328         Implement nproc for mingw.
18329         * lib/nproc.c: Include <windows.h>
18330         (num_processors): On native Windows platforms, try GetSystemInfo.
18331
18332 2009-10-18  Bruno Haible  <bruno@clisp.org>
18333
18334         Implement nproc for IRIX.
18335         * lib/nproc.c: Include <sys/sysmp.h>.
18336         (num_processors): On IRIX systems, try sysmp.
18337         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18338
18339 2009-10-18  Bruno Haible  <bruno@clisp.org>
18340
18341         Implement nproc for HP-UX.
18342         * lib/nproc.c: Include <sys/pstat.h>
18343         (num_processors): On HP-UX systems, try pstat_getdynamic.
18344         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
18345         pstat_getdynamic.
18346
18347 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
18348             Bruno Haible  <bruno@clisp.org>
18349
18350         Implement nproc for NetBSD, OpenBSD.
18351         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
18352         (ARRAY_SIZE): New macro.
18353         (num_processors): On BSD systems, try sysctl of HW_NCPU.
18354         * m4/nproc.m4: New file.
18355         * modules/nproc (Files): Add m4/nproc.m4.
18356         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
18357         (Makefile.am): Instead, augment lib_SOURCES.
18358
18359 2009-10-18  Bruno Haible  <bruno@clisp.org>
18360
18361         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
18362         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
18363         sys/param.h.
18364
18365 2009-10-16  Eric Blake  <ebb9@byu.net>
18366
18367         utimensat: new module
18368         * modules/utimensat: New file.
18369         * lib/utimensat.c (utimensat): Likewise.
18370         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18371         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18372         so we can work around Linux bugs.
18373         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18374         * modules/sys_stat (Makefile.am): Substitute them.
18375         * lib/sys_stat.in.h (utimensat): Declare it.
18376         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18377         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18378         * modules/utimensat-tests: New test.
18379         * tests/test-utimensat.c: Likewise.
18380
18381         utimens: let lutimens work on non-symlinks
18382         * lib/utimens.c (lutimens): Fall back to utimens rather than
18383         failing with ENOSYS, when file is not a symlink.
18384         (utimens): Reduce redirection.
18385         * tests/test-lutimens.h (test_lutimens): Update test to cover
18386         non-symlinks.
18387         * tests/test-utimens.h (test_utimens): Update test to cover
18388         symlinks.
18389         * tests/test-utimens.c (main): Update caller.
18390
18391         utimens: cache whether utimensat syscall works
18392         * lib/utimens.c (utimensat_works_really): New cache variable.
18393         (fdutimens, lutimens): Use it to avoid failing syscall.
18394
18395         test-stat-time, test-utimens: improve portability
18396         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18397         ext4 on alpha, and for cygwin.
18398         * tests/test-utimens-common.h: New file.
18399         (nap): Factor delays into single function.
18400         * tests/test-lutimens.h (test_lutimens): Use new header.
18401         * tests/test-futimens.h (test_futimens): Likewise.
18402         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18403         timestamps to occur from same machine, as was done previously for
18404         test_utimens.
18405         * modules/utimens-tests (Files): Ship new file.
18406         * modules/futimens-tests (Files): Likewise.
18407         Reported in part by Jim Meyering.
18408
18409         sys_stat: sort replacement declarations
18410         * lib/sys_stat.in.h: Sort declarations.
18411         * lib/futimens.c (futimens): Fix typo.
18412
18413 2009-10-15  Jim Meyering  <meyering@redhat.com>
18414
18415         don't let environment settings perturb build
18416         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
18417         could cause a configure-time and/or build-time malfunction.
18418         Typically, a configure-time function-in-library test is performed
18419         via code like this:
18420
18421           LIB_VAR=
18422           AC_SUBST([LIB_VAR])
18423           prefix_saved_LIBS=$LIBS
18424             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
18425                        [test "$ac_cv_search_FUNC" = "none required" ||
18426                         LIB_VAR=$ac_cv_search_FUNC])
18427           LIBS=$prefix_saved_LIBS
18428
18429         However, in each of the files affected by this change, the LIB_VAR=
18430         initialization was omitted.  Thus, when set in the environment, its
18431         value would propagate into generated Makefiles when FUNC is not found
18432         in LIB_NAME.
18433         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
18434         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18436
18437 2009-10-14  Eric Blake  <ebb9@byu.net>
18438
18439         fchdir: avoid infinite recursion in mingw
18440         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
18441         recursing.
18442
18443         test-stat-time: port to mingw
18444         * tests/test-stat-time.c (force_unlink): Return a value.
18445         (test_ctime) [W32]: Fix compilation error.
18446         (nap): Don't call usleep with too large an argument.  Use
18447         force_unlink.
18448         * doc/pastposix-functions/usleep.texi (usleep): Document the
18449         portability issue.
18450
18451 2009-10-13  Jim Meyering  <meyering@redhat.com>
18452
18453         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18454         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
18455         * modules/pipe-filter-ii: Likewise.
18456         * modules/sys_socket-tests: Likewise.
18457         * modules/tsearch-tests: Likewise.
18458         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
18459         (check): Depend on it.
18460
18461 2009-10-12  Eric Blake  <ebb9@byu.net>
18462
18463         utimens-tests: port to NFS file systems
18464         * tests/test-utimens.h (test_utimens): Refactor utimecmp
18465         comparisons to avoid spurious failures from timestamp drift
18466         between NFS machines.
18467
18468 2009-10-12  Eric Blake  <ebb9@byu.net>
18469
18470         stat-time-tests: minor cleanups
18471         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
18472         * tests/test-stat-time.c (nap): Separate assignment from call.
18473         Suggested by Paolo Bonzini and Bruno Haible.
18474
18475         sys_stat: guarantee struct timespec
18476         * lib/sys_stat.in.h (includes): Always include <time.h>
18477         * modules/sys_stat (Depends-on): Add time.
18478         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
18479         mode_t permission values.
18480         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
18481         get at subsecond timestamps.
18482
18483 2009-10-10  Eric Blake  <ebb9@byu.net>
18484
18485         futimens: new module
18486         * modules/futimens: New file.
18487         * lib/futimens.c (futimens): Likewise.
18488         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
18489         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
18490         we can work around Linux bugs.
18491         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18492         * modules/sys_stat (Makefile.am): Substitute them.
18493         * lib/sys_stat.in.h (futimens): Declare it.
18494         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18495         * doc/posix-functions/futimens.texi (futimens): Likewise.
18496         * modules/futimens-tests: New test.
18497         * tests/test-futimens.c: Likewise.
18498
18499         utimens: introduce fdutimens
18500         * lib/utimens.h (fdutimens): New prototype.
18501         * lib/utimens.c (gl_futimens): Move guts...
18502         (fdutimens): ...to new interface.
18503         * tests/test-utimens.c (do_fdutimens): Use it.
18504
18505         utimens: add UTIME_NOW and UTIME_OMIT support
18506         * lib/utimens.c (validate_timespec, update_timespec): New helper
18507         functions.
18508         (gl_futimens, lutimens): Use them.
18509         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
18510         stdbool, sys_stat.
18511         (Link): Mention resulting library dependency.
18512         * modules/utimecmp (Link): Likewise.
18513         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
18514         (Makefile.am): Pick up library dependency.
18515         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
18516         definition.
18517         * tests/test-sys_stat.c: Test the definitions.
18518         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
18519         * NEWS: Document library dependency.
18520
18521         utimecmp: support symlink timestamps
18522         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
18523         hashing when possible.  Use pathconf when available.
18524         (SYSCALL_RESOLUTION): Recognize tighter resolution.
18525         * modules/utimecmp (Depends-on): Add lstat.
18526
18527         utimens: add lutimens interface
18528         * lib/utimens.c (lutimens): New function.
18529         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
18530         * lib/utimens.h (lutimens): Declare new interface.
18531         * tests/test-utimens.c (main): Enhance test.
18532         * tests/test-lutimens.h (test_lutimens): New file.
18533         * modules/utimens-tests (Files): Distribute it.
18534         (Depends-on): Add symlink.
18535         (configure.ac): Check for usleep.
18536
18537         utimens: validate futimens usage
18538         * lib/utimens.c (gl_futimens): Require valid fd up front, using
18539         fewer syscalls on failure later on.  Avoid compiler warning on
18540         mingw.
18541         * modules/utimens (Depends-on): Add dup2.
18542
18543         utimens: add test
18544         * modules/utimens-tests: New test.
18545         * tests/test-utimens.h: New file.
18546         * tests/test-futimens.h: Likewise.
18547         * tests/test-utimens.c: Likewise.
18548
18549         doc: mention timestamp portability issues
18550         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
18551         instead.
18552         * doc/posix-functions/utime.texi (utime): Likewise.
18553         * doc/posix-functions/utimes.texi (utimes): Likewise.
18554         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
18555         instead.
18556         * doc/posix-functions/futimens.texi (futimens): Mention utimens
18557         module.
18558         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18559         Mention weakness with symlink timestamps.
18560         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
18561         to utimensat/futimens instead.
18562         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
18563
18564         test-dup2: enhance test
18565         * tests/test-dup2.c (main): Also check AT_FDCWD.
18566
18567         test-stat-time: avoid more spurious failures
18568         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
18569         xfs; and avoid race if the two timestamps cross quantization edge.
18570
18571         relocatable: prefer 'file system' over 'filesystem'
18572         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
18573         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
18574         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
18575         * doc/relocatable.texi (Enabling Relocatability): Likewise.
18576         * lib/relocatable.c (compute_curr_prefix): Likewise.
18577
18578 2009-10-10  Jim Meyering  <meyering@redhat.com>
18579
18580         stat-time-tests: check for the usleep function
18581         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
18582
18583 2009-10-10  Bruno Haible  <bruno@clisp.org>
18584
18585         * modules/xnanosleep: Put the Link section after the Include section.
18586
18587 2009-10-09  Eric Blake  <ebb9@byu.net>
18588
18589         dup2: work around FreeBSD 6.1 bug
18590         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
18591         * doc/posix-functions/dup2.texi (dup2): Document it.
18592         Reported by Nelson H. F. Beebe and Jim Meyering.
18593
18594         test-stat-time: port to buggy NFS clients
18595         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
18596         (test_ctime): Also skip test if mtime and ctime are skewed.
18597
18598         maint: prefer 'file system' over 'filesystem'
18599         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18600         * doc/posix-functions/lstat.texi (lstat): Likewise.
18601         * lib/file-has-acl.c (file_has_acl): Likewise.
18602         * lib/fwriteerror.c [TEST]: Likewise.
18603         * tests/test-areadlink.h (test_areadlink): Likewise.
18604         * tests/test-areadlinkat-with-size.c (main): Likewise.
18605         * tests/test-areadlinkat.c (main): Likewise.
18606         * tests/test-canonicalize-lgpl.c (main): Likewise.
18607         * tests/test-canonicalize.c (main): Likewise.
18608         * tests/test-fstatat.c (main): Likewise.
18609         * tests/test-linkat.c (main): Likewise.
18610         * tests/test-lstat.h (test_lstat_func): Likewise.
18611         * tests/test-mkdir.h (test_mkdir): Likewise.
18612         * tests/test-readlink.h (test_readlink): Likewise.
18613         * tests/test-remove.c (main): Likewise.
18614         * tests/test-rename.h (test_rename): Likewise.
18615         * tests/test-renameat.c (main): Likewise.
18616         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18617         * tests/test-symlink.h (test_symlink): Likewise.
18618         * tests/test-symlinkat.c (main): Likewise.
18619         * tests/test-unlink.h (test_unlink_func): Likewise.
18620         * tests/test-unlinkat.c (main): Likewise.
18621
18622         maint: make realtime library usage explicit
18623         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
18624         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
18625         * modules/settime (Link): Likewise.
18626         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
18627
18628         test-stat-time: speed up execution
18629         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
18630         warning on mingw.
18631         (nap): New helper function.
18632         (prepare_test): Use it to reduce sleep time.
18633         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
18634         execution.
18635         * modules/stat-time-tests (configure.ac): Check for usleep.
18636
18637 2009-10-09  Jim Meyering  <meyering@redhat.com>
18638
18639         selinux-h: always use getfilecon wrappers
18640         * lib/getfilecon.c: New file.
18641         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
18642         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
18643         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
18644         (fgetfilecon): Provide a stub.
18645         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
18646         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
18647         file unconditionally.
18648         When <selinux/selinux.h> is found, arrange to use wrappers.
18649         * modules/selinux-h (Files): Add getfilecon.c.
18650         (Makefile.am): Substitute include-next-related bits
18651         into the now-always-generated selinux/selinux.h file.
18652         * doc/glibc-functions/lgetfilecon.texi: New file.
18653         * doc/glibc-functions/fgetfilecon.texi: New file.
18654         * doc/glibc-functions/getfilecon.texi: New file.
18655         * doc/glibc-functions/getfilecon-desc.texi: New file.
18656         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
18657         which to pull in the new files.
18658         * MODULES.html.sh (Misc): Add selinux-h.
18659
18660 2009-10-08  Jim Meyering  <meyering@redhat.com>
18661
18662         unistd: fix comment typo
18663         * lib/unistd.in.h (euidaccess): Fix a comment typo.
18664
18665 2009-10-08  Eric Blake  <ebb9@byu.net>
18666
18667         areadlink: use SIZE_MAX consistently
18668         * modules/areadlink (Depends-on): Add stdint.
18669         * modules/areadlink-with-size (Depends-on): Likewise.
18670         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
18671         gives NULL; drop sys/types, since unistd gives size_t; and add
18672         stdint for SIZE_MAX.
18673         (SIZE_MAX): Rely on headers.
18674         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
18675         and add stdint.
18676         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
18677         (SIZE_MAX): Likewise.
18678         (INITIAL_BUF_SIZE): Turn into enum.
18679         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
18680
18681 2009-10-08  Jim Meyering  <meyering@redhat.com>
18682
18683         areadlinkat: avoid compilation failure
18684         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
18685         Fix typo in comment.
18686
18687 2009-10-07  Eric Blake  <ebb9@byu.net>
18688
18689         areadlinkat-with-size: new module
18690         * modules/areadlinkat-with-size: New module.
18691         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
18692         * lib/areadlink.h (areadlinkat): Declare it.
18693         * MODULES.html.sh (File system functions): Mention it.
18694         * modules/areadlinkat-with-size-tests: New test.
18695         * tests/test-areadlinkat-with-size.c: New file.
18696
18697         xreadlinkat: new module
18698         * modules/xreadlinkat: New module.
18699         * lib/xreadlinkat.c (xreadlinkat): New file.
18700         * lib/xreadlink.h (xreadlinkat): Declare it.
18701         * MODULES.html.sh (File system functions): Mention it.
18702
18703         areadlinkat: new module
18704         * lib/at-func.c (FUNC_FAIL): New define.
18705         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
18706         * modules/areadlinkat: New module.
18707         * lib/linkat.c (areadlinkat): Move...
18708         * lib/areadlinkat.c (areadlinkat): ...to new file.
18709         * lib/areadlink.h (areadlinkat): Declare it.
18710         * modules/linkat (Depends-on): Add areadlinkat.
18711         * MODULES.html.sh (File system functions): Mention it.
18712         * modules/areadlinkat-tests: New test.
18713         * tests/test-areadlinkat.c: New file.
18714
18715         areadlink, areadlink-with-size: add tests
18716         * modules/areadlink-tests: New test.
18717         * modules/areadlink-with-size-tests: Likewise.
18718         * tests/test-areadlink.h: New file.
18719         * tests/test-areadlink.c: Likewise.
18720         * tests/test-areadlink-with-size.c: Likewise.
18721
18722         maint: minor cleanups
18723         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
18724         _UNUSED_PARAMETER_ instead.
18725         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
18726         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
18727         * modules/linkat-tests (Files): Distribute test-link.h.
18728
18729         openat, utimens: whitespace cleanup
18730         * lib/openat.c: Prefer space throughout, rather than mix of 8
18731         spaces vs. tabs.
18732         * lib/at-func.c: Likewise.
18733         * lib/utimens.c: Likewise.
18734
18735         openat: avoid using wrong fd
18736         * lib/openat.c (openat_permissive): Reject user's fd if saving the
18737         working directory chooses same fd.
18738         * lib/at-func.c (AT_FUNC_NAME): Likewise.
18739
18740         mkdir, mkdirat: fix cygwin 1.5.x bug
18741         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
18742         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
18743         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
18744         bug.
18745         (gl_PREREQ_MKDIR): Delete unused macro.
18746         * modules/mkdir (Files): Track file rename.
18747         (configure.ac): Update macro name.
18748         * modules/openat (Depends-on): Add mkdir.
18749         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
18750
18751         mkdir, mkdirat: add tests
18752         * modules/mkdir-tests: New test.
18753         * tests/test-mkdir.h: New file.
18754         * tests/test-mkdir.c: Likewise.
18755         * tests/test-mkdirat.c: Likewise.
18756         * modules/openat-tests (Files): Add new files.
18757         (Makefile.am): Run new test.
18758
18759 2009-10-06  Eric Blake  <ebb9@byu.net>
18760
18761         doc: tweak *at function documentation
18762         * doc/posix-functions/faccessat.texi (faccessat): Mention
18763         known issue with replacement.
18764         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
18765         * doc/posix-functions/linkat.texi (linkat): Likewise.
18766         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18767         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18768         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18769         * doc/posix-functions/renameat.texi (renameat): Likewise.
18770         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18771
18772         openat: fix GNU/Hurd bug in unlinkat
18773         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
18774         broken.
18775         * doc/posix-functions/unlink.texi (unlink): Document this.
18776         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
18777
18778         fdopendir: fix GNU/Hurd bug
18779         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
18780         allowing non-directory fds.
18781         * lib/fdopendir.c (rpl_fdopendir): Work around it.
18782         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18783         * modules/dirent (Makefile.am): Substitute it.
18784         * lib/dirent.in.h (fdopendir): Declare replacement.
18785         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
18786         * tests/test-fdopendir.c (main): Test something other than
18787         /dev/null, since on Hurd that behaves like a directory.
18788
18789         test-symlink: port to GNU/Hurd
18790         * tests/test-symlink.h (test_symlink): Relax expected errno.
18791
18792         doc: tweak more cygwin information
18793         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
18794         now compatible with glibc.
18795         * doc/posix-functions/getopt.texi (getopt): Likewise.
18796
18797         getopt-gnu: add another test
18798         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
18799         guarantee behavior relied on by m4.
18800         * tests/test-getopt.c (main): Use it.
18801         * modules/getopt-posix-tests (Depends-on): Add setenv.
18802         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
18803
18804         getopt: fix compilation on darwin
18805         * lib/getopt.in.h (includes): Leave breadcrumbs during system
18806         include.
18807         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
18808         Reported by Ludovic Courtès.
18809
18810 2009-10-06  Bruno Haible  <bruno@clisp.org>
18811
18812         * modules/size_max (Description): Discourage its use.
18813         Reported by Simon Josefsson.
18814
18815 2009-10-06  Jim Meyering  <meyering@redhat.com>
18816
18817         linkat: avoid compilation failure
18818         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
18819
18820 2009-10-05  Eric Blake  <ebb9@byu.net>
18821
18822         linkat: support Linux 2.6.17
18823         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
18824         linkat on Linux, but allow cache variable override.
18825         * lib/linkat.c (rpl_linkat): Define override.
18826         * modules/linkat (Depends-on): Add symlinkat.
18827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
18828         * modules/unistd (Makefile.am): Substitute it.
18829         * lib/unistd.in.h (linkat): Declare replacement.
18830         Reported by Pádraig Brady.
18831
18832         quotearg: port test to systems with C.UTF-8 locale
18833         * tests/test-quotearg.c (struct result_strings): Add another
18834         member, differentiating between C.ASCII and C.UTF-8 handling.
18835         (compare_strings): Add parameter.
18836         (main): Adjust all callers.
18837
18838         getopt: avoid clash with FreeBSD _getopt_internal
18839         * lib/getopt.in.h (_getopt_internal): Override the name.
18840         * lib/getopt_int.h (includes): Pick up any overrides.
18841         Reported by Reuben Thomas.
18842
18843         hash: allow C89 compilation
18844         * lib/hash.c (check_tuning): Move declaration before statement.
18845         Reported by Reuben Thomas.
18846
18847 2009-10-05  Karl Berry  <karl@gnu.org>
18848
18849         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
18850
18851 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
18852             Bruno Haible  <bruno@clisp.org>
18853
18854         * lib/uname.c (uname): Use a table-driven algorithm to compute
18855         Windows NT versions.
18856
18857 2009-10-04  Bruno Haible  <bruno@clisp.org>
18858
18859         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
18860         program_invocation_short_name.
18861         * modules/progname (configure.ac): Test for presence of
18862         program_invocation_short_name.
18863         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18864
18865 2009-10-04  Bruno Haible  <bruno@clisp.org>
18866
18867         * lib/progname.c (set_program_name): Fix comment.
18868         Reported by Jim Meyering.
18869
18870 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
18871             Bruno Haible  <bruno@clisp.org>
18872
18873         * lib/uname.c: Include <string.h>.
18874         (uname): Do only one call to GetVersionEx in the common case.
18875
18876 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
18877             Bruno Haible  <bruno@clisp.org>
18878
18879         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
18880         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
18881         (uname): Add support for Windows CE and various non-x86 CPU types.
18882
18883 2009-10-03  Bruno Haible  <bruno@clisp.org>
18884
18885         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
18886         invocation to tests/configure.ac.
18887         Reported by Ian Beckwith <ianb@erislabs.net>.
18888
18889 2009-10-02  Eric Blake  <ebb9@byu.net>
18890
18891         fchdir: avoid compiler warning
18892         * lib/fchdir.c (canonicalize_file_name)
18893         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
18894
18895         test-open: support mingw errno values
18896         * tests/test-open.h (test_open): Relax test.
18897         * tests/test-fopen.h (test_fopen): Likewise.
18898         * tests/test-openat-safer.c (main): Likewise.
18899
18900         open: fix opening directory on mingw
18901         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
18902
18903         test-open: on GNU/Hurd, /dev/null is a directory
18904         * tests/test-fopen.h (main): Rename...
18905         (test_fopen): ...to this.  Use a guaranteed non-directory when
18906         confirming open behavior on trailing slash.
18907         * tests/test-openat-safer.c (main): Likewise.
18908         * tests/test-open.h (main): Likewise....
18909         (test_open): ...to this.
18910         * tests/test-fopen.c (main): Adjust caller.
18911         * tests/test-fopen-safer.c (main): Likewise.
18912         * tests/test-open.c (main): Likewise.
18913         * tests/test-fcntl-safer.c (main): Likewise.
18914         Reported by Samuel Thibault.
18915
18916         rename, fchdir: don't ignore chdir failure
18917         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
18918         * lib/rename.c (rpl_rename) [W32]: Likewise.
18919         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
18920         an empty destination directory if source cannot be renamed,
18921         although there is still possibility for failure.
18922         * doc/posix-functions/rename.texi (rename): Document the race.
18923         Reported by Jim Meyering.
18924
18925         maint: cleanup whitespace in recent commits
18926         * lib/rename.c (rpl_rename): Remove tabs.
18927         * tests/test-link.h (test_link): Likewise.
18928         * lib/fchdir.c (get_name): Likewise.
18929         Reported by Jim Meyering.
18930
18931 2009-10-02  Ben Pfaff  <blp@gnu.org>
18932
18933         relocatable-prog-wrapper: Add missing dependency on
18934         double-slash-root.
18935         * modules/relocatable-prog-wrapper: Add dependency.
18936         Reported by Ian Beckwith <ianb@erislabs.net>.
18937
18938 2009-10-02  Eric Blake  <ebb9@byu.net>
18939
18940         renameat: fix Solaris bugs
18941         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
18942         needed fixing.
18943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
18944         * modules/stdio (Makefile.am): Substitute it.
18945         * lib/stdio.in.h (renameat): Declare replacement.
18946         * lib/renameat.c (rpl_renameat): Implement fix.
18947
18948         renameat: new module
18949         * modules/renameat: New file.
18950         * lib/renameat.c (renameat): Likewise.
18951         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
18952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
18953         * modules/stdio (Makefile.am): Substitute them.
18954         * lib/stdio.in.h (renameat): Declare it.
18955         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18956         * doc/posix-functions/renameat.texi (renameat): Likewise.
18957         * modules/renameat-tests: New test.
18958         * tests/test-renameat.c: Likewise.
18959
18960         rename: fix mingw bugs
18961         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
18962         directory overwrite bugs.
18963
18964         rename: fix another cygwin 1.5 bug
18965         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
18966         checks.
18967         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
18968         unnecessary cygwin workarounds.  Also work around bug with moving
18969         full directory onto an empty one.
18970         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
18971
18972         rename-dest-slash: merge into rename module
18973         * modules/rename-dest-slash (Status): Mark obsolete.
18974         (Depends-on): Add rename.
18975         (Files): Let rename do it all.
18976         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
18977         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
18978         * m4/rename-dest-slash.m4: ...so this file can be deleted.
18979         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
18980         * lib/rename.c (rpl_rename): Update comments.
18981
18982         rename: fix cygwin 1.5.x bugs
18983         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
18984         * lib/rename.c (rpl_rename): Work around them.
18985         * modules/rename (Depends-on): Add same-inode.
18986
18987         rename: fix Solaris 10 bug
18988         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
18989         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
18990         was the only bug.
18991
18992         rename: fix Solaris 9 bug
18993         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
18994         on non-directory.  Avoid calling exit.
18995         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
18996         strdup.
18997         * modules/rename-tests (Depends-on): Drop lstat.
18998         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
18999         (gl_PREREQ_RENAME): Delete unused macro.
19000
19001         rename-dest-slash: fix NetBSD bug
19002         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19003         links.
19004         * modules/rename-dest-slash (Depends-on): Add same-inode.
19005
19006         rename-tests: new test, exposes several platform bugs
19007         * modules/rename-tests: New file.
19008         * tests/test-rename.h: Likewise.
19009         * tests/test-rename.c: Likewise.
19010         * doc/posix-functions/rename.texi (rename): Improve documentation,
19011         including bugs that will eventually be fixed in gnulib.
19012
19013 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19014
19015         * lib/uname.c: Include <stdlib.h>
19016         (uname): Assume version info is available.
19017
19018 2009-10-02  Jim Meyering  <meyering@redhat.com>
19019
19020         gnu-web-doc-update: correct --help output
19021         * build-aux/gnu-web-doc-update: Make --help output relevant.
19022
19023         gnu-web-doc-update: add standard options
19024         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19025
19026         gnu-web-doc-update: New module.
19027         Use this script to automatically update the on-line web documentation
19028         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19029         * modules/gnu-web-doc-update: New file, from coreutils.
19030         * build-aux/gnu-web-doc-update: New script.
19031
19032 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19033
19034         link: LoadLibrary is not needed.
19035         * lib/link.c: Use GetModuleHandle.
19036
19037 2009-10-01  Eric Blake  <ebb9@byu.net>
19038
19039         getopt: bump serial number
19040         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19041         change.
19042
19043         tests: tighten link, rmdir, and remove tests
19044         * tests/test-link.h (includes): No need to use <config.h> here.
19045         Clean up if directory hard link was created, otherwise test for
19046         trailing '.'.
19047         * tests/test-linkat.c (main): Simplify.
19048         * tests/test-remove.c (main): Enhance test for trailing '.'.
19049         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19050
19051 2009-10-01  Jim Meyering  <meyering@redhat.com>
19052
19053         maint.mk: requiring "make major" was annoying, for a "minor" release.
19054         What is intended is "stable", to contrast with alpha and beta,
19055         so require "make stable", not "make major".
19056         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19057         (get_tool_versions): Likewise.
19058         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19059
19060 2009-09-30  Ben Pfaff  <blp@gnu.org>
19061
19062         Fix broken build of replacement for Windows tmpfile().
19063         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19064         flags argument added along with the 'mkostemp' module.
19065
19066 2009-09-28  Bruno Haible  <bruno@clisp.org>
19067
19068         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19069         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19070         to 'remove_elt'.
19071         (gl_list_remove): Update.
19072         * lib/gl_list.c (gl_list_remove): Update.
19073         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19074         to 'remove_elt'.
19075         (gl_oset_remove): Update.
19076         * lib/gl_list.c (gl_oset_remove): Update.
19077         Reported by Eric Blake.
19078
19079 2009-09-28  Eric Blake  <ebb9@byu.net>
19080
19081         doc: mention yet more cygwin 1.7 status
19082         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19083         cygwin.
19084         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19085         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19086
19087         argp: fix test failure
19088         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19089         that are not upper-case.  Pass correct range to tolower.
19090
19091 2009-09-27  Jim Meyering  <meyering@redhat.com>
19092
19093         test-yesno: work around sparc-dash here-document infelicity
19094         Without this change, the literal \177 byte in a here document
19095         would make dash 0.5.5.1-3 access uninitialized memory.
19096         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19097         Instead, use a marker, "@", and filter through tr to create the desired
19098         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19099
19100 2009-09-27  Bruno Haible  <bruno@clisp.org>
19101
19102         Disable untested support for new flavours of ACLs on AIX.
19103         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19104         progress.
19105         * lib/set-mode-acl.c (qset_acl): Likewise.
19106
19107 2008-12-07  Bruno Haible  <bruno@clisp.org>
19108
19109         Add support for new flavours of ACLs on AIX. (Untested.)
19110         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19111         (file_has_acl): Add support for newer AIX.
19112         * lib/set-mode-acl.c (qset_acl): Likewise.
19113         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19114         Rainer Tammer <tammer@tammer.net>.
19115
19116 2009-09-26  Eric Blake  <ebb9@byu.net>
19117
19118         argp: fix compilation of getopt
19119         * lib/getopt.in.h (includes): Use different guard than glibc.
19120         Reported by Sergey Poznyakoff.
19121
19122         doc: mention more cygwin 1.7 status
19123         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19124         bug.
19125         * doc/posix-functions/execl.texi (execl): Likewise.
19126         * doc/posix-functions/execle.texi (execle): Likewise.
19127         * doc/posix-functions/execlp.texi (execlp): Likewise.
19128         * doc/posix-functions/execv.texi (execv): Likewise.
19129         * doc/posix-functions/execve.texi (execve): Likewise.
19130         * doc/posix-functions/execvp.texi (execvp): Likewise.
19131         * doc/glibc-functions/canonicalize_file_name.texi
19132         (canonicalize_file_name): Cygwin 1.7 now provides this.
19133         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19134         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19135         on AT_SYMLINK_NOFOLLOW.
19136
19137 2009-09-24  Eric Blake  <ebb9@byu.net>
19138
19139         test-linkat: make test more robust
19140         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19141
19142         getopt: fix inclusion guards for cygwin
19143         * modules/getopt-posix (Depends-on): Add include-next.
19144         (Makefile.am): Substitute more items in replacement header.
19145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19146         <getopt.h>.
19147         * lib/getopt.in.h (includes): Use split inclusion guard, and
19148         prefer <getopt.h> over include <unistd.h> when one is present.
19149         (option): Also override name of 'struct option'.
19150
19151         same-inode: revert prior change; it is not yet ready
19152         * NEWS: Undo mention of this change.
19153         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19154         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19155         * lib/cycle-check.c (cycle_check): Likewise.
19156         * lib/same.c (same_name): Likewise.
19157         * lib/at-func2.c (at_func2): Likewise.
19158
19159 2009-09-23  Eric Blake  <ebb9@byu.net>
19160
19161         linkat: new module
19162         * modules/linkat: New file.
19163         * lib/at-func2.c (at_func2): Likewise.
19164         * lib/linkat.c (linkat): Likewise.
19165         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19166         * lib/openat-priv.h (at_func2): Add declaration.
19167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19168         * modules/unistd (Makefile.am): Substitute them.
19169         * lib/unistd.in.h (linkat): Declare it.
19170         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19171         * doc/posix-functions/linkat.texi (linkat): Likewise.
19172         * doc/posix-functions/link.texi (link): Tweak wording.
19173         * tests/test-link.c (main): Move guts...
19174         * tests/test-link.h (test_link): ...into new file.
19175         * modules/linkat-tests: New test.
19176         * tests/test-linkat.c: Likewise.
19177         * modules/link-tests (Files): Ship new file.
19178         (Depends-on): Add stdbool.
19179
19180         dirname: add library-safe mdir_name
19181         * lib/dirname.h (mdir_name): New prototype.
19182         * lib/dirname.c (dir_name): Move guts...
19183         (mdir_name): ...to new function that avoids xalloc_die.
19184
19185         fchdir: another mingw fix
19186         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19187         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19188         on mingw (where it has not yet been ported), and make it optional
19189         elsewhere.
19190         (_gl_register_fd): Use it.
19191
19192         same-inode: make SAME_INODE tri-state, to port to mingw
19193         * NEWS: Mention this change.
19194         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19195         st_ino always being 0.
19196         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19197         * lib/cycle-check.c (cycle_check): Likewise.
19198         * lib/same.c (same_name): Likewise.
19199
19200         lstat: avoid mingw compilation error
19201         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19202         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19203         lstat ourselves.
19204         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19205         was adequate.
19206         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19207         the checks for lstat.
19208         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19209
19210         link: fix test failure on Solaris 9
19211         * lib/link.c (rpl_link): Don't assume link will catch bogus
19212         trailing slash on source.
19213
19214         test-symlinkat: enhance test
19215         * tests/test-readlink.c (main): Move guts...
19216         * tests/test-readlink.h (test_readlink): ...into new file.
19217         * tests/test-symlink.c (main): Move guts...
19218         * tests/test-symlink.h (test_symlink): ...into new file.
19219         * tests/test-symlinkat.c (main): Use new files for further
19220         coverage.
19221         (do_symlink, do_readlink): New helper functions.
19222         * modules/symlink-tests (Files): Ship new file.
19223         (Depends-on): Add stdbool.
19224         * modules/readlink-tests (Files): Ship new file.
19225         (Depends-on): Add stdbool.
19226         * modules/symlinkat-tests (Files): Use new files.
19227
19228 2009-09-23  Eric Blake  <ebb9@byu.net>
19229
19230         readlink: document portability issue with symlink length
19231         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19232         systems have bogus st_size on symlinks, and mention the
19233         areadlink-with-size module.
19234         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19235         * doc/posix-functions/readlink.texi (readlink): Mention the
19236         areadlink module, and ERANGE failure.
19237         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19238         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19239
19240         readlink: fix Solaris 9 bug with trailing slash
19241         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19242         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19243         * doc/posix-functions/readlink.texi (readlink): Document this.
19244         * modules/readlink-tests: New test.
19245         * tests/test-readlink.c: Likewise.
19246
19247         readlink: fix cygwin 1.5.x bug with return type
19248         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19249         * lib/unistd.in.h (readlink): Use ssize_t.
19250         * lib/readlink.c (readlink): Likewise.
19251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19252         * modules/unistd (Makefile.am): Substitute it.
19253         * lib/unistd.in.h (readlink): Declare replacement.
19254         * doc/posix-functions/readlink.texi (readlink): Document this.
19255
19256         symlink: use throughout gnulib
19257         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19258         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19259         symlink is not used.
19260         * modules/symlinkat (Depends-on): Add symlink.
19261         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19262         * modules/canonicalize-tests (Depends-on): Likewise.
19263         * modules/lstat-tests (Depends-on): Likewise.
19264         * modules/openat-tests (Depends-on): Likewise.
19265         * modules/remove-tests (Depends-on): Likewise.
19266         * modules/rmdir-tests (Depends-on): Likewise.
19267         * modules/unlink-tests (Depends-on): Likewise.
19268         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19269         * tests/test-canonicalize.c (symlink): Likewise.
19270         * tests/test-fstatat.c (symlink): Likewise.
19271         * tests/test-lstat.c (symlink): Likewise.
19272         * tests/test-remove.c (symlink): Likewise.
19273         * tests/test-rmdir.c (symlink): Likewise.
19274         * tests/test-unlink.c (symlink): Likewise.
19275         * tests/test-unlinkat.c (symlink): Likewise.
19276
19277         symlink: new module, for Solaris 9 bug
19278         * modules/symlink: New file.
19279         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19280         * lib/symlink.c: Likewise.
19281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19282         * modules/unistd (Makefile.am): Substitute them.
19283         * lib/unistd.in.h (symlink): Declare replacement.
19284         * MODULES.html.sh (File system functions): Mention it.
19285         * doc/posix-functions/symlink.texi (symlink): Likewise.
19286         * modules/symlink-tests: New test.
19287         * tests/test-symlink.c: Likewise.
19288
19289 2009-09-23  Bruno Haible  <bruno@clisp.org>
19290
19291         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19292         when needed.
19293         Test case: gnulib-tool --import --with-tests atexit inttypes.
19294         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19295
19296 2009-09-23  Bruno Haible  <bruno@clisp.org>
19297
19298         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19299         subcommand, not in a subshell.
19300
19301 2009-09-22  Eric Blake  <ebb9@byu.net>
19302
19303         unistd: sort replacement declarations
19304         * lib/unistd.in.h: Sort declarations.
19305
19306         open, openat: minor optimization
19307         * lib/open.c (open): If open succeeded, len is non-zero.
19308         * lib/openat.c (rpl_openat): Likewise.
19309
19310         link-follow: ensure correct result
19311         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19312         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19313         distinguish between possible failures.
19314
19315 2009-09-21  Eric Blake  <ebb9@byu.net>
19316
19317         fts: avoid compiler warning
19318         * lib/fts.c (dirent_inode_sort_may_be_useful)
19319         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19320
19321 2009-09-19  Bruno Haible  <bruno@clisp.org>
19322
19323         * lib/progreloc.c (canonicalize_file_name): New declaration.
19324
19325 2009-09-19  Eric Blake  <ebb9@byu.net>
19326
19327         link: fix quoting
19328         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19329
19330         openat: fix openat bugs on Solaris 9
19331         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19332         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19333         * modules/openat (Depends-on): Add open.
19334         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19335         * modules/fcntl-h (Makefile.am): Substitute it.
19336         * lib/fcntl.in.h (openat): Declare replacement.
19337         * doc/posix-functions/openat.texi (openat): Document this.
19338
19339         openat: move fstatat and unlinkat into correct files
19340         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
19341         compiled.
19342         * lib/openat.c (fstatat, unlinkat): Move...
19343         * lib/fstatat.c (fstatat): ...into correct files.
19344         * lib/unlinkat.c (unlinkat): Likewise.
19345
19346         openat: fix unlinkat bugs on Solaris 9
19347         * lib/unlinkat.c (unlinkat): New file.
19348         * modules/openat (Depends-on): Add unlink.
19349         (Files): Distribute it.
19350         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
19351         trailing slash behavior is broken.
19352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19353         * modules/unistd (Makefile.am): Substitute it.
19354         * lib/unistd.in.h (unlinkat): Declare replacement.
19355         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
19356
19357         openat: fix fstatat bugs on Solaris 9
19358         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
19359         stat.
19360         * doc/posix-functions/fstatat.texi (fstatat): Document this.
19361
19362         test-unlinkat: enhance test, to expose Solaris 9 bug
19363         * tests/test-unlink.c (main): Factor guts...
19364         * tests/test-unlink.h (test_rmdir_func): ...into new file.
19365         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19366         * tests/test-rmdir.c (main): Adjust caller.
19367         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19368         (unlinker): New helper function.
19369         (rmdirat): Enhance check.
19370         * modules/rmdir-tests (Depends-on): Add stdbool.
19371         * modules/unlink-tests (Depends-on): Likewise.
19372         (Files): Add test-unlink.h.
19373         * modules/openat-tests (Files): Likewise.
19374         (Depends-on): Add unlinkdir.
19375
19376         test-fstatat: new test, to expose Solaris 9 bugs
19377         * tests/test-stat.c (main): Factor guts...
19378         * tests/test-stat.h (test_stat_func): ...into new file.
19379         * tests/test-lstat.c (main): Factor guts...
19380         * tests/test-lstat.h (test_lstat_func): ...into new file.
19381         * tests/test-fstatat.c: New file.
19382         * modules/stat-tests (Files): Add test-stat.h.
19383         * modules/lstat-tests (Files): Add test-lstat.h.
19384         (Depends-on): Add stdbool.
19385         * modules/openat-tests (Depends-on): Add pathmax.
19386         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19387         (Makefile.am): Run new test.
19388
19389         remove: new module, for mingw and Solaris 9 bugs
19390         * modules/remove: New file.
19391         * lib/remove.c: Likewise.
19392         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19394         * modules/stdio (Makefile.am): Use them.
19395         * lib/stdio.in.h (remove): Declare replacement.
19396         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19397         * doc/posix-functions/remove.texi (remove): Likewise.
19398         * modules/remove-tests: New test.
19399         * tests/test-remove.c: Likewise.
19400
19401         unlink: new module, for Solaris 9 bug
19402         * modules/unlink: New file.
19403         * lib/unlink.c: Likewise.
19404         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19406         * modules/unistd (Makefile.am): Use them.
19407         * lib/unistd.in.h (stat): Declare replacement.
19408         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19409         * doc/posix-functions/unlink.texi (unlink): Likewise.
19410         * modules/unlink-tests: New test.
19411         * tests/test-unlink.c: Likewise.
19412
19413         lstat: fix Solaris 9 bug
19414         * lib/lstat.c (lstat): Also check for trailing slash on
19415         non-symlink, non-directories.  Use stat module to simplify logic.
19416         * doc/posix-functions/lstat.texi (lstat): Document it.
19417         * modules/lstat-tests (Depends-on): Add errno, same-inode.
19418         (configure.ac): Check for symlink.
19419         * tests/test-lstat.c (main): Add more tests.
19420
19421         stat: add as dependency to other modules
19422         * modules/chown (Depends-on): Add stat.
19423         * modules/euidaccess (Depends-on): Likewise.
19424         * modules/fchdir (Depends-on): Likewise.
19425         * modules/isdir (Depends-on): Likewise.
19426         * modules/link (Depends-on): Likewise.
19427         * modules/lstat (Depends-on): Likewise.
19428         * modules/mkdir-p (Depends-on): Likewise.
19429         * modules/modechange (Depends-on): Likewise.
19430         * modules/open (Depends-on): Likewise.
19431         * modules/readlink (Depends-on): Likewise.
19432         * modules/same (Depends-on): Likewise.
19433
19434         stat: fix Solaris 9 bug
19435         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
19436         slash.
19437         * lib/stat.c (rpl_stat): Work around it.
19438         * doc/posix-functions/stat.texi (stat): Update documentation.
19439
19440         stat: new module, for mingw bug
19441         * modules/stat: New file.
19442         * lib/stat.c: Likewise.
19443         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19444         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19445         * modules/sys_stat (Makefile.am): Use them.
19446         * lib/sys_stat.in.h (stat): Declare replacement.
19447         * lib/openat.c (fstatat): Deal with lstat and stat being function
19448         macros.
19449         * modules/openat (Depends-on): Add inline.
19450         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19451         * doc/posix-functions/stat.texi (stat): Likewise.
19452         * modules/stat-tests: New test.
19453         * tests/test-stat.c: Likewise.
19454
19455 2009-09-19  Jim Meyering  <meyering@redhat.com>
19456
19457         syntax-check: detect unnecessary inclusion of canonicalize.h
19458         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
19459
19460 2009-09-19  Eric Blake  <ebb9@byu.net>
19461
19462         canonicalize-lgpl: adjust clients to use correct header
19463         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19464         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
19465         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
19466         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
19467         * lib/progreloc.c (includes): Likewise.
19468
19469 2009-09-19  Jim Meyering  <meyering@redhat.com>
19470
19471         test-posixtm.c: correct a comment
19472         * tests/test-posixtm.c: Correct first-line comment.
19473         Spotted by Eric Blake.
19474
19475 2009-09-16  Jim Meyering  <meyering@redhat.com>
19476
19477         posixtm-tests: make T const-correct; add a test case
19478         * tests/test-posixtm.c (T): Declare const.
19479         Add a test for -(2^31+1).
19480         Remove useless can-succeed-only-in-2002 test.
19481
19482         posixtm-tests: adjust the sole failing test
19483         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
19484         expected output matches what mktime now produces.  Cross-checked via
19485         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
19486
19487         posixtm: move #ifdef'd tests into a new module
19488         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
19489         * tests/test-posixtm.c: ... this new file.
19490         * modules/posixtm-tests: New module.
19491
19492 2009-09-19  Eric Blake  <ebb9@byu.net>
19493
19494         openat: simplify use of at-func.c
19495         * lib/at-func.c (includes): Include prerequisites here, to
19496         simplify requirements on client files.
19497         * lib/openat-priv.h: Add double-inclusion guard.
19498         * lib/faccessat.c (includes): Simplify.
19499         * lib/fchmodat.c (includes): Likewise.
19500         * lib/fchownat.c (includes): Likewise.
19501         * lib/mkdirat.c (includes): Likewise.
19502         * lib/mkfifoat.c (includes): Likewise.
19503         * lib/symlinkat.c (includes): Likewise.
19504
19505         openat: allow return of fd 0
19506         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
19507         * modules/save-cwd (Depends-on): Replace fcntl-safer with
19508         unistd-safer.
19509         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
19510         <fcntl.h>; this module does not leak fds.
19511         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
19512         must be allowed to return 0, leaving openat_safer to add the
19513         safety.
19514         (openat_permissive): Avoid writing to just-opened fd 2 if
19515         restoring the current directory fails.
19516         * lib/openat-die.c (openat_restore_fail): Add comment.
19517         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
19518         (save_cwd): Guarantee safe fd, but without use of open_safer.
19519         * tests/test-openat.c: New test.
19520         * modules/openat-tests (Files, Makefile.am): Distribute and build
19521         new file.
19522
19523         relocatable-prog-wrapper: fix build
19524         * modules/relocatable-prog-wrapper (Files): Update name of
19525         canonicalize m4 file, broken on 2009-09-17.
19526         Reported by emad hajjar <aleppos@hotmail.com>.
19527
19528 2009-09-19  Bruno Haible  <bruno@clisp.org>
19529
19530         * lib/safe-alloc.h: Use the standard header with GPL copyright.
19531         * lib/safe-alloc.c: Likewise.
19532         Reported by Ian Beckwith <ianb@erislabs.net>.
19533
19534 2009-09-18  Bruno Haible  <bruno@clisp.org>
19535
19536         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
19537         Reported by <erobles@sensacd.com.mx>.
19538
19539 2009-09-17  Eric Blake  <ebb9@byu.net>
19540
19541         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
19542         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
19543         slashes when checking if last component is missing.
19544         * tests/test-canonicalize.c (main): Test this.
19545
19546         canonicalize, canonicalize-lgpl: honor // if distinct from /
19547         * modules/canonicalize (Files): Add double-slash-root.m4.
19548         * modules/canonicalize-lgpl (Files): Likewise.
19549         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19550         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
19551         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
19552         fallback definition.
19553         (canonicalize_filename_mode): Use it to protect //.
19554         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
19555         (__realpath): Likewise.
19556         * tests/test-canonicalize.c (main): Test this.
19557         * tests/test-canonicalize-lgpl.c (main): Likewise.
19558         * modules/canonicalize-tests (Depends-on): Add same-inode.
19559         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19560
19561         canonicalize-lgpl: fix glibc bug with trailing slash
19562         * m4/canonicalize-lgpl.m4: Move contents...
19563         * m4/canonicalize.m4: ...here.
19564         (gl_CANONICALIZE_LGPL): Factor realpath check...
19565         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
19566         glibc 2.3.5 bug, fixed 2005-04-27.
19567         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
19568         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
19569         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
19570         * modules/canonicalize-lgpl (Files): Manage file rename.
19571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19572         * modules/stdlib (Makefile.am): Substitute witness.
19573         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
19574         is needed.
19575         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
19576         replacement is required.
19577         * lib/canonicalize.c (canonicalize_file_name): Likewise.
19578         * doc/glibc-functions/canonicalize_file_name.texi
19579         (canonicalize_file_name): Document this.
19580         * doc/posix-functions/realpath.texi (realpath): Likewise.
19581
19582         canonicalize-lgpl: reject non-directory with trailing slash
19583         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
19584         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
19585         catches failures in glibc 2.3.5.
19586         * tests/test-canonicalize.c (main): Likewise.
19587
19588         canonicalize-lgpl: use native realpath if it works
19589         * lib/canonicalize-lgpl.c (realpath): Guard with
19590         FUNC_REALPATH_WORKS.
19591         * lib/stdlib.in.h (realpath): Make declaration optional based on
19592         HAVE_REALPATH.
19593         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
19594         native realpath works.
19595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19596         * modules/stdlib (Makefile.am): Substitute witness.
19597
19598         canonicalize, canonicalize-lgpl: use <stdlib.h>
19599         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
19600         (Include): Mention <stdlib.h>.
19601         (configure.ac): Mention functions we provide.
19602         * modules/canonicalize (configure.ac): Likewise.
19603         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
19604         realpath if canonicalize_file_name is missing.
19605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
19606         * modules/stdlib (Makefile.am): Substitute witnesses.
19607         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
19608         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
19609         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
19610         * NEWS: Document this.
19611         * doc/glibc-functions/canonicalize_file_name.texi
19612         (canonicalize_file_name): Likewise.
19613         * doc/posix-functions/realpath.texi (realpath): Likewise.
19614         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
19615
19616         test-canonicalize: consolidate into single C program
19617         * tests/test-canonicalize.sh: Delete; move setup into...
19618         * tests/test-canonicalize.c (main): ...the program, making it
19619         easier to run in debugger.  Add some tests.
19620         * modules/canonicalize-tests (Files): Remove unused file.
19621         (Depends-on): Add progname.
19622         (configure.ac, Makefile.am): Simplify.
19623
19624         test-canonicalize-lgpl: consolidate into single C program
19625         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
19626         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
19627         easier to run in debugger.  Add some tests.
19628         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
19629         (configure.ac, Makefile.am): Simplify.
19630
19631         canonicalize: avoid resolvepath
19632         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
19633         unnecessary checks.
19634         * lib/canonicalize.c (includes): Simplify.
19635         (canonicalize_file_name): Drop resolvepath implementation.
19636         * modules/canonicalize (Depends-on): Drop filenamecat.
19637
19638         canonicalize: don't lose errno
19639         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
19640         over calls to free.
19641
19642         canonicalize: simplify errno handling
19643         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
19644         assignment.
19645
19646         canonicalize, canonicalize-lgpl: update module dependencies
19647         * modules/canonicalize (Depends-on): Add extensions, lstat,
19648         pathmax, stdlib.
19649         (Files): Drop pathmax.h.
19650         (configure.ac): Adjust macro name.
19651         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
19652         lstat, stdlib, sys_stat.
19653         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
19654         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
19655         extensions.
19656         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
19657         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
19658         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
19659         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
19660         declaration, if available.
19661         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
19662         we can rely on the readlink module.
19663         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
19664         (includes): Use <unistd.h> unconditionally.
19665
19666 2009-09-17  Eric Blake  <ebb9@byu.net>
19667
19668         maint: make Include sections of modules consistent
19669         * modules/alloca: Use only header name; no need to list #include.
19670         * modules/alloca-opt: Likewise.
19671         * modules/arpa_inet: Likewise.
19672         * modules/canon-host: Likewise.
19673         * modules/configmake: Likewise.
19674         * modules/dirent: Likewise.
19675         * modules/eealloc: Likewise.
19676         * modules/environ: Likewise.
19677         * modules/fchdir: Likewise.
19678         * modules/fcntl: Likewise.
19679         * modules/fcntl-h: Likewise.
19680         * modules/gethrxtime: Likewise.
19681         * modules/gettime: Likewise.
19682         * modules/ignore-value: Likewise.
19683         * modules/inet_ntop: Likewise.
19684         * modules/inet_pton: Likewise.
19685         * modules/inttypes: Likewise.
19686         * modules/isnand-nolibm: Likewise.
19687         * modules/isnanf-nolibm: Likewise.
19688         * modules/mbchar: Likewise.
19689         * modules/mbfile: Likewise.
19690         * modules/mbiter: Likewise.
19691         * modules/mbuiter: Likewise.
19692         * modules/netdb: Likewise.
19693         * modules/netinet_in: Likewise.
19694         * modules/nproc: Likewise.
19695         * modules/pagealign_alloc: Likewise.
19696         * modules/poll: Likewise.
19697         * modules/printf-frexp: Likewise.
19698         * modules/pthread: Likewise.
19699         * modules/putenv: Likewise.
19700         * modules/random_r: Likewise.
19701         * modules/relocatable-prog: Likewise.
19702         * modules/search: Likewise.
19703         * modules/select: Likewise.
19704         * modules/selinux-h: Likewise.
19705         * modules/settime: Likewise.
19706         * modules/signal: Likewise.
19707         * modules/size_max: Likewise.
19708         * modules/socklen: Likewise.
19709         * modules/ssize_t: Likewise.
19710         * modules/stdarg: Likewise.
19711         * modules/stdbool: Likewise.
19712         * modules/stddef: Likewise.
19713         * modules/stdint: Likewise.
19714         * modules/stdio: Likewise.
19715         * modules/stdlib: Likewise.
19716         * modules/string: Likewise.
19717         * modules/strings: Likewise.
19718         * modules/sys_file: Likewise.
19719         * modules/sys_ioctl: Likewise.
19720         * modules/sys_select: Likewise.
19721         * modules/sys_socket: Likewise.
19722         * modules/sys_stat: Likewise.
19723         * modules/sys_time: Likewise.
19724         * modules/sys_times: Likewise.
19725         * modules/sys_utsname: Likewise.
19726         * modules/sys_wait: Likewise.
19727         * modules/sysexits: Likewise.
19728         * modules/time: Likewise.
19729         * modules/times: Likewise.
19730         * modules/tmpfile: Likewise.
19731         * modules/trim: Likewise.
19732         * modules/unistd: Likewise.
19733         * modules/wchar: Likewise.
19734         * modules/wctype: Likewise.
19735
19736 2009-09-17  Bruno Haible  <bruno@clisp.org>
19737
19738         Make getdate.y compile on QNX and NetBSD 5 / i386.
19739         * m4/getdate.m4 (gl_GETDATE): Conditionally define
19740         TIME_T_FITS_IN_LONG_INT.
19741         * lib/getdate.y (long_time_t): New type.
19742         (relative_time): Change type of 'seconds' field to long_time_t.
19743         (get_date): Update types of local variables. Check against overflow
19744         during conversion from long_time_t to time_t.
19745         Reported by Matt Kraai <kraai@ftbfs.org>
19746         and Hasso Tepper <hasso@netbsd.org>.
19747
19748 2009-09-17  Bruno Haible  <bruno@clisp.org>
19749
19750         * modules/COPYING: Update copyright years.
19751         * modules/README: Likeiwse.
19752         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
19753         Reported by Ian Beckwith <ianb@erislabs.net>.
19754
19755 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19756
19757         * users.txt: Update references for gnuit package.
19758
19759 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19760
19761         * m4/getdelim.m4: Fix typo in copyright line.
19762
19763 2009-09-17  Bruno Haible  <bruno@clisp.org>
19764
19765         * lib/atoll.c: Use the standard header with GPL copyright.
19766         * lib/argz.in.h: Likewise.
19767         * lib/glob.c: Likewise.
19768         * lib/glob-libc.h: Likewise.
19769         * lib/random_r.c: Likewise.
19770         * lib/siglist.h: Likewise.
19771         * lib/strsignal.c: Likewise.
19772         Reported by Ian Beckwith <ianb@erislabs.net>.
19773
19774 2009-09-17  Eric Blake  <ebb9@byu.net>
19775
19776         rmdir: ensure correct dependency order
19777         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
19778
19779 2009-09-17  Bruno Haible  <bruno@clisp.org>
19780
19781         Disable assertion that fails on NetBSD 5 / i386.
19782         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
19783         Reported by Sam Steingold <sds@gnu.org>
19784         and Hasso Tepper <hasso@netbsd.org>.
19785
19786 2009-09-16  Eric Blake  <ebb9@byu.net>
19787
19788         unlinkdir: port to mingw
19789         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
19790         on which no one can unlink a directory.
19791
19792         stdlib: sort witness names
19793         * modules/stdlib (Makefile.am): Sort replacements.
19794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
19795         * lib/stdlib.in.h: Likewise.
19796
19797         parse-duration-tests: avoid link failure
19798         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
19799         LIBINTL.
19800         Reported by Tom G. Christensen.
19801
19802         openat-tests: ensure unlinkat behaves like rmdir
19803         * tests/test-rmdir.c (main): Factor guts...
19804         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
19805         * modules/rmdir-tests (Files): Ship new file.
19806         * modules/openat-tests: New test.
19807         * tests/test-unlinkat.c: Likewise.
19808
19809         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
19810         * modules/rmdir-errno (Status, Notice): Now obsolete.
19811
19812         rmdir: work around cygwin 1.5.x and mingw bugs
19813         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
19814         * lib/rmdir.c (rmdir): Work around it.
19815         * modules/rmdir (Status, Notice): No longer obsolete.
19816         (Files): Add dos.m4.
19817         (Depends-on): Add unistd.
19818         (configure.ac): Set witnesses.
19819         (License): Relax to LGPLv2+.
19820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
19821         * modules/unistd (Makefile.am): Substitute witnesses.
19822         * lib/unistd.in.h (rmdir): Declare replacement.
19823         * doc/posix-functions/rmdir.texi (rmdir): Document this.
19824         * modules/rmdir-tests: New tests.
19825         * tests/test-rmdir.c: Likewise.
19826
19827 2009-09-15  Eric Blake  <ebb9@byu.net>
19828
19829         fchdir: improve use of replacement functions
19830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
19831         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
19832         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
19833         REPLACE_CLOSEDIR.
19834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
19835         * modules/sys_stat (Makefile.am): Substitute correct witness.
19836         * modules/dirent (Makefile.am): Likewise.
19837         * modules/unistd (Makefile.am): Likewise.
19838         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
19839         * lib/unistd.in.h (dup): Likewise.
19840         * lib/sys_stat.in.h (fstat): Likewise.
19841
19842         maint: ignore gnulib-tool temp files
19843         * .gitignore: Ignore files created during gnulib-tool --test.
19844
19845 2009-09-13  Jim Meyering  <meyering@redhat.com>
19846
19847         posixtm: don't reject a time that specify "60" as the number of seconds
19848         * lib/posixtm.c (posixtime): The code to reject invalid dates
19849         would also reject a time specified with the .60 suffix.
19850         But POSIX allows that, in order to accommodate leap seconds.
19851         So don't reject it.
19852         (main): Adjust tests accordingly.
19853         * modules/posixtm (Depends-on): Add stpcpy.
19854
19855 2009-09-11  Jim Meyering  <meyering@redhat.com>
19856
19857         announce-gen: include [$release_type] in emitted Subject:
19858         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
19859         e.g., [stable] in the emitted Subject: line.
19860
19861 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19862
19863         Remove obsolete macros from several modules.
19864         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
19865         obsolete Autoconf macros with their modern counterparts.
19866         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
19867         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
19868         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
19869         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
19870         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
19871         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19872         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19873         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19874         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19875         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
19876         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19877         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19878         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19879         * m4/sockets.m4 (gl_SOCKETS): Likewise.
19880         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
19881         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
19882         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
19883         * m4/time_r.m4 (gl_TIME_R): Likewise.
19884         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19885         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
19886         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19887
19888         Fix copyright header in build-aux scripts.
19889         * build-aux/git-version-gen: Fix copyright header to match GPLv3
19890         recommendation.
19891         * build-aux/ncftpput-ftp: Likewise.
19892         * build-aux/update-copyright: Likewise.
19893
19894 2009-09-09  Eric Blake  <ebb9@byu.net>
19895
19896         test-link: allow Linux choice of errno
19897         * tests/test-link.c (main): Relax test for alternate error.
19898
19899         strndup: fix improper m4 caching
19900         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
19901         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
19902         (gl_PREREQ_STRNDUP): Delete.
19903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
19904         * modules/string (Makefile.am): Substitute it.
19905         * lib/string.in.h (strndup): Modernize prototype.
19906
19907         getcwd: port to mingw
19908         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
19909         different from the POSIX assumptions made throughout the getcwd
19910         module; fortunately, the mingw getcwd does not need replacement.
19911         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
19912         * modules/getcwd-tests: New test.
19913         * tests/test-getcwd.c: Likewise.
19914
19915         link: fix platform bugs
19916         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
19917         * lib/link.c (link): Work around them.  Fix related mingw bug.
19918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
19919         * modules/unistd (Makefile.am): Substitute it.
19920         * lib/unistd.in.h (link): Declare replacement.
19921         * doc/posix-functions/link.texi (link): Document this.
19922         * modules/link (Depends-on): Add strdup-posix, sys_stat.
19923
19924         test-link: consolidate into single C program, test more cases
19925         * tests/test-link.sh: Delete.
19926         * tests/test-link.c: Test more error conditions.  Exposes bugs on
19927         at least Cygwin and Solaris.
19928         * modules/link-tests (Files): Remove unused file.
19929         (Depends-on): Add errno, sys_stat.
19930         (Makefile.am): Simplify.
19931
19932 2009-09-08  Bruno Haible  <bruno@clisp.org>
19933
19934         Work around towlower, towupper bug on mingw.
19935         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
19936         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
19937         * doc/posix-functions/towlower.texi: Mention the mingw bug.
19938         * doc/posix-functions/towupper.texi: Likewise.
19939         Reported by Eric Blake.
19940
19941 2009-09-08  Jim Meyering  <meyering@redhat.com>
19942
19943         build: don't try to run autoheader if we don't use it
19944         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
19945         is not used in configure.ac.
19946
19947 2009-09-08  Eric Blake  <ebb9@byu.net>
19948
19949         euidaccess: fix compilation error
19950         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
19951
19952         rawmemchr: relax license
19953         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
19954         okay.
19955         Reported by Jim Meyering.
19956
19957         mkfifoat: new module
19958         * modules/mkfifoat: New file.
19959         * lib/mkfifoat.c: Likewise.
19960         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
19961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19962         * modules/sys_stat (Makefile.am): Use them.
19963         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
19964         * MODULES.html.sh (File system functions): Mention module.
19965         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19966         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19967         * modules/mkfifoat-tests: New test.
19968         * tests/test-mkfifoat.c: Likewise.
19969
19970         strchrnul: relax license
19971         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
19972         okay.
19973         Reported by Jim Meyering.
19974
19975 2009-09-08  Eric Blake  <ebb9@byu.net>
19976
19977         fstatat: fix compilation on Solaris
19978         * lib/fstatat.c (includes): Add fcntl.h.
19979         Reported by Pádraig Brady.
19980
19981 2009-09-07  Eric Blake  <ebb9@byu.net>
19982
19983         rename: modernize replacement
19984         * modules/rename (Depends-on): Add stdio.
19985         (configure.ac): Declare witness.
19986         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
19987         stdio take care of replacement.
19988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
19989         * modules/stdio (Makefile.am): Substitute them.
19990         * lib/stdio.in.h (rename): Declare replacement.
19991         * lib/rename.c (includes): Allow cross-compilation to non-windows
19992         machines.
19993         * doc/posix-functions/rename.texi (rename): Improve
19994         documentation.
19995
19996         stdio: sort witness names
19997         * modules/stdio (Makefile.am): Sort replacements.
19998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19999         * lib/stdio.in.h: Likewise.
20000
20001         getcwd: minor cleanups
20002         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20003         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20004
20005         openat: provide more convenience names
20006         * modules/faccessat (configure.ac): Add C witness.
20007         * lib/unistd.in.h (readlinkat): Fix typo.
20008         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20009         convenience wrappers.
20010         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20011         wrappers in syntax checks.
20012
20013 2009-09-06  Eric Blake  <ebb9@byu.net>
20014
20015         doc: fix comments in recent patches
20016         * lib/faccessat.c: Mention correct function.
20017         * lib/fchmodat.c: Likewise.
20018         * lib/fchownat.c: Likewise.
20019         * lib/symlinkat.c: Likewise.
20020         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20021         constants.
20022
20023         faccessat, symlinkat: continue cleanup of previous patch
20024         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20025         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20026         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20028         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20029         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20030         set.
20031
20032 2009-09-06  Bruno Haible  <bruno@clisp.org>
20033
20034         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20035         (fstatat): Declare if GNULIB_FSTATAT is set.
20036         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20037         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20038         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20039         * modules/fcntl-h (Files): Remove m4/openat.m4.
20040         * modules/sys_stat (Files): Remove m4/openat.m4.
20041         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20042         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20043         * modules/unistd (Files): Remove m4/openat.m4.
20044         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20045         GNULIB_OPENAT.
20046         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20047         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20049         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20050         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20051         gl_OPENAT_DEFAULTS.
20052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20053         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20054         Don't require gl_OPENAT_DEFAULTS.
20055         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20056         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20057         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20058         (gl_OPENAT_DEFAULTS): Remove macro.
20059
20060 2009-09-06  Bruno Haible  <bruno@clisp.org>
20061
20062         * modules/openat (configure.ac): Remove unneeded witness.
20063
20064 2009-09-06  Bruno Haible  <bruno@clisp.org>
20065
20066         Set errno to ENOSYS when a function is entirely unsupported.
20067         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20068         EOPNOTSUPP.
20069         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20070         * modules/chown (Depends-on): Remove errno.
20071
20072 2009-09-06  Bruno Haible  <bruno@clisp.org>
20073
20074         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20075
20076 2009-09-06  Bruno Haible  <bruno@clisp.org>
20077
20078         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20079
20080 2009-09-06  Ben Pfaff  <blp@gnu.org>
20081             Bruno Haible  <bruno@clisp.org>
20082
20083         Work around a glibc bug in strtok_r.
20084         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20085         Undefine if UNDEFINE_STRTOK_R is set.
20086         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20088         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20089         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20090         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20091         UNDEFINE_STRTOK_R.
20092         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20093
20094 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20095
20096         exclude: minor fix
20097         * lib/exclude.c: Include wctype.h
20098
20099 2009-09-06  Akim Demaille  <demaille@gostai.com>
20100
20101         bootstrap: improve error message
20102         * build-aux/bootstrap (find_tool): Upon failure, report the list
20103         of candidates.
20104         Honor the initial value of the envvar.
20105
20106 2009-09-05  Eric Blake  <ebb9@byu.net>
20107
20108         symlinkat: new module
20109         * modules/symlinkat: New file.
20110         * lib/symlinkat.c: Likewise.
20111         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20113         * modules/unistd (Makefile.am): Use them.
20114         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20115         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20116         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20117         * MODULES.html.sh (File system functions): Mention module.
20118         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20119         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20120         * modules/symlinkat-tests: New test.
20121         * tests/test-symlinkat.c: Likewise.
20122
20123         test-openat-safer: add more checks
20124         * tests/test-openat-safer.c (main): Check more code paths.
20125
20126 2009-09-05  Jim Meyering  <meyering@redhat.com>
20127
20128         syntax-check: detect unnecessary inclusion of openat.h
20129         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20130
20131 2009-09-05  Bruno Haible  <bruno@clisp.org>
20132
20133         Support towlower, towupper.
20134         * doc/posix-functions/towlower.texi: Mention module wctype.
20135         * doc/posix-functions/towupper.texi: Likewise.
20136         * lib/wctype.in.h (towlower, towupper): New functions.
20137         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20138         (ASSERT): New macro.
20139         (e): New variable.
20140         (main): Test also towlower, towupper. Test WEOF argument.
20141         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20142
20143 2009-09-05  Bruno Haible  <bruno@clisp.org>
20144
20145         Fix conversion behaviour when the input is invalid.
20146         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20147         mark occurring in first pass of indirect conversion.
20148         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20149         input.
20150         Found by clang's static analyzer.
20151
20152 2009-09-05  Bruno Haible  <bruno@clisp.org>
20153
20154         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20155         where direct conversion is possible.
20156
20157 2009-09-04  Eric Blake  <ebb9@byu.net>
20158
20159         openat: fail with ENOENT on empty name
20160         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20161         buffer.
20162
20163         link-follow: fix logic bug in prior patch
20164         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20165         reversed sense of yes and no in prior patch.  Avoid confusing
20166         compilation failure with desired semantics.
20167
20168         link-follow: accomodate mingw and cross-compilation
20169         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20170         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20171         cross-compilation results to -1, to make linkat easier to
20172         implement when cross-compiling.  Trivially support mingw.
20173         * modules/link-follow (configure.ac): Call new name.
20174         * NEWS: Mention this.
20175
20176 2009-09-03  Eric Blake  <ebb9@byu.net>
20177
20178         faccessat: compile replacement
20179         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20180         needed.
20181
20182         fts: fix compilation error
20183         * lib/fts.c (includes): Re-add "openat.h", for
20184         openat_needs_fchdir.
20185
20186         faccessat: new module
20187         * modules/faccessat: New file.
20188         * lib/faccessat.c: Likewise.
20189         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20191         * modules/unistd (Makefile.am): Use it.
20192         * lib/unistd.in.h (faccessat): Declare it.
20193         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20194         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20195         * MODULES.html.sh (File system functions): Mention it.
20196         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20197         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20198
20199         euidaccess: prefer POSIX over non-standard implementation
20200         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20201         * lib/euidaccess.c (euidaccess): Use it if available.
20202
20203         openat: make template easier to use
20204         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20205         AT_FUNC_F2 to be undefined.
20206         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20207         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20208         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20209         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20210         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20211         Likewise.
20212         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20213         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20214         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20215         Likewise.
20216
20217         openat: declare in POSIX headers
20218         * NEWS: Mention this.
20219         * modules/openat (configure.ac): Declare witnesses.
20220         (Depends-on): Add fcntl-h, sys_stat, unistd.
20221         (Include): Mention correct headers.
20222         * modules/fcntl-h (Depends-on): Add link-warning.
20223         (Files): Add openat.m4.
20224         (Makefile.am): Substitute witnesses.
20225         * modules/sys_stat (Files, Makefile.am): Likewise.
20226         * modules/unistd (Files, Makefile.am): Likewise.
20227         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20228         (gl_OPENAT_DEFAULTS): New macro.
20229         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20232         (SYS_STAT_H): Remove unused variable.
20233         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20234         * lib/fcntl--.h (includes): Remove unneeded header.
20235         * lib/openat-safer.c (includes): Likewise.
20236         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20237         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20238         appropriate headers.
20239         (__OPENAT_PREFIX): Delete.
20240         * lib/fcntl.in.h (openat): Provide declaration.
20241         (AT_FDCWD): Fix Solaris bug.
20242         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20243         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20244         * lib/fchmodat.c (includes):  Adjust to find declaration.
20245         * lib/fchownat.c (includes): Likewise.
20246         * lib/mkdirat.c (includes): Likewise.
20247         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20248         still visible.
20249
20250 2009-09-02  Eric Blake  <ebb9@byu.net>
20251
20252         errno: use consistently
20253         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20254         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20255         * lib/canonicalize.c (ELOOP): Likewise.
20256         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20257         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20258         * lib/lchown.c (EOPNOTSUPP): Likewise.
20259         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20260         * lib/savewd.c (ESTALE): Likewise.
20261         * lib/settime.c (ENOSYS): Likewise.
20262         * lib/utimens.c (ENOSYS): Likewise.
20263         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20264         * lib/chdir-safer.c (ELOOP): Likewise.
20265         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20266         * modules/c-stack (Depends-on): Add errno.
20267         * modules/canonicalize (Depends-on): Likewise.
20268         * modules/chdir-safer (Depends-on): Likewise.
20269         * modules/fdopendir (Depends-on): Likewise.
20270         * modules/inet_ntop (Depends-on): Likewise.
20271         * modules/inet_pton (Depends-on): Likewise.
20272         * modules/lchown (Depends-on): Likewise.
20273         * modules/openat (Depends-on): Likewise.
20274         * modules/savewd (Depends-on): Likewise.
20275         * modules/settime (Depends-on): Likewise.
20276         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20277
20278         fts: avoid leaking fds
20279         * modules/fts (Depends-on): Add cloexec.
20280         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20281         flag.
20282
20283         fts: make directory fds more robust
20284         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20285         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20286
20287         backupfile, chdir-long, fts, savedir: make safer
20288         * lib/backupfile.c (includes): Use "dirent--.h", since
20289         numbered_backup can write to stderr during readdir.
20290         * lib/savedir.c (includes): Likewise.
20291         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20292         emulation can write to stderr on failure.
20293         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20294         * lib/getcwd.c: Document why opendir_safer is unused.
20295         * lib/glob.c: Likewise.
20296         * lib/scandir.c: Likewise.
20297         * lib/openat-proc.c: Likewise, for open_safer.
20298         * modules/backupfile (Depends-on): Add dirent-safer.
20299         * modules/savedir (Depends-on): Likewise.
20300         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20301         * modules/chdir-long (Depends-on): Add openat-safer.
20302
20303         openat-safer: new module
20304         * modules/openat-safer: New file.
20305         * lib/openat-safer.c: Likewise.
20306         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20307         * lib/fcntl-safer.h (openat_safer): Declare.
20308         * lib/fcntl--.h (openat): Override.
20309         * MODULES.html.sh (File descriptor based I/O): Mention it.
20310         * lib/openat.h: Add double-inclusion guards.
20311         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20312         "fcntl--.h", so we can implement openat.
20313         * modules/openat-safer-tests: New test.
20314         * tests/test-openat-safer.c: New file.
20315
20316         dirent-safer: new module
20317         * modules/dirent-safer: New file.
20318         * lib/dirent--.h: Likewise.
20319         * lib/dirent-safer.h: Likewise.
20320         * lib/opendir-safer.c: Likewise.
20321         * m4/dirent-safer.m4: Likewise.
20322         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20323         * modules/dirent-safer-tests: New test.
20324         * tests/test-dirent-safer.c: New file.
20325         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20326
20327         fdopendir: optimize on mingw
20328         * lib/unistd.in.h (_gl_directory_name): New prototype.
20329         * lib/fchdir.c (_gl_directory_name): Implement it.
20330         (fchdir): Use it to simplify implementation.
20331         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20332         fchdir, when available, to avoid calling [f]chdir().
20333
20334         fdopendir: split into its own module
20335         * lib/openat.c (fdopendir): Move...
20336         * lib/fdopendir.c: ...into new file.
20337         * modules/fdopendir: New module.
20338         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20339         * modules/openat (Depends-on): Add fdopendir.
20340         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
20341         fdopendir here.
20342         * modules/savedir (Depends-on): Only need fdopendir, not full
20343         openat.
20344         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
20345         * lib/openat.h (fdopendir): Drop prototype.
20346         * lib/dirent.in.h (fdopendir): Provide prototype.
20347         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
20348         * modules/dirent (Makefile.am): Substitute them.
20349         * MODULES.html.sh (File system functions): Mention it.
20350         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
20351         * modules/fdopendir-tests: New file.
20352         * tests/test-fdopendir.c: Likewise.
20353
20354         fchdir: use more consistent macro convention
20355         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
20356         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
20357         REPLACE_FCHDIR, rather than relying on config.h macros.
20358         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
20359         inside a single make-time REPLACE_FCHDIR block, rather than using
20360         the config.h FCHDIR_REPLACEMENT.
20361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
20362         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
20363         Manage fstat replacement.
20364         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
20365         REPLACE_FCHDIR.
20366         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20367         (Makefile.am): Substitute REPLACE_FCHDIR.
20368         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20369         FCHDIR_REPLACEMENT.
20370         * lib/dup-safer.c (dup_safer): Likewise.
20371         * lib/dup2.c (rpl_dup2): Likewise.
20372         * lib/dup3.c (rpl_dup3): Likewise.
20373         * lib/open.c (rpl_open): Likewise.
20374
20375         fchdir: simplify error handling, and support dup3
20376         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20377         stdbool, malloc-posix, realloc-posix.
20378         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20379         (ensure_dirs_slot): Return false on allocation failure.
20380         (rpl_dup2): Delete.
20381         (_gl_register_dup): New function.
20382         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20383         (_gl_register_fd): Close fd on allocation failure.
20384         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20385         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20386         prototype.
20387         (rpl_dup2_fchdir): Delete prototype.
20388         * lib/open.c (open): Update caller.
20389         * lib/dup2.c (dup2): Track fchdir metadata.
20390         * lib/dup3.c (dup3): Likewise.
20391         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20393
20394 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20395
20396         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20397         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20398         don't pass arguments to AC_OUTPUT.
20399
20400 2009-09-02  Bruno Haible  <bruno@clisp.org>
20401
20402         * modules/mkdtemp (License): Relicense under LGPLv2+.
20403         Reported by Paolo Bonzini.
20404
20405 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20406
20407         Replace uses of obsolete autoconf macros in Jim's modules.
20408         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20409         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20410         can evoke a warning from autoconf when run with -Wobsolete
20411         enabled.  They were declared obsolete for good reasons (see
20412         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20413         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
20414         should not continue using the deprecated macros.
20415         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
20416         obsolete Autoconf macros with modern counterparts.
20417         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20418         * m4/dos.m4 (gl_AC_DOS): Likewise.
20419         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
20420         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20421         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
20422         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
20423         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
20424         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20425         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
20426         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
20427         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20428         Likewise.
20429         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20430         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20431         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
20432         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
20433         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20434         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20435
20436 2009-09-01  Eric Blake  <ebb9@byu.net>
20437
20438         fchdir: fix off-by-one bug in previous patch
20439         * lib/fchdir.c (rpl_fstat): Use correct bounds.
20440         (_gl_unregister_fd): Delete useless if.
20441
20442 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
20443
20444         maint.mk: sort the list of syntax-check rules
20445         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
20446         easier to get a sense of progress when the rules are run sequentially
20447         and take a long time.
20448
20449 2009-09-01  Simon Josefsson  <simon@josefsson.org>
20450
20451         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
20452         * modules/netinet_in: Likewise.
20453         * modules/sys_file: Likewise.
20454         * modules/sys_ioctl: Likewise.
20455         * modules/sys_select: Likewise.
20456         * modules/sys_socket: Likewise.
20457         * modules/sys_stat: Likewise.
20458         * modules/sys_time: Likewise.
20459         * modules/sys_times: Likewise.
20460         * modules/sys_utsname: Likewise.
20461         * modules/sys_wait: Likewise.
20462
20463 2009-09-01  Jim Meyering  <meyering@redhat.com>
20464
20465         fts: help ensure that return values are not ignored
20466         * lib/fts_.h (__GNUC_PREREQ): Define.
20467         (__attribute_warn_unused_result__): Define.
20468         (fts_children, fts_close, fts_open, fts_read): Declare with
20469         __attribute_warn_unused_result__.
20470
20471         fts: fts_close now fails also when closing a dir file descriptor fails
20472         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
20473         and propagate to caller, along with errno.
20474
20475         announce-gen: correct formatting in --help output
20476         * build-aux/announce-gen (usage): Move the one-line description in
20477         --help output "up", to where it belongs, just after Usage:.
20478
20479 2009-08-31  Eric Blake  <ebb9@byu.net>
20480
20481         fchdir: port to mingw
20482         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
20483         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
20484         opened, then use a substitute.
20485         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
20486         replacement.
20487         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
20488         (_gl_register_fd): No need to check stat if open already filters
20489         all directories.
20490         (fchdir): Fix error condition to match POSIX.
20491         * modules/fchdir (Depends-on): Add sys_stat.
20492         * doc/posix-functions/open.texi (open): Document the limitation.
20493         * modules/fchdir-tests: New file.
20494         * tests/test-fchdir.c: Likewise.
20495
20496         canonicalize: allow cross-testing from cygwin to mingw
20497         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
20498         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
20499         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
20500         Likewise.
20501         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
20502         target does not support symlinks.
20503         * tests/test-canonicalize-lgpl.sh: Likewise.
20504
20505         chown: avoid compilation warning on mingw
20506         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
20507         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
20508         mingw.
20509         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20510         * modules/chown (Depends-on): Add errno.
20511
20512 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20513
20514         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
20515         command.
20516
20517 2009-08-31  Jim Meyering  <meyering@redhat.com>
20518
20519         canonicalize: remove useless initialization
20520         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
20521         initialization of local, "end".
20522
20523 2009-08-30  Bruno Haible  <bruno@clisp.org>
20524
20525         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
20526         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
20527         ENOSYS.
20528
20529 2009-08-30  Bruno Haible  <bruno@clisp.org>
20530
20531         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
20532         /usr/xpg4/bin/tr when it exists.
20533         * tests/test-pipe-filter-gi1.sh: Likewise.
20534
20535 2009-08-30  Bruno Haible  <bruno@clisp.org>
20536
20537         Work around deficient /usr/bin/id program on Solaris.
20538         * tests/test-file-has-acl.sh (ID): New variable.
20539         * tests/test-set-mode-acl.sh (ID): Likewise.
20540         * tests/test-copy-acl.sh (ID): Likewise.
20541         * tests/test-copy-file.sh (ID): Likewise.
20542
20543 2009-08-30  Bruno Haible  <bruno@clisp.org>
20544
20545         New module 'xstriconveh'.
20546         * lib/xstriconveh.h: New file.
20547         * lib/xstriconveh.c: New file.
20548         * modules/xstriconveh: New file.
20549
20550 2009-08-30  Bruno Haible  <bruno@clisp.org>
20551
20552         Make it easier to use mem_cd_iconveh.
20553         * lib/striconveh.h (iconveh_t): New type.
20554         (iconveh_open, iconveh_close): New declarations.
20555         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20556         with a single 'const iconveh_t *' argument.
20557         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
20558         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20559         with a single 'const iconveh_t *' argument.
20560         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
20561         * tests/test-striconveh.c (main): Update.
20562         * NEWS: Mention the change.
20563
20564 2009-08-30  Bruno Haible  <bruno@clisp.org>
20565
20566         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
20567         problem.
20568
20569 2009-08-30  Bruno Haible  <bruno@clisp.org>
20570
20571         Work around iconv_open problem on Solaris.
20572         * lib/iconv_open-solaris.gperf: New file.
20573         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
20574         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
20575         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
20576         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
20577         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
20578         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
20579
20580 2009-08-29  Jim Meyering  <meyering@redhat.com>
20581
20582         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
20583         * top/maint.mk (cvs-check): Remove target; it was just an alias
20584         to the better-named vc-diff-check.
20585         (maintainer-distcheck): Remove rule.  It was used only from
20586         the (alpha/beta/major) target, and all of its commands but one
20587         were coreutils-specific.
20588         (vc-dist): Remove rule.
20589         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
20590         Run vc-diff-check, not vc-dist.
20591         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
20592
20593 2009-08-27  Bruno Haible  <bruno@clisp.org>
20594
20595         * tests/test-bitrotate.c (main): Remove test that uses a shift count
20596         of 0.
20597
20598 2009-08-27  Bruno Haible  <bruno@clisp.org>
20599
20600         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
20601         compilers.
20602         * doc/func.texi: Document the SunPRO C bug.
20603
20604 2009-08-27  Bruno Haible  <bruno@clisp.org>
20605
20606         Fix link error on Solaris.
20607         * tests/test-parse-duration.c (xstrdup): Remove function.
20608
20609 2009-08-26  Pádraig Brady  <P@draigbrady.com>
20610
20611         ignore-value: handle pointer types, too
20612         * lib/ignore-value.h (__attribute__): Remove definition.
20613         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
20614         of a more concise and more-often effective "(void) i" statement.
20615         (ignore_ptr): New function to suppress warnings from functions that
20616         return pointers, and to make it explicit that one function doesn't
20617         handle all cases.
20618
20619 2009-08-25  Bruno Haible  <bruno@clisp.org>
20620
20621         dup2: work around a Linux bug.
20622         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
20623         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
20624         * doc/posix-functions/dup2.texi: Mention the Linux bug.
20625         Reported by Simon Josefsson.
20626
20627 2009-08-25  Jim Meyering  <meyering@redhat.com>
20628
20629         libguestfs uses gnulib
20630         * users.txt: Add libguestfs.
20631
20632 2009-08-24  Eric Blake  <ebb9@byu.net>
20633
20634         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
20635         * lib/pipe2.c (includes): Add binary-io.h.
20636         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
20637
20638 2009-08-24  Bruno Haible  <bruno@clisp.org>
20639
20640         Tolerate declared but missing accept4 syscall.
20641         * lib/accept4.c (accept4): Invoke original accept4 function first, if
20642         available.
20643         * lib/sys_socket.in.h (accept4): If the function is already present,
20644         override it.
20645         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
20646         * modules/accept4 (Makefile.am): Compile accept4.c always.
20647         Reported by Paolo Bonzini and Eric Blake.
20648
20649 2009-08-23  Bruno Haible  <bruno@clisp.org>
20650
20651         New module 'accept4'.
20652         * lib/sys_socket.in.h (accept4): New declaration.
20653         * lib/accept4.c: New file.
20654         * m4/accept4.m4: New file.
20655         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20656         GNULIB_ACCEPT4, HAVE_ACCEPT4.
20657         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
20658         HAVE_ACCEPT4.
20659         * modules/accept4: New file.
20660         * doc/glibc-functions/accept4.texi: Mention the new module.
20661
20662 2009-08-24  Jim Meyering  <meyering@redhat.com>
20663
20664         progname: also set global program_invocation_name, when possible
20665         Before this change, a libtool-enabled program that calls glibc's
20666         error function would report the program name as
20667         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
20668         * modules/progname (configure.ac): Check for a declaration of
20669         program_invocation_name.
20670         * lib/progname.c:  Include <errno.h>.
20671         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
20672         Set program_invocation_name.
20673
20674 2009-08-23  Bruno Haible  <bruno@clisp.org>
20675
20676         * lib/dup3.c: Include <string.h>.
20677
20678 2009-08-23  Bruno Haible  <bruno@clisp.org>
20679
20680         * lib/dup3.c (dup3): Test only once whether the system actually exists.
20681         * lib/pipe2.c (pipe2): Likewise.
20682         Suggested by Eric Blake.
20683
20684 2009-08-23  Bruno Haible  <bruno@clisp.org>
20685
20686         Tolerate declared but missing dup3 syscall.
20687         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
20688         * lib/unistd.in.h (dup3): If the function is already present,
20689         override it.
20690         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
20691         * modules/dup3 (Makefile.am): Compile dup3.c always.
20692         Reported by Paolo Bonzini.
20693
20694 2009-08-23  Bruno Haible  <bruno@clisp.org>
20695
20696         Tolerate declared but missing pipe2 syscall.
20697         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
20698         available.
20699         * lib/unistd.in.h (pipe2): If the function is already present,
20700         override it.
20701         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
20702         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
20703         Reported by Paolo Bonzini.
20704
20705 2009-08-23  Bruno Haible  <bruno@clisp.org>
20706
20707         * lib/pipe2.c (pipe2): Move #ifs inside function.
20708
20709 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20710
20711         quotearg: document limitations of quote_these_too
20712         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
20713         those limitations are created.
20714         * lib/quotearg.h (set_char_quoting): Document that digits and
20715         letters that are special after backslash are not permitted.
20716         (quotearg_char): Cross-reference set_char_quoting documentation.
20717
20718 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
20719
20720         quotearg: implement custom_quoting_style
20721         * lib/quotearg.c: (struct quoting_options): Add left_quote and
20722         right_quote fields.
20723         (set_custom_quoting): New public function.
20724         (quotearg_buffer_restyled): Add left_quote and right_quote
20725         arguments, handle them very much like locale quoting, and update
20726         all uses.
20727         (quotearg_n_custom): New public function.
20728         (quotearg_n_custom_mem): New public function.
20729         (quotearg_custom): New public function.
20730         (quotearg_custom_mem): New public function.
20731         * lib/quotearg.h: Prototype and document new public functions.
20732         (enum quoting_style): For escape_quoting_style and
20733         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
20734         ignored even though they're otherwise like c_quoting_style.
20735         Add custom_quoting_style member and document with comparison to
20736         clocale_quoting_style.
20737         * tests/test-quotearg.c (custom_quotes): New array.
20738         (custom_results): New array.
20739         (main): Extend to test custom quoting.
20740
20741 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20742
20743         quotearg: fix right quote escaping when it's in quote_these_too
20744         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
20745         quote, be sure to prepend only one backslash.
20746         * tests/test-quotearg.c (use_quote_double_quotes): New function.
20747         (main): Test it.
20748
20749 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20750
20751         quotearg-tests: test escaping of embedded locale quotes
20752         * tests/test-quotearg.c (struct result_strings): Add member for
20753         new input.
20754         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
20755         (inputs): Add new input.
20756         (results_g): Add expected results.
20757         (flag_results): Likewise.
20758         (locale_results): Likewise.
20759         (compare_strings): Check those.
20760
20761 2009-08-23  Bruno Haible  <bruno@clisp.org>
20762
20763         Tests for module 'dup3'.
20764         * modules/dup3-tests: New file.
20765         * tests/test-dup3.c: New file.
20766
20767         New module 'dup3'.
20768         * lib/unistd.in.h (dup3): New declaration.
20769         * lib/dup3.c: New file.
20770         * m4/dup3.m4: New file.
20771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
20772         HAVE_DUP3.
20773         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
20774         * modules/dup3: New file.
20775         * doc/glibc-functions/dup3.texi: Mention the new module.
20776
20777 2009-08-23  Bruno Haible  <bruno@clisp.org>
20778
20779         Tweak the dup2 test.
20780         * tests/test-dup2.c (main): Create the test file empty. Verify that an
20781         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
20782         the test file is still empty. Fix argument order of lseek.
20783
20784 2009-08-23  Bruno Haible  <bruno@clisp.org>
20785
20786         Avoid test link errors when the modules getopt-gnu, gettext are used.
20787         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
20788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20789
20790 2009-08-23  Bruno Haible  <bruno@clisp.org>
20791
20792         Fix getdtablesize() on mingw.
20793         * lib/getdtablesize.c (getdtablesize): Implement differently.
20794         * lib/unistd.in.h (getdtablesize): Improve comment.
20795
20796 2009-08-23  Bruno Haible  <bruno@clisp.org>
20797
20798         New module 'mkostemp'.
20799         Based on Ulrich Drepper's 2007-08-10 change in glibc.
20800         * lib/stdlib.in.h (mksotemp): New declaration.
20801         * lib/mkostemp.c: New file, from glibc with modifications.
20802         * lib/tempname.h (GT_FILE): Remove outdated comment.
20803         (gen_tempname): Add flags argument.
20804         * lib/tempname.c (__GT_BIGFILE): Remove macro.
20805         (__GT_FILE): Map to 1.
20806         (small_open, large_open): Remove macros.
20807         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
20808         * lib/mkstemp.c (mkstemp): Update.
20809         * lib/mkdtemp.c (mkdtemp): Likewise.
20810         * m4/mkostemp.m4: New file.
20811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
20812         HAVE_MKOSTEMP.
20813         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
20814         HAVE_MKOSTEMP.
20815         * modules/mkostemp: New file, based on modules/mkstemp.
20816         * doc/glibc-functions/mkostemp.texi: Mention the new module.
20817         * NEWS: Mention the change.
20818
20819 2009-08-23  Bruno Haible  <bruno@clisp.org>
20820
20821         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
20822         Reported by Eric Blake.
20823
20824 2009-08-23  Bruno Haible  <bruno@clisp.org>
20825
20826         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
20827         Reported by Eric Blake.
20828
20829 2009-08-23  Bruno Haible  <bruno@clisp.org>
20830
20831         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
20832         * modules/pipe2 (Depends-on): Likewise.
20833
20834 2009-08-23  Eric Blake  <ebb9@byu.net>
20835
20836         fcntl-h: add O_TTY_INIT support
20837         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
20838         * tests/test-fcntl-h.c (o): Test it.
20839         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20840
20841         fcntl-h: rename from fcntl, in preparation for fcntl(2)
20842         * modules/fcntl: Move <fcntl.h> header replacement...
20843         * modules/fcntl-h: ...to new name, so as not to collide with
20844         like-named function.
20845         * tests/test-fcntl.c: Rename...
20846         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
20847         * modules/fcntl-tests: Rename...
20848         * modules/fcntl-h-tests: ...to this.  Update test file name.
20849         * modules/chdir-long (Depends-on): Update clients.
20850         * modules/chdir-safer (Depends-on): Likewise.
20851         * modules/fcntl-safer (Depends-on): Likewise.
20852         * modules/fts (Depends-on): Likewise.
20853         * modules/mkancesdirs (Depends-on): Likewise.
20854         * modules/mkdir-p (Depends-on): Likewise.
20855         * modules/open (Depends-on): Likewise.
20856         * modules/savewd (Depends-on): Likewise.
20857         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
20858         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20859
20860 2009-08-22  Bruno Haible  <bruno@clisp.org>
20861
20862         * modules/binary-io (License): Relicense under LGPL.
20863         * modules/pipe2 (License): Likewise.
20864
20865 2009-08-22  Bruno Haible  <bruno@clisp.org>
20866
20867         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
20868         return value.
20869         * lib/pipe-filter-gi.c (filter_init): Likewise.
20870         Reported by Eric Blake.
20871
20872 2009-08-22  Bruno Haible  <bruno@clisp.org>
20873
20874         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
20875         * modules/pipe (Depends-on): Add pipe2.
20876
20877 2009-08-22  Bruno Haible  <bruno@clisp.org>
20878
20879         Tests for module 'pipe2'.
20880         * modules/pipe2-tests: New file.
20881         * tests/test-pipe2.c: New file.
20882
20883         New module 'pipe2'.
20884         * lib/unistd.in.h (pipe2): New declaration.
20885         * lib/pipe2.c: New file.
20886         * m4/pipe2.m4: New file.
20887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
20888         HAVE_PIPE2.
20889         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
20890         * modules/pipe2: New file.
20891         * doc/glibc-functions/pipe2.texi: Mention the new module.
20892
20893 2009-08-22  Bruno Haible  <bruno@clisp.org>
20894
20895         Reference some new glibc functions.
20896         * doc/glibc-functions/accept4.texi: New file.
20897         * doc/glibc-functions/dup3.texi: New file.
20898         * doc/glibc-functions/mkostemp.texi: New file.
20899         * doc/glibc-functions/pipe2.texi: New file.
20900         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
20901         (Glibc sys/socket.h): Refer to accept4.
20902         (Glibc unistd.h): Refer to dup3, pipe2.
20903         Reported by Eric Blake.
20904
20905 2009-08-22  Jim Meyering  <meyering@redhat.com>
20906             Bruno Haible  <bruno@clisp.org>
20907
20908         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
20909         This makes it so packages using automake-1.11's silent-rules option
20910         can print e.g., a single "GEN    configmake.h" line, rather than
20911         the 30+ statements that perform the job.  If you want to see the
20912         actual commands, you can still run "make V=1".
20913         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
20914         so that make output is abbreviated when those variables are defined
20915         appropriately.
20916         * modules/argz: Likewise.
20917         * modules/arpa_inet: Likewise.
20918         * modules/byteswap: Likewise.
20919         * modules/configmake: Likewise.
20920         * modules/dirent: Likewise.
20921         * modules/errno: Likewise.
20922         * modules/fcntl: Likewise.
20923         * modules/float: Likewise.
20924         * modules/fnmatch: Likewise.
20925         * modules/getopt-posix: Likewise.
20926         * modules/glob: Likewise.
20927         * modules/iconv_open: Likewise.
20928         * modules/inttypes: Likewise.
20929         * modules/localcharset: Likewise.
20930         * modules/locale: Likewise.
20931         * modules/math: Likewise.
20932         * modules/netdb: Likewise.
20933         * modules/netinet_in: Likewise.
20934         * modules/poll: Likewise.
20935         * modules/posix_spawnp-tests: Likewise.
20936         * modules/sched: Likewise.
20937         * modules/search: Likewise.
20938         * modules/selinux-h: Likewise.
20939         * modules/signal: Likewise.
20940         * modules/spawn: Likewise.
20941         * modules/stdarg: Likewise.
20942         * modules/stdbool: Likewise.
20943         * modules/stddef: Likewise.
20944         * modules/stdint: Likewise.
20945         * modules/stdio: Likewise.
20946         * modules/stdlib: Likewise.
20947         * modules/string: Likewise.
20948         * modules/strings: Likewise.
20949         * modules/sys_file: Likewise.
20950         * modules/sys_ioctl: Likewise.
20951         * modules/sys_select: Likewise.
20952         * modules/sys_socket: Likewise.
20953         * modules/sys_stat: Likewise.
20954         * modules/sys_time: Likewise.
20955         * modules/sys_times: Likewise.
20956         * modules/sys_utsname: Likewise.
20957         * modules/sys_wait: Likewise.
20958         * modules/sysexits: Likewise.
20959         * modules/time: Likewise.
20960         * modules/unistd: Likewise.
20961         * modules/wchar: Likewise.
20962         * modules/wctype: Likewise.
20963
20964 2009-08-22  Jim Meyering  <meyering@redhat.com>
20965
20966         announce-gen: detect write failure
20967         * build-aux/announce-gen: Add Coda at end.
20968         Remove equivalent-but-more-verbose block at top.
20969
20970 2009-08-19  Akim Demaille  <demaille@gostai.com>
20971
20972         bootstrap: --help to stdout.
20973         * bootstrap (usage): Don't send --help to stderr.
20974         Use a here doc instead of a long string.
20975
20976 2009-08-21  Eric Blake  <ebb9@byu.net>
20977
20978         test-popen-safer: split from test-popen
20979         * tests/test-popen.c (main): Move...
20980         * tests/test-popen.h: ...into new file.
20981         * tests/test-popen-safer2.c: New file.
20982         * modules/popen-tests (Files): Add test-popen.h.
20983         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
20984         Suggested by Bruno Haible.
20985
20986         test-fcntl-safer: split from test-open
20987         * tests/test-open.c (main): Move...
20988         * tests/test-open.h: ...into new file.
20989         * tests/test-fcntl-safer.c: New file.
20990         * modules/open-tests (Files): Add test-open.h.
20991         * modules/fcntl-safer-tests: New file.
20992         Suggested by Bruno Haible.
20993
20994         test-fopen-safer: split from test-fopen
20995         * tests/test-fopen.c (main): Move...
20996         * tests/test-fopen.h: ...into new file.
20997         * tests/test-fopen-safer.c: New file.
20998         * modules/fopen-tests (Files): Add test-fopen.h.
20999         * modules/fopen-safer-tests: New file.
21000         Suggested by Bruno Haible.
21001
21002 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21003
21004         popen-safer: test O_CLOEXEC at run-time.
21005         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21006
21007 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21008
21009         fcntl: move more flags to the header
21010         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21011         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21012         * lib/fcntl.in.h: Do both things here.
21013
21014 2009-08-21  Jim Meyering  <meyering@redhat.com>
21015
21016         consistently remove $@-t before redirecting to it
21017         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21018         * modules/alloca-opt: Likewise.
21019         * modules/byteswap: Likewise.
21020         * modules/fnmatch: Likewise.
21021         * modules/getopt-posix: Likewise.
21022         * modules/glob: Likewise.
21023         * modules/poll: Likewise.
21024         * modules/posix_spawnp-tests: Likewise.
21025         * modules/sys_socket: Likewise.
21026         * modules/sysexits: Likewise.
21027
21028 2009-08-21  Eric Blake  <ebb9@byu.net>
21029
21030         popen: simplify access to original popen
21031         * lib/popen.c (rpl_popen): No need to worry about popen being a
21032         macro.
21033         Reported by Bruno Haible.
21034
21035 2009-08-20  Eric Blake  <ebb9@byu.net>
21036
21037         build: avoid some compiler warnings
21038         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21039         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21040         type.
21041         (new_exclude_segment, excluded_file_pattern_p)
21042         (excluded_file_name_p): Reduce scope.
21043         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21044         old-style declaration.
21045
21046 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21047
21048         * tests/test-exclude1.sh: Handle Windows EOL.
21049         * tests/test-exclude2.sh: Likewise.
21050         * tests/test-exclude3.sh: Likewise.
21051         * tests/test-exclude4.sh: Likewise.
21052         * tests/test-exclude5.sh: Likewise.
21053         * tests/test-exclude6.sh: Likewise.
21054         * tests/test-exclude7.sh: Likewise.
21055
21056 2009-08-19  Akim Demaille  <demaille@gostai.com>
21057
21058         bootstrap: find sha1sum when named gsha1sum.
21059         * bootstrap (find_tool): New.
21060         ($SHA1SUM): New.
21061         Use it.
21062
21063 2009-08-20  Jim Meyering  <meyering@redhat.com>
21064
21065         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21066         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21067         expression that converts "." in a file name to "\." in the resulting
21068         regexp.  Start with a dummy statement, so that prior shell variable
21069         definitions are expanded portably.  Reported by Simon Josefsson.
21070
21071 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21072
21073         Fix polling for writeability of a screen buffer.
21074         * lib/poll.c: Distinguish input and screen buffers for the
21075         Win32 implementation.
21076         * lib/select.c: Likewise.
21077
21078 2009-08-19  Eric Blake  <ebb9@byu.net>
21079
21080         popen-safer: prevent popen from clobbering std descriptors
21081         * modules/popen-safer: New file.
21082         * lib/popen-safer.c: Likewise.
21083         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21084         * lib/stdio--.h (popen): Provide override.
21085         * lib/stdio-safer.h (popen_safer): Provide declaration.
21086         * tests/test-popen.c (includes): Partially test this.
21087         * modules/popen-safer-tests: New file, for more tests.
21088         * tests/test-popen-safer.c: Likewise.
21089         * MODULES.html.sh (file stream based Input/Output): Mention it.
21090
21091         tests: test some of the *-safer modules
21092         * modules/fopen-safer (Depends-on): Add fopen.
21093         * modules/fcntl-safer (Depends-on): Add fcntl.
21094         * modules/stdlib-safer (Depends-on): Add stdlib.
21095         (configure.ac): Set indicator.
21096         * modules/unistd-safer (configure.ac): Likewise.
21097         * modules/tmpfile-safer (configure.ac): Likewise.
21098         (Depends-on): Add tmpfile.
21099         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21100         active.
21101         * tests/test-fopen.c (includes): Test safer versions when they are
21102         in use.
21103         * tests/test-open.c (includes): Likewise.
21104
21105         popen: fix cygwin 1.5 bug when stdin closed
21106         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21107         * modules/popen: New file.
21108         * modules/popen-tests: Likewise.
21109         * tests/test-popen.c: Likewise.
21110         * m4/popen.m4: Likewise.
21111         * lib/popen.c: Likewise.
21112         * lib/stdio.in.h (popen): New declaration.
21113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21114         * modules/stdio (Makefile.am): Likewise.
21115         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21116
21117 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21118
21119         maint.mk: give full control over update-copyright exclusions
21120         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21121         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21122         (update-copyright): Don't force inclusion of top-level
21123         ChangeLog.  Don't force exclusion of all COPYING files, but make
21124         them the default exclusion instead.
21125
21126 2009-08-16  Bruno Haible  <bruno@clisp.org>
21127
21128         Fix test failures on Solaris 10.
21129         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21130         tests when Solaris iconv() is used.
21131         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21132         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21133         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21134         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21135         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21136
21137 2009-08-16  Bruno Haible  <bruno@clisp.org>
21138
21139         Fix test failures on Solaris 10.
21140         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21141         'tr' program and pass it as first argument.
21142         * tests/test-pipe-filter-gi1.sh: Likewise.
21143         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21144         program as first argument.
21145         * tests/test-pipe-filter-gi1.c (main): Likewise.
21146
21147 2009-08-16  Eric Blake  <ebb9@byu.net>
21148
21149         fpurge: fix previous commits
21150         * modules/fpurge (Makefile.am): Make replacement conditional,
21151         partially reverting 2007-04-29 change; missed in previous
21152         attempt.
21153         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21154         is missing.
21155
21156 2009-08-16  Bruno Haible  <bruno@clisp.org>
21157
21158         Clarify fpurge's effect on the file position.
21159         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21160         * tests/test-fpurge.c (main): Make a second pass for checking the file
21161         position.
21162
21163 2009-08-16  Bruno Haible  <bruno@clisp.org>
21164
21165         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21166         declaration of fpurge is missing.
21167         * tests/test-fpurge.c (main): Check that the file has not more contents
21168         than expected. Close the file before removing it.
21169
21170 2009-08-15  Eric Blake  <ebb9@byu.net>
21171
21172         fpurge: don't wrap working cygwin implementation
21173         * lib/fpurge.c (fpurge): Fix comment typo.
21174         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21175         1.7 to avoid replacement.
21176         * tests/test-fpurge.c (main): Enhance test.
21177
21178 2009-08-15  Eric Blake  <ebb9@byu.net>
21179         and Jim Meyering  <meyering@redhat.com>
21180
21181         test-update-copyright: skip if perl is insufficient
21182         * tests/test-update-copyright.sh: Failure to run maintainer tool
21183         should not cause testsuite failure on cygwin 1.5.
21184
21185 2009-08-14  Eric Blake  <ebb9@byu.net>
21186
21187         doc: mention more functions added in cygwin 1.7.0
21188         * doc/posix-headers/limits.texi (limits.h): Update for recent
21189         cygwin additions.
21190         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21191         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21192         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21193         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21194         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21195
21196 2009-08-14  Eric Blake  <ebb9@byu.net>
21197
21198         maint.mk: simplify update-copyright rule
21199         * top/maint.mk (update-copyright-local): Delete, and document how
21200         to do it in cfg.mk instead.
21201         (update-copyright-exclude-regexp): Delete, and document how to do
21202         it in .x-update-copyright instead.
21203         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21204         exclude ChangeLog.
21205
21206 2009-08-14  Bruno Haible  <bruno@clisp.org>
21207
21208         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21209
21210 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21211
21212         maint.mk: support update-copyright-env
21213         * top/maint.mk (update-copyright-env): Define place-holder.
21214         (update-copyright): Expand $(update-copyright-env) before
21215         invoking update-copyright.
21216
21217 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21218
21219         update-copyright: implement forced reformatting
21220         * build-aux/update-copyright: Implement and document
21221         UPDATE_COPYRIGHT_FORCE.
21222         * tests/test-update-copyright.sh: Test it.
21223
21224 2009-08-14  Eric Blake  <ebb9@byu.net>
21225         and Bruno Haible  <bruno@clisp.org>
21226
21227         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21228         * tests/test-locale.c: Revert previous patch related to NULL.
21229         * tests/test-stdio.c: Likewise.
21230         * tests/test-stdlib.c: Likewise.
21231         * tests/test-string.c: Likewise.
21232         * tests/test-unistd.c: Likewise.
21233         * modules/time-tests (Depends-on): Add verify.
21234         * modules/wchar-tests (Depends-on): Likewise.
21235         * tests/test-time.c: Test for NULL compliance.
21236         * tests/test-wchar.c: Likewise.
21237         * modules/locale (Depends-on): Add stddef.
21238         * modules/stdio (Depends-on): Likewise.
21239         * modules/stdlib (Depends-on): Likewise.
21240         * modules/string (Depends-on): Likewise.
21241         * modules/time (Depends-on): Likewise.
21242         * modules/unistd (Depends-on): Likewise.
21243         * modules/wchar (Depends-on): Likewise.
21244         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21245         * lib/stdlib.in.h (includes): Likewise.
21246         * lib/string.in.h (includes): Likewise.
21247         * lib/time.in.h (includes): Likewise.
21248         * lib/unistd.in.h (includes): Likewise.
21249         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21250         replaced.
21251         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21252         * m4/stddef_h.m4: New file.
21253         * modules/stddef: Likewise.
21254         * lib/stddef.in.h: Likewise.
21255         * modules/stddef-tests: Likewise.
21256         * tests/test-stddef.c: Likewise.
21257         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21258         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21259         * doc/posix-headers/locale.texi (locale.h): Likewise.
21260         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21261         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21262         * doc/posix-headers/string.texi (string.h): Likewise.
21263         * doc/posix-headers/time.texi (time.h): Likewise.
21264         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21265         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21266
21267 2009-08-14  Eric Blake  <ebb9@byu.net>
21268
21269         doc: improve git diff of texinfo files
21270         * .gitattributes: Add rule for *.texi files, with hint on how to
21271         use it.
21272         Copied from m4, and based on a report by Bruno Haible.
21273
21274 2009-08-14  Bruno Haible  <bruno@clisp.org>
21275
21276         Disable multithread support by default on Cygwin 1.5.x for real.
21277         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21278
21279 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21280
21281         update-copyright: much ado about intervals
21282         * build-aux/update-copyright: Implement and document
21283         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21284         of copyright year intervals.
21285         Also, document UPDATE_COPYRIGHT_YEAR.
21286         * tests/test-update-copyright.sh: Test it.
21287
21288         update-copyright: convert 2-digit to 4-digit years
21289         * build-aux/update-copyright: Implement and document.
21290         * tests/test-update-copyright.sh: Update.
21291
21292 2009-08-14  Jim Meyering  <meyering@redhat.com>
21293
21294         test-exclude: avoid coreutils "make check" failure
21295         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21296         just as in test-argmatch.c.
21297
21298 2009-08-13  Eric Blake  <ebb9@byu.net>
21299
21300         test-dup2: fix bad assumption
21301         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21302         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21303
21304         test-version-etc: fix CRLF portability issue
21305         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21306         recognize \r.
21307         * tests/test-argp-version-etc-1.sh: Likewise.
21308
21309         getopt: update client modules
21310         * modules/argp (Depends-on): Use getopt-gnu.
21311         * modules/git-merge-changelog (Depends-on): Likewise.
21312         * modules/long-options (Depends-on): Likewise.
21313         * modules/xstrtol (Depends-on): Likewise.
21314
21315 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21316
21317         * tests/test-version-etc.sh: Don't fail on different
21318         project/version.  Don't fail on CRLF differences.  Rewrite to use
21319         multiple -e instead of multiple sed forks, suggested by Eric Blake
21320         <ebb9@byu.net>.
21321         * tests/test-argp-version-etc-1.sh: Likewise.
21322
21323 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21324
21325         * tests/test-version-etc.sh: Don't fail on different
21326         project/version.
21327
21328 2009-08-12  Bruno Haible  <bruno@clisp.org>
21329
21330         Tests for modules 'getopt-posix', 'getopt-gnu'.
21331         * modules/getopt-posix-tests: New file.
21332         * tests/test-getopt.c: New file.
21333         * tests/test-getopt.h: New file.
21334         * tests/test-getopt_long.h: New file.
21335
21336         New modules 'getopt-posix', 'getopt-gnu'.
21337         * modules/getopt-gnu: New file, renamed from modules/getopt.
21338         * modules/getopt-posix: New file.
21339         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
21340         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
21341         (gl_GETOPT): Remove macro.
21342         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
21343         Disable the test against BSD systems that declare optreset. Test
21344         against mingw bug. Test against lack of support of optional arguments
21345         on many platforms.
21346         * doc/glibc-headers/getopt.texi: Update module name and list of
21347         relevant platforms.
21348         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
21349         'getopt-gnu' and more portability problems.
21350         * NEWS: Mention the changes.
21351
21352 2009-08-12  Bruno Haible  <bruno@clisp.org>
21353
21354         Ensure that optarg etc. get declared by <unistd.h>.
21355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
21356         AC_USE_SYSTEM_EXTENSIONS.
21357         * modules/getopt (Depends-on): Add 'extensions'.
21358
21359 2009-08-12  Bruno Haible  <bruno@clisp.org>
21360
21361         Avoid test link errors.
21362         * modules/pipe-filter-ii-tests (Makefile.am): Define
21363         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
21364         * modules/pipe-filter-gi-tests (Makefile.am): Define
21365         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21366         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21367
21368 2009-08-12  Bruno Haible  <bruno@clisp.org>
21369
21370         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21371         gl_GETOPT_SUBSTITUTE before.
21372         (gl_GETOPT): Use it.
21373         * m4/argp.m4 (gl_ARGP): Update.
21374         Reported by Sergey Poznyakoff.
21375
21376         * m4/getopt.m4: Reorder macros.
21377         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21378         (gl_GETOPT_SUBSTITUTE): Remove macro.
21379
21380 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21381
21382         Minor improvement in gitlog-to-changelog
21383
21384         * build-aux/gitlog-to-changelog: New option `--format' makes
21385         output format string configurable.
21386
21387 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21388
21389         Optimize exclude: use hash tables for non-wildcard patterns.
21390
21391         * lib/exclude.c: Include hash.h and mbuiter.h
21392         (struct exclude_pattern, exclude_segment): New data types.
21393         (struct exclude): Rewrite.
21394         (fnmatch_pattern_has_wildcards): New function.
21395         (new_exclude_segment, free_exclude_segment): New functions.
21396         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21397         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21398         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21399         * modules/exclude: Depend on hash and mbuiter.
21400
21401         * modules/exclude-tests: New file.
21402         * tests/test-exclude.c: New file.
21403         * tests/test-exclude1.sh: New file.
21404         * tests/test-exclude2.sh: New file.
21405         * tests/test-exclude3.sh: New file.
21406         * tests/test-exclude4.sh: New file.
21407         * tests/test-exclude5.sh: New file.
21408         * tests/test-exclude6.sh: New file.
21409         * tests/test-exclude7.sh: New file.
21410
21411 2009-08-12  Bruno Haible  <bruno@clisp.org>
21412
21413         Ensure that getopt() gets declared by <unistd.h>.
21414         * lib/unistd.in.h: Conditionally include getopt.h.
21415         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
21416         Set GNULIB_UNISTD_H_GETOPT.
21417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21418         GNULIB_UNISTD_H_GETOPT.
21419         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
21420
21421 2009-08-12  Bruno Haible  <bruno@clisp.org>
21422
21423         Clarify logic.
21424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
21425         gl_replace_getopt instead of GETOPT_H.
21426
21427 2009-08-12  Bruno Haible  <bruno@clisp.org>
21428
21429         * m4/getopt.m4: Add comments.
21430
21431 2009-08-12  Bruno Haible  <bruno@clisp.org>
21432
21433         Disable multithread support by default on Cygwin 1.5.x.
21434         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
21435         set gl_use_threads=no if not specified otherwise.
21436
21437 2009-08-11  Bruno Haible  <bruno@clisp.org>
21438
21439         Avoid compilation error on NetBSD 5.0.
21440         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
21441         * tests/test-stdio.c: Likewise.
21442         * tests/test-stdlib.c: Likewise.
21443         * tests/test-string.c: Likewise.
21444         * tests/test-unistd.c: Likewise.
21445         Reported by Greg Troxel <gdt@ir.bbn.com>
21446         at <https://savannah.gnu.org/support/?106973>.
21447
21448 2009-08-11  Bruno Haible  <bruno@clisp.org>
21449
21450         * modules/dup2-tests (Depends-on): Remove close.
21451
21452         Undo 2009-07-19 commit.
21453         * modules/acl-tests (Depends-on): Remove close.
21454         * modules/binary-io-tests (Depends-on): Likewise.
21455         * modules/closein-tests (Depends-on): Likewise.
21456         * modules/flock-tests (Depends-on): Likewise.
21457         * modules/fsync-tests (Depends-on): Likewise.
21458         * modules/lseek-tests (Depends-on): Likewise.
21459         * modules/pipe-tests (Depends-on): Likewise.
21460         * modules/posix_spawn-tests (Depends-on): Likewise.
21461         * modules/posix_spawnp-tests (Depends-on): Likewise.
21462         * modules/stat-time-tests (Depends-on): Likewise.
21463         * modules/yesno-tests (Depends-on): Likewise.
21464
21465 2009-08-10  Bruno Haible  <bruno@clisp.org>
21466
21467         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
21468
21469 2009-08-10  Bruno Haible  <bruno@clisp.org>
21470
21471         Fix a gcc warning.
21472         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
21473
21474 2009-08-10  Bruno Haible  <bruno@clisp.org>
21475
21476         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
21477         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
21478         not only the first time.
21479         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
21480         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
21481         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
21482         is 1, not only the the first time.
21483
21484 2009-08-10  Bruno Haible  <bruno@clisp.org>
21485
21486         Make it possible to use module 'gethostname' without module 'close'.
21487         * lib/unistd.in.h (close): Evoke a link error only if
21488         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21490         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21491         * modules/unistd (Makefile.am): Substitute
21492         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21493         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
21494         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21495         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21496         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21497         * modules/sys_ioctl (Makefile.am): Substitute
21498         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21499         * modules/socket (configure.ac): On native Windows, set
21500         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
21501         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21502         Reported by Sam Steingold <sds@gnu.org>.
21503
21504 2009-08-10  Bruno Haible  <bruno@clisp.org>
21505
21506         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
21507         * modules/ioctl (configure.ac): Likewise.
21508
21509 2009-08-10  Bruno Haible  <bruno@clisp.org>
21510
21511         Avoid collision between gnulib wrapper and libintl wrapper.
21512         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
21513         already defined in intl/printf.c.
21514         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
21515         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
21516
21517 2009-08-09  Bruno Haible  <bruno@clisp.org>
21518
21519         Make <sys/select.h> really self-contained, also on Solaris 10.
21520         * lib/sys_select.in.h: Include <string.h>.
21521         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
21522         Solaris 10 problem.
21523         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
21524         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
21525         Reported by Jim Meyering.
21526
21527 2009-08-09  Bruno Haible  <bruno@clisp.org>
21528
21529         Avoid warnings from 'aclocal' that are due to a use of macro name
21530         AM_XGETTEXT_OPTION that is not defined in automake.
21531         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
21532         automake.
21533         * modules/error (configure.ac): Likewise.
21534         * modules/propername (configure.ac): Likewise.
21535         * modules/vasprintf (configure.ac): Likewise.
21536         * modules/verror (configure.ac): Likewise.
21537         * modules/xprintf (configure.ac): Likewise.
21538         * modules/xvasprintf (configure.ac): Likewise.
21539
21540 2009-08-08  Bruno Haible  <bruno@clisp.org>
21541
21542         Avoid compilation error in C++ mode.
21543         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
21544         Reported by Sam Steingold <sds@gnu.org>.
21545
21546 2009-08-08  Bruno Haible  <bruno@clisp.org>
21547
21548         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
21549         for the various Unix platforms.
21550         * doc/posix-headers/limits.texi: Update platforms list regarding
21551         HOST_NAME_MAX.
21552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21553
21554 2009-08-07  Jim Meyering  <meyering@redhat.com>
21555
21556         selinux-at: fix typo in a comment
21557         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
21558         Spotted by Paolo Bonzini.
21559
21560         selinux-at: remove redundant m4 code, add documentation
21561         * modules/selinux-at (configure.ac): Remove redundant code.
21562         LIB_SELINUX is already set via the dependent module, selinux-h.
21563         (Include): Add quotes around selinux-at.h.
21564         * lib/selinux-at.h: Add documentation.
21565         Reported by Bruno Haible in
21566         http://marc.info/?l=gnulib-bug&m=124958988300749
21567
21568 2009-08-07  Bruno Haible  <bruno@clisp.org>
21569
21570         Avoid link error on MacOS X 10.3 and 10.4.
21571         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
21572         on non-ELF systems.
21573         * lib/argp-pv.c (argp_program_version): Likewise.
21574         Reported by Simon Josefsson.
21575
21576 2009-08-07  Simon Josefsson  <simon@josefsson.org>
21577
21578         * tests/test-version-etc.sh: Use $EXEEXT.
21579
21580 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
21581
21582         update-copyright: update documentation to point to maint.mk
21583         * build-aux/update-copyright: Here.
21584
21585 2009-08-06  Jim Meyering  <meyering@redhat.com>
21586
21587         maint.mk: support update-copyright-local
21588         * top/maint.mk (update-copyright-local): Define place-holder.
21589         (update-copyright): Depend on $(update-copyright-local).
21590
21591 2009-08-06  Jim Meyering  <meyering@redhat.com>
21592
21593         selinux-at: new module
21594         Initially written for coreutils, this module will soon be
21595         used by findutils, too.
21596         * MODULES.html.sh [Misc]: Add selinux-at.
21597         * lib/selinux-at.h: New file, from coreutils.
21598         * lib/selinux-at.c: Likewise.
21599         * modules/selinux-at: Likewise.
21600         (License): Change from LGPL to GPL, since it depends
21601         on the GPL'd openat module.
21602
21603         doc: update README
21604         * README: Remove references to cogito.
21605         Remove cvs-repo-updating instructions from 2007.
21606         Don't imply that CVS is better if you have limited disk space.
21607
21608 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21609
21610         update-copyright: support C-style comments
21611         * build-aux/update-copyright: Implement and document.
21612         * tests/test-update-copyright.sh: Test.
21613
21614 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21615
21616         update-copyright: support omitted "(C)"
21617         * build-aux/update-copyright: Implement and document.  Also,
21618         allow variable whitespace before "(C)".
21619         * tests/test-update-copyright.sh: Test.
21620
21621 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21622
21623         update-copyright: don't trip on non-FSF copyright statements
21624         * build-aux/update-copyright: Fix so that the first correctly
21625         formatted FSF copyright statement is recognized no matter what
21626         appears before it.  Update documentation.
21627         * tests/test-update-copyright.sh: Test that.
21628
21629 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21630
21631         update-copyright: clean up code a little
21632         * build-aux/update-copyright: Append "_re" to the name of any
21633         variable holding a regular expression.
21634         Replace "old" and "new" with "stmt" in variable names.
21635         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
21636         handled correctly.
21637         Format code more consistently.
21638
21639 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21640
21641         update-copyright-tests: improve portability
21642         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
21643         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
21644
21645 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21646
21647         update-copyright: support @copyright{} and &copy;
21648         * build-aux/update-copyright: Implement and document.
21649         * tests/test-update-copyright.sh: Test.
21650
21651 2009-08-04  Jim Meyering  <meyering@redhat.com>
21652
21653         update-copyright-tests: correctly test EOL=\r\n handling
21654         * tests/test-update-copyright.sh: Put \r at the end of some lines
21655         for the dos-eol tests.  Based on a patch by Joel E. Denny.
21656
21657         maint.mk: make update-copyright exclusion list more configurable
21658         * top/maint.mk (update-copyright): Default to excluding COPYING,
21659         but allow an override, in case someone does want to update that file.
21660
21661         maint.mk: don't update copyright date in COPYING
21662         * top/maint.mk (update-copyright): Exclude COPYING.
21663
21664         maint.mk: add a copyright-updating rule
21665         * top/maint.mk (update-copyright): New rule.
21666         Derived from coreutils/Makefile.am.
21667
21668         update-copyright: rename some variables
21669         * build-aux/update-copyright: Rename a few variables for clarity.
21670         Tweak syntax.  List Joel E. Denny as coauthor.
21671
21672 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21673
21674         update-copyright: fix bug for 2-digit last year and add tests
21675         * build-aux/update-copyright: Fix bug.
21676         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
21677         specified.
21678         * modules/update-copyright-tests: New
21679         * tests/test-update-copyright.sh: New.
21680
21681 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21682
21683         update-copyright: handle leading tabs in line prefix
21684         * build-aux/update-copyright: Count leading tabs as 8 spaces
21685         when computing margin.  This helps with the formatting of
21686         ChangeLogs, for example.
21687         Fix documentation a little.
21688
21689 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21690
21691         update-copyright: support EOL=\r\n
21692         * build-aux/update-copyright: Implement that.
21693
21694 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21695
21696         update-copyright: automatically format copyright statements
21697         * build-aux/update-copyright: Implement that.
21698         Also, be a little more predictable and safer by always failing
21699         when the full copyright format is not perfectly recognized as an
21700         unbroken whole.  Discussed at
21701         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
21702         Rewrite documentation.
21703
21704 2009-08-03  Bruno Haible  <bruno@clisp.org>
21705
21706         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
21707
21708 2009-08-02  Bruno Haible  <bruno@clisp.org>
21709
21710         Tests for module 'uname'.
21711         * modules/uname-tests: New file.
21712         * tests/test-uname.c: New file.
21713
21714         New module 'uname'.
21715         * lib/uname.c: New file.
21716         * m4/uname.m4: New file.
21717         * modules/uname: New file.
21718         * doc/posix-functions/uname.texi: Mention the new module.
21719
21720 2009-08-02  Bruno Haible  <bruno@clisp.org>
21721
21722         Tests for module 'sys_utsname'.
21723         * modules/sys_utsname-tests: New file.
21724         * tests/test-sys_utsname.c: New file.
21725
21726         New module 'sys_utsname'.
21727         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
21728         * m4/sys_utsname_h.m4: New file.
21729         * modules/sys_utsname: New file.
21730         * doc/posix-headers/sys_utsname.texi: Mention the new module.
21731
21732 2009-08-02  Bruno Haible  <bruno@clisp.org>
21733
21734         Implicitly initialize the sockets library.
21735         * lib/gethostname.c: Include sockets.h.
21736         (rpl_gethostname): Invoke gl_sockets_startup.
21737         * lib/socket.c: Include sockets.h.
21738         (rpl_socket): Invoke gl_sockets_startup.
21739         * modules/gethostname (Depends-on): Add sockets.
21740         * modules/socket (Depends-on): Likewise.
21741         * tests/test-poll.c: Don't include sockets.h.
21742         (main): Don't invoke gl_sockets_startup.
21743         * tests/test-select.c: Don't include sockets.h.
21744         (main): Don't invoke gl_sockets_startup.
21745
21746 2009-08-02  Bruno Haible  <bruno@clisp.org>
21747
21748         Allow multiple calls to gl_sockets_startup.
21749         * lib/sockets.c (initialized_sockets_version): New variable.
21750         (gl_sockets_startup): Do nothing if already called for this or a higher
21751         version.
21752         (gl_sockets_cleanup): Reset initialized_sockets_version.
21753
21754 2009-08-03  Simon Josefsson  <simon@josefsson.org>
21755
21756         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
21757         different project/version.
21758
21759 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
21760             Bruno Haible  <bruno@clisp.org>
21761
21762         Tests for module 'pipe-filter-gi'.
21763         * modules/pipe-filter-gi-tests: New file.
21764         * tests/test-pipe-filter-gi1.sh: New file.
21765         * tests/test-pipe-filter-gi1.c: New file.
21766         * tests/test-pipe-filter-gi2.sh: New file.
21767         * tests/test-pipe-filter-gi2-main.c: New file.
21768         * tests/test-pipe-filter-gi2-child.c: New file.
21769
21770         New module 'pipe-filter-gi'.
21771         * lib/pipe-filter-gi.c: New file.
21772         * modules/pipe-filter-gi: New file.
21773
21774 2009-08-02  Bruno Haible  <bruno@clisp.org>
21775             Paolo Bonzini  <bonzini@gnu.org>
21776
21777         Tests for module 'pipe-filter-ii'.
21778         * modules/pipe-filter-ii-tests: New file.
21779         * tests/test-pipe-filter-ii1.sh: New file.
21780         * tests/test-pipe-filter-ii1.c: New file.
21781         * tests/test-pipe-filter-ii2.sh: New file.
21782         * tests/test-pipe-filter-ii2-main.c: New file.
21783         * tests/test-pipe-filter-ii2-child.c: New file.
21784
21785         New module 'pipe-filter-ii'.
21786         * lib/pipe-filter.h: New file.
21787         * lib/pipe-filter-ii.c: New file.
21788         * lib/pipe-filter-aux.h: New file.
21789         * modules/pipe-filter-ii: New file.
21790
21791 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21792
21793         * lib/gc-libgcrypt.c: Change copyright to FSF.
21794         * lib/gc-gnulib.c: Likewise.
21795
21796 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
21797
21798         * lib/gethostname.c: Include limits.h.
21799
21800 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21801             Bruno Haible  <bruno@clisp.org>
21802
21803         Ensure HOST_NAME_MAX as part of the gethostname module.
21804         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
21805         define also HOST_NAME_MAX.
21806         * tests/test-gethostname.c: Include <limits.h>.
21807         (main): Check also HOST_NAME_MAX.
21808         * doc/posix-headers/limits.texi: Document the mingw problem.
21809
21810 2009-08-02  Bruno Haible  <bruno@clisp.org>
21811
21812         * lib/gethostname.c (gethostname): Fix handling of large len argument.
21813         Add comments.
21814
21815 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21816
21817         * lib/gethostname.c: Add Windows wrapper.
21818         * m4/gethostname.m4: Look for gethostname in -lws2_32.
21819         * modules/gethostname: Depend on sys_socket & errno, for also
21820         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
21821         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
21822
21823 2009-07-31  Jim Meyering  <meyering@redhat.com>
21824
21825         getloadavg: fix symbol name in comment
21826         * lib/getloadavg.c: Correct a typo I introduced when adding
21827         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
21828         Matt Kraai spotted the problem.
21829
21830 2009-07-29  Matt Kraai  <mkraai@beckman.com>
21831
21832         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
21833         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
21834         code also if ! defined N_NAME_POINTER.
21835         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
21836         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
21837         but the n_name member is a 12-byte array.
21838
21839 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
21840
21841         update-copyright: generalize comment handling
21842         * build-aux/update-copyright: Handle copyright statements
21843         within more comment styles.
21844         Document usage.
21845         Report any file with an external copyright holder or parse failure.
21846
21847 2009-07-29  Jim Meyering  <meyering@redhat.com>
21848
21849         mktime: correct setting of REPLACE_MKTIME
21850         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
21851
21852         update-copyright: new module
21853         * modules/update-copyright: New file.
21854         * build-aux/update-copyright: New file.
21855         * MODULES.html.sh (maint+release support): Add update-copyright.
21856
21857 2009-07-27  Bruno Haible  <bruno@clisp.org>
21858
21859         Fix compilation error when <ctime> is used and mktime is replaced.
21860         * lib/time.in.h (mktime): New declaration.
21861         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
21862         REPLACE_MKTIME instead of defining mktime in config.h.
21863         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
21864         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
21865         Reported by Ross McFarland <rwmcfa1@neces.com>.
21866
21867 2009-07-27  Bruno Haible  <bruno@clisp.org>
21868
21869         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
21870         Reported by Matt Kraai <mkraai@beckman.com>.
21871
21872 2009-07-25  Jim Meyering  <meyering@redhat.com>
21873
21874         maint.mk: avoid warnings about missing files
21875         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
21876         diagnostic when .prev-version does not exist.
21877         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
21878         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
21879         nonexistent cfg.mk.
21880         Suggestions from Simon Josefsson.
21881
21882 2009-07-25  Bruno Haible  <bruno@clisp.org>
21883
21884         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
21885         defined as macros. Needed on QNX 6.4.1.
21886         Reported by Matt Kraai <mkraai@beckman.com>.
21887
21888 2009-07-23  Jim Meyering  <meyering@redhat.com>
21889
21890         maint.mk: invoke "make dist" with a working value of XZ_OPT
21891         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
21892
21893 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
21894
21895         Make fseeko.c compile on QNX.
21896         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
21897
21898 2009-07-22  Peter Simons  <simons@cryp.to>
21899
21900         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
21901         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
21902         * lib/md4.h: Likewise.
21903         * lib/md5.h: Likewise.
21904         * lib/sha1.h: Likewise.
21905         * lib/sha256.h: Likewise.
21906         * lib/sha512.h: Likewise.
21907
21908         tests-sha1: don't assign literal string to 'char *' variable
21909         * tests/test-sha1.c (main): Declare locals with "const" to match
21910         attributes of the right hand side.
21911
21912 2009-07-21  Eric Blake  <ebb9@byu.net>
21913
21914         dup2: fix more mingw problems
21915         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
21916         fd to itself.
21917         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21918         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
21919         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
21920         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
21921         care of mingw bugs.
21922
21923 2009-07-21  Jim Meyering  <meyering@redhat.com>
21924
21925         vc-list-files: avoid failure when /bin/sh is dash
21926         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
21927         On some Debian based systems, /bin/sh is a symlink to dash, and running
21928         this command would omit the "/" following each 'tests' prefix:
21929           dash -x build-aux/vc-list-files -C . tests
21930         That is because bash and dash work differently:
21931           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
21932           bash ok
21933           dash odd
21934
21935 2009-07-21  Eric Blake  <ebb9@byu.net>
21936
21937         dup2-tests: test previous patch
21938         * modules/dup2-tests: New file.
21939         * tests/test-dup2.c: Likewise.
21940         * tests/test-open.c (main): Avoid unspecified behavior.
21941         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
21942         test.
21943
21944         dup2: work around mingw and cygwin 1.5 bug
21945         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
21946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21947         * modules/unistd (Makefile.am): Substitute it.
21948         * lib/unistd.in.h (dup2): Declare the replacement.
21949         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
21950         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
21951         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
21952         * modules/execute (Depends-on): Add dup2.
21953         * modules/fseterr (Depends-on): Likewise.
21954         * modules/pipe (Depends-on): Likewise.
21955         * modules/posix_spawn-internal (Depends-on): Likewise.
21956
21957 2009-07-21  Bruno Haible  <bruno@clisp.org>
21958
21959         * modules/.gitattributes: New file.
21960
21961 2009-07-20  Bruno Haible  <bruno@clisp.org>
21962
21963         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
21964         (main): Use it.
21965
21966 2009-07-20  Eric Blake  <ebb9@byu.net>
21967
21968         test-pipe: make a bit more robust.
21969         * tests/test-pipe.c (myerr): Allow error messages regardless of
21970         what we do to stderr.
21971         (test_pipe): Rearrange to avoid deadlock.
21972         (child_main): Try a larger read, to ensure we avoided deadlock.
21973         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
21974         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
21975         if misused.
21976
21977 2009-07-19  Jim Meyering  <meyering@redhat.com>
21978
21979         fts: avoid false-positive cycle-detection
21980         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
21981         for each new command line argument.
21982
21983 2009-07-19  Bruno Haible  <bruno@clisp.org>
21984
21985         Fix build error on mingw with the modules sys_select and unistd.
21986         * modules/acl-tests (Depends-on): Add close.
21987         * modules/binary-io-tests (Depends-on): Likewise.
21988         * modules/closein-tests (Depends-on): Likewise.
21989         * modules/flock-tests (Depends-on): Likewise.
21990         * modules/fsync-tests (Depends-on): Likewise.
21991         * modules/lseek-tests (Depends-on): Likewise.
21992         * modules/pipe-tests (Depends-on): Likewise.
21993         * modules/posix_spawn-tests (Depends-on): Likewise.
21994         * modules/posix_spawnp-tests (Depends-on): Likewise.
21995         * modules/stat-time-tests (Depends-on): Likewise.
21996         * modules/yesno-tests (Depends-on): Likewise.
21997
21998 2009-07-19  Bruno Haible  <bruno@clisp.org>
21999
22000         Unify conditionals.
22001         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22002         macros, not at the compiler macros.
22003         * lib/pipe.c: Likewise.
22004         * lib/execute.c: Likewise.
22005         * lib/spawni.c: Likewise.
22006
22007 2009-07-19  Bruno Haible  <bruno@clisp.org>
22008
22009         Fix handling of closed stdin/stdout/stderr on mingw.
22010         * lib/w32spawn.h: Include unistd.h.
22011         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22012         file descriptor with O_NOINHERIT flag.
22013         (fd_safer_noinherit): New function, based on fd-safer.c.
22014         (dup_safer_noinherit): New function, based on dup-safer.c.
22015         (undup_safer_noinherit): New function.
22016         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22017         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22018         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22019         instead of fd_safer.
22020         * tests/test-pipe.c: Include <windows.h>.
22021         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22022
22023         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22024         from main.
22025         (test_pipe): Pass an extra argument for disambiguation.
22026         (main): Invoke parent_main or child_main.
22027
22028         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22029         consistently.
22030
22031 2009-07-18  Eric Blake  <ebb9@byu.net>
22032
22033         test-pipe: fix mingw build
22034         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22035
22036 2009-07-18  Bruno Haible  <bruno@clisp.org>
22037
22038         * modules/pipe-tests (Makefile.am): Fix typo.
22039
22040 2009-07-18  Eric Blake  <ebb9@byu.net>
22041
22042         error: fix mingw build
22043         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22044         Reported by Bruno Haible.
22045
22046         error: avoid undefined use of stdout
22047         * lib/error.c (error, error_at_line): Check that fd 1 is open
22048         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22049         is handling faults and the close_stdout module wants to report the
22050         detection of closed stdout as an error.
22051
22052 2009-07-17  Eric Blake  <ebb9@byu.net>
22053
22054         pipe: be robust in face of closed fds
22055         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22056         should cause child to misbehave.
22057         * modules/pipe-tests: New module.
22058         * tests/test-pipe.c: New file.
22059         * tests/test-pipe.sh: New file.
22060         Reported by Akim Demaille.
22061
22062 2009-07-14  Bruno Haible  <bruno@clisp.org>
22063
22064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22065         Reported by anonymous kc.
22066
22067 2009-07-07  Jim Meyering  <meyering@redhat.com>
22068
22069         maint.mk: don't look for translatable strings in *.m4 or *.mk
22070         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22071         when searching for translatable strings.
22072
22073 2009-07-05  Jim Meyering  <meyering@redhat.com>
22074
22075         remove superfluous parentheses in STREQ definition
22076         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22077         * lib/getugroups.c (STREQ): Likewise.
22078         * lib/fnmatch.c (STREQ): Likewise.
22079         Spotted by Bruno Haible.
22080
22081 2009-07-04  Jim Meyering  <meyering@redhat.com>
22082
22083         argv-iter: new module
22084         * MODULES.html.sh: Add argv-iter.
22085         * lib/argv-iter.c, lib/argv-iter.h: New files.
22086         * modules/argv-iter: New file.
22087         * modules/argv-iter-tests: New file.
22088         * tests/test-argv-iter.c: Test it.
22089
22090 2009-07-04  Bruno Haible  <bruno@clisp.org>
22091
22092         Fix assertion.
22093         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22094         contains more exact copies of a given entry than file2, leave the extra
22095         copies unpaired rather than aborting.
22096         Reported by Eric Blake.
22097
22098 2009-07-02  Bruno Haible  <bruno@clisp.org>
22099
22100         Speedup git-merge-changelog for git cherry-pick.
22101         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22102         (entries_mapping_get): New function, extracted from compute_mapping.
22103         (entries_mapping_reverse_get): New function.
22104         (compute_mapping): Add a 'full' argument. Return the result in a
22105         'struct entries_mapping'.
22106         (main): Update. Access the mappings through entries_mapping_get.
22107         Reported by Eric Blake.
22108
22109 2009-07-02  Bruno Haible  <bruno@clisp.org>
22110
22111         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22112         best_i.
22113
22114 2009-07-02  Bruno Haible  <bruno@clisp.org>
22115
22116         Speed up approximate search for matching ChangeLog entries.
22117         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22118         argument. Call fstrcmp_bounded instead of fstrcmp.
22119         (compute_mapping, try_split_merged_entry, main): Update callers.
22120
22121 2009-07-02  Bruno Haible  <bruno@clisp.org>
22122
22123         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22124
22125 2009-06-30  Bruno Haible  <bruno@clisp.org>
22126
22127         Reduce the number of uc_is_cased calls.
22128         * lib/unicase.h (casing_suffix_context_t): Add
22129         'first_char_except_ignorable' field.
22130         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22131         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22132         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22133         Update initializer.
22134         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22135         case-ignorable characters.
22136         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22137         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22138         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22139         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22140         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22141
22142 2009-06-30  Bruno Haible  <bruno@clisp.org>
22143
22144         Tests for module 'unicase/ignorable'.
22145         * modules/unicase/ignorable-tests: New file.
22146         * tests/unicase/test-ignorable.c: New file, generated by
22147         gen-uni-tables.
22148
22149         Tests for module 'unicase/cased'.
22150         * modules/unicase/cased-tests: New file.
22151         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22152         * tests/unicase/test-predicate-part1.h: New file, derived from
22153         tests/unictype/test-predicate-part1.h.
22154         * tests/unicase/test-predicate-part2.h: New file, same as
22155         tests/unictype/test-predicate-part2.h.
22156
22157         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22158         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22159         (output_casing_properties): New function.
22160         (main): Call it.
22161         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22162         * lib/unicase/cased.c: Include unictype/bitmap.h.
22163         (uc_is_cased): Define through a bitmap lookup.
22164         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22165         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22166         (uc_is_case_ignorable): Define through a bitmap lookup.
22167         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22168         lib/unictype/bitmap.h.
22169         (Depends-on): Add inline. Clean up.
22170         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22171         lib/unictype/bitmap.h.
22172         (Depends-on): Add inline. Clean up.
22173         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22174         recognition.
22175         * tests/unicase/test-u16-tolower.c (main): Likewise.
22176         * tests/unicase/test-u32-tolower.c (main): Likewise.
22177
22178 2009-06-30  Bruno Haible  <bruno@clisp.org>
22179
22180         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22181         * lib/unicase/u16-casemap.c: Likewise.
22182         * lib/unicase/u32-casemap.c: Likewise.
22183
22184 2009-06-29  Bruno Haible  <bruno@clisp.org>
22185
22186         Define u32_casefold as a wrapper around u32_ct_casefold.
22187         * lib/unicase/u32-casefold.c: Update.
22188         * modules/unicase/u32-casefold (Depends-on): Add
22189         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22190         unicase/empty-suffix-context. Clean up.
22191
22192         Define u16_casefold as a wrapper around u16_ct_casefold.
22193         * lib/unicase/u16-casefold.c: Update.
22194         * modules/unicase/u16-casefold (Depends-on): Add
22195         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22196         unicase/empty-suffix-context. Clean up.
22197
22198         Define u8_casefold as a wrapper around u8_ct_casefold.
22199         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22200         * lib/unicase/u8-casefold.c: Update.
22201         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22202         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22203
22204         Define u32_totitle as a wrapper around u32_ct_totitle.
22205         * lib/unicase/u32-totitle.c: Update.
22206         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22207         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22208
22209         Define u16_totitle as a wrapper around u16_ct_totitle.
22210         * lib/unicase/u16-totitle.c: Update.
22211         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22212         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22213
22214         Define u8_totitle as a wrapper around u8_ct_totitle.
22215         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22216         functions.
22217         (FUNC): Delegate to U_CT_TOTITLE.
22218         * lib/unicase/u8-totitle.c: Update.
22219         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22220         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22221
22222         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22223         invocation.
22224         * modules/unicase/u32-tolower (Depends-on): Add
22225         unicase/empty-prefix-context, unicase/empty-suffix-context.
22226
22227         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22228         invocation.
22229         * modules/unicase/u16-tolower (Depends-on): Add
22230         unicase/empty-prefix-context, unicase/empty-suffix-context.
22231
22232         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22233         * modules/unicase/u8-tolower (Depends-on): Add
22234         unicase/empty-prefix-context, unicase/empty-suffix-context.
22235
22236         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22237         invocation.
22238         * modules/unicase/u32-toupper (Depends-on): Add
22239         unicase/empty-prefix-context, unicase/empty-suffix-context.
22240
22241         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22242         invocation.
22243         * modules/unicase/u16-toupper (Depends-on): Add
22244         unicase/empty-prefix-context, unicase/empty-suffix-context.
22245
22246         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22247         * modules/unicase/u8-toupper (Depends-on): Add
22248         unicase/empty-prefix-context, unicase/empty-suffix-context.
22249
22250         New module 'unicase/u32-ct-casefold'.
22251         * lib/unicase/u32-ct-casefold.c: New file.
22252         * modules/unicase/u32-ct-casefold: New file.
22253
22254         New module 'unicase/u16-ct-casefold'.
22255         * lib/unicase/u16-ct-casefold.c: New file.
22256         * modules/unicase/u16-ct-casefold: New file.
22257
22258         New module 'unicase/u8-ct-casefold'.
22259         * lib/unicase/u8-ct-casefold.c: New file.
22260         * lib/unicase/u-ct-casefold.h: New file, derived from
22261         lib/unicase/u-casefold.h.
22262         * modules/unicase/u8-ct-casefold: New file.
22263
22264         New module 'unicase/u32-ct-totitle'.
22265         * lib/unicase/u32-ct-totitle.c: New file.
22266         * modules/unicase/u32-ct-totitle: New file.
22267
22268         New module 'unicase/u16-ct-totitle'.
22269         * lib/unicase/u16-ct-totitle.c: New file.
22270         * modules/unicase/u16-ct-totitle: New file.
22271
22272         New module 'unicase/u8-ct-totitle'.
22273         * lib/unicase/u8-ct-totitle.c: New file.
22274         * lib/unicase/u-ct-totitle.h: New file, derived from
22275         lib/unicase/u-totitle.h.
22276         * modules/unicase/u8-ct-totitle: New file.
22277
22278         New module 'unicase/u32-ct-tolower'.
22279         * lib/unicase/u32-ct-tolower.c: New file.
22280         * modules/unicase/u32-ct-tolower: New file.
22281
22282         New module 'unicase/u16-ct-tolower'.
22283         * lib/unicase/u16-ct-tolower.c: New file.
22284         * modules/unicase/u16-ct-tolower: New file.
22285
22286         New module 'unicase/u8-ct-tolower'.
22287         * lib/unicase/u8-ct-tolower.c: New file.
22288         * modules/unicase/u8-ct-tolower: New file.
22289
22290         New module 'unicase/u32-ct-toupper'.
22291         * lib/unicase/u32-ct-toupper.c: New file.
22292         * modules/unicase/u32-ct-toupper: New file.
22293
22294         New module 'unicase/u16-ct-toupper'.
22295         * lib/unicase/u16-ct-toupper.c: New file.
22296         * modules/unicase/u16-ct-toupper: New file.
22297
22298         New module 'unicase/u8-ct-toupper'.
22299         * lib/unicase/u8-ct-toupper.c: New file.
22300         * modules/unicase/u8-ct-toupper: New file.
22301
22302         Add context arguments to u*_casemap functions.
22303         * lib/unicase/unicasemap.h: Include unicase.h.
22304         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22305         suffix_context arguments.
22306         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22307         functions.
22308         (FUNC): Add prefix_context and suffix_context arguments. Use
22309         uc_is_cased and uc_is_case_ignorable.
22310         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22311         * lib/unicase/u16-casemap.c: Likewise.
22312         * lib/unicase/u32-casemap.c: Likewise.
22313         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22314         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22315         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22316         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22317         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22318         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22319
22320         New module 'unicase/u32-suffix-context'.
22321         * lib/unicase/u32-suffix-context.c: New file.
22322         * modules/unicase/u32-suffix-context: New file.
22323
22324         New module 'unicase/u16-suffix-context'.
22325         * lib/unicase/u16-suffix-context.c: New file.
22326         * modules/unicase/u16-suffix-context: New file.
22327
22328         New module 'unicase/u8-suffix-context'.
22329         * lib/unicase/u8-suffix-context.c: New file.
22330         * lib/unicase/u-suffix-context.h: New file.
22331         * modules/unicase/u8-suffix-context: New file.
22332
22333         New module 'unicase/empty-suffix-context'.
22334         * lib/unicase/empty-suffix-context.c: New file.
22335         * modules/unicase/empty-suffix-context: New file.
22336
22337         New module 'unicase/u32-prefix-context'.
22338         * lib/unicase/u32-prefix-context.c: New file.
22339         * modules/unicase/u32-prefix-context: New file.
22340
22341         New module 'unicase/u16-prefix-context'.
22342         * lib/unicase/u16-prefix-context.c: New file.
22343         * modules/unicase/u16-prefix-context: New file.
22344
22345         New module 'unicase/u8-prefix-context'.
22346         * lib/unicase/u8-prefix-context.c: New file.
22347         * lib/unicase/u-prefix-context.h: New file.
22348         * lib/unicase/context.h: New file.
22349         * modules/unicase/u8-prefix-context: New file.
22350
22351         New module 'unicase/empty-prefix-context'.
22352         * lib/unicase/empty-prefix-context.c: New file.
22353         * modules/unicase/empty-prefix-context: New file.
22354
22355         New module 'unicase/ignorable'.
22356         * lib/unicase/ignorable.c: New file.
22357         * modules/unicase/ignorable: New file.
22358
22359         New module 'unicase/cased'.
22360         * lib/unicase/caseprop.h: New file.
22361         * lib/unicase/cased.c: New file.
22362         * modules/unicase/cased: New file.
22363
22364         New functions for case mapping of substrings.
22365         * lib/unicase.h (casing_prefix_context_t): New type.
22366         (unicase_empty_prefix_context): New variable.
22367         (u8_casing_prefix_context, u16_casing_prefix_context,
22368         u32_casing_prefix_context, u8_casing_prefixes_context,
22369         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22370         declarations.
22371         (casing_suffix_context_t): New type.
22372         (unicase_empty_suffix_context): New variable.
22373         (u8_casing_suffix_context, u16_casing_suffix_context,
22374         u32_casing_suffix_context, u8_casing_suffixes_context,
22375         u16_casing_suffixes_context, u32_casing_suffixes_context,
22376         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22377         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22378         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22379         declarations.
22380
22381 2009-06-28  Jim Meyering  <meyering@redhat.com>
22382
22383         boostrap: indent only with spaces
22384         * build-aux/bootstrap: Indent only with spaces, never TABs.
22385
22386         bootstrap: split long lines
22387         * build-aux/bootstrap: Keep line length < 80.
22388
22389         bootstrap: sync from coreutils
22390         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22391         just as autoreconf does.  Verify a list of prerequisite
22392         package-name,version-number pairs if defined in bootstrap.conf.
22393         Refer to README-prereq, if prerequisites are not satisfied.
22394
22395 2009-06-27  Eric Blake  <ebb9@byu.net>
22396
22397         tests: add test for bogus NULL definition
22398         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22399         * tests/test-stdlib.c: Likewise.
22400         * tests/test-string.c: Likewise.
22401         * tests/test-locale.c: Likewise.
22402         * tests/test-unistd.c: Likewise.
22403         * modules/stdio-tests (Depends-on): Add verify.
22404         * modules/stdlib-tests (Depends-on): Likewise.
22405         * modules/string-tests (Depends-on): Likewise.
22406         * modules/locale-tests (Depends-on): Likewise.
22407         * modules/unistd-tests (Depends-on): Likewise.
22408
22409 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22410
22411         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
22412         self-explaining comment.
22413         * m4/selinux-selinux-h: Update serial.
22414         (gl_LIBSELINUX): New macro, adding a warning for missing development
22415         packages to code extracted from...
22416         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
22417         Add warning for missing development packages here, too.
22418
22419 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
22420
22421         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
22422
22423 2009-06-25  Eric Blake  <ebb9@byu.net>
22424
22425         version-etc: fix regression
22426         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
22427         gcc.
22428         (version_etc): Use it, to catch bugs with trailing NULL.
22429         * lib/version-etc.c (version_etc_arn): Delete unused argument.
22430         (version_etc_va): Fix logic bug.
22431         * modules/version-etc-tests: Add test.
22432         * tests/test-version-etc.c: New file.
22433         * tests/test-version-etc.sh: Likewise.
22434
22435 2009-06-25  Sam Steingold  <sds@gnu.org>
22436
22437         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
22438         mbtowc declaration.
22439
22440 2009-06-25  Eric Blake  <ebb9@byu.net>
22441
22442         fpurge: migrate into <stdio.h>
22443         * lib/fpurge.h: Delete...
22444         * lib/stdio.in.h (fpurge): ...and declare here, instead.
22445         * lib/fpurge.c (fpurge): Change declaring header.
22446         * modules/fpurge (Files): Drop deleted file.
22447         (Depends-on): Add stdio.
22448         (configure.ac): Set witness.
22449         * modules/stdio (Makefile.am): Support fpurge macros.
22450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22451         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
22452         * lib/fflush.c: Update client.
22453         * tests/test-fpurge.c: Likewise.
22454         * NEWS: Mention the change.
22455
22456 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22457
22458         * lib/argp-version-etc.c (program_authors): Add const
22459         qualifier.
22460         * lib/version-etc.c: Fix typos in the comments.
22461         * modules/argp-version-etc: Depends on version-etc.
22462
22463 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22464
22465         argp-version-etc: new module.
22466
22467         * lib/argp-version-etc.c: New file.
22468         * lib/argp-version-etc.h: New file.
22469         * modules/argp-version-etc: New file.
22470         * modules/argp-version-etc-tests: New file.
22471         * tests/test-argp-version-etc.c: New test.
22472         * tests/test-argp-version-etc-1.sh: New test.
22473
22474 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22475
22476         Provide additional interfaces and documentation for version-etc
22477         module.
22478
22479         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
22480         interfaces.
22481         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
22482         prototypes.
22483
22484 2009-06-24  Bruno Haible  <bruno@clisp.org>
22485
22486         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
22487         HAVE_LIB${NAME} macro.
22488         Reported by Sam Steingold <sds@gnu.org>.
22489
22490 2009-06-23  Simon Josefsson  <simon@josefsson.org>
22491
22492         * modules/hash-tests (test_hash_LDADD): Link to libintl when
22493         needed.
22494
22495 2009-06-21  Bruno Haible  <bruno@clisp.org>
22496
22497         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
22498         work.
22499         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
22500         together with LIB${NAME}, LTLIB${NAME}.
22501         Reported by Sam Steingold <sds@gnu.org>.
22502
22503 2009-06-20  Jim Meyering  <meyering@redhat.com>
22504
22505         tests: make sc_require_test_exit_idiom more generic
22506         * top/maint.mk (Exit_witness_file): New overridable variable.
22507         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
22508         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
22509
22510 2009-06-19  Jim Meyering  <meyering@redhat.com>
22511
22512         hash: reverse order of src/dst parameters in an internal interface
22513         * lib/hash.c (transfer_entries): Reverse order of parameters to
22514         put DST before SRC.  Adjust callers.
22515
22516         tests: test-hash: avoid wholesale duplication
22517         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
22518         Instead, use a loop and add a single conditional.
22519
22520         tests: test-hash: allow seed selection via a command line argument
22521         * tests/test-hash.c (get_seed): New function.
22522         (main): Use it.
22523
22524 2009-06-19  Eric Blake  <ebb9@byu.net>
22525
22526         hash: avoid memory leak on allocation failure
22527         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
22528         failure.  Factor repeated algorithm...
22529         (transfer_entries): ...into new helper routine.
22530         (hash_delete): React to hash_rehash return value.
22531
22532         hash: reduce memory pressure in hash_rehash no-op case
22533         * lib/hash.c (next_prime): Avoid overflow.
22534         (hash_initialize): Factor bucket size computation...
22535         (compute_bucket_size): ...into new helper function.
22536         (hash_rehash): Use new function and open coding to reduce memory
22537         pressure, and avoid a memory leak in USE_OBSTACK code.
22538         Reported by Jim Meyering.
22539
22540 2009-06-18  Eric Blake  <ebb9@byu.net>
22541
22542         hash: make rotation more obvious
22543         * modules/hash (Depends-on): Add bitrotate and stdint.
22544         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
22545         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
22546         (SIZE_MAX): Rely on headers for definition.
22547         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
22548         (raw_hasher): Use rotr_sz.
22549         Suggested by Jim Meyering.
22550
22551         hash: fix memory leak in last patch
22552         * lib/hash.c (hash_rehash): Avoid memory leak.
22553
22554         hash: avoid no-op rehashing
22555         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
22556
22557         hash: provide default callback functions
22558         * lib/hash.c (raw_hasher, raw_comparator): New functions.
22559         (hash_initialize): Use them as defaults.
22560         * tests/test-hash.c (main): Test this.
22561
22562         hash: minor optimization
22563         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
22564         when possible.
22565         (hash_initialize): Document this promise.
22566         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
22567         * tests/test-hash.c (hash_compare_strings): Test this.
22568
22569 2009-06-18  Bruno Haible  <bruno@clisp.org>
22570
22571         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
22572         going to be replaced anyway.
22573
22574 2009-06-18  Bruno Haible  <bruno@clisp.org>
22575
22576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
22577         in one place.
22578         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
22579         be replaced anyway.
22580
22581 2009-06-18  Eric Blake  <ebb9@byu.net>
22582
22583         hash: check for resize before insertion
22584         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
22585         threshold before insertion, so that a pathological hash_rehash
22586         that fills every bucket can still trigger another rehash.
22587
22588 2009-06-18  Jim Meyering  <meyering@redhat.com>
22589
22590         hash-tests: add a loop around the small tests
22591         * tests/test-hash.c (main): Repeat small tests with selected
22592         small initial table sizes.
22593
22594 2009-06-17  Eric Blake  <ebb9@byu.net>
22595
22596         hash: minor cleanups
22597         * lib/hash.h (hash_entry): Make opaque, by moving...
22598         * lib/hash.c (hash_entry): ...here.
22599         (hash_insert): Clarify restrictions on what can be inserted.
22600         (hash_get_next): Clarify when it is safe to remove an element
22601         during traversal.
22602         (check_tuning): Skip verification when tuning is known safe.
22603         (hash_initialize): Clarify restrictions on tuning.
22604
22605 2009-06-17  Jim Meyering  <jim@meyering.net>
22606         and Eric Blake  <ebb9@byu.net>
22607
22608         hash-tests: new module
22609         * modules/hash-tests: New file.
22610         * tests/test-hash.c: New file.
22611
22612 2009-06-17  Eric Blake  <ebb9@byu.net>
22613
22614         strstr-simple: document new module
22615         * MODULES.html.sh: Document new module.
22616
22617         strstr, strcasestr: replace on platforms with broken memchr
22618         * modules/strstr: Split into...
22619         * modules/strstr-simple: ...new module that does not care about
22620         performance, but does care about glibc bug.
22621         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
22622         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
22623         if platform memchr is broken, per Debian bug 521737.
22624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
22625         memchr.
22626         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
22627         * doc/posix-functions/strstr.texi (strstr): Document the fix.
22628         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22629         * modules/mountlist (Depends-on): Add strstr-simple.
22630         * modules/gen-uni-tables (Depends-on): Likewise.
22631         * modules/argz (Depends-on): Add strstr.
22632
22633 2009-06-17  Bruno Haible  <bruno@clisp.org>
22634
22635         * modules/posix_spawn-internal (Depends-on): Add errno.
22636
22637 2009-06-17  Bruno Haible  <bruno@clisp.org>
22638
22639         Define missing ESTALE on Interix 3.5.
22640         * lib/errno.in.h (ESTALE): Assign a value if missing.
22641         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
22642         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
22643         missing.
22644         * doc/posix-headers/errno.texi: Mention the Interix bug.
22645         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
22646
22647 2009-06-15  Eric Blake  <ebb9@byu.net>
22648
22649         memchr, memchr2: add valgrind exception
22650         * lib/memchr.valgrind: New file.
22651         * lib/memchr2.valgrind: New file.
22652         * modules/memchr (Files): Distribute valgrind file.
22653         * modules/memchr2 (Files): Likewise.
22654
22655         docs: memchr is no longer obsolete
22656         * MODULES.html.sh: Move memchr from obsolete to string.h section.
22657         * lib/string.in.h (memchr): Simplify logic.
22658
22659 2009-06-14  Jim Meyering  <meyering@redhat.com>
22660
22661         link-follow: fix the "checking..." message to not mention trailing slash
22662         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
22663         never considered trailing slashes.
22664
22665 2009-06-14  Bruno Haible  <bruno@clisp.org>
22666
22667         * m4/memchr.m4: Mention also the bug on IA-64.
22668         * doc/posix-functions/memchr.texi: Likewise.
22669
22670 2009-06-12  Eric Blake  <ebb9@byu.net>
22671
22672         memchr: detect broken x86_64 and alpha implementations
22673         * modules/memchr-tests (Depends-on): Move mmap detection...
22674         * modules/memchr (Depends-on): ...here.
22675         (configure.ac): Set indicator.
22676         * lib/string.in.h (memchr): Declare replacement.
22677         * modules/string (Makefile.am): Trigger replacement.
22678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
22679         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
22680         bugs.
22681         * doc/posix-functions/memchr.texi (memchr): Document the bug.
22682         * modules/getpagesize (License): Relax license.
22683
22684 2009-06-11  Bruno Haible  <bruno@clisp.org>
22685
22686         * lib/idpriv.h: Add more references.
22687
22688 2009-06-08  Bruno Haible  <bruno@clisp.org>
22689
22690         Tests for module 'idpriv-droptemp'.
22691         * modules/idpriv-droptemp-tests: New file.
22692         * tests/test-idpriv-droptemp.sh: New file.
22693         * tests/test-idpriv-droptemp.su.sh: New file.
22694         * tests/test-idpriv-droptemp.c: New file.
22695
22696         New module 'idpriv-droptemp'.
22697         * lib/idpriv-droptemp.c: New file.
22698         * modules/idpriv-droptemp: New file.
22699
22700 2009-06-08  Bruno Haible  <bruno@clisp.org>
22701
22702         Tests for module 'idpriv-drop'.
22703         * modules/idpriv-drop-tests: New file.
22704         * tests/test-idpriv-drop.sh: New file.
22705         * tests/test-idpriv-drop.su.sh: New file.
22706         * tests/test-idpriv-drop.c: New file.
22707
22708         New module 'idpriv-drop'.
22709         * lib/idpriv.h: New file.
22710         * lib-idpriv-drop.c: New file.
22711         * m4/idpriv.m4: New file.
22712         * modules/idpriv-drop: New file.
22713
22714 2009-06-08  Bruno Haible  <bruno@clisp.org>
22715
22716         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
22717         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22718         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22719         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22720         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22721         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22722         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22723
22724 2009-06-08  Eric Blake  <ebb9@byu.net>
22725
22726         test-strstr: use memory fence, when possible
22727         * tests/test-strstr.c (main): Use memory fence, in order to be
22728         more likely to trigger Debian bug 521737.
22729         * modules/strstr-tests (Files): Pull in additional files.
22730
22731         memchr: no longer obsolete, for wider field testing
22732         * modules/memchr (Status, Notice): Delete, this module is no
22733         longer obsolete.
22734         * modules/vasnprintf (Depends-on): Add memchr.
22735
22736 2009-06-07  Jim Meyering  <meyering@redhat.com>
22737
22738         hash: declare some functions with the warn_unused_result attribute
22739         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
22740
22741 2009-06-07  Bruno Haible  <bruno@clisp.org>
22742
22743         * tests/test-alignof.c: Don't test int64_t if it does not exist.
22744         Reported by Eric Blake.
22745
22746 2009-06-06  Eric Blake  <ebb9@byu.net>
22747
22748         test-alignof: fix typo with long double
22749         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
22750         compiler error.
22751
22752 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
22753
22754         Escape non-texinfo { and }s.
22755         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
22756         markup error.
22757
22758 2009-06-04  Jim Meyering  <meyering@redhat.com>
22759
22760         gitlog-to-changelog: don't infloop on an empty commit log
22761         * build-aux/gitlog-to-changelog: Warn about an empty log message.
22762         Reported by Boris Petersen <transacid@centerim.org>.
22763
22764 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
22765
22766         version-etc: extend for packagers
22767         Add three new configure options, intended for packagers:
22768           --with-packager="packager name"
22769           --with-packager-version="packager-specific version"
22770           --with-packager-bug-reports="packager bug reporting"
22771         An example with coreutils:
22772           $ ./configure \
22773             --with-packager=Gentoo \
22774             --with-packager-bug-report=http://bugs.gentoo.org/ \
22775             --with-packager-version="patchset 1.6"
22776           $ ./src/ls --version | head -n2
22777           ls (GNU coreutils) 7.1-dirty
22778           Packaged by Gentoo (patchset 1.6)
22779         Note that the bug reporting info via --help doesn't show up because
22780         coreutils uses its own custom emit_bug_reporting_address() implementation
22781         in src/system.h.  If it didn't, it'd look like:
22782           $ ./src/ls --help | tail -n4
22783           Report bugs to <bug-coreutils@gnu.org>.
22784           Report Gentoo bugs to <http://bugs.gentoo.org/>.
22785           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
22786           General help using GNU software: <http://www.gnu.org/gethelp/>.
22787         * lib/version-etc.c: Print new information, if provided.
22788         * m4/version-etc.m4: New file.
22789         * modules/version-etc (Files): Add m4/version-etc.m4.
22790         (configure.ac): Add gl_VERSION_ETC.
22791
22792 2009-05-31  Bruno Haible  <bruno@clisp.org>
22793
22794         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
22795         and 'int64_t'.
22796         * modules/alignof-tests (Dependencies): Add stdint.
22797         Reported by Eric Blake.
22798
22799 2009-05-31  Bruno Haible  <bruno@clisp.org>
22800
22801         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
22802         restriction due to compiler bugs.
22803         Reported by Eric Blake.
22804
22805 2009-05-31  Simon Josefsson  <simon@josefsson.org>
22806             Bruno Haible  <bruno@clisp.org>
22807
22808         Fix test-alignof failure.
22809         * lib/alignof.h (alignof_slot): New macro.
22810         (alignof_type): New macro, with the same semantics as the previous
22811         'alignof'.
22812         (alignof): Alias to alignof_slot.
22813         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
22814         check that the results are usable as constant expressions.
22815
22816 2009-05-31  Bruno Haible  <bruno@clisp.org>
22817
22818         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
22819         * tests/test-memchr.c (main): Check that memchr does not read past the
22820         first occurrence of the byte.
22821         * tests/test-strstr.c (main): Update comment.
22822         Suggested by Eric Blake.
22823
22824 2009-05-30  Bruno Haible  <bruno@clisp.org>
22825
22826         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
22827         detail how to use dumpbin.
22828         Reported by David Byron <dbyron@dbyron.com>.
22829
22830 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22831
22832         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
22833
22834 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22835
22836         * m4/manywarnings.m4: Add GCC 4.4 warnings.
22837
22838 2009-05-28  Bruno Haible  <bruno@clisp.org>
22839
22840         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
22841         build-aux/ files.
22842
22843 2009-05-28  Simon Josefsson  <simon@josefsson.org>
22844
22845         * gnulib-tool (func_import): Transform license on build-aux/ files too.
22846
22847 2009-05-27  Simon Josefsson  <simon@josefsson.org>
22848
22849         * gnulib-tool (sed_transform_main_lib_file)
22850         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
22851         regexps.
22852
22853 2009-05-26  Simon Josefsson  <simon@josefsson.org>
22854
22855         * tests/test-strstr.c: Add another self-test.
22856         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
22857         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
22858
22859 2009-05-23  Bruno Haible  <bruno@clisp.org>
22860
22861         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
22862         change.
22863
22864 2009-05-21  Bruno Haible  <bruno@clisp.org>
22865
22866         Simplify use of mode_t varargs.
22867         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
22868         uses 'mode_t' or 'int'.
22869         * lib/openat.c (openat): Likewise.
22870         * lib/open-safer.c (open_safer): Likewise.
22871         * m4/mode_t.m4: New file.
22872         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
22873         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
22874         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
22875         * modules/open (Files): Add m4/mode_t.m4.
22876         * modules/openat (Files): Likewise.
22877         * modules/fcntl-safer (Files): Likewise.
22878         Suggested by Eric Blake.
22879
22880 2009-05-21  Pádraig Brady  <P@draigbrady.com>
22881
22882         * doc/glibc-functions/fallocate.texi: New file.
22883         * doc/gnulib.texi: Include it.
22884
22885 2009-05-21  Eric Blake  <ebb9@byu.net>
22886             Bruno Haible  <bruno@clisp.org>
22887
22888         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
22889         invocations.
22890         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22891
22892 2009-05-21  Eric Blake  <ebb9@byu.net>
22893             Bruno Haible  <bruno@clisp.org>
22894
22895         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
22896         include_next. Fix of 2008-11-20 commit.
22897         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
22898         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
22899         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
22900         NEXT_MATH_H.
22901         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
22902         instead of NEXT_MATH_H.
22903
22904 2009-05-21  Bruno Haible  <bruno@clisp.org>
22905
22906         Avoid redefinition warnings for SIZE_MAX.
22907         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
22908         Reported by Simon Josefsson.
22909
22910 2009-05-21  Bruno Haible  <bruno@clisp.org>
22911
22912         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
22913         AC_CACHE_VAL.
22914
22915 2009-05-20  Bruno Haible  <bruno@clisp.org>
22916
22917         Make zeroptr.h work on mingw.
22918         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
22919         mprotect.
22920         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
22921         * modules/memchr2-tests (configure.ac): Likewise.
22922         * modules/memcmp-tests (configure.ac): Likewise.
22923         * modules/memmem-tests (configure.ac): Likewise.
22924         * modules/memrchr-tests (configure.ac): Likewise.
22925         Reported by Simon Josefsson.
22926
22927 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22928
22929         * tests/test-glob.c: Include string.h for strcmp prototype.
22930
22931 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22932
22933         * modules/getdelim (Depends-on): Add explicit stdint, although it
22934         was implicitly already pulled in via realloc-posix.
22935         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
22936
22937 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22938
22939         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
22940         G. Christensen" <tgc@jupiterrise.com>.
22941         * m4/sys_socket_h.m4: Check for sa_family_t.
22942         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
22943         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
22944         * tests/test-sys_socket.c: Check that sa_family_t works.
22945
22946 2009-05-18  Eric Blake  <ebb9@byu.net>
22947
22948         maint.mk: allow gnulib_dir in VPATH build
22949         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
22950
22951 2009-05-15  Jim Meyering  <meyering@redhat.com>
22952
22953         maint.mk: Give gnulib_dir a default definition.
22954         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
22955         Thus, most packages no longer need to specify this variable in cfg.mk
22956
22957 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
22958
22959         rename.m4: fix typos that would make non-mingw cross-configure fail
22960         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
22961
22962 2009-05-13  Eric Blake  <ebb9@byu.net>
22963
22964         mmap-anon: avoid out-of-order autoconf expansion
22965         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
22966         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
22967         * modules/memchr-tests (Depends-on): Add extensions.
22968         * modules/memchr2-tests (Depends-on): Add extensions.
22969         * modules/memcmp-tests (Depends-on): Add extensions.
22970         * modules/memmem-tests (Depends-on): Add extensions.
22971         * modules/memrchr-tests (Depends-on): Add extensions.
22972
22973 2009-05-13  Bruno Haible  <bruno@clisp.org>
22974
22975         Make some tests ISO C 99 compliant.
22976         * tests/zerosize-ptr.h: New file.
22977         * tests/test-memchr.c: Include zerosize-ptr.h.
22978         (main): Use a zero-size object pointer instead of NULL.
22979         * tests/test-memchr2.c: Include zerosize-ptr.h.
22980         (main): Use a zero-size object pointer instead of NULL.
22981         * tests/test-memcmp.c: Include zerosize-ptr.h.
22982         (main): Use a zero-size object pointer instead of NULL.
22983         * tests/test-memmem.c: Include zerosize-ptr.h.
22984         (main): Use a zero-size object pointer instead of NULL.
22985         * tests/test-memrchr.c: Include zerosize-ptr.h.
22986         (main): Use a zero-size object pointer instead of NULL.
22987         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
22988         m4/mmap-anon.m4.
22989         (Depends-on): Add getpagesize.
22990         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22991         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
22992         m4/mmap-anon.m4.
22993         (Depends-on): Add getpagesize.
22994         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22995         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
22996         m4/mmap-anon.m4.
22997         (Depends-on): Add getpagesize.
22998         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22999         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23000         m4/mmap-anon.m4.
23001         (Depends-on): Add getpagesize.
23002         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23003         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23004         m4/mmap-anon.m4.
23005         (Depends-on): Add getpagesize.
23006         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23007
23008 2009-05-12  Bruno Haible  <bruno@clisp.org>
23009
23010         Tests for module 'alignof'.
23011         * modules/alignof-tests: New file.
23012         * tests/test-alignof.c: New file.
23013
23014 2009-05-12  Bruno Haible  <bruno@clisp.org>
23015
23016         Fix alignof macro.
23017         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23018         vendor compilers that are always correct.
23019
23020 2009-05-12  Bruno Haible  <bruno@clisp.org>
23021
23022         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23023         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23024         not whether its fully works.
23025
23026 2009-05-12  Bruno Haible  <bruno@clisp.org>
23027
23028         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23029
23030 2009-05-12  Jim Meyering  <meyering@redhat.com>
23031
23032         * top/maint.mk: Adjust backslash alignment.
23033
23034 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23035
23036         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23037
23038 2009-05-11  Eric Blake  <ebb9@byu.net>
23039
23040         argp: avoid undefined behavior
23041         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23042         macros.
23043
23044 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23045
23046         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23047         user.name to prevent git commit from complaining.
23048
23049 2009-05-10  Bruno Haible  <bruno@clisp.org>
23050
23051         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23052         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23053         it rewrites every file name only once.
23054         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23055
23056 2009-05-08  Bruno Haible  <bruno@clisp.org>
23057
23058         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23059         instead of 'max'.
23060
23061 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23062
23063         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23064         sockaddr_storage test.
23065
23066 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23067
23068         * modules/sys_socket (Makefile.am): Substitute
23069         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23070         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23071         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23072         * tests/test-sys_socket.c: Check sockaddr_storage.
23073
23074 2009-05-08  Bruno Haible  <bruno@clisp.org>
23075
23076         New module 'alignof'.
23077         * lib/alignof.h: New file.
23078         * modules/alignof: New file.
23079
23080 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23081             Bruno Haible  <bruno@clisp.org>
23082
23083         Fix test-file-has-acl on FreeBSD.
23084         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23085         mask is implicitly added.
23086         * tests/test-file-has-acl.c: Include <signal.h>.
23087         (main): Terminate the test after 5 seconds.
23088         * modules/acl-tests (configure.ac): Check for alarm function.
23089
23090 2009-05-04  Bruno Haible  <bruno@clisp.org>
23091
23092         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23093         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23094         * modules/errno (configure.ac): Drop AC_REQUIRE.
23095         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23096         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23097
23098 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23099
23100         * modules/glob-tests: New module.
23101         * tests/test-glob.c: Add.
23102
23103 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23104
23105         * modules/fnmatch-tests: New module.
23106         * tests/test-fnmatch.c: Add.
23107
23108 2009-05-04  Eric Blake  <ebb9@byu.net>
23109
23110         maint: make the new no-submodule-changes rule VPATH-safe
23111         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23112
23113 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23114             Bruno Haible  <bruno@clisp.org>
23115
23116         acl: Fix infinite loop on FreeBSD.
23117         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23118         of return value from acl_get_entry.
23119         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23120         Likewise.
23121
23122 2009-05-03  Bruno Haible  <bruno@clisp.org>
23123
23124         * lib/acl-internal.h (acl_entries): Clarify return value.
23125         * lib/acl_entries.c (acl_entries): Likewise.
23126
23127 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23128
23129         Bug fix in acl module.
23130         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23131
23132 2009-05-03  Bruno Haible  <bruno@clisp.org>
23133
23134         Create gperf-generated file in the source dir, not in the build dir.
23135         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23136         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23137         * modules/unicase/locale-language (unicase/locale-languages.h):
23138         Likewise.
23139         * modules/unicase/special-casing (unicase/special-casing-table.h):
23140         Likewise.
23141         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23142         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23143         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23144         Reported by Ralf Wildenhues.
23145
23146 2009-05-03  Bruno Haible  <bruno@clisp.org>
23147
23148         * modules/fnmatch (Description, configure.ac): Taken from
23149         fnmatch-posix.
23150         * modules/fnmatch-posix: Turn into a symbolic reference to the
23151         'fnmatch' module, and deprecate.
23152         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23153
23154 2009-05-03  Bruno Haible  <bruno@clisp.org>
23155
23156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23157         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23158         Reported by Ralf Wildenhues.
23159
23160 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23161
23162         * m4/fnmatch.m4: Fix fnmatch re-define.
23163
23164 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23165
23166         priv-set: new module and tests; adapt write-any-file
23167         * lib/priv-set.c: New file.
23168         * lib/priv-set.h: New file.
23169         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23170         * lib/write-any-file.c: Simplify by using priv-set module.
23171         * m4/priv-set.m4: New file.
23172         * modules/priv-set: New file.
23173         * modules/unlinkdir: Add dependency on priv-set module.
23174         * modules/write-any-file: Likewise.
23175
23176         Tests for module 'priv-set'.
23177         * modules/priv-set-tests: New file.
23178         * tests/test-priv-set.c: New file.
23179
23180 2009-05-03  Jim Meyering  <meyering@redhat.com>
23181             Bruno Haible  <bruno@clisp.org>
23182
23183         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23184         use the converted UTF-8 variant of the name instead.
23185
23186 2009-05-03  Jim Meyering  <meyering@redhat.com>
23187
23188         tests: tighten some getdate tests
23189         * tests/test-getdate.c (main): Tighten tests: require equality,
23190         not just greater than.  Set TZ envvar to UTC0.
23191
23192 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23193
23194         getdate: correctly interpret "next monday" when run on a Monday
23195         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23196         that e.g., "next tues" (when run on a tuesday) results in a date
23197         that is one week in the future, and not today's date.
23198         I.e., add a week when the wday is the same as the current one.
23199         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23200         and earlier by Martin Bernreuther and Jan Minář.
23201         * tests/test-getdate.c (main): Check that "next DAY" is always in
23202         the future and that "last DAY" is always in the past.
23203
23204 2009-05-02  Jim Meyering  <meyering@redhat.com>
23205
23206         build: ensure that a release build fails when a submodule is unclean
23207         * top/maint.mk (no-submodule-changes): New rule.
23208         (alpha beta major): Depend on it.
23209
23210 2009-05-02  Bruno Haible  <bruno@clisp.org>
23211
23212         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23213         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23214         shell variable gl_fnmatch_required to detect which variant is
23215         requested.
23216         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23217         gl_FUNC_FNMATCH_POSIX.
23218         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23219         exclude fnmatch-posix.
23220
23221 2009-05-02  Bruno Haible  <bruno@clisp.org>
23222
23223         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23224         * modules/mbsrtowcs (License): Change to LGPLv2+.
23225         * modules/strnlen1 (License): Likewise.
23226         Reported by Simon Josefsson.
23227
23228 2009-05-02  Bruno Haible  <bruno@clisp.org>
23229
23230         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23231         "cross".
23232         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23233         gnulib-tool was called with option --source-base=lib.
23234
23235 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23236
23237         Use automake *-local hooks without commands, for extensibility.
23238         * modules/localcharset (Makefile.am): Rename install-exec-local
23239         rule to install-exec-localcharset, and make it a prerequisite of
23240         install-exec-local.  Likewise, rename the uninstall-local rule to
23241         uninstall-localcharset, and make it a prerequisite of the former.
23242
23243 2009-05-01  Bruno Haible  <bruno@clisp.org>
23244
23245         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23246         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23247         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23249         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23250         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23251         m4/locale-zh.m4, m4/codeset.m4.
23252
23253         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23254         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23255         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23256         m4/locale-zh.m4.
23257
23258         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23259         REPLACE_WCRTOMB if mbstate_t must be replaced.
23260         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23261         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23262
23263 2009-05-01  Bruno Haible  <bruno@clisp.org>
23264
23265         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23266         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23267         dngettext, dcngettext, textdomain, bindtextdomain,
23268         bind_textdomain_codeset): Undefine before redefining.
23269
23270 2009-04-30  Bruno Haible  <bruno@clisp.org>
23271
23272         Fix bug introduced on 2009-04-25.
23273         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23274         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23275         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23276         is defined.
23277         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23278         is defined.
23279         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23280         is defined.
23281         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23282
23283 2009-04-28  Bruno Haible  <bruno@clisp.org>
23284
23285         Comment tweaks.
23286         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23287         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23288         * lib/unicase.h (u*_casexfrm): Likewise.
23289         Reported by Paolo Bonzini.
23290
23291 2009-04-28  Bruno Haible  <bruno@clisp.org>
23292
23293         Fix a compilation error.
23294         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23295         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23296         Reported by Jim Meyering.
23297
23298 2009-04-27  Bruno Haible  <bruno@clisp.org>
23299
23300         New module 'libunistring'.
23301         * modules/libunistring: New file.
23302         * m4/libunistring.m4: New file.
23303         * MODULES.html.sh (Unicode string functions): Add it.
23304
23305 2009-04-27  Eric Blake  <ebb9@byu.net>
23306
23307         maint.mk: allow package-specific header to provide <config.h>
23308         * top/maint.mk (sc_require_config_h): New variable.
23309         (sc_require_config_h, sc_require_config_h_first): Use it.
23310
23311 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23312
23313         * top/maint.mk (sc_avoid_if_before_free): Except
23314         useless-if-before-free script.
23315
23316 2009-04-27  Eric Blake  <ebb9@byu.net>
23317
23318         maintainer-makefile: depend on all required helper scripts
23319         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23320         useless-if-before-free.
23321         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23322         version, rather than assuming gnulib checkout is available.
23323         Reported by Simen Josefsson.
23324
23325 2009-04-26  Bruno Haible  <bruno@clisp.org>
23326
23327         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23328         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23329         "../" or "..".
23330
23331 2009-04-26  Bruno Haible  <bruno@clisp.org>
23332
23333         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23334         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23335         AC_LIB_HAVE_LINKFLAGS.
23336
23337 2009-04-26  Bruno Haible  <bruno@clisp.org>
23338
23339         Simplify calling convention of u*_conv_from_encoding.
23340         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
23341         u32_conv_from_encoding): Expect a resultbuf argument and return the
23342         result directly as a pointer.
23343         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
23344         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
23345         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
23346         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
23347         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
23348         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23349         Update.
23350         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
23351         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
23352         * lib/vasnprintf.c (VASNPRINTF): Update.
23353         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
23354         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
23355         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
23356         * NEWS: Mention the change.
23357
23358 2009-04-26  Bruno Haible  <bruno@clisp.org>
23359
23360         Simplify calling convention of u*_conv_to_encoding.
23361         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23362         u32_conv_to_encoding): Expect a resultbuf argument and return the
23363         result directly as a pointer.
23364         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23365         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23366         freeing scaled_offsets if mem_iconveha failed.
23367         * lib/unicase/u-casexfrm.h (FUNC): Update.
23368         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23369         * lib/vasnprintf.c (VASNPRINTF): Update.
23370         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23371         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23372         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23373         * NEWS: Mention the change.
23374
23375 2009-04-26  Bruno Haible  <bruno@clisp.org>
23376
23377         Avoid test failures on AIX and OSF/1.
23378         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23379         malloc(0).
23380         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23381         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23382         Likewise.
23383         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23384         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23385         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23386         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23387         * doc/posix-functions/malloc.texi: Document the portability problem
23388         related to malloc(0).
23389
23390 2009-04-26  Bruno Haible  <bruno@clisp.org>
23391
23392         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23393         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23394         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23395
23396 2009-04-25  Bruno Haible  <bruno@clisp.org>
23397
23398         Avoid link error when creating a namespace clean library.
23399         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23400         as macro with arguments if already defined as an alias.
23401         * lib/signbitf.c (gl_signbitf): Don't undefine.
23402         * lib/signbitd.c (gl_signbitd): Don't undefine.
23403         * lib/signbitl.c (gl_signbitl): Don't undefine.
23404
23405 2009-04-25  Jim Meyering  <meyering@redhat.com>
23406
23407         vc-list-files: fix another quoting bug
23408         * build-aux/vc-list-files: Avoid sed backslash expansion
23409         of pathological directory names.
23410
23411 2009-04-25  Eric Blake  <ebb9@byu.net>
23412
23413         vc-list-files: fix shell quoting error
23414         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
23415         timestamp.
23416
23417 2009-04-25  Jim Meyering  <meyering@redhat.com>
23418
23419         vc-list-files: restore lost functionality with subdir argument
23420         * build-aux/vc-list-files: When given a non-"." sub-directory
23421         argument, substitute the $dir/ prefix back onto each resulting name.
23422         Otherwise, coreutils' root_tests check would fail.
23423
23424 2009-04-24  Eric Blake  <ebb9@byu.net>
23425
23426         vc-list-files: ignore git symlinks
23427         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
23428         than ls-files, to ignore git symlinks.
23429
23430         maint.mk: import improvements from m4
23431         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
23432         (move_if_change): Delete unused macro.
23433         (news-date-check, vc-diff-check): Support VPATH builds.
23434         (announcement): Likewise.  Split --bootstrap-tools list...
23435         (boostrap-tools): ...into separate list, which can be overridden
23436         in cfg.mk.
23437         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
23438         requiring dependency on useless-if-before-free module.
23439         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
23440         Support VPATH builds.
23441
23442 2009-04-24  Jim Meyering  <meyering@redhat.com>
23443
23444         maint.mk: remove coreutils-specific rules and variables
23445         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
23446         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
23447         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
23448
23449         maint.mk: remove obsolete rule
23450         * top/maint.mk (rel-check): Remove rule.
23451         (WGET, WGETFLAGS): Remove now-unused variables.
23452
23453 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23454
23455         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
23456         consistency.
23457
23458         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
23459         '$(PATH_SEPARATOR)' instead of ':'.
23460
23461 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23462
23463         * lib/getopt1.c (main): Use 'const' for static array.
23464
23465 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23466
23467         * top/maint.mk: Sync with coreutils.
23468         * NEWS: Explain incompatibilities.
23469
23470 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23471             Bruno Haible  <bruno@clisp.org>
23472
23473         Fix cross-compilation results.
23474         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
23475         statement, as third argument of AC_TRY_RUN.
23476         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23477         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23478         Likewise.
23479         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23480         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23481         Likewise.
23482         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23483         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
23484         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
23485
23486 2009-04-20  Bruno Haible  <bruno@clisp.org>
23487
23488         Avoid test failure on mingw.
23489         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
23490
23491 2009-04-20  Bruno Haible  <bruno@clisp.org>
23492
23493         Avoid compilation error on mingw.
23494         * modules/localename-tests (Depends-on): Add locale.
23495
23496 2009-04-19  Bruno Haible  <bruno@clisp.org>
23497
23498         Support for building a shared library on Windows platforms.
23499         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
23500         (main): Test the presence of UNINORM_NFC here.
23501         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
23502         (main): Test the presence of UNINORM_NFD here.
23503         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
23504         (main): Test the presence of UNINORM_NFKC here.
23505         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
23506         (main): Test the presence of UNINORM_NFKD here.
23507
23508 2009-04-19  Bruno Haible  <bruno@clisp.org>
23509
23510         Avoid a compiler warning.
23511         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
23512         Change type of variable 'sequence'.
23513
23514 2009-04-19  Bruno Haible  <bruno@clisp.org>
23515
23516         * modules/configmake (Makefile.am): When the contents of configmake.h
23517         does not change, arrange to preserve its modification time.
23518
23519 2009-04-17  Simon Josefsson  <simon@josefsson.org>
23520
23521         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
23522         gettext domain.
23523
23524 2009-04-16  Jim Meyering  <meyering@redhat.com>
23525
23526         useless-if-before-free: improve conversion code
23527         * build-aux/useless-if-before-free: Adjust code-in-comment to match
23528         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
23529
23530 2009-04-14  Bruno Haible  <bruno@clisp.org>
23531
23532         * modules/fcntl (Depends-on): Add extensions.
23533         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
23534
23535 2009-04-12  Ben Pfaff  <blp@gnu.org>
23536
23537         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
23538         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
23539
23540 2009-03-20  Ben Pfaff  <blp@gnu.org>
23541
23542         Make rename replace existing destinations on Windows.
23543         * m4/rename.m4: Add test for Mingw.
23544         * lib/rename.c: Add rename replacement that uses MoveFileEx with
23545         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
23546         * doc/posix-functions/rename.texi: Document.
23547
23548 2009-04-10  Bruno Haible  <bruno@clisp.org>
23549
23550         New include file "iconveh.h".
23551         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23552         * lib/striconveh.h: Include it.
23553         (enum iconv_ilseq_handler): Remove definition.
23554         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
23555         striconveh.h.
23556         * lib/striconveha.c: Include striconveh.h.
23557         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
23558         * modules/striconveh (Files): Add lib/iconveh.h.
23559         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
23560         lib/striconveh.h.
23561
23562 2009-04-10  Bruno Haible  <bruno@clisp.org>
23563
23564         * lib/uniconv.h: Update comment.
23565
23566 2009-04-10  Bruno Haible  <bruno@clisp.org>
23567
23568         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
23569         always.
23570         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
23571         * lib/unistr/u16-mbtouc-aux.c: Likewise.
23572         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
23573         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
23574         "unistring-notinline.h", so that the function gets defined always.
23575         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
23576         * lib/unistr/u8-uctomb.c: Likewise.
23577         * lib/unistr/u16-mbtouc.c: Likewise.
23578         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
23579         * lib/unistr/u16-uctomb.c: Likewise.
23580         * lib/unistr/u32-mbtouc.c: Likewise.
23581         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
23582         * lib/unistr/u32-uctomb.c: Likewise.
23583
23584 2009-04-10  Bruno Haible  <bruno@clisp.org>
23585
23586         Mark 'utime' obsolete.
23587         * modules/utime (Status, Notice): New sections.
23588         Suggested by Jim Meyering.
23589
23590         Fix cross-compile guess for utime test.
23591         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
23592         autoconf.
23593         * doc/posix-functions/utime.texi: Give more precisions.
23594         Reported by Jan <ipif@ymail.com>.
23595
23596 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
23597
23598         filevercmp: correct today's change
23599         * lib/filevercmp.c: Also handle coreutils' test inputs.
23600         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
23601
23602         Fix regression in 'filevercmp' module. Thanks Sven Joachim
23603         for reporting it.
23604         * lib/filevercmp.c: Special handle for "", "." and "..".
23605         * tests/test-filevercmp.c: Enlarge the set suite.
23606
23607 2009-04-07  Jim Meyering  <meyering@redhat.com>
23608
23609         useless-if-before-free: show how to remove braced useless free, too
23610         * build-aux/useless-if-before-free: still only in a comment, though.
23611
23612 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
23613
23614         maint.mk: import changes to syntax-check macros from coreutils
23615         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
23616         Use them in the relevant macros.
23617
23618 2009-04-06  Bruno Haible  <bruno@clisp.org>
23619
23620         Fix unportable use of bit-fields.
23621         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
23622         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
23623         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
23624
23625 2009-04-06  Bruno Haible  <bruno@clisp.org>
23626
23627         Avoid test failures on AIX and OSF/1.
23628         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
23629         that malloc(0) = NULL.
23630         * tests/unicase/test-u8-tolower.c (check): Likewise.
23631         * tests/unicase/test-u8-totitle.c (check): Likewise.
23632         * tests/unicase/test-u8-toupper.c (check): Likewise.
23633         * tests/unicase/test-u16-casefold.c (check): Likewise.
23634         * tests/unicase/test-u16-tolower.c (check): Likewise.
23635         * tests/unicase/test-u16-totitle.c (check): Likewise.
23636         * tests/unicase/test-u16-toupper.c (check): Likewise.
23637         * tests/unicase/test-u32-casefold.c (check): Likewise.
23638         * tests/unicase/test-u32-tolower.c (check): Likewise.
23639         * tests/unicase/test-u32-totitle.c (check): Likewise.
23640         * tests/unicase/test-u32-toupper.c (check): Likewise.
23641         * tests/uninorm/test-u8-nfc.c (check): Likewise.
23642         * tests/uninorm/test-u8-nfd.c (check): Likewise.
23643         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
23644         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
23645         * tests/uninorm/test-u16-nfc.c (check): Likewise.
23646         * tests/uninorm/test-u16-nfd.c (check): Likewise.
23647         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
23648         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
23649         * tests/uninorm/test-u32-nfc.c (check): Likewise.
23650         * tests/uninorm/test-u32-nfd.c (check): Likewise.
23651         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
23652         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
23653
23654 2009-04-05  Bruno Haible  <bruno@clisp.org>
23655
23656         Work around an autoconf limitation.
23657         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
23658         comment line if it would be longer than 3 KB.
23659
23660 2009-04-05  Bruno Haible  <bruno@clisp.org>
23661
23662         Avoid test failure with libiconv-1.13.
23663         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
23664         of the expected test results.
23665
23666 2009-04-05  Bruno Haible  <bruno@clisp.org>
23667
23668         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
23669         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
23670         that it should be installed.
23671
23672 2009-04-05  Bruno Haible  <bruno@clisp.org>
23673
23674         * gnulib-tool: New option --copy-file.
23675         (func_usage): Document it.
23676         (func_dest_tmpfilename): Moved out of func_import.
23677         (func_add_file, func_update_file): New functions, extracted from
23678         func_import.
23679         (func_import): Update.
23680
23681 2009-04-05  Karl Berry  <karl@gnu.org>
23682
23683         * README: prominently mention gnulib-tool.
23684         Rearrange sections so getting the code is near the top.
23685
23686 2009-04-05  Bruno Haible  <bruno@clisp.org>
23687
23688         * lib/unicase.h: Mention u*_cmp2.
23689         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23690         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
23691         * lib/unicase/ulc-casecmp.c: Likewise.
23692         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
23693         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
23694         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
23695         unistr/u8-cmp.
23696         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
23697         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
23698         unistr/u16-cmp.
23699         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
23700         unistr/u32-cmp.
23701
23702         * lib/uninorm.h: Mention u*_cmp2.
23703         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23704         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
23705         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
23706         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
23707         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
23708         unistr/u8-cmp.
23709         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
23710         unistr/u16-cmp.
23711         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
23712         unistr/u32-cmp.
23713
23714         New module 'unistr/u32-cmp2'.
23715         * lib/unistr/u32-cmp2.c: New file.
23716         * modules/unistr/u32-cmp2: New file.
23717
23718         New module 'unistr/u16-cmp2'.
23719         * lib/unistr/u16-cmp2.c: New file.
23720         * modules/unistr/u16-cmp2: New file.
23721
23722         New module 'unistr/u8-cmp2'.
23723         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
23724         * lib/unistr/u8-cmp2.c: New file.
23725         * lib/unistr/u-cmp2.h: New file.
23726         * modules/unistr/u8-cmp2: New file.
23727
23728 2009-04-05  Bruno Haible  <bruno@clisp.org>
23729
23730         * lib/unictype.h (uc_property_is_valid): New macro.
23731         * tests/unictype/test-pr_byname.c (main): Use it.
23732
23733         * lib/unistr.h: Doc fixes.
23734         * lib/uniconv.h: Doc fixes.
23735         * lib/unictype.h: Doc fixes.
23736
23737 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
23738
23739         Port coreutils 7.2 to Solaris 8.
23740
23741         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
23742         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
23743         for Solaris 8.  This is a bit of a hack, as it means it's the
23744         caller's responsibility to add -lnsl if needed, but most likely it
23745         won't be needed since only getaddrinfo uses this and getaddrinfo
23746         isn't needed on Solaris 8.
23747
23748         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
23749         problem to Solaris 8 encountered with coreutils 7.2, which
23750         resulted in a message "fnmatch.c:292: warning: passing argument 4
23751         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
23752         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
23753
23754 2009-04-03  Simon Josefsson  <simon@josefsson.org>
23755
23756         * m4/ld-version-script.m4: Add FIXME comment.
23757
23758 2009-04-02  Simon Josefsson  <simon@josefsson.org>
23759
23760         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
23761         SOVERSION variable.
23762
23763 2009-04-02  Bruno Haible  <bruno@clisp.org>
23764
23765         * Makefile (info, html, dvi, pdf): Combine the rules.
23766         Suggested by Jim Meyering.
23767
23768 2009-04-01  Bruno Haible  <bruno@clisp.org>
23769
23770         * Makefile (info, html, dvi, pdf): New targets.
23771         Reported by Reuben Thomas <rrt@sc3d.org>.
23772
23773 2009-04-01  Bruno Haible  <bruno@clisp.org>
23774
23775         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
23776         can be put into PATH.
23777         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
23778
23779 2009-04-01  Bruno Haible  <bruno@clisp.org>
23780
23781         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
23782
23783 2009-04-01  Bruno Haible  <bruno@clisp.org>
23784
23785         Rename module 'visibility'.
23786         * modules/lib-symbol-visibility: Renamed from modules/visibility.
23787         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
23788         * doc/gnulib.texi: Update.
23789         * MODULES.html.sh (Misc): Update.
23790         * NEWS: Mention the change.
23791
23792 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23793
23794         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
23795         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
23796         Eric Blake <ebb9@byu.net> for review.
23797         * MODULES.html.sh: Add lib-msvc-compat.
23798         * doc/gnulib.texi: Link to new section.
23799         * m4/ld-output-def.m4: New file.
23800         * doc/ld-output-def.texi: New file.
23801
23802 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23803
23804         Rename ld-version-script to lib-symbol-versions.  Suggested by
23805         Bruno Haible <bruno@clisp.org>.
23806         * modules/ld-version-script: Renamed to lib-symbol-versions.
23807         * doc/ld-version-script.texi: Fix module name.
23808         * MODULES.html.sh: Add lib-symbol-versions.
23809
23810 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23811
23812         * modules/u64-tests: New file.
23813         * tests/test-u64.c: New file.
23814
23815 2009-03-04  Simon Josefsson  <simon@josefsson.org>
23816
23817         * MODULES.html.sh: Mention u64.
23818         * modules/u64: New module.
23819         * modules/crypto/sha512: Depend on u64 module instead of providing
23820         u64.h.
23821
23822 2009-03-27  Eric Blake  <ebb9@byu.net>
23823
23824         test-strerror: make debugging EAI_SYSTEM easier
23825         * modules/getaddrinfo-tests (Depends-on): Add strerror.
23826         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
23827         failure was EAI_SYSTEM.
23828
23829 2009-03-25  Bruno Haible  <bruno@clisp.org>
23830
23831         Fix a problem with --enable-relocatable on Solaris 7.
23832         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
23833         since 2008-02-24.
23834
23835 2009-03-25  Eric Blake  <ebb9@byu.net>
23836
23837         test-sockets: avoid gcc warning
23838         * tests/test-sockets.c (main): Silence compiler warning.
23839
23840 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23841
23842         New modules nproc, pthread, contributed by Glen Lenker.
23843
23844         * MODULES.html.sh: Add pthread, nproc.
23845         * lib/nproc.c: New file.
23846         * lib/nproc.h: New file.
23847         * lib/pthread.in.h: New file.
23848         * m4/pthread.m4: New file.
23849         * modules/nproc: New file.
23850         * modules/pthread: New file.
23851
23852 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23853
23854         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
23855         New variable.
23856
23857 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
23858
23859         filevercmp: handle simple~ and numbered.~3~ backup suffixes
23860         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
23861         * tests/test-filevercmp.c: Add tests for backup suffixes.
23862
23863 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23864
23865         * modules/stdlib (Depends-on): Add stdint, needed when defining
23866         struct random_data on, for example, HP-UX 10.20.  Reported by
23867         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23868
23869 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23870
23871         * lib/readline.c (readline): Call fflush on stdout after printing
23872         prompt.
23873
23874 2009-03-20  Bruno Haible  <bruno@clisp.org>
23875
23876         Remove dependency from 'close' module to -lws2_32 on native Windows.
23877         * lib/close-hook.h: New file.
23878         * lib/close-hook.c: New file.
23879         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
23880         w32sock.h.
23881         (_gl_close_fd_maybe_socket): Remove function.
23882         (rpl_close): Invoke execute_all_close_hooks instead of
23883         _gl_close_fd_maybe_socket.
23884         * lib/sockets.c: Include close-hook.h, w32sock.h.
23885         (close_fd_maybe_socket): New function, essentially from lib/close.c.
23886         (close_sockets_hook): New variable.
23887         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
23888         (gl_sockets_cleanup): Unregister it.
23889         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
23890         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
23891         * modules/close-hook: New file.
23892         * modules/close (Files): Remove lib/w32sock.h.
23893         (Depends-on): Add close-hook.
23894         (Link): Remove section.
23895         * modules/sockets (Files): Add lib/w32sock.h.
23896         (Depends-on): Add close-hook.
23897         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
23898         invocation.
23899         * NEWS: Mention that LIB_CLOSE is gone.
23900
23901 2009-03-23  Eric Blake  <ebb9@byu.net>
23902
23903         signal-tests: test previous patch
23904         * tests/test-signal.c: New file.
23905         * modules/signal-tests: Likewise.
23906
23907         signal.h: always support 'volatile sig_atomic_t'
23908         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
23909         (gl_SIGNAL_H_DEFAULTS): Add a default.
23910         * modules/signal (Makefile.am): Substitute if needed.
23911         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
23912         users can blindly add volatile.
23913         * doc/posix-headers/signal.texi (signal.h): Document it.
23914         Reported by Matthew Woehlke.
23915
23916 2009-03-23  Jim Meyering  <meyering@redhat.com>
23917
23918         pathmax: PATH_MAX: use pathconf only when available
23919         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
23920         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
23921         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
23922         This avoids a link failure in a PSP cross-compilation environment
23923         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
23924
23925         * lib/vasnprintf.c (divide): Fix typo in comment.
23926
23927 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23928
23929         * gnulib-tool (func_filter_filelist): Fix comment.
23930
23931 2009-03-20  Bruno Haible  <bruno@clisp.org>
23932
23933         Make sockets.h self-contained.
23934         * lib/sockets.c: Include sockets.h first.
23935         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
23936
23937 2009-03-19  Eric Blake  <ebb9@byu.net>
23938
23939         doc: mention more functions added in cygwin 1.7.0
23940         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
23941         addition.
23942         * doc/posix-functions/log2f.texi: Likewise.
23943
23944 2009-03-19  Jim Meyering  <meyering@redhat.com>
23945
23946         fsusage: avoid syntax error due to statement-before-declaration
23947         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
23948         after all declarations.  Reported by Matthew Woehlke in
23949         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
23950
23951 2009-03-18  Eric Blake  <ebb9@byu.net>
23952
23953         build-aux/compile: sync from automake
23954         * build-aux/compile: New file, from automake.
23955         * config/srclist.txt: Mention build-aux/compile.
23956
23957 2009-03-17  Bruno Haible  <bruno@clisp.org>
23958
23959         * lib/git-merge-changelog.c: Fix typo in comment.
23960         Reported by Reuben Thomas <rrt@sc3d.org>.
23961
23962 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
23963
23964         * m4/regex.m4: update and improve help for
23965         --without-included-regex.
23966
23967 2009-03-17  Simon Josefsson  <simon@josefsson.org>
23968
23969         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
23970         failure on missing include files.
23971
23972 2009-03-17  Eric Blake  <ebb9@byu.net>
23973
23974         doc: mention more functions added in cygwin 1.7.0
23975         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
23976         addition.
23977         * doc/posix-functions/fwscanf.texi: Likewise.
23978         * doc/posix-functions/swprintf.texi: Likewise.
23979         * doc/posix-functions/swscanf.texi: Likewise.
23980         * doc/posix-functions/vfwprintf.texi: Likewise.
23981         * doc/posix-functions/vfwscanf.texi: Likewise.
23982         * doc/posix-functions/vswprintf.texi: Likewise.
23983         * doc/posix-functions/vswscanf.texi: Likewise.
23984         * doc/posix-functions/vwprintf.texi: Likewise.
23985         * doc/posix-functions/vwscanf.texi: Likewise.
23986         * doc/posix-functions/wcscasecmp.texi: Likewise.
23987         * doc/posix-functions/wcsdup.texi: Likewise.
23988         * doc/posix-functions/wcsftime.texi: Likewise.
23989         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23990         * doc/posix-functions/wprintf.texi: Likewise.
23991         * doc/posix-functions/wscanf.texi: Likewise.
23992         * doc/glibc-functions/gethostbyname2.texi: Likewise.
23993
23994 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23995
23996         maint.mk: really add $(AM_MAKEFLAGS)
23997         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
23998         was inadvertently omitted in the last commit.
23999         Spotted by Bruno Haible.
24000
24001         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24002         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24003         $(AM_MAKEFLAGS)' rather than plain `make'.
24004
24005         gnulib-tool: execute $MAKE not make
24006         * gnulib-tool: Default $MAKE to 'make'.
24007         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24008         than make.  Initialize $MAKE in the do-autobuild script.
24009
24010         gnulib-tool: use $MAKE not make in generated files
24011         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24012         make, in generated files.  Initialize $MAKE in the do-autobuild
24013         script.
24014
24015         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24016
24017         GNUmakefile: disable parallelism only for multiple, recursive targets
24018         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24019         additions in the Makefile.
24020         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24021         by Automake.
24022         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24023         are listed on the command line and at least one of them is
24024         listed in $(ALL_RECURSIVE_TARGETS).
24025
24026 2009-03-14  Bruno Haible  <bruno@clisp.org>
24027
24028         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24029         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24030         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24031         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24032         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24033         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24034         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24035         unistr/u8-uctomb.
24036         * modules/unistr/u8-strchr (Depends-on): Likewise.
24037         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24038         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24039         unistr/u16-uctomb.
24040         * modules/unistr/u16-strchr (Depends-on): Likewise.
24041         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24042
24043 2009-03-12  Bruno Haible  <bruno@clisp.org>
24044
24045         Work around select() bug on Interix 3.5.
24046         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24047         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24048         * m4/select.m4: New file.
24049         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24050         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24051         * modules/select (Files): Add m4/select.m4.
24052         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24053         * modules/nanosleep (Depends-on): Add select.
24054         * modules/poll (Depends-on): Likewise.
24055         * doc/posix-functions/select.texi: Mention the Interix bug.
24056         Reported by Markus Duft <mduft@gentoo.org>.
24057
24058         * lib/select.c: Renamed from lib/winsock-select.c.
24059         * modules/select (Files): Add lib/select.c, remove
24060         lib/winsock-select.c.
24061         (configure.ac): Update.
24062
24063 2009-03-12  Jim Meyering  <meyering@redhat.com>
24064
24065         avoid gcc warnings about unused macro definitions
24066         * lib/readtokens.c (STREQ): Remove unused definition.
24067         * lib/xmalloc.c (SIZE_MAX): Likewise.
24068         * lib/openat-die.c (N_): Likewise.
24069         * lib/mountlist.c (SIZE_MAX): Remove definition.
24070         Instead, include <stdint.h>.
24071         * lib/readutmp.c: Likewise.
24072         * modules/readutmp (Depends-on): Add stdint.
24073         * modules/mountlist (Depends-on): Add stdint.
24074         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24075
24076 2009-03-10  Bruno Haible  <bruno@clisp.org>
24077
24078         Tests for module 'mbmemcasecoll'.
24079         * modules/mbmemcasecoll-tests: New file.
24080         * tests/test-mbmemcasecoll1.sh: New file.
24081         * tests/test-mbmemcasecoll2.sh: New file.
24082         * tests/test-mbmemcasecoll3.sh: New file.
24083         * tests/test-mbmemcasecoll.c: New file.
24084
24085         New module 'mbmemcasecoll'.
24086         * lib/mbmemcasecoll.h: New file.
24087         * lib/mbmemcasecoll.c: New file.
24088         * modules/mbmemcasecoll: New file.
24089
24090         * tests/test-mbmemcasecmp.h: New file, extracted from
24091         tests/test-mbmemcasecmp.c.
24092         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24093         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24094         (main): Update.
24095         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24096
24097 2009-03-09  Bruno Haible  <bruno@clisp.org>
24098
24099         Tests for module 'mbmemcasecmp'.
24100         * modules/mbmemcasecmp-tests: New file.
24101         * tests/test-mbmemcasecmp1.sh: New file.
24102         * tests/test-mbmemcasecmp2.sh: New file.
24103         * tests/test-mbmemcasecmp3.sh: New file.
24104         * tests/test-mbmemcasecmp.c: New file.
24105
24106         New module 'mbmemcasecmp'.
24107         * lib/mbmemcasecmp.h: New file.
24108         * lib/mbmemcasecmp.c: New file.
24109         * modules/mbmemcasecmp: New file.
24110
24111 2009-03-09  Bruno Haible  <bruno@clisp.org>
24112
24113         Tests for module 'unicase/ulc-casecoll'.
24114         * modules/unicase/ulc-casecoll-tests: New file.
24115         * tests/unicase/test-ulc-casecoll1.sh: New file.
24116         * tests/unicase/test-ulc-casecoll2.sh: New file.
24117         * tests/unicase/test-ulc-casecoll.c: New file.
24118
24119         New module 'unicase/ulc-casecoll'.
24120         * lib/unicase.h (ulc_casecoll): New declaration.
24121         * lib/unicase/ulc-casecoll.c: New file.
24122         * modules/unicase/ulc-casecoll: New file.
24123
24124         New module 'unicase/ulc-casexfrm'.
24125         * lib/unicase.h (ulc_casexfrm): New declaration.
24126         * lib/unicase/ulc-casexfrm.c: New file.
24127         * modules/unicase/ulc-casexfrm: New file.
24128
24129 2009-03-09  Bruno Haible  <bruno@clisp.org>
24130
24131         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24132         invocations.
24133
24134         * m4/mbscasecmp.m4: Remove file.
24135         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24136         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24137
24138         * m4/mbscasestr.m4: Remove file.
24139         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24140         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24141
24142         * m4/mbschr.m4: Remove file.
24143         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24144         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24145
24146         * m4/mbscspn.m4: Remove file.
24147         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24148         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24149
24150         * m4/mbslen.m4: Remove file.
24151         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24152         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24153
24154         * m4/mbsncasecmp.m4: Remove file.
24155         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24156         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24157
24158         * m4/mbsnlen.m4: Remove file.
24159         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24160         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24161
24162         * m4/mbspbrk.m4: Remove file.
24163         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24164         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24165
24166         * m4/mbspcasecmp.m4: Remove file.
24167         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24168         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24169
24170         * m4/mbsrchr.m4: Remove file.
24171         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24172         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24173
24174         * m4/mbssep.m4: Remove file.
24175         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24176         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24177
24178         * m4/mbsspn.m4: Remove file.
24179         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24180         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24181
24182         * m4/mbsstr.m4: Remove file.
24183         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24184         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24185
24186         * m4/mbstok_r.m4: Remove file.
24187         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24188         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24189
24190         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24191
24192         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24193         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24194
24195         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24196
24197 2009-03-08  Bruno Haible  <bruno@clisp.org>
24198
24199         Tests for module 'unicase/ulc-casecmp'.
24200         * modules/unicase/ulc-casecmp-tests: New file.
24201         * tests/unicase/test-ulc-casecmp1.sh: New file.
24202         * tests/unicase/test-ulc-casecmp2.sh: New file.
24203         * tests/unicase/test-ulc-casecmp.c: New file.
24204
24205         New module 'unicase/ulc-casecmp'.
24206         * lib/unicase.h (ulc_casecmp): New declaration.
24207         * lib/unicase/ulc-casecmp.c: New file.
24208         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24209         'const SRC_UNIT *'.
24210         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24211         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24212         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24213         * modules/unicase/ulc-casecmp: New file.
24214
24215         Tests for module 'unicase/u32-is-cased'.
24216         * modules/unicase/u32-is-cased-tests: New file.
24217         * tests/unicase/test-u32-is-cased.c: New file.
24218
24219         Tests for module 'unicase/u16-is-cased'.
24220         * modules/unicase/u16-is-cased-tests: New file.
24221         * tests/unicase/test-u16-is-cased.c: New file.
24222
24223         Tests for module 'unicase/u8-is-cased'.
24224         * modules/unicase/u8-is-cased-tests: New file.
24225         * tests/unicase/test-u8-is-cased.c: New file.
24226         * tests/unicase/test-is-cased.h: New file.
24227
24228         New module 'unicase/u32-is-cased'.
24229         * lib/unicase/u32-is-cased.c: New file.
24230         * modules/unicase/u32-is-cased: New file.
24231
24232         New module 'unicase/u16-is-cased'.
24233         * lib/unicase/u16-is-cased.c: New file.
24234         * modules/unicase/u16-is-cased: New file.
24235
24236         New module 'unicase/u8-is-cased'.
24237         * lib/unicase/u8-is-cased.c: New file.
24238         * lib/unicase/u-is-cased.h: New file.
24239         * modules/unicase/u8-is-cased: New file.
24240
24241         Tests for module 'unicase/u32-is-casefolded'.
24242         * modules/unicase/u32-is-casefolded-tests: New file.
24243         * tests/unicase/test-u32-is-casefolded.c: New file.
24244
24245         Tests for module 'unicase/u16-is-casefolded'.
24246         * modules/unicase/u16-is-casefolded-tests: New file.
24247         * tests/unicase/test-u16-is-casefolded.c: New file.
24248
24249         Tests for module 'unicase/u8-is-casefolded'.
24250         * modules/unicase/u8-is-casefolded-tests: New file.
24251         * tests/unicase/test-u8-is-casefolded.c: New file.
24252         * tests/unicase/test-is-casefolded.h: New file.
24253
24254         New module 'unicase/u32-is-casefolded'.
24255         * lib/unicase/u32-is-casefolded.c: New file.
24256         * modules/unicase/u32-is-casefolded: New file.
24257
24258         New module 'unicase/u16-is-casefolded'.
24259         * lib/unicase/u16-is-casefolded.c: New file.
24260         * modules/unicase/u16-is-casefolded: New file.
24261
24262         New module 'unicase/u8-is-casefolded'.
24263         * lib/unicase/u8-is-casefolded.c: New file.
24264         * modules/unicase/u8-is-casefolded: New file.
24265
24266         Tests for module 'unicase/u32-is-titlecase'.
24267         * modules/unicase/u32-is-titlecase-tests: New file.
24268         * tests/unicase/test-u32-is-titlecase.c: New file.
24269
24270         Tests for module 'unicase/u16-is-titlecase'.
24271         * modules/unicase/u16-is-titlecase-tests: New file.
24272         * tests/unicase/test-u16-is-titlecase.c: New file.
24273
24274         Tests for module 'unicase/u8-is-titlecase'.
24275         * modules/unicase/u8-is-titlecase-tests: New file.
24276         * tests/unicase/test-u8-is-titlecase.c: New file.
24277         * tests/unicase/test-is-titlecase.h: New file.
24278
24279         New module 'unicase/u32-is-titlecase'.
24280         * lib/unicase/u32-is-titlecase.c: New file.
24281         * modules/unicase/u32-is-titlecase: New file.
24282
24283         New module 'unicase/u16-is-titlecase'.
24284         * lib/unicase/u16-is-titlecase.c: New file.
24285         * modules/unicase/u16-is-titlecase: New file.
24286
24287         New module 'unicase/u8-is-titlecase'.
24288         * lib/unicase/u8-is-titlecase.c: New file.
24289         * modules/unicase/u8-is-titlecase: New file.
24290
24291         Tests for module 'unicase/u32-is-lowercase'.
24292         * modules/unicase/u32-is-lowercase-tests: New file.
24293         * tests/unicase/test-u32-is-lowercase.c: New file.
24294
24295         Tests for module 'unicase/u16-is-lowercase'.
24296         * modules/unicase/u16-is-lowercase-tests: New file.
24297         * tests/unicase/test-u16-is-lowercase.c: New file.
24298
24299         Tests for module 'unicase/u8-is-lowercase'.
24300         * modules/unicase/u8-is-lowercase-tests: New file.
24301         * tests/unicase/test-u8-is-lowercase.c: New file.
24302         * tests/unicase/test-is-lowercase.h: New file.
24303
24304         New module 'unicase/u32-is-lowercase'.
24305         * lib/unicase/u32-is-lowercase.c: New file.
24306         * modules/unicase/u32-is-lowercase: New file.
24307
24308         New module 'unicase/u16-is-lowercase'.
24309         * lib/unicase/u16-is-lowercase.c: New file.
24310         * modules/unicase/u16-is-lowercase: New file.
24311
24312         New module 'unicase/u8-is-lowercase'.
24313         * lib/unicase/u8-is-lowercase.c: New file.
24314         * modules/unicase/u8-is-lowercase: New file.
24315
24316         Tests for module 'unicase/u32-is-uppercase'.
24317         * modules/unicase/u32-is-uppercase-tests: New file.
24318         * tests/unicase/test-u32-is-uppercase.c: New file.
24319
24320         Tests for module 'unicase/u16-is-uppercase'.
24321         * modules/unicase/u16-is-uppercase-tests: New file.
24322         * tests/unicase/test-u16-is-uppercase.c: New file.
24323
24324         Tests for module 'unicase/u8-is-uppercase'.
24325         * modules/unicase/u8-is-uppercase-tests: New file.
24326         * tests/unicase/test-u8-is-uppercase.c: New file.
24327         * tests/unicase/test-is-uppercase.h: New file.
24328
24329         New module 'unicase/u32-is-uppercase'.
24330         * lib/unicase/u32-is-uppercase.c: New file.
24331         * modules/unicase/u32-is-uppercase: New file.
24332
24333         New module 'unicase/u16-is-uppercase'.
24334         * lib/unicase/u16-is-uppercase.c: New file.
24335         * modules/unicase/u16-is-uppercase: New file.
24336
24337         New module 'unicase/u8-is-uppercase'.
24338         * lib/unicase/u8-is-uppercase.c: New file.
24339         * modules/unicase/u8-is-uppercase: New file.
24340
24341         New module 'unicase/u32-is-invariant'.
24342         * lib/unicase/u32-is-invariant.c: New file.
24343         * modules/unicase/u32-is-invariant: New file.
24344
24345         New module 'unicase/u16-is-invariant'.
24346         * lib/unicase/u16-is-invariant.c: New file.
24347         * modules/unicase/u16-is-invariant: New file.
24348
24349         New module 'unicase/u8-is-invariant'.
24350         * lib/unicase/u8-is-invariant.c: New file.
24351         * lib/unicase/invariant.h: New file.
24352         * lib/unicase/u-is-invariant.h: New file.
24353         * modules/unicase/u8-is-invariant: New file.
24354
24355         Tests for module 'unicase/u32-casecoll'.
24356         * modules/unicase/u32-casecoll-tests: New file.
24357         * tests/unicase/test-u32-casecoll.c: New file.
24358
24359         Tests for module 'unicase/u16-casecoll'.
24360         * modules/unicase/u16-casecoll-tests: New file.
24361         * tests/unicase/test-u16-casecoll.c: New file.
24362
24363         Tests for module 'unicase/u8-casecoll'.
24364         * modules/unicase/u8-casecoll-tests: New file.
24365         * tests/unicase/test-u8-casecoll.c: New file.
24366
24367         New module 'unicase/u32-casecoll'.
24368         * lib/unicase/u32-casecoll.c: New file.
24369         * modules/unicase/u32-casecoll: New file.
24370
24371         New module 'unicase/u16-casecoll'.
24372         * lib/unicase/u16-casecoll.c: New file.
24373         * modules/unicase/u16-casecoll: New file.
24374
24375         New module 'unicase/u8-casecoll'.
24376         * lib/unicase/u8-casecoll.c: New file.
24377         * lib/unicase/u-casecoll.h: New file.
24378         * modules/unicase/u8-casecoll: New file.
24379
24380         New module 'unicase/u32-casexfrm'.
24381         * lib/unicase/u32-casexfrm.c: New file.
24382         * modules/unicase/u32-casexfrm: New file.
24383
24384         New module 'unicase/u16-casexfrm'.
24385         * lib/unicase/u16-casexfrm.c: New file.
24386         * modules/unicase/u16-casexfrm: New file.
24387
24388         New module 'unicase/u8-casexfrm'.
24389         * lib/unicase/u8-casexfrm.c: New file.
24390         * lib/unicase/u-casexfrm.h: New file.
24391         * modules/unicase/u8-casexfrm: New file.
24392
24393         Tests for module 'unicase/u32-casecmp'.
24394         * modules/unicase/u32-casecmp-tests: New file.
24395         * tests/unicase/test-u32-casecmp.c: New file.
24396
24397         Tests for module 'unicase/u16-casecmp'.
24398         * modules/unicase/u16-casecmp-tests: New file.
24399         * tests/unicase/test-u16-casecmp.c: New file.
24400
24401         Tests for module 'unicase/u8-casecmp'.
24402         * modules/unicase/u8-casecmp-tests: New file.
24403         * tests/unicase/test-u8-casecmp.c: New file.
24404         * tests/unicase/test-casecmp.h: New file.
24405
24406         New module 'unicase/u32-casecmp'.
24407         * lib/unicase/u32-casecmp.c: New file.
24408         * modules/unicase/u32-casecmp: New file.
24409
24410         New module 'unicase/u16-casecmp'.
24411         * lib/unicase/u16-casecmp.c: New file.
24412         * modules/unicase/u16-casecmp: New file.
24413
24414         New module 'unicase/u8-casecmp'.
24415         * lib/unicase/u8-casecmp.c: New file.
24416         * lib/unicase/u-casecmp.h: New file.
24417         * modules/unicase/u8-casecmp: New file.
24418
24419         Tests for module 'unicase/u32-casefold'.
24420         * modules/unicase/u32-casefold-tests: New file.
24421         * tests/unicase/test-u32-casefold.c: New file.
24422
24423         Tests for module 'unicase/u16-casefold'.
24424         * modules/unicase/u16-casefold-tests: New file.
24425         * tests/unicase/test-u16-casefold.c: New file.
24426
24427         Tests for module 'unicase/u8-casefold'.
24428         * modules/unicase/u8-casefold-tests: New file.
24429         * tests/unicase/test-u8-casefold.c: New file.
24430
24431         New module 'unicase/u32-casefold'.
24432         * lib/unicase/u32-casefold.c: New file.
24433         * modules/unicase/u32-casefold: New file.
24434
24435         New module 'unicase/u16-casefold'.
24436         * lib/unicase/u16-casefold.c: New file.
24437         * modules/unicase/u16-casefold: New file.
24438
24439         New module 'unicase/u8-casefold'.
24440         * lib/unicase/u8-casefold.c: New file.
24441         * lib/unicase/u-casefold.h: New file.
24442         * modules/unicase/u8-casefold: New file.
24443
24444         New module 'unicase/tocasefold'.
24445         * lib/unicase/casefold.h: New file.
24446         * lib/unicase/tocasefold.c: New file.
24447         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
24448         * modules/unicase/tocasefold: New file.
24449
24450         Tests for module 'unicase/u32-totitle'.
24451         * modules/unicase/u32-totitle-tests: New file.
24452         * tests/unicase/test-u32-totitle.c: New file.
24453
24454         Tests for module 'unicase/u16-totitle'.
24455         * modules/unicase/u16-totitle-tests: New file.
24456         * tests/unicase/test-u16-totitle.c: New file.
24457
24458         Tests for module 'unicase/u8-totitle'.
24459         * modules/unicase/u8-totitle-tests: New file.
24460         * tests/unicase/test-u8-totitle.c: New file.
24461
24462         New module 'unicase/u32-totitle'.
24463         * lib/unicase/u32-totitle.c: New file.
24464         * modules/unicase/u32-totitle: New file.
24465
24466         New module 'unicase/u16-totitle'.
24467         * lib/unicase/u16-totitle.c: New file.
24468         * modules/unicase/u16-totitle: New file.
24469
24470         New module 'unicase/u8-totitle'.
24471         * lib/unicase/u8-totitle.c: New file.
24472         * lib/unicase/u-totitle.h: New file.
24473         * modules/unicase/u8-totitle: New file.
24474
24475         Tests for module 'unicase/u32-tolower'.
24476         * modules/unicase/u32-tolower-tests: New file.
24477         * tests/unicase/test-u32-tolower.c: New file.
24478
24479         Tests for module 'unicase/u16-tolower'.
24480         * modules/unicase/u16-tolower-tests: New file.
24481         * tests/unicase/test-u16-tolower.c: New file.
24482
24483         Tests for module 'unicase/u8-tolower'.
24484         * modules/unicase/u8-tolower-tests: New file.
24485         * tests/unicase/test-u8-tolower.c: New file.
24486
24487         New module 'unicase/u32-tolower'.
24488         * lib/unicase/u32-tolower.c: New file.
24489         * modules/unicase/u32-tolower: New file.
24490
24491         New module 'unicase/u16-tolower'.
24492         * lib/unicase/u16-tolower.c: New file.
24493         * modules/unicase/u16-tolower: New file.
24494
24495         New module 'unicase/u8-tolower'.
24496         * lib/unicase/u8-tolower.c: New file.
24497         * modules/unicase/u8-tolower: New file.
24498
24499         Tests for module 'unicase/u32-toupper'.
24500         * modules/unicase/u32-toupper-tests: New file.
24501         * tests/unicase/test-u32-toupper.c: New file.
24502
24503         Tests for module 'unicase/u16-toupper'.
24504         * modules/unicase/u16-toupper-tests: New file.
24505         * tests/unicase/test-u16-toupper.c: New file.
24506
24507         Tests for module 'unicase/u8-toupper'.
24508         * modules/unicase/u8-toupper-tests: New file.
24509         * tests/unicase/test-u8-toupper.c: New file.
24510
24511         New module 'unicase/u32-toupper'.
24512         * lib/unicase/u32-toupper.c: New file.
24513         * modules/unicase/u32-toupper: New file.
24514
24515         New module 'unicase/u16-toupper'.
24516         * lib/unicase/u16-toupper.c: New file.
24517         * modules/unicase/u16-toupper: New file.
24518
24519         New module 'unicase/u8-toupper'.
24520         * lib/unicase/u8-toupper.c: New file.
24521         * modules/unicase/u8-toupper: New file.
24522
24523         New module 'unicase/u32-casemap'.
24524         * lib/unicase/u32-casemap.c: New file.
24525         * modules/unicase/u32-casemap: New file.
24526
24527         New module 'unicase/u16-casemap'.
24528         * lib/unicase/u16-casemap.c: New file.
24529         * modules/unicase/u16-casemap: New file.
24530
24531         New module 'unicase/u8-casemap'.
24532         * lib/unicase/unicasemap.h: New file.
24533         * lib/unicase/u8-casemap.c: New file.
24534         * lib/unicase/u-casemap.h: New file.
24535         * modules/unicase/u8-casemap: New file.
24536
24537         New module 'unicase/special-casing'.
24538         * lib/unicase/special-casing.h: New file.
24539         * lib/unicase/special-casing.c: New file.
24540         * lib/unicase/special-casing-table.gperf: New file, generated by
24541         gen-uni-tables.c.
24542         * modules/unicase/special-casing: New file.
24543
24544         Tests for module 'unicase/locale-language'.
24545         * modules/unicase/locale-language-tests: New file.
24546         * tests/unicase/test-locale-language.sh: New file.
24547         * tests/unicase/test-locale-language.c: New file.
24548
24549         New module 'unicase/locale-language'.
24550         * lib/unicase/locale-language.c: New file.
24551         * lib/unicase/locale-languages.gperf: New file.
24552         * modules/unicase/locale-language: New file.
24553
24554         Generate more tables for case conversion and case folding.
24555         * lib/gen-uni-tables.c (SCC_*): New enum items.
24556         (struct special_casing_rule): New type.
24557         (casing_rules, num_casing_rules, allocated_casing_rules): New
24558         variables.
24559         (add_casing_rule, fill_casing_rules): New functions.
24560         (struct casefold_rule): New type.
24561         (casefolding_rules, num_casefolding_rules,
24562         allocated_casefolding_rules): New variables.
24563         (fill_casefolding_rules): New function.
24564         (unicode_casefold): New variable.
24565         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
24566         sort_casing_rules, output_casing_rules): New functions.
24567         (main): Accept to more arguments: SpecialCasing.txt and
24568         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
24569         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
24570         Output mapping for casefolding.
24571
24572         * lib/unicase.h: Include stdbool.h, uninorm.h.
24573         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
24574         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
24575         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
24576         arguments.
24577         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
24578         resultp arguments.
24579         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
24580         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
24581         resultp arguments.
24582         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
24583         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
24584         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
24585         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
24586         declarations.
24587         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
24588
24589 2009-03-08  Bruno Haible  <bruno@clisp.org>
24590
24591         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24592         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
24593         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
24594         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24595
24596 2009-03-07  Bruno Haible  <bruno@clisp.org>
24597
24598         Adjust u*_normcmp, u*_normcoll API.
24599         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24600         u16_normcoll, u32_normcoll): Change failure conventions.
24601         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
24602         errno and return -1.
24603         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24604
24605 2009-03-07  Bruno Haible  <bruno@clisp.org>
24606
24607         Tests for module 'uninorm/u32-normcoll'.
24608         * modules/uninorm/u32-normcoll-tests: New file.
24609         * tests/uninorm/test-u32-normcoll.c: New file.
24610
24611         Tests for module 'uninorm/u16-normcoll'.
24612         * modules/uninorm/u16-normcoll-tests: New file.
24613         * tests/uninorm/test-u16-normcoll.c: New file.
24614
24615         Tests for module 'uninorm/u8-normcoll'.
24616         * modules/uninorm/u8-normcoll-tests: New file.
24617         * tests/uninorm/test-u8-normcoll.c: New file.
24618
24619 2009-03-07  Bruno Haible  <bruno@clisp.org>
24620
24621         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
24622         tests/uninorm/test-u32-normcmp.c.
24623         * tests/uninorm/test-u32-normcmp.c: Include it.
24624         (test_nonascii): New function, extracted from main. Add some more
24625         tests.
24626         (main): Invoke test_ascii and test_nonascii.
24627         * modules/uninorm/u32-normcmp-tests (Files): Add
24628         tests/uninorm/test-u32-normcmp.h.
24629         (Depends-on): Remove uninorm/u32-normcmp.
24630
24631         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
24632         tests/uninorm/test-u16-normcmp.c.
24633         * tests/uninorm/test-u16-normcmp.c: Include it.
24634         (test_nonascii): New function, extracted from main. Add some more
24635         tests.
24636         (main): Invoke test_ascii and test_nonascii.
24637         * modules/uninorm/u16-normcmp-tests (Files): Add
24638         tests/uninorm/test-u16-normcmp.h.
24639         (Depends-on): Remove uninorm/u16-normcmp.
24640
24641         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
24642         tests/uninorm/test-u8-normcmp.c.
24643         * tests/uninorm/test-u8-normcmp.c: Include it.
24644         (test_nonascii): New function, extracted from main. Add some more
24645         tests.
24646         (main): Invoke test_ascii and test_nonascii.
24647         * modules/uninorm/u8-normcmp-tests (Files): Add
24648         tests/uninorm/test-u8-normcmp.h.
24649         (Depends-on): Remove uninorm/u8-normcmp.
24650
24651 2009-03-07  Bruno Haible  <bruno@clisp.org>
24652
24653         New module 'uninorm/u32-normcoll'.
24654         * lib/uninorm/u32-normcoll.c: New file.
24655         * modules/uninorm/u32-normcoll: New file.
24656
24657         New module 'uninorm/u16-normcoll'.
24658         * lib/uninorm/u16-normcoll.c: New file.
24659         * modules/uninorm/u16-normcoll: New file.
24660
24661         New module 'uninorm/u8-normcoll'.
24662         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
24663         declarations.
24664         * lib/uninorm/u8-normcoll.c: New file.
24665         * lib/uninorm/u-normcoll.h: New file.
24666         * modules/uninorm/u8-normcoll: New file.
24667
24668         New module 'uninorm/u32-normxfrm'.
24669         * lib/uninorm/u32-normxfrm.c: New file.
24670         * modules/uninorm/u32-normxfrm: New file.
24671
24672         New module 'uninorm/u16-normxfrm'.
24673         * lib/uninorm/u16-normxfrm.c: New file.
24674         * modules/uninorm/u16-normxfrm: New file.
24675
24676         New module 'uninorm/u8-normxfrm'.
24677         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
24678         declarations.
24679         * lib/uninorm/u8-normxfrm.c: New file.
24680         * lib/uninorm/u-normxfrm.h: New file.
24681         * modules/uninorm/u8-normxfrm: New file.
24682
24683 2009-03-07  Bruno Haible  <bruno@clisp.org>
24684
24685         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
24686         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
24687         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
24688
24689 2009-03-07  Bruno Haible  <bruno@clisp.org>
24690
24691         New module 'memxfrm'.
24692         * lib/memxfrm.h: New file.
24693         * lib/memxfrm.c: New file.
24694         * modules/memxfrm: New file.
24695
24696 2009-03-07  Bruno Haible  <bruno@clisp.org>
24697
24698         New module 'memcmp2'.
24699         * lib/memcmp2.h: New file.
24700         * lib/memcmp2.c: New file.
24701         * modules/memcmp2: New file.
24702
24703 2009-03-07  Bruno Haible  <bruno@clisp.org>
24704
24705         Tests for module 'uninorm/decomposing-form'.
24706         * modules/uninorm/decomposing-form-tests: New file.
24707         * tests/uninorm/test-decomposing-form.c: New file.
24708
24709         New module 'uninorm/decomposing-form'.
24710         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
24711         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
24712         Add 'decomposing_variant' field.
24713         * lib/uninorm/decomposing-form.c: New file.
24714         * lib/uninorm/nfc.c (uninorm_nfc): Update.
24715         * lib/uninorm/nfd.c (uninorm_nfd): Update.
24716         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
24717         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
24718         * modules/uninorm/decomposing-form: New file.
24719         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
24720         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
24721
24722 2009-03-07  Bruno Haible  <bruno@clisp.org>
24723
24724         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
24725         strings.
24726
24727 2009-03-06  Bruno Haible  <bruno@clisp.org>
24728
24729         Tests for module 'uninorm/u32-normcmp'.
24730         * tests/uninorm/test-u32-normcmp.c: New file.
24731         * modules/uninorm/u32-normcmp-tests: New file.
24732
24733         Tests for module 'uninorm/u16-normcmp'.
24734         * tests/uninorm/test-u16-normcmp.c: New file.
24735         * modules/uninorm/u16-normcmp-tests: New file.
24736
24737         Tests for module 'uninorm/u8-normcmp'.
24738         * tests/uninorm/test-u8-normcmp.c: New file.
24739         * modules/uninorm/u8-normcmp-tests: New file.
24740
24741         New module 'uninorm/u32-normcmp'.
24742         * lib/uninorm/u32-normcmp.c: New file.
24743         * modules/uninorm/u32-normcmp: New file.
24744
24745         New module 'uninorm/u16-normcmp'.
24746         * lib/uninorm/u16-normcmp.c: New file.
24747         * modules/uninorm/u16-normcmp: New file.
24748
24749         New module 'uninorm/u8-normcmp'.
24750         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
24751         declarations.
24752         * lib/uninorm/u8-normcmp.c: New file.
24753         * lib/uninorm/u-normcmp.h: New file.
24754         * modules/uninorm/u8-normcmp: New file.
24755
24756 2009-03-06  Bruno Haible  <bruno@clisp.org>
24757
24758         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
24759         Reported by Eric Blake.
24760
24761 2009-03-06  Eric Blake  <ebb9@byu.net>
24762             Bruno Haible  <bruno@clisp.org>
24763
24764         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
24765         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
24766         condition.
24767         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24768         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
24769         condition.
24770         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24771
24772 2009-03-06  Eric Blake  <ebb9@byu.net>
24773
24774         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
24775         to avoid compiler warnings.
24776         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
24777
24778 2009-03-05  Bruno Haible  <bruno@clisp.org>
24779
24780         * tests/test-ftell.c (main): Disable test beyond end of file on
24781         FreeMiNT.
24782         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24783
24784 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
24785
24786         * lib/filevercmp.c: Move hidden files up in ordering.
24787         * tests/test-filevercmp.c: Add tests for hidden files.
24788
24789 2009-03-04  Bruno Haible  <bruno@clisp.org>
24790
24791         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
24792         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
24793         AM_CFLAGS.
24794         Reported by Simon Josefsson.
24795
24796 2009-03-03  Bruno Haible  <bruno@clisp.org>
24797
24798         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
24799         Reported by Simon Josefsson.
24800
24801         * doc/ld-version-script.texi: Update node reference.
24802
24803 2009-03-03  Bruno Haible  <bruno@clisp.org>
24804
24805         * modules/visibility (License): Change to 'unlimited'.
24806         Suggested by Simon Josefsson.
24807
24808 2009-03-03  Jim Meyering  <meyering@redhat.com>
24809
24810         unlinkdir: cannot_unlink_dir may modify process state
24811         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
24812         it's neither thread-safe nor appropriate for use in a library.
24813
24814 2009-03-03  Eric Blake  <ebb9@byu.net>
24815
24816         test-closein: silence test under Darwin
24817         * tests/test-closein.sh: Ignore stderr from cat, since we don't
24818         care if it dies from EPIPE or EBADF.
24819
24820 2009-03-03  Bruno Haible  <bruno@clisp.org>
24821
24822         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
24823         earlier.
24824         * doc/visibility.texi: Fix @node and @section.
24825
24826 2009-03-03  Simon Josefsson  <simon@josefsson.org>
24827
24828         * doc/gnulib.texi: Link to sections for ld version script and
24829         visibility.
24830         * doc/visibility.texi: Add @node and @section.
24831         * modules/ld-version-script: New module.
24832         * m4/ld-version-script.m4: New file.
24833         * doc/ld-version-script.texi: New file.
24834
24835 2009-03-02  David Lutterkort  <lutter@redhat.com>
24836
24837         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
24838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24839
24840 2009-03-02  Bruno Haible  <bruno@clisp.org>
24841
24842         * doc/visibility.texi: Mention libtool's -export-symbols option.
24843
24844 2009-03-02  Jim Meyering  <meyering@redhat.com>
24845
24846         announce-gen: new option: --no-print-checksums
24847         * build-aux/announce-gen (usage): Describe it.
24848         (print_checksums): Print a newline here, not in the [*] footnote.
24849         (main): Honor it.
24850
24851 2009-03-01  Bruno Haible  <bruno@clisp.org>
24852
24853         Use socklen_t in the native Windows replacements prototypes.
24854         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
24855         instead of 'int'.
24856         * lib/getsockopt.c (rpl_getsockopt): Likewise.
24857         * lib/setsockopt.c (rpl_setsockopt): Likewise.
24858         * modules/getsockopt (Depends-on): Add socklen.
24859         * modules/setsockopt (Depends-on): Add socklen.
24860
24861 2009-03-01  Bruno Haible  <bruno@clisp.org>
24862
24863         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
24864         least 4.2.
24865
24866 2009-03-01  Eric Blake  <ebb9@byu.net>
24867             Bruno Haible  <bruno@clisp.org>
24868
24869         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
24870         error messages.
24871         * lib/wait-process.c (wait_subprocess): Omit error message about
24872         deadly signal sent to the child of termsigp != NULL.
24873
24874 2009-03-01  Eric Blake  <ebb9@byu.net>
24875
24876         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
24877
24878 2009-03-01  Bruno Haible  <bruno@clisp.org>
24879
24880         Avoid a gcc warning.
24881         * tests/test-sched.c (b): Make global.
24882         Reported by Eric Blake.
24883
24884 2009-01-19  Martin Lambers  <marlam@marlam.de>
24885
24886         Provide POSIX semantics for socket timeout options on W32.
24887         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
24888         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
24889         * modules/setsockopt: Depend on sys_time module for struct timeval.
24890         * modules/getsockopt: Depend on sys_time module for struct timeval.
24891
24892 2009-03-01  Simon Josefsson  <simon@josefsson.org>
24893
24894         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
24895         __USE_GNU, for consistency with netdb.in.h.
24896         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24897
24898 2009-03-01  Bruno Haible  <bruno@clisp.org>
24899
24900         More support for FreeMiNT.
24901         * lib/fseeko.c (rpl_fseeko): Complete last commit.
24902         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24903
24904 2009-03-01  Bruno Haible  <bruno@clisp.org>
24905
24906         More support for FreeMiNT.
24907         * lib/fpurge.c (fpurge): Correct last commit.
24908         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24909
24910 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24911
24912         Fix unportable awk script in vc-list-files.
24913         * build-aux/vc-list-files: In the replacement awk script, use
24914         substr with a second argument of 1, not zero.
24915         Report by Simon Josefsson.
24916
24917 2009-02-28  Bruno Haible  <bruno@clisp.org>
24918
24919         More support for FreeMiNT.
24920         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
24921         to FreeMiNT today.
24922         * lib/fwriting.c (fwriting): Likewise.
24923         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
24924
24925 2009-02-28  Bruno Haible  <bruno@clisp.org>
24926
24927         * tests/test-freadseek.c (main): Disable test beyond end of file on
24928         FreeMiNT.
24929         * tests/test-ftello.c (main): Likewise.
24930         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24931
24932 2009-02-28  Bruno Haible  <bruno@clisp.org>
24933
24934         Add tentative support for FreeMiNT.
24935         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
24936         * lib/fpurge.c (fpurge): Likewise.
24937         * lib/freadable.c (freadable): Likewise.
24938         * lib/freading.c (freading): Likewise.
24939         * lib/freadptr.c (freadptr): Likewise.
24940         * lib/freadseek.c (freadptrinc): Likewise.
24941         * lib/fseeko.c (rpl_fseeko): Likewise.
24942         * lib/fseterr.c (fseterr): Likewise.
24943         * lib/fwritable.c (fwritable): Likewise.
24944         * lib/fwriting.c (fwriting): Likewise.
24945         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
24946         Hourihane.
24947         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24948
24949 2009-02-28  Bruno Haible  <bruno@clisp.org>
24950
24951         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
24952         SIGCHLD.
24953         Reported by Jim Meyering.
24954
24955 2009-02-28  Bruno Haible  <bruno@clisp.org>
24956
24957         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
24958         Mention the results of these tests on various platforms.
24959         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
24960         order.
24961         * doc/posix-functions/printf.texi: Likewise.
24962         * doc/posix-functions/snprintf.texi: Likewise.
24963         * doc/posix-functions/sprintf.texi: Likewise.
24964         * doc/posix-functions/vfprintf.texi: Likewise.
24965         * doc/posix-functions/vprintf.texi: Likewise.
24966         * doc/posix-functions/vsnprintf.texi: Likewise.
24967         * doc/posix-functions/vsprintf.texi: Likewise.
24968         * doc/glibc-functions/obstack_printf.texi: Likewise.
24969         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24970
24971 2009-02-28  Bruno Haible  <bruno@clisp.org>
24972
24973         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
24974         Reported by Loïc Minier <lool@dooz.org>.
24975
24976 2009-02-27  Bruno Haible  <bruno@clisp.org>
24977
24978         * gnulib-tool (func_import): Make the sed expression used to create the
24979         sed script for updating the .gitignore file POSIX compliant.
24980         Reported by Eric Blake.
24981
24982 2009-02-27  Bruno Haible  <bruno@clisp.org>
24983
24984         * gnulib-tool (sed): Don't alias as "sed --posix".
24985         Reported by Eric Blake.
24986
24987 2009-02-27  Bruno Haible  <bruno@clisp.org>
24988
24989         Avoid test link errors.
24990         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
24991         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
24992         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
24993         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
24994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24995
24996 2009-02-27  Bruno Haible  <bruno@clisp.org>
24997
24998         Avoid spurious "(cached)" in configure output.
24999         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25000         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25001         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25002         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25003         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25004         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25005         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25006         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25007         Reported by Eric Blake.
25008
25009 2009-02-27  Eric Blake  <ebb9@byu.net>
25010
25011         printf: fix regression in previous patch
25012         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25013
25014 2009-02-27  Bruno Haible  <bruno@clisp.org>
25015
25016         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25017         value.
25018         * lib/stdint.in.h: Likewise.
25019         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25020
25021 2009-02-27  Eric Blake  <ebb9@byu.net>
25022
25023         doc: mention more functions added in cygwin 1.7.0
25024         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25025         addition.
25026         * doc/posix-functions/open_wmemstream.texi: Likewise.
25027         * doc/posix-functions/wcsnlen.texi: Likewise.
25028         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25029         * doc/posix-functions/wcstod.texi: Likewise.
25030         * doc/posix-functions/wcstof.texi: Likewise.
25031         * doc/posix-functions/wcstoimax.texi: Likewise.
25032         * doc/posix-functions/wcstok.texi: Likewise.
25033         * doc/posix-functions/wcstoumax.texi: Likewise.
25034
25035         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25036         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25037         * doc/posix-functions/fprintf.texi: Update.
25038         * doc/posix-functions/printf.texi: Update.
25039         * doc/posix-functions/snprintf.texi: Update.
25040         * doc/posix-functions/sprintf.texi: Update.
25041         * doc/posix-functions/vfprintf.texi: Update.
25042         * doc/posix-functions/vprintf.texi: Update.
25043         * doc/posix-functions/vsnprintf.texi: Update.
25044         * doc/posix-functions/vsprintf.texi: Update.
25045         * doc/glibc-functions/obstack_printf.texi: Update.
25046         * doc/glibc-functions/obstack_vprintf.texi: Update.
25047
25048 2009-02-26  Eric Blake  <ebb9@byu.net>
25049
25050         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25051         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25052         compilation bug by using runtime conversion.
25053         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25054         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25055         * modules/ceill-tests (Files): Use nan.h.
25056         * modules/floorl-tests (Files): Likewise.
25057         * modules/frexpl-tests (Files): Likewise.
25058         * modules/isnanl-tests (Files): Likewise.
25059         * modules/ldexpl-tests (Files): Likewise.
25060         * modules/roundl-tests (Files): Likewise.
25061         * modules/truncl-tests (Files): Likewise.
25062         * tests/test-ceill.c (main): Use a working NaN.
25063         * tests/test-floorl.c (main): Likewise.
25064         * tests/test-frexpl.c (main): Likewise.
25065         * tests/test-isnan.c (test_long_double): Likewise.
25066         * tests/test-isnanl.h (main): Likewise.
25067         * tests/test-ldexpl.h (main): Likewise.
25068         * tests/test-roundl.h (main): Likewise.
25069         * tests/test-truncl.h (main): Likewise.
25070         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25071
25072 2009-02-26  Eric Blake  <ebb9@byu.net>
25073             Bruno Haible  <bruno@clisp.org>
25074
25075         Work around a *printf bug with %ls on Solaris.
25076         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25077         precision is specified, sprintf stops converting the wide string
25078         argument when the number of bytes that have been produced by this
25079         conversion equals or exceeds the precision.
25080         * doc/posix-functions/fprintf.texi: Update.
25081         * doc/posix-functions/printf.texi: Update.
25082         * doc/posix-functions/snprintf.texi: Update.
25083         * doc/posix-functions/sprintf.texi: Update.
25084         * doc/posix-functions/vfprintf.texi: Update.
25085         * doc/posix-functions/vprintf.texi: Update.
25086         * doc/posix-functions/vsnprintf.texi: Update.
25087         * doc/posix-functions/vsprintf.texi: Update.
25088         * doc/glibc-functions/obstack_printf.texi: Update.
25089         * doc/glibc-functions/obstack_vprintf.texi: Update.
25090
25091 2009-02-26  Eric Blake  <ebb9@byu.net>
25092
25093         stdlib: favor compiler check of random.h
25094         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25095         to avoid an ObjC random.h installed by Swarm.
25096
25097 2009-02-26  Bruno Haible  <bruno@clisp.org>
25098
25099         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25100         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25101         Reported by Gary V. Vaughan <gary@gnu.org>.
25102
25103 2009-02-26  Bruno Haible  <bruno@clisp.org>
25104
25105         Fix *printf behaviour regarding the %ls directive.
25106         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25107         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25108         NEED_PRINTF_DIRECTIVE_LS.
25109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25110         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25111         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25112         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25113         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25114         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25115         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25116         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25117         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25120         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25121         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25122         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25123         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25124         * doc/posix-functions/fprintf.texi: Update.
25125         * doc/posix-functions/printf.texi: Update.
25126         * doc/posix-functions/snprintf.texi: Update.
25127         * doc/posix-functions/sprintf.texi: Update.
25128         * doc/posix-functions/vfprintf.texi: Update.
25129         * doc/posix-functions/vprintf.texi: Update.
25130         * doc/posix-functions/vsnprintf.texi: Update.
25131         * doc/posix-functions/vsprintf.texi: Update.
25132         * doc/glibc-functions/obstack_printf.texi: Update.
25133         * doc/glibc-functions/obstack_vprintf.texi: Update.
25134         Reported by Eric Blake.
25135
25136 2009-02-25  Bruno Haible  <bruno@clisp.org>
25137
25138         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25139         with known value.
25140         Reported by Gary V. Vaughan <gary@gnu.org>.
25141
25142 2009-02-25  Bruno Haible  <bruno@clisp.org>
25143
25144         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25145         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25146         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25147         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25148         Reported by Gary V. Vaughan <gary@gnu.org>.
25149
25150 2009-02-25  Bruno Haible  <bruno@clisp.org>
25151
25152         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25153         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25154         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25155         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25156         Reported by Gary V. Vaughan <gary@gnu.org>.
25157
25158 2009-02-25  Eric Blake  <ebb9@byu.net>
25159
25160         tests: skip fseek/ftell tests if ungetc is broken
25161         * m4/ungetc.m4: New file.
25162         * modules/fseek-tests: Split test, so ungetc dependency is
25163         separate from rest of test.
25164         * modules/fseeko-tests: Likewise.
25165         * modules/ftell-tests: Likewise.
25166         * modules/ftello-tests: Likewise.
25167         * tests/test-fseek.c (main): Isolate ungetc dependency.
25168         * tests/test-fseeko.c (main): Likewise.
25169         * tests/test-ftell.c (main): Likewise.
25170         * tests/test-ftello.c (main): Likewise.
25171         * tests/test-fseek2.sh: New file.
25172         * tests/test-fseeko2.sh: Likewise.
25173         * tests/test-ftell2.sh: Likewise.
25174         * tests/test-ftello2.sh: Likewise.
25175
25176 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
25177
25178         test-getaddrinfo: fix usage of skip return code 77
25179         * tests/test-gettaddrinfo.c: Return skip code 77 only
25180         for first occurance of skip (4x77 is not 77)
25181
25182 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25183
25184         strtod: avoid C99 decl-after-statement
25185         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25186
25187 2009-02-24  Eric Blake  <ebb9@byu.net>
25188
25189         strtod: detect HP-UX 11.31 bug
25190         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25191         Reported by Gary V. Vaughan.
25192
25193 2009-02-23  Bruno Haible  <bruno@clisp.org>
25194
25195         Fix invalid read past end of memory block.
25196         * lib/vasnprintf.c (DCHAR_SET): Define.
25197         (local_wcslen): Define only when needed.
25198         (local_strnlen, local_wcsnlen): New functions.
25199         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25200         directives that involve a conversion ourselves.
25201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25202         wcsnlen, mbrtowc, wcrtomb.
25203         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25204         * tests/test-vasprintf-posix.c (test_function): Likewise.
25205         * tests/test-snprintf-posix.h (test_function): Likewise.
25206         * tests/test-sprintf-posix.h (test_function): Likewise.
25207         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25208
25209 2009-02-22  Bruno Haible  <bruno@clisp.org>
25210
25211         Implement new clarified decomposition of Hangul syllables.
25212         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25213         of type LTV, return only a pairwise decomposition.
25214         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25215         Likewise.
25216         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25217         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25218         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25219
25220 2009-02-22  Bruno Haible  <bruno@clisp.org>
25221
25222         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25223         zero-length results and shrink excess allocated memory.
25224         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25225         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25226         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25227         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25228         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25229         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25230         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25231         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25232         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25233         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25234         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25235         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25236
25237 2009-02-21  Bruno Haible  <bruno@clisp.org>
25238
25239         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25240         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25241         spaces after a period. Put a space between a macro name and its
25242         argument list. Trivial rewordings.
25243         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25244         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25245         (main): Return 0 explicitly.
25246
25247 2009-02-21  Bruno Haible  <bruno@clisp.org>
25248
25249         Tests for module 'uninorm/filter'.
25250         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25251         * modules/uninorm/filter-tests: New file.
25252
25253         New module 'uninorm/filter'.
25254         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25255         uninorm_filter_flush, uninorm_filter_free): New declarations.
25256         * lib/uninorm/uninorm-filter.c: New file.
25257         * modules/uninorm/filter: New file.
25258
25259 2009-02-21  Bruno Haible  <bruno@clisp.org>
25260
25261         Tests for module 'uninorm/nfkc'.
25262         * tests/uninorm/test-nfkc.c: New file.
25263         * tests/uninorm/test-u8-nfkc.c: New file.
25264         * tests/uninorm/test-u16-nfkc.c: New file.
25265         * tests/uninorm/test-u32-nfkc.c: New file.
25266         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25267         * tests/uninorm/test-u32-nfkc-big.c: New file.
25268         * modules/uninorm/nfkc-tests: New file.
25269
25270         New module 'uninorm/nfkc'.
25271         * lib/uninorm/nfkc.c: New file.
25272         * modules/uninorm/nfkc: New file.
25273
25274         Tests for module 'uninorm/nfkd'.
25275         * tests/uninorm/test-nfkd.c: New file.
25276         * tests/uninorm/test-u8-nfkd.c: New file.
25277         * tests/uninorm/test-u16-nfkd.c: New file.
25278         * tests/uninorm/test-u32-nfkd.c: New file.
25279         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25280         * tests/uninorm/test-u32-nfkd-big.c: New file.
25281         * modules/uninorm/nfkd-tests: New file.
25282
25283         New module 'uninorm/nfkd'.
25284         * lib/uninorm/nfkd.c: New file.
25285         * modules/uninorm/nfkd: New file.
25286
25287         Tests for module 'uninorm/nfc'.
25288         * tests/uninorm/test-nfc.c: New file.
25289         * tests/uninorm/test-u8-nfc.c: New file.
25290         * tests/uninorm/test-u16-nfc.c: New file.
25291         * tests/uninorm/test-u32-nfc.c: New file.
25292         * tests/uninorm/test-u32-nfc-big.sh: New file.
25293         * tests/uninorm/test-u32-nfc-big.c: New file.
25294         * modules/uninorm/nfc-tests: New file.
25295
25296         New module 'uninorm/nfc'.
25297         * lib/uninorm/nfc.c: New file.
25298         * modules/uninorm/nfc: New file.
25299
25300         Tests for module 'uninorm/nfd'.
25301         * tests/uninorm/test-nfd.c: New file.
25302         * tests/uninorm/test-u8-nfd.c: New file.
25303         * tests/uninorm/test-u16-nfd.c: New file.
25304         * tests/uninorm/test-u32-nfd.c: New file.
25305         * tests/uninorm/test-u32-nfd-big.sh: New file.
25306         * tests/uninorm/test-u32-nfd-big.c: New file.
25307         * tests/uninorm/test-u32-normalize-big.h: New file.
25308         * tests/uninorm/test-u32-normalize-big.c: New file.
25309         * tests/uninorm/NormalizationTest.txt: New file, created from
25310         Unicode 5.1.0 NormalizationTest.txt.
25311         * modules/uninorm/nfd-tests: New file.
25312
25313         New module 'uninorm/nfd'.
25314         * lib/uninorm/nfd.c: New file.
25315         * modules/uninorm/nfd: New file.
25316
25317         New module 'uninorm/u32-normalize'.
25318         * lib/uninorm/u32-normalize.c: New file.
25319         * modules/uninorm/u32-normalize: New file.
25320
25321         New module 'uninorm/u16-normalize'.
25322         * lib/uninorm/u16-normalize.c: New file.
25323         * modules/uninorm/u16-normalize: New file.
25324
25325         New module 'uninorm/u8-normalize'.
25326         * lib/uninorm/u8-normalize.c: New file.
25327         * lib/uninorm/normalize-internal.h: New file.
25328         * lib/uninorm/u-normalize-internal.h: New file.
25329         * modules/uninorm/u8-normalize: New file.
25330
25331         New module 'uninorm/decompose-internal'.
25332         * lib/uninorm/decompose-internal.c: New file.
25333         * modules/uninorm/decompose-internal: New file.
25334
25335         Tests for module 'uninorm/composition'.
25336         * tests/uninorm/test-composition.c: New file.
25337         * modules/uninorm/composition-tests: New file.
25338
25339         New module 'uninorm/composition'.
25340         * lib/uninorm/composition.c: New file.
25341         * lib/uninorm/composition-table.gperf: New file, generated by
25342         gen-uni-tables.
25343         * modules/uninorm/composition: New file.
25344
25345         Tests for module 'uninorm/compat-decomposition'.
25346         * tests/uninorm/test-compat-decomposition.c: New file.
25347         * modules/uninorm/compat-decomposition-tests: New file.
25348
25349         New module 'uninorm/compat-decomposition'.
25350         * lib/uninorm/decompose-internal.h: New file.
25351         * lib/uninorm/compat-decomposition.c: New file.
25352         * modules/uninorm/compat-decomposition: New file.
25353
25354         Tests for module 'uninorm/canonical-decomposition'.
25355         * tests/uninorm/test-canonical-decomposition.c: New file.
25356         * modules/uninorm/canonical-decomposition-tests: New file.
25357
25358         New module 'uninorm/canonical-decomposition'.
25359         * lib/uninorm/canonical-decomposition.c: New file.
25360         * modules/uninorm/canonical-decomposition: New file.
25361
25362         Tests for module 'uninorm/decomposition'.
25363         * tests/uninorm/test-decomposition.c: New file.
25364         * modules/uninorm/decomposition-tests: New file.
25365
25366         New module 'uninorm/decomposition'.
25367         * lib/uninorm/decomposition.c: New file.
25368         * modules/uninorm/decomposition: New file.
25369
25370         New module 'uninorm/decomposition-table'.
25371         * lib/uninorm/decomposition-table.h: New file.
25372         * lib/uninorm/decomposition-table.c: New file.
25373         * lib/uninorm/decomposition-table1.h: New file, generated by
25374         gen-uni-tables.
25375         * lib/uninorm/decomposition-table2.h: New file, generated by
25376         gen-uni-tables.
25377         * modules/uninorm/decomposition-table: New file.
25378
25379         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25380         (UC_DECOMP_*): New enumeration items.
25381         (get_decomposition): New function.
25382         (struct decomp_table): New type.
25383         (output_decomposition, output_decomposition_tables): New functions.
25384         (unicode_composition_exclusions): New variable.
25385         (fill_composition_exclusions, debug_output_composition_tables): New
25386         functions.
25387         (main): Accept one more argument. Invoke fill_composition_exclusions.
25388         Output decomposition and composition tables.
25389
25390         New module 'uninorm/base'.
25391         * lib/uninorm.h: New file.
25392         * lib/unictype.h: Update comment.
25393         * modules/uninorm/base: New file.
25394
25395 2009-02-21  David Lutterkort  <lutter@redhat.com>
25396
25397         Tests for module 'safe-alloc'.
25398         * tests/test-safe-alloc.c: New file.
25399         * modules/safe-alloc-tests: New file.
25400
25401         New module 'safe-alloc'.
25402         * lib/safe-alloc.h: New file.
25403         * lib/safe-alloc.c: New file.
25404         * m4/safe-alloc.m4: New file.
25405         * modules/safe-alloc: New file.
25406         * doc/safe-alloc.texi: New file.
25407         * doc/gnulib.texi: Include it.
25408         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25409         safe-alloc.
25410
25411 2009-02-18  Bruno Haible  <bruno@clisp.org>
25412
25413         Fix link error on non-glibc systems.
25414         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
25415         variable.
25416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25417
25418 2009-02-18  Jim Meyering  <meyering@redhat.com>
25419
25420         fts: avoid used-uninitialized error due to recent change
25421         * lib/fts.c (fts_read): Guard uses of the new member,
25422         parent->fts_n_dirs_remaining, since it's not relevant for
25423         the parent of a directory specified on the command-line.
25424
25425 2009-02-17  James Youngman  <jay@gnu.org>
25426             Bruno Haible  <bruno@clisp.org>
25427
25428         * m4/include_next.m4: Reformulate comment.
25429
25430 2009-02-16  Jim Meyering  <meyering@redhat.com>
25431
25432         fts: add #if guards so that the fts_lgpl module still builds
25433         * lib/fts.c: Guard just-added hash-table-using parts with
25434         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
25435         Reported by Simon Josefsson.
25436
25437 2009-02-15  Bruno Haible  <bruno@clisp.org>
25438
25439         * modules/array-mergesort-tests: New file.
25440         * tests/test-array-mergesort.c: New file.
25441
25442         New module 'array-mergesort'.
25443         * modules/array-mergesort: New file.
25444         * lib/array-mergesort.h: New file.
25445
25446 2009-02-15  Bruno Haible  <bruno@clisp.org>
25447
25448         Fix 2009-02-07 commit.
25449         * lib/gen-uni-tables.c (output_predicate, output_category,
25450         output_combclass, output_bidi_category, output_decimal_digit,
25451         output_digit, output_numeric, output_mirror, output_scripts,
25452         output_ident_category, output_simple_mapping): Fix format directives.
25453         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
25454
25455 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
25456
25457         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
25458         fixes are available from IBM.
25459
25460 2009-02-13  Jim Meyering  <meyering@redhat.com>
25461
25462         fts: arrange not to stat non-directories in more cases
25463         This makes GNU find (when it doesn't need to stat each file)
25464         *much* more efficient at traversing reiserfs file systems.
25465         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
25466         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
25467         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
25468         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
25469         (leaf_optimization_applies): New function.
25470         (LCO_hash, LCO_compare): New helper functions.
25471         (link_count_optimize_ok): New function.
25472         (fts_stat): Initialize new member (if dir).
25473         (fts_read): Decrement parent's fts_n_dirs_remaining count if
25474         we've just stat'ed a directory.  Skip the stat call when possible.
25475         ---
25476         Note this AFS-related exchange:
25477         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
25478         and note find's pioctl call in find/fstype.c.
25479         But that is necessary only if you want to enable the
25480         optimization for AFS, and for now, I don't.
25481
25482         fts: move a function definition "up" (no semantic change)
25483         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
25484         "up" to precede upcoming use of a related function.
25485
25486 2009-02-11  Jim Meyering  <meyering@redhat.com>
25487
25488         fts: correct internal computation of nlinks (optimization-related)
25489         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
25490         whether the current entry is a directory, so don't test it.
25491
25492 2009-02-10  Bruno Haible  <bruno@clisp.org>
25493
25494         Tests for module 'uniwbrk/ulc-wordbreaks'.
25495         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
25496         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
25497         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
25498
25499         Tests for module 'uniwbrk/u32-wordbreaks'.
25500         * modules/uniwbrk/u32-wordbreaks-tests: New file.
25501         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
25502
25503         Tests for module 'uniwbrk/u16-wordbreaks'.
25504         * modules/uniwbrk/u16-wordbreaks-tests: New file.
25505         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
25506
25507         Tests for module 'uniwbrk/u8-wordbreaks'.
25508         * modules/uniwbrk/u8-wordbreaks-tests: New file.
25509         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
25510
25511 2009-02-10  Bruno Haible  <bruno@clisp.org>
25512
25513         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
25514         property.
25515         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
25516         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
25517         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
25518
25519 2009-02-10  Simon Josefsson  <simon@josefsson.org>
25520
25521         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
25522         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
25523
25524 2009-02-10  Bruno Haible  <bruno@clisp.org>
25525
25526         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
25527         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
25528         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
25529         * lib/unilbrk/u8-possible-linebreaks.c: Update.
25530         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
25531         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
25532
25533 2009-02-09  Simon Josefsson  <simon@josefsson.org>
25534
25535         * lib/sockets.h (gl_fd_to_handle): New function.
25536
25537         * tests/test-sockets.c: Call gl_fd_to_handle.
25538
25539 2009-02-09  Bruno Haible  <bruno@clisp.org>
25540
25541         * doc/havelib.texi: Document the conventions on bi-arch systems.
25542
25543 2009-02-08  Bruno Haible  <bruno@clisp.org>
25544
25545         Document the AC_LIB_LINKFLAGS macro.
25546         * doc/havelib.texi: New file, mostly written on 2005-05-24.
25547         * doc/gnulib.texi: Include it.
25548
25549 2009-02-08  Bruno Haible  <bruno@clisp.org>
25550
25551         Fix wrong order of sections, compared to TOC.
25552         * doc/gnulib.texi: Include relocatable-maint.texi after the
25553         "Regular expressions" node, not before.
25554
25555 2009-02-08  Bruno Haible  <bruno@clisp.org>
25556
25557         Tests for module 'unicase/totitle'.
25558         * modules/unicase/totitle-tests: New file.
25559
25560         Tests for module 'unicase/tolower'.
25561         * modules/unicase/tolower-tests: New file.
25562
25563         Tests for module 'unicase/toupper'.
25564         * modules/unicase/toupper-tests: New file.
25565         * tests/unicase/test-mapping-part1.h: New file.
25566         * tests/unicase/test-mapping-part2.h: New file.
25567
25568         New module 'unicase/totitle'.
25569         * modules/unicase/totitle: New file.
25570         * lib/unicase/totitle.c: New file.
25571
25572         New module 'unicase/tolower'.
25573         * modules/unicase/tolower: New file.
25574         * lib/unicase/tolower.c: New file.
25575
25576         New module 'unicase/toupper'.
25577         * modules/unicase/toupper: New file.
25578         * lib/unicase/toupper.c: New file.
25579         * lib/unicase/simple-mapping.h: New file.
25580
25581         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
25582         (mapping_table): New structure.
25583         (output_simple_mapping): New function.
25584         (main): Invoke output_simple_mapping_test and output_simple_mapping.
25585         * modules/gen-uni-tables (Description): Update.
25586         * lib/unicase/toupper.h: New file, automatically generated by
25587         gen-uni-tables.
25588         * lib/unicase/tolower.h: New file, automatically generated by
25589         gen-uni-tables.
25590         * lib/unicase/totitle.h: New file, automatically generated by
25591         gen-uni-tables.
25592         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
25593         gen-uni-tables.
25594         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
25595         gen-uni-tables.
25596         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
25597         gen-uni-tables.
25598
25599         New module 'unicase/base'.
25600         * modules/unicase/base: New file.
25601         * lib/unicase.h: New file.
25602
25603 2009-02-08  Bruno Haible  <bruno@clisp.org>
25604
25605         New module 'uniwbrk/ulc-wordbreaks'.
25606         * modules/uniwbrk/ulc-wordbreaks: New file.
25607         * lib/uniwbrk/ulc-wordbreaks.c: New file.
25608
25609         New module 'uniwbrk/u32-wordbreaks'.
25610         * modules/uniwbrk/u32-wordbreaks: New file.
25611         * lib/uniwbrk/u32-wordbreaks.c: New file.
25612
25613         New module 'uniwbrk/u16-wordbreaks'.
25614         * modules/uniwbrk/u16-wordbreaks: New file.
25615         * lib/uniwbrk/u16-wordbreaks.c: New file.
25616
25617         New module 'uniwbrk/u8-wordbreaks'.
25618         * modules/uniwbrk/u8-wordbreaks: New file.
25619         * lib/uniwbrk/u8-wordbreaks.c: New file.
25620         * lib/uniwbrk/u-wordbreaks.h: New file.
25621
25622         New module 'uniwbrk/table'.
25623         * modules/uniwbrk/table: New file.
25624         * lib/uniwbrk/wbrktable.h: New file.
25625         * lib/uniwbrk/wbrktable.c: New file.
25626
25627         New module 'uniwbrk/wordbreak-property'.
25628         * modules/uniwbrk/wordbreak-property: New file.
25629         * lib/uniwbrk/wordbreak-property.c: New file.
25630
25631         * lib/gen-uni-tables.c (WBP_*): New enum items.
25632         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
25633         (unicode_org_wbp): New variable.
25634         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
25635         New functions.
25636         (wbp_table): New structure.
25637         (output_wbp, output_wbrk_tables): New functions.
25638         (main): Accept additional argument. Invoke fill_org_wbp,
25639         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
25640         output_wbrk_tables.
25641         * modules/gen-uni-tables (Description): Update.
25642         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
25643         gen-uni-tables.
25644
25645         New module 'uniwbrk/base'.
25646         * modules/uniwbrk/base: New file.
25647         * lib/uniwbrk.h: New file.
25648
25649 2009-02-08  Bruno Haible  <bruno@clisp.org>
25650
25651         Update to Unicode 5.1.0.
25652         * lib/gen-uni-tables.c (is_property_alphabetic): Include
25653         U+2185..U+2188.
25654         (is_property_default_ignorable_code_point): Don't include characters
25655         of category Cc or Cs and not-a-characters.
25656         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
25657         U+0D79, U+109E, U+109F, U+A60C.
25658         * lib/unictype/bidi_of.h: Regenerated.
25659         * lib/unictype/blocks.h: Regenerated.
25660         * lib/unictype/categ_C.h: Regenerated.
25661         * lib/unictype/categ_Cf.h: Regenerated.
25662         * lib/unictype/categ_Cn.h: Regenerated.
25663         * lib/unictype/categ_L.h: Regenerated.
25664         * lib/unictype/categ_Ll.h: Regenerated.
25665         * lib/unictype/categ_Lm.h: Regenerated.
25666         * lib/unictype/categ_Lo.h: Regenerated.
25667         * lib/unictype/categ_Lu.h: Regenerated.
25668         * lib/unictype/categ_M.h: Regenerated.
25669         * lib/unictype/categ_Mc.h: Regenerated.
25670         * lib/unictype/categ_Me.h: Regenerated.
25671         * lib/unictype/categ_Mn.h: Regenerated.
25672         * lib/unictype/categ_N.h: Regenerated.
25673         * lib/unictype/categ_Nd.h: Regenerated.
25674         * lib/unictype/categ_Nl.h: Regenerated.
25675         * lib/unictype/categ_No.h: Regenerated.
25676         * lib/unictype/categ_P.h: Regenerated.
25677         * lib/unictype/categ_Pd.h: Regenerated.
25678         * lib/unictype/categ_Pe.h: Regenerated.
25679         * lib/unictype/categ_Pf.h: Regenerated.
25680         * lib/unictype/categ_Pi.h: Regenerated.
25681         * lib/unictype/categ_Po.h: Regenerated.
25682         * lib/unictype/categ_Ps.h: Regenerated.
25683         * lib/unictype/categ_S.h: Regenerated.
25684         * lib/unictype/categ_Sk.h: Regenerated.
25685         * lib/unictype/categ_Sm.h: Regenerated.
25686         * lib/unictype/categ_So.h: Regenerated.
25687         * lib/unictype/categ_of.h: Regenerated.
25688         * lib/unictype/combining.h: Regenerated.
25689         * lib/unictype/ctype_alnum.h: Regenerated.
25690         * lib/unictype/ctype_alpha.h: Regenerated.
25691         * lib/unictype/ctype_graph.h: Regenerated.
25692         * lib/unictype/ctype_lower.h: Regenerated.
25693         * lib/unictype/ctype_print.h: Regenerated.
25694         * lib/unictype/ctype_punct.h: Regenerated.
25695         * lib/unictype/ctype_upper.h: Regenerated.
25696         * lib/unictype/decdigit.h: Regenerated.
25697         * lib/unictype/digit.h: Regenerated.
25698         * lib/unictype/mirror.h: Regenerated.
25699         * lib/unictype/numeric.h: Regenerated.
25700         * lib/unictype/pr_alphabetic.h: Regenerated.
25701         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
25702         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
25703         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
25704         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
25705         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
25706         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
25707         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
25708         * lib/unictype/pr_combining.h: Regenerated.
25709         * lib/unictype/pr_dash.h: Regenerated.
25710         * lib/unictype/pr_decimal_digit.h: Regenerated.
25711         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
25712         * lib/unictype/pr_deprecated.h: Regenerated.
25713         * lib/unictype/pr_diacritic.h: Regenerated.
25714         * lib/unictype/pr_extender.h: Regenerated.
25715         * lib/unictype/pr_format_control.h: Regenerated.
25716         * lib/unictype/pr_grapheme_base.h: Regenerated.
25717         * lib/unictype/pr_grapheme_extend.h: Regenerated.
25718         * lib/unictype/pr_grapheme_link.h: Regenerated.
25719         * lib/unictype/pr_id_continue.h: Regenerated.
25720         * lib/unictype/pr_id_start.h: Regenerated.
25721         * lib/unictype/pr_ideographic.h: Regenerated.
25722         * lib/unictype/pr_ignorable_control.h: Regenerated.
25723         * lib/unictype/pr_lowercase.h: Regenerated.
25724         * lib/unictype/pr_math.h: Regenerated.
25725         * lib/unictype/pr_numeric.h: Regenerated.
25726         * lib/unictype/pr_other_alphabetic.h: Regenerated.
25727         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
25728         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
25729         * lib/unictype/pr_other_id_continue.h: Regenerated.
25730         * lib/unictype/pr_other_lowercase.h: Regenerated.
25731         * lib/unictype/pr_other_math.h: Regenerated.
25732         * lib/unictype/pr_punctuation.h: Regenerated.
25733         * lib/unictype/pr_sentence_terminal.h: Regenerated.
25734         * lib/unictype/pr_soft_dotted.h: Regenerated.
25735         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
25736         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
25737         * lib/unictype/pr_unified_ideograph.h: Regenerated.
25738         * lib/unictype/pr_uppercase.h: Regenerated.
25739         * lib/unictype/pr_xid_continue.h: Regenerated.
25740         * lib/unictype/pr_xid_start.h: Regenerated.
25741         * lib/unictype/pr_zero_width.h: Regenerated.
25742         * lib/unictype/scripts.h: Regenerated.
25743         * lib/unictype/scripts_byname.gperf: Regenerated.
25744         * lib/unictype/sy_java_ident.h: Regenerated.
25745         * lib/unilbrk/lbrkprop1.h: Regenerated.
25746         * lib/unilbrk/lbrkprop2.h: Regenerated.
25747         * tests/unictype/test-categ_C.c: Regenerated.
25748         * tests/unictype/test-categ_Cf.c: Regenerated.
25749         * tests/unictype/test-categ_Cn.c: Regenerated.
25750         * tests/unictype/test-categ_L.c: Regenerated.
25751         * tests/unictype/test-categ_Ll.c: Regenerated.
25752         * tests/unictype/test-categ_Lm.c: Regenerated.
25753         * tests/unictype/test-categ_Lo.c: Regenerated.
25754         * tests/unictype/test-categ_Lu.c: Regenerated.
25755         * tests/unictype/test-categ_M.c: Regenerated.
25756         * tests/unictype/test-categ_Mc.c: Regenerated.
25757         * tests/unictype/test-categ_Me.c: Regenerated.
25758         * tests/unictype/test-categ_Mn.c: Regenerated.
25759         * tests/unictype/test-categ_N.c: Regenerated.
25760         * tests/unictype/test-categ_Nd.c: Regenerated.
25761         * tests/unictype/test-categ_Nl.c: Regenerated.
25762         * tests/unictype/test-categ_No.c: Regenerated.
25763         * tests/unictype/test-categ_P.c: Regenerated.
25764         * tests/unictype/test-categ_Pd.c: Regenerated.
25765         * tests/unictype/test-categ_Pe.c: Regenerated.
25766         * tests/unictype/test-categ_Pf.c: Regenerated.
25767         * tests/unictype/test-categ_Pi.c: Regenerated.
25768         * tests/unictype/test-categ_Po.c: Regenerated.
25769         * tests/unictype/test-categ_Ps.c: Regenerated.
25770         * tests/unictype/test-categ_S.c: Regenerated.
25771         * tests/unictype/test-categ_Sk.c: Regenerated.
25772         * tests/unictype/test-categ_Sm.c: Regenerated.
25773         * tests/unictype/test-categ_So.c: Regenerated.
25774         * tests/unictype/test-ctype_alnum.c: Regenerated.
25775         * tests/unictype/test-ctype_alpha.c: Regenerated.
25776         * tests/unictype/test-ctype_graph.c: Regenerated.
25777         * tests/unictype/test-ctype_lower.c: Regenerated.
25778         * tests/unictype/test-ctype_print.c: Regenerated.
25779         * tests/unictype/test-ctype_punct.c: Regenerated.
25780         * tests/unictype/test-ctype_upper.c: Regenerated.
25781         * tests/unictype/test-decdigit.h: Regenerated.
25782         * tests/unictype/test-digit.h: Regenerated.
25783         * tests/unictype/test-numeric.h: Regenerated.
25784         * tests/unictype/test-pr_alphabetic.c: Regenerated.
25785         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
25786         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
25787         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
25788         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
25789         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
25790         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
25791         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
25792         * tests/unictype/test-pr_combining.c: Regenerated.
25793         * tests/unictype/test-pr_dash.c: Regenerated.
25794         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
25795         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
25796         * tests/unictype/test-pr_deprecated.c: Regenerated.
25797         * tests/unictype/test-pr_diacritic.c: Regenerated.
25798         * tests/unictype/test-pr_extender.c: Regenerated.
25799         * tests/unictype/test-pr_format_control.c: Regenerated.
25800         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
25801         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
25802         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
25803         * tests/unictype/test-pr_id_continue.c: Regenerated.
25804         * tests/unictype/test-pr_id_start.c: Regenerated.
25805         * tests/unictype/test-pr_ideographic.c: Regenerated.
25806         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
25807         * tests/unictype/test-pr_lowercase.c: Regenerated.
25808         * tests/unictype/test-pr_math.c: Regenerated.
25809         * tests/unictype/test-pr_numeric.c: Regenerated.
25810         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
25811         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
25812         Regenerated.
25813         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
25814         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
25815         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
25816         * tests/unictype/test-pr_other_math.c: Regenerated.
25817         * tests/unictype/test-pr_punctuation.c: Regenerated.
25818         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
25819         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
25820         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
25821         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
25822         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
25823         * tests/unictype/test-pr_uppercase.c: Regenerated.
25824         * tests/unictype/test-pr_xid_continue.c: Regenerated.
25825         * tests/unictype/test-pr_xid_start.c: Regenerated.
25826         * tests/unictype/test-pr_zero_width.c: Regenerated.
25827
25828         Update to Unicode 5.1.0.
25829         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
25830         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
25831         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
25832         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
25833         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
25834         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
25835         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
25836         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
25837         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
25838         (nonspacing_table_ind): Update.
25839         * tests/uniwidth/test-uc_width2.sh: Update expected result.
25840
25841         Update to Unicode 5.1.0.
25842         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
25843         code transform.
25844         * lib/uniname/uniname.c (unicode_character_name,
25845         unicode_name_character): Add the range 0x1Fxxx to the code transform.
25846         * lib/uniname/uninames.h: Regenerated.
25847         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
25848
25849 2009-02-07  Bruno Haible  <bruno@clisp.org>
25850
25851         Merge gen-ctype and gen-lbrk into a single program.
25852         * lib/gen-uni-tables.c: New file, incorporating
25853         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
25854         Add directory prefixes to the names of the generated files.
25855         * lib/unictype/gen-ctype.c: Remove file.
25856         * lib/unilbrk/gen-lbrk.c: Remove file.
25857         * modules/gen-uni-tables: New file.
25858         * modules/unictype/gen-ctype: Remove file.
25859         * modules/unilbrk/gen-lbrk: Remove file.
25860
25861 2009-02-07  Bruno Haible  <bruno@clisp.org>
25862
25863         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
25864
25865         New module 'unistr/u32-strcoll'.
25866         * modules/unistr/u32-strcoll: New file.
25867         * lib/unistr/u32-strcoll.c: New file.
25868
25869         New module 'unistr/u16-strcoll'.
25870         * modules/unistr/u16-strcoll: New file.
25871         * lib/unistr/u16-strcoll.c: New file.
25872
25873         New module 'unistr/u8-strcoll'.
25874         * modules/unistr/u8-strcoll: New file.
25875         * lib/unistr/u8-strcoll.c: New file.
25876         * lib/unistr/u-strcoll.h: New file.
25877
25878 2009-02-07  Bruno Haible  <bruno@clisp.org>
25879
25880         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
25881         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
25882         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
25883         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
25884         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
25885         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
25886
25887 2009-02-07  Bruno Haible  <bruno@clisp.org>
25888
25889         Make 64-bit clean.
25890         * lib/unictype/gen-ctype.c (output_predicate, output_category,
25891         output_combclass, output_bidi_category, output_decimal_digit,
25892         output_digit, output_numeric, output_mirror, output_scripts,
25893         output_ident_category): Use proper width specifier in format strings.
25894
25895 2009-02-07  Bruno Haible  <bruno@clisp.org>
25896
25897         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
25898         failure behaviour.
25899
25900 2009-02-07  Jim Meyering  <meyering@redhat.com>
25901
25902         regex: avoid compilation failure with upcoming gcc-4.4
25903         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
25904         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
25905         "... error: integer overflow in preprocessor expression".
25906
25907 2009-02-05  Ben Pfaff  <blp@gnu.org>
25908
25909         Fix link errors on Windows when close module is used.
25910         * modules/close: Add $(LIB_CLOSE) to Link section.
25911         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
25912         $(LIB_CLOSE) on Windows.
25913
25914 2009-02-05  Jim Meyering  <meyering@redhat.com>
25915
25916         still avoid unused-parameter warnings, but do it cleanly
25917         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
25918         (get_fs_usage): Cast to void instead.
25919         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
25920         (dev_from_mount_options, read_file_system_list): Cast to void.
25921         Prompted by Bruno Haible.
25922
25923 2009-02-04  Jim Meyering  <meyering@redhat.com>
25924
25925         fsusage.c: correct copyright year
25926         * lib/fsusage.c: Reflect year in which the change is pushed into
25927
25928         avoid misc. warnings
25929         * lib/fsusage.c (UNUSED_PARAM): Define.
25930         (get_fs_usage): Mark parameter "disk" as unused.
25931         * lib/getugroups.c (getgrent): Use "void" in prototype.
25932         * lib/mountlist.c: Mark unused parameters.
25933         (read_file_system_list): Declare a local with "const".
25934         * lib/nanosleep.c (getnow): Declare static.
25935         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
25936
25937         dirfd: set errno upon failure
25938         * lib/dirfd.c: Include <errno.h>.
25939         Set errno to ENOTSUP when returning -1.
25940         * modules/dirfd (Depends-on): Add errno.
25941         Suggested by John Kodis <kodis@comcast.net>.
25942
25943 2009-02-01  Bruno Haible  <bruno@clisp.org>
25944
25945         Don't assume sizeof (long) >= sizeof (void *).
25946         * lib/memcmp.c: Include stdint.h.
25947         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
25948         srcp2 to 'const byte *'.
25949         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
25950         types to uintptr_t.
25951         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
25952         * modules/memcmp (Depends-on): Add stdint.
25953         Reported by Ozkan Sezer <sezeroz@gmail.com>.
25954
25955 2009-01-30  Eric Blake  <ebb9@byu.net>
25956
25957         fix more require-before-expand issues
25958         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
25959         expand, AC_PROG_AWK.
25960         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
25961
25962 2009-01-28  Eric Blake  <ebb9@byu.net>
25963
25964         version-etc: use consistent URL formatting
25965         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
25966         Improve formatting.  Use fputs for string without %.
25967
25968 2009-01-28  Jim Meyering  <meyering@redhat.com>
25969
25970         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
25971         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
25972         "underquoted definition of NAME" from autoconf-2.59.
25973
25974 2009-01-28  Bruno Haible  <bruno@clisp.org>
25975
25976         * doc/gnulib.texi: Add "Obsolete modules" to index.
25977
25978 2009-01-28  Jim Meyering  <meyering@redhat.com>
25979
25980         useless-if-before-free: recognize more variants
25981         * build-aux/useless-if-before-free: Also recognize e.g.,
25982         if (NULL != p) free (p);
25983
25984 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
25985
25986         test-getaddrinfo: skip (don't fail) this test when there's no network
25987         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
25988         on the presumption that it means you lack network access.
25989
25990 2009-01-26  Jim Meyering  <meyering@redhat.com>
25991
25992         fflush: avoid warnings on modern systems
25993         * lib/fflush.c (rpl_fflush): Move declarations of locals,
25994         pos and result, into scopes where they're used.
25995
25996 2009-01-26  Eric Blake  <ebb9@byu.net>
25997
25998         Silence warning reintroduced by recent extensions patch.
25999         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26000         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26001         autoconf.
26002
26003         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26004         * m4/00gnulib.m4: New file.
26005         * gnulib-tool (func_get_filelist): Always use it.
26006         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26007         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26008
26009 2009-01-25  Bruno Haible  <bruno@clisp.org>
26010
26011         Make test-quotearg work on MacOS X and AIX.
26012         * tests/test-quotearg.sh: New file.
26013         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26014         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26015         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26016         include <libintl.h>.
26017         (fake_locale): Remove variable.
26018         (gettext, dgettext, dcgettext): Remove functions.
26019         (main): Instead of setting a fake locale, set a real locale. Call
26020         textdomain and bindtextdomain.
26021         * modules/quotearg-tests (Files): Add the new files.
26022         (Depends-on): Add gettext, setenv, unsetenv.
26023         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26024         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26025         Augment TESTS_ENVIRONMENT.
26026
26027 2009-01-25  Bruno Haible  <bruno@clisp.org>
26028
26029         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26030         fr_FR.ISO8859-1 locale on MacOS X.
26031         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26032         ja_JP.eucJP locale on MacOS X.
26033         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26034         zh_CN.GB18030 locale on MacOS X.
26035
26036 2009-01-25  Bruno Haible  <bruno@clisp.org>
26037
26038         Avoid link errors on MacOS X 10.3.
26039         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26040         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26041
26042 2009-01-25  Bruno Haible  <bruno@clisp.org>
26043
26044         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26045         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26046         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26047         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26048         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26049         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26050         posix_spawnattr_init, posix_spawnattr_setsigmask,
26051         posix_spawnattr_setflags, posix_spawnattr_destroy.
26052
26053         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26054         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26055         * modules/execute (Files): Remove m4/posix_spawn.m4.
26056         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26057         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26058         posix_spawnattr_init, posix_spawnattr_setsigmask,
26059         posix_spawnattr_setflags, posix_spawnattr_destroy.
26060
26061 2009-01-25  Bruno Haible  <bruno@clisp.org>
26062
26063         * lib/glthread/threadlib.c: Include <stdlib.h>.
26064
26065 2009-01-25  Bruno Haible  <bruno@clisp.org>
26066
26067         * lib/glthread/threadlib.c (dummy): New declaration.
26068
26069 2009-01-25  Bruno Haible  <bruno@clisp.org>
26070
26071         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26072         multibyte characters also for the GB18030 encoding. Don't crash when
26073         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26074
26075 2009-01-25  Bruno Haible  <bruno@clisp.org>
26076
26077         Avoid redefining 'struct random_data' on OSF/1 5.1.
26078         * lib/stdlib.in.h: Include <random.h> if it exists.
26079         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26080         HAVE_RANDOM_H. Include <random.h> when testing whether
26081         'struct random_data' exists.
26082         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26083
26084 2009-01-25  Bruno Haible  <bruno@clisp.org>
26085
26086         Don't install charset.alias on MacOS X >= 10.3.
26087         * lib/localcharset.c (DARWIN7): New macro.
26088         (get_charset_aliases): Hardcode the result for Darwin7.
26089         * modules/localcharset (install-exec-local): Don't install
26090         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26091
26092 2009-01-25  Bruno Haible  <bruno@clisp.org>
26093
26094         Don't install charset.alias on mingw and Cygwin.
26095         * modules/localcharset (install-exec-local): Don't install
26096         charset.alias on mingw and Cygwin, if the file does not yet exist.
26097         The result for these platforms is hardcoded in localcharset.c.
26098
26099 2009-01-25  Bruno Haible  <bruno@clisp.org>
26100
26101         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26102         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26103         before requiring AC_USE_SYSTEM_EXTENSIONS.
26104
26105 2009-01-25  Jim Meyering  <meyering@redhat.com>
26106
26107         c-strtod: avoid warnings
26108         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26109         "assignment discards qualifiers from pointer target type" warnings.
26110
26111 2009-01-24  Bruno Haible  <bruno@clisp.org>
26112
26113         Add support for non-UTF-8 locales on MacOS X.
26114         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26115         canonical encodings. For Darwin 7 and newer, don't map traditional
26116         encodings to UTF-8.
26117         Reported by Vincent Lefevre <vincent@vinc17.org>
26118         at <http://savannah.gnu.org/bugs/?25235>.
26119
26120 2009-01-24  Bruno Haible  <bruno@clisp.org>
26121
26122         * doc/gnulib.texi (Obsolete modules): New section.
26123         Reported by Mike Frysinger <vapier@gentoo.org>.
26124
26125 2009-01-24  Bruno Haible  <bruno@clisp.org>
26126
26127         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26128         (%.dvi): New rule.
26129
26130 2009-01-24  Bruno Haible  <bruno@clisp.org>
26131
26132         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26133         Reported by Eric Blake.
26134
26135 2009-01-24  Bruno Haible  <bruno@clisp.org>
26136
26137         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26138         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26139         Reported by Gary V. Vaughan <gary@gnu.org>.
26140
26141 2009-01-24  Bruno Haible  <bruno@clisp.org>
26142
26143         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26144
26145 2009-01-23  Bruno Haible  <bruno@clisp.org>
26146
26147         Make c-strtod, c-strtold usable in libraries.
26148         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26149         (C_STRTOD): Call strdup instead of xstrdup.
26150         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26151         * modules/c-strtold (Depends-on): Likewise.
26152         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26153         * NEWS: Mention the change.
26154         Reported by Michael Gold <mgold@ncf.ca>.
26155
26156 2009-01-23  Jim Meyering  <meyering@redhat.com>
26157
26158         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26159         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26160         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26161
26162 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26163
26164         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26165         GNU CoreUtils.
26166         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26167         * modules/version-etc (Description): Update.
26168
26169 2009-01-22  Bruno Haible  <bruno@clisp.org>
26170
26171         Cache the C locale object.
26172         * lib/c-strtod.c (c_locale_cache): New variable.
26173         (c_locale): New function.
26174         (C_STRTOD): Use it, and don't call freelocale.
26175         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26176         Suggested by Paolo Bonzini.
26177
26178 2009-01-21  Bruno Haible  <bruno@clisp.org>
26179
26180         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26181         conditions other than overflow.
26182
26183 2009-01-21  Bruno Haible  <bruno@clisp.org>
26184
26185         * lib/c-strtod.c: Include errno.h.
26186         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26187         value from STRTOD_L and STRTOD.
26188
26189 2009-01-21  Bruno Haible  <bruno@clisp.org>
26190         and Jim Meyering  <meyering@redhat.com>
26191
26192         nanosleep: skip configure test (fail it) for apple universal builds
26193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26194         universal builds, assume that nanosleep does not work.
26195         * modules/nanosleep (Depends-on): Add multiarch.
26196
26197         mktime: skip configure test (fail it) for apple universal builds
26198         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26199         universal builds, assume that mktime does not work.
26200         * modules/mktime (Depends-on): Add multiarch.
26201
26202 2009-01-21  Eric Blake  <ebb9@byu.net>
26203
26204         multiarch: avoid expand-before-require warning
26205         * modules/multiarch (configure.ac): Require, rather than expand,
26206         gl_MULTIARCH.
26207         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26208         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26209         enforce that all clients require it.  Partial reversion of
26210         2008-12-29 patch.
26211
26212         error: avoid expand-before-require warning
26213         * modules/errno (configure.ac): Require, rather than expand,
26214         gl_HEADER_ERRNO_H.
26215         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26216         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26217         enforce that all clients require it.
26218
26219         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26220         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26221         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26222         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26223
26224 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26225
26226         Revert:
26227         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26228
26229         regex: do not depend on obsolete modules.
26230         * modules/regex: Remove memcmp and memmove.
26231
26232 2009-01-20  Bruno Haible  <bruno@clisp.org>
26233
26234         Make the 'link' module link on Windows NT 4.
26235         * lib/link.c (_WIN32_WINNT): Don't define.
26236         (CreateHardLinkFuncType): New type.
26237         (CreateHardLinkFunc, initialized): New variables.
26238         (initialize): New function.
26239         (link): Invoke CreateHardLink indirectly through the function pointer.
26240
26241 2009-01-20  Bruno Haible  <bruno@clisp.org>
26242
26243         Fix compilation failure on mingw.
26244         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26245
26246 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26247
26248         * doc/c-strtod.texi: Mention a couple of restrictions.
26249
26250 2009-01-20  Jim Meyering  <meyering@redhat.com>
26251
26252         gettimeofday: move more declarations out of functions
26253         * lib/gettimeofday.c: Move extern declarations of tzset and
26254         gmtime out of containing functions.  Prompted by Bruno Haible.
26255
26256 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26257
26258         regex: do not depend on obsolete modules.
26259         * modules/regex: Remove memcmp and memmove.
26260
26261 2009-01-19  Bruno Haible  <bruno@clisp.org>
26262
26263         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26264         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26265         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26266         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26267         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26268
26269 2009-01-19  Bruno Haible  <bruno@clisp.org>
26270
26271         * tests/test-link.c: Include <errno.h>.
26272         (main): Exit with code 77 when a hard link cannot be created due to
26273         the file system.
26274         * tests/test-link.sh: Skip test when a hard link cannot be created due
26275         to the file system.
26276         Suggested by Eric Blake.
26277
26278 2009-01-19  Martin Lambers  <marlam@marlam.de>
26279
26280         * modules/link-tests: New file.
26281         * tests/test-link.sh: New file.
26282         * tests/test-link.c: New file.
26283
26284 2009-01-19  Eric Blake  <ebb9@byu.net>
26285
26286         doc: mention another function added in cygwin 1.7.0
26287         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26288         Another new function in cygwin 1.7.
26289
26290 2009-01-19  Bruno Haible  <bruno@clisp.org>
26291
26292         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26293         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26294         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26295         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26296         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26297         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26298         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26299         * m4/md4.m4 (gl_MD4): Likewise.
26300         * m4/md5.m4 (gl_MD5): Likewise.
26301         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26302         * m4/sha1.m4 (gl_SHA1): Likewise.
26303         * m4/sha256.m4 (gl_SHA256): Likewise.
26304         * m4/sha512.m4 (gl_SHA512): Likewise.
26305
26306 2009-01-19  Bruno Haible  <bruno@clisp.org>
26307
26308         * modules/uniname/uniname-tests (Depends-on): Add progname.
26309         * tests/uniname/test-uninames.c: Include progname.h.
26310         (main): Call set_program_name.
26311
26312         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26313         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26314         (main): Call set_program_name.
26315
26316         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26317         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26318         (main): Call set_program_name.
26319
26320         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26321         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26322         (main): Call set_program_name.
26323
26324         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26325         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26326         (main): Call set_program_name.
26327
26328         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26329         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26330         (main): Call set_program_name.
26331
26332         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26333         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26334         (main): Call set_program_name.
26335
26336         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26337         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26338         (main): Call set_program_name.
26339
26340         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
26341         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
26342         (main): Call set_program_name.
26343
26344 2009-01-19  Eric Blake  <ebb9@byu.net>
26345
26346         test-unistd: test previous patch
26347         * tests/test-unistd.c: Test *_FILENO macros.
26348
26349         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
26350         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26351         Guarantee a definition.
26352         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
26353         * modules/unistd-safer (Depends-on): Add dependency on unistd.
26354         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
26355         * lib/dup-safer.c (STDERR_FILENO): Likewise.
26356         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26357         Likewise.
26358         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
26359         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
26360         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26361         Likewise.
26362         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
26363         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
26364         (STDERR_FILENO): Likewise.
26365         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26366         (STDERR_FILENO): Likewise.
26367         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26368         (STDERR_FILENO): Likewise.
26369         Reported by Elbert Pol.
26370
26371 2009-01-19  Eric Blake  <ebb9@byu.net>
26372
26373         doc: mention more functions added in cygwin 1.7.0
26374         * doc/posix-functions/abort.texi (abort): Update wording related
26375         to cygwin.
26376         * doc/posix-functions/daylight.texi (daylight): Likewise.
26377         * doc/posix-functions/optarg.texi (optarg): Likewise.
26378         * doc/posix-functions/optarg.texi (opterr): Likewise.
26379         * doc/posix-functions/optarg.texi (optind): Likewise.
26380         * doc/posix-functions/optarg.texi (optopt): Likewise.
26381         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26382         worked in 1.5.x, and was withdrawn in 1.7.
26383         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26384         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26385         cygwin versions.
26386         * doc/posix-functions/perror.texi (perror): Likewise.
26387         * doc/posix-functions/printf.texi (printf): Likewise.
26388         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26389         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26390         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26391         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26392         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26393         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26394         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26395         Likewise.
26396         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26397         Likewise.
26398         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26399         this function.
26400         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26401         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26402         Likewise.
26403         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26404         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26405         * doc/posix-functions/confstr.texi (confstr): Likewise.
26406         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26407         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26408         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26409         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26410         * doc/posix-functions/fputws.texi (fputws): Likewise.
26411         * doc/posix-functions/fwide.texi (fwide): Likewise.
26412         * doc/posix-functions/getwc.texi (getwc): Likewise.
26413         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
26414         * doc/posix-functions/putwc.texi (putwc): Likewise.
26415         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
26416         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
26417         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
26418         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
26419         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
26420         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
26421         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
26422         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
26423         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
26424         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
26425         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
26426
26427 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26428
26429         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
26430         * lib/ioctl.c: Include <sys/ioctl.h>.
26431
26432 2009-01-19  Simon Josefsson  <simon@josefsson.org>
26433
26434         * modules/getdate-tests (Depends-on): Add progname.
26435         * tests/test-getdate.c: Use progname module, to avoid link errors
26436         on non-glibc systems.
26437
26438 2009-01-18  Simon Josefsson  <simon@josefsson.org>
26439
26440         * modules/filenamecat-tests (Depends-on): Add progname.
26441         * modules/fstrcmp-tests (Depends-on): Likewise.
26442
26443         * tests/test-filenamecat.c: Use progname module, to avoid link
26444         errors on non-glibc systems.
26445         * tests/test-fstrcmp.c: Likewise.
26446
26447 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26448
26449         gettimeofday: avoid warning: nested extern declaration of 'localtime'
26450         * lib/gettimeofday.c: Move extern declaration out of function.
26451
26452 2009-01-18  Bruno Haible  <bruno@clisp.org>
26453
26454         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
26455         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
26456         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
26457
26458 2009-01-18  Bruno Haible  <bruno@clisp.org>
26459
26460         * lib/strftime.c (MEMPCPY): Remove unused macro.
26461         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
26462
26463 2009-01-18  Martin Lambers  <marlam@marlam.de>
26464
26465         New module 'link'.
26466         * lib/unistd.in.h (link): New declaration.
26467         * lib/link.c: New file.
26468         * m4/link.m4: New file.
26469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
26470         HAVE_LINK.
26471         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
26472         * modules/link: New file.
26473         * doc/posix-functions/link.texi: Mention the new module.
26474
26475 2009-01-18  Bruno Haible  <bruno@clisp.org>
26476
26477         * tests/test-avltree_list.c (main): Call set_program_name.
26478         * tests/test-avltree_oset.c (main): Likewise.
26479         * tests/test-obstack-printf.c: Include progname.h.
26480         (main): Call set_program_name.
26481         * tests/test-quotearg.c: Include progname.h.
26482         (main): Call set_program_name.
26483         * tests/test-xmemdup0.c: Include progname.h.
26484         (main): Call set_program_name.
26485
26486 2009-01-18  Bruno Haible  <bruno@clisp.org>
26487
26488         New module 'alphasort'.
26489         * lib/dirent.in.h (alphasort): New declaration.
26490         * lib/alphasort.c: New file, from glibc with modifications.
26491         * m4/alphasort.m4: New file.
26492         * modules/alphasort: New file.
26493         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
26494         HAVE_ALPHASORT.
26495         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
26496         HAVE_ALPHASORT.
26497         * doc/posix-functions/alphasort.texi: Mention the new module and the
26498         portability problems.
26499
26500 2009-01-18  Bruno Haible  <bruno@clisp.org>
26501
26502         New module 'scandir'.
26503         * lib/dirent.in.h (scandir): New declaration.
26504         * lib/scandir.c: New file, from glibc with modifications.
26505         * m4/scandir.m4: New file.
26506         * modules/scandir: New file.
26507         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
26508         HAVE_SCANDIR.
26509         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
26510         HAVE_SCANDIR.
26511         * doc/posix-functions/scandir.texi: Mention the new module and the
26512         portability problems.
26513
26514 2009-01-17  Bruno Haible  <bruno@clisp.org>
26515
26516         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
26517         Update documentation.
26518         (func_remove_suffix): Escape all dots in the suffix. Update
26519         documentation.
26520         (func_filter_filelist): Update documentation.
26521         Reported by Ralf Wildenhues.
26522
26523 2009-01-17  Bruno Haible  <bruno@clisp.org>
26524
26525         * modules/dprintf-posix-tests: New file.
26526         * tests/test-dprintf-posix.sh: New file.
26527         * tests/test-dprintf-posix.c: New file.
26528
26529         New modules 'dprintf', 'dprintf-posix'.
26530         * lib/stdio.in.h (dprintf): New declaration.
26531         * lib/dprintf.c: New file.
26532         * m4/dprintf.m4: New file.
26533         * m4/dprintf-posix.m4: New file.
26534         * modules/dprintf: New file.
26535         * modules/dprintf-posix: New file.
26536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
26537         HAVE_DPRINTF, REPLACE_DPRINTF.
26538         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
26539         HAVE_DPRINTF, REPLACE_DPRINTF.
26540         * doc/posix-functions/dprintf.texi: Mention the new modules.
26541
26542 2009-01-17  Bruno Haible  <bruno@clisp.org>
26543
26544         * modules/vdprintf-posix-tests: New file.
26545         * tests/test-vdprintf-posix.sh: New file.
26546         * tests/test-vdprintf-posix.c: New file.
26547
26548         New modules 'vdprintf', 'vdprintf-posix'.
26549         * lib/stdio.in.h (vdprintf): New declaration.
26550         * lib/vdprintf.c: New file.
26551         * m4/vdprintf.m4: New file.
26552         * m4/vdprintf-posix.m4: New file.
26553         * modules/vdprintf: New file.
26554         * modules/vdprintf-posix: New file.
26555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
26556         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26557         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
26558         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26559         * doc/posix-functions/vdprintf.texi: Mention the new modules.
26560
26561 2009-01-17  Bruno Haible  <bruno@clisp.org>
26562
26563         Fix replacement of fopen on mingw.
26564         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
26565         mingw.
26566
26567 2009-01-17  Bruno Haible  <bruno@clisp.org>
26568
26569         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
26570         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
26571
26572 2009-01-17  Bruno Haible  <bruno@clisp.org>
26573
26574         Avoid test-fflush2.sh failure on mingw.
26575         * tests/test-fflush2.c: Include binary-io.h.
26576         (main): Put standard input into binary mode.
26577         * modules/fflush-tests (Depends-on): Add binary-io.
26578
26579 2009-01-17  Bruno Haible  <bruno@clisp.org>
26580
26581         * lib/wchar.in.h: In another particular situation, include only the
26582         system's <wchar.h> file.
26583         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
26584         Reported by Albert Chin-A-Young <china@thewrittenword.com>
26585         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
26586
26587 2009-01-17  Bruno Haible  <bruno@clisp.org>
26588
26589         Support for stripping executables in --enable-relocatable.
26590         * build-aux/install-reloc: Expect one more argument, or an environment
26591         variable RELOC_STRIP_PROG. If set, strip the destination program and
26592         its wrapper.
26593         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
26594         RELOC_STRIP_PROG.
26595         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
26596         to set RELOCATABLE_STRIP.
26597         * NEWS: Mention the new Makefile requirement.
26598
26599 2009-01-17  Bruno Haible  <bruno@clisp.org>
26600
26601         * build-aux/install-reloc: Remove debugging information left over by
26602         C compiler on MacOS X.
26603
26604 2009-01-17  Bruno Haible  <bruno@clisp.org>
26605
26606         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
26607         * lib/progreloc.c (find_executable): Fix type of pointer passed to
26608         _NSGetExecutablePath.
26609
26610 2009-01-16  Jim Meyering  <meyering@redhat.com>
26611
26612         strerror: avoid warnings about discarding "const"
26613         * lib/strerror.c (rpl_strerror): Instead of returning a const
26614         string from each and every "case", use a variable, and add a single
26615         cast after the switch.
26616
26617 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
26618
26619         * lib/arpa_inet.in.h: Add extern "C" block for C++.
26620
26621 2009-01-16  Bruno Haible  <bruno@clisp.org>
26622
26623         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
26624         array initializer syntax that also works in C++ mode.
26625         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26626
26627 2009-01-16  Jim Meyering  <meyering@redhat.com>
26628
26629         poll: suppress a warning
26630         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
26631         to ignore "...unsigned expression < 0 is always false" warnings.
26632
26633 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
26634
26635         poll: remove declarations of unused variables
26636         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
26637         sockbuf and optlen.
26638
26639 2009-01-15  Bruno Haible  <bruno@clisp.org>
26640
26641         Make fflush-after-ungetc POSIX compliant on BSD systems.
26642         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
26643         (clear_ungetc_buffer): Implement also for other systems.
26644         (rpl_fflush): On glibc systems, invoke
26645         clear_ungetc_buffer_preserving_position. Otherwise, invoke
26646         clear_ungetc_buffer after fetching the stream's position, not before.
26647
26648 2009-01-15  Bruno Haible  <bruno@clisp.org>
26649
26650         Make fflush-after-ungetc POSIX compliant on glibc systems.
26651         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
26652         after ungetc.
26653         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
26654         (rpl_fflush): On glibc systems, simply call the system's fflush
26655         function after clearing the ungetc buffer.
26656         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
26657         Instead, lseek only to the end of file, then use the system's fseeko
26658         for the rest. On glibc systems, reset the EOF indicator bit.
26659
26660 2009-01-15  Jim Meyering  <meyering@redhat.com>
26661
26662         openmp.m4: revert quote-adding change, for portability to older autoconf
26663         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
26664         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
26665         Simon Josefsson noticed the problem when using autoconf-2.61.
26666
26667 2009-01-15  Bruno Haible  <bruno@clisp.org>
26668
26669         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
26670         * tests/test-fflush2.c (ASSERT): Always fail.
26671         (main): Add two tests for fflush() after ungetc(), taking into account
26672         the Austin Group's clarification.
26673         Suggested by Eric Blake.
26674
26675 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
26676
26677         mktime.m4: remove K&R-style function prototypes
26678         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
26679         for the Sun C++ compiler.
26680
26681 2009-01-14  Bruno Haible  <bruno@clisp.org>
26682
26683         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
26684         while including <wchar.h>.
26685         * lib/wchar.in.h: In two particular situations on HP-UX, include only
26686         the system's <wchar.h> file.
26687         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26688
26689 2009-01-14  Bruno Haible  <bruno@clisp.org>
26690
26691         * m4/csharp.m4: Don't mention gettext on the serial number line.
26692         * m4/csharpexec.m4: Likewise.
26693         * m4/eaccess.m4: Likewise.
26694         * m4/javaexec.m4: Likewise.
26695         * m4/sig_atomic_t.m4: Likewise.
26696         * m4/tmpdir.m4: Likewise.
26697         * m4/intldir.m4: Bump gettext version.
26698         * m4/lib-ld.m4: Likewise.
26699
26700 2009-01-14  Bruno Haible  <bruno@clisp.org>
26701
26702         * lib/progname.c (set_program_name): Add more comments.
26703         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26704
26705 2009-01-14  Simon Josefsson  <simon@josefsson.org>
26706
26707         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
26708         were sys/stat.h does not define it.
26709
26710 2009-01-14  Jim Meyering  <meyering@redhat.com>
26711
26712         many *.m4 files: improve m4 quoting
26713         99% of this change was performed by running the following commands:
26714         git ls-files | grep '\.m4$' | xargs perl -pi \
26715           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
26716           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26717           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26718           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
26719         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
26720         The remainder were to add Copyright dates, increment serial numbers,
26721         undo some changes in comments, exclude m4/intl.m4, and add quotes
26722         around the "1" in ",1" where the unusual spacing prohibited the
26723         above regexps from doing the job.  For more details, see
26724         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
26725         * m4/acl.m4: Modified.
26726         * m4/afs.m4: Likewise.
26727         * m4/alloca.m4: Likewise.
26728         * m4/argp.m4: Likewise.
26729         * m4/argz.m4: Likewise.
26730         * m4/atexit.m4: Likewise.
26731         * m4/bison-i18n.m4: Likewise.
26732         * m4/bison.m4: Likewise.
26733         * m4/byteswap.m4: Likewise.
26734         * m4/c-stack.m4: Likewise.
26735         * m4/c-strtod.m4: Likewise.
26736         * m4/calloc.m4: Likewise.
26737         * m4/canonicalize-lgpl.m4: Likewise.
26738         * m4/chown.m4: Likewise.
26739         * m4/clock_time.m4: Likewise.
26740         * m4/codeset.m4: Likewise.
26741         * m4/copy-file.m4: Likewise.
26742         * m4/csharp.m4: Likewise.
26743         * m4/csharpcomp.m4: Likewise.
26744         * m4/csharpexec.m4: Likewise.
26745         * m4/d-ino.m4: Likewise.
26746         * m4/d-type.m4: Likewise.
26747         * m4/dirfd.m4: Likewise.
26748         * m4/double-slash-root.m4: Likewise.
26749         * m4/eaccess.m4: Likewise.
26750         * m4/eealloc.m4: Likewise.
26751         * m4/environ.m4: Likewise.
26752         * m4/errno_h.m4: Likewise.
26753         * m4/euidaccess.m4: Likewise.
26754         * m4/execute.m4: Likewise.
26755         * m4/fatal-signal.m4: Likewise.
26756         * m4/fchdir.m4: Likewise.
26757         * m4/fcntl_h.m4: Likewise.
26758         * m4/fileblocks.m4: Likewise.
26759         * m4/filenamecat.m4: Likewise.
26760         * m4/findprog.m4: Likewise.
26761         * m4/flexmember.m4: Likewise.
26762         * m4/fnmatch.m4: Likewise.
26763         * m4/fopen.m4: Likewise.
26764         * m4/fpending.m4: Likewise.
26765         * m4/fprintf-posix.m4: Likewise.
26766         * m4/free.m4: Likewise.
26767         * m4/frexp.m4: Likewise.
26768         * m4/frexpl.m4: Likewise.
26769         * m4/fsusage.m4: Likewise.
26770         * m4/ftruncate.m4: Likewise.
26771         * m4/gc-camellia.m4: Likewise.
26772         * m4/gc-random.m4: Likewise.
26773         * m4/gc.m4: Likewise.
26774         * m4/getaddrinfo.m4: Likewise.
26775         * m4/getcwd-abort-bug.m4: Likewise.
26776         * m4/getcwd-path-max.m4: Likewise.
26777         * m4/getdate.m4: Likewise.
26778         * m4/getdomainname.m4: Likewise.
26779         * m4/getgroups.m4: Likewise.
26780         * m4/gethostname.m4: Likewise.
26781         * m4/gethrxtime.m4: Likewise.
26782         * m4/getline.m4: Likewise.
26783         * m4/getloadavg.m4: Likewise.
26784         * m4/getndelim2.m4: Likewise.
26785         * m4/getpass.m4: Likewise.
26786         * m4/gettext.m4: Likewise.
26787         * m4/gettime.m4: Likewise.
26788         * m4/gettimeofday.m4: Likewise.
26789         * m4/gnulib-common.m4: Likewise.
26790         * m4/group-member.m4: Likewise.
26791         * m4/host-os.m4: Likewise.
26792         * m4/iconv.m4: Likewise.
26793         * m4/iconv_open.m4: Likewise.
26794         * m4/inet_ntop.m4: Likewise.
26795         * m4/inet_pton.m4: Likewise.
26796         * m4/inline.m4: Likewise.
26797         * m4/intldir.m4: Likewise.
26798         * m4/intlmacosx.m4: Likewise.
26799         * m4/intmax.m4: Likewise.
26800         * m4/intmax_t.m4: Likewise.
26801         * m4/inttypes.m4: Likewise.
26802         * m4/inttypes_h.m4: Likewise.
26803         * m4/inttypes-pri.m4: Likewise.
26804         * m4/isapipe.m4: Likewise.
26805         * m4/isnand.m4: Likewise.
26806         * m4/isnanf.m4: Likewise.
26807         * m4/isnanl.m4: Likewise.
26808         * m4/javacomp.m4: Likewise.
26809         * m4/javaexec.m4: Likewise.
26810         * m4/jm-winsz1.m4: Likewise.
26811         * m4/jm-winsz2.m4: Likewise.
26812         * m4/lchown.m4: Likewise.
26813         * m4/lcmessage.m4: Likewise.
26814         * m4/ldexpl.m4: Likewise.
26815         * m4/lib-ld.m4: Likewise.
26816         * m4/lib-link.m4: Likewise.
26817         * m4/libsigsegv.m4: Likewise.
26818         * m4/link-follow.m4: Likewise.
26819         * m4/localcharset.m4: Likewise.
26820         * m4/locale-fr.m4: Likewise.
26821         * m4/locale-ja.m4: Likewise.
26822         * m4/locale-tr.m4: Likewise.
26823         * m4/locale-zh.m4: Likewise.
26824         * m4/lock.m4: Likewise.
26825         * m4/longlong.m4: Likewise.
26826         * m4/ls-mntd-fs.m4: Likewise.
26827         * m4/lstat.m4: Likewise.
26828         * m4/malloc.m4: Likewise.
26829         * m4/mathl.m4: Likewise.
26830         * m4/mbrtowc.m4: Likewise.
26831         * m4/mbstate_t.m4: Likewise.
26832         * m4/mbswidth.m4: Likewise.
26833         * m4/memchr.m4: Likewise.
26834         * m4/memcmp.m4: Likewise.
26835         * m4/memcpy.m4: Likewise.
26836         * m4/memmem.m4: Likewise.
26837         * m4/memmove.m4: Likewise.
26838         * m4/mempcpy.m4: Likewise.
26839         * m4/memrchr.m4: Likewise.
26840         * m4/memset.m4: Likewise.
26841         * m4/minmax.m4: Likewise.
26842         * m4/mkdir-slash.m4: Likewise.
26843         * m4/mkdtemp.m4: Likewise.
26844         * m4/mktime.m4: Likewise.
26845         * m4/mmap-anon.m4: Likewise.
26846         * m4/mountlist.m4: Likewise.
26847         * m4/nanosleep.m4: Likewise.
26848         * m4/nls.m4: Likewise.
26849         * m4/nocrash.m4: Likewise.
26850         * m4/open.m4: Likewise.
26851         * m4/openat.m4: Likewise.
26852         * m4/openmp.m4: Likewise.
26853         * m4/pathmax.m4: Likewise.
26854         * m4/perl.m4: Likewise.
26855         * m4/physmem.m4: Likewise.
26856         * m4/pipe.m4: Likewise.
26857         * m4/po.m4: Likewise.
26858         * m4/poll.m4: Likewise.
26859         * m4/posixtm.m4: Likewise.
26860         * m4/posixver.m4: Likewise.
26861         * m4/printf-frexp.m4: Likewise.
26862         * m4/printf-frexpl.m4: Likewise.
26863         * m4/printf-posix.m4: Likewise.
26864         * m4/printf-posix-rpl.m4: Likewise.
26865         * m4/printf.m4: Likewise.
26866         * m4/progtest.m4: Likewise.
26867         * m4/putenv.m4: Likewise.
26868         * m4/readline.m4: Likewise.
26869         * m4/readlink.m4: Likewise.
26870         * m4/readutmp.m4: Likewise.
26871         * m4/realloc.m4: Likewise.
26872         * m4/regex.m4: Likewise.
26873         * m4/relocatable.m4: Likewise.
26874         * m4/relocatable-lib.m4: Likewise.
26875         * m4/rename-dest-slash.m4: Likewise.
26876         * m4/rename.m4: Likewise.
26877         * m4/rmdir-errno.m4: Likewise.
26878         * m4/rmdir.m4: Likewise.
26879         * m4/roundf.m4: Likewise.
26880         * m4/roundl.m4: Likewise.
26881         * m4/rpmatch.m4: Likewise.
26882         * m4/save-cwd.m4: Likewise.
26883         * m4/selinux-selinux-h.m4: Likewise.
26884         * m4/setenv.m4: Likewise.
26885         * m4/settime.m4: Likewise.
26886         * m4/sig2str.m4: Likewise.
26887         * m4/sig_atomic_t.m4: Likewise.
26888         * m4/signalblocking.m4: Likewise.
26889         * m4/signbit.m4: Likewise.
26890         * m4/sigpipe.m4: Likewise.
26891         * m4/sockets.m4: Likewise.
26892         * m4/sockpfaf.m4: Likewise.
26893         * m4/st_dm_mode.m4: Likewise.
26894         * m4/stat-time.m4: Likewise.
26895         * m4/stdbool.m4: Likewise.
26896         * m4/stdint.m4: Likewise.
26897         * m4/stdint_h.m4: Likewise.
26898         * m4/stpcpy.m4: Likewise.
26899         * m4/stpncpy.m4: Likewise.
26900         * m4/strcase.m4: Likewise.
26901         * m4/strchrnul.m4: Likewise.
26902         * m4/strcspn.m4: Likewise.
26903         * m4/strdup.m4: Likewise.
26904         * m4/strftime.m4: Likewise.
26905         * m4/strndup.m4: Likewise.
26906         * m4/strnlen.m4: Likewise.
26907         * m4/strpbrk.m4: Likewise.
26908         * m4/strptime.m4: Likewise.
26909         * m4/strsep.m4: Likewise.
26910         * m4/strtod.m4: Likewise.
26911         * m4/strtoimax.m4: Likewise.
26912         * m4/strtok_r.m4: Likewise.
26913         * m4/strtol.m4: Likewise.
26914         * m4/strtoll.m4: Likewise.
26915         * m4/strtoul.m4: Likewise.
26916         * m4/strtoull.m4: Likewise.
26917         * m4/strtoumax.m4: Likewise.
26918         * m4/strverscmp.m4: Likewise.
26919         * m4/threadlib.m4: Likewise.
26920         * m4/timegm.m4: Likewise.
26921         * m4/tm_gmtoff.m4: Likewise.
26922         * m4/tmpdir.m4: Likewise.
26923         * m4/tmpfile.m4: Likewise.
26924         * m4/tzset.m4: Likewise.
26925         * m4/uintmax_t.m4: Likewise.
26926         * m4/unlinkdir.m4: Likewise.
26927         * m4/unlocked-io.m4: Likewise.
26928         * m4/uptime.m4: Likewise.
26929         * m4/userspec.m4: Likewise.
26930         * m4/utimbuf.m4: Likewise.
26931         * m4/utime.m4: Likewise.
26932         * m4/utimes-null.m4: Likewise.
26933         * m4/utimes.m4: Likewise.
26934         * m4/vararrays.m4: Likewise.
26935         * m4/vasnprintf.m4: Likewise.
26936         * m4/vfprintf-posix.m4: Likewise.
26937         * m4/vprintf-posix.m4: Likewise.
26938         * m4/wait-process.m4: Likewise.
26939         * m4/wchar_t.m4: Likewise.
26940         * m4/wint_t.m4: Likewise.
26941         * m4/write-any-file.m4: Likewise.
26942         * m4/yield.m4: Likewise.
26943
26944 2009-01-13  Bruno Haible  <bruno@clisp.org>
26945
26946         Avoid test-copy-file.sh failures when ACL support insufficient.
26947         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
26948         TESTS_ENVIRONMENT.
26949         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
26950         Reported by Jim Meyering.
26951
26952 2009-01-13  Bruno Haible  <bruno@clisp.org>
26953
26954         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
26955         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
26956         * modules/unistdio/u8-printf-parse (Files): Likewise.
26957         * modules/unistdio/u32-printf-parse (Files): Likewise.
26958         * modules/unistdio/ulc-printf-parse (Files): Likewise.
26959
26960 2009-01-13  Simon Josefsson  <simon@josefsson.org>
26961
26962         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
26963         and m4/inttypes_h.m4 too.
26964
26965 2009-01-12  Eric Blake  <ebb9@byu.net>
26966
26967         tests: IRIX 6.2 cc can't compile -0.0 into .data
26968         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
26969         rather than at compile-time.
26970         * tests/test-floorl.c (minus_zero): Likewise.
26971         * tests/test-frexpl.c (minus_zero): Likewise.
26972         * tests/test-isnan.c (minus_zerol): Likewise.
26973         * tests/test-isnanl.h (minus_zero): Likewise.
26974         * tests/test-ldexpl.c (minus_zero): Likewise.
26975         * tests/test-roundl.c (minus_zero): Likewise.
26976         * tests/test-signbit.c (minus_zerol): Likewise.
26977         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26978         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26979         * tests/test-truncl.c (minus_zero): Likewise.
26980         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26981         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26982         Reported by Tom G. Christensen and Nelson H. F. Beebe.
26983
26984 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26985
26986         regex: fix glibc bug 9697
26987         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
26988         handling.
26989
26990 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26991
26992         regex: fix glibc bug 697
26993         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
26994         being NULL also if there are no backreferences.
26995
26996 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26997
26998         regex: merge glibc changes
26999         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27000         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27001         re_string_skip_chars, re_string_reconstruct): Likewise.
27002         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27003
27004 2009-01-07  Jim Meyering  <meyering@redhat.com>
27005
27006         poll: filter through cppi
27007         * lib/poll.c: Indent cpp directives to reflect nesting.
27008
27009 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27010
27011         poll: don't return uninitialized
27012         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27013
27014 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27015
27016         avoid compile failure on AIX 6.1
27017         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27018         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27019
27020 2009-01-04  Jim Meyering  <meyering@redhat.com>
27021
27022         remove duplicate inclusion of <stdio.h>
27023         * tests/test-fprintf-posix.c: Likewise.
27024         * tests/test-printf-posix.c: Likewise.
27025         * tests/test-snprintf-posix.c: Likewise.
27026         * tests/test-sprintf-posix.c: Likewise.
27027         * tests/test-vasprintf-posix.c: Likewise.
27028         * tests/test-vfprintf-posix.c: Likewise.
27029         * tests/test-vprintf-posix.c: Likewise.
27030         * tests/test-vsnprintf-posix.c: Likewise.
27031         * tests/test-vsprintf-posix.c: Likewise.
27032
27033 2009-01-03  Jim Meyering  <meyering@redhat.com>
27034
27035         gnulib-tool: fix sed-based filtering
27036         * gnulib-tool (func_filter_filelist): Remove extra backslash
27037         in sed_fff_filter definition.
27038
27039 2009-01-02  Jim Meyering  <meyering@redhat.com>
27040
27041         strftime: avoid compilation failure on Solaris 2.6
27042         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27043         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27044         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27045         be available.  Reported by Tom G. Christensen.  Details in
27046         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27047
27048 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27049             Bruno Haible  <bruno@clisp.org>
27050
27051         Speed up gnulib-tool by doing more string processing through shell
27052         built-ins.
27053         * gnulib-tool (fast_func_append): New variable.
27054         (func_remove_prefix, func_remove_suffix): New functions.
27055         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27056         (func_filter_filelist): New function.
27057         (func_get_dependencies): Use func_remove_suffix instead of sed.
27058         (func_get_automake_snippet): Use func_filter_filelist instead of a
27059         subshell and sed invocation.
27060
27061 2009-01-01  Bruno Haible  <bruno@clisp.org>
27062
27063         Fix a security bug.
27064         * gnulib-tool (func_import, import, update): Don't allow the characters
27065         '"', '$', '`', '\' in macro arguments that become part of commands that
27066         are evaluated.
27067
27068 2009-01-01  Bruno Haible  <bruno@clisp.org>
27069
27070         * gnulib-tool (func_reset_sigpipe): Add more comments.
27071
27072 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27073
27074         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27075         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27076         already know the answer.
27077
27078 2009-01-01  Jim Meyering  <meyering@redhat.com>
27079
27080         * lib/version-etc.c (version_etc_va): Update copyright year.
27081
27082 2008-12-30  Bruno Haible  <bruno@clisp.org>
27083
27084         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27085         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27086         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27087
27088 2008-12-29  Eric Blake  <ebb9@byu.net>
27089
27090         multiarch: avoid autoconf AC_REQUIRE bug
27091         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27092         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27093         2.63 and older.
27094         Reported by Bruno Haible, and analyzed in
27095         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27096
27097 2008-12-29  Bruno Haible  <bruno@clisp.org>
27098
27099         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27100         files in subdirectories correctly.
27101         Reported by Ralf Wildenhues.
27102
27103 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27104
27105         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27106         rather than 'join FILE -', for Solaris join.
27107
27108 2008-12-29  Bruno Haible  <bruno@clisp.org>
27109
27110         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27111         quoting.
27112         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27113         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27114         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27115         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27116         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27117         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27118         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27119         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27120         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27121         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27122         * m4/nls.m4 (AM_NLS): Likewise.
27123         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27124         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27125         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27126         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27127         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27128         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27129         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27130         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27131         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27132         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27133         * m4/xsize.m4 (gl_XSIZE): Likewise.
27134         Suggested by Jim Meyering.
27135
27136 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27137
27138         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27139         * lib/parse-duration.c: use a switch instead of cascading if's.
27140
27141 2008-12-29  Eric Blake  <ebb9@byu.net>
27142
27143         wchar.h: supply WEOF on Irix 5.3
27144         * lib/wchar.in.h (wint_t): Also supply WEOF.
27145         * lib/wctype.in.h (wint_t): Likewise.
27146         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27147         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27148         Reported by Tom G. Christensen.
27149
27150 2008-12-26  Bruno Haible  <bruno@clisp.org>
27151
27152         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27153         i486, i586, i686.
27154
27155 2008-12-26  Bruno Haible  <bruno@clisp.org>
27156
27157         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27158
27159 2008-12-26  Bruno Haible  <bruno@clisp.org>
27160
27161         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27162         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27163         not __STDC_CONSTANT_MACROS.
27164         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27165
27166 2008-12-25  Bruno Haible  <bruno@clisp.org>
27167
27168         Add support for universal builds to vasnprintf.
27169         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27170         universal builds, guess no.
27171         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27172         * modules/vasprintf-posix (Depends-on): Likewise.
27173         * modules/fprintf-posix (Depends-on): Likewise.
27174         * modules/vfprintf-posix (Depends-on): Likewise.
27175         * modules/snprintf-posix (Depends-on): Likewise.
27176         * modules/vsnprintf-posix (Depends-on): Likewise.
27177         * modules/sprintf-posix (Depends-on): Likewise.
27178         * modules/vsprintf-posix (Depends-on): Likewise.
27179         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27180         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27181         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27182         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27183         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27184         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27185         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27186
27187         Add support for universal builds to <inttypes.h>.
27188         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27189         _SCNu64_PREFIX): In Apple
27190         universal builds, define directly, using _LP64.
27191         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27192         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27193         * modules/inttypes (Depends-on): Add multiarch.
27194         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27195
27196         Add support for universal builds to <stdint.h>.
27197         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27198         universal builds, define directly, using _LP64.
27199         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27200         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27201         and size_t.
27202         * modules/stdint (Depends-on): Add multiarch.
27203         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27204
27205         New module 'multiarch'.
27206         * modules/multiarch: New file.
27207         * m4/multiarch.m4: New file.
27208
27209 2008-12-25  Bruno Haible  <bruno@clisp.org>
27210
27211         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27212
27213 2008-12-25  Bruno Haible  <bruno@clisp.org>
27214
27215         * modules/btowc (License): Relicense under LGPLv2+.
27216         * modules/mbsinit (License): Likewise.
27217         * modules/mbrtowc (License): Likewise.
27218         * modules/wcrtomb (License): Likewise.
27219         * modules/streq (License): Likewise.
27220         Reported by David Lutterkort <lutter@redhat.com>.
27221
27222 2008-12-23  Bruno Haible  <bruno@clisp.org>
27223
27224         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27225
27226 2008-12-23  Bruno Haible  <bruno@clisp.org>
27227
27228         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27229         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27230         GETADDRINFO_LIB, not in LIBS.
27231         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27232         * modules/canon-host (Link): Likewise.
27233         * NEWS: Mention the change.
27234         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27235         GETADDRINFO_LIB.
27236
27237 2008-12-22  Bruno Haible  <bruno@clisp.org>
27238
27239         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27240         * doc/posix-functions/iswalpha_l.texi: Likewise.
27241         * doc/posix-functions/iswblank_l.texi: Likewise.
27242         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27243         * doc/posix-functions/iswctype_l.texi: Likewise.
27244         * doc/posix-functions/iswdigit_l.texi: Likewise.
27245         * doc/posix-functions/iswgraph_l.texi: Likewise.
27246         * doc/posix-functions/iswlower_l.texi: Likewise.
27247         * doc/posix-functions/iswprint_l.texi: Likewise.
27248         * doc/posix-functions/iswpunct_l.texi: Likewise.
27249         * doc/posix-functions/iswspace_l.texi: Likewise.
27250         * doc/posix-functions/iswupper_l.texi: Likewise.
27251         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27252         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27253         * doc/posix-functions/open_wmemstream.texi: Likewise.
27254         * doc/posix-functions/swscanf.texi: Likewise.
27255         * doc/posix-functions/towctrans_l.texi: Likewise.
27256         * doc/posix-functions/towlower.texi: Likewise.
27257         * doc/posix-functions/towlower_l.texi: Likewise.
27258         * doc/posix-functions/towupper.texi: Likewise.
27259         * doc/posix-functions/towupper_l.texi: Likewise.
27260         * doc/posix-functions/vfwprintf.texi: Likewise.
27261         * doc/posix-functions/vfwscanf.texi: Likewise.
27262         * doc/posix-functions/vswscanf.texi: Likewise.
27263         * doc/posix-functions/vwprintf.texi: Likewise.
27264         * doc/posix-functions/vwscanf.texi: Likewise.
27265         * doc/posix-functions/wcpcpy.texi: Likewise.
27266         * doc/posix-functions/wcpncpy.texi: Likewise.
27267         * doc/posix-functions/wcscasecmp.texi: Likewise.
27268         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27269         * doc/posix-functions/wcscoll_l.texi: Likewise.
27270         * doc/posix-functions/wcsdup.texi: Likewise.
27271         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27272         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27273         * doc/posix-functions/wcsnlen.texi: Likewise.
27274         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27275         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27276         * doc/posix-functions/wctrans_l.texi: Likewise.
27277         * doc/posix-functions/wctype_l.texi: Likewise.
27278         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27279         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27280         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27281         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27282         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27283         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27284         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27285         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27286         * doc/glibc-functions/wcschrnul.texi: Likewise.
27287         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27288         * doc/glibc-functions/wcstod_l.texi: Likewise.
27289         * doc/glibc-functions/wcstof_l.texi: Likewise.
27290         * doc/glibc-functions/wcstol_l.texi: Likewise.
27291         * doc/glibc-functions/wcstold_l.texi: Likewise.
27292         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27293         * doc/glibc-functions/wcstoq.texi: Likewise.
27294         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27295         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27296         * doc/glibc-functions/wcstouq.texi: Likewise.
27297         * doc/glibc-functions/wmempcpy.texi: Likewise.
27298
27299 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27300             Eric Blake  <ebb9@byu.net>
27301             Paolo Bonzini  <bonzini@gnu.org>
27302             Bruno Haible  <bruno@clisp.org>
27303
27304         Make c-stack work on Haiku.
27305         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27306         (c_stack_action): Use SA_ONSTACK flag.
27307
27308 2008-12-22  Bruno Haible  <bruno@clisp.org>
27309
27310         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27311
27312 2008-12-22  Bruno Haible  <bruno@clisp.org>
27313
27314         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27315         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27316         being overridden.
27317         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27318         New macros.
27319         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27321         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27322         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27323
27324 2008-12-22  Bruno Haible  <bruno@clisp.org>
27325
27326         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27327         from test code.
27328
27329 2008-12-22  Eric Blake  <ebb9@byu.net>
27330
27331         Avoid gcc warnings on cygwin.
27332         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27333         Avoid unused variable.
27334         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27335         Likewise.
27336
27337 2008-12-22  Bruno Haible  <bruno@clisp.org>
27338
27339         Remove HAVE_MBRTOWC conditionals.
27340         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
27341         (mbscasecmp): Assume mbrtowc function.
27342         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
27343         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
27344         * lib/mbschr.c: Include mbuiter.h unconditionally.
27345         (mbschr): Assume mbrtowc function.
27346         * lib/mbscspn.c: Include mbuiter.h unconditionally.
27347         (mbscspn): Assume mbrtowc function.
27348         * lib/mbslen.c: Include mbuiter.h unconditionally.
27349         (mbslen): Assume mbrtowc function.
27350         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
27351         (mbsncasecmp): Assume mbrtowc function.
27352         * lib/mbsnlen.c: Include mbiter.h unconditionally.
27353         (mbsnlen): Assume mbrtowc function.
27354         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
27355         (mbspbrk): Assume mbrtowc function.
27356         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
27357         (mbspcasecmp): Assume mbrtowc function.
27358         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
27359         (mbsrchr): Assume mbrtowc function.
27360         * lib/mbssep.c: Include mbuiter.h unconditionally.
27361         (mbssep): Assume mbrtowc function.
27362         * lib/mbsspn.c: Include mbuiter.h unconditionally.
27363         (mbsspn): Assume mbrtowc function.
27364         * lib/mbsstr.c: Include mbuiter.h unconditionally.
27365         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27366         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27367         (mbstok_r): Assume mbrtowc function.
27368         * lib/propername.c: Include mbuiter.h unconditionally.
27369         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27370         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27371         (trim2): Assume mbrtowc function.
27372         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27373         (mbsnwidth): Assume mbrtowc function.
27374         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27375         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27376         fallback definitions.
27377         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27378
27379 2008-12-22  Bruno Haible  <bruno@clisp.org>
27380
27381         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27382
27383 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27384
27385         * modules/regex: Request emulations for the mb*/wc* functions we need.
27386         * m4/regex.m4: Don't look for those functions here.
27387         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27388
27389 2008-12-22  Bruno Haible  <bruno@clisp.org>
27390
27391         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27392
27393 2008-12-21  Bruno Haible  <bruno@clisp.org>
27394
27395         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27396         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27397         (Include): Remove conditionalization.
27398         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27399         (Include): Remove conditionalization.
27400         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27401         (Include): Remove conditionalization.
27402         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27403         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27404         * NEWS: Mention the change.
27405         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27406         via Sergey Poznyakoff <gray@gnu.org.ua>.
27407
27408 2008-12-21  Bruno Haible  <bruno@clisp.org>
27409
27410         * MODULES.html.sh (Extended multibyte and wide character utilities
27411         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
27412         wcrtomb, wcsrtombs.
27413         (Support for systems lacking POSIX:2008): Add accept, bind, close,
27414         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
27415         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
27416         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
27417
27418 2008-12-21  Bruno Haible  <bruno@clisp.org>
27419
27420         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
27421
27422 2008-12-21  Bruno Haible  <bruno@clisp.org>
27423
27424         * modules/wcsnrtombs-tests: New file.
27425         * tests/test-wcsnrtombs1.sh: New file.
27426         * tests/test-wcsnrtombs2.sh: New file.
27427         * tests/test-wcsnrtombs3.sh: New file.
27428         * tests/test-wcsnrtombs4.sh: New file.
27429         * tests/test-wcsnrtombs.c: New file.
27430
27431         New module 'wcsnrtombs'.
27432         * lib/wchar.in.h (wcsnrtombs): New declaration.
27433         * lib/wcsnrtombs.c: New file.
27434         * lib/wcsrtombs-state.c: New file.
27435         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
27436         (internal_state): Remove variable.
27437         * m4/wcsnrtombs.m4: New file.
27438         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
27439         compilation units.
27440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
27441         HAVE_WCSNRTOMBS.
27442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
27443         HAVE_WCSNRTOMBS.
27444         * modules/wcsnrtombs: New file.
27445         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
27446         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
27447
27448 2008-12-21  Bruno Haible  <bruno@clisp.org>
27449
27450         * modules/wcsrtombs-tests: New file.
27451         * tests/test-wcsrtombs1.sh: New file.
27452         * tests/test-wcsrtombs2.sh: New file.
27453         * tests/test-wcsrtombs3.sh: New file.
27454         * tests/test-wcsrtombs4.sh: New file.
27455         * tests/test-wcsrtombs.c: New file.
27456
27457         New module 'wcsrtombs'.
27458         * lib/wchar.in.h (wcsrtombs): New declaration.
27459         * lib/wcsrtombs.c: New file.
27460         * m4/wcsrtombs.m4: New file.
27461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
27462         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
27464         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27465         * modules/wcsrtombs: New file.
27466         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
27467         bugs.
27468
27469 2008-12-21  Bruno Haible  <bruno@clisp.org>
27470
27471         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
27472         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
27473         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
27474         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
27475         if not correct.
27476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
27477         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
27478         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27479         m4/locale-zh.m4, m4/codeset.m4.
27480         * doc/posix-functions/wcrtomb.texi: Document the bug.
27481
27482 2008-12-21  Bruno Haible  <bruno@clisp.org>
27483
27484         Work around a btowc() bug on IRIX 6.5.
27485         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
27486         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
27487         REPLACE_WTOBC if not.
27488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
27489         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
27490         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
27491
27492 2008-12-21  Bruno Haible  <bruno@clisp.org>
27493
27494         * modules/wcrtomb-tests: New file.
27495         * tests/test-wcrtomb.sh: New file.
27496         * tests/test-wcrtomb.c: New file.
27497
27498         New module 'wcrtomb'.
27499         * lib/wchar.in.h (wcrtomb): New declaration.
27500         * lib/wcrtomb.c: New file.
27501         * m4/wcrtomb.m4: New file.
27502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
27503         HAVE_WCRTOMB.
27504         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
27505         HAVE_WCRTOMB.
27506         * modules/wcrtomb: New file.
27507         * doc/posix-functions/wcrtomb.texi: Mention the new module.
27508
27509 2008-12-21  Bruno Haible  <bruno@clisp.org>
27510
27511         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
27512         * modules/mbsrtowcs (Files): Likewise.
27513         * modules/wctob (Files): Likewise.
27514         * modules/c-strcase-tests (Files): Likewise.
27515         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27516         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27517         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27518         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27519         * modules/vasnprintf-posix-tests (Files): Likewise.
27520
27521 2008-12-21  William Pursell  <bill.pursell@gmail.com>
27522
27523         gitlog-to-changelog: pass all command-line arguments to git-log
27524         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
27525         it is sometimes convenient to filter the commits in various ways.
27526         gitlog-to-changelog only allows --since to specify a start date,
27527         but git-log itself supports many other filtering mechanisms.
27528         At the moment, I want to filter by branch name.  Rather than
27529         adding a --branch option to gitlog-to-changelog, it seems more
27530         flexible to simply pass all options directly to git-log and let
27531         git do the work.  Notice that this effectively makes --since a
27532         redundant option for gitlog-to-changelog, but removing it would
27533         require current usage to change since calls would then require
27534         an additional '--'.
27535
27536 2008-12-21  Bruno Haible  <bruno@clisp.org>
27537
27538         * modules/mbsnrtowcs-tests: New file.
27539         * tests/test-mbsnrtowcs1.sh: New file.
27540         * tests/test-mbsnrtowcs2.sh: New file.
27541         * tests/test-mbsnrtowcs3.sh: New file.
27542         * tests/test-mbsnrtowcs4.sh: New file.
27543         * tests/test-mbsnrtowcs.c: New file.
27544
27545         New module 'mbsnrtowcs'.
27546         * lib/wchar.in.h (mbsnrtowcs): New declaration.
27547         * lib/mbsnrtowcs.c: New file.
27548         * lib/mbsrtowcs-state.c: New file.
27549         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
27550         (internal_state): Remove variable.
27551         * m4/mbsnrtowcs.m4: New file.
27552         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
27553         compilation units.
27554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
27555         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27556         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
27557         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27558         * modules/mbsnrtowcs: New file.
27559         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
27560         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
27561         portability problem.
27562
27563 2008-12-21  Bruno Haible  <bruno@clisp.org>
27564
27565         Work around mbsrtowcs bug.
27566         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
27567         (gl_FUNC_MBSRTOWCS): Invoke it.
27568         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27569         m4/locale-zh.m4.
27570         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
27571
27572 2008-12-21  Bruno Haible  <bruno@clisp.org>
27573
27574         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
27575
27576 2008-12-21  Bruno Haible  <bruno@clisp.org>
27577
27578         Update doc for AIX.
27579         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
27580         16-bit wchar_t type.
27581         * doc/posix-functions/btowc.texi: Likewise.
27582         * doc/posix-functions/fgetwc.texi: Likewise.
27583         * doc/posix-functions/fgetws.texi: Likewise.
27584         * doc/posix-functions/fputwc.texi: Likewise.
27585         * doc/posix-functions/fputws.texi: Likewise.
27586         * doc/posix-functions/fwide.texi: Likewise.
27587         * doc/posix-functions/fwprintf.texi: Likewise.
27588         * doc/posix-functions/fwscanf.texi: Likewise.
27589         * doc/posix-functions/getwchar.texi: Likewise.
27590         * doc/posix-functions/getwc.texi: Likewise.
27591         * doc/posix-functions/iswalnum.texi: Likewise.
27592         * doc/posix-functions/iswalpha.texi: Likewise.
27593         * doc/posix-functions/iswblank.texi: Likewise.
27594         * doc/posix-functions/iswcntrl.texi: Likewise.
27595         * doc/posix-functions/iswctype.texi: Likewise.
27596         * doc/posix-functions/iswdigit.texi: Likewise.
27597         * doc/posix-functions/iswgraph.texi: Likewise.
27598         * doc/posix-functions/iswlower.texi: Likewise.
27599         * doc/posix-functions/iswprint.texi: Likewise.
27600         * doc/posix-functions/iswpunct.texi: Likewise.
27601         * doc/posix-functions/iswspace.texi: Likewise.
27602         * doc/posix-functions/iswupper.texi: Likewise.
27603         * doc/posix-functions/iswxdigit.texi: Likewise.
27604         * doc/posix-functions/mbrtowc.texi: Likewise.
27605         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27606         * doc/posix-functions/mbstowcs.texi: Likewise.
27607         * doc/posix-functions/mbtowc.texi: Likewise.
27608         * doc/posix-functions/putwchar.texi: Likewise.
27609         * doc/posix-functions/putwc.texi: Likewise.
27610         * doc/posix-functions/swprintf.texi: Likewise.
27611         * doc/posix-functions/tolower.texi: Likewise.
27612         * doc/posix-functions/toupper.texi: Likewise.
27613         * doc/posix-functions/towctrans.texi: Likewise.
27614         * doc/posix-functions/ungetwc.texi: Likewise.
27615         * doc/posix-functions/vswprintf.texi: Likewise.
27616         * doc/posix-functions/wcrtomb.texi: Likewise.
27617         * doc/posix-functions/wcscat.texi: Likewise.
27618         * doc/posix-functions/wcschr.texi: Likewise.
27619         * doc/posix-functions/wcscmp.texi: Likewise.
27620         * doc/posix-functions/wcscoll.texi: Likewise.
27621         * doc/posix-functions/wcscpy.texi: Likewise.
27622         * doc/posix-functions/wcscspn.texi: Likewise.
27623         * doc/posix-functions/wcsftime.texi: Likewise.
27624         * doc/posix-functions/wcslen.texi: Likewise.
27625         * doc/posix-functions/wcsncat.texi: Likewise.
27626         * doc/posix-functions/wcsncmp.texi: Likewise.
27627         * doc/posix-functions/wcsncpy.texi: Likewise.
27628         * doc/posix-functions/wcspbrk.texi: Likewise.
27629         * doc/posix-functions/wcsrchr.texi: Likewise.
27630         * doc/posix-functions/wcsrtombs.texi: Likewise.
27631         * doc/posix-functions/wcsspn.texi: Likewise.
27632         * doc/posix-functions/wcsstr.texi: Likewise.
27633         * doc/posix-functions/wcstod.texi: Likewise.
27634         * doc/posix-functions/wcstof.texi: Likewise.
27635         * doc/posix-functions/wcstoimax.texi: Likewise.
27636         * doc/posix-functions/wcstok.texi: Likewise.
27637         * doc/posix-functions/wcstold.texi: Likewise.
27638         * doc/posix-functions/wcstoll.texi: Likewise.
27639         * doc/posix-functions/wcstol.texi: Likewise.
27640         * doc/posix-functions/wcstombs.texi: Likewise.
27641         * doc/posix-functions/wcstoull.texi: Likewise.
27642         * doc/posix-functions/wcstoul.texi: Likewise.
27643         * doc/posix-functions/wcstoumax.texi: Likewise.
27644         * doc/posix-functions/wcswidth.texi: Likewise.
27645         * doc/posix-functions/wcsxfrm.texi: Likewise.
27646         * doc/posix-functions/wctob.texi: Likewise.
27647         * doc/posix-functions/wctomb.texi: Likewise.
27648         * doc/posix-functions/wctrans.texi: Likewise.
27649         * doc/posix-functions/wctype.texi: Likewise.
27650         * doc/posix-functions/wcwidth.texi: Likewise.
27651         * doc/posix-functions/wmemchr.texi: Likewise.
27652         * doc/posix-functions/wmemcmp.texi: Likewise.
27653         * doc/posix-functions/wmemcpy.texi: Likewise.
27654         * doc/posix-functions/wmemmove.texi: Likewise.
27655         * doc/posix-functions/wmemset.texi: Likewise.
27656         * doc/posix-functions/wprintf.texi: Likewise.
27657         * doc/posix-functions/wscanf.texi: Likewise.
27658
27659 2008-12-21  Bruno Haible  <bruno@clisp.org>
27660
27661         Update doc for HP-UX 11.11.
27662         * doc/posix-functions/btowc.texi: Clarify that the function is missing
27663         in HP-UX version 11.00, not in all versions of HP-UX 11.
27664         * doc/posix-functions/fwide.texi: Likewise.
27665         * doc/posix-functions/fwprintf.texi: Likewise.
27666         * doc/posix-functions/fwscanf.texi: Likewise.
27667         * doc/posix-functions/inet_ntop.texi: Likewise.
27668         * doc/posix-functions/inet_pton.texi: Likewise.
27669         * doc/posix-functions/mbrlen.texi: Likewise.
27670         * doc/posix-functions/mbrtowc.texi: Likewise.
27671         * doc/posix-functions/mbsinit.texi: Likewise.
27672         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27673         * doc/posix-functions/swprintf.texi: Likewise.
27674         * doc/posix-functions/swscanf.texi: Likewise.
27675         * doc/posix-functions/towctrans.texi: Likewise.
27676         * doc/posix-functions/vfwprintf.texi: Likewise.
27677         * doc/posix-functions/vswprintf.texi: Likewise.
27678         * doc/posix-functions/vwprintf.texi: Likewise.
27679         * doc/posix-functions/wcrtomb.texi: Likewise.
27680         * doc/posix-functions/wcsrtombs.texi: Likewise.
27681         * doc/posix-functions/wcsstr.texi: Likewise.
27682         * doc/posix-functions/wctob.texi: Likewise.
27683         * doc/posix-functions/wctrans.texi: Likewise.
27684         * doc/posix-functions/wmemchr.texi: Likewise.
27685         * doc/posix-functions/wmemcmp.texi: Likewise.
27686         * doc/posix-functions/wmemcpy.texi: Likewise.
27687         * doc/posix-functions/wmemmove.texi: Likewise.
27688         * doc/posix-functions/wmemset.texi: Likewise.
27689         * doc/posix-functions/wprintf.texi: Likewise.
27690         * doc/posix-functions/wscanf.texi: Likewise.
27691
27692 2008-12-21  Bruno Haible  <bruno@clisp.org>
27693
27694         Work around a portability problem.
27695         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
27696         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
27697
27698 2008-12-20  Bruno Haible  <bruno@clisp.org>
27699
27700         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
27701         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
27702         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
27703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
27704         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
27705
27706         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
27707         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
27708         set.
27709         (GNULIB_defined_mbstate_t): New macro.
27710         (mbsinit): Redefine if REPLACE_MBSINIT is set.
27711         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
27712         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
27713         reuses the system's mbrtowc function but works around the bugs.
27714         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
27715         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
27716         macros.
27717         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
27718         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
27719         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
27720         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
27721         REPLACE_MBSINIT if mbsinit needs to be overridden.
27722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
27723         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27724         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
27725         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27726         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27727         m4/locale-zh.m4.
27728         (Depends): Add mbsinit.
27729         * modules/mbsinit (Depends): Add mbrtowc.
27730         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
27731
27732 2008-12-20  Bruno Haible  <bruno@clisp.org>
27733
27734         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
27735         so that there are no conversion errors on AIX.
27736         * tests/test-mbsrtowcs.c (main): LIkewise.
27737
27738 2008-12-20  Bruno Haible  <bruno@clisp.org>
27739
27740         Work around wctob bug on Solaris <= 9.
27741         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
27742         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
27743         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
27744         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
27745         * modules/wctob (Files): Add m4/locale-fr.m4.
27746         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
27747
27748 2008-12-20  Bruno Haible  <bruno@clisp.org>
27749
27750         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
27751         /dev/null.
27752         * tests/test-select-in.sh: Likewise.
27753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27754
27755 2008-12-20  Bruno Haible  <bruno@clisp.org>
27756
27757         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
27758         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
27759         Cygwin 1.5.x.
27760
27761 2008-12-20  Bruno Haible  <bruno@clisp.org>
27762
27763         Ensure mbstate_t is defined on HP-UX 11.11.
27764         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
27765         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
27766         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
27767         AC_USE_SYSTEM_EXTENSIONS.
27768         * modules/fnmatch (Depends-on): Add extensions.
27769         * modules/mbrlen (Depends-on): Likewise.
27770         * modules/mbrtowc (Depends-on): Likewise.
27771         * modules/mbsinit (Depends-on): Likewise.
27772         * modules/mbsrtowcs (Depends-on): Likewise.
27773         * modules/mbswidth (Depends-on): Likewise.
27774         * modules/quotearg (Depends-on): Likewise.
27775         * modules/strftime (Depends-on): Likewise.
27776
27777 2008-12-20  Bruno Haible  <bruno@clisp.org>
27778
27779         Ensure wctob is declared on IRIX 6.5.
27780         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
27781         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
27782         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
27783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
27784         of HAVE_WCTOB.
27785         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
27786         HAVE_WCTOB.
27787         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
27788
27789 2008-12-19  Bruno Haible  <bruno@clisp.org>
27790
27791         * modules/mbsrtowcs-tests: New file.
27792         * tests/test-mbsrtowcs1.sh: New file.
27793         * tests/test-mbsrtowcs2.sh: New file.
27794         * tests/test-mbsrtowcs3.sh: New file.
27795         * tests/test-mbsrtowcs4.sh: New file.
27796         * tests/test-mbsrtowcs.c: New file.
27797
27798         New module 'mbsrtowcs'.
27799         * lib/wchar.in.h (mbsrtowcs): New declaration.
27800         * lib/mbsrtowcs.c: New file.
27801         * m4/mbsrtowcs.m4: New file.
27802         * modules/mbsrtowcs: New file.
27803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
27804         HAVE_MBSRTOWCS.
27805         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
27806         HAVE_MBSRTOWCS.
27807         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
27808
27809 2008-12-19  Bruno Haible  <bruno@clisp.org>
27810
27811         New module 'mbrlen'.
27812         * lib/wchar.in.h (mbrlen): New declaration.
27813         * lib/mbrlen.c: New file.
27814         * m4/mbrlen.m4: New file.
27815         * modules/mbrlen: New file.
27816         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
27817         HAVE_MBRLEN.
27818         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
27819         HAVE_MBRLEN.
27820         * doc/posix-functions/mbrlen.texi: Document the new module.
27821
27822 2008-12-19  Bruno Haible  <bruno@clisp.org>
27823
27824         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
27825         * modules/mbrtowc (Depends-on): Add verify.
27826         Suggested by Paul Eggert.
27827
27828 2008-12-18  Bruno Haible  <bruno@clisp.org>
27829
27830         * modules/mbsinit-tests: New file.
27831         * tests/test-mbsinit.sh: New file.
27832         * tests/test-mbsinit.c: New file.
27833
27834 2008-12-18  Bruno Haible  <bruno@clisp.org>
27835
27836         * modules/mbrtowc-tests: New file.
27837         * tests/test-mbrtowc1.sh: New file.
27838         * tests/test-mbrtowc2.sh: New file.
27839         * tests/test-mbrtowc3.sh: New file.
27840         * tests/test-mbrtowc4.sh: New file.
27841         * tests/test-mbrtowc.c: New file.
27842
27843         New module 'mbrtowc'.
27844         * lib/wchar.in.h (mbstate_t): Override when the system does not have
27845         mbsinit and mbrtowc.
27846         (mbrtowc): New declaration.
27847         * lib/mbrtowc.c: New file.
27848         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
27849         * modules/mbrtowc: New file.
27850         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
27851         HAVE_MBRTOWC.
27852         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
27853         HAVE_MBRTOWC.
27854         * doc/posix-functions/mbrtowc.texi: Document the new module.
27855
27856 2008-12-18  Bruno Haible  <bruno@clisp.org>
27857
27858         New module 'wctob'.
27859         * lib/wchar.in.h (wctob): New declaration.
27860         * lib/wctob.c: New file.
27861         * m4/wctob.m4: New file.
27862         * modules/wctob: New file.
27863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
27864         HAVE_WCTOB.
27865         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
27866         * doc/posix-functions/wctob.texi: Document the new module.
27867
27868 2008-12-18  Bruno Haible  <bruno@clisp.org>
27869
27870         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
27871         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
27872
27873 2008-12-18  Simon Josefsson  <simon@josefsson.org>
27874
27875         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
27876         G. Christensen" <tgc@jupiterrise.com>.
27877
27878         * lib/flock.c: Need to include errno.h.  Reported by "Tom
27879         G. Christensen" <tgc@jupiterrise.com>.
27880
27881         * lib/flock.c: Need to include string.h.  Reported by "Tom
27882         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
27883         <ebb9@byu.net>.
27884
27885 2008-12-18  Bruno Haible  <bruno@clisp.org>
27886
27887         * m4/locale-ja.m4: New file, from GNU gettext.
27888
27889 2008-12-17  Bruno Haible  <bruno@clisp.org>
27890
27891         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
27892         Suggested by Eric Blake.
27893
27894 2008-12-17  Bruno Haible  <bruno@clisp.org>
27895
27896         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
27897
27898 2008-12-17  Bruno Haible  <bruno@clisp.org>
27899
27900         * lib/mbsinit.c: Include verify.h. Verify an assumption.
27901         * modules/mbsinit (Depends-on): Add verify.
27902         Suggested by Paul Eggert.
27903
27904 2008-12-17  Bruno Haible  <bruno@clisp.org>
27905
27906         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
27907         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
27908         gl_FUNC_MBRTOWC.
27909         * m4/mbiter.m4 (gl_MBITER): LIkewise.
27910         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
27911         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
27912         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
27913         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
27914         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
27915         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
27916         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
27917         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
27918         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
27919         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
27920         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
27921         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
27922         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
27923         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
27924         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27925         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
27926         * modules/trim (configure.ac): Likewise.
27927
27928 2008-12-17  Bruno Haible  <bruno@clisp.org>
27929
27930         * modules/btowc-tests: New file.
27931         * tests/test-btowc1.sh: New file.
27932         * tests/test-btowc2.sh: New file.
27933         * tests/test-btowc.c: New file.
27934
27935         New module 'btowc'.
27936         * lib/wchar.in.h (btowc): New declaration.
27937         * lib/btowc.c: New file.
27938         * m4/btowc.m4: New file.
27939         * modules/btowc: New file.
27940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
27941         HAVE_BTOWC.
27942         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
27943         * doc/posix-functions/btowc.texi: Document the new module.
27944
27945 2008-12-17  Bruno Haible  <bruno@clisp.org>
27946
27947         New module 'mbsinit'.
27948         * lib/wchar.in.h (mbsinit): New declaration.
27949         * lib/mbsinit.c: New file.
27950         * m4/mbsinit.m4: New file.
27951         * modules/mbsinit: New file.
27952         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
27953         HAVE_MBSINIT.
27954         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
27955         HAVE_MBSINIT.
27956         * doc/posix-functions/mbsinit.texi: Document the new module.
27957
27958 2008-12-16  Bruno Haible  <bruno@clisp.org>
27959
27960         * lib/unistd.in.h: Add comment.
27961         * tests/test-environ.c: Don't include <stdlib.h>.
27962
27963 2008-12-16  Bruno Haible  <bruno@clisp.org>
27964
27965         * lib/parse-duration.h (parse_duration): Document return value
27966         convention.
27967         * lib/parse-duration.c: Include specification header first. Add
27968         comments.
27969         (_): Remove macro.
27970         (parse_year_month_day, parse_hour_minute_second): Move side effects
27971         outside of strchr call.
27972         (parse_non_iso8601): Move side effects outside of isspace call.
27973         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
27974         call.
27975
27976 2008-12-16  Bruno Haible  <bruno@clisp.org>
27977
27978         * tests/test-parse-duration.sh: Produce no output when the test
27979         succeeds.
27980
27981 2008-12-16  Bruno Haible  <bruno@clisp.org>
27982
27983         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
27984         expressions.
27985
27986 2008-12-15  Bruno Haible  <bruno@clisp.org>
27987
27988         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
27989         * doc/glibc-functions/flistxattr.texi: Likewise.
27990         * doc/glibc-functions/fopencookie.texi: Likewise.
27991         * doc/glibc-functions/fremovexattr.texi: Likewise.
27992         * doc/glibc-functions/fsetxattr.texi: Likewise.
27993         * doc/glibc-functions/getxattr.texi: Likewise.
27994         * doc/glibc-functions/lgetxattr.texi: Likewise.
27995         * doc/glibc-functions/listxattr.texi: Likewise.
27996         * doc/glibc-functions/llistxattr.texi: Likewise.
27997         * doc/glibc-functions/lremovexattr.texi: Likewise.
27998         * doc/glibc-functions/lsetxattr.texi: Likewise.
27999         * doc/glibc-functions/removexattr.texi: Likewise.
28000         * doc/glibc-functions/setxattr.texi: Likewise.
28001         * doc/posix-functions/open_memstream.texi: Likewise.
28002
28003 2008-12-15  Eric Blake  <ebb9@byu.net>
28004
28005         Update doc for cygwin 1.7.
28006         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28007         functions.
28008         * doc/posix-functions/fchmodat.texi: Likewise.
28009         * doc/posix-functions/fchownat.texi: Likewise.
28010         * doc/posix-functions/fdopendir.texi: Likewise.
28011         * doc/posix-functions/fmemopen.texi: Likewise.
28012         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28013         * doc/posix-functions/fstatat.texi: Likewise.
28014         * doc/posix-functions/futimens.texi: Likewise.
28015         * doc/posix-functions/gai_strerror.texi: Likewise.
28016         * doc/posix-functions/getaddrinfo.texi: Likewise.
28017         * doc/posix-functions/getnameinfo.texi: Likewise.
28018         * doc/posix-functions/if_freenameindex.texi: Likewise.
28019         * doc/posix-functions/if_indextoname.texi: Likewise.
28020         * doc/posix-functions/if_nameindex.texi: Likewise.
28021         * doc/posix-functions/if_nametoindex.texi: Likewise.
28022         * doc/posix-functions/insque.texi: Likewise.
28023         * doc/posix-functions/linkat.texi: Likewise.
28024         * doc/posix-functions/llrint.texi: Likewise.
28025         * doc/posix-functions/llrintf.texi: Likewise.
28026         * doc/posix-functions/llrintl.texi: Likewise.
28027         * doc/posix-functions/lockf.texi: Likewise.
28028         * doc/posix-functions/lrintl.texi: Likewise.
28029         * doc/posix-functions/mkdirat.texi: Likewise.
28030         * doc/posix-functions/mkfifoat.texi: Likewise.
28031         * doc/posix-functions/mknodat.texi: Likewise.
28032         * doc/posix-functions/mq_close.texi: Likewise.
28033         * doc/posix-functions/mq_getattr.texi: Likewise.
28034         * doc/posix-functions/mq_notify.texi: Likewise.
28035         * doc/posix-functions/mq_open.texi: Likewise.
28036         * doc/posix-functions/mq_receive.texi: Likewise.
28037         * doc/posix-functions/mq_send.texi: Likewise.
28038         * doc/posix-functions/mq_setattr.texi: Likewise.
28039         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28040         * doc/posix-functions/mq_timedsend.texi: Likewise.
28041         * doc/posix-functions/mq_unlink.texi: Likewise.
28042         * doc/posix-functions/open_memstream.texi: Likewise.
28043         * doc/posix-functions/openat.texi: Likewise.
28044         * doc/posix-functions/posix_fadvise.texi: Likewise.
28045         * doc/posix-functions/posix_fallocate.texi: Likewise.
28046         * doc/posix-functions/posix_madvise.texi: Likewise.
28047         * doc/posix-functions/posix_memalign.texi: Likewise.
28048         * doc/posix-functions/posix_openpt.texi: Likewise.
28049         * doc/posix-functions/readlinkat.texi: Likewise.
28050         * doc/posix-functions/remque.texi: Likewise.
28051         * doc/posix-functions/renameat.texi: Likewise.
28052         * doc/posix-functions/rintl.texi: Likewise.
28053         * doc/posix-functions/sem_unlink.texi: Likewise.
28054         * doc/posix-functions/shm_open.texi: Likewise.
28055         * doc/posix-functions/shm_unlink.texi: Likewise.
28056         * doc/posix-functions/signgam.texi: Likewise.
28057         * doc/posix-functions/sigset.texi: Likewise.
28058         * doc/posix-functions/stpcpy.texi: Likewise.
28059         * doc/posix-functions/stpncpy.texi: Likewise.
28060         * doc/posix-functions/strerror.texi: Likewise.
28061         * doc/posix-functions/strtod.texi: Likewise.
28062         * doc/posix-functions/symlinkat.texi: Likewise.
28063         * doc/posix-functions/unlinkat.texi: Likewise.
28064         * doc/posix-functions/utimensat.texi: Likewise.
28065         * doc/glibc-functions/bindresvport.texi: Likewise.
28066         * doc/glibc-functions/dn_expand.texi: Likewise.
28067         * doc/glibc-functions/exp10.texi: Likewise.
28068         * doc/glibc-functions/exp10f.texi: Likewise.
28069         * doc/glibc-functions/fgetxattr.texi: Likewise.
28070         * doc/glibc-functions/flistxattr.texi: Likewise.
28071         * doc/glibc-functions/fopencookie.texi: Likewise.
28072         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28073         * doc/glibc-functions/fremovexattr.texi: Likewise.
28074         * doc/glibc-functions/fsetxattr.texi: Likewise.
28075         * doc/glibc-functions/getifaddrs.texi: Likewise.
28076         * doc/glibc-functions/getxattr.texi: Likewise.
28077         * doc/glibc-functions/lgetxattr.texi: Likewise.
28078         * doc/glibc-functions/listxattr.texi: Likewise.
28079         * doc/glibc-functions/llistxattr.texi: Likewise.
28080         * doc/glibc-functions/lremovexattr.texi: Likewise.
28081         * doc/glibc-functions/lsetxattr.texi: Likewise.
28082         * doc/glibc-functions/pow10.texi: Likewise.
28083         * doc/glibc-functions/pow10f.texi: Likewise.
28084         * doc/glibc-functions/rcmd_af.texi: Likewise.
28085         * doc/glibc-functions/removexattr.texi: Likewise.
28086         * doc/glibc-functions/res_init.texi: Likewise.
28087         * doc/glibc-functions/res_mkquery.texi: Likewise.
28088         * doc/glibc-functions/res_query.texi: Likewise.
28089         * doc/glibc-functions/res_querydomain.texi: Likewise.
28090         * doc/glibc-functions/res_send.texi: Likewise.
28091         * doc/glibc-functions/rresvport_af.texi: Likewise.
28092         * doc/glibc-functions/setxattr.texi: Likewise.
28093         * doc/glibc-functions/strcasestr.texi: Likewise.
28094
28095 2008-12-15  Bruno Haible  <bruno@clisp.org>
28096
28097         Fix compilation error on OSF/1 4.0.
28098         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28099         <sys/time.h>, simply delegate to the system header.
28100         Reported by Daniel Richard G. <oss@teragram.com>.
28101
28102 2008-12-15  Bruno Haible  <bruno@clisp.org>
28103
28104         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28105         * doc/posix-functions/fchmodat.texi: Likewise.
28106         * doc/posix-functions/fchownat.texi: Likewise.
28107         * doc/posix-functions/fdopendir.texi: Likewise.
28108         * doc/posix-functions/fstatat.texi: Likewise.
28109         * doc/posix-functions/mkdirat.texi: Likewise.
28110         * doc/posix-functions/unlinkat.texi: Likewise.
28111
28112 2008-12-14  Bruno Haible  <bruno@clisp.org>
28113
28114         Update doc for POSIX:2008.
28115         * doc/posix-functions/faccessat.texi: New file.
28116         * doc/posix-functions/fchmodat.texi: New file.
28117         * doc/posix-functions/fchownat.texi: New file.
28118         * doc/posix-functions/fdopendir.texi: New file.
28119         * doc/posix-functions/fstatat.texi: New file.
28120         * doc/posix-functions/futimens.texi: New file.
28121         * doc/posix-functions/linkat.texi: New file.
28122         * doc/posix-functions/mkdirat.texi: New file.
28123         * doc/posix-functions/mkfifoat.texi: New file.
28124         * doc/posix-functions/mknodat.texi: New file.
28125         * doc/posix-functions/open_wmemstream.texi: New file.
28126         * doc/posix-functions/openat.texi: New file.
28127         * doc/posix-functions/psiginfo.texi: New file.
28128         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28129         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28130         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28131         * doc/posix-functions/readlinkat.texi: New file.
28132         * doc/posix-functions/renameat.texi: New file.
28133         * doc/posix-functions/strerror_l.texi: New file.
28134         * doc/posix-functions/symlinkat.texi: New file.
28135         * doc/posix-functions/unlinkat.texi: New file.
28136         * doc/posix-functions/utimensat.texi: New file.
28137         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28138
28139 2008-12-14  Bruno Haible  <bruno@clisp.org>
28140
28141         Update doc for POSIX:2008.
28142         * doc/posix-functions/alphasort.texi: Renamed from
28143         doc/glibc-functions/alphasort.texi.
28144         * doc/posix-functions/dirfd.texi: Renamed from
28145         doc/glibc-functions/dirfd.texi.
28146         * doc/posix-functions/dprintf.texi: Renamed from
28147         doc/glibc-functions/dprintf.texi.
28148         * doc/posix-functions/duplocale.texi: Renamed from
28149         doc/glibc-functions/duplocale.texi.
28150         * doc/posix-functions/fexecve.texi: Renamed from
28151         doc/glibc-functions/fexecve.texi.
28152         * doc/posix-functions/fmemopen.texi: Renamed from
28153         doc/glibc-functions/fmemopen.texi.
28154         * doc/posix-functions/freelocale.texi: Renamed from
28155         doc/glibc-functions/freelocale.texi.
28156         * doc/posix-functions/getdate_err.texi: Renamed from
28157         doc/glibc-functions/getdate_err.texi.
28158         * doc/posix-functions/isalnum_l.texi: Renamed from
28159         doc/glibc-functions/isalnum_l.texi.
28160         * doc/posix-functions/isalpha_l.texi: Renamed from
28161         doc/glibc-functions/isalpha_l.texi.
28162         * doc/posix-functions/isblank_l.texi: Renamed from
28163         doc/glibc-functions/isblank_l.texi.
28164         * doc/posix-functions/iscntrl_l.texi: Renamed from
28165         doc/glibc-functions/iscntrl_l.texi.
28166         * doc/posix-functions/isdigit_l.texi: Renamed from
28167         doc/glibc-functions/isdigit_l.texi.
28168         * doc/posix-functions/isgraph_l.texi: Renamed from
28169         doc/glibc-functions/isgraph_l.texi.
28170         * doc/posix-functions/islower_l.texi: Renamed from
28171         doc/glibc-functions/islower_l.texi.
28172         * doc/posix-functions/isprint_l.texi: Renamed from
28173         doc/glibc-functions/isprint_l.texi.
28174         * doc/posix-functions/ispunct_l.texi: Renamed from
28175         doc/glibc-functions/ispunct_l.texi.
28176         * doc/posix-functions/isspace_l.texi: Renamed from
28177         doc/glibc-functions/isspace_l.texi.
28178         * doc/posix-functions/isupper_l.texi: Renamed from
28179         doc/glibc-functions/isupper_l.texi.
28180         * doc/posix-functions/iswalnum_l.texi: Renamed from
28181         doc/glibc-functions/iswalnum_l.texi.
28182         * doc/posix-functions/iswalpha_l.texi: Renamed from
28183         doc/glibc-functions/iswalpha_l.texi.
28184         * doc/posix-functions/iswblank_l.texi: Renamed from
28185         doc/glibc-functions/iswblank_l.texi.
28186         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28187         doc/glibc-functions/iswcntrl_l.texi.
28188         * doc/posix-functions/iswctype_l.texi: Renamed from
28189         doc/glibc-functions/iswctype_l.texi.
28190         * doc/posix-functions/iswdigit_l.texi: Renamed from
28191         doc/glibc-functions/iswdigit_l.texi.
28192         * doc/posix-functions/iswgraph_l.texi: Renamed from
28193         doc/glibc-functions/iswgraph_l.texi.
28194         * doc/posix-functions/iswlower_l.texi: Renamed from
28195         doc/glibc-functions/iswlower_l.texi.
28196         * doc/posix-functions/iswprint_l.texi: Renamed from
28197         doc/glibc-functions/iswprint_l.texi.
28198         * doc/posix-functions/iswpunct_l.texi: Renamed from
28199         doc/glibc-functions/iswpunct_l.texi.
28200         * doc/posix-functions/iswspace_l.texi: Renamed from
28201         doc/glibc-functions/iswspace_l.texi.
28202         * doc/posix-functions/iswupper_l.texi: Renamed from
28203         doc/glibc-functions/iswupper_l.texi.
28204         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28205         doc/glibc-functions/iswxdigit_l.texi.
28206         * doc/posix-functions/isxdigit_l.texi: Renamed from
28207         doc/glibc-functions/isxdigit_l.texi.
28208         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28209         doc/glibc-functions/mbsnrtowcs.texi.
28210         * doc/posix-functions/mkdtemp.texi: Renamed from
28211         doc/glibc-functions/mkdtemp.texi.
28212         * doc/posix-functions/newlocale.texi: Renamed from
28213         doc/glibc-functions/newlocale.texi.
28214         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28215         doc/glibc-functions/nl_langinfo_l.texi.
28216         * doc/posix-functions/open_memstream.texi: Renamed from
28217         doc/glibc-functions/open_memstream.texi.
28218         * doc/posix-functions/opterr.texi: Renamed from
28219         doc/glibc-functions/opterr.texi.
28220         * doc/posix-functions/optind.texi: Renamed from
28221         doc/glibc-functions/optind.texi.
28222         * doc/posix-functions/optopt.texi: Renamed from
28223         doc/glibc-functions/optopt.texi.
28224         * doc/posix-functions/psignal.texi: Renamed from
28225         doc/glibc-functions/psignal.texi.
28226         * doc/posix-functions/scandir.texi: Renamed from
28227         doc/glibc-functions/scandir.texi.
28228         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28229         doc/glibc-functions/sched_get_priority_min.texi.
28230         * doc/posix-functions/signgam.texi: Renamed from
28231         doc/glibc-functions/signgam.texi.
28232         * doc/posix-functions/stpcpy.texi: Renamed from
28233         doc/glibc-functions/stpcpy.texi.
28234         * doc/posix-functions/stpncpy.texi: Renamed from
28235         doc/glibc-functions/stpncpy.texi.
28236         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28237         doc/glibc-functions/strcasecmp_l.texi.
28238         * doc/posix-functions/strcoll_l.texi: Renamed from
28239         doc/glibc-functions/strcoll_l.texi.
28240         * doc/posix-functions/strfmon_l.texi: Renamed from
28241         doc/glibc-functions/strfmon_l.texi.
28242         * doc/posix-functions/strftime_l.texi: Renamed from
28243         doc/glibc-functions/strftime_l.texi.
28244         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28245         doc/glibc-functions/strncasecmp_l.texi.
28246         * doc/posix-functions/strndup.texi: Renamed from
28247         doc/glibc-functions/strndup.texi.
28248         * doc/posix-functions/strnlen.texi: Renamed from
28249         doc/glibc-functions/strnlen.texi.
28250         * doc/posix-functions/strsignal.texi: Renamed from
28251         doc/glibc-functions/strsignal.texi.
28252         * doc/posix-functions/strxfrm_l.texi: Renamed from
28253         doc/glibc-functions/strxfrm_l.texi.
28254         * doc/posix-functions/timer_gettime.texi: Renamed from
28255         doc/glibc-functions/timer_gettime.texi.
28256         * doc/posix-functions/tolower_l.texi: Renamed from
28257         doc/glibc-functions/tolower_l.texi.
28258         * doc/posix-functions/toupper_l.texi: Renamed from
28259         doc/glibc-functions/toupper_l.texi.
28260         * doc/posix-functions/towctrans_l.texi: Renamed from
28261         doc/glibc-functions/towctrans_l.texi.
28262         * doc/posix-functions/towlower_l.texi: Renamed from
28263         doc/glibc-functions/towlower_l.texi.
28264         * doc/posix-functions/towupper_l.texi: Renamed from
28265         doc/glibc-functions/towupper_l.texi.
28266         * doc/posix-functions/uselocale.texi: Renamed from
28267         doc/glibc-functions/uselocale.texi.
28268         * doc/posix-functions/vdprintf.texi: Renamed from
28269         doc/glibc-functions/vdprintf.texi.
28270         * doc/posix-functions/wcpcpy.texi:
28271         Renamed from doc/glibc-functions/wcpcpy.texi.
28272         * doc/posix-functions/wcpncpy.texi: Renamed from
28273         doc/glibc-functions/wcpncpy.texi.
28274         * doc/posix-functions/wcscasecmp.texi: Renamed from
28275         doc/glibc-functions/wcscasecmp.texi.
28276         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28277         doc/glibc-functions/wcscasecmp_l.texi.
28278         * doc/posix-functions/wcscoll_l.texi: Renamed from
28279         doc/glibc-functions/wcscoll_l.texi.
28280         * doc/posix-functions/wcsdup.texi: Renamed from
28281         doc/glibc-functions/wcsdup.texi.
28282         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28283         doc/glibc-functions/wcsncasecmp.texi.
28284         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28285         doc/glibc-functions/wcsncasecmp_l.texi.
28286         * doc/posix-functions/wcsnlen.texi: Renamed from
28287         doc/glibc-functions/wcsnlen.texi.
28288         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28289         doc/glibc-functions/wcsnrtombs.texi.
28290         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28291         doc/glibc-functions/wcsxfrm_l.texi.
28292         * doc/posix-functions/wctrans_l.texi: Renamed from
28293         doc/glibc-functions/wctrans_l.texi.
28294         * doc/posix-functions/wctype_l.texi: Renamed from
28295         doc/glibc-functions/wctype_l.texi.
28296         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28297         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28298         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28299         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28300         these subsections.
28301         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28302         Remove sections.
28303
28304 2008-12-14  Bruno Haible  <bruno@clisp.org>
28305
28306         Update doc for POSIX:2008.
28307         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28308
28309 2008-12-14  Bruno Haible  <bruno@clisp.org>
28310
28311         Update doc for POSIX:2008.
28312         * doc/pastposix-functions/bcmp.texi: Renamed from
28313         doc/posix-functions/bcmp.texi.
28314         * doc/pastposix-functions/bcopy.texi: Renamed from
28315         doc/posix-functions/bcopy.texi.
28316         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28317         doc/posix-functions/bsd_signal.texi.
28318         * doc/pastposix-functions/bzero.texi: Renamed from
28319         doc/posix-functions/bzero.texi.
28320         * doc/pastposix-functions/ecvt.texi: Renamed from
28321         doc/posix-functions/ecvt.texi.
28322         * doc/pastposix-functions/fcvt.texi: Renamed from
28323         doc/posix-functions/fcvt.texi.
28324         * doc/pastposix-functions/ftime.texi: Renamed from
28325         doc/posix-functions/ftime.texi.
28326         * doc/pastposix-functions/gcvt.texi: Renamed from
28327         doc/posix-functions/gcvt.texi.
28328         * doc/pastposix-functions/getcontext.texi: Renamed from
28329         doc/posix-functions/getcontext.texi.
28330         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28331         doc/posix-functions/gethostbyaddr.texi.
28332         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28333         doc/posix-functions/gethostbyname.texi.
28334         * doc/pastposix-functions/getwd.texi: Renamed from
28335         doc/posix-functions/getwd.texi.
28336         * doc/pastposix-functions/h_errno.texi: Renamed from
28337         doc/posix-functions/h_errno.texi.
28338         * doc/pastposix-functions/index.texi: Renamed from
28339         doc/posix-functions/index.texi.
28340         * doc/pastposix-functions/makecontext.texi: Renamed from
28341         doc/posix-functions/makecontext.texi.
28342         * doc/pastposix-functions/mktemp.texi: Renamed from
28343         doc/posix-functions/mktemp.texi.
28344         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
28345         doc/posix-functions/pthread_attr_getstackaddr.texi.
28346         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
28347         doc/posix-functions/pthread_attr_setstackaddr.texi.
28348         * doc/pastposix-functions/rindex.texi: Renamed from
28349         doc/posix-functions/rindex.texi.
28350         * doc/pastposix-functions/scalb.texi: Renamed from
28351         doc/posix-functions/scalb.texi.
28352         * doc/pastposix-functions/setcontext.texi: Renamed from
28353         doc/posix-functions/setcontext.texi.
28354         * doc/pastposix-functions/swapcontext.texi: Renamed from
28355         doc/posix-functions/swapcontext.texi.
28356         * doc/pastposix-functions/ualarm.texi: Renamed from
28357         doc/posix-functions/ualarm.texi.
28358         * doc/pastposix-functions/usleep.texi: Renamed from
28359         doc/posix-functions/usleep.texi.
28360         * doc/pastposix-functions/vfork.texi: Renamed from
28361         doc/posix-functions/vfork.texi.
28362         * doc/pastposix-functions/wcswcs.texi: Renamed from
28363         doc/posix-functions/wcswcs.texi.
28364         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
28365         (Function Substitutes): Update.
28366
28367 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28368
28369         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28370         m4/strerror.m4.
28371
28372 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28373             Bruno Haible  <bruno@clisp.org>
28374
28375         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28376
28377 2008-12-13  Bruno Haible  <bruno@clisp.org>
28378
28379         * modules/strtoull (Depends-on): Remove unistd.
28380
28381 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28382
28383         * modules/strtoull (Depends-on): Add stdlib.
28384
28385 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28386
28387         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28388
28389 2008-12-10  Jim Meyering  <meyering@redhat.com>
28390
28391         gl_ASSERT: don't say assertions are disabled when they're not
28392         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28393         "checking whether to enable assertions... no", when they are in
28394         fact enabled.  This is solely a bug in the output of configure.
28395         In spite of saying "no", NDEBUG was not defined in that case.
28396         Also, as noted by Eric Blake, leave assertions enabled upon
28397         --enable-assert=INVALID.
28398
28399 2008-12-10  Bruno Haible  <bruno@clisp.org>
28400
28401         Change MODULES.html to refer to POSIX:2008 where possible.
28402         * MODULES.html.sh (POSIX2008_URL): New variable.
28403         (posix_headers): Remove sys/timeb, ucontext.
28404         (posix2001_headers): New variable.
28405         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28406         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28407         index, makecontext, mktemp, pthread_attr_getstackaddr,
28408         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28409         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28410         (posix2001_functions): New variable.
28411         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
28412         otherwise.
28413
28414 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28415
28416         add missing include to parse-duration.c
28417         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
28418         * modules/parse-duration (Depends-on): Add xalloc.
28419
28420         fix sed script reading maint.mk
28421         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
28422         (syntax-check-rules): Use it.
28423
28424 2008-12-09  Bruno Haible  <bruno@clisp.org>
28425
28426         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
28427         MacOS X 10.4/PowerPC.
28428         Reported by Simon Josefsson.
28429
28430 2008-12-08  Jim Meyering  <meyering@redhat.com>
28431
28432         work around mingw's lack of some S_IF definitions
28433         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
28434         Reported by Simon Josefsson.
28435
28436 2008-12-08  Bruno Haible  <bruno@clisp.org>
28437
28438         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
28439         applied to variables. Needed on MacOS X 10.4/PowerPC.
28440         Reported by Simon Josefsson.
28441
28442 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
28443         and Eric Blake  <ebb9@byu.net>
28444
28445         assert: honor --enable-assert
28446         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
28447         order to honor --enable-assert, rather than treating it as a
28448         synonym for --disable-assert.
28449
28450 2008-12-08  Jim Meyering  <meyering@redhat.com>
28451
28452         * lib/posixtm.c: Remove now-useless declaration of mktime.
28453
28454         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
28455
28456 2008-12-07  Bruno Haible  <bruno@clisp.org>
28457
28458         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
28459         test_once): Mark functions as static.
28460         * tests/test-tls.c (test_tls): Likewise.
28461
28462 2008-12-07  Bruno Haible  <bruno@clisp.org>
28463
28464         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
28465         iconv_register_autodetect.
28466
28467 2008-12-07  Jim Meyering  <meyering@redhat.com>
28468
28469         posixtm.c: avoid a warning
28470         * lib/posixtm.c (posixtime): Don't initialize tm0.
28471         It's no longer needed to placate gcc4's -Wuninitialized,
28472         and the attempt to placate would elicit a new warning.
28473
28474         unicodeio.c: mark unused parameters
28475         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28476         (fallback_failure_callback): Likewise.
28477
28478 2008-12-07  Bruno Haible  <bruno@clisp.org>
28479
28480         * gnulib-tool (func_create_testdir): When building the tests
28481         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
28482         Reported by Simon Josefsson.
28483
28484 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28485
28486         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
28487
28488 2008-12-06  Bruno Haible  <bruno@clisp.org>
28489
28490         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
28491         Suggested by Eric Blake.
28492
28493 2008-12-06  Bruno Haible  <bruno@clisp.org>
28494
28495         Fix a c-stack test failure on MacOS X.
28496         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
28497         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
28498         handler for SIGBUS as well.
28499         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
28500         install a signal handler for SIGBUS as well.
28501         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
28502
28503 2008-12-06  Bruno Haible  <bruno@clisp.org>
28504
28505         Advocacy documentation.
28506         * doc/gnulib-intro.texi (Benefits): New section.
28507         * doc/gnulib.texi: Update.
28508
28509 2008-12-06  Bruno Haible  <bruno@clisp.org>
28510
28511         Document the 'manywarnings' module.
28512         * doc/manywarnings.texi: New file.
28513         * doc/gnulib.texi: Include it.
28514
28515 2008-12-05  Eric Blake  <ebb9@byu.net>
28516
28517         tests: silence some gcc warnings
28518         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
28519         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28520         type mismatches.
28521
28522 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28523             Bruno Haible  <bruno@clisp.org>
28524
28525         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
28526
28527 2008-11-29  Jim Meyering  <meyering@redhat.com>
28528
28529         unicodeio.c: mark unused parameters
28530         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28531         (fallback_failure_callback): Likewise.
28532
28533         fts: fix a thinko
28534         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
28535         (set_stat_type): Return S_IF*-valued "type" directly.
28536         Prompted by James Youngman's spotting a related bug.
28537         Confirmed by further testing through find.
28538
28539         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
28540         * lib/fts.c (D_TYPE): Define.
28541         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
28542         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
28543         (s_ifmt_shift_bits): New function.
28544         (set_stat_type): New function.
28545         (fts_build): When not calling fts_stat, call set_stat_type
28546         to propagate dirent.d_type info to fts_read caller.
28547         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
28548         fts_statp->st_mode type information may be valid.
28549
28550 2008-11-28  Simon Josefsson  <simon@josefsson.org>
28551
28552         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
28553         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
28554         <sds@gnu.org>.
28555
28556 2008-11-20  Bruno Haible  <bruno@clisp.org>
28557
28558         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
28559         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
28560         INCLUDE_NEXT.
28561         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
28562         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
28563         * modules/math (Makefile.am): Substitute
28564         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
28565         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28566
28567 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28568             Bruno Haible  <bruno@clisp.org>
28569
28570         * lib/stdint.in.h: Define all type macros so that their expansion is
28571         a single typedef'ed token. Fixes a compilation failure in Boost which
28572         does "using ::int8_t;".
28573
28574 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28575
28576         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
28577         gl_MANYWARN_ALL_GCC.
28578         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
28579         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
28580         * modules/manywarnings: New file.
28581         * MODULES.html.sh: Mention manywarnings module.
28582
28583 2008-11-18  Bruno Haible  <bruno@clisp.org>
28584
28585         * doc/gnulib-tool.texi (Unit tests): New section.
28586
28587 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28588
28589         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
28590         paths like 'lib/po/foo.po'.
28591
28592 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28593
28594         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
28595         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
28596
28597 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28598
28599         * m4/warnings.m4: Use CPPFLAGS to really check whether the
28600         parameter works.
28601
28602 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28603
28604         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
28605
28606 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28607
28608         * modules/parse-duration-tests: New file.
28609         * tests/test-parse-duration.sh: New file.
28610         * tests/test-parse-duration.c: New file.
28611
28612         New module 'parse-duration'.
28613         * lib/parse-duration.h: New file.
28614         * lib/parse-duration.c: New file.
28615         * modules/parse-duration: New file.
28616
28617 2008-11-17  Bruno Haible  <bruno@clisp.org>
28618
28619         * tests/test-select-out.sh: Comment out the first pipe test.
28620         Reported by Simon Josefsson.
28621
28622 2008-11-17  Bruno Haible  <bruno@clisp.org>
28623
28624         * modules/getaddrinfo (Depends-on): Add servent, hostent.
28625         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
28626         gl_HOSTENT.
28627
28628 2008-11-17  Bruno Haible  <bruno@clisp.org>
28629
28630         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
28631         -lnetwork and -lnet. Needed for Haiku and BeOS.
28632
28633 2008-11-16  Bruno Haible  <bruno@clisp.org>
28634
28635         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
28636
28637 2008-11-16  Bruno Haible  <bruno@clisp.org>
28638
28639         Avoid test failure on Haiku.
28640         * tests/test-fsync.c: Include <errno.h>.
28641         (main): Don't require that fsync (0) fails.
28642
28643 2008-11-15  Bruno Haible  <bruno@clisp.org>
28644
28645         New module 'hostent'.
28646         * modules/hostent: New file.
28647         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
28648
28649 2008-11-15  Bruno Haible  <bruno@clisp.org>
28650
28651         New module 'servent'.
28652         * modules/servent: New file.
28653         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
28654
28655 2008-11-15  Bruno Haible  <bruno@clisp.org>
28656
28657         Avoid generating same test program with two different rules.
28658         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
28659         test-frexp to test-frexp-nolibm.
28660         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
28661         test-frexpl to test-frexpl-nolibm.
28662
28663 2008-11-15  Bruno Haible  <bruno@clisp.org>
28664
28665         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
28666         $(FREXPL_LIBM).
28667
28668 2008-11-15  Bruno Haible  <bruno@clisp.org>
28669
28670         * lib/netdb.in.h: Activate the definitions also when the system's
28671         <netdb.h> has 'struct addrinfo'.
28672         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
28673         EAI_OVERFLOW or AI_NUMERICSERV.
28674         * doc/posix-headers/netdb.texi: Document the problem.
28675
28676 2008-11-15  Bruno Haible  <bruno@clisp.org>
28677
28678         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
28679
28680         Make the 'sched' module work on platforms where <sched.h> exists but
28681         is incomplete (such as Haiku).
28682         * lib/sched.in.h; Include the system's <sched.h> if it exists.
28683         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
28684         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
28685         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
28686         HAVE_STRUCT_SCHED_PARAM.
28687         * modules/sched (Depends-on): Add include_next.
28688         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
28689         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
28690         * doc/posix-headers/sched.texi: Document the issue.
28691
28692 2008-11-13  Jim Meyering  <meyering@redhat.com>
28693
28694         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
28695         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
28696         test would fail due to the difference in the Report bugs to ...
28697         line.  The expected address is empty, "<>", while the actual
28698         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
28699
28700 2008-11-12  Bruno Haible  <bruno@clisp.org>
28701
28702         lstat: don't compile lstat.c on systems lacking lstat
28703         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
28704         which don't have lstat; this is handled by lib/sys_stat.in.h already.
28705         Reported by Daniel P. Berrange via Jim Meyering.
28706
28707 2008-11-12  Jim Meyering  <meyering@redhat.com>
28708
28709         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
28710
28711 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28712
28713         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
28714         instead.
28715
28716 2008-11-12  Bruno Haible  <bruno@clisp.org>
28717
28718         * lib/unicodeio.c: Include unistr.h.
28719         (utf8_wctomb): Remove function.
28720         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
28721
28722 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28723
28724         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
28725         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
28726         <bruno@clisp.org>.
28727         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
28728
28729 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28730
28731         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
28732         * doc/gnulib.texi: Add section for warnings.
28733
28734 2008-11-11  Bruno Haible  <bruno@clisp.org>
28735
28736         * lib/sockets.h: Add a comment.
28737
28738 2008-11-11  Karl Berry  <karl@gnu.org>
28739
28740         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
28741
28742 2008-11-11  Eric Blake  <ebb9@byu.net>
28743
28744         fdl.texi: avoid git symlinks
28745         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
28746
28747 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28748
28749         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
28750
28751 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28752
28753         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
28754         (gl_WARN_ADD): Substitute $2 if literal.
28755
28756 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28757
28758         * m4/warning.m4: Remove.
28759
28760 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28761
28762         * m4/warnings.m4: Almost complete rewrite. :-)
28763
28764 2008-11-10  Simon Josefsson  <simon@josefsson.org>
28765
28766         * modules/warnings: New module.
28767         * m4/warnings.m4: New file.
28768         * MODULES.html.sh: Mention warnings module.
28769         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
28770         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28771
28772 2008-11-10  Eric Blake  <ebb9@byu.net>
28773
28774         fdl.texi: make a symlink to the latest version
28775         * doc/standards.texi: Revert today's earlier change.
28776         * doc/fdl-1.2.texi: Rename from old fdl.texi...
28777         * doc/fdl.texi: ...and replace this with a symlink to the newer
28778         fdl-1.3.texi.
28779
28780 2008-11-10  Bruno Haible  <bruno@clisp.org>
28781
28782         * tests/test-select-fd.c (main): Accept the result file name as fourth
28783         argument.
28784         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
28785         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
28786
28787 2008-11-10  Bruno Haible  <bruno@clisp.org>
28788
28789         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
28790         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
28791         as autoconf-substituted macros.
28792         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
28793         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
28794         gl_NETDB_H_DEFAULTS. Set these variables.
28795         * modules/netdb (Makefile.am): Substitute these variables.
28796
28797 2008-11-10  Eric Blake  <ebb9@byu.net>
28798
28799         standards.texi: include correct file for FDL 1.3
28800         * doc/standards.texi (GNU Free Documentation License): Change
28801         include file to pull in FDL 1.3, not 1.2.
28802
28803         fdl.texi: revert accidental change to license
28804         * doc/fdl.texi: This is FDL 1.2, not 1.3.
28805
28806 2008-11-10  Bruno Haible  <bruno@clisp.org>
28807
28808         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
28809         cross-compiling guesses also when the native compile gives no result.
28810
28811 2008-11-10  Bruno Haible  <bruno@clisp.org>
28812
28813         * lib/spawni.c (__spawni): Force variable into the stack.
28814
28815 2008-11-10  Bruno Haible  <bruno@clisp.org>
28816
28817         Add support for Haiku.
28818         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
28819         glibc and BeOS, but also on Haiku.
28820         * lib/fpurge.c (fpurge): Likewise.
28821         * lib/freadable.c (freadable): Likewise.
28822         * lib/freadahead.c (freadahead): Likewise.
28823         * lib/freading.c (freading): Likewise.
28824         * lib/freadptr.c (freadptr): Likewise.
28825         * lib/freadseek.c (freadptrinc): Likewise.
28826         * lib/fseeko.c (rpl_fseeko): Likewise.
28827         * lib/fseterr.c (fseterr): Likewise.
28828         * lib/fwritable.c (fwritable): Likewise.
28829         * lib/fwriting.c (fwriting): Likewise.
28830         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
28831
28832 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28833
28834         * lib/config.charset: Treat Haiku like BeOS.
28835
28836 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28837
28838         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
28839         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
28840
28841 2008-11-08  Bruno Haible  <bruno@clisp.org>
28842
28843         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
28844         AC_CACHE_CHECK.
28845
28846 2008-11-08  Bruno Haible  <bruno@clisp.org>
28847
28848         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
28849
28850 2008-11-08  Bruno Haible  <bruno@clisp.org>
28851
28852         * tests/test-select-fd.c: New file.
28853         * tests/test-select-in.sh: New file.
28854         * tests/test-select-out.sh: New file.
28855         * tests/test-select-stdin.c: New file.
28856         * modules/select-tests (Files): Add the new files.
28857         (Depends-on): Add gettimeofday.
28858         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
28859         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
28860         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
28861
28862 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
28863             Bruno Haible  <bruno@clisp.org>
28864
28865         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
28866
28867 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
28868
28869         * build-aux/pmccabe2html: Added support for C++ source files.
28870
28871 2008-11-05  Ben Pfaff  <blp@gnu.org>
28872
28873         Fix lib/close.c build on Windows.
28874         * modules/close (Files): Add lib/w32sock.h.
28875
28876 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
28877
28878         Accept Bison's NEWS format.
28879         * build-aux/announce-gen (print_news_deltas): Tweak
28880         $re_prefix.
28881
28882 2008-11-04  Bruno Haible  <bruno@clisp.org>
28883
28884         * modules/random_r (Maintainer): Add glibc.
28885
28886 2008-11-04  Simon Josefsson  <simon@josefsson.org>
28887
28888         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
28889         by karl@freefriends.org (Karl Berry).
28890         * doc/alloca.texi: Likewise.
28891         * doc/c-ctype.texi: Likewise.
28892         * doc/c-strcase.texi: Likewise.
28893         * doc/c-strcaseeq.texi: Likewise.
28894         * doc/c-strcasestr.texi: Likewise.
28895         * doc/c-strstr.texi: Likewise.
28896         * doc/c-strtod.texi: Likewise.
28897         * doc/c-strtold.texi: Likewise.
28898         * doc/ctime.texi: Likewise.
28899         * doc/error.texi: Likewise.
28900         * doc/fdl.texi: Likewise.
28901         * doc/gcd.texi: Likewise.
28902         * doc/getdate.texi: Likewise.
28903         * doc/gnulib-intro.texi: Likewise.
28904         * doc/gnulib-tool.texi: Likewise.
28905         * doc/gnulib.texi: Likewise.
28906         * doc/inet_ntoa.texi: Likewise.
28907         * doc/maintain.texi: Likewise.
28908         * doc/make-stds.texi: Likewise.
28909         * doc/quote.texi: Likewise.
28910         * doc/regexprops-generic.texi: Likewise.
28911         * doc/standards.texi: Likewise.
28912         * doc/verify.texi: Likewise.
28913         * doc/visibility.texi: Likewise.
28914         * doc/gnulib.texi (GNU Free Documentation License): Include
28915         fdl-1.3.texi instead of fdl.texi.
28916
28917 2008-11-04  Simon Josefsson  <simon@josefsson.org>
28918
28919         * doc/fdl-1.3.texi: New file, from
28920         <http://www.gnu.org/licenses/fdl-1.3.texi>.
28921         * modules/fdl-1.3: Add.
28922         * MODULES.html.sh: Add fdl-1.3.
28923
28924 2008-11-03  Bruno Haible  <bruno@clisp.org>
28925
28926         Make determination of absolute name of header file work with AIX xlc.
28927         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
28928         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
28929         preprocessing.
28930         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28931         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
28932
28933 2008-11-03  Simon Josefsson  <simon@josefsson.org>
28934
28935         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
28936         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
28937         <ludo@gnu.org>.
28938
28939 2008-11-02  Bruno Haible  <bruno@clisp.org>
28940
28941         Mark 'strpbrk' obsolete.
28942         * modules/strpbrk (Status, Notice): New sections.
28943         * modules/strtok_r (Depends-on): Add strpbrk.
28944
28945 2008-11-02  Bruno Haible  <bruno@clisp.org>
28946
28947         Mark 'strdup' obsolete.
28948         * modules/strdup (Status, Notice): New sections.
28949         * modules/findprog (Depends-on): Add strdup.
28950         * modules/getaddrinfo (Depends-on): Likewise.
28951         * modules/localename (Depends-on): Likewise.
28952         * modules/relocatable-lib (Depends-on): Likewise.
28953         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
28954         * modules/relocatable-prog (Depends-on): Likewise.
28955         * modules/trim (Depends-on): Likewise.
28956         * modules/unictype/gen-ctype (Depends-on): Likewise.
28957         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
28958
28959 2008-11-02  Bruno Haible  <bruno@clisp.org>
28960
28961         Mark 'strcspn' obsolete.
28962         * modules/strcspn (Status, Notice): New sections.
28963
28964 2008-11-02  Bruno Haible  <bruno@clisp.org>
28965
28966         Mark 'rmdir' obsolete.
28967         * modules/rmdir (Status, Notice): New sections.
28968         * modules/clean-temp (Depends-on): Add rmdir.
28969         * modules/openat (Depends-on): Likewise.
28970
28971 2008-11-02  Bruno Haible  <bruno@clisp.org>
28972
28973         Mark 'raise' obsolete.
28974         * modules/raise (Status, Notice): New sections.
28975         (Include): Specify <signal.h>.
28976         * modules/stdio (Depends-on): Add raise.
28977         * modules/write (Depends-on): Likewise.
28978
28979 2008-11-02  Bruno Haible  <bruno@clisp.org>
28980
28981         Mark 'memset' obsolete.
28982         * modules/memset (Status, Notice): New sections.
28983
28984 2008-11-02  Bruno Haible  <bruno@clisp.org>
28985
28986         Mark 'memmove' obsolete.
28987         * modules/memmove (Status, Notice): New sections.
28988         * modules/argp (Depends-on): Add memmove.
28989         * modules/argz (Depends-on): Likewise.
28990         * modules/canonicalize (Depends-on): Likewise.
28991         * modules/canonicalize-lgpl (Depends-on): Likewise.
28992         * modules/fts (Depends-on): Likewise.
28993         * modules/getcwd (Depends-on): Likewise.
28994         * modules/human (Depends-on): Likewise.
28995         * modules/regex (Depends-on): Likewise.
28996         * modules/striconveh (Depends-on): Likewise.
28997         * modules/trim (Depends-on): Likewise.
28998         * modules/unistr/u8-move (Depends-on): Likewise.
28999         * modules/unistr/u16-move (Depends-on): Likewise.
29000         * modules/unistr/u32-move (Depends-on): Likewise.
29001
29002 2008-11-02  Bruno Haible  <bruno@clisp.org>
29003
29004         Mark 'memcpy' obsolete.
29005         * modules/memcpy (Status, Notice): New sections.
29006
29007 2008-11-02  Bruno Haible  <bruno@clisp.org>
29008
29009         Mark 'memcmp' obsolete.
29010         * modules/memcmp (Status, Notice): New sections.
29011         * modules/argmatch (Depends-on): Add memchr.
29012         * modules/backupfile (Depends-on): Likewise.
29013         * modules/c-strcasestr (Depends-on): Likewise.
29014         * modules/crypto/des (Depends-on): Likewise.
29015         * modules/csharpcomp (Depends-on): Likewise.
29016         * modules/fnmatch (Depends-on): Likewise.
29017         * modules/git-merge-changelog (Depends-on): Likewise.
29018         * modules/isnand (Depends-on): Likewise.
29019         * modules/isnand-nolibm (Depends-on): Likewise.
29020         * modules/isnanf (Depends-on): Likewise.
29021         * modules/isnanf-nolibm (Depends-on): Likewise.
29022         * modules/isnanl (Depends-on): Likewise.
29023         * modules/isnanl-nolibm (Depends-on): Likewise.
29024         * modules/mbchar (Depends-on): Likewise.
29025         * modules/memcoll (Depends-on): Likewise.
29026         * modules/quotearg (Depends-on): Likewise.
29027         * modules/regex (Depends-on): Likewise.
29028         * modules/relocatable-prog (Depends-on): Likewise.
29029         * modules/same (Depends-on): Likewise.
29030         * modules/signbit (Depends-on): Likewise.
29031         * modules/strcasestr-simple (Depends-on): Likewise.
29032         * modules/unictype/gen-ctype (Depends-on): Likewise.
29033         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29034         * modules/uniname/uniname (Depends-on): Likewise.
29035         * modules/unistr/u8-cmp (Depends-on): Likewise.
29036
29037 2008-11-02  Bruno Haible  <bruno@clisp.org>
29038
29039         Mark 'memchr' obsolete.
29040         * modules/memchr (Status, Notice): New sections.
29041         * modules/argp (Depends-on): Add memchr.
29042         * modules/base64 (Depends-on): Likewise.
29043         * modules/c-strcasestr (Depends-on): Likewise.
29044         * modules/chdir-long (Depends-on): Likewise.
29045         * modules/fnmatch (Depends-on): Likewise.
29046         * modules/getsubopt (Depends-on): Likewise.
29047         * modules/git-merge-changelog (Depends-on): Likewise.
29048         * modules/glob (Depends-on): Likewise.
29049         * modules/strcasestr-simple (Depends-on): Likewise.
29050         * modules/strnlen (Depends-on): Likewise.
29051
29052 2008-11-02  Bruno Haible  <bruno@clisp.org>
29053
29054         Mark 'atexit' obsolete.
29055         * modules/atexit (Status, Notice): New sections.
29056         * modules/chdir-long (Depends-on): Add atexit.
29057         * modules/wait-process (Depends-on): Likewise.
29058
29059 2008-11-02  Bruno Haible  <bruno@clisp.org>
29060
29061         * gnulib-tool: New option --with-obsolete.
29062         (func_usage): Document it.
29063         (func_modules_transitive_closure): Drop obsolete dependencies if
29064         incobsolete is not true.
29065         (func_import): Read and save the incobsolete variable to the cache.
29066
29067 2008-11-02  Bruno Haible  <bruno@clisp.org>
29068
29069         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29070         * gnulib-tool: New option --extract-status.
29071         (func_usage): Document it.
29072         (sed_extract_prog): Recognize it.
29073         (func_get_status): New function.
29074
29075 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29076
29077         * modules/sockets (License): Change from LGPL to LGPLv2+.
29078
29079 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29080
29081         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29082
29083 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29084
29085         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29086         Mention times and sys_times.
29087         * modules/sys_times, modules/sys_times-tests: New modules.
29088         * modules/times, modules/times-tests: Likewise
29089         * m4/sys_times_h.m4: New file.
29090         * lib/sys_times.in.h: Likewise
29091         * lib/times.c: Likewise.
29092         * tests/test-sys_times.c: Likewise.
29093         * tests/test-times.c: Likewise.
29094         * doc/posix-headers/sys_times.texi: Update.
29095         * doc/posix-functions/times.texi: Update.
29096
29097 2008-10-28  Jim Meyering  <meyering@redhat.com>
29098
29099         * modules/tempname (Depends-on): Add lstat.
29100
29101         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29102
29103 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29104
29105         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29106         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29107         using idiom used elsewhere in gnulib.
29108
29109 2008-10-27  Jim Meyering  <meyering@redhat.com>
29110
29111         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29112
29113 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29114
29115         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29116         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29117         programs.
29118         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29119
29120 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29121
29122         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29123
29124 2008-10-27  Bruno Haible  <bruno@clisp.org>
29125
29126         * tests/test-lstat.c: Include <stdio.h>.
29127
29128 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29129
29130         * modules/lstat-tests: New module.
29131         * tests/test-lstat.c: New file.
29132
29133 2008-10-26  Jim Meyering  <meyering@redhat.com>
29134
29135         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29136
29137 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29138             Bruno Haible  <bruno@clisp.org>
29139
29140         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29141         * modules/configmake (Include): Add a note that the include must come
29142         after all system headers.
29143         * lib/javaversion.c: Include configmake.h after all other includes.
29144
29145 2008-10-26  Bruno Haible  <bruno@clisp.org>
29146
29147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29148         HAVE_STRUCT_RANDOM_DATA to 1.
29149         (gl_STDLIB_H): Simplify.
29150
29151 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29152
29153         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29154         substitute HAVE_STRUCT_RANDOM_DATA.
29155         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29156         random_data.
29157         * modules/stdlib (Makefile.am): Substitute
29158         HAVE_STRUCT_RANDOM_DATA.
29159
29160 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29161
29162         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29163         * doc/gnulib-intro.texi (Copyright): Likewise.
29164
29165 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29166
29167         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29168         findings.
29169
29170 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29171             Bruno Haible  <bruno@clisp.org>
29172
29173         * lib/unistd.in.h: Include <winsock2.h>.
29174         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29175         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29176         Provide dummy declarations.
29177         (gethostname): Override.
29178         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29179         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29180         gl_PREREQ_SYS_H_WINSOCK2.
29181         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29182         * doc/posix-functions/gethostname.texi: More details.
29183
29184 2008-10-25  Bruno Haible  <bruno@clisp.org>
29185
29186         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29187         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29188         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29189
29190         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29191         here ...
29192         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29194         gl_UNISTD_H_DEFAULTS.
29195
29196 2008-10-25  Eric Blake  <ebb9@byu.net>
29197
29198         signbit: avoid spurious compiler failure
29199         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29200         declarations inside function.
29201
29202 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29203             Bruno Haible  <bruno@clisp.org>
29204
29205         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29206         * modules/random_r (Depends-on): Add stdint.
29207
29208 2008-10-24  Bruno Haible  <bruno@clisp.org>
29209
29210         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29211         Eggert.
29212         * modules/strerror (License): Likewise.
29213
29214 2008-10-24  Jim Meyering  <meyering@redhat.com>
29215
29216         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29217         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29218
29219 2008-10-24  Eric Blake  <ebb9@byu.net>
29220
29221         getgroups: fix compilation when getgroups is available
29222         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29223         but with <config.h> override of getgroups disabled.
29224
29225 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29226
29227         * doc/gnulib.texi (Header files): Add note about C++ problems.
29228         Explained by Bruno Haible <bruno@clisp.org>.
29229
29230 2008-10-23  Bruno Haible  <bruno@clisp.org>
29231
29232         Define a dummy SA_NODEFER macro on Interix.
29233         * lib/signal.in.h (SA_NODEFER): Define fallback.
29234         Reported by Aleksey Cheusov <cheusov@tut.by> via
29235         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29236
29237 2008-10-23  Bruno Haible  <bruno@clisp.org>
29238
29239         * modules/freadahead (License): Change to LGPLv2+.
29240         Suggested by Simon Josefsson.
29241
29242 2008-10-23  Jim Meyering  <meyering@redhat.com>
29243
29244         random_r: new module
29245         * modules/random_r: New file.
29246         * m4/random_r.m4: New file.
29247         * lib/random_r.c: New file, from glibc.
29248         * modules/random_r-tests: New file.
29249         * tests/test-random_r.c: New file.
29250         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29251          Declare.
29252         (RAND_MAX): Define.
29253         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29254         * modules/stdlib: Substitute them, too.
29255         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29256         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29257         * doc/glibc-functions/random_r.texi: Likewise.
29258         * doc/glibc-functions/setstate_r.texi: Likewise.
29259         * doc/glibc-functions/srandom_r.texi: Likewise.
29260         * config/srclist.txt: Mention it.
29261
29262 2008-10-23  David Lutterkort  <lutter@redhat.com>
29263
29264         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29265         link requirement
29266
29267 2008-10-23  Jim Meyering  <meyering@redhat.com>
29268
29269         selinux-h: mark parameters of stub functions as intentionally unused
29270         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29271         * lib/se-context.in.h: Likewise.
29272
29273 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29274
29275         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29276
29277 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29278
29279         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29280
29281 2008-10-22  Eric Blake  <ebb9@byu.net>
29282
29283         glthread/thread: avoid compiler warning
29284         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29285         Add unreachable abort to silence compiler.
29286
29287 2008-10-22  Eric Blake  <ebb9@byu.net>
29288
29289         netdb: also supply struct addrinfo for cygwin 1.5.x
29290         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29291         older cygwin.
29292         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29293         cygwin.
29294         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29295
29296 2008-10-22  Bruno Haible  <bruno@clisp.org>
29297
29298         * users.txt: Update entry about pspp.
29299
29300 2008-10-21  Bruno Haible  <bruno@clisp.org>
29301
29302         Simplification.
29303         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29304         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29305
29306         Simplification.
29307         * lib/ioctl.c (ioctl): Don't undefine.
29308         * lib/socket.c (socket): Don't undefine.
29309
29310         Remove unused module indicator macros.
29311         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29312         GNULIB_$1 as a C macro.
29313
29314         * doc/posix-functions/close.texi: Undo last change.
29315         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29316         Windows platforms.
29317
29318 2008-10-21  Bruno Haible  <bruno@clisp.org>
29319
29320         Add gethostname() declaration to <unistd.h>.
29321         * lib/unistd.in.h (gethostname): New declaration.
29322         * lib/gethostname.c: Include <unistd.h>.
29323         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29324         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29326         and HAVE_GETHOSTNAME.
29327         * modules/gethostname (Depends-on): Add unistd.
29328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29329         (Include): Specify <unistd.h>.
29330         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29331         HAVE_GETHOSTNAME.
29332         * tests/test-gethostname.c: Include <unistd.h> first.
29333
29334 2008-10-21  Bruno Haible  <bruno@clisp.org>
29335
29336         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29337         * modules/select-tests (Depends-on): Likewise.
29338         Reported by Simon Josefsson.
29339
29340 2008-10-21  Simon Josefsson  <simon@josefsson.org>
29341
29342         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
29343         * lib/accept.c: New file, based on winsock.c.
29344         * lib/bind.c: New file, based on winsock.c.
29345         * lib/connect.c: New file, based on winsock.c.
29346         * lib/getpeername.c: New file, based on winsock.c.
29347         * lib/getsockname.c: New file, based on winsock.c.
29348         * lib/getsockopt.c: New file, based on winsock.c.
29349         * lib/ioctl.c: New file, based on winsock.c.
29350         * lib/listen.c: New file, based on winsock.c.
29351         * lib/recv.c: New file, based on winsock.c.
29352         * lib/recvfrom.c: New file, based on winsock.c.
29353         * lib/send.c: New file, based on winsock.c.
29354         * lib/sendto.c: New file, based on winsock.c.
29355         * lib/setsockopt.c: New file, based on winsock.c.
29356         * lib/shutdown.c: New file, based on winsock.c.
29357         * lib/socket.c: New file, based on winsock.c.
29358         * lib/w32sock.h: New file, based on winsock.c.
29359         * lib/winsock.c: Remove file.
29360         * modules/accept: Likewise.
29361         * modules/bind: Likewise.
29362         * modules/connect: Likewise.
29363         * modules/getpeername: Likewise.
29364         * modules/getsockname: Likewise.
29365         * modules/getsockopt: Likewise.
29366         * modules/ioctl: Likewise.
29367         * modules/listen: Likewise.
29368         * modules/recv: Likewise.
29369         * modules/recvfrom: Likewise.
29370         * modules/send: Likewise.
29371         * modules/sendto: Likewise.
29372         * modules/setsockopt: Likewise.
29373         * modules/shutdown: Likewise.
29374         * modules/socket: Use socket.c instead of winsock.c.
29375         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29376         * doc/posix-functions/accept.texi: Doc fix.
29377         * doc/posix-functions/bind.texi: Doc fix.
29378         * doc/posix-functions/close.texi: Doc fix.
29379         * doc/posix-functions/connect.texi: Doc fix.
29380         * doc/posix-functions/getpeername.texi: Doc fix.
29381         * doc/posix-functions/getsockname.texi: Doc fix.
29382         * doc/posix-functions/getsockopt.texi: Doc fix.
29383         * doc/posix-functions/ioctl.texi: Doc fix.
29384         * doc/posix-functions/listen.texi: Doc fix.
29385         * doc/posix-functions/recv.texi: Doc fix.
29386         * doc/posix-functions/recvfrom.texi: Doc fix.
29387         * doc/posix-functions/send.texi: Doc fix.
29388         * doc/posix-functions/sendto.texi: Doc fix.
29389         * doc/posix-functions/setsockopt.texi: Doc fix.
29390         * doc/posix-functions/shutdown.texi: Doc fix.
29391         * doc/posix-functions/socket.texi: Doc fix.
29392
29393 2008-10-20  Bruno Haible  <bruno@clisp.org>
29394
29395         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29396         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29397         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29398         as an alias for SIGABRT.
29399         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29400         (sigaction): Map it to SIGABRT.
29401         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29402
29403 2008-10-20  Bruno Haible  <bruno@clisp.org>
29404
29405         * lib/fts.c: Don't include lstat.h.
29406         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29407
29408         Move the lstat() declaration to <sys/stat.h>.
29409         * lib/lstat.h: Remove file.
29410         * lib/sys_stat.in.h: Add special invocation convention.
29411         (lstat): New declaration.
29412         * lib/lstat.c (orig_lstat): New function.
29413         (rpl_lstat): Use orig_lstat instead of lstat.
29414         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
29415         AC_C_INLINE. Set REPLACE_LSTAT.
29416         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
29417         and REPLACE_LSTAT.
29418         * modules/lstat (Files): Remove lib/lstat.h.
29419         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29420         (Include): Specify <sys/stat.h> instead of lstat.h.
29421         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
29422         REPLACE_LSTAT.
29423         * NEWS: Mention the change.
29424
29425 2008-10-20  Bruno Haible  <bruno@clisp.org>
29426
29427         * modules/posix_spawn-tests: New file.
29428         * tests/test-posix_spawn3.c: New file.
29429
29430 2008-10-20  Bruno Haible  <bruno@clisp.org>
29431
29432         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
29433         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29434         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
29435         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29436         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
29437
29438 2008-10-20  Bruno Haible  <bruno@clisp.org>
29439
29440         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
29441         of posix_spawn on AIX 5.3.
29442
29443 2008-10-20  Bruno Haible  <bruno@clisp.org>
29444
29445         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
29446
29447 2008-10-20  Bruno Haible  <bruno@clisp.org>
29448
29449         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
29450         of AC_LANG_PROGRAM.
29451
29452 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29453
29454         * lib/netdb.in.h: Don't define GNU specific constants until they
29455         are supported or needed.  Reported by Bruno Haible
29456         <bruno@clisp.org>.
29457
29458 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29459
29460         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
29461
29462 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29463
29464         * lib/getaddrinfo.h: Remove file.
29465         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
29466         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
29467         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
29468         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
29469         * modules/netdb: Substitute GNULIB_GETADDRINFO.
29470         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
29471         * tests/test-getaddrinfo.c: Likewise.
29472         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
29473         * NEWS: Mention change.
29474
29475 2008-10-19  Bruno Haible  <bruno@clisp.org>
29476
29477         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
29478
29479 2008-10-19  Bruno Haible  <bruno@clisp.org>
29480
29481         * lib/wait-process.c: Include simply <sys/wait.h>.
29482         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
29483         WIFSTOPPED): Remove fallback definitions.
29484         * modules/wait-process (Depends-on): Add sys_wait.
29485
29486         New module 'sys_wait'.
29487         * modules/sys_wait: New file.
29488         * lib/sys_wait.in.h: New file, partially copied from
29489         lib/wait-process.c.
29490         * m4/sys_wait_h.m4: New file.
29491         * doc/posix-headers/sys_wait.texi: Mention the new module.
29492
29493 2008-10-19  Bruno Haible  <bruno@clisp.org>
29494
29495         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
29496
29497 2008-10-19  Bruno Haible  <bruno@clisp.org>
29498
29499         Assume that waitpid() fills an 'int' status, not a 'union wait'.
29500         * lib/wait-process.c (WAIT_T): Remove type.
29501         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
29502         (wait_subprocess): Update.
29503
29504 2008-10-19  Bruno Haible  <bruno@clisp.org>
29505
29506         New module 'atoll'.
29507         * modules/atoll: New file.
29508         * lib/stdlib.in.h (atoll): New declaration.
29509         * lib/atoll.c: New file, from glibc with modifications.
29510         * m4/atoll.m4: New file.
29511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29512         HAVE_ATOLL.
29513         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
29514         * doc/posix-functions/atoll.texi: Mention the new module.
29515
29516 2008-10-19  Bruno Haible  <bruno@clisp.org>
29517
29518         Add strtoull() declaration to <stdlib.h>.
29519         * lib/stdlib.in.h (strtoull): New declaration.
29520         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29521         Set HAVE_STRTOULL.
29522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
29523         HAVE_STRTOULL.
29524         * modules/strtoull (Depends-on): Add stdlib.
29525         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29526         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
29527         HAVE_STRTOULL.
29528
29529 2008-10-19  Bruno Haible  <bruno@clisp.org>
29530
29531         Add strtoll() declaration to <stdlib.h>.
29532         * lib/stdlib.in.h (strtoll): New declaration.
29533         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29534         Set HAVE_STRTOLL.
29535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
29536         HAVE_STRTOLL.
29537         * modules/strtoll (Depends-on): Add stdlib.
29538         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29539         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
29540
29541 2008-10-19  Bruno Haible  <bruno@clisp.org>
29542
29543         * modules/bcopy (Depends-on): Add strings.
29544         (Include): Specify <strings.h>.
29545
29546 2008-10-19  Bruno Haible  <bruno@clisp.org>
29547
29548         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
29549
29550 2008-10-19  Bruno Haible  <bruno@clisp.org>
29551
29552         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
29553         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
29554         mingw.
29555
29556 2008-10-19  Bruno Haible  <bruno@clisp.org>
29557
29558         * lib/atanl.c: Don't include isnanl.h.
29559         * lib/cosl.c: Likewise.
29560         * lib/ldexpl.c: Likewise.
29561         * lib/logl.c: Likewise.
29562         * lib/sinl.c: Likewise.
29563         * lib/sqrtl.c: Likewise.
29564         * lib/tanl.c: Likewise.
29565
29566         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
29567         * lib/isnanf.h: Remove file.
29568         * lib/isnand.h: Remove file.
29569         * lib/isnanl.h: Remove file.
29570         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
29571         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
29572         macros.
29573         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
29574         HAVE_ISNANF, don't define it as a C macro.
29575         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
29576         HAVE_ISNAND, don't define it as a C macro.
29577         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
29578         HAVE_ISNANL, don't define it as a C macro.
29579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
29580         HAVE_ISNAN[FDL].
29581         * modules/isnanf (Files): Remove lib/isnanf.h.
29582         (Depends-on): Add math.
29583         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29584         (Include): Specify <math.h> instead of isnanf.h.
29585         * modules/isnand (Files): Remove lib/isnand.h.
29586         (Depends-on): Add math.
29587         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29588         (Include): Specify <math.h> instead of isnand.h.
29589         * modules/isnanl (Files): Remove lib/isnanl.h.
29590         (Depends-on): Add math.
29591         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29592         (Include): Specify <math.h> instead of isnanl.h.
29593         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
29594         HAVE_ISNAN[FDL].
29595         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
29596         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
29597         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
29598         * NEWS: Mention the change.
29599
29600 2008-10-18  Bruno Haible  <bruno@clisp.org>
29601
29602         Add getusershell(), setusershell(), endusershell() declarations to
29603         <unistd.h>.
29604         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
29605         declarations.
29606         * lib/getusershell.c: Include unistd.h.
29607         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
29608         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29609         HAVE_GETUSERSHELL.
29610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
29611         and HAVE_GETUSERSHELL.
29612         * modules/getusershell (Depends-on): Add unistd, extensions.
29613         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29614         (Include): Specify <unistd.h>.
29615         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
29616         HAVE_GETUSERSHELL.
29617
29618 2008-10-18  Bruno Haible  <bruno@clisp.org>
29619
29620         Add a getloadavg() declaration to <stdlib.h>.
29621         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
29622         getloadavg declaration.
29623         (getloadavg): New declaration.
29624         * lib/getloadavg.c: Include <stdlib.h> first.
29625         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
29626         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
29627         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
29628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
29629         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29630         * modules/getloadavg (Depends-on): Add stdlib, extensions.
29631         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29632         (Include): Specify <stdlib.h>.
29633         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
29634         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29635
29636 2008-10-18  Bruno Haible  <bruno@clisp.org>
29637
29638         * lib/dirchownmod.c: Don't include lchmod.h.
29639
29640         Move the lchmod() declaration to <sys/stat.h>.
29641         * lib/lchmod.h: Remove file.
29642         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
29643         (lchmod): New declaration, moved here from lib/lchown.h.
29644         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
29645         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
29646         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
29647         and HAVE_LCHMOD.
29648         * modules/lchmod (Files): Remove lib/lchmod.h.
29649         (Depends-on): Add sys_stat, extensions.
29650         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29651         (Include): Specify <sys/stat.h> instead of lchmod.h.
29652         * modules/sys_stat (Depends-on): Add link-warning.
29653         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
29654         definition of GL_LINK_WARNING.
29655         * NEWS: Mention the change.
29656
29657 2008-10-18  Bruno Haible  <bruno@clisp.org>
29658
29659         * lib/fchdir.c: Don't include dirfd.h.
29660         * lib/fts.c: Likewise.
29661         * lib/getcwd.c: Likewise.
29662         * lib/glob.c: Likewise.
29663
29664         Move the dirfd() declaration to <dirent.h>.
29665         * lib/dirfd.h: Remove file.
29666         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
29667         (dirfd): New declaration.
29668         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
29669         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
29670         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
29671         HAVE_DECL_DIRFD.
29672         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
29673         HAVE_DECL_DIRFD.
29674         * modules/dirfd (Files): Remove lib/dirfd.h.
29675         (Depends-on): Add dirent, extensions.
29676         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
29677         (Include): Specify <dirent.h> instead of dirfd.h.
29678         * modules/dirent (Depends-on): Add link-warning.
29679         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
29680         definition of GL_LINK_WARNING.
29681         * NEWS: Mention the change.
29682
29683 2008-10-18  Bruno Haible  <bruno@clisp.org>
29684
29685         Move the euidaccess() declaration to <unistd.h>.
29686         * lib/euidaccess.h: Remove file.
29687         * lib/unistd.in.h (euidaccess): New declaration.
29688         * lib/euidaccess.c: Don't include euidaccess.h.
29689         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
29690         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
29691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
29692         and HAVE_EUIDACCESS.
29693         * modules/euidaccess (Files): Remove lib/euidaccess.h.
29694         (Depends-on): Add unistd.
29695         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29696         (Include): Specify <unistd.h> instead of euidaccess.h.
29697         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
29698         HAVE_EUIDACCESS.
29699         * NEWS: Mention the change.
29700
29701 2008-10-18  Bruno Haible  <bruno@clisp.org>
29702
29703         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
29704
29705         Move the getdomainname() declaration to <unistd.h>.
29706         * lib/getdomainname.h: Remove file.
29707         * lib/unistd.in.h (getdomainname): New declaration.
29708         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
29709         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29710         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29711         HAVE_GETDOMAINNAME.
29712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29713         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
29714         * modules/getdomainname (Files): Remove lib/getdomainname.h.
29715         (Depends-on): Add unistd, extensions.
29716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29717         (Includes): Specify <unistd.h> instead of getdomainname.h.
29718         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
29719         HAVE_GETDOMAINNAME.
29720         * NEWS: Mention the change.
29721
29722 2008-10-18  Bruno Haible  <bruno@clisp.org>
29723
29724         * modules/dirent: New file.
29725         * m4/dirent_h.m4: New file.
29726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
29727         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
29728         * modules/fchdir (Files): Remove lib/dirent.in.h.
29729         (Depends-on): Add dirent.
29730         (Makefile.am): Move rules to modules/dirent.
29731         * doc/posix-headers/dirent.texi: Mention the new module.
29732
29733 2008-10-18  Bruno Haible  <bruno@clisp.org>
29734
29735         Avoid -Wunused-parameter warnings in public gnulib header files.
29736         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
29737         macro.
29738         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
29739
29740 2008-10-18  Bruno Haible  <bruno@clisp.org>
29741
29742         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
29743         * doc/glibc-functions/error.texi: Mention the module 'error'.
29744         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
29745         * doc/glibc-functions/getdomainname.texi: Mention the module
29746         'getdomainname'.
29747         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
29748         * doc/glibc-functions/getpagesize.texi: Mention the module
29749         'getpagesize'.
29750         * doc/glibc-functions/getusershell.texi: Mention the module
29751         'getusershell'.
29752         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
29753         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
29754         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
29755         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
29756         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
29757         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
29758         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
29759         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
29760         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
29761         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
29762         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
29763         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
29764         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
29765         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
29766
29767 2008-10-17  Bruno Haible  <bruno@clisp.org>
29768
29769         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
29770         HP-UX and IRIX, use -0.0L.
29771         * tests/test-ceill.c (minus_zero): Likewise.
29772         * tests/test-floorl.c (minus_zero): Likewise.
29773         * tests/test-frexpl.c (minus_zero): Likewise.
29774         * tests/test-isnan.c (minus_zerol): Likewise.
29775         * tests/test-isnanl.h (minus_zero): Likewise.
29776         * tests/test-ldexpl.c (minus_zero): Likewise.
29777         * tests/test-roundl.c (minus_zero): Likewise.
29778         * tests/test-signbit.c (minus_zerol): Likewise.
29779         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29780         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29781         * tests/test-truncl.c (minus_zero): Likewise.
29782         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29783         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29784         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
29785         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29786
29787 2008-10-17  Bruno Haible  <bruno@clisp.org>
29788
29789         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
29790         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
29791         that it gets activated only for gcc >= 3.0.
29792         * lib/dirent.in.h: Likewise.
29793         * lib/errno.in.h: Likewise.
29794         * lib/fcntl.in.h: Likewise.
29795         * lib/float.in.h: Likewise.
29796         * lib/iconv.in.h: Likewise.
29797         * lib/inttypes.in.h: Likewise.
29798         * lib/locale.in.h: Likewise.
29799         * lib/math.in.h: Likewise.
29800         * lib/netdb.in.h: Likewise.
29801         * lib/netinet_in.in.h: Likewise.
29802         * lib/search.in.h: Likewise.
29803         * lib/signal.in.h: Likewise.
29804         * lib/spawn.in.h: Likewise.
29805         * lib/stdarg.in.h: Likewise.
29806         * lib/stdint.in.h: Likewise.
29807         * lib/stdio.in.h: Likewise.
29808         * lib/stdlib.in.h: Likewise.
29809         * lib/string.in.h: Likewise.
29810         * lib/strings.in.h: Likewise.
29811         * lib/sys_file.in.h: Likewise.
29812         * lib/sys_ioctl.in.h: Likewise.
29813         * lib/sys_select.in.h: Likewise.
29814         * lib/sys_socket.in.h: Likewise.
29815         * lib/sys_stat.in.h: Likewise.
29816         * lib/sys_time.in.h: Likewise.
29817         * lib/sysexits.in.h: Likewise.
29818         * lib/time.in.h: Likewise.
29819         * lib/unistd.in.h: Likewise.
29820         * lib/wchar.in.h: Likewise.
29821         * lib/wctype.in.h: Likewise.
29822         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29823
29824 2008-10-17  Jim Meyering  <meyering@redhat.com>
29825
29826         ignore-value: don't depend on inline module
29827         * modules/ignore-value (Depends-on): Remove 'inline'.
29828         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
29829         Suggestion from Bruno Haible.
29830
29831 2008-10-17  Bruno Haible  <bruno@clisp.org>
29832
29833         New implementation of condition variables for Win32.
29834         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
29835         (gl_linked_waitqueue_t): New type.
29836         (gl_cond_t): Use it.
29837         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
29838         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
29839         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
29840         (glthread_cond_init_func, glthread_cond_wait_func,
29841         glthread_cond_timedwait_func, glthread_cond_signal_func,
29842         glthread_cond_broadcast_func, glthread_cond_destroy_func):
29843         Reimplemented on the basis of gl_linked_waitqueue_t.
29844         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
29845         gl_waitqueue_t.
29846         (gl_rwlock_t): Update.
29847         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
29848
29849 2008-10-17  Simon Josefsson  <simon@josefsson.org>
29850
29851         * modules/recvfrom (Depends-on): Add dependency on getpeername.
29852         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29853
29854 2008-10-17  Jim Meyering  <meyering@redhat.com>
29855
29856         ignore-value: new module
29857         * modules/ignore-value: New file.
29858         * lib/ignore-value.h: New file.
29859         * MODULES.html.sh (Compiler warning management): New section,
29860         just for this module.  More to come.
29861
29862 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29863
29864         open-safer.c: avoid 'signed and unsigned in conditional...' warning
29865         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
29866         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
29867
29868 2008-10-16  Jim Meyering  <meyering@redhat.com>
29869
29870         openat-die.c: avoid 'no previous prototype' warning
29871         * lib/openat-die.c: Include "openat.h".
29872         Reported by Reuben Thomas <rrt@sc3d.org>.
29873
29874 2008-10-16  Simon Josefsson  <simon@josefsson.org>
29875
29876         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
29877         * lib/netdb.in.h: Fix typo.
29878         Reported by Bruno Haible  <bruno@clisp.org>
29879
29880         * lib/netdb.in.h: Include sys/socket.h for platforms without
29881         netdb.h, to get structures like hostent on MinGW.
29882         * modules/netdb (Depends-on): Add sys_socket.
29883
29884 2008-10-15  Simon Josefsson  <simon@josefsson.org>
29885
29886         * modules/netdb, modules/netdb-tests: New file.
29887         * m4/netdb_h.m4: New file.
29888         * lib/netdb.in.h: Add, currently just an empty file pending
29889         definitions.
29890         * tests/test-netdb.c: New file.
29891         * doc/posix-headers/netdb.texi: Mention that we replace it if
29892         needed.
29893         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29894         netdb.
29895
29896 2008-10-15  Simon Josefsson  <simon@josefsson.org>
29897
29898         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
29899         with code.
29900
29901 2008-10-13  Bruno Haible  <bruno@clisp.org>
29902
29903         * lib/glthread/cond.c (glthread_cond_wait_func,
29904         glthread_cond_timedwait_func): Add a comment.
29905
29906 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29907
29908         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
29909         * tests/test-select.c: Likewise,
29910
29911 2008-10-13  Bruno Haible  <bruno@clisp.org>
29912
29913         * lib/glthread/cond.c (glthread_cond_wait_func,
29914         glthread_cond_timedwait_func): Fix variable name.
29915         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29916
29917 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
29918
29919         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
29920         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
29921         struct sockaddr.sa_len.
29922         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
29923
29924 2008-10-13  Simon Josefsson  <simon@josefsson.org>
29925
29926         * build-aux/pmccabe2html: Add css and css_url parameters.
29927
29928 2008-10-12  Bruno Haible  <bruno@clisp.org>
29929
29930         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
29931         calling aclx_get.
29932         Reported by Rainer Tammer <tammer@tammer.net>.
29933
29934 2008-10-12  Bruno Haible  <bruno@clisp.org>
29935
29936         Use msvcrt aware primitives for creation/termination of Win32 threads.
29937         * lib/glthread/thread.c: Include <process.h>.
29938         (glthread_create_func): Use _beginthreadex instead of CreateThread.
29939         (wrapper_func): Update signature.
29940         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
29941
29942 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29943             Bruno Haible  <bruno@clisp.org>
29944
29945         Provide a Win32 implementation of the 'cond' module.
29946         * lib/glthread/cond.h [USE_WIN32]: New implementation.
29947         * lib/glthread/cond.c (glthread_cond_init_func,
29948         glthread_cond_wait_func, glthread_cond_timedwait_func,
29949         glthread_cond_signal_func, glthread_cond_broadcast_func,
29950         glthread_cond_destroy_func) [USE_WIN32]: New functions.
29951         * modules/cond (Dependencies): Add gettimeofday.
29952
29953 2008-10-11  Bruno Haible  <bruno@clisp.org>
29954
29955         Make sleep work on older versions of mingw.
29956         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
29957         only whether it exists.
29958         * doc/posix-functions/sleep.texi: Mention the problem with older
29959         versions of mingw.
29960
29961 2008-10-11  Bruno Haible  <bruno@clisp.org>
29962
29963         New module 'shutdown'.
29964         * modules/shutdown: New file.
29965         * lib/sys_socket.in.h (shutdown): New declaration.
29966         * lib/winsock.c (shutdown): New function.
29967         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29968         GNULIB_SHUTDOWN.
29969         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
29970         * doc/posix-functions/shutdown.texi: Document the new module.
29971
29972 2008-10-11  Jim Meyering  <meyering@redhat.com>
29973
29974         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
29975
29976 2008-10-11  Bruno Haible  <bruno@clisp.org>
29977
29978         New module 'fclose'.
29979         * modules/fclose: New file.
29980         * lib/stdio.in.h (fclose): New declaration.
29981         * lib/fclose.c: New file.
29982         * m4/fclose.m4: New file.
29983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
29984         REPLACE_FCLOSE.
29985         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
29986         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
29987         REPLACE_FCLOSE.
29988         * modules/close (Depends-on): fclose.
29989         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
29990
29991 2008-10-11  Bruno Haible  <bruno@clisp.org>
29992
29993         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
29994         set errno and don't call _close.
29995
29996 2008-10-10  Bruno Haible  <bruno@clisp.org>
29997
29998         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
29999         ACL, not afterwards. Fixes test failure on Cygwin.
30000
30001 2008-10-09  Ben Pfaff  <blp@gnu.org>
30002
30003         * build-aux/announce-gen: Fix gnulib version related part of usage
30004         message.  Die with a useful error message if no tarballs are
30005         found.
30006
30007 2008-10-10  Jim Meyering  <meyering@redhat.com>
30008
30009         bootstrap: use git's --depth=N option only if it's supported
30010         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30011         recognize the --depth option.  Reported by Pádraig Brady.
30012
30013 2008-10-09  Bruno Haible  <bruno@clisp.org>
30014
30015         New module 'ioctl'.
30016         * modules/ioctl: New file.
30017         * lib/sys_socket.in.h (ioctl): Remove declaration.
30018         * lib/winsock.c: Include <sys/ioctl.h>.
30019         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30020         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30021         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30022         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30023         * doc/posix-functions/ioctl.texi: Mention the new module.
30024
30025 2008-10-09  Bruno Haible  <bruno@clisp.org>
30026
30027         New module 'sys_ioctl'.
30028         * lib/sys_ioctl.in.h: New file.
30029         * m4/sys_ioctl_h.m4: New file.
30030         * modules/sys_ioctl: New file.
30031         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30032
30033 2008-10-09  Bruno Haible  <bruno@clisp.org>
30034
30035         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30036         * lib/winsock.c: Include <stdarg.h>.
30037         (rpl_ioctl): Change to second argument 'int' and then varargs.
30038
30039 2008-10-09  Bruno Haible  <bruno@clisp.org>
30040
30041         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30042         when the sys_socket module is present and the system has <winsock2.h>.
30043
30044 2008-10-09  Bruno Haible  <bruno@clisp.org>
30045
30046         * doc/posix-functions/close.texi: Mention module 'close' instead of
30047         module 'sys_socket'.
30048
30049 2008-10-09  Bruno Haible  <bruno@clisp.org>
30050
30051         * doc/glibc-headers/sys_ioctl.texi: New file.
30052         * doc/gnulib.texi: Include it.
30053
30054 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30055             Bruno Haible  <bruno@clisp.org>
30056
30057         Combine the two replacements of 'close'.
30058         * lib/sys_socket.in.h (close): Define to a reminder to include
30059         <unistd.h>.
30060         (_gl_close_fd_maybe_socket): New declaration.
30061         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30062         * lib/winsock.c (close): Remove undefinition.
30063         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30064         needed for the gnulib module 'close'.
30065         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30066         define to an error symbol or to a warning, if suitable.
30067         * lib/close.c: Include <sys/socket.h>.
30068         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30069         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30070         UNISTD_H_HAVE_WINSOCK2_H.
30071         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30073         UNISTD_H_HAVE_WINSOCK2_H.
30074         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30075         (configure.ac): Set a module indicator.
30076         (Makefile.am): Substitute GNULIB_CLOSE.
30077         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30078         * modules/poll-tests (Depends-on): Add close.
30079         * modules/select-tests (Depends-on): Likewise.
30080
30081 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30082             Bruno Haible  <bruno@clisp.org>
30083
30084         New module 'close'.
30085         * modules/close: New file.
30086         * lib/unistd.in.h (close): Move declaration out of the
30087         FCHDIR_REPLACEMENT scope.
30088         (_gl_unregister_fd): New declaration.
30089         * lib/close.c: New file.
30090         * lib/fchdir.c (rpl_close): Remove function.
30091         * m4/close.m4: New file.
30092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30093         close.
30094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30095         REPLACE_CLOSE.
30096         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30097         REPLACE_CLOSE.
30098         * modules/fchdir (Depends-on): Add close.
30099
30100 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30101             Bruno Haible  <bruno@clisp.org>
30102
30103         * lib/fcntl.in.h (open): Simplify conditionals.
30104         (_gl_register_fd): New declaration.
30105         * lib/fchdir.c (rpl_open): Remove function.
30106         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30107         also.
30108         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30110         open.
30111
30112 2008-10-09  Jim Meyering  <meyering@redhat.com>
30113
30114         GNUmakefile: use the more name-space-friendly "_version"
30115         * top/GNUmakefile (_dummy): Update.
30116         (_version): Rename from "version".
30117
30118 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30119             Bruno Haible  <bruno@clisp.org>
30120
30121         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30122         rpl_close.
30123         (_gl_register_fd): New function, extracted from rpl_open.
30124         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30125         (rpl_open, rpl_opendir): Use _gl_register_fd.
30126
30127 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30128
30129         Fix organization of 'open' replacement.
30130         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30131         (gl_FUNC_OPEN): Use it.
30132         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30133
30134 2008-10-08  Bruno Haible  <bruno@clisp.org>
30135
30136         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30137
30138 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30139
30140         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30141         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30142         listen).
30143
30144 2008-10-08  Eric Blake  <ebb9@byu.net>
30145
30146         GNUmakefile: add 'make version' target
30147         * top/GNUmakefile (_curr-ver): Split version update rules...
30148         (version): ...into a target.
30149
30150 2008-10-07  Bruno Haible  <bruno@clisp.org>
30151
30152         Use a more portable replacement expression for -0.0L.
30153         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30154         instead of -0.0L. Fix m4 quotation.
30155
30156         * tests/test-signbit.c: Include <float.h>.
30157         (minus_zero): New variable.
30158         (test_signbitl): Use minus_zero instead of -zero.
30159         * modules/signbit-tests (Depends-on): Add float.
30160
30161         * tests/test-ceill.c: Include <float.h>.
30162         (zero): Remove variable.
30163         (minus_zero): New variable.
30164         (main): Use minus_zero instead of -zero.
30165         * modules/ceill-tests (Depends-on): Add float.
30166
30167         * tests/test-floorl.c: Include <float.h>.
30168         (zero): Remove variable.
30169         (minus_zero): New variable.
30170         (main): Use minus_zero instead of -zero.
30171         * modules/floorl-tests (Depends-on): Add float.
30172
30173         * tests/test-roundl.c: Include <float.h>.
30174         (zero): Remove variable.
30175         (minus_zero): New variable.
30176         (main): Use minus_zero instead of -zero.
30177         * modules/roundl-tests (Depends-on): Add float.
30178
30179         * tests/test-truncl.c: Include <float.h>.
30180         (zero): Remove variable.
30181         (minus_zero): New variable.
30182         (main): Use minus_zero instead of -zero.
30183         * modules/truncl-tests (Depends-on): Add float.
30184
30185         * tests/test-frexpl.c (zero): Remove variable.
30186         (minus_zero): New variable.
30187         (main): Use minus_zero instead of -zero.
30188         * modules/frexpl-tests (Depends-on): Add float.
30189
30190         * tests/test-isnan.c (zerol): Remove variable.
30191         (minus_zerol): New variable.
30192         (test_long_double): Use minus_zerol instead of -zerol.
30193         * modules/isnan-tests (Depends-on): Add float.
30194
30195         * tests/test-isnanl.h (zero): Remove variable.
30196         (minus_zero): New variable.
30197         (main): Use minus_zero instead of -zero.
30198         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30199         * modules/isnanl-tests (Depends-on): Add float.
30200
30201         * tests/test-ldexpl.c (zero): Remove variable.
30202         (minus_zero): New variable.
30203         (main): Use minus_zero instead of -zero.
30204         * modules/ldexpl-tests (Depends-on): Add float.
30205
30206         * tests/test-snprintf-posix.h (zerol): Remove variable.
30207         (minus_zerol): New variable.
30208         (test_function): Use minus_zerol instead of -zerol.
30209         * modules/snprintf-posix-tests (Depends-on): Add float.
30210         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30211
30212         * tests/test-sprintf-posix.h (zerol): Remove variable.
30213         (minus_zerol): New variable.
30214         (test_function): Use minus_zerol instead of -zerol.
30215         * modules/sprintf-posix-tests (Depends-on): Add float.
30216         * modules/vsprintf-posix-tests (Depends-on): Add float.
30217
30218         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30219         (minus_zerol): New variable.
30220         (test_function): Use minus_zerol instead of -zerol.
30221         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30222
30223         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30224         (minus_zerol): New variable.
30225         (test_function): Use minus_zerol instead of -zerol.
30226         * modules/vasprintf-posix-tests (Depends-on): Add float.
30227
30228 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30229
30230         * MODULES.html.sh (Support for building documentation): Mention
30231         pmccabe2html.  Sort entries.
30232
30233         Add pmccabe2html module, from gnupdf.
30234         * build-aux/pmccabe.css: New file.
30235         * build-aux/pmccabe2html: New file.
30236         * m4/pmccabe2html.m4: New file.
30237         * modules/pmccabe2html: New file.
30238
30239 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30240
30241         flock: new module
30242         * MODULES.html.sh: Add to list of modules.
30243         * lib/flock.c: flock implementation for Windows and Unix systems
30244         which have fcntl.
30245         * doc/glibc-functions/flock.texi: Update documentation.
30246         * lib/sys_file.in.h: <sys/file.h> header file.
30247         * m4/flock.m4: M4 macros.
30248         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30249         * modules/flock: flock module.
30250         * modules/flock-tests: flock tests module.
30251         * modules/sys_file: sys/file.h module.
30252         * tests/test-flock.c: test suite for flock.
30253
30254 2008-10-06  Jim Meyering  <meyering@redhat.com>
30255
30256         bootstrap: check for LT_INIT more portably still ;-)
30257         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30258         Spotted by Bruno Haible.
30259
30260 2008-10-06  Eric Blake  <ebb9@byu.net>
30261
30262         test-signbit: avoid tripping Irix cc bug on -0.0L
30263         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30264         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30265         entire testsuite consistent and avoids an Irix 6.2 bug.
30266
30267 2008-10-05  Bruno Haible  <bruno@clisp.org>
30268             Jim Meyering  <jim@meyering.net>
30269
30270         Add an option for ignoring EPIPE during close_stdout.
30271         * lib/closeout.h: Include <stdbool.h>.
30272         (close_stdout_set_ignore_EPIPE): New declaration.
30273         * lib/closeout.c: Include <stdbool.h>.
30274         (ignore_EPIPE): New variable.
30275         (close_stdout_set_ignore_EPIPE): New function.
30276         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30277         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30278         failure.
30279         * modules/closeout (Depends-on): Add stdbool.
30280
30281 2008-10-05  Bruno Haible  <bruno@clisp.org>
30282
30283         * modules/accept: New file.
30284         * modules/bind: New file.
30285         * modules/connect: New file.
30286         * modules/getpeername: New file.
30287         * modules/getsockname: New file.
30288         * modules/getsockopt: New file.
30289         * modules/listen: New file.
30290         * modules/recv: New file.
30291         * modules/recvfrom: New file.
30292         * modules/send: New file.
30293         * modules/sendto: New file.
30294         * modules/setsockopt: New file.
30295         * modules/socket: New file.
30296         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30297         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30298         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30299         the particular module is requested. Add a link warning when the
30300         particular module is not requested.
30301         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30302         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30303         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30304         the particular module is requested.
30305         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30306         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30307         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30308         * modules/sys_socket (Depends-on): Add link-warning.
30309         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30310         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30311         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30312         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30313         GL_LINK_WARNING.
30314         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30315         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30316         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30317         * doc/posix-functions/getpeername.texi: Mention the new module
30318         'getpeername'.
30319         * doc/posix-functions/getsockname.texi: Mention the new module
30320         'getsockname'.
30321         * doc/posix-functions/getsockopt.texi: Mention the new module
30322         'getsockopt'.
30323         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30324         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30325         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30326         * doc/posix-functions/send.texi: Mention the new module 'send'.
30327         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30328         * doc/posix-functions/setsockopt.texi: Mention the new module
30329         'setsockopt'.
30330         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30331         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30332         listen, connect, accept.
30333         * modules/select-tests (Depends-on): Likewise.
30334
30335 2008-10-05  Bruno Haible  <bruno@clisp.org>
30336
30337         * lib/winsock.c (strerror): Remove unused #undef.
30338         (rpl_close): Remove unused local variable.
30339
30340         * modules/sys_socket (Depends-on); Add errno.
30341
30342 2008-10-05  Bruno Haible  <bruno@clisp.org>
30343
30344         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
30345         (select): Add a link warning when the 'select' module is not used.
30346         * modules/sys_select (Depends-on): Add link-warning.
30347         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
30348         Suggested by Paolo Bonzini.
30349
30350 2008-10-05  Jim Meyering  <meyering@redhat.com>
30351
30352         bootstrap: check for LT_INIT more portably
30353         * build-aux/bootstrap: Avoid using grep -E, since it's not
30354         portable enough.  Suggestion from Bruno Haible.
30355
30356 2008-10-05  Bruno Haible  <bruno@clisp.org>
30357
30358         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
30359         as being fixed by gnulib.
30360
30361 2008-10-05  Bruno Haible  <bruno@clisp.org>
30362
30363         * modules/select-tests: New file, mostly copied from
30364         modules/sys_select-tests.
30365         * tests/test-select.c: New file, mostly copied from
30366         tests/test-sys_select.c.
30367         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30368         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30369         (Makefile.am): Remove test_sys_select_LDADD.
30370
30371         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30372         to an undefined symbol, for an error message.
30373         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30374         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30375         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30376         winsock-select.c here.
30377         * modules/sys_select (Files): Remove lib/winsock-select.c.
30378         (Depends-on): Remove alloca.
30379         (Makefile.am): Substitute GNULIB_SELECT.
30380         * modules/select: New file.
30381         * doc/posix-functions/select.texi: Update.
30382
30383 2008-10-05  Bruno Haible  <bruno@clisp.org>
30384
30385         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30386         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30387         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30388         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30389         getdtablesize.
30390         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30391         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30392
30393 2008-10-05  Bruno Haible  <bruno@clisp.org>
30394
30395         * modules/getdtablesize-tests: New file.
30396         * tests/test-getdtablesize.c: New file.
30397
30398         New module 'getdtablesize'.
30399         * lib/unistd.in.h (getdtablesize): New declaration.
30400         * lib/getdtablesize.c: New file.
30401         * m4/getdtablesize.m4: New file.
30402         * modules/getdtablesize: New file.
30403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30404         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30405         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30406         HAVE_GETDTABLESIZE.
30407         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30408
30409 2008-10-05  Bruno Haible  <bruno@clisp.org>
30410
30411         * modules/sched (Makefile.am): Fix typo.
30412         Reported by Simon Josefsson.
30413
30414 2008-10-05  Jim Meyering  <meyering@redhat.com>
30415
30416         bootstrap: check for LT_INIT, too
30417         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
30418         are deprecated.  Suggestion from Ralf Wildenhues.
30419
30420 2008-10-05  Bruno Haible  <bruno@clisp.org>
30421
30422         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
30423         overriding them by ours.
30424         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
30425
30426 2008-10-05  Jim Meyering  <meyering@redhat.com>
30427
30428         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
30429         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
30430         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
30431
30432 2008-10-04  Bruno Haible  <bruno@clisp.org>
30433
30434         * modules/dup2 (License): Change to LGPLv2+.
30435         * modules/sleep (License): Likewise.
30436         * modules/perror (License): Likewise.
30437         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
30438         Blake.
30439         * modules/signal (License): Likewise.
30440         * modules/sigprocmask (License): Likewise.
30441         * modules/raise (License): Change to LGPLv2+, with approval by Jim
30442         Meyering.
30443
30444 2008-10-04  Bruno Haible  <bruno@clisp.org>
30445
30446         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
30447         Reported by Rainer Tammer <tammer@tammer.net>.
30448
30449 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
30450             Bruno Haible  <bruno@clisp.org>
30451
30452         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
30453         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
30454         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
30455
30456 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
30457
30458         filevercmp: new module
30459         * lib/filevercmp.h: New function filevercmp comparing version strings.
30460         * lib/filevercmp.c: Implementation of filevercmp function.
30461         * modules/filevercmp: Module metadata.
30462         * tests/test-filevercmp.c: Unit test for new module.
30463         * modules/filevercmp-tests: Unit test metadata.
30464         * MODULES.html.sh: Add filevercmp module.
30465
30466 2008-10-03  Bruno Haible  <bruno@clisp.org>
30467
30468         * lib/c-ctype.h: Add comment.
30469         Reported by Jim Meyering.
30470
30471 2008-10-02  Bruno Haible  <bruno@clisp.org>
30472
30473         * modules/posix_spawn-internal (Depends-on): Add 'open'.
30474
30475 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30476
30477         * build-aux/bootstrap: Allow renaming bootstrap, and change the
30478         name of bootstrap.conf accordingly.
30479
30480 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30481
30482         * build-aux/bootstrap: Install git-merge-changelog configuration
30483         items into .gitconfig if needed.
30484
30485 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30486
30487         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
30488         git repository, and initialize/update it accordingly.
30489
30490 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
30491
30492         * modules/fsync-tests: New file.
30493         * tests/test-fsync.c: New file.
30494
30495         New module 'fsync'.
30496         * lib/fsync.c: New file.
30497         * m4/fsync.m4: New file.
30498         * modules/fsync: New file.
30499         * lib/unistd.in.h (fsync): New declaration.
30500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
30501         GNULIB_FSYNC and HAVE_FSYNC.
30502         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
30503         * MODULES.html.sh (posix_functions): Add fsync.
30504         * doc/posix-functions/fsync.texi: Mention the new module.
30505
30506 2008-10-02  Jim Meyering  <meyering@redhat.com>
30507
30508         fts.c: sync with similar code from coreutils' remove.c
30509         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
30510         Guard also with "#if defined __linux__", since for now at least,
30511         this code is Linux-kernel-specific.
30512
30513 2008-10-02  Jim Meyering  <meyering@redhat.com>
30514
30515         fts: bug fixes
30516         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
30517         Include <sys/vfs.h>, not <sys/statfs.h>.
30518
30519         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
30520         Include <sys/vfs.h>, not <sys/statfs.h>.
30521
30522 2008-10-01  Bruno Haible  <bruno@clisp.org>
30523
30524         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
30525         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
30526         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
30527         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
30528         * doc/posix-functions/posix_spawnp.texi: Likewise.
30529         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
30530         whether posix_spawn actually works.
30531         * m4/pipe.m4 (gl_PIPE): Likewise.
30532         * modules/execute (Files): Add m4/posix_spawn.m4.
30533         * modules/pipe (Files): Add m4/posix_spawn.m4.
30534         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
30535
30536 2008-10-01  Jim Meyering  <meyering@redhat.com>
30537
30538         remove trailing spaces
30539         * NEWS: Likewise.
30540         * lib/poll.c (poll): Likewise.
30541         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
30542         * lib/winsock.c (rpl_close): Likewise.
30543         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
30544         * modules/yield: Likewise.
30545         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
30546         * tests/test-sys_select.c (connect_to_socket): Likewise.
30547
30548         fts.c: adjust a new interface to be more generally useful
30549         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
30550         (fts_build): Adjust caller.
30551
30552 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30553
30554         * modules/cond-tests: New file.
30555         * tests/test-cond.c: New file.
30556
30557 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30558             Bruno Haible  <bruno@clisp.org>
30559
30560         * modules/cond (Dependencies): Add errno, time.
30561         * lib/glthread/cond.h: Include <time.h>.
30562         (gl_cond_define, gl_cond_define_initialized): Use the same definition
30563         across platforms.
30564
30565 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30566             Bruno Haible  <bruno@clisp.org>
30567
30568         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
30569
30570 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30571             Bruno Haible  <bruno@clisp.org>
30572
30573         * modules/tls-tests (Depends-on): Add thread, yield.
30574         (configure.ac): Remove all checks.
30575         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
30576         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30577         gl_thread_self): Remove definitions. Include glthread/thread.h and
30578         glthread/yield.h instead.
30579         (test_tls): Pass an additional NULL argument to gl_thread_join.
30580
30581 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30582             Bruno Haible  <bruno@clisp.org>
30583
30584         * modules/lock-tests (Depends-on): Add thread, yield.
30585         (configure.ac): Remove all checks.
30586         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
30587         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30588         gl_thread_self): Remove definitions. Include glthread/thread.h and
30589         glthread/yield.h instead.
30590         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
30591         additional NULL argument to gl_thread_join.
30592
30593 2008-09-30  Bruno Haible  <bruno@clisp.org>
30594
30595         Fix the Win32 implementation of the 'thread' module.
30596         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
30597         pointer type.
30598         (gl_thread_self): Invoke gl_thread_self_func.
30599         (gl_thread_self_func): New declaration.
30600         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
30601         (do_init_self_key, init_self_key): New functions.
30602         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
30603         Remove some fields.
30604         (running_threads, running_lock): Remove variables.
30605         (get_current_thread_handle): New function.
30606         (gl_thread_self_func, wrapper_func, glthread_create_func,
30607         glthread_join_func, gl_thread_exit_func): Largely rewritten and
30608         simplified.
30609
30610 2008-09-30  Bruno Haible  <bruno@clisp.org>
30611
30612         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
30613         files.
30614
30615 2008-09-30  Jim Meyering  <meyering@redhat.com>
30616
30617         fts.m4: correct the test for statfs.f_type
30618         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
30619         when checking for statfs.f_type.
30620
30621 2008-09-15  Simon Josefsson  <simon@josefsson.org>
30622
30623         tests: avoid some compiler warnings
30624         * tests/test-memchr.c (main): Pass NULL indirectly.
30625         * tests/test-getdate.c (main): Remove unused variable 'ret'.
30626
30627 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
30628
30629         getdate.y: disallow countable dayshifts like "4 yesterday ago"
30630         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
30631         exactly specified dayshifts.
30632         (dayshift): New rule.
30633         (rel): Add dayshift.
30634         (relative_time_table) [tomorrow, yesterday, today, now]:
30635         Use tDAY_SHIFT in place of tDAY_UNIT.
30636         * tests/test-getdate.c: Add tests for now-disallowed countable
30637         dayshifts, e.g., "4 yesterday ago".
30638
30639 2008-09-29  Bruno Haible  <bruno@clisp.org>
30640
30641         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
30642         * tests/test-posix_spawn1.in.sh: Renamed from
30643         tests/test-posix_spawn.in.sh.
30644         * tests/test-posix_spawn2.c: New file.
30645         * tests/test-posix_spawn2.in.sh: New file.
30646         * modules/posix_spawnp-tests (Files): Update.
30647         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
30648
30649 2008-09-29  Bruno Haible  <bruno@clisp.org>
30650
30651         Propagate effects of putenv/setenv/unsetenv to child processes.
30652         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
30653         * lib/pipe.c (create_pipe): Likewise.
30654
30655 2008-09-29  Bruno Haible  <bruno@clisp.org>
30656
30657         Enable use of shell scripts as executables in mingw.
30658         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
30659         run the program as a shell script.
30660         * lib/pipe.c (create_pipe): Likewise.
30661         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
30662         resulting array.
30663
30664 2008-09-29  Eric Blake  <ebb9@byu.net>
30665
30666         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
30667
30668 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
30669
30670         * doc/posix-functions/accept.texi: Update mingw problems.
30671         * doc/posix-functions/bind.texi: Update mingw problems.
30672         * doc/posix-functions/close.texi: Update mingw problems.
30673         * doc/posix-functions/connect.texi: Update mingw problems.
30674         * doc/posix-functions/getpeername.texi: Update mingw problems.
30675         * doc/posix-functions/getsockname.texi: Update mingw problems.
30676         * doc/posix-functions/getsockopt.texi: Update mingw problems.
30677         * doc/posix-functions/ioctl.texi: Update mingw problems.
30678         * doc/posix-functions/listen.texi: Update mingw problems.
30679         * doc/posix-functions/recv.texi: Update mingw problems.
30680         * doc/posix-functions/recvfrom.texi: Update mingw problems.
30681         * doc/posix-functions/select.texi: Update mingw problems.
30682         * doc/posix-functions/send.texi: Update mingw problems.
30683         * doc/posix-functions/sendto.texi: Update mingw problems.
30684         * doc/posix-functions/setsockopt.texi: Update mingw problems.
30685         * doc/posix-functions/socket.texi: Update mingw problems.
30686
30687 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
30688             Bruno Haible  <bruno@clisp.org>
30689
30690         * lib/sys_select.in.h: Include sys/time.h.
30691         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
30692         * modules/sys_select: Depend on sys_time.
30693         * tests/test-sys_select.c: Test that sys/select.h defines struct
30694         timeval fully.
30695
30696 2008-09-29  Bruno Haible  <bruno@clisp.org>
30697
30698         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
30699         * lib/sys_select.in.h: Likewise.
30700
30701 2008-09-29  Bruno Haible  <bruno@clisp.org>
30702
30703         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
30704
30705 2008-09-29  Bruno Haible  <bruno@clisp.org>
30706
30707         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
30708         Set LIBSOCKET instead of augmenting LIBS.
30709         * modules/sockets (Link): New section.
30710         * modules/sockets-tests (test_sockets_LDADD): New variable.
30711         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
30712         * modules/poll-tests (test_poll_LDADD): New variable.
30713         * NEWS: Document the change.
30714
30715 2008-09-29  Bruno Haible  <bruno@clisp.org>
30716
30717         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
30718         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
30719         ARPA_INET_H directly.
30720         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30721
30722 2008-09-28  Bruno Haible  <bruno@clisp.org>
30723
30724         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
30725         from gl_HEADER_SYS_SOCKET.
30726         (gl_HEADER_SYS_SOCKET): Invoke it.
30727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30728
30729 2008-09-28  Bruno Haible  <bruno@clisp.org>
30730
30731         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
30732         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
30733         Needed on OSF/1 4.0.
30734
30735 2008-09-28  Bruno Haible  <bruno@clisp.org>
30736
30737         Override open more carefully.
30738         * lib/open.c (orig_open): New function.
30739         (rpl_open): Use orig_open instead of open.
30740         * lib/fcntl.in.h: Add special invocation convention.
30741         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
30742         (gl_FUNC_OPEN): Invoke it.
30743
30744         Override freopen more carefully.
30745         * lib/freopen.c (orig_freopen): New function.
30746         (rpl_freopen): Use orig_freopen instead of freopen.
30747         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
30748         (gl_FUNC_FREOPEN): Invoke it.
30749
30750         Override fopen more carefully.
30751         * lib/fopen.c (orig_fopen): New function.
30752         (rpl_fopen): Use orig_fopen instead of fopen.
30753         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
30754         (gl_FUNC_FOPEN): Invoke it.
30755         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
30756
30757 2008-09-28  Bruno Haible  <bruno@clisp.org>
30758
30759         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
30760         SIGPIPE.
30761
30762 2008-09-28  Bruno Haible  <bruno@clisp.org>
30763
30764         * tests/test-sigaction.c (handler, main): Disable the check whether
30765         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
30766         glibc systems with LinuxThreads.
30767
30768 2008-09-28  Bruno Haible  <bruno@clisp.org>
30769
30770         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
30771
30772         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
30773         with AIX xlc.
30774         * lib/fcntl.in.h (open): Likewise.
30775         Reported by Rainer Tammer <tammer@tammer.net>.
30776
30777 2008-09-28  Bruno Haible  <bruno@clisp.org>
30778
30779         * modules/posix_spawnp-tests: New file.
30780         * tests/test-posix_spawn.c: New file.
30781         * tests/test-posix_spawn.in.sh: New file.
30782
30783         New module 'posix_spawnp'.
30784         * modules/posix_spawnp: New file.
30785         * lib/spawnp.c: New file, from GNU libc with modifications.
30786         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
30787
30788         New module 'posix_spawn'.
30789         * modules/posix_spawn: New file.
30790         * lib/spawn.c: New file, from GNU libc with modifications.
30791         * doc/posix-functions/posix_spawn.texi: Mention the new module.
30792
30793         New module 'posix_spawnattr_destroy'.
30794         * modules/posix_spawnattr_destroy: New file.
30795         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
30796         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
30797         module.
30798
30799         New module 'posix_spawnattr_setsigmask'.
30800         * modules/posix_spawnattr_setsigmask: New file.
30801         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
30802         modifications.
30803         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
30804         new module.
30805
30806         New module 'posix_spawnattr_getsigmask'.
30807         * modules/posix_spawnattr_getsigmask: New file.
30808         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
30809         modifications.
30810         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
30811         new module.
30812
30813         New module 'posix_spawnattr_setsigdefault'.
30814         * modules/posix_spawnattr_setsigdefault: New file.
30815         * lib/spawnattr_setdefault.c: New file, from GNU libc with
30816         modifications.
30817         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
30818         new module.
30819
30820         New module 'posix_spawnattr_getsigdefault'.
30821         * modules/posix_spawnattr_getsigdefault: New file.
30822         * lib/spawnattr_getdefault.c: New file, from GNU libc with
30823         modifications.
30824         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
30825         new module.
30826
30827         New module 'posix_spawnattr_setschedpolicy'.
30828         * modules/posix_spawnattr_setschedpolicy: New file.
30829         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
30830         modifications.
30831         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
30832         new module.
30833
30834         New module 'posix_spawnattr_getschedpolicy'.
30835         * modules/posix_spawnattr_getschedpolicy: New file.
30836         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
30837         modifications.
30838         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
30839         new module.
30840
30841         New module 'posix_spawnattr_setschedparam'.
30842         * modules/posix_spawnattr_setschedparam: New file.
30843         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
30844         modifications.
30845         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
30846         new module.
30847
30848         New module 'posix_spawnattr_getschedparam'.
30849         * modules/posix_spawnattr_getschedparam: New file.
30850         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
30851         modifications.
30852         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
30853         new module.
30854
30855         New module 'posix_spawnattr_setpgroup'.
30856         * modules/posix_spawnattr_setpgroup: New file.
30857         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
30858         modifications.
30859         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
30860         module.
30861
30862         New module 'posix_spawnattr_getpgroup'.
30863         * modules/posix_spawnattr_getpgroup: New file.
30864         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
30865         modifications.
30866         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
30867         module.
30868
30869         New module 'posix_spawnattr_setflags'.
30870         * modules/posix_spawnattr_setflags: New file.
30871         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
30872         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
30873         module.
30874
30875         New module 'posix_spawnattr_getflags'.
30876         * modules/posix_spawnattr_getflags: New file.
30877         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
30878         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
30879         module.
30880
30881         New module 'posix_spawnattr_init'.
30882         * modules/posix_spawnattr_init: New file.
30883         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
30884         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
30885         module.
30886
30887         New module 'posix_spawn_file_actions_destroy'.
30888         * modules/posix_spawn_file_actions_destroy: New file.
30889         * lib/spawn_faction_destroy.c: New file, from GNU libc with
30890         modifications.
30891         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
30892         the new module.
30893
30894         New module 'posix_spawn_file_actions_addopen'.
30895         * modules/posix_spawn_file_actions_addopen: New file.
30896         * lib/spawn_faction_addopen.c: New file, from GNU libc with
30897         modifications.
30898         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
30899         the new module.
30900
30901         New module 'posix_spawn_file_actions_adddup2'.
30902         * modules/posix_spawn_file_actions_adddup2: New file.
30903         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
30904         modifications.
30905         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
30906         the new module.
30907
30908         New module 'posix_spawn_file_actions_addclose'.
30909         * modules/posix_spawn_file_actions_addclose: New file.
30910         * lib/spawn_faction_addclose.c: New file, from GNU libc with
30911         modifications.
30912         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
30913         the new module.
30914
30915         New module 'posix_spawn_file_actions_init'.
30916         * modules/posix_spawn_file_actions_init: New file.
30917         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
30918         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
30919         new module.
30920
30921         New module 'posix_spawn-internal'.
30922         * modules/posix_spawn-internal: New file.
30923         * lib/spawn_int.h: New file, from GNU libc with modifications.
30924         * lib/spawni.c: New file, from GNU libc with modifications.
30925         * m4/posix_spawn.m4: New file.
30926
30927         New module 'spawn'.
30928         * modules/spawn: New file.
30929         * lib/spawn.in.h: New file, from GNU libc with modifications.
30930         * m4/spawn_h.m4: New file.
30931         * doc/posix-headers/spawn.texi: Mention the new module.
30932
30933 2008-09-28  Bruno Haible  <bruno@clisp.org>
30934
30935         * modules/sched-tests: New file.
30936         * tests/test-sched.c: New file.
30937
30938         New module 'sched'.
30939         * modules/sched: New file.
30940         * lib/sched.in.h: New file.
30941         * m4/sched_h.m4: New file.
30942         * doc/posix-headers/sched.texi: Mention the new module.
30943
30944 2008-09-27  Eric Blake  <ebb9@byu.net>
30945
30946         Fix previous patch, and tweak references to $0.
30947         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
30948         (func_version, func_gnulib_dir): Don't call this program
30949         gnulib-tool.
30950         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
30951         with using $0 in function.
30952         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
30953         (func_fatal_error): Reuse the name the user invoked us with.
30954
30955 2008-09-27  Bruno Haible  <bruno@clisp.org>
30956
30957         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
30958         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
30959         (gl_ICONV_H): Not here.
30960         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30961         instead of assigning ICONV_H directly.
30962
30963         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
30964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
30965         WCHAR_H directly.
30966
30967 2008-09-27  Bruno Haible  <bruno@clisp.org>
30968
30969         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
30970         * modules/arpa_inet (Depends-on): Add link-warning.
30971         (Makefile.am): Insert the definition of GL_LINK-WARNING.
30972         * modules/unistd (Makefile.am): Likewise.
30973
30974 2008-09-26  Bruno Haible  <bruno@clisp.org>
30975
30976         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
30977         variables.
30978         (func_version): Essentially copied from gnulib-tool.
30979         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
30980         func_readlink): Copied from gnulib-tool.
30981
30982 2008-09-26  Bruno Haible  <bruno@clisp.org>
30983
30984         * gnulib-tool (func_version): Change directory to $gnulib_dir before
30985         invoking git-version-gen.
30986
30987 2008-09-26  Bruno Haible  <bruno@clisp.org>
30988
30989         * posix-modules: Update to directory names changed on 2008-01-19.
30990         Remove commas in output before splitting into words. No more need to
30991         avoid 'ftruncate' since 2007-02-19.
30992
30993 2008-09-26  Bruno Haible  <bruno@clisp.org>
30994
30995         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
30996
30997 2008-09-26  Bruno Haible  <bruno@clisp.org>
30998
30999         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31000         * modules/fwriteerror (Depends-on): Add errno.
31001
31002 2008-09-26  Bruno Haible  <bruno@clisp.org>
31003
31004         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31005         * tests/test-vc-list-files-cvs.sh: Likewise.
31006
31007 2008-09-26  Bruno Haible  <bruno@clisp.org>
31008
31009         * doc/posix-headers/sys_resource.texi: Reorder items.
31010
31011 2008-09-26  Jim Meyering  <meyering@redhat.com>
31012
31013         fts: tweak inode comparison function
31014         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31015         inode numbers, as documented.
31016
31017         fts: sort dirent entries on inode number before traversing
31018         This avoids a quadratic, seek-related performance penalty when
31019         operating on a directory containing many entries (measurable at 10k;
31020         3.5 hours at 2 million entries with a cold cache) on certain types
31021         of file systems, including ext3 and ext4, but not tmpfs.
31022         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31023         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31024         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31025         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31026         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31027         (fts_build): Set the stat.st_ino member from D_INO.
31028         If it is likely to be useful, sort dirent entries on inode number.
31029
31030         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31031         and the struct statfs.f_type member.
31032         * modules/fts (Depends-on): Add d-ino.
31033
31034 2008-09-26  Bruno Haible  <bruno@clisp.org>
31035
31036         * modules/sigpipe-die (Depends-on): Add sigpipe.
31037
31038         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31039         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31040         and GNULIB_STDIO_H_SIGPIPE are set.
31041         * lib/stdio-write.c: New file.
31042         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31043         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31044         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31045         REPLACE_STDIO_WRITE_FUNCS.
31046         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31047         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31048         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31049         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31050         * modules/stdio (Files): Add lib/stdio-write.c.
31051         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31052         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31053         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31054         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31055         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31056         REPLACE_FPRINTF_POSIX.
31057         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31058         REPLACE_PRINTF_POSIX.
31059         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31060         REPLACE_VFPRINTF_POSIX.
31061         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31062         REPLACE_VPRINTF_POSIX.
31063         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31064         SIGPIPE issue.
31065         * doc/posix-functions/fputc.texi: Likewise.
31066         * doc/posix-functions/fputs.texi: Likewise.
31067         * doc/posix-functions/fwrite.texi: Likewise.
31068         * doc/posix-functions/printf.texi: Likewise.
31069         * doc/posix-functions/putc.texi: Likewise.
31070         * doc/posix-functions/putchar.texi: Likewise.
31071         * doc/posix-functions/puts.texi: Likewise.
31072         * doc/posix-functions/vfprintf.texi: Likewise.
31073         * doc/posix-functions/vprintf.texi: Likewise.
31074
31075         * modules/safe-write (Depends-on): Add write.
31076
31077         * modules/sigpipe-tests: New file.
31078         * tests/test-sigpipe.c: New file.
31079         * tests/test-sigpipe.sh: New file.
31080
31081         * modules/write: New file.
31082         * lib/unistd.in.h: Include <sys/types.h>.
31083         (write): New declaration.
31084         * lib/write.c: New file.
31085         * m4/write.m4: New file.
31086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31087         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31088         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31089         GNULIB_WRITE, REPLACE_WRITE.
31090         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31091         and the SIGPIPE issue.
31092
31093         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31094         (raise): New declaration.
31095         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31096         (ext_signal): New function.
31097         (rpl_raise): New function.
31098         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31099         GNULIB_SIGNAL_H_SIGPIPE.
31100         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31101         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31102
31103         * modules/sigpipe: New file.
31104         * m4/sigpipe.m4: New file.
31105
31106 2008-09-25  Derek Price  <derek@ximbiot.com>
31107             Bruno Haible  <bruno@clisp.org>
31108
31109         * gnulib-tool (func_import): Report all license incompatibilities, not
31110         just the first one.
31111
31112 2008-09-25  Bruno Haible  <bruno@clisp.org>
31113
31114         * gnulib-tool (func_import): When computing the edits, consider not
31115         only the Makefile.ams that exist but also those that will be generated.
31116
31117 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31118
31119         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31120         fixes gnulib-tool --test warning about duplicate dependency.
31121
31122 2008-09-25  Bruno Haible  <bruno@clisp.org>
31123
31124         * gnulib-tool: Don't ask the user to perform edits in the generated
31125         Makefile.ams.
31126         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31127         apply to the Makefile.am being generated.
31128         (func_emit_tests_Makefile_am): Execute edits that apply to the
31129         Makefile.am being generated.
31130         (func_import): Setup list of Makefile.am edits before emitting the
31131         Makefile.ams, not at the end.
31132         (func_create_testdir): Update.
31133         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31134
31135 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31136
31137         * gnulib-tool (func_import): Store the --tests-base option in the
31138         comment in gnulib-cache.m4.
31139
31140 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31141
31142         * NEWS: Document increased portability that sys_select now provides.
31143
31144         * lib/sys_select.in.h: Install select wrapper.
31145         * lib/sys_socket.in.h: Use more descriptive name when there is no
31146         select wrapper.
31147         * lib/winsock-select.c: New.
31148         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31149         Require gl_HEADER_SYS_SOCKET.
31150         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31151         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31152         * tests/test-sys_select.c: Add functional tests.
31153
31154 2008-09-24  Eric Blake  <ebb9@byu.net>
31155
31156         open, fopen: close fd leak in last patch
31157         * lib/open.c (rpl_open): Close fd before returning error.
31158         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31159         * doc/posix-functions/open.texi (open): Document that Irix also
31160         has the bug.
31161         * doc/posix-functions/fopen.texi (fopen): Likewise.
31162         Reported by Paolo Bonzini.
31163
31164 2008-09-24  Bruno Haible  <bruno@clisp.org>
31165
31166         Ensure that a filename ending in a slash cannot be used to access a
31167         non-directory.
31168         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31169         to check whether it's really a directory.
31170         * lib/fopen.c: Include fcntl.h, unistd.h.
31171         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31172         and fdopen().
31173         * modules/fopen (Depends-on): Add unistd.
31174         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31175         * tests/test-fopen.c (main): Likewise.
31176         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31177         * doc/posix-functions/fopen.texi: Likewise.
31178         Reported by Eric Blake.
31179
31180 2008-09-23  Eric Blake  <ebb9@byu.net>
31181
31182         c-stack: avoid compiler optimizations when provoking overflow
31183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31184         recursion harder to optimize, to ensure a stack overflow occurs.
31185         * tests/test-c-stack.c (recurse): Likewise.
31186         Borrowed from libsigsegv.
31187
31188         c-stack: work around Irix sigaltstack bug
31189         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31190         whether sigaltstack uses wrong end of stack_t (copied in part from
31191         libsigsegv).
31192         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31193         Irix bug, without requiring an over-allocation.
31194         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31195         bug.
31196
31197         fopen: document mingw bug on directories
31198         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31199         not allowing a stream visiting a directory, even though reading
31200         from such a stream is not portable.
31201
31202 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31203
31204         * lib/poll.c: Rewrite.
31205         * modules/poll: Depend on alloca.
31206
31207 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31208
31209         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31210         instead define prototypes for a full set of wrappers.  Ensure
31211         that Cygwin does not use the compatibility code, which is only
31212         for MinGW.
31213         * lib/winsock.c: New.
31214         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31215         * modules/sys_socket: Add lib/winsock.c.
31216
31217         * modules/poll-tests: Add errno and perror.
31218         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31219
31220 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31221
31222         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31223
31224 2008-09-23  Bruno Haible  <bruno@clisp.org>
31225
31226         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31227         * doc/glibc-functions/*: Likewise.
31228
31229 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31230
31231         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31232         success.
31233
31234 2008-09-22  Eric Blake  <ebb9@byu.net>
31235             Bruno Haible  <bruno@clisp.org>
31236
31237         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31238         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31239         supply %A but mishandle pseudo-NaN.
31240         Reported by Simon Josefsson.
31241
31242 2008-09-21  Bruno Haible  <bruno@clisp.org>
31243
31244         * tests/test-lock.c (main): Tweak skip message.
31245         * tests/test-tls.c (main): Likewise.
31246
31247 2008-09-21  Bruno Haible  <bruno@clisp.org>
31248
31249         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31250         whether 'struct sigaction' has sa_sigaction here...
31251         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31252         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31253
31254 2008-09-21  Bruno Haible  <bruno@clisp.org>
31255
31256         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31257         section.
31258         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31259         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31260         the new section.
31261         (Support for obsolete systems lacking POSIX:2001): New section.
31262         (String handling <string.h>): Move strdup to the new section.
31263         Suggested by Simon Josefsson and Paolo Bonzini.
31264
31265 2008-09-21  Bruno Haible  <bruno@clisp.org>
31266
31267         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31268         exponents in %e and %g results on 'long double'. Needed for mingw's
31269         improved *printf functions.
31270         * tests/test-vasprintf-posix.c (test_function): Likewise.
31271         * tests/test-snprintf-posix.h (test_function): Likewise.
31272         * tests/test-sprintf-posix.h (test_function): Likewise.
31273         Reported by Eric Blake.
31274
31275 2008-09-21  Bruno Haible  <bruno@clisp.org>
31276
31277         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31278         * tests/test-sprintf-posix.h (test_function): Likewise.
31279
31280 2008-09-21  Bruno Haible  <bruno@clisp.org>
31281
31282         * modules/getpass (Depends-on): Add strdup-posix.
31283
31284         New module 'strdup-posix'.
31285         * modules/strdup-posix: New file.
31286         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31287         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31289         REPLACE_STRDUP.
31290         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31291         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31292         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31293         strdup-posix.
31294
31295         * modules/strdup (Depends-on): Remove malloc-posix.
31296
31297 2008-09-20  Bruno Haible  <bruno@clisp.org>
31298
31299         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31300         Wildenhues.
31301
31302 2008-09-20  Bruno Haible  <bruno@clisp.org>
31303
31304         Ensure that wint_t gets defined on IRIX 5.3.
31305         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31306         * lib/wctype.in.h (wint_t): Likewise.
31307         (__wctype_wint_t): Remove type.
31308         (isw*): Use wint_t instead of __wctype_wint_t.
31309         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31310         * modules/wchar (Files): Add m4/wint_t.m4.
31311         (Makefile.am): Substitute HAVE_WINT_T.
31312         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31313         * tests/test-wctype.c: Check that wint_t is defined.
31314         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31315         * doc/posix-headers/wctype.texi: Likewise.
31316         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31317
31318 2008-09-18  Bruno Haible  <bruno@clisp.org>
31319
31320         * gnulib-tool (func_exit): Update comment.
31321
31322 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31323
31324         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31325         assumes strdup exists and does not depend on strdup to return
31326         ENOMEM on out of memory conditions.
31327
31328 2008-09-18  Bruno Haible  <bruno@clisp.org>
31329
31330         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
31331         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31332         digits for the exponent.
31333
31334 2008-09-18  Jim Meyering  <meyering@redhat.com>
31335             Bruno Haible  <bruno@clisp.org>
31336
31337         * lib/vasnprintf.c (decimal_point_char): Define also if
31338         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31339
31340 2008-09-16  Bruno Haible  <bruno@clisp.org>
31341         and Eric Blake  <ebb9@byu.net>
31342
31343         vasnprintf: support Irix 5.3
31344         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
31345         that mishandle long double infinity.
31346         Reported by Tom G. Christensen.
31347
31348 2008-09-16  Bruno Haible  <bruno@clisp.org>
31349
31350         * doc/glibc-functions/scandir.texi: Mention the function is missing on
31351         Solaris 9.
31352         * doc/glibc-functions/alphasort.texi: Likewise.
31353         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
31354
31355 2008-09-16  Jim Meyering  <meyering@redhat.com>
31356
31357         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
31358         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
31359         a umask modification leak out of a subshell.  Otherwise, the
31360         opensolaris /bin/sh would be accepted and thus cause unwarranted
31361         failures in the coreutils test suite.
31362
31363 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
31364
31365         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31366         to succeed.
31367
31368 2008-09-16  Jim Meyering  <meyering@redhat.com>
31369
31370         avoid spurious test failure when library is built without ACL support
31371         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31372         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31373         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31374         * tests/test-copy-acl.sh: Likewise.
31375
31376 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31377
31378         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31379         based on character occurrence counts.
31380
31381 2008-09-15  Eric Blake  <ebb9@byu.net>
31382
31383         tests: avoid some compiler warnings
31384         * tests/test-memchr.c (main): Pass NULL indirectly.
31385         * tests/test-closein.c (main): Avoid unused variable.
31386
31387 2008-09-15  Bruno Haible  <bruno@clisp.org>
31388
31389         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31390         are missing on OpenBSD 4.0 individually.
31391         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31392
31393 2008-09-15  Bruno Haible  <bruno@clisp.org>
31394
31395         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31396         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31397         * doc/posix-functions/perror.texi: Likewise.
31398         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31399         is missing.
31400         Reported by Eric Blake.
31401
31402         * lib/errno.in.h: Use replacement values >= 2000.
31403         Reported by Eric Blake.
31404
31405 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31406
31407         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31408         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31409         limit.
31410         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31411         compareseq was aborted.
31412
31413 2008-09-14  Bruno Haible  <bruno@clisp.org>
31414
31415         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
31416         yvec_edit_count.
31417         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
31418         (fstrcmp_bounded): Simplify result computation accordingly.
31419
31420 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31421
31422         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
31423         (fstrcmp): Define in terms of fstrcmp_bounded.
31424         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
31425         lower_bound argument.
31426         Return quickly if the result is certainly < lower_bound.
31427         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
31428
31429 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31430
31431         * lib/diffseq.h (EARLY_ABORT): New macro.
31432         (compareseq): Change return type to bool. Return true when EARLY_ABORT
31433         evaluates to true.
31434
31435 2008-09-14  Bruno Haible  <bruno@clisp.org>
31436
31437         * modules/perror-tests: New file.
31438         * tests/test-perror.sh: New file.
31439         * tests/test-perror.c: New file.
31440
31441         New module 'perror'.
31442         * lib/stdio.in.h (perror): New declaration.
31443         * lib/perror.c: New file.
31444         * m4/perror.m4: New file.
31445         * modules/perror: New file.
31446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
31447         * doc/posix-functions/perror.texi: Mention the perror module.
31448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
31449         REPLACE_PERROR.
31450         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
31451         REPLACE_PERROR.
31452
31453 2008-09-14  Bruno Haible  <bruno@clisp.org>
31454
31455         * modules/stdio (Makefile.am): Reorder to match the order in
31456         lib/stdio.in.h.
31457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31458
31459 2008-09-13  Bruno Haible  <bruno@clisp.org>
31460
31461         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
31462
31463 2008-09-13  Bruno Haible  <bruno@clisp.org>
31464
31465         Extend strerror to cover the added errno values.
31466         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
31467         (rpl_strerror): Provide error messages for the added errno values and
31468         for the WSA* values.
31469         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
31470         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
31471         strerror.
31472         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
31473         * modules/strerror (Depends-on): Add errno.
31474         * doc/posix-functions/strerror.texi: Document the change.
31475         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
31476         and EOVERFLOW.
31477
31478 2008-09-13  Bruno Haible  <bruno@clisp.org>
31479
31480         * modules/EOVERFLOW: Remove file.
31481         * m4/eoverflow.m4: Remove file.
31482         * modules/EOVERFLOW-tests: Remove file.
31483         * tests/test-EOVERFLOW.c: Remove file.
31484         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
31485         * modules/ftell (Depends-on): Likewise.
31486         * modules/getdelim (Depends-on): Likewise.
31487         * modules/getugroups (Depends-on): Likewise.
31488         * modules/poll (Depends-on): Likewise.
31489         * modules/snprintf (Depends-on): Likewise.
31490         * modules/sprintf-posix (Depends-on): Likewise.
31491         * modules/vasnprintf (Depends-on): Likewise.
31492         * modules/vasprintf (Depends-on): Likewise.
31493         * modules/vfprintf-posix (Depends-on): Likewise.
31494         * modules/vsnprintf (Depends-on): Likewise.
31495         * modules/vsprintf-posix (Depends-on): Likewise.
31496         * modules/xvasprintf (Depends-on): Likewise.
31497         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31498         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
31499         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
31500         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
31501         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31502         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
31503         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
31504         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
31505         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31506         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
31507         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
31508         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
31509         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31510         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
31511         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
31512         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
31513         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31514         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
31515         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
31516         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
31517         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31518         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
31519         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
31520         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
31521         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
31522         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31523         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
31524         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
31525         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
31526         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
31527         * MODULES.html.sh: Remove EOVERFLOW.
31528         * NEWS: Mention the change.
31529
31530 2008-09-13  Bruno Haible  <bruno@clisp.org>
31531
31532         * modules/errno-tests: New file.
31533         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
31534
31535         * lib/errno.in.h: New file.
31536         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
31537         * modules/errno: New file.
31538         * doc/posix-headers/errno.texi: Update documentation.
31539         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
31540
31541 2008-09-13  Bruno Haible  <bruno@clisp.org>
31542
31543         * tests/test-poll.c: Use #if for native Windows, rather than testing
31544         __MSVCRT__.
31545
31546 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31547             Bruno Haible  <bruno@clisp.org>
31548
31549         * lib/glob.c: Don't include <pwd.h> on native Windows.
31550         (WINDOWS32): New macro.
31551         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
31552
31553 2008-09-13  Bruno Haible  <bruno@clisp.org>
31554
31555         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
31556         (ETIMEDOUT): Remove macro.
31557         (glthread_cond_timedwait_multithreaded): New declaration.
31558         (glthread_cond_timedwait): Use it.
31559         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
31560         (glthread_cond_timedwait_multithreaded): New function.
31561
31562 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31563
31564         * modules/poll-tests: Do not check for io.h.
31565         * tests/test-poll.c: Check for __MSVCRT__ instead.
31566
31567 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31568
31569         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
31570         * modules/poll-tests: Add inet_pton, stdbool, sockets.
31571         * tests/test-poll.c: Use them.  Use _pipe on Windows.
31572
31573 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31574
31575         * modules/poll-tests: New.
31576         * tests/test-poll.c: New.
31577
31578 2008-09-12  Eric Blake  <ebb9@byu.net>
31579
31580         frexp: test for NetBSD failure on -0.0
31581         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
31582         not all, bugs from NetBSD 3.0 have been fixed.
31583         * doc/posix-functions/frexp.texi (frexp): Document bug.
31584         Reported by Thomas Klausner.
31585
31586         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
31587         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
31588         literal -0.0.
31589         Reported by Jonathan C. Patschke <jp@centtech.com>.
31590
31591 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31592
31593         * lib/glthread/cond.h: Use dummy implementation also if
31594         USE_WIN32_THREADS.
31595
31596 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31597
31598         * modules/fnmatch-posix (License): Change to LGPLv2+.
31599         * modules/fnmatch-gnu (License): Likewise.
31600
31601 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31602
31603         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
31604
31605 2008-09-11  Jim Meyering  <meyering@redhat.com>
31606
31607         * users.txt: Add gtk-vnc.
31608
31609 2008-09-08  Simon Josefsson  <simon@josefsson.org>
31610
31611         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
31612         rotate amounts.
31613
31614         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
31615         required for 16-bit and 8-bit rotates.
31616         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
31617         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
31618         UINT8_MAX instead of hard-coded constants.
31619         Suggested by Paul Eggert.
31620
31621 2008-09-07  Bruno Haible  <bruno@clisp.org>
31622
31623         * tests/test-striconveh.c (main): Check behaviour when converting from
31624         UTF-7.
31625
31626         Make striconveh work better with stateful encodings.
31627         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
31628         that iconv does not increment the inptr when returning -1/EINVAL.
31629
31630 2008-09-07  Bruno Haible  <bruno@clisp.org>
31631
31632         * build-aux/config.rpath: Update according to libtool-2.2.6.
31633         * build-aux/config.libpath: Likewise.
31634
31635 2008-09-06  Bruno Haible  <bruno@clisp.org>
31636
31637         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
31638         * lib/freadptr.c (freadptr): Likewise.
31639         * lib/freadseek.c (freadptrinc): Likewise.
31640         Reported by Simon Josefsson.
31641
31642 2008-09-06  Bruno Haible  <bruno@clisp.org>
31643
31644         * modules/freadptr (License): Change to LGPLv2+.
31645         * modules/freadseek (License): Likewise.
31646         Suggested by Eric Blake.
31647
31648         * modules/memchr2 (License): Change to LGPLv2+.
31649         Approved by Eric Blake.
31650
31651 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31652             Bruno Haible  <bruno@clisp.org>
31653
31654         Make gnulib-tool work with native 'sed' on AIX.
31655         * gnulib-tool (sed_noop): New variable.
31656         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
31657         func_add_or_update, func_create_testdir): Use it to initialize sed
31658         script variables.
31659         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31660
31661 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
31662             Bruno Haible  <bruno@clisp.org>
31663
31664         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
31665         also works after #include directives.
31666
31667 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
31668
31669         getdate.y: reject an out-of-range timezone value
31670         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
31671         the range [-24...+24].  When specified with only one or two digits,
31672         * tests/test-getdate.c: Tests for the fix.
31673         * doc/getdate.texi: Document this change.
31674
31675 2008-09-03  Bruno Haible  <bruno@clisp.org>
31676
31677         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
31678
31679 2008-09-02  Simon Josefsson  <simon@josefsson.org>
31680
31681         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
31682         <bruce.korb@gmail.com> with ideas from Ben Pfaff
31683         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
31684         Blake <ebb9@byu.net>.
31685
31686         * tests/test-bitrotate.c: Add more test vectors.
31687
31688 2008-09-02  Eric Blake  <ebb9@byu.net>
31689
31690         vasnprintf-posix: handle large precision via %.*d
31691         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
31692         when handling it ourselves.
31693         * tests/test-vasnprintf-posix.c (test_function): Add test.
31694         * tests/test-snprintf-posix.h (test_function): Likewise.
31695         * tests/test-sprintf-posix.h (test_function): Likewise.
31696         * tests/test-vasprintf-posix.c (test_function): Likewise.
31697         Reported by Alain Guibert.
31698
31699 2008-09-01  Eric Blake  <ebb9@byu.net>
31700
31701         c-stack: make configure-time check more robust
31702         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
31703         successful sigaction call.
31704         Reported by Tom G. Christensen.
31705
31706 2008-09-01  Bruno Haible  <bruno@clisp.org>
31707
31708         New module 'findprog-lgpl'.
31709         * modules/findprog-lgpl: New file.
31710         * lib/findprog-lgpl.c: New file.
31711         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
31712         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
31713         to decide whether to use strdup or xstrdup, concatenated_filename or
31714         xconcatenated_filename.
31715
31716 2008-09-01  Bruno Haible  <bruno@clisp.org>
31717
31718         Split module 'concat-filename' into 'concat-filename' (LGPL) and
31719         'xconcat-filename' (GPL).
31720         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
31721         (License): Change to LGPLv2+.
31722         * modules/xconcat-filename: New file.
31723         * lib/concat-filename.h (concatenated_filename): Change specification.
31724         (xconcatenated_filename): New declaration.
31725         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
31726         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
31727         memory situations.
31728         * lib/xconcat-filename.c: New file.
31729         * NEWS: Mention the change.
31730         * lib/findprog.c: Include concat-filename.h, not filename.h.
31731         (find_in_path): Use xconcatenated_filename instead of
31732         concatenated_filename.
31733         * lib/javacomp.c: Include concat-filename.h, not filename.h.
31734         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31735         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31736         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31737         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
31738         instead of concatenated_filename.
31739         * lib/javaexec.c: Include concat-filename.h, not filename.h.
31740         (execute_java_class): Use xconcatenated_filename instead of
31741         concatenated_filename.
31742         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
31743         * modules/javacomp (Depends-on): Likewise.
31744         * modules/javaexec (Depends-on): Likewise.
31745
31746 2008-09-01  Bruno Haible  <bruno@clisp.org>
31747
31748         Split module 'filename' into 'filename' and 'concat-filename'.
31749         * modules/filename: Keep only lib/filename.h.
31750         (License): Change to LGPLv2+.
31751         * modules/concat-filename: New file, extracted from modules/filename.
31752         * lib/filename.h (concatenated_filename): Remove declaration.
31753         * lib/concat-filename.h: New file, extracted from lib/filename.h.
31754         * lib/concat-filename.c: Include concat-filename.h.
31755         * NEWS: Mention the change.
31756
31757 2008-09-01  Simon Josefsson  <simon@josefsson.org>
31758
31759         * lib/bitrotate.h (rotl8, rotr8): Add.
31760
31761         * modules/bitrotate (configure.ac): Need
31762         AC_REQUIRE([AC_C_INLINE]).
31763         (Description): Mention stdint.h.  Reported by Bruno Haible
31764         <bruno@clisp.org>.
31765
31766         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
31767         Paolo Bonzini <bonzini@gnu.org>.
31768
31769 2008-08-31  Bruno Haible  <bruno@clisp.org>
31770
31771         Assume Solaris specific bi-arch conventions on Solaris systems.
31772         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
31773         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
31774         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
31775         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
31776         like acl_libdirstem.
31777         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
31778         acl_libdirstem.
31779         * NEWS: Mention the change.
31780         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
31781
31782 2008-08-31  Jim Meyering  <meyering@redhat.com>
31783
31784         * lib/strftime.h: Add comments describing the two added arguments.
31785
31786         remove duplicate #include directives
31787         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
31788         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
31789
31790 2008-08-31  Bruno Haible  <bruno@clisp.org>
31791
31792         New module 'sigpipe-die'.
31793         * modules/sigpipe-die: New file.
31794         * lib/sigpipe-die.h: New file.
31795         * lib/sigpipe-die.c: New file.
31796         * MODULES.html.sh (Signal handling): Add sigpipe-die.
31797
31798 2008-08-31  Bruno Haible  <bruno@clisp.org>
31799
31800         Don't override previously installed signal handlers.
31801         * lib/fatal-signal.c (saved_sigactions): New variable.
31802         (uninstall_handlers): Reset the signal to the saved handler, not
31803         to SIG_DFL (except when ignored).
31804         (install_handlers): Save the previous handlers.
31805
31806 2008-08-30  Bruno Haible  <bruno@clisp.org>
31807
31808         * gnulib-tool (func_reset_sigpipe): New function.
31809         (func_get_automake_snippet, func_modules_transitive_closure,
31810         func_import): Invoke it before a join command that reads from stdin,
31811         to avoid "echo: write error: Broken pipe" error messages on stderr.
31812         Reported by Sam Steingold <sds@gnu.org>.
31813
31814 2008-08-30  Bruno Haible  <bruno@clisp.org>
31815
31816         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
31817         Code copied from m4/open.m4.
31818         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
31819         access and the filename ends in a slash. Code copied from lib/open.c.
31820         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
31821         * tests/test-fopen.c (main): Check against bug with trailing slash.
31822
31823 2008-08-29  Bruno Haible  <bruno@clisp.org>
31824
31825         Avoid some "gcc -pedantic" warnings.
31826         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
31827         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
31828         * lib/dirent.in.h: Likewise.
31829         * lib/fcntl.in.h: Likewise.
31830         * lib/float.in.h: Likewise.
31831         * lib/iconv.in.h: Likewise.
31832         * lib/inttypes.in.h: Likewise.
31833         * lib/locale.in.h: Likewise.
31834         * lib/math.in.h: Likewise.
31835         * lib/netinet_in.in.h: Likewise.
31836         * lib/search.in.h: Likewise.
31837         * lib/signal.in.h: Likewise.
31838         * lib/stdarg.in.h: Likewise.
31839         * lib/stdint.in.h: Likewise.
31840         * lib/stdio.in.h: Likewise.
31841         * lib/stdlib.in.h: Likewise.
31842         * lib/string.in.h: Likewise.
31843         * lib/strings.in.h: Likewise.
31844         * lib/sys_select.in.h: Likewise.
31845         * lib/sys_socket.in.h: Likewise.
31846         * lib/sys_stat.in.h: Likewise.
31847         * lib/sys_time.in.h: Likewise.
31848         * lib/sysexits.in.h: Likewise.
31849         * lib/time.in.h: Likewise.
31850         * lib/unistd.in.h: Likewise.
31851         * lib/wchar.in.h: Likewise.
31852         * lib/wctype.in.h: Likewise.
31853         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
31854         * modules/fchdir (Makefile.am): Likewise.
31855         * modules/fcntl (Makefile.am): Likewise.
31856         * modules/float (Makefile.am): Likewise.
31857         * modules/iconv_open (Makefile.am): Likewise.
31858         * modules/inttypes (Makefile.am): Likewise.
31859         * modules/locale (Makefile.am): Likewise.
31860         * modules/math (Makefile.am): Likewise.
31861         * modules/netinet_in (Makefile.am): Likewise.
31862         * modules/search (Makefile.am): Likewise.
31863         * modules/signal (Makefile.am): Likewise.
31864         * modules/stdarg (Makefile.am): Likewise.
31865         * modules/stdint (Makefile.am): Likewise.
31866         * modules/stdio (Makefile.am): Likewise.
31867         * modules/stdlib (Makefile.am): Likewise.
31868         * modules/string (Makefile.am): Likewise.
31869         * modules/strings (Makefile.am): Likewise.
31870         * modules/sys_select (Makefile.am): Likewise.
31871         * modules/sys_socket (Makefile.am): Likewise.
31872         * modules/sys_stat (Makefile.am): Likewise.
31873         * modules/sys_time (Makefile.am): Likewise.
31874         * modules/sysexits (Makefile.am): Likewise.
31875         * modules/time (Makefile.am): Likewise.
31876         * modules/unistd (Makefile.am): Likewise.
31877         * modules/wchar (Makefile.am): Likewise.
31878         * modules/wctype (Makefile.am): Likewise.
31879         Reported by Reuben Thomas <rrt@sc3d.org>.
31880
31881 2008-08-29  Bruno Haible  <bruno@clisp.org>
31882
31883         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
31884         any more.
31885
31886 2008-08-29  Simon Josefsson  <simon@josefsson.org>
31887
31888         * MODULES.html.sh (Misc): Add bitrotate.
31889
31890         * modules/bitrotate: New file.
31891
31892         * lib/bitrotate.h: New file.
31893
31894         * modules/bitrotate-tests: New file.
31895
31896         * tests/test-bitrotate.c: New file.
31897
31898         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
31899         on the bitrotate module.
31900
31901         * lib/arctwo.c: Use new bitrotate module.
31902
31903 2008-08-29  Jim Meyering  <meyering@redhat.com>
31904
31905         bootstrap: merge changes from coreutils
31906         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
31907         of copied files.  Remove a kludge, now that this is fixed.
31908         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
31909         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
31910         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
31911
31912 2008-08-29  Bruno Haible  <bruno@clisp.org>
31913
31914         * MODULES.html.sh: Remove --cvs-urls option.
31915
31916 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
31917
31918         maint.mk: adjust to file name change
31919         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
31920
31921 2008-08-28  Jim Meyering  <meyering@redhat.com>
31922
31923         * modules/getndelim2 (License): Relicense to LGPLv2+.
31924         Approved by Richard Stallman for the version of 1995, and by
31925         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
31926
31927 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
31928
31929         * lib/getdelim.c (flockfile, funlockfile): Make all of them
31930         dummy if one is not available.  Do not touch them if
31931         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
31932         (getc_maybe_unlocked): New.
31933         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
31934
31935 2008-08-26  Eric Blake  <ebb9@byu.net>
31936
31937         doc/INSTALL: resync from autoconf
31938         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
31939         (INSTALL_PRELUDE): Delete; this is done more efficiently by
31940         moving...
31941         * install.texi [!autoconf]: ...here.  Resync from autoconf.
31942         * INSTALL: Regenerate.
31943         * INSTALL.ISO: New file.
31944         * INSTALL.UTF-8: Likewise.
31945
31946 2008-08-26  Jim Meyering  <meyering@redhat.com>
31947
31948         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
31949         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
31950         these definitions conditional, so that they may be overridden, too.
31951
31952 2008-08-26  Bruno Haible  <bruno@clisp.org>
31953
31954         Generate INSTALL file variants with prettier quotes.
31955         * doc/Makefile (INSTALL_PRELUDE): New macro.
31956         (INSTALL): Use it.
31957         (INSTALL.ISO, INSTALL.UTF-8): New rules.
31958
31959 2008-08-26  Bruno Haible  <bruno@clisp.org>
31960
31961         Run makeinfo in an English locale.
31962         * doc/Makefile (MAKEINFO): New variable.
31963
31964 2008-08-26  Bruno Haible  <bruno@clisp.org>
31965
31966         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
31967         Suggested by Eric Blake.
31968
31969 2008-08-25  Bruno Haible  <bruno@clisp.org>
31970
31971         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
31972
31973 2008-08-25  Eric Blake  <ebb9@byu.net>
31974
31975         c-stack: test that stack overflow can be caught
31976         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
31977         that platform allows handling stack overflow; at least OS/2 EMX
31978         has sigaltstack, but crashes before transferring control to
31979         handler on stack overflow.
31980         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
31981         check for HAVE_STACK_OVERFLOW_HANDLING.
31982         Reported by Elbert Pol.
31983
31984 2008-08-25  Bruno Haible  <bruno@clisp.org>
31985
31986         * doc/posix-functions/strftime.texi: Fix description of strftime
31987         module.
31988
31989 2008-08-24  Bruno Haible  <bruno@clisp.org>
31990
31991         * tests/uniwidth/test-uc_width2.c: New file.
31992         * tests/uniwidth/test-uc_width2.sh: New file.
31993         * modules/uniwidth/width-tests (Files): Add the new files.
31994         (TESTS): Add uniwidth/test-uc_width2.sh.
31995         (TESTS_ENVIRONMENT): New variable.
31996         (check_PROGRAMS): Add test-uc_width2.
31997         (test_uc_width2_SOURCES): New variable.
31998
31999         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32000         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32001         not 0x00AB.
32002         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32003
32004 2008-08-22  Eric Blake  <ebb9@byu.net>
32005
32006         test-lock, test-tls: mention why a test is skipped
32007         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32008         skipped.
32009         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32010
32011         count-one-bits: relax license
32012         * modules/count-one-bits (License): Relicense to LGPLv2+.
32013         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32014
32015 2008-08-22  Andreas Schwab  <schwab@suse.de>
32016
32017         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32018         Remove spurious space in assignment.
32019
32020 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32021
32022         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32023         Paul Eggert <eggert@CS.UCLA.EDU>.
32024
32025 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32026
32027         * modules/gettext: Add m4/threadlib.m4.
32028
32029 2008-08-19  Eric Blake  <ebb9@byu.net>
32030
32031         test-c-stack: fix compilation failure on FreeBSD 5.0
32032         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32033         headers before <sys/resource.h>.
32034         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32035         the bug.
32036         Reported by Nelson H. F. Beebe.
32037
32038         strverscmp: migrate from "strverscmp.h" to <string.h>
32039         * modules/string (Makefile.am): Add new hooks.
32040         * modules/strverscmp (Files): Remove strverscmp.h.
32041         (Depends-on): Add string.
32042         (configure.ac): Add indicator.
32043         (Include): Mention new header.
32044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32045         defaults.
32046         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32047         results.
32048         * lib/strverscmp.h: Delete.
32049         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32050         * tests/test-strverscmp.c (includes): Adjust client.
32051         * lib/check-version.c (includes): Likewise.
32052         * NEWS: Document the change.
32053
32054         strverscmp: add unit test
32055         * modules/strverscmp-tests: New file.
32056         * tests/test-strverscmp.c: Likewise.
32057
32058 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32059
32060         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32061         regarding Windows crypto stuff, from Mono.
32062
32063 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32064
32065         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32066         if present, for intel RND.  Return error on failures.
32067
32068 2008-08-18  Ben Pfaff  <blp@gnu.org>
32069
32070         gitlog-to-changelog: give better diagnostic for failed pipe-open
32071         * build-aux/gitlog-to-changelog: Improve error message: suggest
32072         that the version of Git may be too old.
32073
32074 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32075
32076         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32077         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32078
32079 2008-08-18  Bruno Haible  <bruno@clisp.org>
32080
32081         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32082         pthread_in_use().
32083
32084 2008-08-18  Bruno Haible  <bruno@clisp.org>
32085
32086         * lib/glthread/threadlib.c: Include <pthread.h>.
32087
32088 2008-08-18  Bruno Haible  <bruno@clisp.org>
32089
32090         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32091         glthread_recursive_lock_* macros.
32092         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32093         Fix syntax error.
32094
32095 2008-08-18  Bruno Haible  <bruno@clisp.org>
32096
32097         * lib/glthread/thread.c: Avoid forcing a context switch right after
32098         thread creation.
32099
32100 2008-08-17  Bruno Haible  <bruno@clisp.org>
32101
32102         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32103         * lib/glthread/thread.h: Provide Win32 specific implementation.
32104         * modules/thread (Files): Add lib/glthread/thread.c.
32105         (Depends-on): Add lock.
32106         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32107
32108 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32109
32110         New module 'yield'.
32111         * modules/yield: New file.
32112         * lib/glthread/yield.h: New file.
32113         * m4/yield.m4: New file.
32114         * MODULES.html.sh (Multithreading): Add yield.
32115
32116 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32117
32118         New module 'thread'.
32119         * modules/thread: New file.
32120         * lib/glthread/thread.h: New file.
32121         * m4/thread.m4: New file.
32122         * MODULES.html.sh (Multithreading): Add thread.
32123
32124 2008-08-17  Bruno Haible  <bruno@clisp.org>
32125
32126         * lib/glthread/lock.h: Include <stdlib.h> always.
32127         * lib/glthread/tls.h: Likewise.
32128         * lib/glthread/cond.h: Likewise.
32129
32130 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32131
32132         New module 'cond'.
32133         * modules/cond: New file.
32134         * lib/glthread/cond.h: New file.
32135         * lib/glthread/cond.c: New file.
32136         * m4/cond.m4: New file.
32137         * MODULES.html.sh (Multithreading): Add cond.
32138
32139 2008-08-16  Eric Blake  <ebb9@byu.net>
32140
32141         c-stack: fix regression on Irix 5.3 from 2008-06-21
32142         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32143         sa_sigaction...
32144         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32145         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32146         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32147         * modules/signal (Makefile.am): Use the value.
32148         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32149         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32150         * doc/posix-headers/signal.texi (signal.h): Document this
32151         portability issue.
32152         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32153         Reported by Tom G. Christensen.
32154
32155 2008-08-17  Bruno Haible  <bruno@clisp.org>
32156
32157         New module 'threadlib'.
32158         * modules/threadlib: New file.
32159         * lib/glthread/threadlib.c: New file, extracted from
32160         lib/glthread/lock.c.
32161         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32162         functions.
32163         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32164         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32165         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32166         macros.
32167         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32168         (gl_DISABLE_THREADS): Remove macro.
32169         * modules/lock (Files): Remove build-aux/config.rpath.
32170         (Depends-on): Remove havelib. Add threadlib.
32171         (configure.ac-early): Remove section.
32172         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32173         * modules/tls (Depends-on): Remove lock. Add threadlib.
32174         (Link): New section, copied from threadlib.
32175         * MODULES.html.sh (Multithreading): Add threadlib.
32176
32177 2008-08-14  Bruno Haible  <bruno@clisp.org>
32178
32179         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32180         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32181         glthread_rwlock_unlock, glthread_rwlock_destroy,
32182         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32183         glthread_recursive_lock_destroy): Define as macros always.
32184         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32185         glthread_lock_lock.
32186         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32187         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32188         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32189         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32190         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32191         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32192         (glthread_recursive_lock_lock_func): Renamed from
32193         glthread_recursive_lock_lock.
32194         (glthread_recursive_lock_unlock_func): Renamed from
32195         glthread_recursive_lock_unlock.
32196         (glthread_recursive_lock_destroy_func): Renamed from
32197         glthread_recursive_lock_destroy.
32198
32199 2008-08-14  Bruno Haible  <bruno@clisp.org>
32200
32201         * lib/glthread/lock.h: Renamed from lib/lock.h.
32202         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32203         * lib/glthread/tls.h: Renamed from lib/tls.h.
32204         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32205         * lib/fstrcmp.c: Update includes.
32206         * lib/strsignal.c: Update includes.
32207         * modules/lock (Files, Makefile.am): Update.
32208         (Include): Change to "glthread/lock.h".
32209         * modules/tls (Files, Makefile.am): Update.
32210         (Include): Change to "glthread/tls.h".
32211         * tests/test-lock.c: Update includes.
32212         * tests/test-tls.c: Update includes.
32213         * NEWS: Mention the renamed header files.
32214
32215 2008-08-11  Jim Meyering  <meyering@redhat.com>
32216
32217         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32218
32219 2008-08-11  Eric Blake  <ebb9@byu.net>
32220
32221         test-c-stack: avoid C99-ism
32222         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32223         before statement.
32224         Reported by Alain Guibert.
32225
32226 2008-08-10  Jim Meyering  <meyering@redhat.com>
32227
32228         ensure that return value of uinttostr et al are not ignored
32229         * lib/inttostr.h (__GNUC_PREREQ): Define.
32230         (__attribute_warn_unused_result__): Define.
32231         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32232
32233 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32234
32235         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32236         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32237
32238 2008-08-07  Jim Meyering  <meyering@redhat.com>
32239
32240         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32241
32242         * modules/mkstemp (License): Relicense under LGPLv2+.
32243         * modules/tempname (License): Likewise.
32244
32245 2008-08-06  Bruno Haible  <bruno@clisp.org>
32246
32247         * lib/poll.c (poll): Further micro-optimization.
32248
32249 2008-08-06  Jim Meyering  <meyering@redhat.com>
32250
32251         inet_pton.c: use locale-independent tolower
32252         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32253         (inet_pton6): Use c_tolower rather than tolower.
32254         * modules/inet_pton (Depends-on): Add c-ctype.
32255
32256 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32257
32258         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32259         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32260
32261 2008-08-06  Jim Meyering  <meyering@redhat.com>
32262
32263         * modules/inet_pton (License): Relicense under LGPLv2+.
32264
32265 2008-08-03  Bruno Haible  <bruno@clisp.org>
32266
32267         Additional non-aborting API for lock and tls.
32268         * lib/lock.h: Include <errno.h>.
32269         (glthread_lock_init): New macro/function.
32270         (gl_lock_init): Define as wrapper around glthread_lock_init.
32271         (glthread_lock_lock): New macro/function.
32272         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32273         (glthread_lock_unlock): New macro/function.
32274         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32275         (glthread_lock_destroy): New macro/function.
32276         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32277         (glthread_rwlock_init): New macro/function.
32278         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32279         (glthread_rwlock_rdlock): New macro/function.
32280         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32281         (glthread_rwlock_wrlock): New macro/function.
32282         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32283         (glthread_rwlock_unlock): New macro/function.
32284         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32285         (glthread_rwlock_destroy): New macro/function.
32286         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32287         (glthread_recursive_lock_init): New macro/function.
32288         (gl_recursive_lock_init): Define as wrapper around
32289         glthread_recursive_lock_init.
32290         (glthread_recursive_lock_lock): New macro/function.
32291         (gl_recursive_lock_lock): Define as wrapper around
32292         glthread_recursive_lock_lock.
32293         (glthread_recursive_lock_unlock): New macro/function.
32294         (gl_recursive_lock_unlock): Define as wrapper around
32295         glthread_recursive_lock_unlock.
32296         (glthread_recursive_lock_destroy): New macro/function.
32297         (gl_recursive_lock_destroy): Define as wrapper around
32298         glthread_recursive_lock_destroy.
32299         (glthread_once): New macro/function.
32300         (gl_once): Define as wrapper around glthread_once.
32301         Update function declarations.
32302         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32303         glthread_rwlock_init. Return error code.
32304         (glthread_rwlock_rdlock_multithreaded): Renamed from
32305         glthread_rwlock_rdlock. Return error code.
32306         (glthread_rwlock_wrlock_multithreaded): Renamed from
32307         glthread_rwlock_wrlock. Return error code.
32308         (glthread_rwlock_unlock_multithreaded): Renamed from
32309         glthread_rwlock_unlock. Return error code.
32310         (glthread_rwlock_destroy_multithreaded): Renamed from
32311         glthread_rwlock_destroy. Return error code.
32312         (glthread_recursive_lock_init_multithreaded): Renamed from
32313         glthread_recursive_lock_init. Return error code.
32314         (glthread_recursive_lock_lock_multithreaded): Renamed from
32315         glthread_recursive_lock_lock. Return error code.
32316         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32317         glthread_recursive_lock_unlock. Return error code.
32318         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32319         glthread_recursive_lock_destroy. Return error code.
32320         (glthread_once_call): Make static.
32321         (glthread_once_multithreaded): Renamed from glthread_once.
32322         * lib/tls.h: Include <errno.h>.
32323         (glthread_tls_key_init): New macro/function.
32324         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32325         (glthread_tls_set): New macro/function.
32326         (gl_tls_set): Define as wrapper around glthread_tls_set.
32327         (glthread_tls_key_destroy): New macro/function.
32328         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32329         Update function declarations.
32330         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32331         glthread_tls_get.
32332         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32333
32334 2008-08-04  Eric Blake  <ebb9@byu.net>
32335
32336         gnumakefile: use space, not TAB, outside of targets
32337         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32338
32339 2008-08-02  Jim Meyering  <meyering@redhat.com>
32340
32341         getdate.y: avoid locale-dependent date parsing failure
32342         In Turkish locales, getdate would fail to recognize keywords
32343         containing a lowercase "i".  The solution is not to rely on
32344         locale-sensitive case-conversion.
32345         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
32346         (lookup_word): Use c_toupper in place of toupper.
32347         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
32348         Reported by Vefa Bicakci <bicave@superonline.com> in
32349         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
32350         * modules/getdate (Depends-on): Add c-ctype.
32351
32352 2008-08-02  Bruno Haible  <bruno@clisp.org>
32353
32354         * gnulib-tool (func_import): When updating or creating a .gitignore
32355         file, prepend each added line with a slash, and ignore leading slashes
32356         from the existing lines.
32357         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32358
32359 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32360
32361         Portability fix for GNU make 3.79.1.
32362         * top/GNUmakefile: Avoid 'else COND', which older GNU make
32363         versions do not understand.
32364
32365 2008-08-01  Bruno Haible  <bruno@clisp.org>
32366
32367         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32368         * tests/test-isnanf.h (zero): New variable.
32369         (main): Avoid literal -0.0f.
32370         * tests/test-isnand.h (zero): New variable.
32371         (main): Avoid literal -0.0.
32372         * tests/test-isnanl.h (zero): New variable.
32373         (main): Avoid literal -0.0L.
32374         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32375         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32376         -0.0, -0.0L.
32377         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32378         (test_signbitd): Avoid literal -0.0.
32379         (test_signbitl): Avoid literal -0.0L.
32380         * tests/test-ceilf1.c (zero): New variable.
32381         (main): Avoid literal -0.0f.
32382         * tests/test-ceill.c (zero): New variable.
32383         (main): Avoid literal -0.0L.
32384         * tests/test-floorf1.c (zero): New variable.
32385         (main): Avoid literal -0.0f.
32386         * tests/test-floorl.c (zero): New variable.
32387         (main): Avoid literal -0.0L.
32388         * tests/test-roundf1.c (zero): New variable.
32389         (main): Avoid literal -0.0f.
32390         * tests/test-round1.c (zero): New variable.
32391         (main): Avoid literal -0.0.
32392         * tests/test-roundl.c (zero): New variable.
32393         (main): Avoid literal -0.0L.
32394         * tests/test-truncf1.c (zero): New variable.
32395         (main): Avoid literal -0.0f.
32396         * tests/test-trunc1.c (zero): New variable.
32397         (main): Avoid literal -0.0.
32398         * tests/test-truncl.c (zero): New variable.
32399         (main): Avoid literal -0.0L.
32400         * tests/test-frexp.c (zero): New variable.
32401         (main): Avoid literal -0.0.
32402         * tests/test-frexpl.c (zero): New variable.
32403         (main): Avoid literal -0.0L.
32404         * tests/test-ldexpl.c (zero): New variable.
32405         (main): Avoid literal -0.0L.
32406         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32407         (zerod, zerol): New variables.
32408         (test_function): Avoid literals -0.0, -0.0L.
32409         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32410         (zerod, zerol): New variables.
32411         (test_function): Avoid literals -0.0, -0.0L.
32412         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32413         (zerod, zerol): New variables.
32414         (test_function): Avoid literals -0.0, -0.0L.
32415         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32416         (zerod, zerol): New variables.
32417         (test_function): Avoid literals -0.0, -0.0L.
32418         * tests/test-strtod.c (zero): New variable.
32419         (main): Avoid literal -0.0.
32420         Reported by Jonathan C. Patschke <jp@centtech.com>.
32421
32422 2008-07-31  Jim Meyering  <meyering@redhat.com>
32423
32424         sha256.h: correct definition of SHA224_DIGEST_SIZE
32425         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
32426         Reported by Paulie Pena IV <paulie4@gmail.com>.
32427         Define as 224 / 8, rather than as a literal.
32428         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
32429         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
32430         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
32431
32432 2008-07-31  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
32435         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
32436         Reported by Jonathan Patschke <jp@centtech.com>.
32437
32438 2008-07-31  Bruno Haible  <bruno@clisp.org>
32439
32440         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
32441         Reported by Paolo Bonzini <bonzini@gnu.org>.
32442
32443 2008-07-30  Eric Blake  <ebb9@byu.net>
32444
32445         test-strtod: allow compilation without -lm
32446         * tests/test-strtod.c (main): Avoid link dependence on fabs.
32447         Reported by Dennis Clarke <blastwave@gmail.com>.
32448
32449 2008-07-28  Jim Meyering  <meyering@redhat.com>
32450
32451         bootstrap: work also when there are no .po files in po/
32452         * build-aux/bootstrap (update_po_files): Complete the change
32453         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
32454
32455 2008-07-27  Jim Meyering  <meyering@redhat.com>
32456
32457         * users.txt: Add zile.
32458
32459 2008-07-26  Ben Pfaff  <blp@gnu.org>
32460
32461         Add missing dependencies on new m4/exponent[fdl].m4 files.
32462         * modules/isnanf-nolibm: Add m4/exponentf.m4.
32463         * modules/isnand-nolibm: Add m4/exponentd.m4.
32464         * modules/isnanl-nolibm: Add m4/exponentl.m4.
32465         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
32466         m4/isnan[fdl].m4, because the macros actually used moved.
32467         Reported by Jim Meyering.
32468
32469 2008-07-14  Ben Pfaff  <blp@gnu.org>
32470
32471         Add isinf module.
32472         * lib/isinf.c: New file.
32473         * lib/math.in.h: Define isinf macro if we have decided to replace
32474         it.
32475         * m4/isinf.m4: New file.
32476         * m4/math_h.m4: Initialize and substitute variables for isinf
32477         module.
32478         * modules/isinf: New file.
32479         * modules/isinf-tests: New file.
32480         * modules/math: Add substitutions for new module.
32481         * tests/test-isinf.c: New file.
32482         * doc/posix-functions/isinf.texi: Mention new module.
32483         * MODULES.html.sh: Mention new module.
32484
32485 2008-07-14  Ben Pfaff  <blp@gnu.org>
32486
32487         Factor out some macros for use by additional modules.
32488         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
32489         exponentf.m4.
32490         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
32491         exponentd.m4.
32492         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
32493         file exponentl.m4.
32494         * m4/exponentf.m4: New file.
32495         * m4/exponentd.m4: New file.
32496         * m4/exponentl.m4: New file.
32497         * modules/isnanf: Use new file m4/exponentf.m4.
32498         * modules/isnand: Use new file m4/exponentd.m4.
32499         * modules/isnanl: Use new file m4/exponentl.m4.
32500
32501 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
32502
32503         mktime.c: normalize tp->tm_isdst value to -1/0/1.
32504         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
32505         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
32506         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
32507
32508         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
32509         readlink on platforms without PATH_MAX.
32510
32511 2008-07-21  Eric Blake  <ebb9@byu.net>
32512
32513         Warn, not fail, on stale version.
32514         * top/GNUmakefile (_curr-ver): Tone down previous patch.
32515
32516         Don't allow installation with stale devel version number.
32517         * top/GNUmakefile (_is-install-target): New macro.
32518         (_curr-ver): Forbid installation with stale version number.
32519
32520 2008-07-20  Bruno Haible  <bruno@clisp.org>
32521
32522         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
32523         TESTS_ENVIRONMENT.
32524         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
32525
32526 2008-07-20  Bruno Haible  <bruno@clisp.org>
32527
32528         * lib/c-stack.h (c_stack_action): Add documentation.
32529         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
32530
32531 2008-07-20  Bruno Haible  <bruno@clisp.org>
32532
32533         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
32534         * modules/readlink (License): Likewise.
32535
32536 2008-07-17  Eric Blake  <ebb9@byu.net>
32537
32538         * modules/c-stack (Link): Fix typo.
32539
32540         Make c-stack use libsigsegv, when available.
32541         * modules/c-stack (Depends-on): Add libsigsegv.
32542         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
32543         needed.
32544         * lib/c-stack.c (SIGSTKSZ): Define fallback.
32545         (segv_handler, overflow_handler, c_stack_action)
32546         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
32547         implementation when libsigsegv is available, but only when using
32548         the library is necessary.
32549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
32550         comment, explaining why XSI check fails on Linux.
32551         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
32552         * tests/test-c-stack2.sh: Tweak skip message.
32553         * NEWS: Document new link-time requirements.
32554
32555 2008-07-16  Eric Blake  <ebb9@byu.net>
32556
32557         c-stack: Expose false positives when not using libsigsegv.
32558         * modules/c-stack-tests (Files): Expand test.
32559         * tests/test-c-stack.c (main): Add means to conditionally trigger
32560         non-overflow SIGSEGV.
32561         * tests/test-c-stack2.sh: New file.
32562
32563 2008-07-14  Bruno Haible  <bruno@clisp.org>
32564
32565         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
32566         Reported by Eric Blake.
32567
32568 2008-07-14  Sam Steingold  <sds@gnu.org>
32569             Bruno Haible  <bruno@clisp.org>
32570
32571         New module libsigsegv.
32572         * modules/libsigsegv: New file.
32573         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
32574         modifications.
32575         * MODULES.html.sh (Signal handling): New section.
32576
32577 2008-07-14  Bruno Haible  <bruno@clisp.org>
32578
32579         * modules/unictype/ctype-* (Description): Add the word "function".
32580         Improves the resulting doc in MODULES.html.
32581
32582 2008-07-12  Ben Pfaff  <blp@gnu.org>
32583
32584         Add longlong module.
32585         * modules/longlong: New file.
32586
32587 2008-07-12  Bruno Haible  <bruno@clisp.org>
32588
32589         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
32590         to empty.
32591
32592 2008-07-10  Ben Pfaff  <blp@gnu.org>
32593
32594         Add isnan module.
32595         * doc/posix-functions/isnan.texi: Mention new module.
32596         * lib/math.in.h: Define isnan macro if we have decided to replace
32597         it.
32598         * m4/isnan.m4: New file.
32599         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
32600         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
32601         also.
32602         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
32603         redundancy.
32604         * m4/math_h.m4: Initialize and substitute variables for isnan
32605         module.
32606         * modules/isnan: New file.
32607         * modules/isnan-tests: New file.
32608         * modules/math: Add substitutions for new module.
32609         * tests/test-isnan.c: New file.
32610         * MODULES.html.sh: Mention new module.
32611
32612 2008-07-10  Ben Pfaff  <blp@gnu.org>
32613
32614         Add isnanf module.
32615         * lib/isnanf.m4: New file.
32616         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
32617         (gl_HAVE_ISNANF_IN_LIBM): New macro.
32618         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
32619         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
32620         * modules/isnanf: New file.
32621         * modules/isnanf-tests: New file.
32622         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
32623         files.
32624         * tests/test-isnanf-nolibm.c: factored most of its contents into
32625         new file tests/test-isnanf.h.
32626         * tests/test-isnanf.h: New file.
32627         * tests/test-isnanf.c: New file.
32628         * MODULES.html.sh: Mention new module.
32629         * doc/glibc-functions/isnanf.texi: Mention new module.
32630
32631 2008-07-10  Ben Pfaff  <blp@gnu.org>
32632
32633         Add isnand module.
32634         * lib/isnand.h: New file.
32635         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
32636         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
32637         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
32638         functionality also.
32639         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
32640         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
32641         (gl_HAVE_ISNAND_IN_LIBM): New macro.
32642         * modules/isnand: New file.
32643         * modules/isnand-tests: New file.
32644         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
32645         files.
32646         * tests/test-isnand-nolibm.c: factored most of its contents into
32647         new file tests/test-isnand.h.
32648         * tests/test-isnand.h: New file.
32649         * tests/test-isnand.c: New file.
32650         * MODULES.html.sh: Mention new module.
32651
32652 2008-07-10  Ben Pfaff  <blp@gnu.org>
32653
32654         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
32655         * lib/isnand.h: Rename lib/isnand-nolibm.h.
32656         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
32657         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
32658         * modules/isnanf-nolibm: Update references to renamed files.
32659         * modules/isnand-nolibm: Likewise.
32660         * modules/isnanf-nolibm-tests: Likewise.
32661         * modules/isnand-nolibm-tests: Likewise.
32662         * lib/frexp.c: Likewise.
32663         * lib/isfinite.c: Likewise.
32664         * lib/signbitd.c: Likewise.
32665         * lib/signbitf.c: Likewise.
32666         * lib/vasnprintf.c: Likewise.
32667         * tests/test-ceilf1.c: Likewise.
32668         * tests/test-ceilf2.c: Likewise.
32669         * tests/test-floorf1.c: Likewise.
32670         * tests/test-floorf2.c: Likewise.
32671         * tests/test-frexp.c: Likewise.
32672         * tests/test-round1.c: Likewise.
32673         * tests/test-round2.c: Likewise.
32674         * tests/test-roundf1.c: Likewise.
32675         * tests/test-strtod.c: Likewise.
32676         * tests/test-trunc1.c: Likewise.
32677         * tests/test-trunc2.c: Likewise.
32678         * tests/test-truncf1.c: Likewise.
32679         * tests/test-truncf2.c: Likewise.
32680         * NEWS: Mention the renamed header files.
32681
32682 2008-07-11  Jim Meyering  <meyering@redhat.com>
32683
32684         vc-list-files: make the last-resort awk code more portable
32685         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
32686         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
32687         does not support it.
32688
32689 2008-07-10  Eric Blake  <ebb9@byu.net>
32690
32691         Work with tar's bootstrap.
32692         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
32693         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
32694         an m4 comment.
32695
32696 2008-07-09  Jim Meyering  <meyering@redhat.com>
32697
32698         posix-shell.m4: fix typo that made this test malfunction
32699         * m4/posix-shell.m4: Remove capitalization in variable name.
32700
32701 2008-07-08  Bruno Haible  <bruno@clisp.org>
32702
32703         * m4/onceonly.m4: Update comments.
32704         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32705
32706 2008-07-04  Jim Meyering  <meyering@redhat.com>
32707
32708         * users.txt: Add vc-dwim.
32709         (bison, coreutils): Use the gitweb URL.
32710
32711 2008-07-03  Jim Meyering  <meyering@redhat.com>
32712
32713         * users.txt: Add libffcall.  From Sam Steingold.
32714
32715 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
32716
32717         getdate.y: do not ignore TZ with relative day, month or year offset
32718         * lib/getdate.y (get_date): Move the tz-handling block to follow the
32719         relative-date-handling, since otherwise, the latter would clobber the
32720         sole output (an updated Start value) of the tz-handling block.
32721         * tests/test-getdate.c: Tests for the fix
32722
32723 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32724
32725         Recognize 'foo_LIBRARIES += libgnu.a'.
32726         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
32727         makefile snippet has already specified an installation location,
32728         also using '+='.
32729
32730 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
32731
32732         getdate.y: factor out common actions
32733         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
32734         Use them in place of open-coded actions.
32735
32736 2008-07-01  Simon Josefsson  <simon@josefsson.org>
32737
32738         Add self-test for getdate module.
32739         * modules/getdate-tests: New file.
32740         * tests/test-getdate.c: New file.
32741
32742 2008-06-29  Bruno Haible  <bruno@clisp.org>
32743
32744         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
32745         .gitignore.
32746         Reported by Sylvain Beucler <beuc@beuc.net>.
32747
32748 2008-06-29  Bruno Haible  <bruno@clisp.org>
32749
32750         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
32751         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
32752
32753 2008-06-29  Bruno Haible  <bruno@clisp.org>
32754
32755         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
32756         EXTRA_DIST.
32757         Reported by Sylvain Beucler <beuc@beuc.net>.
32758
32759 2008-06-26  Jim Meyering  <meyering@redhat.com>
32760
32761         make several modules depend on the "open" module
32762         This provides slightly increased consistency when opening-for-write
32763         the name of a non-directory spelled with a trailing slash.
32764         * modules/chdir-safer: Likewise.
32765         * modules/chown: Likewise.
32766         * modules/clean-temp: Likewise.
32767         * modules/copy-file: Likewise.
32768         * modules/fchdir: Likewise.
32769         * modules/fcntl-safer: Likewise.
32770         * modules/pipe: Likewise.
32771         * modules/utime: Likewise.
32772         Prompted by Eric Blake and Bruno Haible.
32773
32774 2008-06-24  Andreas Schwab  <schwab@suse.de>
32775
32776         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
32777         literals can be used as initializers for global variables.
32778
32779 2008-06-23  Eric Blake  <ebb9@byu.net>
32780
32781         Make gnulib-cache.m4 easier to diff.
32782         * gnulib-tool (func_import): Allow newlines when reading cached
32783         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
32784
32785 2008-06-23  Bruno Haible  <bruno@clisp.org>
32786
32787         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
32788         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
32789         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
32790         m4/signalblocking.m4.
32791         (gl_PREREQ_SIGACTION): Don't invoke it.
32792         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
32793         gl_PREREQ_SIG_HANDLER_H.
32794         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32795         Don't check for sigaction here.
32796
32797 2008-06-23  Bruno Haible  <bruno@clisp.org>
32798
32799         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
32800         (install_handlers): Don't set the SA_RESETHAND flag.
32801
32802 2008-06-23  Bruno Haible  <bruno@clisp.org>
32803
32804         * m4/sigaction.m4: Comment fixes.
32805         * lib/signal.in.h: Likewise.
32806
32807 2008-06-23  Eric Blake  <ebb9@byu.net>
32808
32809         Fix typo.
32810         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
32811
32812         Avoid SA_ namespace.
32813         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
32814         Reported by Ralf Wildenhues.
32815
32816         Avoid test failure due to SA_RESTORER.
32817         * tests/test-sigaction.c (SA_MASK): New macro.
32818         (main): Avoid failing due to extension flags being set.
32819         Reported by Jim Meyering.
32820
32821         Revert use of sig-handler.h in sigprocmask.c.
32822         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
32823         it requires the existence of struct sigaction.
32824         * lib/sigprocmask.c (handler_t): Restore typedef.
32825         (rpl_signal, old_handlers): Use local type.
32826
32827 2008-06-22  Bruno Haible  <bruno@clisp.org>
32828
32829         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
32830         conditionally.
32831         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32832
32833 2008-06-22  Bruno Haible  <bruno@clisp.org>
32834
32835         * doc/posix-functions/siginterrupt.texi: Move note.
32836
32837         * lib/signal.in.h (SA_RESTART): New macro.
32838         * lib/sigaction.c: Update comment.
32839
32840         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
32841
32842         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
32843         (gl_PREREQ_SIGPROCMASK): Invoke it.
32844         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
32845
32846         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
32847
32848         * lib/sigprocmask.c: Update a comment.
32849
32850 2008-06-21  Eric Blake  <ebb9@byu.net>
32851
32852         Use sigaction module rather than signal().
32853         * modules/c-stack (Depends-on): Add sigaction.
32854         * modules/fatal-signal (Depends-on): Likewise.
32855         * modules/nanosleep (Depends-on): Likewise.
32856         * modules/sigprocmask (Files): Add sig-handler.h.
32857         * modules/sigaction (Files): Likewise.
32858         * lib/sig-handler.h (get_handler): New file, suggested by Paul
32859         Eggert.
32860         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
32861         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
32862         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
32863         (init_fatal_signals): Likewise.
32864         * lib/nanosleep.c (rpl_nanosleep): Likewise.
32865         (siginterrupt): Delete fallback.
32866         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
32867         instead.
32868         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
32869         siginterrupt.
32870
32871         New module sigaction, for mingw.
32872         * modules/sigaction: New module...
32873         * modules/sigaction-tests: ...and its test.
32874         * m4/sigaction.m4: New file.
32875         * lib/sigaction.c: Likewise.
32876         * tests/test-sigaction.c: Likewise.
32877         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
32878         * modules/signal (Makefile.am): Likewise.
32879         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
32880         needed.
32881         * doc/posix-headers/signal.texi (signal.h): Mention provided
32882         types.
32883         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
32884         that sigaction is preferable.
32885         * doc/posix-functions/sigaction.texi (sigaction): Mention new
32886         module.
32887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32888         sigaction.
32889
32890         Improve robustness of sigprocmask by overriding signal.
32891         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
32892         is in use.
32893         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
32894         (SIGKILL, SIGSTOP): Provide fallbacks.
32895         (rpl_signal): Implement.
32896         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
32897         signal can be called inside handlers.
32898
32899         Fix nanosleep module on mingw.
32900         * modules/nanosleep (Depends-on): Add sys_select.
32901         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
32902
32903         Fix licensing of sigprocmask.
32904         * modules/raise (License): Relicense as LGPL.
32905
32906 2008-06-21  Bruno Haible  <bruno@clisp.org>
32907
32908         * lib/propername.c (proper_name_utf8): Don't use the transliterated
32909         result if it contains question marks.
32910         Reported by Michael Geng <linux@michaelgeng.de>.
32911
32912 2008-06-19  Bruno Haible  <bruno@clisp.org>
32913
32914         Fix CVS-ism.
32915         * doc/gnulib.texi: Include updated-stamp.texi.
32916         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
32917         (updated-stamp.texi): New rule.
32918         (gnulib.info): Depend on it.
32919         * doc/.gitignore: Add updated-stamp.texi.
32920         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
32921
32922 2008-06-19  Bruno Haible  <bruno@clisp.org>
32923
32924         * doc/Makefile (gnulib.info): Update and simplify dependencies.
32925         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32926
32927 2008-06-19  Eric Blake  <ebb9@byu.net>
32928
32929         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
32930         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
32931         Reported by Stepan Kasal.
32932
32933 2008-06-18  Bruno Haible  <bruno@clisp.org>
32934
32935         * lib/fatal-signal.c (init_fatal_signals): Add comment.
32936         Reported by Eric Blake.
32937
32938 2008-06-18  Eric Blake  <ebb9@byu.net>
32939
32940         Work around cygwin 1.5.25 strsignal bug.
32941         * tests/test-strsignal.c: Allow for const char *.
32942         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
32943
32944 2008-06-18  Simon Josefsson  <simon@josefsson.org>
32945
32946         * users.txt: Update URL to article and add author/date
32947         information.
32948
32949 2008-06-17  Bruno Haible  <bruno@clisp.org>
32950
32951         New macro gl_DISABLE_THREADS.
32952         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
32953         if the user did not pass --enable-threads or --disable-threads option.
32954         (gl_DISABLE_THREADS): New macro.
32955         Reported by Eric Blake <ebb9@byu.net>.
32956
32957 2008-06-17  Bruno Haible  <bruno@clisp.org>
32958
32959         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
32960         when the macro ignores it.
32961         Based on a patch by Eric Blake <ebb9@byu.net>.
32962
32963 2008-06-17  Bruno Haible  <bruno@clisp.org>
32964
32965         * modules/tls (License): Change to LGPLv2+.
32966         Reported by Eric Blake.
32967
32968 2008-06-17  Eric Blake  <ebb9@byu.net>
32969
32970         Simplify c-stack prerequisites.
32971         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
32972         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
32973         no longer requires <ucontext.h> to exist.  Optimize setrlimit
32974         check.
32975         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
32976         <sys/resource.h>.
32977
32978         Move c-stack test into testsuite.
32979         * modules/c-stack-tests: New file.
32980         * lib/c-stack.c [DEBUG]: Move test program...
32981         * tests/test-c-stack.c: ...into this new file.  Skip rather than
32982         fail test if sigaltstack is lacking.
32983         * tests/test-c-stack.sh: New driver file.
32984
32985 2008-06-16  Eric Blake  <ebb9@byu.net>
32986
32987         Use raise module consistently.
32988         * modules/fatal-signal (Depends-on): Add raise.
32989         * modules/sigprocmask (Depends-on): Likewise.
32990         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
32991         * lib/sigprocmask.c (sigprocmask): Likewise.
32992         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32993         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
32994
32995         Fix compliance bug in sigpending.
32996         * lib/sigprocmask.c (sigpending): Return pending array via
32997         parameter, not return value.
32998
32999 2008-06-14  Eric Blake  <ebb9@byu.net>
33000
33001         Improve obstack-printf test code.
33002         * tests/test-obstack-printf.c (test_function): Fix comment, and
33003         simplify usage of obstack_* in macros.  Add a test for coverage.
33004         Reported by Bruno Haible.
33005
33006 2008-06-14  Bruno Haible  <bruno@clisp.org>
33007
33008         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33009         array size as a constant, not as a const variable.
33010         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33011         AC_USE_SYSTEM_EXTENSIONS.
33012         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33013         Test whether the obstack_printf function actually exists.
33014         * modules/obstack-printf (Depends-on): Add extensions.
33015         (Include): Remove obstack.h.
33016         * modules/obstack-printf-posix (Depends-on): Add extensions.
33017         (Include): Remove obstack.h.
33018
33019 2008-06-13  Eric Blake  <ebb9@byu.net>
33020
33021         Add obstack-printf and obstack-printf-posix modules.
33022         * modules/obstack-printf: New file.
33023         * modules/obstack-printf-posix: Likewise.
33024         * MODULES.html.sh (Misc): Mention them.
33025         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33026         Likewise.
33027         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33028         Likewise.
33029         * modules/stdio (Makefile.am): Accomodate new modules.
33030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33031         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33032         Declare.
33033         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33034         functions.
33035         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33036         (gl_REPLACE_OBSTACK_PRINTF): New macros
33037         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33038         * tests/test-obstack-printf.c: New file.
33039         * modules/obstack-printf-tests: Likewise.
33040         * modules/obstack-printf-posix-tests: Likewise.
33041
33042 2008-06-11  Bruno Haible  <bruno@clisp.org>
33043
33044         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33045         * lib/open.c: Include errno.h.
33046         (open): Fail when attempting to write to a file that has a trailing
33047         slash.
33048         * tests/test-open.c (main): Test against trailing slash bug.
33049         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33050
33051 2008-06-10  Bruno Haible  <bruno@clisp.org>
33052
33053         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33054         for $? to work inside the trap command, with various /bin/sh-s.
33055         * tests/test-vc-list-files-cvs.sh: Likewise.
33056
33057 2008-06-10  Bruno Haible  <bruno@clisp.org>
33058
33059         * lib/acl-internal.h: Don't include gettext.h here.
33060         * lib/set-mode-acl.c: Include gettext.h here.
33061         * lib/copy-acl.c: Likewise.
33062
33063 2008-06-10  Bruno Haible  <bruno@clisp.org>
33064
33065         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33066         * lib/wait-process.c (wait_subprocess): Likewise.
33067         * lib/execute.h (execute): Add termsigp argument.
33068         * lib/execute.c (execute): Likewise.
33069         * lib/csharpcomp.c (compile_csharp_using_pnet,
33070         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33071         * lib/csharpexec.c (execute_csharp_using_pnet,
33072         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33073         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33074         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33075         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33076         is_jikes_present): Update.
33077         * lib/javaexec.c (execute_java_class): Update.
33078         * lib/javaversion.c (execute_and_read_line): Update.
33079         * NEWS: Document the changes.
33080         Reported by Eric Blake.
33081
33082 2008-06-10  Eric Blake  <ebb9@byu.net>
33083
33084         Add missing include.
33085         * tests/test-strstr.c (includes): Add <signal.h>.
33086         * tests/test-strcasestr.c (includes): Likewise.
33087         * tests/test-memmem.c (includes): Likewise.
33088
33089 2008-06-10  Bruno Haible  <bruno@clisp.org>
33090
33091         * lib/wait-process.c (wait_subprocess): Add an assertion.
33092
33093 2008-06-10  Bruno Haible  <bruno@clisp.org>
33094
33095         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33096
33097 2008-06-10  Bruno Haible  <bruno@clisp.org>
33098
33099         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33100         using alarm().
33101         * tests/test-strcasestr.c (main): Likewise.
33102         * tests/test-strstr.c (main): Likewise.
33103
33104 2008-06-09  Bruno Haible  <bruno@clisp.org>
33105
33106         Work around the Solaris 10 ACE ACLs ABI change.
33107         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33108         declare if ACL_NO_TRIVIAL is present.
33109         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33110         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33111         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33112         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33113         define if ACL_NO_TRIVIAL is present.
33114         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33115         and use the current ABI.
33116         (file_has_acl): Use same #if condition as elsewhere.
33117         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33118         in use, and use the current ABI.
33119         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33120         Reported by Jim Meyering.
33121
33122 2008-06-09  Eric Blake  <ebb9@byu.net>
33123
33124         Work around environments that (stupidly) ignore SIGALRM.
33125         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33126         before using alarm().
33127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33128         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33129         Reported by Ian Beckwith <ianb@erislabs.net>.
33130
33131         Produce autobuild blurb earlier in log.
33132         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33133
33134 2008-06-09  Jim Meyering  <meyering@redhat.com>
33135         and OndÅ™ej Vašík  <ovasik@redhat.com>
33136
33137         utimens.c: correct kernel bug work-around
33138         OndÅ™ej Vašík found that the invalid return value of 280 indicates
33139         failure, not success, and the kernel bug we're trying to work
33140         around affects not just the utimensat call, but also the fallback
33141         futimens call.
33142         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33143         not success.
33144         [HAVE_FUTIMENS]: Use the same work-around, here.
33145
33146 2008-06-09  Jim Meyering  <meyering@redhat.com>
33147
33148         add more guards around definition of ACE_-related code
33149         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33150         ALLOW and ACE_OWNER are also defined.
33151
33152 2008-06-08  Bruno Haible  <bruno@clisp.org>
33153
33154         * lib/acl-internal.h: Add me as co-author.
33155         * lib/file-has-acl.c: Likewise.
33156         * lib/set-mode-acl.c: Likewise.
33157         * lib/copy-acl.c: Likewise.
33158
33159 2008-06-08  Bruno Haible  <bruno@clisp.org>
33160
33161         Add support for AIX ACLs.
33162         * lib/acl-internal.h (acl_nontrivial): New declaration.
33163         * lib/file-has-acl.c (acl_nontrivial): New function.
33164         (file_has_acl): Add implementation using AIX 4 ACL API.
33165         * lib/set-mode-acl.c (qset_acl): Likewise.
33166         * lib/copy-acl.c (qcopy_acl): Likewise.
33167
33168 2008-06-08  Bruno Haible  <bruno@clisp.org>
33169
33170         Add support for HP-UX ACLs.
33171         * lib/acl-internal.h (acl_nontrivial): New declaration.
33172         * lib/file-has-acl.c (acl_nontrivial): New function.
33173         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33174         * lib/set-mode-acl.c (qset_acl): Likewise.
33175         * lib/copy-acl.c (qcopy_acl): Likewise.
33176
33177 2008-06-08  Bruno Haible  <bruno@clisp.org>
33178
33179         Add support for Cygwin ACLs.
33180         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33181         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33182         the chmod_or_fchmod call.
33183         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33184
33185 2008-06-08  Bruno Haible  <bruno@clisp.org>
33186
33187         Fix bug with setuid modes in Solaris 10+ code.
33188         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33189         succeeded, when the mode contains some special bits.
33190
33191 2008-06-08  Bruno Haible  <bruno@clisp.org>
33192
33193         Add support for Solaris 7..10 ACLs.
33194         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33195         declarations.
33196         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33197         functions.
33198         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33199         * lib/set-mode-acl.c (qset_acl): Likewise.
33200         * lib/copy-acl.c (qcopy_acl): Likewise.
33201
33202 2008-06-08  Bruno Haible  <bruno@clisp.org>
33203
33204         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33205         declaration.
33206         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33207         (acl_access_nontrivial): Remove MacOS X case.
33208         (file_has_acl): Use acl_extended_nontrivial.
33209         * lib/copy-acl.c (qcopy_acl): Likewise.
33210
33211 2008-06-08  Bruno Haible  <bruno@clisp.org>
33212
33213         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33214
33215 2008-06-08  Jim Meyering  <meyering@redhat.com>
33216
33217         * modules/acl (Maintainer): Add Bruno Haible.
33218
33219 2008-06-07  Bruno Haible  <bruno@clisp.org>
33220
33221         Improve support for Tru64 ACLs.
33222         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33223         ACL on OSF/1.
33224
33225 2008-06-07  Bruno Haible  <bruno@clisp.org>
33226
33227         Add support for MacOS X ACLs.
33228         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33229         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33230         * lib/set-mode-acl.c (qset_acl): Likewise.
33231         * lib/copy-acl.c (qcopy_acl): Likewise.
33232
33233 2008-06-07  Bruno Haible  <bruno@clisp.org>
33234
33235         Fix memory leak introduced on 2008-05-22.
33236         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33237         use.
33238
33239 2008-06-07  Bruno Haible  <bruno@clisp.org>
33240
33241         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33242         to construct an empty ACL.
33243
33244 2008-06-07  Bruno Haible  <bruno@clisp.org>
33245
33246         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33247         precisely.
33248         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33249
33250 2008-06-07  Bruno Haible  <bruno@clisp.org>
33251
33252         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33253         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33254
33255 2008-06-07  Bruno Haible  <bruno@clisp.org>
33256
33257         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33258         regardless of POSIX.
33259         * doc/posix-functions/_longjmp.texi: Likewise.
33260         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33261         SystemV platform in this case.
33262
33263 2008-06-06  Eric Blake  <ebb9@byu.net>
33264
33265         Document abort() bugs.
33266         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33267
33268         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33269         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33270         sigsetjmp.
33271         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33272         siglongjmp, but only as a macro.
33273         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33274         is obsolete.
33275         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33276
33277         Tweak documentation to cover cygwin argz bugs.
33278         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33279         argz bug fix; no code change needed since no cygwin releases
33280         occurred between the last fix and the bug being tested.
33281         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33282         module and recently fixed cygwin bugs.
33283         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33284         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33285         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33286         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33287         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33288         Likewise.
33289         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33290         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33291         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33292         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33293         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33294         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33295         Likewise.
33296
33297         Avoid gcc warning on cygwin.
33298         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33299         !ACL_NO_TRIVIAL]: Avoid unused variable.
33300
33301 2008-06-05  Eric Blake  <ebb9@byu.net>
33302
33303         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33304         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33305         git-version-gen fails to come up with a version.
33306         Reported by Simon Josefsson.
33307
33308 2008-06-05  Jim Meyering  <meyering@redhat.com>
33309             Paul Eggert  <eggert@cs.ucla.edu>
33310
33311         utimens.c: work around a probable Linux kernel bug
33312         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33313         appears to be a kernel bug that causes utimensat to return 280
33314         instead of 0, indicating success.
33315
33316 2008-06-04  Bruno Haible  <bruno@clisp.org>
33317
33318         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33319         2008-06-01 commit.
33320
33321 2008-06-04  Bruno Haible  <bruno@clisp.org>
33322
33323         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33324         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33325         (file_has_acl): Use it. Save errno afterwards.
33326         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33327
33328 2008-06-03  Bruno Haible  <bruno@clisp.org>
33329
33330         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33331         draft code. Simplify #ifs.
33332         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33333         Put Solaris code after POSIX-draft code. Fix comments regarding
33334         Solaris 10, HP-UX. Mention Cygwin.
33335         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33336
33337 2008-06-03  Eric Blake  <ebb9@byu.net>
33338
33339         Provide fallback for older kernels.
33340         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
33341         Provide runtime fallback if kernel lacks support.
33342         Reported by Mike Frysinger.
33343
33344 2008-06-02  Bruno Haible  <bruno@clisp.org>
33345
33346         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
33347         it exists.
33348
33349 2008-06-02  Bruno Haible  <bruno@clisp.org>
33350
33351         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
33352         * lib/copy-acl.c (qcopy_acl): Update comment.
33353
33354 2008-06-02  Bruno Haible  <bruno@clisp.org>
33355
33356         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
33357         like ACL APIs.
33358
33359 2008-06-02  Bruno Haible  <bruno@clisp.org>
33360
33361         * tests/test-file-has-acl.sh: Use different code for Cygwin.
33362         * tests/test-set-mode-acl.sh: Likewise.
33363         * tests/test-copy-acl.sh: Likewise.
33364         * tests/test-copy-file.sh: Likewise.
33365
33366 2008-06-02  Bruno Haible  <bruno@clisp.org>
33367
33368         * tests/test-file-has-acl.sh: Remove unused code.
33369
33370 2008-06-01  Bruno Haible  <bruno@clisp.org>
33371
33372         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33373         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33374         messages.
33375         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33376
33377 2008-06-01  Bruno Haible  <bruno@clisp.org>
33378
33379         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33380         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33381         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33382         APIs.
33383         * modules/acl-tests (configure.ac): Remove tests now contained in
33384         m4/acl.m4.
33385
33386 2008-06-02  Jim Meyering  <meyering@redhat.com>
33387
33388         announce-gen: use a better key-server host name
33389         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33390         it may be more consistently reliable.  Suggested by Werner Koch
33391         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33392
33393 2008-06-01  Bruno Haible  <bruno@clisp.org>
33394
33395         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33396         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33397
33398 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33399
33400         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33401
33402 2008-06-01  Bruno Haible  <bruno@clisp.org>
33403
33404         New ACL tests.
33405         * tests/test-file-has-acl.sh: New file.
33406         * tests/test-file-has-acl.c: New file.
33407         * tests/test-set-mode-acl.sh: New file.
33408         * tests/test-set-mode-acl.c: New file.
33409         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33410         * tests/test-copy-acl.c: New file.
33411         * modules/acl-tests: New file, based on modules/copy-file-tests.
33412         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
33413         (Depends-on): Add acl-tests.
33414         (configure.ac): Remove checks.
33415         (Makefile.am): Don't create test-sameacls program here any more.
33416
33417 2008-06-01  Bruno Haible  <bruno@clisp.org>
33418
33419         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
33420         * tests/test-sameacls.c: Include progname.h.
33421         (main): Invoke set_program_name. Portability fixes for MacOS X,
33422         Solaris, HP-UX.
33423
33424 2008-06-01  Bruno Haible  <bruno@clisp.org>
33425
33426         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
33427         function.
33428         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
33429
33430 2008-06-01  Bruno Haible  <bruno@clisp.org>
33431
33432         * modules/rpmatch (Depends-on): Add strdup.
33433
33434 2008-06-01  Bruno Haible  <bruno@clisp.org>
33435
33436         * lib/pipe.c: Include unistd-safer.h.
33437         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
33438         * modules/pipe (Depends-on): Add unistd-safer.
33439
33440 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33441
33442         * modules/autobuild (configure.ac): Call AB_INIT.
33443
33444 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33445
33446         * tests/test-getaddrinfo.c: Don't print debug messages by default.
33447         Suggested by Bruno Haible <bruno@clisp.org>.
33448
33449 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33450
33451         * tests/test-base64.c: Cast size_t to unsigned long when invoking
33452         printf.  Use %lu instead of %d.  Reported by Bruno Haible
33453         <bruno@clisp.org>.
33454
33455 2008-05-29  Eric Blake  <ebb9@byu.net>
33456
33457         Prefer new POSIX 200x interfaces over futimesat.
33458         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
33459         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
33460         when available.
33461         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
33462
33463 2008-05-28  Bruno Haible  <bruno@clisp.org>
33464
33465         * modules/stpcpy (License): Change to LGPLv2+.
33466         Requested by David Lutterkort <dlutter@redhat.com>.
33467
33468 2008-05-27  Bruno Haible  <bruno@clisp.org>
33469
33470         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
33471         current mingw.
33472         Reported by Jose E. Marchesi <jemarch@gnu.org>.
33473
33474 2008-05-27  Bruno Haible  <bruno@clisp.org>
33475
33476         * modules/iconv_open (Link): New section, from module 'iconv'.
33477         * modules/striconv (Link): Likewise.
33478         * modules/striconveh (Link): Likewise.
33479         * modules/xstriconv (Link): Likewise.
33480         * modules/unicodeio (Link): Likewise.
33481         * modules/propername (Link): Likewise.
33482         Reported by Jim Meyering.
33483
33484 2008-05-26  Jim Meyering  <meyering@redhat.com>
33485
33486         sha256: do not artificially restrict buffer length to be < 2^32
33487         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
33488         uint32_t to size_t.
33489         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
33490         to match.
33491
33492         avoid unaligned access errors, e.g., on sparc
33493         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
33494         direct access through a possibly-unaligned uint64* pointer.
33495         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
33496         direct access through a possibly-unaligned uint32* pointer.
33497         Prompted by this patch from Tom "spot" Callaway:
33498         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
33499
33500         sha512.c: fix typo in comment
33501         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
33502
33503 2008-05-25  Bruno Haible  <bruno@clisp.org>
33504
33505         * lib/set-mode-acl.c: Renamed from lib/acl.c.
33506         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
33507         (Makefile.am): Update lib_SOURCES.
33508
33509 2008-05-25  Bruno Haible  <bruno@clisp.org>
33510
33511         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
33512
33513 2008-05-25  Jim Meyering  <meyering@redhat.com>
33514
33515         useless-if-before-free: freed expr may have white-space differences
33516         * build-aux/useless-if-before-free: Recognize cases in which the
33517         freed expression differs from the tested one in embedded white
33518         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
33519         $1 was used, so we can't make any regexp shy.  Improved tests now
33520         detect this.
33521
33522         useless-if-before-free: accept white space in the expression.
33523         * build-aux/useless-if-before-free: For now, any white space
33524         in the expression must be identical in the free argument.
33525
33526         useless-if-before-free: efficiency tweak
33527         * build-aux/useless-if-before-free: Make the expression-matching
33528         regexp "shy".
33529         Make the *outer* regexp shy, not the expr-matching one.
33530
33531         update code-in-comment to accept cast of free arg
33532         * build-aux/useless-if-before-free: Update regexp.
33533
33534 2008-05-25  Bruno Haible  <bruno@clisp.org>
33535
33536         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
33537         * modules/copy-file-tests (Files, Makefile.am): Update.
33538         * tests/test-copy-file.c (func_test_copy): Update.
33539
33540 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
33541
33542         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
33543
33544 2008-05-23  Bruno Haible  <bruno@clisp.org>
33545
33546         Improve support for ACLs on OSF/1.
33547         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
33548         Remove fallback for unknown flavors of ACLs.
33549
33550 2008-05-22  Bruno Haible  <bruno@clisp.org>
33551
33552         Add support for ACLs on OSF/1.
33553         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
33554         replacements.
33555         (acl_free_text): New macro fallback.
33556         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33557         acl_free.
33558         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
33559         acl_free_text function. Require AC_C_INLINE.
33560
33561 2008-05-22  Bruno Haible  <bruno@clisp.org>
33562
33563         Make copy_acl work on MacOS X 10.5.
33564         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
33565         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
33566         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
33567         If MODE_INSIDE_ACL, don't assume that every system has the same text
33568         representation for ACLs as FreeBSD.
33569         * lib/copy-acl.c (copy_acl): Add support for platforms with
33570         !MODE_INSIDE_ACL.
33571         * lib/file-has-acl.c (file_has_acl): Likewise.
33572         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
33573         FreeBSD, MacOS X, or IRIX, respectively.
33574
33575 2008-05-22  Bruno Haible  <bruno@clisp.org>
33576
33577         * lib/acl.h: Don't include <sys/acl.h>.
33578         (GETACLCNT): Move fallback to lib/acl-internal.h.
33579         * lib/acl-internal.h: Include <sys/acl.h> here.
33580         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
33581
33582 2008-05-22  Bruno Haible  <bruno@clisp.org>
33583
33584         Split off copy_acl function to separate file.
33585         * lib/copy-acl.c: New file, extracted from lib/acl.c.
33586         * lib/acl.c (copy_acl): Moved function to separate file.
33587         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
33588         * modules/acl (Files): Add lib/copy-acl.c.
33589         (Makefiles.am): Augment lib_SOURCES.
33590
33591 2008-05-22  Bruno Haible  <bruno@clisp.org>
33592
33593         * modules/copy-file-tests: New file.
33594         * tests/test-copy-file.sh: New file.
33595         * tests/test-copy-file.c: New file.
33596         * tests/test-copy-file-sameacls.c: New file.
33597
33598 2008-05-22  Eric Blake  <ebb9@byu.net>
33599
33600         Avoid gcc warning.
33601         * tests/test-memcmp.c (main): Pass NULL indirectly.
33602
33603 2008-05-21  Bruno Haible  <bruno@clisp.org>
33604
33605         Add reference doc about ACLs.
33606         * doc/acl-resources.txt: New file.
33607         * doc/acl-cygwin.txt: New file.
33608
33609 2008-05-21  Bruno Haible  <bruno@clisp.org>
33610
33611         Avoid one more warning from gcc.
33612         * lib/vasnprintf.c (IF_LINT): Update comments.
33613         (VASNPRINTF): Use it also for the 'prefix' array initializer.
33614
33615 2008-05-21  Jim Meyering  <meyering@redhat.com>
33616
33617         avoid a warning from gcc
33618         * lib/vasnprintf.c (IF_LINT): Define.
33619         (scale10_round_decimal_long_double):
33620         Use it to avoid a "may be used uninitialized" warning.
33621         (scale10_round_decimal_double): Likewise.
33622
33623 2008-05-21  Simon Josefsson  <simon@josefsson.org>
33624
33625         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
33626         declared.
33627
33628 2008-05-20  Bruno Haible  <bruno@clisp.org>
33629
33630         * tests/test-memcmp.c (main): Test also the sign of the result. Test
33631         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
33632
33633 2008-05-20  Simon Josefsson  <simon@josefsson.org>
33634
33635         * modules/memcmp-tests: New file.
33636         * tests/test-memcmp.c: New file.
33637
33638 2008-05-19  Bruno Haible  <bruno@clisp.org>
33639
33640         * modules/propername (Notice, configure.ac): Put quoted "..." into
33641         --keyword option.
33642         * lib/propername.h: Update comments accordingly.
33643         Reported by Eric Blake.
33644
33645 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
33646
33647         * modules/getpass-gnu (Depends-on): Add fseeko.
33648
33649 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33650
33651         * modules/base64-tests: New file.
33652
33653 2008-05-19  Bo Borgerson <gigabo@gmail.com>
33654
33655         * lib/base64.c (base64_decode_ctx): If a decode context structure
33656         was passed in use it to ignore newlines.  If a context structure
33657         was _not_ passed in, continue to treat newlines as garbage (this
33658         is the historical behavior).  Formerly base64_decode.
33659         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33660         takes a decode context structure.
33661         * lib/base64.h (base64_decode): Macro for four-argument calls.
33662         (base64_decode_alloc): Likewise.
33663         * lib/base64.c (base64_decode_ctx): If a decode context structure
33664         was passed in use it to ignore newlines.  If a context structure
33665         was _not_ passed in, continue to treat newlines as garbage (this
33666         is the historical behavior).  Formerly base64_decode.
33667         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33668         takes a decode context structure.
33669         * lib/base64.h (base64_decode): Macro for four-argument calls.
33670         (base64_decode_alloc): Likewise.
33671
33672 2008-05-19  Jim Meyering  <meyering@redhat.com>
33673
33674         avoid a warning from gcc
33675         * lib/trim.c (IF_LINT): Define.
33676         (trim2): Use it to avoid a "may be used uninitialized" warning.
33677
33678         Fix doc typo.
33679         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
33680
33681 2008-05-19  Bruno Haible  <bruno@clisp.org>
33682
33683         * doc/glibc-functions/getpass.texi: Document limits of other
33684         implementations.
33685
33686 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33687             Bruno Haible <bruno@clisp.org>
33688
33689         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
33690
33691 2008-05-18  Bruno Haible  <bruno@clisp.org>
33692
33693         * modules/propername: New file, from GNU gettext.
33694         * lib/propername.h: New file, from GNU gettext.
33695         * lib/propername.c: New file, from GNU gettext.
33696         * MODULES.html.sh (Internationalization functions): Add propername.
33697
33698 2008-05-16  Jim Meyering  <meyering@redhat.com>
33699             Bruno Haible  <bruno@clisp.org>
33700
33701         Avoid some warnings from "gcc -Wshadow".
33702         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
33703
33704 2008-05-15  Eric Blake  <ebb9@byu.net>
33705
33706         Extend previous patch to cygwin 1.7.0.
33707         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
33708         fast implementation in cygwin >= 1.7.0.
33709         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33710         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33711
33712 2008-05-15  Bruno Haible  <bruno@clisp.org>
33713
33714         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
33715         implementation in glibc >= 2.9.
33716         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33717         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33718
33719 2008-05-15  Bruno Haible  <bruno@clisp.org>
33720
33721         * MODULES.html.sh (Internationalization functions): Remove linebreak.
33722         (Unicode string functions): Add unilbrk/*.
33723         Reported by Karl Berry.
33724
33725 2008-05-15  Eric Blake  <ebb9@byu.net>
33726
33727         Fix violation of <stdbool.h> replacement in regex.
33728         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
33729         * lib/regexec.c (re_search_internal): Likewise.
33730         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
33731
33732 2008-05-15  Jim Meyering  <meyering@redhat.com>
33733
33734         avoid distracting test output when git or cvs is not found
33735         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
33736         * tests/test-vc-list-files-git.sh: Likewise.
33737
33738 2008-05-15  Eric Blake  <ebb9@byu.net>
33739
33740         Glibc finally accepted the memmem speedup code, bugzilla #5514.
33741         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
33742         glibc version.
33743         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33744         * doc/posix-functions/strstr.texi (strstr): Likewise.
33745         * lib/str-two-way.h (MAX): Sychronize with glibc.
33746
33747 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
33748
33749         * lib/regcomp.c (optimize_utf8): Add a note on why we test
33750         opr.ctx_type.
33751         (calc_first): Initialize constraint field.
33752         (duplicate_node_closure): Use it instead of special casing ANCHORS.
33753         Fix grammar.
33754         (duplicate_node): Merge constraint field for all node types.
33755         (calc_eclosure_iter): Look at constraint field for all node types.
33756         * lib/regex_internal.c (create_cd_newstate): Don't look at
33757         opr.ctx_type.
33758
33759 2008-05-14  Bruno Haible  <bruno@clisp.org>
33760
33761         Help GCC to do better code generation.
33762         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
33763         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
33764         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
33765         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
33766         Declare with attribute 'malloc' if supported.
33767
33768 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
33769
33770         use "echo STR|wc -c" rather than unportable "expr length STR"
33771         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
33772         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
33773
33774 2008-05-14  Jim Meyering  <meyering@redhat.com>
33775
33776         use dd ibs=$n count=1 ... rather than less-portable head -c$n
33777         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
33778         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
33779         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
33780         via Collin Lasse.
33781
33782 2008-05-14  Eric Blake  <ebb9@byu.net>
33783
33784         Avoid quadratic growth in gl_LIBSOURCES.
33785         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
33786         Suggested by Bruno Haible.
33787
33788         Test xmemdup0.
33789         * modules/xmemdup0-tests: New file.
33790         * tests/test-xmemdup0.c: Likewise.
33791
33792 2008-05-13  Eric Blake  <ebb9@byu.net>
33793
33794         Split xmemdup0 into its own module.
33795         * modules/xmemdup0: New file.
33796         * lib/xmemdup0.h: Likewise.
33797         * lib/xmemdup0.c: Likewise.
33798         * MODULES.html.sh (Memory management functions): Add xmemdup0.
33799         * lib/xalloc.h (xmemdup0): Remove.
33800         * lib/xmalloc.c (xmemdup0): Likewise.
33801
33802 2008-05-13  Eric Blake  <ebb9@byu.net>
33803             Bruno Haible  <bruno@clisp.org>
33804
33805         Reduce number of forks required during autoconf.
33806         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
33807         and gl_LIBSOURCES_DIR.
33808         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
33809         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
33810         m4_syscmd per file.
33811         <m4_foreach_w>: Move...
33812         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
33813
33814 2008-05-13  Eric Blake  <ebb9@byu.net>
33815
33816         * gnulib-tool: Fix various comment typos.
33817
33818 2008-05-12  Bruno Haible  <bruno@clisp.org>
33819
33820         Tailor the linebreaking algorithm.
33821         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
33822
33823 2008-05-12  Bruno Haible  <bruno@clisp.org>
33824
33825         Update to Unicode 5.0.0.
33826         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33827         LBP_JV, LBP_JT. Redistribute values.
33828         (unilbrk_table): Change size.
33829         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
33830         Unicode TR#14 rev. 22.
33831         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33832         LBP_JV, LBP_JT. Redistribute values.
33833         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
33834         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
33835         Update.
33836         * lib/unilbrk/lbrkprop1.h: Regenerated.
33837         * lib/unilbrk/lbrkprop2.h: Regenerated.
33838         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
33839         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
33840         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
33841         Likewise.
33842         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
33843         Likewise.
33844         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
33845         result.
33846         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
33847         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
33848         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
33849         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
33850         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
33851         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
33852
33853 2008-05-11  Bruno Haible  <bruno@clisp.org>
33854
33855         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
33856
33857 2008-05-11  Bruno Haible  <bruno@clisp.org>
33858
33859         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
33860         * modules/unilbrk/gen-lbrk: New file.
33861
33862 2008-05-11  Bruno Haible  <bruno@clisp.org>
33863
33864         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
33865         * m4/sha512.m4 (gl_SHA512): Likewise.
33866
33867 2008-05-11  Jim Meyering  <meyering@redhat.com>
33868
33869         New modules: crypto/sha256, crypto/sha512 (from coreutils)
33870         * modules/crypto/sha256: New file.
33871         * modules/crypto/sha512: Likewise.
33872         * lib/sha256.c: Likewise.
33873         * lib/sha256.h: Likewise.
33874         * lib/sha512.c: Likewise.
33875         * lib/sha512.h: Likewise.
33876         * lib/u64.h: Likewise.
33877         * m4/sha256.m4: Likewise.
33878         * m4/sha512.m4: Likewise.
33879         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
33880
33881 2008-05-10  Bruno Haible  <bruno@clisp.org>
33882
33883         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
33884         (Input/Output <stdio.h>): Add xprintf.
33885         (Signal handling <signal.h>): Add strsignal.
33886         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
33887         (Core language properties): Add func.
33888         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
33889         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
33890         strings.
33891         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
33892         (Input/output): New section.
33893         (File system functions): Add openat-die, stat-macros.
33894         (Networking functions): Add sockets.
33895         (Unicode string functions): Add unictype/*.
33896         (Support for building libraries and executables): Add gperf.
33897         (Support for building documentation): Add agpl-3.0.
33898         (Misc): Add nocrash.
33899
33900 2008-05-10  Bruno Haible  <bruno@clisp.org>
33901
33902         * modules/unictype/gen-ctype: New file.
33903
33904 2008-05-10  Jim Meyering  <meyering@redhat.com>
33905
33906         Make chdir-safer.c more efficient on a system with no symlinks.
33907         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
33908         also if ELOOP is zero.  Suggested by Bruno Haible.
33909
33910         Make chdir-safer.c slightly safer.
33911         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
33912         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
33913
33914         Avoid compile failure on systems without ELOOP (like mingw).
33915         * lib/chdir-safer.c (ELOOP): Define if not already defined.
33916         Reported by Bruno Haible.
33917
33918 2008-05-10  Bruno Haible  <bruno@clisp.org>
33919
33920         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
33921         (is_utf8_encoding): Use a case-insensitive comparison.
33922         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
33923         streq.
33924
33925 2008-05-10  Bruno Haible  <bruno@clisp.org>
33926
33927         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
33928         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
33929         * lib/unilbrk/ulc-common.h (iconv_string_length,
33930         iconv_string_keeping_offsets): Remove declarations.
33931         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
33932         Don't include <iconv.h>, streq.h, xsize.h.
33933         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
33934         conversion.
33935         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
33936         <iconv.h>, streq.h, xsize.h.
33937         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
33938         conversion.
33939         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
33940         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
33941         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
33942         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
33943
33944 2008-05-10  Bruno Haible  <bruno@clisp.org>
33945
33946         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
33947         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
33948
33949         * modules/unilbrk/u32-width-linebreaks-tests: New file.
33950         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
33951
33952         * modules/unilbrk/u16-width-linebreaks-tests: New file.
33953         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
33954
33955         * modules/unilbrk/u8-width-linebreaks-tests: New file.
33956         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
33957
33958         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
33959         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
33960
33961         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
33962         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
33963
33964         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
33965         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
33966
33967         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
33968         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
33969
33970 2008-05-10  Bruno Haible  <bruno@clisp.org>
33971
33972         Split up 'linebreak' module.
33973         * lib/unilbrk.h: New file, based on lib/linebreak.h.
33974         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
33975         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
33976         modifications.
33977         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
33978         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
33979         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
33980         lib/linebreak.c.
33981         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
33982         lib/linebreak.c.
33983         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
33984         lib/linebreak.c.
33985         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
33986         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
33987         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
33988         lib/linebreak.c.
33989         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
33990         lib/linebreak.c.
33991         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
33992         lib/linebreak.c.
33993         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
33994         lib/linebreak.c.
33995         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
33996         lib/linebreak.c.
33997         * modules/unilbrk/base: New file.
33998         * modules/unilbrk/tables: New file.
33999         * modules/unilbrk/u8-possible-linebreaks: New file.
34000         * modules/unilbrk/u16-possible-linebreaks: New file.
34001         * modules/unilbrk/u32-possible-linebreaks: New file.
34002         * modules/unilbrk/ulc-common: New file.
34003         * modules/unilbrk/ulc-possible-linebreaks: New file.
34004         * modules/unilbrk/u8-width-linebreaks: New file.
34005         * modules/unilbrk/u16-width-linebreaks: New file.
34006         * modules/unilbrk/u32-width-linebreaks: New file.
34007         * modules/unilbrk/ulc-width-linebreaks: New file.
34008         * lib/linebreak.h: Remove file.
34009         * lib/linebreak.c: Remove file.
34010         * m4/linebreak.m4: Remove file.
34011         * modules/linebreak: Remove file.
34012         * NEWS: Mention the changes.
34013
34014 2008-05-09  Eric Blake  <ebb9@byu.net>
34015
34016         Add xmemdup0.
34017         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34018         implementation.
34019         * lib/xmalloc.c (xmemdup0): New C implementation.
34020
34021 2008-05-08  Bruno Haible  <bruno@clisp.org>
34022
34023         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34024
34025 2008-05-07  Eric Blake  <ebb9@byu.net>
34026
34027         Support cross-compilation of <wctype.h>.
34028         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34029         AC_CACHE_CHECK.
34030
34031 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34032
34033         * build-aux/vc-list-files: Add support for bzr.
34034
34035 2008-05-03  Jim Meyering  <meyering@redhat.com>
34036
34037         avoid failed assertion with tight malloc
34038         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34039
34040 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34041
34042         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34043         are needed from arpa/inet.h.
34044         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34045         Reported by Bruno Haible.
34046
34047 2008-05-02  Jim Meyering  <meyering@redhat.com>
34048
34049         avoid compilation error on FreeBSD 6
34050         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34051
34052 2008-05-01  Jim Meyering  <meyering@redhat.com>
34053
34054         useless-if-before-free: correct --help's exit status description
34055         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34056         for one or more matches, etc.  Reported by Bruno Haible.
34057
34058         vc-list-files: make the stand-alone gnulib test work
34059         * modules/vc-list-files-tests (configure.ac):
34060         Define and AC_SUBST abs_aux_dir.
34061         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34062         $(abs_top_srcdir) to each script and having each of them
34063         duplicate the work of setting PATH, set PATH here, using
34064         the new variable, abs_aux_dir instead.
34065         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34066         * tests/test-vc-list-files-git.sh: Likewise.
34067         Reported by Bruno Haible.
34068
34069 2008-05-01  Bruno Haible  <bruno@clisp.org>
34070
34071         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34072         reallocation. Rename 'done' to 'found_delimiter'.
34073
34074 2008-05-01  Jim Meyering  <meyering@redhat.com>
34075
34076         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34077         * build-aux/vc-list-files: Use `...`, not $(...).
34078
34079 2008-04-30  Jim Meyering  <meyering@redhat.com>
34080
34081         add tests for vc-list-files
34082         * modules/vc-list-files-tests: New module.
34083         * tests/test-vc-list-files-cvs.sh: New file.
34084         * tests/test-vc-list-files-git.sh: New file.
34085
34086         avoid a warning from gcc
34087         * lib/getndelim2.c (IF_LINT): Define.
34088         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34089
34090         vc-list-files: work properly with build-aux/cvsu, too
34091         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34092         to all cvs-based clauses.
34093
34094         vc-list-files: work properly in the CVS+awk case, too
34095         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34096
34097         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34098         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34099         take more than one file argument, so .  Add quotes, just in case $dir
34100         ever contains a shell meta-character.  Prompted by Soren Hansen in
34101         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34102
34103 2008-04-29  Eric Blake  <ebb9@byu.net>
34104
34105         Optimize getndelim2 to use block operations when possible.
34106         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34107         freadseek, and memchr2.
34108         * lib/getndelim2.c (getndelim2): Use them for block reads.
34109
34110 2008-04-29  Bruno Haible  <bruno@clisp.org>
34111
34112         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34113         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34114         * modules/inet_ntop (Depends-on): Add extensions.
34115         * modules/inet_pton (Depends-on): Likewise.
34116         Reported by Simon Josefsson.
34117
34118 2008-04-29  Jim Meyering  <meyering@redhat.com>
34119
34120         When the is more than one match in a block, match all of them.
34121         * build-aux/useless-if-before-free: Iterate through each block
34122         until there are no more matches.
34123
34124         Fix broken useless-if-before-free script.
34125         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34126         the expression to match cast of argument to free-like function.
34127
34128 2008-04-29  Eric Blake  <ebb9@byu.net>
34129
34130         Use new header.
34131         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34132
34133 2008-04-29  Jim Meyering  <meyering@redhat.com>
34134
34135         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34136         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34137         by gnulib to exist and to declare e.g., inet_ntop.
34138         Don't include "inet_ntop.h", now removed.
34139
34140         * m4/arpa_inet_h.m4: Remove trailing blanks.
34141
34142 2008-04-29  Eric Blake  <ebb9@byu.net>
34143
34144         Silence valgrind on safe reads beyond potential array bounds.
34145         * lib/rawmemchr.valgrind: New file.
34146         * lib/strchrnul.valgrind: Likewise.
34147         * modules/rawmemchr (Files): Distribute new file.
34148         * modules/strchrnul (Files): Likewise.
34149         Suggested by Bruno Haible.
34150
34151 2008-04-29  Bruno Haible  <bruno@clisp.org>
34152
34153         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34154         (inet_ntop, inet_pton): Change portability warning's wording.
34155         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34156         Invoke gl_CHECK_NEXT_HEADERS.
34157         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34158         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34159         set ARPA_INET_H.
34160         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34161         * modules/arpa_inet (Description): No longer only for systems that
34162         lack it.
34163         (Depends-on): Add include_next.
34164         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34165         HAVE_ARPA_INET_H.
34166
34167 2008-04-29  Jim Meyering  <meyering@redhat.com>
34168
34169         * modules/mkdir (License): Re-license as LGPLv2+.
34170
34171 2008-04-29  Bruno Haible  <bruno@clisp.org>
34172
34173         * modules/rawmemchr (Maintainer): Set to Eric.
34174         * modules/strchrnul (Maintainer): Likewise.
34175
34176 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34177
34178         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34179         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34180
34181         * modules/arpa_inet (arpa/inet.h): Use them.
34182
34183 2008-04-28  Eric Blake  <ebb9@byu.net>
34184
34185         Test getndelim2.
34186         * modules/getndelim2-tests: New file.
34187         * tests/test-getndelim2.c: Likewise.
34188         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34189         stream.
34190         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34191
34192         * MODULES.html.sh: Document new module.
34193
34194 2008-04-20  Bruno Haible  <bruno@clisp.org>
34195
34196         * lib/c-stack.c (die): Use raise.
34197         * modules/c-stack (Depends-on): Add raise.
34198
34199 2008-04-28  Bruno Haible  <bruno@clisp.org>
34200
34201         Expect rpmatch to be declared.
34202         * lib/yesno.c (rpmatch): Remove declaration.
34203
34204         Declare rpmatch.
34205         * lib/stdlib.in.h (rpmatch): New declaration.
34206         * lib/rpmatch.c: Include <stdlib.h> first.
34207         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34208         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34209         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34210         HAVE_RPMATCH.
34211         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34212         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34213         (Include): Set to <stdlib.h>.
34214         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34215         HAVE_RPMATCH.
34216         * NEWS: Document the change.
34217
34218 2008-04-28  Bruno Haible  <bruno@clisp.org>
34219
34220         Change rpmatch to use nl_langinfo when appropriate.
34221         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34222         (N_): New macro.
34223         (localized_pattern): New function/macro.
34224         (try): Remove match, nomatch arguments. Copy the pattern into safe
34225         memory before caching it.
34226         (rpmatch): Use localized_pattern. Add translator comments.
34227         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34228         Suggested by Eric Blake.
34229         * modules/rpmatch (Depends-on): Add stdbool.
34230
34231 2008-04-28  Eric Blake  <ebb9@byu.net>
34232
34233         Add rawmemchr module, matching glibc.
34234         * modules/string (Makefile.am): New indicator.
34235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34236         * lib/string.in.h (rawmemchr): Declare when appropriate.
34237         * modules/rawmemchr: New file.
34238         * m4/rawmemchr.m4: Likewise.
34239         * lib/rawmemchr.c: Likewise.
34240         * modules/rawmemchr-tests: Likewise.
34241         * tests/test-rawmemchr.c: Likewise.
34242         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34243         module.
34244         * modules/strchrnul (Depends-on): Add rawmemchr.
34245         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34246
34247         Whitespace cleanup.
34248         * tests/test-strchrnul.c: Reindent.
34249         * lib/strchrnul.c: Likewise.
34250
34251         Optimize and test strchrnul.
34252         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34253         * modules/strchrnul-tests: New file.
34254         * tests/test-strchrnul.c: Likewise.
34255
34256         Remove intprops dependency.
34257         * modules/memchr (Depends-on): Remove intprops.
34258         * modules/memrchr (Depends-on): Likewise.
34259         * modules/memchr2 (Depends-on): Likewise.
34260         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34261         * lib/memrchr.c (__memrchr): Likewise.
34262         * lib/memrchr2.c (memchr2): Likewise.
34263         Reported by Simon Josefsson.
34264
34265 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34266
34267         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34268         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34269
34270 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34271
34272         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34273
34274         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34275
34276         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34277
34278         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34279         declarations.
34280         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34281
34282         * m4/inet_pton.m4: Don't check for header files.
34283
34284         * m4/inet_ntop.m4: Don't check for header files.
34285
34286 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34287
34288         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34289         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34290         trigger for cygwin).
34291         Reported by Bruno Haible  <bruno@clisp.org>.
34292
34293 2008-04-28  Bruno Haible  <bruno@clisp.org>
34294
34295         * doc/posix-functions/strdup.texi: Mention mingw problem.
34296
34297 2008-04-27  Bruno Haible  <bruno@clisp.org>
34298
34299         * modules/stat-time-tests (Depends-on): Add sleep.
34300         * tests/test-stat-time.c (force_unlink): New function.
34301         (cleanup): Use it.
34302         (test_mtime): Remove the ctime related tests.
34303         (test_ctime): New function, containing the ctime related tests.
34304         (main): Call test_ctime, except on native Windows platforms.
34305
34306 2008-04-27  Bruno Haible  <bruno@clisp.org>
34307
34308         * lib/rpmatch.c (rpmatch): Add some comments.
34309         Reported by James Youngman <jay@gnu.org>.
34310
34311 2008-04-27  Bruno Haible  <bruno@clisp.org>
34312
34313         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34314         quiet NaNs.
34315
34316 2008-04-27  Bruno Haible  <bruno@clisp.org>
34317
34318         Make test-yesno.sh work on mingw.
34319         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34320         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34321         (main): Set stdin to binary mode.
34322         * modules/yesno-tests (Depends-on): Add binary-io.
34323
34324 2008-04-27  Bruno Haible  <bruno@clisp.org>
34325
34326         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34327         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34328         argument that lie outside the IEEE 854 domain.
34329         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34330         (gl_ISFINITE): Use it.
34331         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34332
34333 2008-04-27  Bruno Haible  <bruno@clisp.org>
34334
34335         Allow local renaming in config.h.
34336         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34337
34338 2008-04-27  Bruno Haible  <bruno@clisp.org>
34339
34340         * lib/memchr.c (__memchr): Change type of 'i'.
34341         * lib/memchr2.c (memchr2): Likewise.
34342
34343 2008-04-26  Eric Blake  <ebb9@byu.net>
34344         and Bruno Haible  <bruno@clisp.org>
34345
34346         Optimize and test memrchr.
34347         * modules/memrchr (Depends-on): Add intprops.
34348         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
34349         * modules/memrchr-tests: New file.
34350         * tests/test-memrchr.c: New file.
34351
34352 2008-04-26  Bruno Haible  <bruno@clisp.org>
34353
34354         Add tentative support for DragonFly BSD.
34355         * lib/stdio-impl.h: Add macros for DragonFly BSD.
34356         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
34357         fp.
34358         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34359         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
34360         * lib/fpurge.c (fpurge): Likewise.
34361         * lib/freadable.c (freaadable): Likewise.
34362         * lib/freadahead.c (freadahead): Likewise.
34363         * lib/freading.c (freading): Likewise.
34364         * lib/freadptr.c (freadptr): Likewise.
34365         * lib/freadseek.c (freadptrinc): Likewise.
34366         * lib/fseeko.c (fseeko): Likewise.
34367         * lib/fseterr.c (fseterr): Likewise.
34368         * lib/fwritable.c (fwritable): Likewise.
34369         * lib/fwriting.c (fwriting): Likewise.
34370
34371 2008-04-26  Bruno Haible  <bruno@clisp.org>
34372
34373         * lib/stdio-impl.h: New file.
34374         * lib/fbufmode.c: Include stdio-impl.h.
34375         (fbufmode): Use fp_, remove redundant #defines.
34376         * lib/fflush.c: Include stdio-impl.h.
34377         (clear_ungetc_buffer): Remove redundant #defines.
34378         * lib/fpurge.c: Include stdio-impl.h.
34379         (fpurge): Remove redundant #defines.
34380         * lib/freadable.c: Include stdio-impl.h.
34381         (freadable): Remove redundant #defines.
34382         * lib/freadahead.c: Include stdio-impl.h.
34383         (freadahead): Remove redundant #defines.
34384         * lib/freading.c: Include stdio-impl.h.
34385         (freading): Remove redundant #defines.
34386         * lib/freadptr.c: Include stdio-impl.h.
34387         (freadptr): Remove redundant #defines.
34388         * lib/freadseek.c: Include stdio-impl.h.
34389         (freadptrinc): Remove redundant #defines.
34390         * lib/fseeko.c: Include stdio-impl.h.
34391         (rpl_fseeko): Remove redundant #defines.
34392         * lib/fseterr.c: Include stdio-impl.h.
34393         (fseterr): Remove redundant #defines.
34394         * lib/fwritable.c: Include stdio-impl.h.
34395         (fwritable: Remove redundant #defines.
34396         * lib/fwriting.c: Include stdio-impl.h.
34397         (fwriting): Remove redundant #defines.
34398         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34399         * modules/fflush (Files): Likewise.
34400         * modules/fpurge (Files): Likewise.
34401         * modules/freadable (Files): Likewise.
34402         * modules/freadahead (Files): Likewise.
34403         * modules/freading (Files): Likewise.
34404         * modules/freadptr (Files): Likewise.
34405         * modules/freadseek (Files): Likewise.
34406         * modules/fseeko (Files): Likewise.
34407         * modules/fseterr (Files): Likewise.
34408         * modules/fwritable (Files): Likewise.
34409         * modules/fwriting (Files): Likewise.
34410
34411 2008-04-26  Bruno Haible  <bruno@clisp.org>
34412
34413         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34414         restore_seek_optimization, update_fpos_cache): New functions, extracted
34415         from rpl_fflush.
34416         (rpl_fflush): Use them.
34417         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
34418         (gl_REPLACE_FFLUSH): Use it.
34419
34420 2008-04-26  Bruno Haible  <bruno@clisp.org>
34421
34422         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
34423         on Solaris.
34424         * tests/test-xstrtoimax.sh: Likewise.
34425         * tests/test-xstrtoumax.sh: Likewise.
34426         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34427
34428 2008-04-26  Bruno Haible  <bruno@clisp.org>
34429
34430         * modules/memchr-tests: New file.
34431         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
34432
34433 2008-04-26  Eric Blake  <ebb9@byu.net>
34434             Bruno Haible  <bruno@clisp.org>
34435
34436         * lib/memchr.c: Include intprops.h.
34437         (__memchr): Optimize parallel detection of matching bytes. Rename local
34438         variables. Add explanatory comments.
34439
34440 2008-04-26  Bruno Haible  <bruno@clisp.org>
34441
34442         Fix module 'memchr', broken since 2000-10-28.
34443         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
34444
34445 2008-04-26  Bruno Haible  <bruno@clisp.org>
34446
34447         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
34448         comments.
34449
34450 2008-04-25  Eric Blake  <ebb9@byu.net>
34451
34452         Use native fstatat on cygwin 1.7.0.
34453         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
34454         first.
34455
34456 2008-04-23  Eric Blake  <ebb9@byu.net>
34457
34458         Improve memchr2 performance.
34459         * lib/memchr2.c (memchr2): Further optimize parallel detection of
34460         NUL bytes.
34461         * modules/memchr2 (Depends-on): Use intprops.h.
34462
34463 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34464
34465         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
34466         an inline function instead of a CPP macro.  Patch by Ben Pfaff
34467         <blp@cs.stanford.edu>.
34468
34469 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34470
34471         * lib/arpa_inet.in.h: New file.
34472
34473         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
34474         (Makefile.am): Sed in substitute header file.
34475
34476         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
34477         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
34478
34479         * modules/inet_ntop (configure.ac): Use
34480         gl_ARPA_INET_MODULE_INDICATOR.
34481
34482         * modules/inet_pton (configure.ac): Use
34483         gl_ARPA_INET_MODULE_INDICATOR.
34484
34485 2008-04-22  Jim Meyering  <meyering@redhat.com>
34486
34487         * modules/verify (License): Re-license as LGPLv2+.
34488
34489 2008-04-22  Simon Josefsson  <simon@josefsson.org>
34490
34491         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
34492         parameter to void* as per POSIX standard (MinGW uses char*).
34493
34494 2008-04-21  Bruno Haible  <bruno@clisp.org>
34495
34496         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34497         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34498         Define to replacements if REPLACE_ISWCNTRL is 1.
34499         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
34500         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
34501         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
34502         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
34503         what it fixes.
34504         * doc/posix-functions/iswalpha.texi: Likewise.
34505         * doc/posix-functions/iswblank.texi: Likewise.
34506         * doc/posix-functions/iswcntrl.texi: Likewise.
34507         * doc/posix-functions/iswdigit.texi: Likewise.
34508         * doc/posix-functions/iswgraph.texi: Likewise.
34509         * doc/posix-functions/iswlower.texi: Likewise.
34510         * doc/posix-functions/iswprint.texi: Likewise.
34511         * doc/posix-functions/iswpunct.texi: Likewise.
34512         * doc/posix-functions/iswspace.texi: Likewise.
34513         * doc/posix-functions/iswupper.texi: Likewise.
34514         * doc/posix-functions/iswxdigit.texi: Likewise.
34515         Reported by Alain Guibert.
34516
34517 2008-04-21  Bruno Haible  <bruno@clisp.org>
34518
34519         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
34520         Patch by Alain Guibert.
34521
34522 2008-04-21  Bruno Haible  <bruno@clisp.org>
34523
34524         Fix test failures on mingw.
34525         * tests/test-xstrtol.c (print_no_progname): New function.
34526         (main): Install it in error_print_progname hook.
34527         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
34528         * tests/test-xstrtoimax.sh: Likewise.
34529         * tests/test-xstrtoumax.sh: Likewise.
34530
34531 2008-04-21  Bruno Haible  <bruno@clisp.org>
34532
34533         Fix test failure on mingw.
34534         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
34535
34536 2008-04-21  Bruno Haible  <bruno@clisp.org>
34537
34538         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
34539         Actually assign a value.
34540
34541 2008-04-20  Bruno Haible  <bruno@clisp.org>
34542
34543         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
34544         take 2.
34545         * lib/canonicalize.c (canonicalize_file_name): Elide if the
34546         'canonicalize-lgpl' module is also used.
34547         * lib/canonicalize-lgpl.c: Undo last change.
34548         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
34549
34550 2008-04-20  Bruno Haible  <bruno@clisp.org>
34551
34552         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
34553         config.h. Provide _mkdir based fallback for mingw.
34554         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
34555         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
34556         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
34557         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
34558         rather than defining mkdir in config.h.
34559         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
34560         (gl_SYS_STAT_H_DEFAULTS): New macro.
34561         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
34562         HAVE_IO_H any more.
34563         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
34564         HAVE_DECL_MKDIR and HAVE_IO_H.
34565
34566 2008-04-20  Bruno Haible  <bruno@clisp.org>
34567
34568         * lib/isapipe.c: Port to native Windows platforms.
34569
34570 2008-04-20  Bruno Haible  <bruno@clisp.org>
34571
34572         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
34573
34574 2008-04-21  Eric Blake  <ebb9@byu.net>
34575
34576         Work around preprocessors that don't handle UINTMAX_MAX.
34577         * lib/memchr2.c (memchr2): Avoid embedded #if.
34578         Reported by Alain Guibert, fix suggested by Bruno Haible.
34579
34580 2008-04-21  Simon Josefsson  <simon@josefsson.org>
34581
34582         * doc/posix-functions/strftime.texi (strftime): Explain better
34583         Windows incompatibility.  Suggested by Micah Cowan
34584         <micah@cowan.name>.
34585
34586 2008-04-20  Bruno Haible  <bruno@clisp.org>
34587
34588         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
34589         unistr/u8-mblen.
34590
34591 2008-04-20  Bruno Haible  <bruno@clisp.org>
34592
34593         Fix test failure on platforms with non-GNU iconv.
34594         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
34595         (U_TO_U8): Use it, rather than u16_to_u8.
34596         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
34597         units at the end of the input string.
34598         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
34599
34600 2008-04-20  Bruno Haible  <bruno@clisp.org>
34601
34602         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
34603         when the resulting length is 0.
34604         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
34605
34606 2008-04-20  Bruno Haible  <bruno@clisp.org>
34607
34608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
34609         works.
34610         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
34611
34612 2008-04-20  Bruno Haible  <bruno@clisp.org>
34613
34614         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
34615         * modules/tsearch-tests (configure.ac): Test for initstate function.
34616
34617 2008-04-20  Bruno Haible  <bruno@clisp.org>
34618
34619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
34620         for nlink_t if missing.
34621         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
34622
34623 2008-04-19  Bruno Haible  <bruno@clisp.org>
34624
34625         Work around snprintf bug on Linux libc5.
34626         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
34627         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34628         gl_SNPRINTF_SIZE1.
34629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34630         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
34631         that test failed.
34632         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34633         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
34634         * modules/snprintf (Files): Add m4/printf.m4.
34635         * modules/vsnprintf (Files): Likewise.
34636         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
34637         * doc/posix-functions/vsnprintf.texi: Likewise.
34638
34639 2008-04-19  Bruno Haible  <bruno@clisp.org>
34640
34641         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
34642         from 0.0058 to less than 10^-7.
34643
34644 2008-04-19  Bruno Haible  <bruno@clisp.org>
34645
34646         Fix rounding when a precision is given.
34647         * lib/vasnprintf.c (is_borderline): New function.
34648         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
34649         9...9x.
34650         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
34651         %e, %g.
34652         * tests/test-vasprintf-posix.c (test_function): Likewise.
34653         * tests/test-snprintf-posix.h (test_function): Likewise.
34654         * tests/test-sprintf-posix.h (test_function): Likewise.
34655         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
34656         * tests/test-printf-posix.h (test_function): Likewise.
34657         * tests/test-printf-posix.output: Update.
34658         Reported by John Darrington <john@darrington.wattle.id.au> via
34659         Ben Pfaff <blp@cs.stanford.edu>.
34660
34661 2008-04-18  Simon Josefsson  <simon@josefsson.org>
34662
34663         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
34664         Suggested by Bruno Haible <bruno@clisp.org>.
34665
34666 2008-04-17  Bruno Haible  <bruno@clisp.org>
34667
34668         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
34669         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
34670         implementation.
34671         Patch by Bruce Merry <bmerry@gmail.com>.
34672
34673 2008-04-17  Simon Josefsson  <simon@josefsson.org>
34674
34675         * doc/posix-functions/strftime.texi (strftime): Mention that %e
34676         doesn't work under Windows.
34677
34678 2008-04-16  Bruno Haible  <bruno@clisp.org>
34679
34680         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
34681         New macros.
34682         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
34683         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
34684         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
34685         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
34686         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
34687         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
34688         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
34689         macros.
34690         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
34691         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
34692         Northern Sotho, Uighur.
34693
34694 2008-04-16  Bruno Haible  <bruno@clisp.org>
34695
34696         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
34697         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
34698         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
34699         Reported by Daniel Bergström <daniel@octocode.com>.
34700
34701 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
34702             Bruno Haible  <bruno@clisp.org>
34703
34704         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
34705         function.
34706         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
34707         New functions, mostly extracted from gl_locale_name_default.
34708         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
34709
34710 2008-04-16  Eric Blake  <ebb9@byu.net>
34711
34712         Adjust strtod detection to catch glibc 2.7 bug.
34713         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
34714         Reported by John Gatewood Ham.
34715
34716 2008-04-16  Bruno Haible  <bruno@clisp.org>
34717
34718         Add tentative support for Linux libc5.
34719         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
34720         * lib/fpurge.c (fpurge): Likewise.
34721         * lib/freadable.c (freadable): Likewise.
34722         * lib/freadahead.c (freadahead): Likewise.
34723         * lib/freading.c (freading): Likewise.
34724         * lib/freadptr.c (freadptr): Likewise.
34725         * lib/freadseek.c (freadptrinc): Likewise.
34726         * lib/fseeko.c (rpl_fseeko): Likewise.
34727         * lib/fseterr.c (fseterr): Likewise.
34728         * lib/fwritable.c (fwritable): Likewise.
34729         * lib/fwriting.c (fwriting): Likewise.
34730         Reported by Alain Guibert <alguibert+bts@free.fr>.
34731
34732 2008-04-15  Bruno Haible  <bruno@clisp.org>
34733
34734         * modules/mathl (configure.ac): Define module indicator.
34735
34736 2008-04-15  Bruno Haible  <bruno@clisp.org>
34737
34738         * lib/logl.c (logl): Remove unused variables.
34739
34740 2008-04-15  Bruno Haible  <bruno@clisp.org>
34741
34742         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
34743         fails.
34744
34745 2008-04-15  Bruno Haible  <bruno@clisp.org>
34746
34747         * lib/trim.c (trim2): Fix argument of isspace() macro.
34748
34749 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
34750
34751         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
34752         to 0.
34753         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
34754
34755 2008-04-14  Bruno Haible  <bruno@clisp.org>
34756
34757         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
34758         AC_LANG_PROGRAM argument.
34759         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
34760         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
34761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34762         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34763         * m4/math_h.m4 (gl_MATH_H): Likewise.
34764         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
34765         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34766         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34767         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
34768         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34769         * m4/regex.m4 (gl_REGEX): Likewise.
34770         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
34771         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
34772         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34773         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
34774         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34775         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34776         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34777         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34778
34779 2008-04-14  Jim Meyering  <meyering@redhat.com>
34780
34781         test-strtod: fix typos: s/abs/fabs/
34782         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
34783
34784 2008-04-13  Bruno Haible  <bruno@clisp.org>
34785
34786         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
34787         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
34788         module is also used and while not building the reloc-wrapper.
34789
34790 2008-04-13  Bruno Haible  <bruno@clisp.org>
34791
34792         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
34793
34794 2008-04-13  Bruno Haible  <bruno@clisp.org>
34795
34796         Fix AIX compilation failure introduced on 2008-04-02.
34797         * tests/test-frexp.c (exp): Undefine before redefining.
34798         * tests/test-frexpl.c (exp): Likewise.
34799
34800 2008-04-13  Bruno Haible  <bruno@clisp.org>
34801
34802         Work around a HP-UX stdio bug.
34803         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
34804         * tests/test-ftello.c (main): Likewise.
34805         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
34806         * doc/posix-functions/ftello.texi: Likewise.
34807
34808 2008-04-13  Bruno Haible  <bruno@clisp.org>
34809
34810         Make test-signbit pass on HP-UX/hppa.
34811         * tests/test-signbit.c (minus_zerol): New variable.
34812         (test_signbitl): Use it.
34813
34814 2008-04-13  Bruno Haible  <bruno@clisp.org>
34815
34816         Make truncl work on OSF/1 4.0.
34817         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
34818         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34819         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
34821         HAVE_DECL_TRUNCL.
34822         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
34823         HAVE_DECL_TRUNCL.
34824         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
34825
34826 2008-04-13  Bruno Haible  <bruno@clisp.org>
34827
34828         * lib/unictype.h: Remove trailing comma from enumeration definitions.
34829
34830 2008-04-13  Bruno Haible  <bruno@clisp.org>
34831
34832         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
34833         expression, so as to avoid HP-UX 11 cc compiler bug.
34834
34835 2008-04-13  Bruno Haible  <bruno@clisp.org>
34836
34837         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
34838
34839 2008-04-13  Bruno Haible  <bruno@clisp.org>
34840
34841         * lib/git-merge-changelog.c: Remove empty declaration outside of
34842         functions.
34843
34844 2008-04-13  Bruno Haible  <bruno@clisp.org>
34845
34846         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
34847
34848 2008-04-13  Bruno Haible  <bruno@clisp.org>
34849
34850         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
34851         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
34852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
34853         also if it exists but lacks definitions of the SHUT_* macros.
34854         * modules/sys_socket (Description): Update.
34855         Reported by Elbert Pol <e.pol@chello.nl>.
34856
34857 2008-04-13  Bruno Haible  <bruno@clisp.org>
34858
34859         * lib/localcharset.c (OS2): Don't redefine if already defined.
34860         Reported by Elbert Pol <e.pol@chello.nl>.
34861
34862 2008-04-13  Bruno Haible  <bruno@clisp.org>
34863
34864         * lib/binary-io.h [__EMX__]: Include <io.h>.
34865         Reported by Elbert Pol <e.pol@chello.nl>.
34866
34867 2008-04-12  Bruno Haible  <bruno@clisp.org>
34868
34869         * lib/fpucw.h: Enable the definitions also for x86_64.
34870         Needed for NetBSD/x86_64.
34871         Reported by Thomas Klausner <tk@giga.or.at>.
34872
34873 2008-04-12  Bruno Haible  <bruno@clisp.org>
34874
34875         * tests/test-strtod.c: Include isnand.h.
34876         (main): Use isnand instead of isnan.
34877         Reported by Jim Meyering.
34878
34879 2008-04-12  Bruno Haible  <bruno@clisp.org>
34880
34881         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
34882         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34883
34884 2008-04-12  Jim Meyering  <meyering@redhat.com>
34885
34886         * m4/math_h.m4 (gl_MATH_H): Fix typos.
34887
34888 2008-04-12  Bruno Haible  <bruno@clisp.org>
34889
34890         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
34891         Reported by Elbert Pol <e.pol@chello.nl>.
34892
34893 2008-04-12  Eric Blake  <ebb9@byu.net>
34894
34895         Work around Solaris 10 math.h bug.
34896         * m4/math_h.m4 (gl_MATH_H): Check for bug.
34897         (gl_MATH_H_DEFAULTS): Set up default.
34898         * modules/math (Makefile.am): Replace new indicators.
34899         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
34900         * tests/test-math.c (main): Test this.
34901         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
34902         * doc/posix-headers/math.texi (math.h): Mention bug.
34903         Reported by Nelson H. F. Beebe and Jim Meyering.
34904
34905 2008-04-11  Bruno Haible  <bruno@clisp.org>
34906
34907         Adapt to future versions of Apple GCC.
34908         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
34909         Reported by Peter O'Gorman <peter@pogma.com>.
34910
34911 2008-04-11  Bruno Haible  <bruno@clisp.org>
34912
34913         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
34914
34915 2008-04-11  Bruno Haible  <bruno@clisp.org>
34916
34917         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
34918
34919         * modules/getaddrinfo-tests (Makefile.am): Define
34920         test_getaddrinfo_LDADD.
34921
34922 2008-04-11  Bruno Haible  <bruno@clisp.org>
34923
34924         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
34925         (init): Fix syntax error.
34926         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
34927         is declared.
34928
34929 2008-04-11  Bruno Haible  <bruno@clisp.org>
34930
34931         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
34932         * modules/glob (Depends-on): Add stdbool.
34933
34934 2008-04-11  Bruno Haible  <bruno@clisp.org>
34935
34936         * lib/trim.c: Include <string.h>.
34937
34938 2008-04-11  Eric Blake  <ebb9@byu.net>
34939
34940         Avoid compile failure on OS/2.
34941         * lib/regex_internal.h (internal_function): Disable optimization
34942         on OS/2 (__EMX__), where it caused compiler error.
34943         Reported by Elbert Pol.
34944
34945 2008-04-11  Bruno Haible  <bruno@clisp.org>
34946
34947         Flush the standard error stream before aborting. Needed on mingw.
34948         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
34949         * tests/test-array_list.c (ASSERT): Likewise.
34950         * tests/test-array_oset.c (ASSERT): Likewise.
34951         * tests/test-avltree_list.c (ASSERT): Likewise.
34952         * tests/test-avltree_oset.c (ASSERT): Likewise.
34953         * tests/test-avltreehash_list.c (ASSERT): Likewise.
34954         * tests/test-binary-io.c (ASSERT): Likewise.
34955         * tests/test-byteswap.c (ASSERT): Likewise.
34956         * tests/test-c-ctype.c (ASSERT): Likewise.
34957         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
34958         * tests/test-c-strcasestr.c (ASSERT): Likewise.
34959         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
34960         * tests/test-c-strstr.c (ASSERT): Likewise.
34961         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
34962         * tests/test-canonicalize.c (ASSERT): Likewise.
34963         * tests/test-carray_list.c (ASSERT): Likewise.
34964         * tests/test-ceilf1.c (ASSERT): Likewise.
34965         * tests/test-ceilf2.c (ASSERT): Likewise.
34966         * tests/test-ceill.c (ASSERT): Likewise.
34967         * tests/test-count-one-bits.c (ASSERT): Likewise.
34968         * tests/test-fbufmode.c (ASSERT): Likewise.
34969         * tests/test-fflush2.c (ASSERT): Likewise.
34970         * tests/test-floorf1.c (ASSERT): Likewise.
34971         * tests/test-floorf2.c (ASSERT): Likewise.
34972         * tests/test-floorl.c (ASSERT): Likewise.
34973         * tests/test-fopen.c (ASSERT): Likewise.
34974         * tests/test-fpending.c (ASSERT): Likewise.
34975         * tests/test-fprintf-posix.c (ASSERT): Likewise.
34976         * tests/test-fpurge.c (ASSERT): Likewise.
34977         * tests/test-freadable.c (ASSERT): Likewise.
34978         * tests/test-freadahead.c (ASSERT): Likewise.
34979         * tests/test-freading.c (ASSERT): Likewise.
34980         * tests/test-freadptr.c (ASSERT): Likewise.
34981         * tests/test-freadptr2.c (ASSERT): Likewise.
34982         * tests/test-freadseek.c (ASSERT): Likewise.
34983         * tests/test-freopen.c (ASSERT): Likewise.
34984         * tests/test-frexp.c (ASSERT): Likewise.
34985         * tests/test-frexpl.c (ASSERT): Likewise.
34986         * tests/test-fseek.c (ASSERT): Likewise.
34987         * tests/test-fseeko.c (ASSERT): Likewise.
34988         * tests/test-fstrcmp.c (ASSERT): Likewise.
34989         * tests/test-ftell.c (ASSERT): Likewise.
34990         * tests/test-ftello.c (ASSERT): Likewise.
34991         * tests/test-func.c (ASSERT): Likewise.
34992         * tests/test-fwritable.c (ASSERT): Likewise.
34993         * tests/test-fwriting.c (ASSERT): Likewise.
34994         * tests/test-getdelim.c (ASSERT): Likewise.
34995         * tests/test-getline.c (ASSERT): Likewise.
34996         * tests/test-i-ring.c (ASSERT): Likewise.
34997         * tests/test-iconv-utf.c (ASSERT): Likewise.
34998         * tests/test-iconv.c (ASSERT): Likewise.
34999         * tests/test-isfinite.c (ASSERT): Likewise.
35000         * tests/test-isnand.c (ASSERT): Likewise.
35001         * tests/test-isnanf.c (ASSERT): Likewise.
35002         * tests/test-isnanl.h (ASSERT): Likewise.
35003         * tests/test-ldexpl.c (ASSERT): Likewise.
35004         * tests/test-linked_list.c (ASSERT): Likewise.
35005         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35006         * tests/test-localename.c (ASSERT): Likewise.
35007         * tests/test-lseek.c (ASSERT): Likewise.
35008         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35009         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35010         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35011         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35012         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35013         * tests/test-mbschr.c (ASSERT): Likewise.
35014         * tests/test-mbscspn.c (ASSERT): Likewise.
35015         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35016         * tests/test-mbspbrk.c (ASSERT): Likewise.
35017         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35018         * tests/test-mbsrchr.c (ASSERT): Likewise.
35019         * tests/test-mbsspn.c (ASSERT): Likewise.
35020         * tests/test-mbsstr1.c (ASSERT): Likewise.
35021         * tests/test-mbsstr2.c (ASSERT): Likewise.
35022         * tests/test-mbsstr3.c (ASSERT): Likewise.
35023         * tests/test-memchr2.c (ASSERT): Likewise.
35024         * tests/test-memmem.c (ASSERT): Likewise.
35025         * tests/test-open.c (ASSERT): Likewise.
35026         * tests/test-printf-frexp.c (ASSERT): Likewise.
35027         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35028         * tests/test-printf-posix.c (ASSERT): Likewise.
35029         * tests/test-quotearg.c (ASSERT): Likewise.
35030         * tests/test-rbtree_list.c (ASSERT): Likewise.
35031         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35032         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35033         * tests/test-round1.c (ASSERT): Likewise.
35034         * tests/test-roundf1.c (ASSERT): Likewise.
35035         * tests/test-roundl.c (ASSERT): Likewise.
35036         * tests/test-signbit.c (ASSERT): Likewise.
35037         * tests/test-sleep.c (ASSERT): Likewise.
35038         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35039         * tests/test-snprintf.c (ASSERT): Likewise.
35040         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35041         * tests/test-stat-time.c (ASSERT): Likewise.
35042         * tests/test-strcasestr.c (ASSERT): Likewise.
35043         * tests/test-strerror.c (ASSERT): Likewise.
35044         * tests/test-striconv.c (ASSERT): Likewise.
35045         * tests/test-striconveh.c (ASSERT): Likewise.
35046         * tests/test-striconveha.c (ASSERT): Likewise.
35047         * tests/test-strsignal.c (ASSERT): Likewise.
35048         * tests/test-strstr.c (ASSERT): Likewise.
35049         * tests/test-strtod.c (ASSERT): Likewise.
35050         * tests/test-trunc1.c (ASSERT): Likewise.
35051         * tests/test-trunc2.c (ASSERT): Likewise.
35052         * tests/test-truncf1.c (ASSERT): Likewise.
35053         * tests/test-truncf2.c (ASSERT): Likewise.
35054         * tests/test-truncl.c (ASSERT): Likewise.
35055         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35056         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35057         * tests/test-vasnprintf.c (ASSERT): Likewise.
35058         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35059         * tests/test-vasprintf.c (ASSERT): Likewise.
35060         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35061         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35062         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35063         * tests/test-vsnprintf.c (ASSERT): Likewise.
35064         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35065         * tests/test-wcwidth.c (ASSERT): Likewise.
35066         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35067         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35068         * tests/test-xvasprintf.c (ASSERT): Likewise.
35069         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35070         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35071         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35072         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35073         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35074         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35075         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35076         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35077         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35078         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35079         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35080         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35081         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35082         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35083         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35084         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35085         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35086         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35087         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35088         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35089         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35090         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35091         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35092         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35093         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35094         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35095         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35096         * tests/unictype/test-combining.c (ASSERT): Likewise.
35097         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35098         * tests/unictype/test-digit.c (ASSERT): Likewise.
35099         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35100         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35101         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35102         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35103         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35104         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35105         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35106         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35107         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35108         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35109         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35110         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35111         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35112         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35113         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35114         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35115         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35116         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35117         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35118         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35119         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35120         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35121         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35122         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35123         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35124         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35125         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35126         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35127         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35128         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35129         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35130         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35131         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35132         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35133         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35134         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35135         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35136         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35137         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35138         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35139         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35140         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35141         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35142         Reported by Eric Blake.
35143
35144 2008-04-11  Bruno Haible  <bruno@clisp.org>
35145
35146         * lib/wchar.in.h: Tweak comment.
35147
35148 2008-04-11  Bruno Haible  <bruno@clisp.org>
35149
35150         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35151         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35152         gl_COMMON.
35153         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35154
35155 2008-04-11  Bruno Haible  <bruno@clisp.org>
35156
35157         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35158
35159 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35160
35161         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35162         of attempting to use non-existing /dev/*random.  Based on patch
35163         from Adam Strzelecki <ono@java.pl> in
35164         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35165
35166 2008-04-08  Bruno Haible  <bruno@clisp.org>
35167
35168         Add tentative support for emx+gcc.
35169         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35170         * lib/fpurge.c (fpurge): Likewise.
35171         * lib/freadable.c (freadable): Likewise.
35172         * lib/freadahead.c (freadahead): Likewise.
35173         * lib/freading.c (freading): Likewise.
35174         * lib/freadptr.c (freadptr): Likewise.
35175         * lib/freadseek.c (freadptrinc): Likewise.
35176         * lib/fseeko.c (rpl_fseeko): Likewise.
35177         * lib/fseterr.c (fseterr): Likewise.
35178         * lib/fwritable.c (fwritable): Likewise.
35179         * lib/fwriting.c (fwriting): Likewise.
35180         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35181
35182 2008-04-09  Eric Blake  <ebb9@byu.net>
35183
35184         Avoid some autoconf warnings.
35185         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35186         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35187         * m4/afs.m4 (gl_AFS): Likewise.
35188         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35189         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35190         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35191         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35192         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35193         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35194         (AC_CHECK_DECLS_ONCE): Likewise.
35195         Rename file...
35196         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35197         gnulib-tool requires autoconf 2.59 or better.
35198         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35199
35200 2008-04-08  Eric Blake  <ebb9@byu.net>
35201
35202         Use 'git describe --match' if present (added in git 1.5.5).
35203         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35204         if possible.
35205
35206 2008-04-08  Bruno Haible  <bruno@clisp.org>
35207
35208         Add tentative support for OpenServer.
35209         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35210         _ptr, _cnt.
35211         * lib/fpurge.c (fpurge): Likewise.
35212         * lib/freadable.c (freadable): Likewise.
35213         * lib/freadahead.c (freadahead): Likewise.
35214         * lib/freading.c (freading): Likewise.
35215         * lib/freadptr.c (freadptr): Likewise.
35216         * lib/freadseek.c (freadptrinc): Likewise.
35217         * lib/fseeko.c (rpl_fseeko): Likewise.
35218         * lib/fseterr.c (fseterr): Likewise.
35219         * lib/fwritable.c (fwritable): Likewise.
35220         * lib/fwriting.c (fwriting): Likewise.
35221         Reported by Roger Cornelius <rac@tenzing.org> and
35222         Brian K. White <brian@aljex.com>.
35223
35224 2008-04-06  Jim Meyering  <meyering@redhat.com>
35225
35226         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35227
35228 2008-04-06  Bruno Haible  <bruno@clisp.org>
35229
35230         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35231         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35232         * tests/test-printf-posix.sh: Likewise.
35233         * tests/test-vfprintf-posix.sh: Likewise.
35234         * tests/test-vprintf-posix.sh: Likewise.
35235         * tests/test-xprintf-posix.sh: Likewise.
35236
35237 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35238
35239         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35240         hide error from 'ls', needed on OS/2.
35241         Report by Elbert Pol <elbert.pol@gmail.com>.
35242
35243 2008-04-04  Eric Blake  <ebb9@byu.net>
35244
35245         Make test-fseeko.c failures meaningful.
35246         * tests/test-fseeko.c: Print line number on failure.
35247         * tests/test-fseek.c: Likewise.
35248         Reported by Nelson H. F. Beebe.
35249
35250         Improve strtod bug detection check.
35251         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35252         required for Solaris 10.
35253         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35254
35255 2008-04-04  Bruno Haible  <bruno@clisp.org>
35256
35257         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35258         by m4/setenv.m4.
35259
35260 2008-04-03  Eric Blake  <ebb9@byu.net>
35261
35262         Ensure sane .version contents.
35263         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35264         version string.
35265         * build-aux/git-version-gen: Improve documentation.
35266
35267         Make GNU make output nicer.
35268         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35269         MAKECMDGOALS to enforce message for all command line targets.  Set
35270         srcdir for use in maint.mk.
35271
35272         Another maintainer tweak.
35273         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35274         a target that regenerates version.
35275
35276 2008-04-03  Jim Meyering  <meyering@redhat.com>
35277
35278         vc-list-files: don't cause coreutils "make po-check" failure
35279         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35280
35281 2008-04-03  Eric Blake  <ebb9@byu.net>
35282
35283         Allow VPATH usage of vc-list-files.
35284         * build-aux/vc-list-files (scriptversion): Add timestamp.
35285         (options): Add --help, --version, -C.
35286         (CVS): Support installed cvsu.
35287
35288 2008-04-02  Bruno Haible  <bruno@clisp.org>
35289
35290         Avoid some "statement with no effect" warnings from gcc.
35291         * tests/test-wctype.c (main): Explicitly ignore unused values.
35292         Reported by Jim Meyering.
35293
35294 2008-04-02  Jim Meyering  <meyering@redhat.com>
35295
35296         Avoid some warnings from "gcc -Wshadow".
35297         * tests/test-frexp.c (exp): Define to a different identifier.
35298         * tests/test-frexpl.c (exp): Likewise.
35299
35300 2008-04-03  Jim Meyering  <meyering@redhat.com>
35301
35302         bootstrap: remove dangling *.[ch] symlinks from lib
35303         * build-aux/bootstrap [dangling symlink removal]: Move find's
35304         -depth option to precede all others, to avoid a warning.
35305         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35306
35307 2008-04-02  Bruno Haible  <bruno@clisp.org>
35308
35309         Avoid some warnings from "gcc -Wshadow".
35310         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35311         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35312         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35313         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35314         Reported by Jim Meyering.
35315
35316 2008-04-01  Bruno Haible  <bruno@clisp.org>
35317
35318         Fix test to work on IRIX 6.5 with cc.
35319         * tests/test-math.c (numeric_equal): New function.
35320         (main): Use it.
35321
35322 2008-04-01  Bruno Haible  <bruno@clisp.org>
35323
35324         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35325
35326 2008-04-01  Bruno Haible  <bruno@clisp.org>
35327
35328         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35329         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35330         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35331         (Depends-on): Remove math.
35332
35333         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35334         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35335         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35336         (Depends-on): Remove math.
35337
35338         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35339         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35340         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
35341         (Depends-on): Remove math.
35342         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
35343         (Depends-on): Remove math.
35344
35345         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
35346         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35347         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
35348         (Depends-on): Remove math.
35349         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35350         (Depends-on): Remove math.
35351
35352         * tests/test-round1.c: Include nan.h.
35353         (main): Use NaNd instead of NAN.
35354         * modules/round-tests (Files): Add tests/nan.h.
35355
35356         * tests/test-trunc1.c: Include nan.h.
35357         (main): Use NaNd instead of NAN.
35358         * modules/trunc-tests (Files): Add tests/nan.h.
35359
35360         * tests/test-roundf1.c: Include nan.h.
35361         (main): Use NaNf instead of NAN.
35362         * modules/roundf-tests (Files): Add tests/nan.h.
35363
35364         * tests/test-truncf1.c: Include nan.h.
35365         (main): Use NaNf instead of NAN.
35366         * modules/truncf-tests (Files): Add tests/nan.h.
35367
35368         * tests/test-ceilf1.c: Include nan.h.
35369         (main): Use NaNf instead of NAN.
35370         * modules/ceilf-tests (Files): Add tests/nan.h.
35371
35372         * tests/test-floorf1.c: Include nan.h.
35373         (main): Use NaNf instead of NAN.
35374         * modules/floorf-tests (Files): Add tests/nan.h.
35375
35376         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35377         (main): Use NaNf instead of NAN.
35378         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35379
35380         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35381         (main): Use NaNd instead of NAN.
35382         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35383
35384         * tests/test-frexp.c: Include nan.h.
35385         (main): Use NaNd instead of NAN.
35386         * modules/frexp-tests (Files): Add tests/nan.h.
35387
35388         * lib/isnan.c: Don't include <math.h>.
35389         (FUNC): Don't use NAN macro.
35390         * modules/isnand-nolibm (Depends-on): Remove math.
35391         * modules/isnanf-nolibm (Depends-on): Remove math.
35392         * modules/isnanl (Depends-on): Remove math.
35393         * modules/isnanl-nolibm (Depends-on): Remove math.
35394
35395         * tests/nan.h: New file.
35396
35397 2008-04-01  Eric Blake  <ebb9@byu.net>
35398
35399         Fix typos.
35400         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35401         values to be the right type.
35402
35403         For now, cater to gnulib strtod inaccuracies.
35404         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35405         fractional results.  While not as nice from a QoI perspective, it
35406         is a quicker patch than correctly implementing decimal to binary
35407         rounding.
35408
35409 2008-03-31  Eric Blake  <ebb9@byu.net>
35410
35411         Guarantee a definition of NAN.
35412         * lib/math.in.h (NAN): Define if missing.
35413         * tests/test-math.c (main): Test it.
35414         * doc/posix-headers/math.texi (math.h): Document this.
35415         * lib/isnan.c (rpl_isnand): Use it.
35416         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
35417         * tests/test-floorf1.c (NaN): Likewise.
35418         * tests/test-frexp.c (NaN): Likewise.
35419         * tests/test-isnand.c (NaN): Likewise.
35420         * tests/test-isnanf.c (NaN): Likewise.
35421         * tests/test-round1.c (NaN): Likewise.
35422         * tests/test-roundf1.c (NaN): Likewise.
35423         * tests/test-snprintf-posix.h (NaN): Likewise.
35424         * tests/test-sprintf-posix.h (NaN): Likewise.
35425         * tests/test-trunc1.c (NaN): Likewise.
35426         * tests/test-truncf1.c (NaN): Likewise.
35427         * tests/test-vasnprintf-posix.c (NaN): Likewise.
35428         * tests/test-vasprintf-posix.c (NaN): Likewise.
35429         * modules/isnand-nolibm (Depends-on): Add math.
35430         * modules/isnanf-nolibm (Depends-on): Likewise.
35431         * modules/isnanl (Depends-on): Likewise.
35432         * modules/isnanl-nolibm (Depends-on): Likewise.
35433         * modules/snprintf-posix-tests (Depends-on): Likewise.
35434         * modules/sprintf-posix-tests (Depends-on): Likewise.
35435         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
35436         * modules/vsprintf-posix-tests (Depends-on): Likewise.
35437         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
35438         * modules/vasprintf-posix-tests (Depends-on): Likewise.
35439
35440 2008-03-31  Bruno Haible  <bruno@clisp.org>
35441
35442         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
35443         * doc/posix-functions/strtod.texi: Likewise.
35444
35445 2008-03-31  Bruno Haible  <bruno@clisp.org>
35446
35447         * tests/test-strtod.c (main): Don't use C99 syntax.
35448
35449 2008-03-31  Bruno Haible  <bruno@clisp.org>
35450
35451         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
35452         Reported by Eric Blake.
35453
35454 2008-03-31  Jim Meyering  <meyering@redhat.com>
35455
35456         Don't compare actual signbit return values.
35457         * tests/test-strtod.c (main): Rather, compare only their
35458         zero/non-zero nature.
35459
35460 2008-03-31  Eric Blake  <ebb9@byu.net>
35461
35462         More strtod documentation.
35463         * doc/posix-functions/strtod.texi (strtod): Interpret more test
35464         failures as distinct bugs.
35465
35466 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35467
35468         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
35469         Problem reported by Erik Benada in
35470         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
35471
35472 2008-03-30  Bruno Haible  <bruno@clisp.org>
35473
35474         * tests/test-strtod.c: Add comments about which assertion fails on which
35475         platform.
35476         * doc/posix-functions/strtod.texi: Add info about many more platforms.
35477
35478 2008-03-30  Eric Blake  <ebb9@byu.net>
35479
35480         Test signbit behavior on zeros.
35481         * tests/test-signbit.c (test_signbitf): Add tests for zero.
35482         (test_signbitd, test_signbitl): Likewise.
35483
35484         More strtod touchups.
35485         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
35486         sign of negative underflow, for now.  Use .5, not .1.
35487         * doc/posix-functions/strtod.texi (strtod): Mention these
35488         limitations.
35489         Reported by Jim Meyering.
35490
35491 2008-03-30  Bruno Haible  <bruno@clisp.org>
35492
35493         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
35494         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
35495
35496 2008-03-30  Bruno Haible  <bruno@clisp.org>
35497
35498         Avoid failure when attempting to return empty iconv results on some
35499         platforms.
35500         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
35501         allocation, don't report ENOMEM when the resulting string is empty.
35502
35503 2008-03-30  Bruno Haible  <bruno@clisp.org>
35504
35505         Fix buffer overrun.
35506         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
35507         Don't consider the width for tmp_length. Check count against tmp_length
35508         before doing the padding. Ensure enough allocation during padding.
35509
35510 2008-03-30  Eric Blake  <ebb9@byu.net>
35511
35512         strtod touchups.
35513         * lib/strtod.c (strtod): Avoid compiler warnings.
35514         Reported by Jim Meyering.
35515
35516 2008-03-30  Bruno Haible  <bruno@clisp.org>
35517
35518         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
35519         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
35520         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
35521         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
35522         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
35523         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
35524         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35525         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
35526
35527         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
35528         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
35529         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
35530         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
35531         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
35532         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
35533         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
35534         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
35535
35536         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
35537         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
35538         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
35539         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
35540         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
35541         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
35542         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
35543         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
35544
35545         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
35546         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
35547
35548         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
35549         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
35550
35551         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
35552         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
35553
35554         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
35555         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
35556         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
35557
35558         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
35559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
35560         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
35561
35562         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
35563         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
35564         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
35565
35566         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
35567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
35568         * modules/vasprintf (Depends-on): Add EOVERFLOW.
35569
35570         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
35571         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
35572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
35573         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
35574         (Depends-on): Add EOVERFLOW.
35575         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
35576         (Depends-on): Add EOVERFLOW.
35577         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35578         (Depends-on): Add EOVERFLOW.
35579         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35580         (Depends-on): Add EOVERFLOW.
35581         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35582         (Depends-on): Add EOVERFLOW.
35583         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35584         (Depends-on): Add EOVERFLOW.
35585         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35586         (Depends-on): Add EOVERFLOW.
35587         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35588         (Depends-on): Add EOVERFLOW.
35589
35590         * lib/sprintf.c (EOVERFLOW): Remove fallback.
35591         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
35592         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
35593
35594         * lib/snprintf.c (EOVERFLOW): Remove fallback.
35595         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
35596         * modules/snprintf (Depends-on): Add EOVERFLOW.
35597
35598         * lib/poll.c (EOVERFLOW): Remove fallback.
35599         * modules/poll (Depends-on): Add EOVERFLOW.
35600
35601         * lib/getugroups.c (EOVERFLOW): Remove fallback.
35602         * modules/getugroups (Depends-on): Add EOVERFLOW.
35603
35604         * lib/getdelim.c (EOVERFLOW): Remove fallback.
35605         * modules/getdelim (Depends-on): Add EOVERFLOW.
35606
35607         * lib/ftell.c (EOVERFLOW): Remove fallback.
35608         * modules/ftell (Depends-on): Add EOVERFLOW.
35609
35610         * lib/fprintf.c (EOVERFLOW): Remove fallback.
35611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
35612         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
35613
35614         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
35615
35616         * modules/EOVERFLOW-tests: New file.
35617         * tests/test-EOVERFLOW.c: New file.
35618
35619         * modules/EOVERFLOW: New file.
35620         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
35621
35622 2008-03-30  Bruno Haible  <bruno@clisp.org>
35623
35624         Fix bug introduced on 2007-06-10.
35625         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
35626         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
35627
35628 2008-03-30  Bruno Haible  <bruno@clisp.org>
35629
35630         Improve freadseek's efficiency after ungetc.
35631         * lib/freadseek.c: Include freadahead.h.
35632         (freadptrinc): New function, extracted from freadseek.
35633         (freadseek): Use it in a loop. Use freadahead to determine the number
35634         of loop iterations.
35635         * modules/freadseek (Depends-on): Add freadahead.
35636         (configure.ac): Require AC_C_INLINE.
35637
35638 2008-03-30  Bruno Haible  <bruno@clisp.org>
35639
35640         * lib/freadseek.c (freadseek): Don't ignore the return value of
35641         freadptr.
35642
35643 2008-03-29  Eric Blake  <ebb9@byu.net>
35644
35645         Add hex float support.
35646         * modules/strtod (Depends-on): Add c-ctype.
35647         (Link): Mention POW_LIB.
35648         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
35649         whitespace between 'e' and exponent.
35650         * tests/test-strtod.c (main): Enable hex float tests.
35651         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
35652         now provides.
35653
35654         Document various strtod bugs, with some fixes.
35655         * doc/posix-functions/strtod.texi (strtod): Document bugs with
35656         "-0x", "inf", "nan", and hex constants.
35657         * doc/posix-functions/atof.texi (atof): Likewise.
35658         * modules/stdlib (Makefile.am): Support strtod.
35659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35660         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
35661         detect additional strtod bugs.
35662         * lib/stdlib.in.h (rpl_strtod): Add declarations.
35663         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
35664         bool where appropriate.  Parse 'inf' and 'nan'.
35665         * tests/test-strtod.c: New file.
35666         * modules/strtod (Depends-on): Add stdbool, stdlib.
35667         (configure.ac): Turn on module indicator.
35668         * modules/strtod-tests: New module.
35669
35670 2008-03-29  Eric Blake  <ebb9@byu.net>
35671
35672         Fix ftell on mingw.
35673         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
35674         * modules/ftell-tests (Depends-on): Add binary-io.
35675         * modules/ftello-tests (Depends-on): Likewise.
35676         * tests/test-ftell.c (main): Enhance test to cover behavior after
35677         ungetc.  Enforce binary mode.
35678         * tests/test-ftello.c (main): Likewise.
35679
35680         Pass test-freadseek on cygwin.
35681         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
35682         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
35683         ungetc buffer.
35684
35685         * tests/test-fflush2.c (main): Fix typo.
35686
35687 2008-03-29  Bruno Haible  <bruno@clisp.org>
35688
35689         * tests/test-fflush2.c (main): Temporarily disable the contents of
35690         this test.
35691         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
35692         Reported by Eric Blake.
35693
35694 2008-03-28  Simon Josefsson  <simon@josefsson.org>
35695
35696         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
35697         (GC_SHA224_DIGEST_SIZE): Add.
35698
35699         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
35700         (gc_hash_digest_length): Likewise.
35701         (gc_hash_buffer): Likewise.
35702
35703 2008-03-25  Bruno Haible  <bruno@clisp.org>
35704
35705         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
35706         detail which gettext release to use.
35707         Reported by Simon Josefsson.
35708
35709 2008-03-26  Jim Meyering  <meyering@redhat.com>
35710
35711         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
35712         * modules/gnumakefile (clean-GNUmakefile): Also, use
35713         test ... && ... || : syntax rather than if-then ... fi.
35714
35715         gnumakefile: Don't double-quote-expand $(VPATH) value.
35716         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
35717
35718 2008-03-24  Eric Blake  <ebb9@byu.net>
35719
35720         Alter GNUmakefile to install into top directory.
35721         * modules/maintainer-makefile: Split, and add dependency...
35722         * modules/gnumakefile: to this new module.
35723         * build-aux/GNUmakefile: Move...
35724         * top/GNUmakefile: ...here.
35725         * build-aux/maint.mk: Move...
35726         * top/maint.mk: ...here.
35727         * MODULES.html.sh (Support for maintaining...): Document new
35728         module.
35729
35730 2008-03-23  Bruno Haible  <bruno@clisp.org>
35731
35732         * gnulib-tool: New options --vc-files, --no-vc-files.
35733         (func_usage): Document them.
35734         (vc_files): New variable.
35735         (func_import): Consider vc_files.
35736         (func_create_testdir): Set vc_files to empty.
35737         Suggested by Jim Meyering and Karl Berry.
35738
35739 2008-03-23  Bruno Haible  <bruno@clisp.org>
35740
35741         Fix regex compilation error on HP-UX 11.
35742         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
35743         * modules/regex (Files): Add m4/mbstate_t.m4.
35744         Reported by Ton Voon <ton.voon@altinity.com>.
35745
35746 2008-03-23  Bruno Haible  <bruno@clisp.org>
35747
35748         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
35749
35750 2008-03-23  Eric Blake  <ebb9@byu.net>
35751             Bruno Haible  <bruno@clisp.org>
35752
35753         Install files from top/ in the destination directory.
35754         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35755         augmentation also for the files from top/.
35756         (func_import, func_create_testdir): Rewrite file names:
35757         top/filename -> filename.
35758
35759 2008-03-23  Bruno Haible  <bruno@clisp.org>
35760
35761         Tweak "gnulib --version" output.
35762         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
35763
35764 2008-03-23  Bruno Haible  <bruno@clisp.org>
35765
35766         Tweak "gnulib --version" output.
35767         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
35768         rather than contents of ChangeLog, when possible.
35769
35770 2008-03-21  Eric Blake  <ebb9@byu.net>
35771
35772         More --version tweaks.
35773         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
35774         date of last ChangeLog entry.
35775
35776 2008-03-21  Jim Meyering  <meyering@redhat.com>
35777
35778         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
35779
35780 2008-03-20  Eric Blake  <ebb9@byu.net>
35781
35782         VPATH fix.
35783         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
35784
35785 2008-03-20  Simon Josefsson  <simon@josefsson.org>
35786
35787         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
35788         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
35789
35790 2008-03-20  Eric Blake  <ebb9@byu.net>
35791
35792         Sync GNUmakefile with coreutils.
35793         * build-aux/GNUmakefile (have-Makefile): Rename...
35794         (_have-Makefile): ...to this, for namespace consideration.
35795         (GNUmakefile.cfg): Include, if present.
35796         (_autoreconf): Define a default.
35797         (_is-dist-target): New rule for rebuilds to pick up intra-release
35798         version.
35799         (maint-cfg.mk): Rename...
35800         (cfg.mk): ...to this.
35801
35802 2008-03-18  Jim Meyering  <meyering@redhat.com>
35803
35804         New script and module: mktempd
35805         * MODULES.html.sh (maint+release support): Add mktempd.
35806         * build-aux/mktempd: New file.
35807         * modules/mktempd: New file.
35808
35809 2008-03-15  Jim Meyering  <meyering@redhat.com>
35810
35811         Undo last change.
35812         * lib/sha1.c, lib/md5.c: 63 != ~63.
35813         Reported by Andreas Schwab.
35814
35815         sha1.c, md5.c: Hoist a redundant expression.
35816         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
35817         "ctx->buflen" only once, before calling *_process_block.
35818         * lib/md5.c (md5_process_bytes): Likewise.
35819
35820 2008-03-14  Eric Blake  <ebb9@byu.net>
35821
35822         Bump copyright year in files generated by gnulib-tool.
35823         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
35824         gnulib-tool, rather than hard-coding it.
35825
35826         Fix 'gnulib-tool --version' output to work with git.
35827         * gnulib-tool (func_gnulib_dir): New function, extracted from...
35828         (startup): ...here.
35829         (func_version): Use it to invoke git-version-gen, rather than
35830         relying on CVS keyword expansion.  Modernize wording.
35831         (cvsdatestamp, last_checkin_date, version): Kill unused
35832         variables.
35833
35834 2008-03-12  Jim Meyering  <meyering@redhat.com>
35835
35836         Recognize optional cast of the argument to free.
35837         * build-aux/useless-if-before-free: Update regexps.
35838
35839         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
35840
35841 2008-03-11  Bruno Haible  <bruno@clisp.org>
35842
35843         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
35844         by a single package.
35845         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
35846         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
35847         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
35848         Reported by Sam Steingold <sds@gnu.org>.
35849
35850 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35851
35852         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
35853         repositories.
35854
35855 2008-03-11  Bruno Haible  <bruno@clisp.org>
35856
35857         Avoid conflicts between local macro definitions.
35858         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
35859         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
35860
35861 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
35862             Bruno Haible  <bruno@clisp.org>
35863
35864         Make va_copy work with some version of xlc on AIX 5.1.
35865         * lib/stdarg.in.h: New file.
35866         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
35867         On AIX, use a <stdarg.h> file substitute.
35868         * modules/stdarg (Files): Add lib/stdarg.in.h.
35869         (Depends-on): Add include_next.
35870         (Makefile.am): Build a stdarg.h substitute if requested.
35871         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
35872
35873 2008-03-10  Bruno Haible  <bruno@clisp.org>
35874
35875         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
35876         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35877         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
35878
35879 2008-03-10  Bruno Haible  <bruno@clisp.org>
35880
35881         * modules/stdlib (Depends-on): Add include_next, remove
35882         absolute-header.
35883
35884 2008-03-09  Bruno Haible  <bruno@clisp.org>
35885
35886         * lib/freadahead.h (freadahead): Document more precisely.
35887         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
35888         the sum of both buffer sizes.
35889         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
35890         * NEWS: Document the change.
35891
35892 2008-03-09  Bruno Haible  <bruno@clisp.org>
35893
35894         Extend freadptr to return also the buffer size.
35895         * lib/freadptr.h (freadptr): Add sizep argument.
35896         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
35897         (freadptr): Add sizep argument. Determine buffer size like freadahead
35898         does.
35899         * tests/test-freadptr.c: Don't include freadahead.h.
35900         (main): Adapt for new calling convention of freadptr.
35901         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
35902         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
35903         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
35904         tests/test-freadptr2.sh.
35905         (Depends): Remove freadahead.
35906         (TESTS): Add test-freadptr2.sh.
35907         (check_PROGRAMS): Add test-freadptr2.
35908
35909 2008-03-09  Bruno Haible  <bruno@clisp.org>
35910
35911         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
35912         Report and solution by Simon Josefsson.
35913
35914 2008-03-06  Bruno Haible  <bruno@clisp.org>
35915
35916         Make fflush after ungetc work on BSD platforms.
35917         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
35918         * tests/test-fflush2.c: New file.
35919         * tests/test-fflush2.sh: New file.
35920         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
35921         tests/test-fflush2.c.
35922         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
35923         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
35924
35925 2008-03-06  Eric Blake  <ebb9@byu.net>
35926
35927         Likewise for ftello.
35928         * modules/ftello (Dependencies): Add extensions.
35929         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
35930
35931 2008-03-06  Bruno Haible  <bruno@clisp.org>
35932
35933         * modules/fseeko (Dependencies): Add extensions.
35934         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
35935         Needed on glibc systems.
35936
35937 2008-03-06  Bruno Haible  <bruno@clisp.org>
35938
35939         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
35940         email address.
35941         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35942
35943 2008-03-06  Bruno Haible  <bruno@clisp.org>
35944
35945         * users.txt: Add libgnupdf.
35946
35947 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35948
35949         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
35950         (Header File Substitutes, Function Substitutes,
35951         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
35952         (Build robot for gnulib): Fix typo.
35953
35954 2008-03-06  Bruno Haible  <bruno@clisp.org>
35955
35956         * doc/gnulib-tool.texi (VCS Issues): Small updates.
35957         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35958
35959 2008-03-06  Bruno Haible  <bruno@clisp.org>
35960
35961         * doc/func.texi: New file, extracted from doc/gnulib.texi.
35962         * doc/gnulib.texi: Include it.
35963
35964 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35965
35966         * modules/func (License): Change license to unlimited; there was
35967         no LGPL parts in the module anyway.
35968
35969 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35970
35971         * modules/__func__: Renamed to modules/func.
35972         * modules/__func__-tests: Renamed to modules/func-tests.
35973         * tests/test-__func__.c: Renamed to tests/test-func.c.
35974         * m4/__func__.m4: Renamed to m4/func.m4.
35975         * doc/gnulib.texi (__func__): Section renamed to func.
35976         Suggested by Eric Blake <ebb9@byu.net>.
35977
35978 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35979
35980         * doc/gnulib.texi (__func__): Use C99 terminology when talking
35981         about __func__.  Make example self-contained.  Suggested by Eric
35982         Blake <ebb9@byu.net>.
35983
35984         * tests/test-__func__.c (main): Avoid extraneous () around __func.
35985         Suggested by Eric Blake <ebb9@byu.net>.
35986
35987 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35988
35989         * modules/__func__: New file.
35990         * modules/__func__-tests: New file.
35991         * tests/test-__func__.c: New file.
35992         * m4/__func__.m4: New file.
35993         * doc/gnulib.texi (__func__): Document __func__ module.
35994
35995 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35996
35997         * modules/byteswap (License): Re-license as LGPLv2+.
35998
35999 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36000
36001         * doc/Makefile: Add pdf target.
36002
36003 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36004
36005         * modules/inline (License): Use 'unlimited', since there are only
36006         *.m4 files in this module.
36007
36008 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36009             Bruno Haible  <bruno@clisp.org>
36010
36011         Add support for HP C 7.1 on OpenVMS 8.3.
36012         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36013
36014 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36015
36016         Update VMS specifics.
36017         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36018
36019 2008-03-02  Jim Meyering  <meyering@redhat.com>
36020
36021         Remove the last dependency on the "free" module.
36022         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36023         Reported by Bob Proulx.
36024
36025         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36026
36027         Remove useless "if" tests before free.  Deprecate "free" module.
36028         * doc/posix-functions/free.texi: Mention that this
36029         module is no longer useful.
36030         * modules/free (Notice): Say this module is obsolete.
36031         * modules/readutmp (Depends-on): Remove free.
36032         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36033         * lib/putenv.c (putenv): Likewise.
36034         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36035         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36036         * tests/test-c-strcasestr.c (main): Likewise.
36037         * tests/test-c-strstr.c (main): Likewise.
36038         * tests/test-mbscasestr1.c (main): Likewise.
36039         * tests/test-mbscasestr2.c (main): Likewise.
36040         * tests/test-mbsstr1.c (main): Likewise.
36041         * tests/test-mbsstr2.c (main): Likewise.
36042         * tests/test-memmem.c (main): Likewise.
36043         * tests/test-strcasestr.c (main): Likewise.
36044         * tests/test-striconv.c (main): Likewise.
36045         * tests/test-striconveh.c (main): Likewise.
36046         * tests/test-striconveha.c (main): Likewise.
36047         * tests/test-strstr.c (main): Likewise.
36048
36049         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36050
36051         bootstrap: sync from coreutils again
36052         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36053
36054 2008-03-01  Jim Meyering  <meyering@redhat.com>
36055
36056         bootstrap: sync from coreutils
36057         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36058         also when the target doesn't exist.
36059
36060 2008-03-01  Eric Blake  <ebb9@byu.net>
36061
36062         Fix bugs in last patch.
36063         * lib/memchr2.c (memchr2): Fix typo.
36064         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36065         extension.
36066         Reported by Bruce Korb.
36067
36068         New module 'memchr2'.
36069         * modules/memchr2: New file.
36070         * modules/memchr2-tests: Likewise.
36071         * lib/memchr2.h: Likewise.
36072         * lib/memchr2.c: Likewise, based on memchr.c.
36073         * tests/test-memchr2.c: New test.
36074         * MODULES.html.sh (String handling): Add memchr2.
36075
36076 2008-02-29  Bruno Haible  <bruno@clisp.org>
36077
36078         * modules/freadseek-tests: New file.
36079         * tests/test-freadseek.sh: New file.
36080         * tests/test-freadseek.c: New file.
36081
36082         New module 'freadseek'.
36083         * modules/freadseek: New file.
36084         * lib/freadseek.h: New file.
36085         * lib/freadseek.c: New file.
36086         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36087
36088 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36089
36090         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36091         wydawca.
36092
36093         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36094         program_invocation_name and program_invocation_short_name are
36095         present.
36096
36097 2008-02-28  Bruno Haible  <bruno@clisp.org>
36098
36099         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36100         * tests/test-freadptr.sh: Also test non-seekable stdin.
36101
36102 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36103
36104         * build-aux/bootstrap (source_base, m4_base)
36105         (doc_base, tests_base): New variables.
36106         (gnulib_tool_options): Do not hardcode base directories, use
36107         the above variables instead.
36108
36109 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36110
36111         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36112
36113 2008-02-28  Bruno Haible  <bruno@clisp.org>
36114
36115         * modules/freadptr-tests: New file.
36116         * tests/test-freadptr.sh: New file.
36117         * tests/test-freadptr.c: New file.
36118
36119         New module 'freadptr'.
36120         * modules/freadptr: New file.
36121         * lib/freadptr.h: New file.
36122         * lib/freadptr.c: New file.
36123         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36124
36125 2008-02-26  Karl Berry  <karl@freefriends.org>
36126
36127         Sync from Libtool:
36128         * libltdl/argz.c (argz_add, argz_count): New functions.
36129         * libltdl/argz.in.h: Declare them.
36130         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36131
36132 2008-02-22  Bruno Haible  <bruno@clisp.org>
36133
36134         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36135         is a pointer type.  Needed for HP-UX 10.
36136         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36137         * doc/posix-functions/gmtime_r.texi: Likewise.
36138         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36139
36140 2008-02-24  Bruno Haible  <bruno@clisp.org>
36141
36142         * modules/environ-tests: New file.
36143         * tests/test-environ.c: New file.
36144
36145         New module 'environ'.
36146         * modules/environ: New file.
36147         * lib/unistd.in.h (environ): New declaration.
36148         * m4/environ.m4: New file.
36149         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36150         after use.
36151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36152         HAVE_DECL_ENVIRON.
36153         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36154         HAVE_DECL_ENVIRON.
36155         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36156         wrong claim that 'environ' is missing on some systems.
36157         * modules/execute (Depends-on): Add environ.
36158         * lib/execute.c (environ): Remove fallback declaration.
36159         * modules/pipe (Depends-on): Add environ.
36160         * lib/pipe.c (environ): Remove fallback declaration.
36161         * modules/setenv (Depends-on): Add environ.
36162         * lib/setenv.c (environ): Remove fallback declaration.
36163         * modules/unsetenv (Depends-on): Add environ.
36164         * lib/unsetenv.c (environ): Remove fallback declaration.
36165         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36166         m4/environ.m4.
36167         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36168         (gl_PREREQ_UNSETENV): Likewise.
36169
36170 2008-02-24  Bruno Haible  <bruno@clisp.org>
36171
36172         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36173
36174 2008-02-20  Bob Proulx  <bob@proulx.com>
36175
36176         Enable use of older two part flavor 'git describe'.
36177         * build-aux/git-version-gen: If using the older two part flavor of
36178         git version then recreate the third part now present in the
36179         newer three part flavor of git describe.
36180
36181 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36182
36183         * lib/fts.c (fts_build): Typo correction to comment.
36184
36185 2008-02-17  Bruno Haible  <bruno@clisp.org>
36186
36187         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36188         generating no-op conflicts.
36189
36190 2008-02-17  Bruno Haible  <bruno@clisp.org>
36191
36192         Speed up by 10%.
36193         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36194         result_entries, rather than an index-based loop.
36195
36196 2008-02-17  Bruno Haible  <bruno@clisp.org>
36197
36198         Speed up by 25%.
36199         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36200         'hashcode_cached'.
36201         (entry_create): New function.
36202         (entry_hashcode): Use the cached hashcode if possible.
36203         (read_changelog_file, try_split_merged_entry): Use entry_create.
36204
36205 2008-02-17  Bruno Haible  <bruno@clisp.org>
36206
36207         Speed up from O(n^2) to O(n) for long ChangeLog files.
36208         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36209         (read_changelog_file): Change implementation of entries_reversed list
36210         to rbtreehash.
36211         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36212
36213 2008-02-17  Bruno Haible  <bruno@clisp.org>
36214
36215         New option --split-merged-entry.
36216         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36217         (find_paragraph_end, try_split_merged_entry): New functions.
36218         (long_options): Add option --split-merged-entry.
36219         (usage): Document option --split-merged-entry.
36220         (main): Implement option --split-merged-entry.
36221         Reported by Eric Blake.
36222
36223 2008-02-17  Bruno Haible  <bruno@clisp.org>
36224
36225         * lib/git-merge-changelog.c: Include c-strstr.h.
36226         (main): Support the "git pull --rebase" situation.
36227         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36228         Reported by Eric Blake.
36229
36230 2008-02-16  Eric Blake  <ebb9@byu.net>
36231
36232         Avoid doubling \ in common case of "c-maybe" quoting style.
36233         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36234         eliding outer quotes.
36235         * lib/quotearg.h: Document this.
36236         * tests/test-quotearg.c (result_strings, inputs, results_g)
36237         (flag_results, locale_results): Test it by adding a new string to
36238         each test group.
36239         (compare_strings): Test new string.
36240
36241 2008-02-13  Eric Blake  <ebb9@byu.net>
36242
36243         Avoid trigraph quoting in default output.
36244         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36245         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36246         unless explicitly requested.
36247         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36248
36249 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36250
36251         Don't rely on signed integer overflowing to negative value.
36252         * lib/getugroups.c (getugroups): Include <limits.h>.
36253         Instead, compare against INT_MAX, and increment only if the test passes.
36254
36255 2008-02-13  Jim Meyering  <meyering@redhat.com>
36256         and Eric Blake  <ebb9@byu.net>
36257
36258         Avoid shadowing warning and compile errors on Linux.
36259         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36260         forwarding macros on Linux.
36261         (dcgettext): Define a stub, for Linux.
36262         (results_g, main): Avoid warnings.
36263
36264 2008-02-12  Eric Blake  <ebb9@byu.net>
36265
36266         Silence warning in last patch.
36267         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36268
36269         Quotearg part 4: add tests, fix c-maybe colon quoting.
36270         * lib/quotearg.h: Improve documentation.
36271         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36272         escapes when adding outer quotes.  When quoting trigraphs, use
36273         valid C notation.  When quoting NUL, omit extra characters if next
36274         character is not digit.  Alter prototype.
36275         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36276         callers.
36277         * modules/quotearg-tests: New module.
36278         * tests/test-quotearg.c: New test.
36279
36280 2008-02-07  Eric Blake  <ebb9@byu.net>
36281
36282         Quotearg part 3: add flag to control outer quote elision.
36283         * lib/quotearg.h (c_maybe_quoting_style): New style.
36284         (enum quoting_flags): Better documentation of flags.
36285         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36286         c-maybe style.
36287         (quotearg_buffer_restyled): Handle new flag to elide outer
36288         quotes.
36289
36290         Quotearg part 2: add flag that can control NUL elision.
36291         * lib/quotearg.h (set_quoting_flags): New prototype.
36292         * lib/quotearg.c (struct quoting_options): Add flag field.
36293         (set_quoting_flags): New function.
36294         (quotearg_buffer_restyled): Add flags parameter.
36295         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36296         (quotearg_n_options): Set the flag, since length cannot be
36297         returned.
36298         (quoting_options_from_style): Default flags correctly.
36299
36300         Quotearg part 1: more wrappers, restore quotearg_char state.
36301         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36302         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36303         (quotearg_colon_mem): New wrappers.
36304         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36305         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36306         functions.
36307         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36308         (quotearg_colon_mem): New functions.
36309
36310 2008-02-11  Bruno Haible  <bruno@clisp.org>
36311
36312         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36313         library in the current directory: it does not work with parallel make.
36314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36315
36316 2008-02-11  Bruno Haible  <bruno@clisp.org>
36317
36318         * .gitattributes: New file.
36319
36320 2008-02-11  Jim Meyering  <meyering@redhat.com>
36321
36322         useless-if-before-free: Fix reversed exit values.
36323         * build-aux/useless-if-before-free: Use correct values
36324         for EXIT_MATCH and EXIT_NO_MATCH.
36325
36326         * build-aux/useless-if-before-free: Close stdout carefully.
36327
36328 2008-02-10  Bruno Haible  <bruno@clisp.org>
36329
36330         New module 'git-merge-changelog'.
36331         * modules/git-merge-changelog: New file.
36332         * lib/git-merge-changelog.c: New file.
36333
36334 2008-02-10  Jim Meyering  <meyering@redhat.com>
36335
36336         useless-if-before-free: New option: --list (-l).
36337
36338         useless-if-before-free: Don't exit immediately upon open failure.
36339         * build-aux/useless-if-before-free: Exit 2 for errors.
36340         Upon failure to open a file, don't exit immediately.
36341         Rather, just warn and continue with any remaining files.
36342
36343 2008-02-10  Bruno Haible  <bruno@clisp.org>
36344
36345         New abstract list operation 'node_set_value'.
36346         * lib/gl_list.h (gl_list_node_set_value): New function.
36347         (struct gl_list_implementation): New field node_set_value.
36348         * lib/gl_list.c (gl_list_node_set_value): New function.
36349         * lib/gl_array_list.c (gl_array_node_set_value): New function.
36350         (gl_array_list_implementation): Update.
36351         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
36352         (gl_carray_list_implementation): Update.
36353         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
36354         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36355         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36356         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
36357         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36358         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36359         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36360         Update.
36361         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36362         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
36363         (gl_sublist_list_implementation): Update.
36364
36365 2008-02-10  Bruno Haible  <bruno@clisp.org>
36366
36367         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36368         Needed when ELEMENT is #defined to 'some_type *'.
36369
36370 2008-02-10  Jim Meyering  <meyering@redhat.com>
36371
36372         New script and module: useless-if-before-free
36373         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36374         * build-aux/useless-if-before-free: New file.
36375         * modules/useless-if-before-free: New file.
36376
36377         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36378
36379         xstrtol_error: Fix typo.
36380         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36381         s/exit_failure/exit_status/.
36382
36383 2008-02-09  Jim Meyering  <meyering@redhat.com>
36384
36385         New script and module: gitlog-to-changelog
36386         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36387         * modules/gitlog-to-changelog: New file.
36388         * build-aux/gitlog-to-changelog: New file.
36389
36390 2008-02-08  Jim Meyering  <meyering@redhat.com>
36391
36392         Avoid two "parameter unused" warnings.
36393         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36394         Mark "st" as used.
36395
36396         Use "git COMMAND", not "git-COMMAND".
36397         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36398         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36399         * build-aux/git-version-gen: Use "git status", not "git-status".
36400
36401 2008-02-07  Bruno Haible  <bruno@clisp.org>
36402
36403         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36404         Avoids a crash on Windows Vista.
36405         Reported by Adam Strzelecki <ono@java.pl> via
36406         Simon Josefsson <simon@josefsson.org>.
36407
36408 2008-02-06  Bruno Haible  <bruno@clisp.org>
36409
36410         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36411         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
36412         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
36413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
36414         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36415         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36416         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
36417         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
36418         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36420         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36421         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36422         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36423         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36424         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36425         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
36426         left-adjust flag.
36427         * tests/test-snprintf-posix.h (test_function): Likewise.
36428         * tests/test-sprintf-posix.h (test_function): Likewise.
36429         * tests/test-vasprintf-posix.c (test_function): Likewise.
36430         * doc/posix-functions/fprintf.texi: Update.
36431         * doc/posix-functions/printf.texi: Update.
36432         * doc/posix-functions/snprintf.texi: Update.
36433         * doc/posix-functions/sprintf.texi: Update.
36434         * doc/posix-functions/vfprintf.texi: Update.
36435         * doc/posix-functions/vprintf.texi: Update.
36436         * doc/posix-functions/vsnprintf.texi: Update.
36437         * doc/posix-functions/vsprintf.texi: Update.
36438         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36439
36440 2008-02-06  Bruno Haible  <bruno@clisp.org>
36441
36442         Fix bug introduced on 2008-01-26.
36443         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
36444
36445 2008-02-06  Bruno Haible  <bruno@clisp.org>
36446
36447         Fix bug introduced on 2007-06-10.
36448         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
36449         !NEED_PRINTF_FLAG_ZERO.
36450
36451 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
36452
36453         getloadavg: use libperfstat on AIX5
36454         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
36455
36456 2008-02-03  Bruno Haible  <bruno@clisp.org>
36457
36458         * lib/diffseq.h: Add comments about required #includes.
36459         Reported by Michael Biggs <gnulib@doubleplum.net>.
36460
36461 2008-02-01  Bruno Haible  <bruno@clisp.org>
36462
36463         * users.txt: Add gnuit.
36464
36465 2008-01-31  Bruno Haible  <bruno@clisp.org>
36466
36467         * lib/md4.c (set_uint32): Mark as inline.
36468         * lib/md5.c (set_uint32): Likewise.
36469         * lib/sha1.c (set_uint32): Likewise.
36470         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
36471         * m4/md5.m4 (gl_MD5): Likewise.
36472         * m4/sha1.m4 (gl_SHA1): Likewise.
36473
36474 2008-01-31  Jim Meyering  <meyering@redhat.com>
36475
36476         Use "sizeof VAR", rather than a literal "4".
36477         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
36478         * lib/md4.c (md4_read_ctx): Likewise.
36479         * lib/sha1.c (sha1_read_ctx): Likewise.
36480
36481 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36482
36483         * tests/test-sha1.c: New file, based on test-md5.c.
36484
36485         * modules/crypto/sha1-tests: New file.
36486
36487 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36488
36489         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
36490
36491 2008-01-31  Jim Meyering  <meyering@redhat.com>
36492
36493         Prefer "sizeof v" over the equivalent "4".
36494         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
36495         * lib/md5.c (set_uint32): Likewise.
36496         * lib/sha1.c (set_uint32): Likewise.
36497
36498 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36499
36500         * lib/sha1.c (set_uint32): Mark function as static.
36501
36502 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36503
36504         md2: clarify comments to say that alignment is not required.
36505         * lib/md2.h: Remove warning about alignment in comment.
36506         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
36507         never been required.
36508
36509 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36510
36511         md4: adapt alignment constraint fix from sha1.
36512         * lib/md4.c (set_uint32): New function, from sha1.c
36513         (md4_read_ctx): Use it.
36514         (md4_finish_ctx): Doc fix.
36515         * lib/md4.h: Doc fix.
36516
36517 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36518
36519         md5: adapt alignment constraint fix from sha1.
36520         * lib/md5.c (set_uint32): New function, from sha1.c
36521         (md5_read_ctx): Use it.
36522         (md5_finish_ctx): Doc fix.
36523         * lib/md5.h: Doc fix.
36524
36525 2008-01-30  Peter Palfrader  <weasel@debian.org>
36526
36527         sha1: remove the result buffer alignment constraint
36528         * lib/sha1.c (set_uint32): New function.
36529         (sha1_read_ctx): Rewrite to remove the result buffer alignment
36530         constraint.
36531         (sha1_finish_ctx): Remove comment warning about alignment constraint.
36532         * lib/sha1.h: Likewise.
36533
36534 2008-01-30  Andreas Schwab  <schwab@suse.de>
36535             Bruno Haible  <bruno@clisp.org>
36536
36537         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
36538         correct definition of LDBL_MIN_EXP.
36539
36540 2008-01-30  Karl Berry  <karl@gnu.org>
36541
36542         * config/srclist-update: try to preserve x bit on updates.
36543         * config/srclistvars.sh: update for karl.
36544
36545 2008-01-29  Jim Meyering  <meyering@redhat.com>
36546
36547         vasnprintf.c: Avoid warning about unused label
36548         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
36549         "overflow" label definition and associated code with the
36550         same cpp condition that guards the sole use of that label.
36551
36552 2008-01-26  Bruno Haible  <bruno@clisp.org>
36553
36554         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
36555         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
36556         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
36557         * lib/isnanl-nolibm.h (isnanl): Likewise.
36558         Reported by Paul Eggert <eggert@cs.ucla.edu>.
36559
36560 2008-01-26  Bruno Haible  <bruno@clisp.org>
36561
36562         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
36563         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
36564
36565 2008-01-26  Bruno Haible  <bruno@clisp.org>
36566
36567         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
36568         GCC >= 4.0 built-in.
36569         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
36570
36571 2008-01-26  Bruno Haible  <bruno@clisp.org>
36572
36573         Rename isnan, applicable to 'double' only, to isnand.
36574         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
36575         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
36576         (configure.ac): Update.
36577         (Include): Replace "isnan.h" with "isnand.h".
36578         * m4/isnand.m4: Renamed from m4/isnan.m4.
36579         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
36580         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
36581         instead of isnan.c.
36582         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
36583         instead of HAVE_ISNAN_IN_LIBC.
36584         (isnand): Renamed from isnan.
36585         * lib/isnand.c: New file.
36586         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
36587         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
36588         (Makefile.am): Update.
36589         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
36590         Include isnand.h instead of isnan.h.
36591         (main): Test isnand instead of isnan.
36592         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
36593         isnan-nolibm.
36594         * modules/frexp (Depends-on): Likewise.
36595         * modules/frexp-tests (Depends-on): Likewise.
36596         * modules/frexp-nolibm (Depends-on): Likewise.
36597         * modules/frexp-nolibm-tests (Depends-on): Likewise.
36598         * modules/isfinite (Depends-on): Likewise.
36599         * modules/round-tests (Depends-on): Likewise.
36600         * modules/signbit (Depends-on): Likewise.
36601         * modules/signbit-tests (Depends-on): Likewise.
36602         * modules/snprintf-posix (Depends-on): Likewise.
36603         * modules/sprintf-posix (Depends-on): Likewise.
36604         * modules/trunc-tests (Depends-on): Likewise.
36605         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36606         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36607         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36608         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36609         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36610         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36611         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36612         * modules/vasnprintf-posix (Depends-on): Likewise.
36613         * modules/vasprintf-posix (Depends-on): Likewise.
36614         * modules/vfprintf-posix (Depends-on): Likewise.
36615         * modules/vsnprintf-posix (Depends-on): Likewise.
36616         * modules/vsprintf-posix (Depends-on): Likewise.
36617         * lib/frexp.c: Include isnand.h instead of isnan.h.
36618         (ISNAN): Set to isnand instead of isnan.
36619         * lib/isfinite.c: Include isnand.h instead of isnan.h.
36620         (gl_isfinited): Use isnand instead of isnan.
36621         * lib/signbitd.c: Include isnand.h instead of isnan.h.
36622         (gl_signbitd): Use isnand instead of isnan.
36623         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
36624         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
36625         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
36626         (main): Use isnand instead of isnan.
36627         * tests/test-round1.c: Include isnand.h.
36628         (main): Use isnand instead of isnan.
36629         * tests/test-round2.c: Include isnand.h instead of isnan.h.
36630         (ISNAN): Set to isnand instead of isnan.
36631         * tests/test-trunc1.c: Include isnand.h.
36632         (main): Use isnand instead of isnan.
36633         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
36634         (equal): Use isnand instead of isnan.
36635         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
36636         isnand-nolibm.
36637         * NEWS: Mention the change.
36638
36639 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36640             Bruno Haible  <bruno@clisp.org>
36641
36642         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
36643         the GCC builtins for signbits are present and set
36644         REPLACE_SIGNBIT_USING_GCC if so.
36645         * lib/math.in.h (signbit): Define using GCC builtins if
36646         REPLACE_SIGNBIT_USING_GCC is set.
36647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
36648         REPLACE_SIGNBIT_USING_GCC.
36649         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
36650
36651 2008-01-25  Jim Meyering  <meyering@redhat.com>
36652
36653         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
36654         * lib/poll.c: Include <config.h>, not "config.h".
36655         * tests/test-getaddrinfo.c: Likewise.
36656
36657 2008-01-25  Simon Josefsson  <simon@josefsson.org>
36658
36659         * modules/sockets-tests: New file.
36660
36661 2008-01-24  Simon Josefsson  <simon@josefsson.org>
36662
36663         * modules/sockets: New module, can be used to call WSA_Startup and
36664         WSA_Cleanup when needed.
36665
36666         * lib/sockets.h, lib/sockets.c: New files.
36667
36668         * m4/sockets.m4: New file.
36669
36670         * tests/test-sockets.c: New file.
36671
36672 2008-01-19  Bruno Haible  <bruno@clisp.org>
36673
36674         * doc/posix-headers: Renamed from doc/headers.
36675         * doc/posix-functions: Renamed from doc/functions.
36676         * doc/gnulib.texi: Update.
36677
36678 2008-01-19  Bruno Haible  <bruno@clisp.org>
36679
36680         * doc/glibc-functions/strcasestr.texi: Include contents of
36681         doc/functions/strcasestr.texi, fixing the list of platforms.
36682         * doc/functions/strcasestr.texi: Remove file.
36683
36684 2008-01-19  Bruno Haible  <bruno@clisp.org>
36685
36686         * doc/glibc-functions/memmem.texi: Include contents of
36687         doc/functions/memmem.texi.
36688         * doc/functions/memmem.texi: Remove file.
36689
36690 2008-01-18  Bruno Haible  <bruno@clisp.org>
36691
36692         * doc/glibc-functions/*.texi: New files.
36693         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
36694         to use the new files.
36695
36696 2008-01-17  Bruno Haible  <bruno@clisp.org>
36697
36698         * tests/test-gethostname.c (main): Fix printf statement.
36699
36700 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36701
36702         * modules/gethostname-tests: New file.
36703
36704         * tests/test-gethostname.c: New file.
36705
36706 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36707
36708         * lib/gethostname.c: Include string.h unconditionally, strncpy is
36709         used by the UNAME case.  Reported by Bruno Haible
36710         <bruno@clisp.org>.
36711
36712 2008-01-17  Eric Blake  <ebb9@byu.net>
36713
36714         Convert c-strcasestr to be more efficient.
36715         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
36716         (Depends-on): Add c-strcase, remove malloca, strnlen.
36717         * tests/test-c-strcasestr.c (main): Enhance test.
36718         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
36719
36720 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36721
36722         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
36723         Use it in creating po/Makevars.
36724
36725 2008-01-15  Simon Josefsson  <simon@josefsson.org>
36726
36727         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
36728         Applications that requires it should initialize libgcrypt
36729         manually.
36730
36731 2008-01-16  Simon Josefsson  <simon@josefsson.org>
36732
36733         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
36734
36735 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36736
36737         Fix problem with getdate on mingw32 reported by Simon Josefsson
36738         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
36739         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
36740         tzname", when deciding whether to declare tzname.
36741         * lib/strftime.c (tzname): Likewise.
36742
36743 2008-01-15  Bruno Haible  <bruno@clisp.org>
36744
36745         Work around a MacOS X 10.5 bug in frexpl().
36746         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
36747         * doc/functions/frexpl.texi: Document the bug.
36748         Reported by Elias Pipping <pipping@gentoo.org>.
36749
36750 2008-01-14  Eric Blake  <ebb9@byu.net>
36751
36752         Touch up previous patch.
36753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
36754         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
36755
36756         Convert strcasestr module to use Two-Way algorithm.
36757         * modules/strcasestr-simple: New module, based on the old
36758         strcasestr, but with Two-Way rather than KMP.
36759         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
36760         * lib/string.in.h (rpl_strcasestr): Declare.
36761         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
36762         performance.
36763         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
36764         * modules/string (Makefile.am): Support strcasestr.
36765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36766         * modules/strcasestr-tests (Depends-on): Check for alarm.
36767         * tests/test-strcasestr.c: Augment test.
36768         * lib/str-two-way.h: Clean up stray macro.
36769         * NEWS: Document new module.
36770         * MODULES.html.sh (string handling): Likewise.
36771         * doc/functions/strcasestr.texi: New file.
36772         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
36773         here, since it is not a POSIX function.
36774
36775 2008-01-14  Colin Watson  <cjwatson@debian.org>
36776             Bruno Haible  <bruno@clisp.org>
36777
36778         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
36779         works fine; if not, set REPLACE_STRSIGNAL.
36780         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
36781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36782         REPLACE_STRSIGNAL.
36783         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
36784         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
36785         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
36786
36787 2008-01-14  Bruno Haible  <bruno@clisp.org>
36788
36789         * modules/strsignal (Include): Change to <string.h>.
36790
36791 2008-01-14  Colin Watson  <cjwatson@debian.org>
36792
36793         * modules/argp (Notice): Add a notice recommending to change
36794         XGETTEXT_OPTIONS.
36795         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
36796
36797 2008-01-13  Colin Watson  <cjwatson@debian.org>
36798
36799         * modules/strsignal-tests: New file.
36800         * tests/test-strsignal.c: New file.
36801
36802         * lib/strsignal.c: New file, from glibc with modifications.
36803         * lib/siglist.h: New file, from glibc with modifications.
36804         * lib/string.in.h (strsignal): New declaration.
36805         * m4/strsignal.m4: New file.
36806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36807         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
36808         * modules/strsignal: New file.
36809         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
36810         HAVE_DECL_STRSIGNAL.
36811
36812 2008-01-13  Bruno Haible  <bruno@clisp.org>
36813
36814         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
36815         locale encoding is not ASCII. Needed for OpenBSD 4.0.
36816         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36817         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36818
36819 2008-01-13  Bruno Haible  <bruno@clisp.org>
36820
36821         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
36822         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
36823         * lib/argp.h (__attribute__): Likewise.
36824         * lib/c-stack.c (__attribute__): Likewise.
36825         * lib/error.h (__attribute__): Likewise.
36826         * lib/fts.c (__attribute__): Likewise.
36827         * lib/openat.h (__attribute__): Likewise.
36828         * lib/stdio.in.h (__attribute__): Likewise.
36829         * lib/string.in.h (__attribute__): Likewise.
36830         * lib/utimens.c (__attribute__): Likewise.
36831         * lib/vasnprintf.h (__attribute__): Likewise.
36832         * lib/xalloc.h (__attribute__): Likewise.
36833         * lib/xprintf.h (__attribute__): Likewise.
36834         * lib/xstrtol.h (__attribute__): Likewise.
36835         * lib/xvasprintf.h (__attribute__): Likewise.
36836
36837 2008-01-12  Bruno Haible  <bruno@clisp.org>
36838
36839         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
36840         * doc/glibc-headers/a.out.texi: New file.
36841         * doc/glibc-headers/aliases.texi: New file.
36842         * doc/glibc-headers/alloca.texi: New file.
36843         * doc/glibc-headers/ar.texi: New file.
36844         * doc/glibc-headers/argp.texi: New file.
36845         * doc/glibc-headers/argz.texi: New file.
36846         * doc/glibc-headers/byteswap.texi: New file.
36847         * doc/glibc-headers/crypt.texi: New file.
36848         * doc/glibc-headers/endian.texi: New file.
36849         * doc/glibc-headers/envz.texi: New file.
36850         * doc/glibc-headers/err.texi: New file.
36851         * doc/glibc-headers/error.texi: New file.
36852         * doc/glibc-headers/execinfo.texi: New file.
36853         * doc/glibc-headers/fpu_control.texi: New file.
36854         * doc/glibc-headers/fstab.texi: New file.
36855         * doc/glibc-headers/fts.texi: New file.
36856         * doc/glibc-headers/getopt.texi: New file.
36857         * doc/glibc-headers/ieee754.texi: New file.
36858         * doc/glibc-headers/ifaddrs.texi: New file.
36859         * doc/glibc-headers/libintl.texi: New file.
36860         * doc/glibc-headers/mcheck.texi: New file.
36861         * doc/glibc-headers/mntent.texi: New file.
36862         * doc/glibc-headers/obstack.texi: New file.
36863         * doc/glibc-headers/paths.texi: New file.
36864         * doc/glibc-headers/printf.texi: New file.
36865         * doc/glibc-headers/pty.texi: New file.
36866         * doc/glibc-headers/resolv.texi: New file.
36867         * doc/glibc-headers/shadow.texi: New file.
36868         * doc/glibc-headers/sysexits.texi: New file.
36869         * doc/glibc-headers/ttyent.texi: New file.
36870
36871 2008-01-12  Jim Meyering  <meyering@redhat.com>
36872
36873         announce-gen: emit Gnulib's git-based version string.
36874         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
36875         New option --gnulib-version=V, where V is expected to be
36876         the output of running git describe in the gnulib directory.
36877         (get_tool_versions): Request feedback on xdelta.  I suspect it's
36878         not useful, and plan to stop publishing an xdelta file with each
36879         coreutils release.
36880
36881         * build-aux/announce-gen: Also check for lzma-compressed files.
36882
36883 2008-01-11  Bruno Haible  <bruno@clisp.org>
36884
36885         * tests/test-memmem.c (main): Increase maximum allowed time.
36886         * tests/test-strstr.c (main): Likewise.
36887
36888 2008-01-11  Bruno Haible  <bruno@clisp.org>
36889
36890         * doc/functions/memmem.texi: Add more precisions about platforms.
36891         * doc/functions/strstr.texi: Likewise.
36892
36893 2008-01-10  Eric Blake  <ebb9@byu.net>
36894
36895         * m4/strstr.m4: Delete cruft from copy-n-paste.
36896         Reported by Bruno Haible.
36897
36898 2008-01-10  Bruno Haible  <bruno@clisp.org>
36899
36900         Make c-strstr rely on strstr.
36901         * lib/c-strstr.c: Don't include str-kmp.h.
36902         (c_strstr): Define in terms of strstr.
36903         * modules/c-strstr (Files): Remove lib/str-kmp.h.
36904         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
36905
36906 2008-01-10  Bruno Haible  <bruno@clisp.org>
36907
36908         * doc/gnulib.texi (String Functions in C Locale): New section.
36909         * doc/c-ctype.texi: New file.
36910         * doc/c-strcase.texi: New file.
36911         * doc/c-strcaseeq.texi: New file.
36912         * doc/c-strcasestr.texi: New file.
36913         * doc/c-strstr.texi: New file.
36914         * doc/c-strtod.texi: New file.
36915         * doc/c-strtold.texi: New file.
36916
36917 2008-01-10  Eric Blake  <ebb9@byu.net>
36918
36919         * lib/relocatable.h: Fix a comment.
36920
36921 2008-01-10  Eric Blake  <ebb9@byu.net>
36922
36923         Share two-way algorithm.
36924         * lib/str-two-way.h: New file, merged from...
36925         * lib/memmem.c: ...here...
36926         * lib/strstr.c: ...and here.
36927         * modules/memmem (Files): Use it.
36928         * modules/strstr (Files): Likewise.
36929
36930         Avoid quadratic strstr implementations.
36931         * lib/strstr.c: New file.
36932         * m4/strstr.m4: Likewise.
36933         * modules/strstr: Likewise.
36934         * modules/strstr-tests: Likewise.
36935         * tests/test-strstr.c: Likewise.
36936         * lib/string.in.h (rpl_strstr): Declare.
36937         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
36938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
36939         * modules/string (Makefile.am): Likewise.
36940         * MODULES.html.sh (string handling): Mention new module.
36941         * doc/functions/strstr.texi (strstr): Document the bug.
36942
36943 2008-01-10  Bruno Haible  <bruno@clisp.org>
36944
36945         * lib/relocatable.h (relocate): State whether result is freshly
36946         allocated or not.
36947         * lib/relocatable.c (relocate): Return a freshly allocated string
36948         instead of a pointer to a privately held string.
36949         Reported by Sylvain Beucler <beuc@gnu.org>.
36950
36951 2008-01-10  Colin Watson  <cjwatson@debian.org>
36952
36953         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
36954         s/S_ISNLK/S_ISLNK/.
36955
36956 2008-01-09  Bruno Haible  <bruno@clisp.org>
36957
36958         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
36959         and other files.
36960         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
36961         if it's only a guess.
36962         * modules/memmem: Simplify by depending on memmem-simple.
36963
36964 2008-01-09  Bruno Haible  <bruno@clisp.org>
36965
36966         Work around OpenBSD 4.0 tdelete() bug.
36967         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
36968         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
36969         macros and don't redefine the enum values.
36970         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
36971         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
36972         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
36973
36974 2008-01-09  Bruno Haible  <bruno@clisp.org>
36975
36976         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
36977         (main): Don't perform the tests if setlocale did not install a UTF-8
36978         locale. Needed on OpenBSD 4.0.
36979         * modules/wcwidth-tests (Depends-on): Add localcharset.
36980
36981 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36982
36983         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
36984         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
36985         * NEWS: announce this.
36986         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
36987
36988 2008-01-09  Simon Josefsson  <simon@josefsson.org>
36989         and Eric Blake  <ebb9@byu.net>
36990
36991         Add memmem-simple module.
36992         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
36993         (gl_FUNC_MEMMEM): Separate performance from presence checks.
36994         * modules/memmem-simple: New file.
36995         * modules/memmem (Description): Tweak.
36996         * MODULES.html.sh (string handling): Mention new module.
36997         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
36998         addressed by memmem-simple.
36999         * NEWS: Document the difference.
37000
37001 2008-01-09  Eric Blake  <ebb9@byu.net>
37002
37003         Give gcc some memmem optimization hints.
37004         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37005         (strcasestr): Declare as pure.
37006         * modules/memmem (Maintainer): Claim my implementation.
37007
37008 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37009
37010         Support AIX 6.1 and higher.
37011         * build-aux/config.libpath: Likewise.
37012         * build-aux/config.rpath: Likewise.
37013
37014 2008-01-08  Jim Meyering  <meyering@redhat.com>
37015             Bruno Haible  <bruno@clisp.org>
37016
37017         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37018         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37019         Reported by Peter Fales in
37020         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37021
37022 2008-01-08  Bruno Haible  <bruno@clisp.org>
37023
37024         * modules/unictype/category-of (Depends-on): Add
37025         unictype/category-none.
37026         * modules/unictype/category-and-tests (Depends-on): Add
37027         unictype/category-{L,N,Lu,Nd}.
37028         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37029         * modules/unictype/category-or-tests (Depends-on): Add
37030         unictype/category-{L,N}.
37031         * modules/unictype/category-name-tests (Depends-on): Add
37032         unictype/category-{Z,Nl}.
37033         Reported by Simon Josefsson.
37034
37035 2008-01-08  Bruno Haible  <bruno@clisp.org>
37036
37037         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37038         convention better.
37039         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37040         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37041         Reported by Peter Miller <millerp@canb.auug.org.au>.
37042
37043 2008-01-08  Eric Blake  <ebb9@byu.net>
37044
37045         Rewrite memmem to guarantee linear complexity without malloc.
37046         * lib/memmem.c (memmem): Use Two-Way rather than
37047         Knuth-Morris-Pratt, to allow O(1) space usage.
37048         (critical_factorization, two_way_short_needle)
37049         (two_way_long_needle): New functions.
37050         (knuth_morris_pratt): Delete.
37051         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37052         Add stdint.
37053         * tests/test-memmem.c (main): Add tests for periodic needle and
37054         sublinear performance.
37055         * doc/functions/memmem.texi (memmem): Document other deficiencies
37056         in cygwin and older glibc.
37057
37058 2008-01-08  Bruno Haible  <bruno@clisp.org>
37059
37060         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37061         augmentation.
37062
37063 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37064
37065         Add a configure time option: --disable-acl.
37066         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37067         AC_ARG_ENABLE(acl).
37068
37069 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37070
37071         * tests/test-localename.c: Don't include obsolete "setenv.h".
37072
37073         * modules/localename-tests (Depends-on): Need unsetenv.
37074
37075 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37076
37077         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37078
37079 2008-01-06  Colin Watson  <cjwatson@debian.org>
37080
37081         * users.txt: Add man-db.
37082
37083 2008-01-07  Bruno Haible  <bruno@clisp.org>
37084
37085         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37086         previous section name.
37087
37088 2008-01-07  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/progname.c (set_program_name): Don't strip off a leading
37091         "lt-" prefix outside a .libs directory.
37092         Suggested by Paul Eggert.
37093
37094 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37095             Bruno Haible  <bruno@clisp.org>
37096
37097         Improve memory cleanup in 'relocatable' module.
37098         * lib/relocatable.h (compute_curr_prefix): Change return type to
37099         'char *'.
37100         * lib/relocatable.c (compute_curr_prefix): Change return type to
37101         'char *'. Free curr_installdir after use.
37102         (relocate): Free curr_prefix_better after use.
37103         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37104
37105 2008-01-01  Bruno Haible  <bruno@clisp.org>
37106
37107         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37108         failure on older glibc systems.
37109         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37110
37111 2008-01-05  Eric Blake  <ebb9@byu.net>
37112
37113         Avoid quadratic system memmem.
37114         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37115         Reported by Ralf Wildenhues.
37116
37117         Fix memmem test for mingw.
37118         * modules/memmem-tests (configure.ac): Check for alarm.
37119         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37120         it.
37121         * doc/functions/memmem.texi: New file.
37122         * doc/gnulib.texi (Function Substitutes): Add memmem.
37123         Reported by Bruno Haible.
37124
37125 2008-01-04  Bruno Haible  <bruno@clisp.org>
37126
37127         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37128         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37129         gl_HEADER_STRING_H_DEFAULTS.
37130
37131 2008-01-04  Eric Blake  <ebb9@byu.net>
37132
37133         Shorten duration of memmem test.
37134         * tests/test-memmem.c (main): Use alarm to declare failure if test
37135         is taking too long.
37136         Reported by Ralf Wildenhues.
37137
37138 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37139
37140         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37141         string, needed by strerror.
37142
37143 2008-01-03  Colin Watson  <cjwatson@debian.org>
37144             Bruno Haible  <bruno@clisp.org>
37145
37146         * doc/gnulib-tool.texi (Localization): New section.
37147
37148 2008-01-02  Bruno Haible  <bruno@clisp.org>
37149
37150         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37151         variables to 'unsigned char *' type.
37152         Reported by Paul Eggert.
37153
37154 2008-01-02  Jim Meyering  <jim@meyering.net>
37155
37156         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37157
37158 2007-12-31  Jim Meyering  <jim@meyering.net>
37159
37160         Avoid use of private FTS type name.
37161         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37162
37163 2007-12-30  Karl Berry  <karl@gnu.org>
37164
37165         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37166         work around defect in Texinfo and/or the standalone Info browser.
37167
37168 2007-12-30  Bruno Haible  <bruno@clisp.org>
37169
37170         Unify 5 copies of the KMP code.
37171         * lib/str-kmp.h: New file.
37172         * lib/c-strcasestr.c: Include str-kmp.h.
37173         (knuth_morris_pratt): Remove function.
37174         (c_strcasestr): Update.
37175         * lib/c-strstr.c: Include str-kmp.h.
37176         (knuth_morris_pratt): Remove function.
37177         (c_strcasestr): Update.
37178         * lib/mbscasestr.c: Include str-kmp.h.
37179         (knuth_morris_pratt_unibyte): Remove function.
37180         * lib/mbsstr.c: Include str-kmp.h.
37181         (knuth_morris_pratt_unibyte): Remove function.
37182         * lib/strcasestr.c: Include str-kmp.h.
37183         (knuth_morris_pratt): Remove function.
37184         (strcasestr): Update.
37185         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37186         * modules/c-strstr (Files): Likewise.
37187         * modules/mbscasestr (Files): Likewise.
37188         * modules/mbsstr (Files): Likewise.
37189         * modules/strcasestr (Files): Likewise.
37190         Suggested by Paul Eggert.
37191
37192 2007-12-30  Bruno Haible  <bruno@clisp.org>
37193
37194         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37195         defined.
37196
37197 2007-12-30  Bruno Haible  <bruno@clisp.org>
37198
37199         * lib/xmalloca.h: Include xalloc.h.
37200         (xnmalloca): New macro.
37201
37202 2007-12-30  Bruno Haible  <bruno@clisp.org>
37203
37204         * lib/malloca.h (nmalloca): New macro.
37205         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37206         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37207         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37208         knuth_morris_pratt_multibyte): Likewise.
37209         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37210         knuth_morris_pratt_multibyte): Likewise.
37211         * lib/memmem.c (knuth_morris_pratt): Likewise.
37212         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37213
37214 2007-12-25  Bruno Haible  <bruno@clisp.org>
37215
37216         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37217         * lib/glob.c: Don't include openat.h.
37218         (link_exists2_p): Add back the code that deals with the
37219         !GLOB_ALTDIRFUNC case.
37220         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37221         let it do the filename concatenation.
37222         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37223         * modules/glob (Depends-on): Remove openat.
37224
37225 2007-12-31  Bruno Haible  <bruno@clisp.org>
37226
37227         * modules/dirfd (License): Change to LGPLv2+.
37228         Approved by Jim Meyering.
37229
37230 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37231
37232         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37233         when multiplying M by sizeof (size_t).
37234
37235 2007-12-10  Martin Lambers  <marlam@marlam.de>
37236
37237         Override getpagesize on mingw.
37238         * lib/getpagesize.c: New file.
37239         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37240         * modules/getpagesize (Files): Add lib/getpagesize.c.
37241         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37243         REPLACE_GETPAGESIZE.
37244         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37245
37246 2007-12-25  Bruno Haible  <bruno@clisp.org>
37247
37248         * modules/localcharset (Notice): New field.
37249         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37250         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37251
37252 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37253             Bruno Haible  <bruno@clisp.org>
37254
37255         Avoid using the syntax symbol() in formatted documentation.
37256         * MODULES.html.sh (func_module): When replacing symbol() with a
37257         hyperlink, remove the parentheses. Show an error if some remain.
37258         Recognize and render the '...' syntax.
37259         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37260         Rework. Add paragraph about GCC's inlining.
37261         * doc/alloca.texi: Likewise.
37262         * doc/error.texi: Remove parentheses from symbol reference.
37263         * doc/gnulib-intro.texi: Likewise.
37264         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37265         * modules/fnmatch (Description): Reword to say "the ... function".
37266         * modules/full-read (Description): Likewise.
37267         * modules/full-write (Description): Likewise.
37268         * modules/safe-read (Description): Likewise.
37269         * modules/safe-write (Description): Likewise.
37270         * modules/strchrnul (Description): Likewise.
37271         * modules/trim (Description): Likewise.
37272         * modules/error (Description): Remove parentheses from symbol
37273         references.
37274         * modules/verror (Description): Likewise.
37275         Reported by Karl Berry.
37276
37277 2007-12-25  Bruno Haible  <bruno@clisp.org>
37278
37279         Fixup after 2007-10-16 commit.
37280         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37281
37282 2007-12-24  Bruno Haible  <bruno@clisp.org>
37283
37284         Make --enable-relocatable work with DESTDIR.
37285         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37286         to compute installdir from destprog.
37287         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37288         also set the RELOC_DESTDIR variable.
37289         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37290
37291 2007-12-24  Bruno Haible  <bruno@clisp.org>
37292
37293         Fix link error due to xalloc_die().
37294         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37295         of xreadlink.
37296         * lib/relocwrapper.c: Update comments.
37297         * build-aux/install-reloc: Remove xreadlink.c from file list.
37298         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37299         xreadlink.c.
37300         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37301
37302 2007-12-24  Bruno Haible  <bruno@clisp.org>
37303
37304         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37305         * lib/setenv.h: Remove file.
37306         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37307         lib/setenv.h.
37308         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37309         (Depends-on): Add stdlib.
37310         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37311         gl_FUNC_UNSETENV.
37312         (Include): Replace setenv.h with <stdlib.h>.
37313         * modules/unsetenv: New file.
37314         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37315         * lib/unsetenv.c: Include <stdlib.h> first.
37316         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37317         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37318         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37319         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37320         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37321         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37322         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37323         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37324         * doc/functions/unsetenv.texi: Update.
37325         * modules/xsetenv (Depends-on): Add unsetenv.
37326         * modules/getdate (Depends-on): Likewise.
37327         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37328         * lib/xsetenv.c: Don't include setenv.h.
37329         * lib/getdate.y: Likewise.
37330         * lib/relocwrapper.c: Likewise.
37331         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37332         (Depends-on): Add stdlib.
37333         * NEWS: Mention the changes.
37334         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37335
37336 2007-12-23  Bruno Haible  <bruno@clisp.org>
37337
37338         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37339         indentation.
37340
37341 2007-12-23  Bruno Haible  <bruno@clisp.org>
37342
37343         * lib/c-strcasestr.c: Add more comments.
37344         * lib/c-strstr.c: Likewise.
37345         * lib/mbscasestr.c: Likewise.
37346         * lib/mbsstr.c: Likewise.
37347         * lib/strcasestr.c: Likewise.
37348         * lib/memmem.c: Likewise.
37349
37350 2007-12-23  Bruno Haible  <bruno@clisp.org>
37351
37352         * tests/test-memmem.c: Include <string.h> first.
37353
37354 2007-12-22  Bruno Haible  <bruno@clisp.org>
37355
37356         * gnulib-tool (func_create_testdir): Change $auxdir while generating
37357         the contents of $testsbase.
37358         Reported by Ralf Wildenhues.
37359
37360 2007-12-22  Bruno Haible  <bruno@clisp.org>
37361
37362         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
37363         two variables local_ldadd_before, local_ldadd_last.
37364
37365 2007-12-20  Eric Blake  <ebb9@byu.net>
37366
37367         Work around circular library issue when cross-compiling.
37368         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37369         that progname.o does not need to pull in rpl_memcmp.
37370
37371 2007-12-19  Eric Blake  <ebb9@byu.net>
37372
37373         Fix memmem to avoid O(n^2) worst-case complexity.
37374         * lib/memmem.c (knuth_morris_pratt): New function.
37375         (memmem): Use it if first few naive iterations fail.
37376         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37377         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37378         * modules/memchr (License): Likewise.
37379         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37380         malloca.
37381         * tests/test-memmem.c: Rewrite, borrowing ideas from
37382         test-mbsstr1.c; the old version wouldn't even compile!
37383         * modules/memmem-tests: New file.
37384         * lib/string.in.h (rpl_memmem): Add declaration.
37385         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37387         REPLACE_MEMMEM.
37388
37389 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37390
37391         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37392         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37393         before any system include files, and undef after them all.  This
37394         should fix a problem on VMS reported by John E. Malmberg in
37395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37396
37397 2007-12-17  Eric Blake  <ebb9@byu.net>
37398
37399         Revert addition of verify, for BSD/OS.
37400         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37401         can't handle large files, for the sake of obsolete platforms.
37402         * modules/fseeko (Depends-on): Remove verify.
37403         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37404         * doc/functions/ftello.texi (ftello): Likewise.
37405         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37406         Reported by Larry Jones.
37407
37408 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37409
37410         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37411         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
37412
37413 2007-12-17  Jim Meyering  <meyering@redhat.com>
37414
37415         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
37416         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
37417         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
37418         * modules/getcwd (Depends-on): Add openat.
37419         Reported by Petr Salinger.
37420
37421 2007-12-17  Bruno Haible  <bruno@clisp.org>
37422
37423         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
37424         avoid a segmentation fault of the configure test on x86_64 systems.
37425
37426 2007-12-15  Jim Meyering  <meyering@redhat.com>
37427
37428         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
37429
37430 2007-12-13  Eric Blake  <ebb9@byu.net>
37431
37432         Another fseek test.
37433         * tests/test-fseek.c (main): Also test ungetc handling.
37434         * tests/test-fseeko.c (main): Likewise.
37435         * modules/fseeko (Depends-on): Add verify.
37436         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
37437         large.
37438         Reported by Larry Jones.
37439
37440         Fix fseeko on mingw.
37441         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
37442         seek.
37443
37444         Beef up fseek tests.
37445         * tests/test-fseek.c (main): Also test eof handling.
37446         * tests/test-fseeko.c (main): Likewise.
37447         Reported by Larry Jones.
37448
37449 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
37450
37451         Fix fseeko on BSD-based platforms.
37452         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
37453         successful seek.
37454
37455 2007-12-12  Eric Blake  <ebb9@byu.net>
37456
37457         Allow circular dependency of separate libtests.a
37458         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
37459         when use_libtests.
37460
37461 2007-12-11  Eric Blake  <ebb9@byu.net>
37462
37463         Fix bug with -0.0L in previous patch.
37464         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
37465         * tests/test-isnan.c (main): Also test on zeroes.
37466         * tests/test-isnanf.c (main): Likewise.
37467         * tests/test-isnanl.h (main): Likewise.
37468
37469         Detect pseudo-denormals on x86 even when cross-compiling.
37470         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
37471         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
37472         invalid bit patterns that happen to satisfy ==.
37473
37474         Avoid link failures with separate libtests.a.
37475         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
37476         last, to satisfy circular dependencies.
37477
37478 2007-12-11  Eric Blake  <ebb9@byu.net>
37479         and Bruno Haible  <bruno@clisp.org>
37480
37481         Fix OpenBSD 4.0 <float.h> handling of long double.
37482         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
37483         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
37484         * doc/headers/float.texi (float.h): Document OpenBSD bug.
37485
37486 2007-12-11  Jim Meyering  <meyering@redhat.com>
37487
37488         * users.txt: Add libvirt.
37489
37490         Support versions of autoconf prior to 2.59c.
37491         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
37492         if it is not already defined.
37493
37494 2007-12-09  Bruno Haible  <bruno@clisp.org>
37495
37496         Let 'gnulib-tool --import' collect sources needed for the tests in
37497         tests/ rather than in lib/.
37498         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
37499         argument. If true, add rules to generate libtests.a, and put libtests.a
37500         into $(LDADD). Consider source files in subdirectories and set
37501         uses_subdirs.
37502         (func_emit_initmacro_start, func_emit_initmacro_end,
37503         func_emit_initmacro_done): Pass all arguments explicitly.
37504         (func_import): Determine two module lists main_modules,
37505         testsrelated_modules. Determine use_libtests. Determine two variables
37506         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
37507         instead of just sed_transform_lib_file. Determine two variables
37508         main_files and testsrelated_files. Compute 'files' as the union of
37509         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
37510         func_add_or_update. In the generated gnulib-comp.m4, collect the
37511         object files for tests/ in different variables than those for lib/.
37512         Substitute LIBTESTS_LIBDEPS.
37513         (func_create_testdir): Combine the uses_subdirs results from
37514         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
37515
37516 2007-12-09  Bruno Haible  <bruno@clisp.org>
37517
37518         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
37519         the build-aux directory.
37520
37521 2007-12-09  Bruno Haible  <bruno@clisp.org>
37522
37523         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
37524         introduced on 2006-09-09.
37525
37526 2007-12-07  Jim Meyering  <meyering@redhat.com>
37527
37528         Let these macros work also with autoconf-2.59.
37529         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
37530         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
37531         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37532
37533 2007-12-06  Jim Meyering  <meyering@redhat.com>
37534
37535         Avoid a configure-time syntax error in gl_FUNC_ACL.
37536         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
37537         function in each branch, before testing the cache variable.
37538
37539 2007-12-04  Eric Blake  <ebb9@byu.net>
37540
37541         Make scripts executable.
37542         * build-aux/config.guess: Add execute permissions.
37543         * build-aux/config.sub: Likewise.
37544         * build-aux/gendocs.sh: Likewise.
37545
37546         Fix frexp on mingw.
37547         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
37548         cross-compiling.
37549         * doc/functions/frexp.texi (frexp): Document the bug.
37550
37551         Make cygwin fseeko check more reliable.
37552         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
37553         version numbers, rather than unrelated feature check.
37554         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
37555         * doc/functions/ftello.texi (ftello): Likewise.
37556         Reported by Bruno Haible.
37557
37558         * m4/strerror.m4: Bump version number.
37559
37560 2007-12-03  Bruno Haible  <bruno@clisp.org>
37561
37562         * doc/functions/mprotect.texi: Mention the mingw problem.
37563
37564 2007-12-03  Eric Blake  <ebb9@byu.net>
37565
37566         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
37567         REPLACE_STRERROR is initialized before this macro.
37568
37569 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37570
37571         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
37572         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
37573         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
37574         put -lsec in even for programs other than 'ls'.  This fixes a problem
37575         for gettext reported by Bruno Haible in
37576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
37577         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
37578         Add support for Solaris 10.  This isn't efficient, but should get the
37579         job done for now.
37580
37581 2007-12-03  James Youngman  <jay@gnu.org>
37582
37583         * doc/regexprops-generic.texi: change "an close-group" to "a
37584         close-group" and "illegal" to "not allowed".
37585
37586 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37587
37588         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
37589         pr_byname.h. Needed for the rare case when the maintainer has done
37590         "make maintainer-clean" in the source directory and then attempts a
37591         build outside the source directory.
37592         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
37593         scripts_byname.h.
37594
37595 2007-12-02  Martin Lambers <marlam@marlam.de>
37596             Bruno Haible  <bruno@clisp.org>
37597
37598         * lib/getpagesize.h: Remove file.
37599         * lib/unistd.in.h: Include declaration of getpagesize here.
37600         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
37601         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
37602         HAVE_SYS_PARAM_H.
37603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
37604         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37605         * modules/getpagesize (Files): Remove lib/getpagesize.h.
37606         (Depends-on): Add unistd.
37607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37608         (Include): Use <unistd.h> instead of getpagesize.h.
37609         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
37610         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37611         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
37612         gl_GETPAGESIZE invocation, already handled by module dependency.
37613         * lib/pagealign_alloc.c: Don't include getpagesize.h.
37614
37615 2007-12-02  Bruno Haible  <bruno@clisp.org>
37616
37617         * modules/strings-tests: New file.
37618         * tests/test-strings.c: New file.
37619
37620         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
37621         * lib/strings.in.h: New file.
37622         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
37623         * m4/strings_h.m4: New file.
37624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
37625         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
37626         * modules/strings: New file.
37627         * modules/string (Makefile.am): Update.
37628         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
37629         Reported by Karl Berry.
37630
37631 2007-12-01  Eric Blake  <ebb9@byu.net>
37632
37633         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
37634         accomodate fix in cygwin 1.5.25.
37635
37636 2007-12-01  Jim Meyering  <meyering@redhat.com>
37637
37638         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
37639         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
37640         that would inhibit utf8-optimization of a regexp containing line-
37641         or buffer-anchors, e.g., `^', `$'.
37642
37643 2007-11-30  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
37646         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
37647         glthread_recursive_lock_init.
37648         * lib/lock.c (glthread_recursive_lock_init)
37649         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
37650         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37651
37652 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
37653
37654         New function qset_acl, like set_acl but with syscall semantics.
37655         * lib/acl.h (qset_acl): New decl.
37656         * lib/acl.c (qset_acl): New function.
37657         (set_acl): Use new function.  Use more-consistent diagnostics.
37658
37659 2007-11-28  Jim Meyering  <meyering@redhat.com>
37660
37661         * modules/physmem (License): Change from GPL to LGPLv2+.
37662
37663 2007-11-26  Bruno Haible  <bruno@clisp.org>
37664
37665         * lib/vasnprintf.c (decode_long_double): Don't abort if the
37666         'long double' type has excess precision.
37667         Reported by Jim Meyering in
37668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
37669
37670 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37671
37672         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
37673         Sync from <http://gnu.org/licenses>.
37674         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
37675         with license text from same location.
37676         * doc/maintain.texi, doc/standards.texi:  Sync from
37677         <http://savannah.gnu.org/projects/gnustandards>.
37678
37679 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
37680         and Jim Meyering  <meyering@redhat.com>
37681
37682         Adjust getdate' grammar to accept a slightly more regular language.
37683         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
37684         Before, the former was rejected.
37685         * lib/getdate.y (digits_to_date_time): New function, factored
37686         out of ...
37687         (number): ...here.  Just call digits_to_date_time.
37688         (hybrid): New non-terminal to handle an <unsigned number,
37689         signed relative offset> sequence consistently.
37690
37691 2007-11-18  Jim Meyering  <meyering@redhat.com>
37692
37693         Pull my changes from coreutils:
37694         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
37695         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
37696         use of $gnulib_tool_option_extras, so that it's separated from the
37697         preceding argument.
37698
37699         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
37700         * build-aux/bootstrap (cp_mark_as_generated): Create any required
37701         parent destination directories before copying a file into place.
37702
37703 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37704
37705         bootstrap: work also with 4-argument variant of AC_INIT
37706         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
37707
37708 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37709
37710         Port test-getaddrinfo to Solaris.
37711         Problem reported by Bruno Haible in
37712         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
37713         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
37714         explanation of setting 'hints'.
37715         Don't reject an implementation merely because it returns EAI_SERVICE.
37716         (EAI_SERVICE): Define to 0 if not defined.
37717
37718 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37719
37720         The license of gnu-make and posix-shell is now "GPLed build tool".
37721         * modules/gnu-make (License): Likewise.
37722         * modules/posix-shell (License): Likewise.
37723
37724         New module posix-shell, for determining a POSIX shell
37725         or perhaps something that is close enough to a POSIX shell.
37726         * m4/posix-shell.m4: New file.
37727         * modules/posix-shell: New file.
37728
37729         * MODULES.html.sh: Mention new module.
37730
37731         New module gnu-make, for determining whether we're using GNU Make.
37732         * m4/gnu-make.m4: New file.
37733         * modules/gnu-make: New file.
37734         * MODULES.html.sh: Mention new module.
37735
37736 2007-11-14  Jim Meyering  <meyering@redhat.com>
37737
37738         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
37739         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
37740         use this macro to create a function _definition_.
37741         Remove useless "#undef ARGMATCH_DIE".
37742
37743 2007-11-14  Bruno Haible  <bruno@clisp.org>
37744
37745         * lib/config.charset: Update for OpenBSD 4.1.
37746         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
37747
37748 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
37749
37750         Document 64-bit #if problems in stdint.texi.
37751         * doc/headers/stdint.texi (stdint.h): Mention problems with
37752         64-bit-#if, and how to work around them.
37753
37754         Don't insist on 'long long int' support in the preprocessor.  It
37755         breaks too many things.  For example, PRIdMAX still uses a 'long
37756         long int' format with the latest Sun compiler, even though
37757         HAVE_LONG_LONG_INT isn't defined due to that compiler's
37758         preprocessor problem.  This causes the latest coreutils to dump
37759         core on Solaris 10 sparc with the Sun C compiler.
37760         Instead, fix the 2007-10-16 problem in a different way, by evaluating
37761         the troublesome expressions at configure-time, not at #if-time.
37762         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
37763         preprocessor.
37764         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
37765         compile-time C checks, done at 'configure'-time.
37766         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
37767         * modules/inttypes (Makefile): Substitute the new symbols that
37768         gl_INTTYPES_H now generates.
37769         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
37770
37771 2007-11-12  Bruno Haible  <bruno@clisp.org>
37772
37773         Tests for Unicode character classification functions.
37774
37775         * modules/unictype/bidicategory-byname-tests: New file.
37776         * modules/unictype/bidicategory-name-tests: New file.
37777         * modules/unictype/bidicategory-of-tests: New file.
37778         * modules/unictype/bidicategory-test-tests: New file.
37779         * modules/unictype/block-list-tests: New file.
37780         * modules/unictype/block-of-tests: New file.
37781         * modules/unictype/block-test-tests: New file.
37782         * modules/unictype/category-C-tests: New file.
37783         * modules/unictype/category-Cc-tests: New file.
37784         * modules/unictype/category-Cf-tests: New file.
37785         * modules/unictype/category-Cn-tests: New file.
37786         * modules/unictype/category-Co-tests: New file.
37787         * modules/unictype/category-Cs-tests: New file.
37788         * modules/unictype/category-L-tests: New file.
37789         * modules/unictype/category-Ll-tests: New file.
37790         * modules/unictype/category-Lm-tests: New file.
37791         * modules/unictype/category-Lo-tests: New file.
37792         * modules/unictype/category-Lt-tests: New file.
37793         * modules/unictype/category-Lu-tests: New file.
37794         * modules/unictype/category-M-tests: New file.
37795         * modules/unictype/category-Mc-tests: New file.
37796         * modules/unictype/category-Me-tests: New file.
37797         * modules/unictype/category-Mn-tests: New file.
37798         * modules/unictype/category-N-tests: New file.
37799         * modules/unictype/category-Nd-tests: New file.
37800         * modules/unictype/category-Nl-tests: New file.
37801         * modules/unictype/category-No-tests: New file.
37802         * modules/unictype/category-P-tests: New file.
37803         * modules/unictype/category-Pc-tests: New file.
37804         * modules/unictype/category-Pd-tests: New file.
37805         * modules/unictype/category-Pe-tests: New file.
37806         * modules/unictype/category-Pf-tests: New file.
37807         * modules/unictype/category-Pi-tests: New file.
37808         * modules/unictype/category-Po-tests: New file.
37809         * modules/unictype/category-Ps-tests: New file.
37810         * modules/unictype/category-S-tests: New file.
37811         * modules/unictype/category-Sc-tests: New file.
37812         * modules/unictype/category-Sk-tests: New file.
37813         * modules/unictype/category-Sm-tests: New file.
37814         * modules/unictype/category-So-tests: New file.
37815         * modules/unictype/category-Z-tests: New file.
37816         * modules/unictype/category-Zl-tests: New file.
37817         * modules/unictype/category-Zp-tests: New file.
37818         * modules/unictype/category-Zs-tests: New file.
37819         * modules/unictype/category-and-not-tests: New file.
37820         * modules/unictype/category-and-tests: New file.
37821         * modules/unictype/category-byname-tests: New file.
37822         * modules/unictype/category-name-tests: New file.
37823         * modules/unictype/category-none-tests: New file.
37824         * modules/unictype/category-of-tests: New file.
37825         * modules/unictype/category-or-tests: New file.
37826         * modules/unictype/category-test-withtable-tests: New file.
37827         * modules/unictype/combining-class-tests: New file.
37828         * modules/unictype/ctype-alnum-tests: New file.
37829         * modules/unictype/ctype-alpha-tests: New file.
37830         * modules/unictype/ctype-blank-tests: New file.
37831         * modules/unictype/ctype-cntrl-tests: New file.
37832         * modules/unictype/ctype-digit-tests: New file.
37833         * modules/unictype/ctype-graph-tests: New file.
37834         * modules/unictype/ctype-lower-tests: New file.
37835         * modules/unictype/ctype-print-tests: New file.
37836         * modules/unictype/ctype-punct-tests: New file.
37837         * modules/unictype/ctype-space-tests: New file.
37838         * modules/unictype/ctype-upper-tests: New file.
37839         * modules/unictype/ctype-xdigit-tests: New file.
37840         * modules/unictype/decimal-digit-tests: New file.
37841         * modules/unictype/digit-tests: New file.
37842         * modules/unictype/mirror-tests: New file.
37843         * modules/unictype/numeric-tests: New file.
37844         * modules/unictype/property-alphabetic-tests: New file.
37845         * modules/unictype/property-ascii-hex-digit-tests: New file.
37846         * modules/unictype/property-bidi-arabic-digit-tests: New file.
37847         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
37848         * modules/unictype/property-bidi-block-separator-tests: New file.
37849         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
37850         * modules/unictype/property-bidi-common-separator-tests: New file.
37851         * modules/unictype/property-bidi-control-tests: New file.
37852         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
37853         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
37854         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
37855         * modules/unictype/property-bidi-european-digit-tests: New file.
37856         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
37857         * modules/unictype/property-bidi-left-to-right-tests: New file.
37858         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
37859         * modules/unictype/property-bidi-other-neutral-tests: New file.
37860         * modules/unictype/property-bidi-pdf-tests: New file.
37861         * modules/unictype/property-bidi-segment-separator-tests: New file.
37862         * modules/unictype/property-bidi-whitespace-tests: New file.
37863         * modules/unictype/property-byname-tests: New file.
37864         * modules/unictype/property-combining-tests: New file.
37865         * modules/unictype/property-composite-tests: New file.
37866         * modules/unictype/property-currency-symbol-tests: New file.
37867         * modules/unictype/property-dash-tests: New file.
37868         * modules/unictype/property-decimal-digit-tests: New file.
37869         * modules/unictype/property-default-ignorable-code-point-tests: New file.
37870         * modules/unictype/property-deprecated-tests: New file.
37871         * modules/unictype/property-diacritic-tests: New file.
37872         * modules/unictype/property-extender-tests: New file.
37873         * modules/unictype/property-format-control-tests: New file.
37874         * modules/unictype/property-grapheme-base-tests: New file.
37875         * modules/unictype/property-grapheme-extend-tests: New file.
37876         * modules/unictype/property-grapheme-link-tests: New file.
37877         * modules/unictype/property-hex-digit-tests: New file.
37878         * modules/unictype/property-hyphen-tests: New file.
37879         * modules/unictype/property-id-continue-tests: New file.
37880         * modules/unictype/property-id-start-tests: New file.
37881         * modules/unictype/property-ideographic-tests: New file.
37882         * modules/unictype/property-ids-binary-operator-tests: New file.
37883         * modules/unictype/property-ids-trinary-operator-tests: New file.
37884         * modules/unictype/property-ignorable-control-tests: New file.
37885         * modules/unictype/property-iso-control-tests: New file.
37886         * modules/unictype/property-join-control-tests: New file.
37887         * modules/unictype/property-left-of-pair-tests: New file.
37888         * modules/unictype/property-line-separator-tests: New file.
37889         * modules/unictype/property-logical-order-exception-tests: New file.
37890         * modules/unictype/property-lowercase-tests: New file.
37891         * modules/unictype/property-math-tests: New file.
37892         * modules/unictype/property-non-break-tests: New file.
37893         * modules/unictype/property-not-a-character-tests: New file.
37894         * modules/unictype/property-numeric-tests: New file.
37895         * modules/unictype/property-other-alphabetic-tests: New file.
37896         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
37897         * modules/unictype/property-other-grapheme-extend-tests: New file.
37898         * modules/unictype/property-other-id-continue-tests: New file.
37899         * modules/unictype/property-other-id-start-tests: New file.
37900         * modules/unictype/property-other-lowercase-tests: New file.
37901         * modules/unictype/property-other-math-tests: New file.
37902         * modules/unictype/property-other-uppercase-tests: New file.
37903         * modules/unictype/property-paired-punctuation-tests: New file.
37904         * modules/unictype/property-paragraph-separator-tests: New file.
37905         * modules/unictype/property-pattern-syntax-tests: New file.
37906         * modules/unictype/property-pattern-white-space-tests: New file.
37907         * modules/unictype/property-private-use-tests: New file.
37908         * modules/unictype/property-punctuation-tests: New file.
37909         * modules/unictype/property-quotation-mark-tests: New file.
37910         * modules/unictype/property-radical-tests: New file.
37911         * modules/unictype/property-sentence-terminal-tests: New file.
37912         * modules/unictype/property-soft-dotted-tests: New file.
37913         * modules/unictype/property-space-tests: New file.
37914         * modules/unictype/property-terminal-punctuation-tests: New file.
37915         * modules/unictype/property-test-tests: New file.
37916         * modules/unictype/property-titlecase-tests: New file.
37917         * modules/unictype/property-unassigned-code-value-tests: New file.
37918         * modules/unictype/property-unified-ideograph-tests: New file.
37919         * modules/unictype/property-uppercase-tests: New file.
37920         * modules/unictype/property-variation-selector-tests: New file.
37921         * modules/unictype/property-white-space-tests: New file.
37922         * modules/unictype/property-xid-continue-tests: New file.
37923         * modules/unictype/property-xid-start-tests: New file.
37924         * modules/unictype/property-zero-width-tests: New file.
37925         * modules/unictype/scripts-tests: New file.
37926         * modules/unictype/syntax-c-ident-tests: New file.
37927         * modules/unictype/syntax-c-whitespace-tests: New file.
37928         * modules/unictype/syntax-java-ident-tests: New file.
37929         * modules/unictype/syntax-java-whitespace-tests: New file.
37930         * tests/unictype/test-bidi_byname.c: New file.
37931         * tests/unictype/test-bidi_name.c: New file.
37932         * tests/unictype/test-bidi_of.c: New file.
37933         * tests/unictype/test-bidi_test.c: New file.
37934         * tests/unictype/test-block_list.c: New file.
37935         * tests/unictype/test-block_of.c: New file.
37936         * tests/unictype/test-block_test.c: New file.
37937         * tests/unictype/test-categ_and.c: New file.
37938         * tests/unictype/test-categ_and_not.c: New file.
37939         * tests/unictype/test-categ_byname.c: New file.
37940         * tests/unictype/test-categ_name.c: New file.
37941         * tests/unictype/test-categ_none.c: New file.
37942         * tests/unictype/test-categ_of.c: New file.
37943         * tests/unictype/test-categ_or.c: New file.
37944         * tests/unictype/test-categ_test_withtable.c: New file.
37945         * tests/unictype/test-combining.c: New file.
37946         * tests/unictype/test-decdigit.c: New file.
37947         * tests/unictype/test-digit.c: New file.
37948         * tests/unictype/test-mirror.c: New file.
37949         * tests/unictype/test-numeric.c: New file.
37950         * tests/unictype/test-pr_byname.c: New file.
37951         * tests/unictype/test-pr_test.c: New file.
37952         * tests/unictype/test-predicate-part1.h: New file.
37953         * tests/unictype/test-predicate-part2.h: New file.
37954         * tests/unictype/test-scripts.c: New file.
37955         * tests/unictype/test-sy_c_ident.c: New file.
37956         * tests/unictype/test-sy_java_ident.c: New file.
37957
37958         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
37959         for Unicode 5.0.0.
37960         * tests/unictype/test-categ_Cc.c: Likewise.
37961         * tests/unictype/test-categ_Cf.c: Likewise.
37962         * tests/unictype/test-categ_Cn.c: Likewise.
37963         * tests/unictype/test-categ_Co.c: Likewise.
37964         * tests/unictype/test-categ_Cs.c: Likewise.
37965         * tests/unictype/test-categ_L.c: Likewise.
37966         * tests/unictype/test-categ_Ll.c: Likewise.
37967         * tests/unictype/test-categ_Lm.c: Likewise.
37968         * tests/unictype/test-categ_Lo.c: Likewise.
37969         * tests/unictype/test-categ_Lt.c: Likewise.
37970         * tests/unictype/test-categ_Lu.c: Likewise.
37971         * tests/unictype/test-categ_M.c: Likewise.
37972         * tests/unictype/test-categ_Mc.c: Likewise.
37973         * tests/unictype/test-categ_Me.c: Likewise.
37974         * tests/unictype/test-categ_Mn.c: Likewise.
37975         * tests/unictype/test-categ_N.c: Likewise.
37976         * tests/unictype/test-categ_Nd.c: Likewise.
37977         * tests/unictype/test-categ_Nl.c: Likewise.
37978         * tests/unictype/test-categ_No.c: Likewise.
37979         * tests/unictype/test-categ_P.c: Likewise.
37980         * tests/unictype/test-categ_Pc.c: Likewise.
37981         * tests/unictype/test-categ_Pd.c: Likewise.
37982         * tests/unictype/test-categ_Pe.c: Likewise.
37983         * tests/unictype/test-categ_Pf.c: Likewise.
37984         * tests/unictype/test-categ_Pi.c: Likewise.
37985         * tests/unictype/test-categ_Po.c: Likewise.
37986         * tests/unictype/test-categ_Ps.c: Likewise.
37987         * tests/unictype/test-categ_S.c: Likewise.
37988         * tests/unictype/test-categ_Sc.c: Likewise.
37989         * tests/unictype/test-categ_Sk.c: Likewise.
37990         * tests/unictype/test-categ_Sm.c: Likewise.
37991         * tests/unictype/test-categ_So.c: Likewise.
37992         * tests/unictype/test-categ_Z.c: Likewise.
37993         * tests/unictype/test-categ_Zl.c: Likewise.
37994         * tests/unictype/test-categ_Zp.c: Likewise.
37995         * tests/unictype/test-categ_Zs.c: Likewise.
37996         * tests/unictype/test-ctype_alnum.c: Likewise.
37997         * tests/unictype/test-ctype_alpha.c: Likewise.
37998         * tests/unictype/test-ctype_blank.c: Likewise.
37999         * tests/unictype/test-ctype_cntrl.c: Likewise.
38000         * tests/unictype/test-ctype_digit.c: Likewise.
38001         * tests/unictype/test-ctype_graph.c: Likewise.
38002         * tests/unictype/test-ctype_lower.c: Likewise.
38003         * tests/unictype/test-ctype_print.c: Likewise.
38004         * tests/unictype/test-ctype_punct.c: Likewise.
38005         * tests/unictype/test-ctype_space.c: Likewise.
38006         * tests/unictype/test-ctype_upper.c: Likewise.
38007         * tests/unictype/test-ctype_xdigit.c: Likewise.
38008         * tests/unictype/test-decdigit.h: Likewise.
38009         * tests/unictype/test-digit.h: Likewise.
38010         * tests/unictype/test-numeric.h: Likewise.
38011         * tests/unictype/test-pr_alphabetic.c: Likewise.
38012         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38013         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38014         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38015         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38016         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38017         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38018         * tests/unictype/test-pr_bidi_control.c: Likewise.
38019         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38020         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38021         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38022         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38023         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38024         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38025         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38026         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38027         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38028         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38029         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38030         * tests/unictype/test-pr_combining.c: Likewise.
38031         * tests/unictype/test-pr_composite.c: Likewise.
38032         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38033         * tests/unictype/test-pr_dash.c: Likewise.
38034         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38035         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38036         * tests/unictype/test-pr_deprecated.c: Likewise.
38037         * tests/unictype/test-pr_diacritic.c: Likewise.
38038         * tests/unictype/test-pr_extender.c: Likewise.
38039         * tests/unictype/test-pr_format_control.c: Likewise.
38040         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38041         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38042         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38043         * tests/unictype/test-pr_hex_digit.c: Likewise.
38044         * tests/unictype/test-pr_hyphen.c: Likewise.
38045         * tests/unictype/test-pr_id_continue.c: Likewise.
38046         * tests/unictype/test-pr_id_start.c: Likewise.
38047         * tests/unictype/test-pr_ideographic.c: Likewise.
38048         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38049         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38050         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38051         * tests/unictype/test-pr_iso_control.c: Likewise.
38052         * tests/unictype/test-pr_join_control.c: Likewise.
38053         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38054         * tests/unictype/test-pr_line_separator.c: Likewise.
38055         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38056         * tests/unictype/test-pr_lowercase.c: Likewise.
38057         * tests/unictype/test-pr_math.c: Likewise.
38058         * tests/unictype/test-pr_non_break.c: Likewise.
38059         * tests/unictype/test-pr_not_a_character.c: Likewise.
38060         * tests/unictype/test-pr_numeric.c: Likewise.
38061         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38062         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38063         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38064         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38065         * tests/unictype/test-pr_other_id_start.c: Likewise.
38066         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38067         * tests/unictype/test-pr_other_math.c: Likewise.
38068         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38069         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38070         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38071         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38072         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38073         * tests/unictype/test-pr_private_use.c: Likewise.
38074         * tests/unictype/test-pr_punctuation.c: Likewise.
38075         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38076         * tests/unictype/test-pr_radical.c: Likewise.
38077         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38078         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38079         * tests/unictype/test-pr_space.c: Likewise.
38080         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38081         * tests/unictype/test-pr_titlecase.c: Likewise.
38082         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38083         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38084         * tests/unictype/test-pr_uppercase.c: Likewise.
38085         * tests/unictype/test-pr_variation_selector.c: Likewise.
38086         * tests/unictype/test-pr_white_space.c: Likewise.
38087         * tests/unictype/test-pr_xid_continue.c: Likewise.
38088         * tests/unictype/test-pr_xid_start.c: Likewise.
38089         * tests/unictype/test-pr_zero_width.c: Likewise.
38090         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38091         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38092
38093 2007-11-12  Bruno Haible  <bruno@clisp.org>
38094
38095         Unicode character classification functions.
38096         * lib/unictype.h: New file.
38097         * modules/unictype/base: New file.
38098         * modules/unictype/category-L: New file.
38099         * modules/unictype/category-Lu: New file.
38100         * modules/unictype/category-Ll: New file.
38101         * modules/unictype/category-Lt: New file.
38102         * modules/unictype/category-Lm: New file.
38103         * modules/unictype/category-Lo: New file.
38104         * modules/unictype/category-M: New file.
38105         * modules/unictype/category-Mn: New file.
38106         * modules/unictype/category-Mc: New file.
38107         * modules/unictype/category-Me: New file.
38108         * modules/unictype/category-N: New file.
38109         * modules/unictype/category-Nd: New file.
38110         * modules/unictype/category-Nl: New file.
38111         * modules/unictype/category-No: New file.
38112         * modules/unictype/category-P: New file.
38113         * modules/unictype/category-Pc: New file.
38114         * modules/unictype/category-Pd: New file.
38115         * modules/unictype/category-Ps: New file.
38116         * modules/unictype/category-Pe: New file.
38117         * modules/unictype/category-Pi: New file.
38118         * modules/unictype/category-Pf: New file.
38119         * modules/unictype/category-Po: New file.
38120         * modules/unictype/category-S: New file.
38121         * modules/unictype/category-Sm: New file.
38122         * modules/unictype/category-Sc: New file.
38123         * modules/unictype/category-Sk: New file.
38124         * modules/unictype/category-So: New file.
38125         * modules/unictype/category-Z: New file.
38126         * modules/unictype/category-Zs: New file.
38127         * modules/unictype/category-Zl: New file.
38128         * modules/unictype/category-Zp: New file.
38129         * modules/unictype/category-C: New file.
38130         * modules/unictype/category-Cc: New file.
38131         * modules/unictype/category-Cf: New file.
38132         * modules/unictype/category-Cs: New file.
38133         * modules/unictype/category-Co: New file.
38134         * modules/unictype/category-Cn: New file.
38135         * modules/unictype/category-or: New file.
38136         * modules/unictype/category-of: New file.
38137         * modules/unictype/category-test: New file.
38138         * modules/unictype/category-test-withtable: New file.
38139         * modules/unictype/category-byname: New file.
38140         * modules/unictype/category-none: New file.
38141         * modules/unictype/category-and: New file.
38142         * modules/unictype/category-and-not: New file.
38143         * modules/unictype/category-name: New file.
38144         * modules/unictype/combining-class: New file.
38145         * modules/unictype/category-all: New file.
38146         * modules/unictype/bidicategory-all: New file.
38147         * modules/unictype/bidicategory-byname: New file.
38148         * modules/unictype/bidicategory-name: New file.
38149         * modules/unictype/bidicategory-of: New file.
38150         * modules/unictype/bidicategory-test: New file.
38151         * modules/unictype/decimal-digit: New file.
38152         * modules/unictype/digit: New file.
38153         * modules/unictype/numeric: New file.
38154         * modules/unictype/mirror: New file.
38155         * modules/unictype/property-white-space: New file.
38156         * modules/unictype/property-alphabetic: New file.
38157         * modules/unictype/property-other-alphabetic: New file.
38158         * modules/unictype/property-not-a-character: New file.
38159         * modules/unictype/property-default-ignorable-code-point: New file.
38160         * modules/unictype/property-other-default-ignorable-code-point: New
38161         file.
38162         * modules/unictype/property-deprecated: New file.
38163         * modules/unictype/property-logical-order-exception: New file.
38164         * modules/unictype/property-variation-selector: New file.
38165         * modules/unictype/property-private-use: New file.
38166         * modules/unictype/property-unassigned-code-value: New file.
38167         * modules/unictype/property-uppercase: New file.
38168         * modules/unictype/property-other-uppercase: New file.
38169         * modules/unictype/property-lowercase: New file.
38170         * modules/unictype/property-other-lowercase: New file.
38171         * modules/unictype/property-titlecase: New file.
38172         * modules/unictype/property-soft-dotted: New file.
38173         * modules/unictype/property-id-start: New file.
38174         * modules/unictype/property-other-id-start: New file.
38175         * modules/unictype/property-id-continue: New file.
38176         * modules/unictype/property-other-id-continue: New file.
38177         * modules/unictype/property-xid-start: New file.
38178         * modules/unictype/property-xid-continue: New file.
38179         * modules/unictype/property-pattern-white-space: New file.
38180         * modules/unictype/property-pattern-syntax: New file.
38181         * modules/unictype/property-join-control: New file.
38182         * modules/unictype/property-grapheme-base: New file.
38183         * modules/unictype/property-grapheme-extend: New file.
38184         * modules/unictype/property-other-grapheme-extend: New file.
38185         * modules/unictype/property-grapheme-link: New file.
38186         * modules/unictype/property-bidi-control: New file.
38187         * modules/unictype/property-bidi-left-to-right: New file.
38188         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38189         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38190         * modules/unictype/property-bidi-european-digit: New file.
38191         * modules/unictype/property-bidi-eur-num-separator: New file.
38192         * modules/unictype/property-bidi-eur-num-terminator: New file.
38193         * modules/unictype/property-bidi-arabic-digit: New file.
38194         * modules/unictype/property-bidi-common-separator: New file.
38195         * modules/unictype/property-bidi-block-separator: New file.
38196         * modules/unictype/property-bidi-segment-separator: New file.
38197         * modules/unictype/property-bidi-whitespace: New file.
38198         * modules/unictype/property-bidi-non-spacing-mark: New file.
38199         * modules/unictype/property-bidi-boundary-neutral: New file.
38200         * modules/unictype/property-bidi-pdf: New file.
38201         * modules/unictype/property-bidi-embedding-or-override: New file.
38202         * modules/unictype/property-bidi-other-neutral: New file.
38203         * modules/unictype/property-hex-digit: New file.
38204         * modules/unictype/property-ascii-hex-digit: New file.
38205         * modules/unictype/property-ideographic: New file.
38206         * modules/unictype/property-unified-ideograph: New file.
38207         * modules/unictype/property-radical: New file.
38208         * modules/unictype/property-ids-binary-operator: New file.
38209         * modules/unictype/property-ids-trinary-operator: New file.
38210         * modules/unictype/property-zero-width: New file.
38211         * modules/unictype/property-space: New file.
38212         * modules/unictype/property-non-break: New file.
38213         * modules/unictype/property-iso-control: New file.
38214         * modules/unictype/property-format-control: New file.
38215         * modules/unictype/property-dash: New file.
38216         * modules/unictype/property-hyphen: New file.
38217         * modules/unictype/property-punctuation: New file.
38218         * modules/unictype/property-line-separator: New file.
38219         * modules/unictype/property-paragraph-separator: New file.
38220         * modules/unictype/property-quotation-mark: New file.
38221         * modules/unictype/property-sentence-terminal: New file.
38222         * modules/unictype/property-terminal-punctuation: New file.
38223         * modules/unictype/property-currency-symbol: New file.
38224         * modules/unictype/property-math: New file.
38225         * modules/unictype/property-other-math: New file.
38226         * modules/unictype/property-paired-punctuation: New file.
38227         * modules/unictype/property-left-of-pair: New file.
38228         * modules/unictype/property-combining: New file.
38229         * modules/unictype/property-composite: New file.
38230         * modules/unictype/property-decimal-digit: New file.
38231         * modules/unictype/property-numeric: New file.
38232         * modules/unictype/property-diacritic: New file.
38233         * modules/unictype/property-extender: New file.
38234         * modules/unictype/property-ignorable-control: New file.
38235         * modules/unictype/property-test: New file.
38236         * modules/unictype/property-byname: New file.
38237         * modules/unictype/property-all: New file.
38238         * modules/unictype/scripts: New file.
38239         * modules/unictype/scripts-all: New file.
38240         * modules/unictype/block-of: New file.
38241         * modules/unictype/block-test: New file.
38242         * modules/unictype/block-list: New file.
38243         * modules/unictype/block-all: New file.
38244         * modules/unictype/syntax-c-whitespace: New file.
38245         * modules/unictype/syntax-java-whitespace: New file.
38246         * modules/unictype/syntax-c-ident: New file.
38247         * modules/unictype/syntax-java-ident: New file.
38248         * modules/unictype/ctype-alnum: New file.
38249         * modules/unictype/ctype-alpha: New file.
38250         * modules/unictype/ctype-cntrl: New file.
38251         * modules/unictype/ctype-digit: New file.
38252         * modules/unictype/ctype-graph: New file.
38253         * modules/unictype/ctype-lower: New file.
38254         * modules/unictype/ctype-print: New file.
38255         * modules/unictype/ctype-punct: New file.
38256         * modules/unictype/ctype-space: New file.
38257         * modules/unictype/ctype-upper: New file.
38258         * modules/unictype/ctype-xdigit: New file.
38259         * modules/unictype/ctype-blank: New file.
38260         * lib/unictype/bidi_byname.c: New file.
38261         * lib/unictype/bidi_name.c: New file.
38262         * lib/unictype/bidi_of.c: New file.
38263         * lib/unictype/bidi_test.c: New file.
38264         * lib/unictype/bitmap.h: New file.
38265         * lib/unictype/block_test.c: New file.
38266         * lib/unictype/blocks.c: New file.
38267         * lib/unictype/categ_C.c: New file.
38268         * lib/unictype/categ_Cc.c: New file.
38269         * lib/unictype/categ_Cf.c: New file.
38270         * lib/unictype/categ_Cn.c: New file.
38271         * lib/unictype/categ_Co.c: New file.
38272         * lib/unictype/categ_Cs.c: New file.
38273         * lib/unictype/categ_L.c: New file.
38274         * lib/unictype/categ_Ll.c: New file.
38275         * lib/unictype/categ_Lm.c: New file.
38276         * lib/unictype/categ_Lo.c: New file.
38277         * lib/unictype/categ_Lt.c: New file.
38278         * lib/unictype/categ_Lu.c: New file.
38279         * lib/unictype/categ_M.c: New file.
38280         * lib/unictype/categ_Mc.c: New file.
38281         * lib/unictype/categ_Me.c: New file.
38282         * lib/unictype/categ_Mn.c: New file.
38283         * lib/unictype/categ_N.c: New file.
38284         * lib/unictype/categ_Nd.c: New file.
38285         * lib/unictype/categ_Nl.c: New file.
38286         * lib/unictype/categ_No.c: New file.
38287         * lib/unictype/categ_P.c: New file.
38288         * lib/unictype/categ_Pc.c: New file.
38289         * lib/unictype/categ_Pd.c: New file.
38290         * lib/unictype/categ_Pe.c: New file.
38291         * lib/unictype/categ_Pf.c: New file.
38292         * lib/unictype/categ_Pi.c: New file.
38293         * lib/unictype/categ_Po.c: New file.
38294         * lib/unictype/categ_Ps.c: New file.
38295         * lib/unictype/categ_S.c: New file.
38296         * lib/unictype/categ_Sc.c: New file.
38297         * lib/unictype/categ_Sk.c: New file.
38298         * lib/unictype/categ_Sm.c: New file.
38299         * lib/unictype/categ_So.c: New file.
38300         * lib/unictype/categ_Z.c: New file.
38301         * lib/unictype/categ_Zl.c: New file.
38302         * lib/unictype/categ_Zp.c: New file.
38303         * lib/unictype/categ_Zs.c: New file.
38304         * lib/unictype/categ_and.c: New file.
38305         * lib/unictype/categ_and_not.c: New file.
38306         * lib/unictype/categ_byname.c: New file.
38307         * lib/unictype/categ_name.c: New file.
38308         * lib/unictype/categ_none.c: New file.
38309         * lib/unictype/categ_of.c: New file.
38310         * lib/unictype/categ_or.c: New file.
38311         * lib/unictype/categ_test.c: New file.
38312         * lib/unictype/combining.c: New file.
38313         * lib/unictype/ctype_alnum.c: New file.
38314         * lib/unictype/ctype_alpha.c: New file.
38315         * lib/unictype/ctype_blank.c: New file.
38316         * lib/unictype/ctype_cntrl.c: New file.
38317         * lib/unictype/ctype_digit.c: New file.
38318         * lib/unictype/ctype_graph.c: New file.
38319         * lib/unictype/ctype_lower.c: New file.
38320         * lib/unictype/ctype_print.c: New file.
38321         * lib/unictype/ctype_punct.c: New file.
38322         * lib/unictype/ctype_space.c: New file.
38323         * lib/unictype/ctype_upper.c: New file.
38324         * lib/unictype/ctype_xdigit.c: New file.
38325         * lib/unictype/decdigit.c: New file.
38326         * lib/unictype/digit.c: New file.
38327         * lib/unictype/identsyntaxmap.h: New file.
38328         * lib/unictype/mirror.c: New file.
38329         * lib/unictype/numeric.c: New file.
38330         * lib/unictype/pr_alphabetic.c: New file.
38331         * lib/unictype/pr_ascii_hex_digit.c: New file.
38332         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38333         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38334         * lib/unictype/pr_bidi_block_separator.c: New file.
38335         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38336         * lib/unictype/pr_bidi_common_separator.c: New file.
38337         * lib/unictype/pr_bidi_control.c: New file.
38338         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38339         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
38340         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
38341         * lib/unictype/pr_bidi_european_digit.c: New file.
38342         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
38343         * lib/unictype/pr_bidi_left_to_right.c: New file.
38344         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
38345         * lib/unictype/pr_bidi_other_neutral.c: New file.
38346         * lib/unictype/pr_bidi_pdf.c: New file.
38347         * lib/unictype/pr_bidi_segment_separator.c: New file.
38348         * lib/unictype/pr_bidi_whitespace.c: New file.
38349         * lib/unictype/pr_byname.c: New file.
38350         * lib/unictype/pr_byname.gperf: New file.
38351         * lib/unictype/pr_combining.c: New file.
38352         * lib/unictype/pr_composite.c: New file.
38353         * lib/unictype/pr_currency_symbol.c: New file.
38354         * lib/unictype/pr_dash.c: New file.
38355         * lib/unictype/pr_decimal_digit.c: New file.
38356         * lib/unictype/pr_default_ignorable_code_point.c: New file.
38357         * lib/unictype/pr_deprecated.c: New file.
38358         * lib/unictype/pr_diacritic.c: New file.
38359         * lib/unictype/pr_extender.c: New file.
38360         * lib/unictype/pr_format_control.c: New file.
38361         * lib/unictype/pr_grapheme_base.c: New file.
38362         * lib/unictype/pr_grapheme_extend.c: New file.
38363         * lib/unictype/pr_grapheme_link.c: New file.
38364         * lib/unictype/pr_hex_digit.c: New file.
38365         * lib/unictype/pr_hyphen.c: New file.
38366         * lib/unictype/pr_id_continue.c: New file.
38367         * lib/unictype/pr_id_start.c: New file.
38368         * lib/unictype/pr_ideographic.c: New file.
38369         * lib/unictype/pr_ids_binary_operator.c: New file.
38370         * lib/unictype/pr_ids_trinary_operator.c: New file.
38371         * lib/unictype/pr_ignorable_control.c: New file.
38372         * lib/unictype/pr_iso_control.c: New file.
38373         * lib/unictype/pr_join_control.c: New file.
38374         * lib/unictype/pr_left_of_pair.c: New file.
38375         * lib/unictype/pr_line_separator.c: New file.
38376         * lib/unictype/pr_logical_order_exception.c: New file.
38377         * lib/unictype/pr_lowercase.c: New file.
38378         * lib/unictype/pr_math.c: New file.
38379         * lib/unictype/pr_non_break.c: New file.
38380         * lib/unictype/pr_not_a_character.c: New file.
38381         * lib/unictype/pr_numeric.c: New file.
38382         * lib/unictype/pr_other_alphabetic.c: New file.
38383         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38384         * lib/unictype/pr_other_grapheme_extend.c: New file.
38385         * lib/unictype/pr_other_id_continue.c: New file.
38386         * lib/unictype/pr_other_id_start.c: New file.
38387         * lib/unictype/pr_other_lowercase.c: New file.
38388         * lib/unictype/pr_other_math.c: New file.
38389         * lib/unictype/pr_other_uppercase.c: New file.
38390         * lib/unictype/pr_paired_punctuation.c: New file.
38391         * lib/unictype/pr_paragraph_separator.c: New file.
38392         * lib/unictype/pr_pattern_syntax.c: New file.
38393         * lib/unictype/pr_pattern_white_space.c: New file.
38394         * lib/unictype/pr_private_use.c: New file.
38395         * lib/unictype/pr_punctuation.c: New file.
38396         * lib/unictype/pr_quotation_mark.c: New file.
38397         * lib/unictype/pr_radical.c: New file.
38398         * lib/unictype/pr_sentence_terminal.c: New file.
38399         * lib/unictype/pr_soft_dotted.c: New file.
38400         * lib/unictype/pr_space.c: New file.
38401         * lib/unictype/pr_terminal_punctuation.c: New file.
38402         * lib/unictype/pr_test.c: New file.
38403         * lib/unictype/pr_titlecase.c: New file.
38404         * lib/unictype/pr_unassigned_code_value.c: New file.
38405         * lib/unictype/pr_unified_ideograph.c: New file.
38406         * lib/unictype/pr_uppercase.c: New file.
38407         * lib/unictype/pr_variation_selector.c: New file.
38408         * lib/unictype/pr_white_space.c: New file.
38409         * lib/unictype/pr_xid_continue.c: New file.
38410         * lib/unictype/pr_xid_start.c: New file.
38411         * lib/unictype/pr_zero_width.c: New file.
38412         * lib/unictype/scripts.c: New file.
38413         * lib/unictype/sy_c_ident.c: New file.
38414         * lib/unictype/sy_c_whitespace.c: New file.
38415         * lib/unictype/sy_java_ident.c: New file.
38416         * lib/unictype/sy_java_whitespace.c: New file.
38417
38418         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
38419         Unicode 5.0.0.
38420         * lib/unictype/blocks.h: Likewise.
38421         * lib/unictype/categ_C.h: Likewise.
38422         * lib/unictype/categ_Cc.h: Likewise.
38423         * lib/unictype/categ_Cf.h: Likewise.
38424         * lib/unictype/categ_Cn.h: Likewise.
38425         * lib/unictype/categ_Co.h: Likewise.
38426         * lib/unictype/categ_Cs.h: Likewise.
38427         * lib/unictype/categ_L.h: Likewise.
38428         * lib/unictype/categ_Ll.h: Likewise.
38429         * lib/unictype/categ_Lm.h: Likewise.
38430         * lib/unictype/categ_Lo.h: Likewise.
38431         * lib/unictype/categ_Lt.h: Likewise.
38432         * lib/unictype/categ_Lu.h: Likewise.
38433         * lib/unictype/categ_M.h: Likewise.
38434         * lib/unictype/categ_Mc.h: Likewise.
38435         * lib/unictype/categ_Me.h: Likewise.
38436         * lib/unictype/categ_Mn.h: Likewise.
38437         * lib/unictype/categ_N.h: Likewise.
38438         * lib/unictype/categ_Nd.h: Likewise.
38439         * lib/unictype/categ_Nl.h: Likewise.
38440         * lib/unictype/categ_No.h: Likewise.
38441         * lib/unictype/categ_P.h: Likewise.
38442         * lib/unictype/categ_Pc.h: Likewise.
38443         * lib/unictype/categ_Pd.h: Likewise.
38444         * lib/unictype/categ_Pe.h: Likewise.
38445         * lib/unictype/categ_Pf.h: Likewise.
38446         * lib/unictype/categ_Pi.h: Likewise.
38447         * lib/unictype/categ_Po.h: Likewise.
38448         * lib/unictype/categ_Ps.h: Likewise.
38449         * lib/unictype/categ_S.h: Likewise.
38450         * lib/unictype/categ_Sc.h: Likewise.
38451         * lib/unictype/categ_Sk.h: Likewise.
38452         * lib/unictype/categ_Sm.h: Likewise.
38453         * lib/unictype/categ_So.h: Likewise.
38454         * lib/unictype/categ_Z.h: Likewise.
38455         * lib/unictype/categ_Zl.h: Likewise.
38456         * lib/unictype/categ_Zp.h: Likewise.
38457         * lib/unictype/categ_Zs.h: Likewise.
38458         * lib/unictype/categ_of.h: Likewise.
38459         * lib/unictype/combining.h: Likewise.
38460         * lib/unictype/ctype_alnum.h: Likewise.
38461         * lib/unictype/ctype_alpha.h: Likewise.
38462         * lib/unictype/ctype_blank.h: Likewise.
38463         * lib/unictype/ctype_cntrl.h: Likewise.
38464         * lib/unictype/ctype_digit.h: Likewise.
38465         * lib/unictype/ctype_graph.h: Likewise.
38466         * lib/unictype/ctype_lower.h: Likewise.
38467         * lib/unictype/ctype_print.h: Likewise.
38468         * lib/unictype/ctype_punct.h: Likewise.
38469         * lib/unictype/ctype_space.h: Likewise.
38470         * lib/unictype/ctype_upper.h: Likewise.
38471         * lib/unictype/ctype_xdigit.h: Likewise.
38472         * lib/unictype/decdigit.h: Likewise.
38473         * lib/unictype/digit.h: Likewise.
38474         * lib/unictype/mirror.h: Likewise.
38475         * lib/unictype/numeric.h: Likewise.
38476         * lib/unictype/pr_alphabetic.h: Likewise.
38477         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38478         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38479         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38480         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38481         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38482         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38483         * lib/unictype/pr_bidi_control.h: Likewise.
38484         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38485         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38486         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38487         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38488         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38489         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38490         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38491         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38492         * lib/unictype/pr_bidi_pdf.h: Likewise.
38493         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38494         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38495         * lib/unictype/pr_combining.h: Likewise.
38496         * lib/unictype/pr_composite.h: Likewise.
38497         * lib/unictype/pr_currency_symbol.h: Likewise.
38498         * lib/unictype/pr_dash.h: Likewise.
38499         * lib/unictype/pr_decimal_digit.h: Likewise.
38500         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38501         * lib/unictype/pr_deprecated.h: Likewise.
38502         * lib/unictype/pr_diacritic.h: Likewise.
38503         * lib/unictype/pr_extender.h: Likewise.
38504         * lib/unictype/pr_format_control.h: Likewise.
38505         * lib/unictype/pr_grapheme_base.h: Likewise.
38506         * lib/unictype/pr_grapheme_extend.h: Likewise.
38507         * lib/unictype/pr_grapheme_link.h: Likewise.
38508         * lib/unictype/pr_hex_digit.h: Likewise.
38509         * lib/unictype/pr_hyphen.h: Likewise.
38510         * lib/unictype/pr_id_continue.h: Likewise.
38511         * lib/unictype/pr_id_start.h: Likewise.
38512         * lib/unictype/pr_ideographic.h: Likewise.
38513         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38514         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38515         * lib/unictype/pr_ignorable_control.h: Likewise.
38516         * lib/unictype/pr_iso_control.h: Likewise.
38517         * lib/unictype/pr_join_control.h: Likewise.
38518         * lib/unictype/pr_left_of_pair.h: Likewise.
38519         * lib/unictype/pr_line_separator.h: Likewise.
38520         * lib/unictype/pr_logical_order_exception.h: Likewise.
38521         * lib/unictype/pr_lowercase.h: Likewise.
38522         * lib/unictype/pr_math.h: Likewise.
38523         * lib/unictype/pr_non_break.h: Likewise.
38524         * lib/unictype/pr_not_a_character.h: Likewise.
38525         * lib/unictype/pr_numeric.h: Likewise.
38526         * lib/unictype/pr_other_alphabetic.h: Likewise.
38527         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38528         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38529         * lib/unictype/pr_other_id_continue.h: Likewise.
38530         * lib/unictype/pr_other_id_start.h: Likewise.
38531         * lib/unictype/pr_other_lowercase.h: Likewise.
38532         * lib/unictype/pr_other_math.h: Likewise.
38533         * lib/unictype/pr_other_uppercase.h: Likewise.
38534         * lib/unictype/pr_paired_punctuation.h: Likewise.
38535         * lib/unictype/pr_paragraph_separator.h: Likewise.
38536         * lib/unictype/pr_pattern_syntax.h: Likewise.
38537         * lib/unictype/pr_pattern_white_space.h: Likewise.
38538         * lib/unictype/pr_private_use.h: Likewise.
38539         * lib/unictype/pr_punctuation.h: Likewise.
38540         * lib/unictype/pr_quotation_mark.h: Likewise.
38541         * lib/unictype/pr_radical.h: Likewise.
38542         * lib/unictype/pr_sentence_terminal.h: Likewise.
38543         * lib/unictype/pr_soft_dotted.h: Likewise.
38544         * lib/unictype/pr_space.h: Likewise.
38545         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38546         * lib/unictype/pr_titlecase.h: Likewise.
38547         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38548         * lib/unictype/pr_unified_ideograph.h: Likewise.
38549         * lib/unictype/pr_uppercase.h: Likewise.
38550         * lib/unictype/pr_variation_selector.h: Likewise.
38551         * lib/unictype/pr_white_space.h: Likewise.
38552         * lib/unictype/pr_xid_continue.h: Likewise.
38553         * lib/unictype/pr_xid_start.h: Likewise.
38554         * lib/unictype/pr_zero_width.h: Likewise.
38555         * lib/unictype/scripts.h: Likewise.
38556         * lib/unictype/scripts_byname.gperf: Likewise.
38557         * lib/unictype/sy_c_ident.h: Likewise.
38558         * lib/unictype/sy_c_whitespace.h: Likewise.
38559         * lib/unictype/sy_java_ident.h: Likewise.
38560         * lib/unictype/sy_java_whitespace.h: Likewise.
38561
38562         * lib/unictype/Makefile: New file.
38563         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
38564         glibc.
38565         * lib/unictype/3level.h: New file, copied from glibc.
38566         * lib/unictype/3levelbit.h: New file.
38567
38568 2007-11-11  Bruno Haible  <bruno@clisp.org>
38569
38570         * modules/gperf: New file.
38571         * modules/iconv_open (Depends-on): Add it.
38572         (Makefile.am): Remove the GPERF definition.
38573
38574 2007-11-11  Bruno Haible  <bruno@clisp.org>
38575
38576         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
38577         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
38578
38579 2007-11-11  Bruno Haible  <bruno@clisp.org>
38580
38581         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
38582         (usage): Remove function.
38583
38584 2007-11-11  Bruno Haible  <bruno@clisp.org>
38585
38586         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
38587         gl_FUNC_CEILF_LIBS.
38588         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
38589         gl_FUNC_CEIL_LIBS.
38590         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
38591         gl_FUNC_CEILL_LIBS.
38592         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
38593         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
38594         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
38595
38596 2007-11-11  Bruno Haible  <bruno@clisp.org>
38597
38598         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
38599         roundf were declared but do not exist on functions.
38600         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
38601         roundl were declared but do not exist on functions.
38602         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
38603         HAVE_FLOORL_AND_CEILL, respectively.
38604         Needed for Sun C on Solaris 10.
38605
38606 2007-11-11  Bruno Haible  <bruno@clisp.org>
38607
38608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
38609         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
38610         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
38611         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
38612         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
38613         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
38614         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
38615         HAVE_DECL_ROUNDF.
38616         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
38617         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
38618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
38619         of HAVE_DECL_ROUND*.
38620         * modules/math (Makefile.am): Update.
38621
38622 2007-11-10  Bruno Haible  <bruno@clisp.org>
38623
38624         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
38625         ptrdiff_t as m4/intl.m4.
38626
38627 2007-11-10  Jim Meyering  <meyering@redhat.com>
38628
38629         Avoid link failure for the argmatch test.
38630         * tests/test-argmatch.c (usage): Define function to avoid a link
38631         failure: argmatch_die requires a usage function.
38632
38633 2007-11-09  Bruno Haible  <bruno@clisp.org>
38634
38635         * doc/functions/snprintf.texi: Mention BeOS deficiency.
38636         * doc/functions/vsnprintf.texi: Likewise.
38637         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
38638         with a size argument < 2.
38639
38640 2007-11-09  Bruno Haible  <bruno@clisp.org>
38641
38642         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
38643         buffer. Fixes an inefficiency introduced on 2007-11-03.
38644
38645 2007-11-09  Bruno Haible  <bruno@clisp.org>
38646
38647         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
38648         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
38649
38650 2007-11-08  Jim Meyering  <meyering@redhat.com>
38651
38652         Change cache variable name prefix "jm_" to "gl_" everywhere.
38653         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
38654         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
38655         * m4/uptime.m4: s/gl_/jm_/
38656
38657 2007-11-07  Bruno Haible  <bruno@clisp.org>
38658
38659         Update to GNU gettext 0.17.
38660         * m4/intl.m4: Update to GNU gettext 0.17.
38661         * m4/po.m4: Likewise.
38662         * modules/gettext (Files): Remove m4/ulonglong.m4.
38663         (configure.ac): Require gettext infrastructure from version 0.17.
38664
38665 2007-11-06  Bruno Haible  <bruno@clisp.org>
38666
38667         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
38668         symbolic values are not defined in a public header.
38669         * lib/freadable.c (freadable) [QNX]: Likewise.
38670         * lib/freadahead.c (freadahead) [QNX]: Likewise.
38671         * lib/freading.c (freading) [QNX]: Likewise.
38672         * lib/fseterr.c (fseterr) [QNX]: Likewise.
38673         * lib/fwritable.c (fwritable) [QNX]: Likewise.
38674         * lib/fwriting.c (fwriting) [QNX]: Likewise.
38675         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
38676         Reported by Alain Magloire.
38677
38678         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
38679
38680 2007-11-05  Bruno Haible  <bruno@clisp.org>
38681
38682         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
38683         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
38684         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
38685         Reported by Eric Blake.
38686
38687 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38688             Bruno Haible  <bruno@clisp.org>
38689
38690         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
38691         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
38692         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
38693         (malloc): Undefine also before including <stdlib.h>.
38694         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
38695         Needed on OSF/1 4.0.
38696
38697 2007-11-05  Jim Meyering  <meyering@redhat.com>
38698
38699         git-version-gen: sync from coreutils.
38700         * build-aux/git-version-gen: Add comments.
38701         Change the first '-' to '.' in the snapshot version string,
38702         e.g., 6.9-377-08144 -> 6.9.377-08144
38703         Remove first parameter.
38704         Don't declare a version "-dirty" merely because a time
38705         stamp has changed.
38706
38707 2007-11-04  Bruno Haible  <bruno@clisp.org>
38708
38709         * lib/lock.h: Protect all macro definitions containing an 'if'
38710         statement through a "do { ... } while (0)".
38711         * lib/tls.h: Likewise.
38712
38713 2007-11-04  Bruno Haible  <bruno@clisp.org>
38714
38715         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
38716
38717 2007-11-04  Bruno Haible  <bruno@clisp.org>
38718
38719         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
38720         * modules/fprintf-posix (Depends-on): Add nocrash.
38721         * modules/snprintf-posix (Depends-on): Likewise.
38722         * modules/sprintf-posix (Depends-on): Likewise.
38723         * modules/vasnprintf-posix (Depends-on): Likewise.
38724         * modules/vasprintf-posix (Depends-on): Likewise.
38725         * modules/vfprintf-posix (Depends-on): Likewise.
38726         * modules/vsnprintf-posix (Depends-on): Likewise.
38727         * modules/vsprintf-posix (Depends-on): Likewise.
38728         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38729         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38730         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38731         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38732         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38733         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38734         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38735
38736 2007-11-04  Bruno Haible  <bruno@clisp.org>
38737
38738         * modules/nocrash: New file.
38739         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
38740         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
38741
38742 2007-11-04  Bruno Haible  <bruno@clisp.org>
38743
38744         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
38745         precision handling.
38746         * tests/test-vasprintf-posix.c (test_function): Likewise.
38747         * tests/test-snprintf-posix.h (test_function): Likewise.
38748         * tests/test-sprintf-posix.h (test_function): Likewise.
38749
38750         Fix *printf behaviour for large precisions on mingw and BeOS.
38751         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
38752         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
38753         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
38754         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38755         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38756         gl_PRINTF_PRECISION and test its result. Invoke
38757         gl_PREREQ_VASNPRINTF_PRECISION.
38758         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38759         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38760         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38761         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38762         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38763         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38764         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38765         * doc/functions/fprintf.texi: Update.
38766         * doc/functions/printf.texi: Update.
38767         * doc/functions/snprintf.texi: Update.
38768         * doc/functions/sprintf.texi: Update.
38769         * doc/functions/vfprintf.texi: Update.
38770         * doc/functions/vprintf.texi: Update.
38771         * doc/functions/vsnprintf.texi: Update.
38772         * doc/functions/vsprintf.texi: Update.
38773
38774 2007-11-04  Bruno Haible  <bruno@clisp.org>
38775
38776         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
38777
38778 2007-11-04  Bruno Haible  <bruno@clisp.org>
38779
38780         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
38781         Reported by Sylvain Beucler <beuc@gnu.org>.
38782
38783 2007-11-03  Bruno Haible  <bruno@clisp.org>
38784
38785         * tests/test-fprintf-posix2.sh: New file.
38786         * tests/test-fprintf-posix2.c: New file.
38787         * modules/fprintf-posix-tests (Files): Add them.
38788         (TESTS): Add test-fprintf-posix2.sh.
38789         (configure.ac): Check for getrlimit and setrlimit.
38790         (check_PROGRAMS): Add test-fprintf-posix2.
38791
38792         * tests/test-printf-posix2.sh: New file.
38793         * tests/test-printf-posix2.c: New file.
38794         * modules/printf-posix-tests (Files): Add them.
38795         (TESTS): Add test-printf-posix2.sh.
38796         (configure.ac): Check for getrlimit and setrlimit.
38797         (check_PROGRAMS): Add test-printf-posix2.
38798
38799         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
38800         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
38801         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
38802         (decode_double): New function, copied from decode_long_double.
38803         (scale10_round_decimal_decoded): New function, extracted from
38804         scale10_round_decimal_long_double.
38805         (scale10_round_decimal_long_double): Use it.
38806         (scale10_round_decimal_double): New function.
38807         (floorlog10): New function.
38808         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
38809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
38810         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38812         gl_PRINTF_ENOMEM and test its result. Invoke
38813         gl_PREREQ_VASNPRINTF_ENOMEM.
38814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38815         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38816         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38817         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38820         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38821         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
38822         * modules/snprintf-posix (Depends-on): Likewise.
38823         * modules/sprintf-posix (Depends-on): Likewise.
38824         * modules/vasnprintf-posix (Depends-on): Likewise.
38825         * modules/vasprintf-posix (Depends-on): Likewise.
38826         * modules/vfprintf-posix (Depends-on): Likewise.
38827         * modules/vsnprintf-posix (Depends-on): Likewise.
38828         * modules/vsprintf-posix (Depends-on): Likewise.
38829         * doc/functions/fprintf.texi: Update.
38830         * doc/functions/printf.texi: Update.
38831         * doc/functions/snprintf.texi: Update.
38832         * doc/functions/sprintf.texi: Update.
38833         * doc/functions/vfprintf.texi: Update.
38834         * doc/functions/vprintf.texi: Update.
38835         * doc/functions/vsnprintf.texi: Update.
38836         * doc/functions/vsprintf.texi: Update.
38837
38838 2007-11-03  Bruno Haible  <bruno@clisp.org>
38839
38840         * modules/frexp-nolibm-tests: New file.
38841
38842         * modules/frexp-nolibm: New file.
38843         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
38844
38845 2007-11-03  Bruno Haible  <bruno@clisp.org>
38846
38847         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
38848         value is C99 compliant.
38849         Needed for OSF/1 5.1.
38850
38851 2007-11-03  Bruno Haible  <bruno@clisp.org>
38852
38853         Fix out-of-memory handling of vasnprintf.
38854         * lib/printf-parse.c: Include <errno.h>.
38855         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
38856         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
38857         is already set.
38858
38859 2007-11-02  Eric Blake  <ebb9@byu.net>
38860
38861         Fix tests on cygwin.
38862         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
38863
38864 2007-11-01  Bruno Haible  <bruno@clisp.org>
38865
38866         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
38867         warning.
38868         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
38869         needed for POSIX compatibility.
38870
38871 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
38872
38873         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
38874         for compatibility with GNU.
38875
38876 2007-11-01  Bruno Haible  <bruno@clisp.org>
38877
38878         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
38879         (putenv): Renamed from rpl_putenv. Change argument type from
38880         'const char *' to 'char *'.
38881         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
38882         of defining putenv in config.h, just set REPLACE_PUTENV.
38883         * modules/putenv (Depends-on): Add stdlib.
38884         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38885         (Include): Use <stdlib.h>.
38886         * lib/stdlib.in.h (putenv): New declaration.
38887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
38888         REPLACE_PUTENV.
38889         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
38890         REPLACE_PUTENV.
38891         Needed for MacOS X 10.5.0.
38892         Reported by Peter O'Gorman <peter@pogma.com>.
38893
38894 2007-11-01  Jim Meyering  <meyering@redhat.com>
38895
38896         Treat an empty date string exactly like "0".
38897         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
38898         if the remaining date string (to be parsed) is empty, use "0".
38899         Reported by Mischa Molhoek and discussed in this thread:
38900         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
38901
38902 2007-10-31  Bruno Haible  <bruno@clisp.org>
38903
38904         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
38905         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
38906         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
38907         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
38908         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
38909         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
38910
38911 2007-10-31  Bruno Haible  <bruno@clisp.org>
38912
38913         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
38914         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
38915         (AC_TYPE_LONG_LONG_INT): Use it.
38916         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
38917         it as well.
38918         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
38919         to m4/longlong.m4.
38920         * modules/stdint (Files): Remove m4/ulonglong.m4.
38921         * modules/strtoull (Files): Use m4/longlong.m4 instead of
38922         m4/ulonglong.m4.
38923         * modules/strtoumax (Files): Likewise.
38924
38925 2007-10-30  Bruno Haible  <bruno@clisp.org>
38926
38927         * modules/xvasprintf-posix: New file.
38928         Suggested by Eric Blake.
38929
38930 2007-10-30  Bruno Haible  <bruno@clisp.org>
38931
38932         * modules/xprintf-posix-tests: New file.
38933         * tests/test-xprintf-posix.sh: New file.
38934         * tests/test-xprintf-posix.c: New file.
38935         * tests/test-xfprintf-posix.c: New file.
38936
38937         * modules/xprintf-posix: New file.
38938
38939 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38940
38941         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
38942         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
38943         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
38944
38945 2007-10-29  Bruno Haible  <bruno@clisp.org>
38946
38947         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
38948         contain the special marker '_cv_'.
38949         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38950         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38951         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38952         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
38953         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38954         Reported by Ralf Wildenhues.
38955
38956 2007-10-29  Bruno Haible  <bruno@clisp.org>
38957
38958         * gnulib-tool (func_import): When --lgpl is not specified, set
38959         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
38960         GPLv3.
38961         Reported by Simon Josefsson.
38962
38963 2007-10-28  Bruno Haible  <bruno@clisp.org>
38964
38965         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
38966         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
38967         HAVE_DECL_ISFINITE.
38968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
38969         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
38970         HAVE_DECL_ISFINITE.
38971
38972 2007-10-28  Bruno Haible  <bruno@clisp.org>
38973
38974         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
38975         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
38976
38977 2007-10-28  Bruno Haible  <bruno@clisp.org>
38978
38979         Fix link errors with Sun C 5.0 on Solaris 10.
38980         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
38981         function is declared but not present in the compiler's libm.
38982         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
38983         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
38984         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
38985         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
38986         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
38987         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
38988         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
38989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
38990         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
38991         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
38992         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
38993         HAVE_DECL_FLOORL.
38994
38995 2007-10-28  Bruno Haible  <bruno@clisp.org>
38996
38997         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
38998         gl_FUNC_FLOORL. Cache the result.
38999         (gl_FUNC_FLOORL): Use it.
39000         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39001         gl_FUNC_CEILL. Cache the result.
39002         (gl_FUNC_CEILL): Use it.
39003
39004         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39005         gl_FUNC_FLOOR. Cache the result.
39006         (gl_FUNC_FLOOR): Use it.
39007         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39008         gl_FUNC_CEIL. Cache the result.
39009         (gl_FUNC_CEIL): Use it.
39010
39011         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39012         gl_FUNC_FLOORF. Cache the result.
39013         (gl_FUNC_FLOORF): Use it.
39014         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39015         gl_FUNC_CEILF. Cache the result.
39016         (gl_FUNC_CEILF): Use it.
39017
39018 2007-10-28  Bruno Haible  <bruno@clisp.org>
39019
39020         * gnulib-tool: Allow specifying the LGPL version number through
39021         --lgpl=2 or --lgpl=3.
39022         (func_usage): Document --lgpl with argument.
39023         Handle --lgpl=... arguments.
39024         (func_import): Recognize also gl_LGPL calls with an argument. When
39025         --lgpl=2 is used and the module's license is just LGPL, report an
39026         error. Set sed_transform_lib_file according to the lgpl variable. In
39027         the generated files, use --lgpl or gl_LGPL invocations with argument,
39028         if necessary.
39029         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39030         an LGPv2+ license.
39031         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39032         gl_LGPL macro.
39033
39034 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39035             Bruno Haible  <bruno@clisp.org>
39036
39037         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39038         (u16_uctomb_aux): Likewise.
39039         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39040         !HAVE_INLINE.
39041         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39042
39043 2007-10-28  Bruno Haible  <bruno@clisp.org>
39044
39045         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39046         Invoke AM_GETTEXT_OPTION if it exists.
39047         * modules/vasprintf: Likewise.
39048         * modules/verror: Likewise.
39049         * modules/xprintf: Likewise.
39050         * modules/xvasprintf: Likewise.
39051
39052 2007-10-27  Ben Pfaff  <blp@gnu.org>
39053
39054         * lib/math.in.h: Define isfinite macro and prototypes for
39055         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39056         implementations.
39057         * m4/math_h.m4: New substitutions for isfinite module.
39058         * lib/isfinite.c: New file.
39059         * m4/isfinite.m4: New file.
39060         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39061         * modules/isfinite: New file.
39062         * modules/isfinite-tests: New file.
39063         * tests/tests-isfinite.c: New file.
39064         * doc/functions/isfinite.texi: Mention isfinite module.
39065         * MODULES.html.sh: Mention new module.
39066
39067 2007-10-27  Ben Pfaff  <blp@gnu.org>
39068
39069         Ralf Wildenhues reported that Tru64 4.0D declares the round
39070         functions but does not have definitions.
39071         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39072         cannot be found in any library, set the output variable to
39073         "missing" instead of "".
39074         * m4/round.m4: Also use our substitute if we cannot find round in
39075         any library, even if it is declared.
39076         * m4/roundf.m4: Likewise for roundf.
39077         * m4/roundl.m4: Likewise for roundl.
39078         * lib/math.in.h: Undefine roundf, round, roundl before defining
39079         their replacements, to allow for hypothetical systems where these
39080         may be defined as macros but not available in libraries.
39081
39082 2007-10-27  Bruno Haible  <bruno@clisp.org>
39083
39084         * doc/gnulib.texi: Invoke @firstparagraphindent.
39085         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39086         changes in gnulib.
39087         (Source changes): New section.
39088
39089 2007-10-26  Bruno Haible  <bruno@clisp.org>
39090
39091         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39092         borrowed from autoconf.
39093
39094 2007-10-26  Bruno Haible  <bruno@clisp.org>
39095
39096         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39097         strerror returned the empty string. Needed on HP-UX 11.00.
39098
39099 2007-10-24  Micah Cowan  <micah@cowan.name>
39100
39101         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39102         * build-aux/bootstrap: Remove support for now-unnecessary option,
39103         --cvs-user, and envvars CVS_USER, CVS_RSH.
39104
39105 2007-10-24  Jim Meyering  <meyering@redhat.com>
39106
39107         Avoid diagnostics from sha1sum when there is no cached checksum.
39108         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39109         if the po.s1 file hasn't been created yet.
39110
39111         * build-aux/bootstrap: Sync from coreutils:
39112         2007-10-24  Jim Meyering  <meyering@redhat.com>
39113         Get gnulib from the git repository, not from an obsolete cvs one.
39114         * build-aux/bootstrap: Suggestion from Micah Cowan.
39115         2007-10-04  Jim Meyering  <jim@meyering.net>
39116         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39117         (update_po_files): Work also when there are no .po files in po/.
39118
39119 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39120
39121         * README: Append ".git" to git and cg examples.
39122         Problem reported by Benoit Sigoure.
39123
39124 2007-10-23  Micah Cowan  <micah@cowan.name>
39125
39126         * users.txt: Add wget.
39127
39128 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39129
39130         Fix linking of some unistdio tests on FreeBSD.
39131         * modules/unistdio/u16-vsnprintf-tests
39132         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39133         * modules/unistdio/u16-vsprintf-tests
39134         (test_u16_vsnprintf1_LDADD): Likewise.
39135         * modules/unistdio/u32-vsnprintf-tests
39136         (test_u32_vsnprintf1_LDADD): Likewise.
39137         * modules/unistdio/u32-vsprintf-tests
39138         (test_u32_vsprintf1_LDADD): Likewise.
39139         * modules/unistdio/u8-vsnprintf-tests
39140         (test_u8_vsnprintf1_LDADD): Likewise.
39141         * modules/unistdio/u8-vsprintf-tests
39142         (test_u8_vsprintf1_LDADD): Likewise.
39143         * modules/unistdio/ulc-vsnprintf-tests
39144         (test_ulc_vsnprintf1_LDADD): Likewise.
39145         * modules/unistdio/ulc-vsprintf-tests
39146         (test_ulc_vsprintf1_LDADD): Likewise.
39147
39148         Fix linking of some uniconv tests on FreeBSD.
39149         * modules/uniconv/u16-conv-from-enc-tests
39150         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39151         * modules/uniconv/u16-conv-to-enc-tests
39152         (test_u16_conv_to_enc_LDADD): Likewise.
39153         * modules/uniconv/u16-strconv-from-enc-tests
39154         (test_u16_strconv_from_enc_LDADD): Likewise.
39155         * modules/uniconv/u16-strconv-to-enc-tests
39156         (test_u16_strconv_to_enc_LDADD): Likewise.
39157         * modules/uniconv/u32-conv-from-enc-tests
39158         (test_u32_conv_from_enc_LDADD): Likewise.
39159         * modules/uniconv/u32-conv-to-enc-tests
39160         (test_u32_conv_to_enc_LDADD): Likewise.
39161         * modules/uniconv/u32-strconv-from-enc-tests
39162         (test_u32_strconv_from_enc_LDADD): Likewise.
39163         * modules/uniconv/u32-strconv-to-enc-tests
39164         (test_u32_strconv_to_enc_LDADD): Likewise.
39165         * modules/uniconv/u8-conv-from-enc-tests
39166         (test_u8_conv_from_enc_LDADD): Likewise.
39167         * modules/uniconv/u8-conv-to-enc-tests
39168         (test_u8_conv_to_enc_LDADD): Likewise.
39169         * modules/uniconv/u8-strconv-from-enc-tests
39170         (test_u8_strconv_from_enc_LDADD): Likewise.
39171         * modules/uniconv/u8-strconv-to-enc-tests
39172         (test_u8_strconv_to_enc_LDADD): Likewise.
39173
39174 2007-10-22  Bruno Haible  <bruno@clisp.org>
39175
39176         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39177         size.
39178
39179 2007-10-22  Eric Blake  <ebb9@byu.net>
39180
39181         Tweak x*printf documentation.
39182         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39183         variable name and comments.
39184         Suggested by Bruno Haible.
39185
39186 2007-10-22  Bruno Haible  <bruno@clisp.org>
39187
39188         * lib/acl.c (copy_acl): Fix file name in comment.
39189
39190 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39191
39192         Fix Tru64 problem with stdbool.h.
39193         * lib/stdbool.in.h (false, true):
39194         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39195         Don't declare as an enum in this situation; it runs afoul of Tru64.
39196         Problem reported by Steven M. Schweda in
39197         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39198
39199 2007-10-22  Eric Blake  <ebb9@byu.net>
39200
39201         Also wrap vf?printf.
39202         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39203         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39204         (xvprintf, xvfprintf): New functions.
39205
39206 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39207
39208         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39209         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39210
39211         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39212         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39213
39214 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39215
39216         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39217         by Bruno Haible.
39218
39219 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39220
39221         * lib/getloadavg.c
39222         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39223         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39224
39225         * tests/test-i-ring.c: Work for C89.
39226
39227 2007-10-22  Bruno Haible  <bruno@clisp.org>
39228
39229         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39230         -1u, in preprocessor expression, so that we don't test for the bug
39231         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39232         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39233
39234 2007-10-22  Eric Blake  <ebb9@byu.net>
39235
39236         * tests/test-yesno.sh: Silence stderr during test.
39237
39238 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39239
39240         * modules/crypto/gc-camellia: New file.
39241
39242         * m4/gc-camellia.m4: New file.
39243
39244         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39245
39246         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39247
39248 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39249
39250         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39251         --help to stdout.  Reported by sms@antinode.org (Steven
39252         M. Schweda).
39253
39254 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39255
39256         * users.txt: Fix link to libksba.
39257
39258 2007-10-21  Ben Pfaff  <blp@gnu.org>
39259
39260         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39261         round.c roundf implementation that depends on floorf and ceilf to
39262         be tested unconditionally.
39263
39264 2007-10-21  Ben Pfaff  <blp@gnu.org>
39265
39266         * m4/check-libm-func.m4: Removed.
39267         * m4/check-math-lib.m4: New file.
39268         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39269         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39270         definition and lack of AC_LIBOBJ([roundf]).
39271         * m4/roundl.m4: Ditto, and similarly for roundl.
39272         * modules/round: Reference new m4 file.
39273         * modules/roundf: Ditto.
39274         * modules/roundl: Ditto.
39275         * tests/test-round2.c (main): Use ROUND instead of round.
39276         Bug report from Bruno Haible.
39277
39278 2007-10-21  Bruno Haible  <bruno@clisp.org>
39279
39280         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39281         context.
39282
39283 2007-10-21  Bruno Haible  <bruno@clisp.org>
39284
39285         * tests/test-wcwidth.c (main): Allow negative result for some control
39286         characters.
39287
39288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39289         Needed on OSF/1 5.1.
39290
39291 2007-10-21  Bruno Haible  <bruno@clisp.org>
39292
39293         * tests/test-floorf1.c: Include isnanf.h.
39294         (main): Use isnanf() instead of isnan().
39295         * tests/test-ceilf1.c: Include isnanf.h.
39296         (main): Use isnanf() instead of isnan().
39297         * tests/test-truncf1.c: Include isnanf.h.
39298         (main): Use isnanf() instead of isnan().
39299         * tests/test-roundf1.c: Include isnanf.h.
39300         (main): Use isnanf() instead of isnan().
39301
39302 2007-10-21  Eric Blake  <ebb9@byu.net>
39303
39304         * users.txt: Update URL for m4.
39305
39306 2007-10-21  Bruno Haible  <bruno@clisp.org>
39307
39308         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39309
39310 2007-10-21  Bruno Haible  <bruno@clisp.org>
39311
39312         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39313         Git's management files if the CVS files are not present.
39314
39315 2007-10-20  Bruno Haible  <bruno@clisp.org>
39316
39317         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39318         gcc-3.4.x.
39319
39320 2007-10-20  Ben Pfaff  <blp@gnu.org>
39321
39322         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39323         implementations.
39324         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39325         * lib/round.c: New file.
39326         * lib/roundf.c: New file.
39327         * lib/roundl.c: New file.
39328         * m4/round.m4: New file.
39329         * m4/roundf.m4: New file.
39330         * m4/roundl.m4: New file.
39331         * m4/check-libm-func-m4: New file.
39332         * modules/math: Replace round, roundf, roundl related @VARS@ in
39333         math.in.h.
39334         * modules/round: New file.
39335         * modules/round-tests: New file.
39336         * modules/roundf: New file.
39337         * modules/roundf-tests: New file.
39338         * modules/roundl: New file.
39339         * modules/roundl-tests: New file.
39340         * tests/test-round1.c: New file.
39341         * tests/test-round2.c: New file.
39342         * tests/test-roundf1.c: New file.
39343         * tests/test-roundf2.c: New file.
39344         * tests/test-roundl.c: New file.
39345         * doc/functions/round.texi: Mention round module.
39346         * doc/functions/roundf.texi: Mention roundf module.
39347         * doc/functions/roundl.texi: Mention roundl module.
39348         * MODULES.html.sh: Mention new modules.
39349         Thanks to Bruno Haible for suggestions.
39350
39351 2007-10-20  Jim Meyering  <meyering@redhat.com>
39352
39353         * lib/xprintf.c: Include <config.h> unconditionally.
39354
39355         Change xprintf's license to GPL.
39356         * modules/xprintf (License): s/LGPL/GPL/, since this module
39357         depends on modules (exit and exitfail) which are GPL.
39358         Suggestion from Bruno Haible.
39359
39360         xprintf fixes.
39361         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
39362         Use a clearer diagnostic.
39363         Patch from Bruno Haible.
39364
39365 2007-10-20  Bruno Haible  <bruno@clisp.org>
39366
39367         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39368         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39369         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39370
39371 2007-10-20  Bruno Haible  <bruno@clisp.org>
39372
39373         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39374         precision in the comparison result > x - 1 or similar.
39375         * tests/test-ceilf2.c (correct_result_p): Likewise.
39376         * tests/test-truncf2.c (correct_result_p): Likewise.
39377         * tests/test-trunc2.c (correct_result_p): Likewise.
39378         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39379
39380 2007-10-20  Bruno Haible  <bruno@clisp.org>
39381
39382         * modules/ceil: New file.
39383         * m4/ceil.m4: New file.
39384         * doc/functions/ceil.texi: Mention the 'ceil' module.
39385
39386 2007-10-20  Bruno Haible  <bruno@clisp.org>
39387
39388         * modules/floor: New file.
39389         * m4/floor.m4: New file.
39390         * doc/functions/floor.texi: Mention the 'floor' module.
39391
39392 2007-10-20  Bruno Haible  <bruno@clisp.org>
39393
39394         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39395         of %a.
39396         * modules/floorf-tests (Depends-on): Likewise.
39397         * modules/truncf-tests (Depends-on): Likewise.
39398         * modules/trunc-tests (Depends-on): Likewise.
39399         Reported by Ben Pfaff.
39400
39401 2007-10-19  Jim Meyering  <meyering@redhat.com>
39402
39403         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39404         Don't bother testing specific errno values.  Just test ferror.
39405
39406         New module: xprintf
39407         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39408
39409 2007-10-19  Bruno Haible  <bruno@clisp.org>
39410
39411         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
39412         syntax.
39413         * modules/javaexec (Makefile.am): Likewise.
39414         * modules/relocatable-prog (Makefile.am): Likewise.
39415         Suggested by Jim Meyering.
39416
39417 2007-10-18  Bruno Haible  <bruno@clisp.org>
39418
39419         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
39420         Reported by Jim Meyering.
39421
39422 2007-10-18  Eric Blake  <ebb9@byu.net>
39423
39424         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
39425
39426 2007-10-18  Bruno Haible  <bruno@clisp.org>
39427
39428         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
39429         the format string into writable memory. Needed in Fortify conditions.
39430
39431 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
39432             Bruno Haible  <bruno@clisp.org>
39433
39434         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
39435         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
39436         * modules/trim (Depends-on): Add mbchar.
39437         (configure.ac): Add gl_FUNC_MBRTOWC.
39438         (Makefile.am): Augment lib_SOURCES.
39439
39440 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39441
39442         Modify glob.c to use fstatat and dirfd, to simplify it.
39443         Suggested by Eric Blake.
39444         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
39445         Don't include <stdbool.h>; not used.
39446         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
39447         (link_exists_p): Simplify implementation, since we can now assume
39448         dirfd and fstatat.
39449         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
39450
39451 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39452
39453         * gnulib-tool (func_get_dependencies): Fix sed script to
39454         match only tests.
39455
39456 2007-10-17  Bruno Haible  <bruno@clisp.org>
39457
39458         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
39459         allow locale names without encoding suffix.
39460         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39461         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39462
39463 2007-10-16  Bruno Haible  <bruno@clisp.org>
39464
39465         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
39466         * lib/getgroups.c (getgroups): Likewise.
39467         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
39468
39469 2007-10-16  Bruno Haible  <bruno@clisp.org>
39470
39471         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
39472         * modules/malloc-posix (License): Likewise.
39473         * modules/realloc-posix (License): Likewise.
39474         * modules/calloc-posix (License): Likewise.
39475         * modules/intprops (License): Change from GPL to LGPL, with
39476         Paul Eggert's approval.
39477
39478 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39479
39480         Merge glibc changes into lib/glob.c.
39481
39482         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
39483         2007-10-15 04:59:03 UTC.  Here are the changes:
39484
39485         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
39486
39487         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
39488
39489         * lib/glob.c: Add some branch prediction throughout.
39490
39491         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
39492
39493         [BZ #5103]
39494         * lib/glob.c (glob): Recognize patterns starting \/.
39495
39496         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
39497
39498         [BZ #3996]
39499         * lib/glob.c (attribute_hidden): Define if not defined.
39500         (glob): Unescape dirname, filename or username when needed and not
39501         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
39502         is NULL.  Handle unescaped [ in pattern without closing ].
39503         Don't pass GLOB_CHECK down to recursive glob for directories.
39504         (__glob_pattern_type): New function.
39505         (__glob_pattern_p): Implement using __glob_pattern_type.
39506         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
39507         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
39508         Remove unreachable code.
39509
39510         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
39511
39512         * lib/glob.c (glob_in_dir): Add some comments and asserts to
39513         explain why there are no leaks.
39514
39515         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
39516
39517         [BZ #3253]
39518         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
39519         time, rather allocate increasingly bigger arrays of pointers, if
39520         possible with alloca, if too large with malloc.
39521
39522 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39523
39524         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
39525         Problem reported by H.Merijn Brand in
39526         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
39527         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
39528         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39529
39530 2007-10-15  Bruno Haible  <bruno@clisp.org>
39531
39532         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
39533         with explicit rpl_ prefix.
39534         * lib/fopen.c (fopen): Likewise.
39535         * lib/freopen.c (freopen): Likewise.
39536         * lib/iconv.c (iconv): Likewise.
39537         * lib/iconv_close.c (iconv_close): Likewise.
39538
39539 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39540
39541         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
39542
39543 2007-10-15  Bruno Haible  <bruno@clisp.org>
39544
39545         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
39546         <stddef.h> instead of <stdlib.h> since we only need NULL.
39547         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39548
39549 2007-10-15  Bruno Haible  <bruno@clisp.org>
39550
39551         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
39552         Replace paragraph talking about LIBOBJS.
39553         Reported by Colin Watson <cjwatson@debian.org>.
39554
39555 2007-10-15  Bruno Haible  <bruno@clisp.org>
39556
39557         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
39558         <stdlib.h> before using NULL.
39559
39560 2007-10-15  Simon Josefsson  <simon@josefsson.org>
39561
39562         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
39563         Reported by Albert Chin <china@thewrittenword.com>.
39564
39565 2007-10-14  Bruno Haible  <bruno@clisp.org>
39566
39567         * modules/iconv_open-utf-tests: New file.
39568         * tests/test-iconv-utf.c: New file.
39569
39570         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
39571         * modules/iconv_open-utf: New file.
39572         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
39573         (iconv, iconv_close): New declarations.
39574         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
39575         be defined.
39576         (iconv_open): Add special handling of conversion between UTF-8 and
39577         UTF-{16,32}{BE,LE}.
39578         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
39579         * lib/iconv_close.c: New file.
39580         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
39581         gl_FUNC_ICONV_OPEN.
39582         (gl_FUNC_ICONV_OPEN): Use it.
39583         (gl_FUNC_ICONV_OPEN_UTF): New macro.
39584         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
39585         and REPLACE_ICONV_UTF.
39586         * modules/iconv_open (Depends-on): Add c-strcase.
39587         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
39588         ICONV_CONST.
39589         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
39590
39591 2007-10-13  Albert Chin  <china@thewrittenword.com>
39592             Bruno Haible  <bruno@clisp.org>
39593
39594         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
39595         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
39596
39597 2007-10-13  Bruno Haible  <bruno@clisp.org>
39598
39599         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
39600         defined, use the ISO C99 inline semantics.
39601         * lib/argp.h (ARGP_EI): Likewise.
39602
39603 2007-10-13  Bruno Haible  <bruno@clisp.org>
39604
39605         Handle 'inline' change in gcc 4.3.0.
39606         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
39607         argp_fmtstream_write, argp_fmtstream_set_lmargin,
39608         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
39609         argp_fmtstream_point): Disable 'extern' declaration if the function
39610         definition is going to be provided inline.
39611         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
39612         semantics, not the ISO C99 inline semantics.
39613         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
39614         'extern' declaration if the function definition is going to be provided
39615         inline.
39616         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
39617         the GNU C inline semantics, not the ISO C99 inline semantics. With
39618         GCC 4.2, avoid a warning.
39619
39620 2007-10-13  Bruno Haible  <bruno@clisp.org>
39621
39622         * lib/freading.h (freading): Enable the use of __freading for
39623         glibc >= 2.7.
39624         * lib/freading.c (freading): Likewise.
39625
39626 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39627
39628         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
39629         "warning: C99 inline functions are not supported; using GNU89".
39630
39631 2007-10-12  Bruno Haible  <bruno@clisp.org>
39632
39633         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
39634         of 2.
39635         * tests/test-ceilf2.c: New file.
39636         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
39637
39638         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
39639         * modules/ceilf-tests: Update.
39640
39641 2007-10-12  Bruno Haible  <bruno@clisp.org>
39642
39643         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
39644         of 2.
39645         * tests/test-floorf2.c: New file.
39646         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
39647
39648         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
39649         * modules/floorf-tests: Update.
39650
39651 2007-10-12  Bruno Haible  <bruno@clisp.org>
39652
39653         * tests/test-trunc2.c: New file.
39654         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
39655
39656         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
39657         * modules/trunc-tests: Update.
39658
39659 2007-10-12  Bruno Haible  <bruno@clisp.org>
39660
39661         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
39662         of 2.
39663         * tests/test-truncf2.c: New file.
39664         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
39665
39666         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
39667         * modules/truncf-tests: Update.
39668
39669 2007-10-11  Eric Blake  <ebb9@byu.net>
39670
39671         Don't claim strerror is broken on Interix.
39672         * doc/functions/strerror.texi (strerror): Known broken systems are
39673         now Solaris 8, and not Interix.
39674         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
39675         Interix on cross-compile.
39676         Reported by Martin Koeppe in
39677         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
39678
39679 2007-10-11  Bruno Haible  <bruno@clisp.org>
39680
39681         * modules/i-ring-tests: New file.
39682         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
39683         instead of assert.
39684
39685 2007-10-11  Bruno Haible  <bruno@clisp.org>
39686
39687         * modules/filenamecat-tests: New file.
39688         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
39689         * lib/filenamecat.c: Remove test code.
39690
39691 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39692
39693         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
39694
39695         * lib/strerror.c: Include <string.h> always, to test interface,
39696         and to remove the need for the dummy.
39697         Include intprops.h to compute width instead of doing it ourselves
39698         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
39699         (strerror): Define it to return NULL if there's no system strerror.
39700         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
39701         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
39702         ancient pre-strerror Unix systems well any more.  Saying "unknown
39703         system error" is enough.
39704         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
39705         simpler strerror.c implementation.
39706         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
39707         Simplify the tests to reflect the simpler strerror implementation.
39708         * modules/strerror (Depends-on): Add intprops.
39709
39710 2007-10-09  Eric Blake  <ebb9@byu.net>
39711
39712         Silence test-fpending.
39713         * modules/fpending-tests (Files): Add wrapper script.
39714         * tests/test-fpending.sh: New file.
39715
39716 2007-10-09  Bruno Haible  <bruno@clisp.org>
39717
39718         * MODULES.html.sh (func_module): Don't create a hyperlink for
39719         function names like 'printf_frexp'.
39720         (Misc): Add crc, memxor.
39721         (Characteristics of floating types): New section.
39722         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
39723         isnanf-nolibm, signbit, trunc, truncf, truncl.
39724         (Enhancements for ISO C 99 functions): New subsection Input/output.
39725         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
39726         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
39727         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
39728         (Compatibility checks for POSIX:2001 functions): Add clock-time.
39729         (Enhancements for POSIX:2001 functions): Add chdir-long.
39730         (File system functions): Add areadlink, chdir-safer, read-file.
39731         Remove cycle-check.
39732         (File system as inode set): New section.
39733         (Date and time): Add gethrxtime.
39734         (Multithreading): Add openmp.
39735         (Internationalization functions): Add localename.
39736         (Unicode string functions): Add unistr/u*-mbsnlen.
39737         (Support for maintaining and releasing projects): Add git-version-gen.
39738         (Lone files): Remove directories.
39739
39740 2007-10-08  Ben Pfaff  <blp@gnu.org>
39741
39742         * lib/xmalloca.h: Fix typo in comment.
39743
39744 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39745
39746         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
39747         when avoiding problems with integer overflow.  Use a portable test
39748         instead.
39749
39750 2007-10-08  Simon Josefsson  <simon@josefsson.org>
39751
39752         * modules/dummy (License): Change to LGPLv2+.
39753         * modules/float (License): Likewise
39754         * modules/realloc (License): Likewise
39755         * modules/stdlib (License): Likewise
39756
39757 2007-10-07  Bruno Haible  <bruno@clisp.org>
39758
39759         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
39760         * floor.c (TWO_MANT_DIG): Likewise.
39761         * ceil.c (TWO_MANT_DIG): Likewise.
39762         Reported by Ben Pfaff.
39763
39764 2007-10-07  Bruno Haible  <bruno@clisp.org>
39765
39766         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
39767         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
39768         * lib/frexp.c (FUNC): Likewise.
39769         * lib/printf-frexp.h (printf_frexp): Likewise.
39770         * lib/printf-frexpl.h (printf_frexpl): Likewise.
39771         * lib/printf-frexp.c (FUNC): Likewise.
39772         Suggested by Jim Meyering.
39773
39774 2007-10-07  Jim Meyering  <meyering@redhat.com>
39775
39776         Make xnanosleep's integer overflow test more robust.
39777         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
39778         so that gcc-4.3.0 doesn't optimize away this test for overflow.
39779
39780 2007-10-07  Bruno Haible  <bruno@clisp.org>
39781
39782         * NEWS: Mention the license change.
39783
39784         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
39785         abbreviations in the modules files.
39786
39787         Change copyright notice from GPLv2+ to GPLv3+.
39788         * README: Change copyright notice.
39789         * MODULES.html.sh: Likewise.
39790         * build-aux/bootstrap.conf: Likewise.
39791         * build-aux/config.libpath: Likewise.
39792         * build-aux/csharpcomp.sh.in: Likewise.
39793         * build-aux/csharpexec.sh.in: Likewise.
39794         * build-aux/install-reloc: Likewise.
39795         * build-aux/javacomp.sh.in: Likewise.
39796         * build-aux/javaexec.sh.in: Likewise.
39797         * build-aux/ldd.sh.in: Likewise.
39798         * build-aux/reloc-ldflags: Likewise.
39799         * build-aux/relocatable.sh.in: Likewise.
39800         * build-aux/x-to-1.in: Likewise.
39801         * check-module: Likewise.
39802         * config/srclistvars.sh: Likewise.
39803         * gnulib-tool: Likewise.
39804         * lib/acl-internal.h: Likewise.
39805         * lib/acl.c: Likewise.
39806         * lib/acl.h: Likewise.
39807         * lib/acl_entries.c: Likewise.
39808         * lib/areadlink-with-size.c: Likewise.
39809         * lib/areadlink.c: Likewise.
39810         * lib/areadlink.h: Likewise.
39811         * lib/argmatch.c: Likewise.
39812         * lib/argmatch.h: Likewise.
39813         * lib/argp-ba.c: Likewise.
39814         * lib/argp-eexst.c: Likewise.
39815         * lib/argp-fmtstream.c: Likewise.
39816         * lib/argp-fmtstream.h: Likewise.
39817         * lib/argp-fs-xinl.c: Likewise.
39818         * lib/argp-help.c: Likewise.
39819         * lib/argp-namefrob.h: Likewise.
39820         * lib/argp-parse.c: Likewise.
39821         * lib/argp-pin.c: Likewise.
39822         * lib/argp-pv.c: Likewise.
39823         * lib/argp-pvh.c: Likewise.
39824         * lib/argp-xinl.c: Likewise.
39825         * lib/argp.h: Likewise.
39826         * lib/at-func.c: Likewise.
39827         * lib/atanl.c: Likewise.
39828         * lib/backupfile.c: Likewise.
39829         * lib/backupfile.h: Likewise.
39830         * lib/basename.c: Likewise.
39831         * lib/binary-io.h: Likewise.
39832         * lib/byteswap.in.h: Likewise.
39833         * lib/c-stack.c: Likewise.
39834         * lib/c-stack.h: Likewise.
39835         * lib/c-strcasestr.c: Likewise.
39836         * lib/c-strcasestr.h: Likewise.
39837         * lib/c-strstr.c: Likewise.
39838         * lib/c-strstr.h: Likewise.
39839         * lib/c-strtod.c: Likewise.
39840         * lib/calloc.c: Likewise.
39841         * lib/canon-host.c: Likewise.
39842         * lib/canon-host.h: Likewise.
39843         * lib/canonicalize-lgpl.c: Likewise.
39844         * lib/canonicalize.c: Likewise.
39845         * lib/canonicalize.h: Likewise.
39846         * lib/ceil.c: Likewise.
39847         * lib/ceilf.c: Likewise.
39848         * lib/ceill.c: Likewise.
39849         * lib/chdir-long.c: Likewise.
39850         * lib/chdir-long.h: Likewise.
39851         * lib/chdir-safer.c: Likewise.
39852         * lib/chdir-safer.h: Likewise.
39853         * lib/chown.c: Likewise.
39854         * lib/classpath.c: Likewise.
39855         * lib/classpath.h: Likewise.
39856         * lib/clean-temp.c: Likewise.
39857         * lib/clean-temp.h: Likewise.
39858         * lib/cloexec.c: Likewise.
39859         * lib/close-stream.c: Likewise.
39860         * lib/closein.c: Likewise.
39861         * lib/closein.h: Likewise.
39862         * lib/closeout.c: Likewise.
39863         * lib/closeout.h: Likewise.
39864         * lib/concat-filename.c: Likewise.
39865         * lib/copy-file.c: Likewise.
39866         * lib/copy-file.h: Likewise.
39867         * lib/count-one-bits.h: Likewise.
39868         * lib/crc.c: Likewise.
39869         * lib/crc.h: Likewise.
39870         * lib/creat-safer.c: Likewise.
39871         * lib/csharpcomp.c: Likewise.
39872         * lib/csharpcomp.h: Likewise.
39873         * lib/csharpexec.c: Likewise.
39874         * lib/csharpexec.h: Likewise.
39875         * lib/cycle-check.c: Likewise.
39876         * lib/cycle-check.h: Likewise.
39877         * lib/diacrit.c: Likewise.
39878         * lib/diacrit.h: Likewise.
39879         * lib/diffseq.h: Likewise.
39880         * lib/dirchownmod.c: Likewise.
39881         * lib/dirent.in.h: Likewise.
39882         * lib/dirfd.c: Likewise.
39883         * lib/dirfd.h: Likewise.
39884         * lib/dirname.c: Likewise.
39885         * lib/dirname.h: Likewise.
39886         * lib/dummy.c: Likewise.
39887         * lib/dup-safer.c: Likewise.
39888         * lib/dup2.c: Likewise.
39889         * lib/eealloc.h: Likewise.
39890         * lib/error.c: Likewise.
39891         * lib/error.h: Likewise.
39892         * lib/euidaccess.c: Likewise.
39893         * lib/exclude.c: Likewise.
39894         * lib/exclude.h: Likewise.
39895         * lib/execute.c: Likewise.
39896         * lib/execute.h: Likewise.
39897         * lib/exitfail.c: Likewise.
39898         * lib/exitfail.h: Likewise.
39899         * lib/expl.c: Likewise.
39900         * lib/fatal-signal.c: Likewise.
39901         * lib/fatal-signal.h: Likewise.
39902         * lib/fbufmode.c: Likewise.
39903         * lib/fbufmode.h: Likewise.
39904         * lib/fchdir.c: Likewise.
39905         * lib/fchmodat.c: Likewise.
39906         * lib/fchownat.c: Likewise.
39907         * lib/fcntl--.h: Likewise.
39908         * lib/fcntl-safer.h: Likewise.
39909         * lib/fcntl.in.h: Likewise.
39910         * lib/fd-safer.c: Likewise.
39911         * lib/fflush.c: Likewise.
39912         * lib/file-has-acl.c: Likewise.
39913         * lib/file-set.c: Likewise.
39914         * lib/file-type.c: Likewise.
39915         * lib/file-type.h: Likewise.
39916         * lib/fileblocks.c: Likewise.
39917         * lib/filemode.c: Likewise.
39918         * lib/filemode.h: Likewise.
39919         * lib/filename.h: Likewise.
39920         * lib/filenamecat.c: Likewise.
39921         * lib/filenamecat.h: Likewise.
39922         * lib/findprog.c: Likewise.
39923         * lib/findprog.h: Likewise.
39924         * lib/float.in.h: Likewise.
39925         * lib/floor.c: Likewise.
39926         * lib/floorf.c: Likewise.
39927         * lib/floorl.c: Likewise.
39928         * lib/fopen-safer.c: Likewise.
39929         * lib/fopen.c: Likewise.
39930         * lib/fpending.c: Likewise.
39931         * lib/fpending.h: Likewise.
39932         * lib/fprintf.c: Likewise.
39933         * lib/fprintftime.h: Likewise.
39934         * lib/fpucw.h: Likewise.
39935         * lib/fpurge.c: Likewise.
39936         * lib/fpurge.h: Likewise.
39937         * lib/freadable.c: Likewise.
39938         * lib/freadable.h: Likewise.
39939         * lib/freadahead.c: Likewise.
39940         * lib/freadahead.h: Likewise.
39941         * lib/freading.c: Likewise.
39942         * lib/freading.h: Likewise.
39943         * lib/free.c: Likewise.
39944         * lib/freopen.c: Likewise.
39945         * lib/frexp.c: Likewise.
39946         * lib/frexpl.c: Likewise.
39947         * lib/fseek.c: Likewise.
39948         * lib/fseterr.c: Likewise.
39949         * lib/fseterr.h: Likewise.
39950         * lib/fstatat.c: Likewise.
39951         * lib/fstrcmp.c: Likewise.
39952         * lib/fstrcmp.h: Likewise.
39953         * lib/fsusage.c: Likewise.
39954         * lib/fsusage.h: Likewise.
39955         * lib/ftell.c: Likewise.
39956         * lib/ftello.c: Likewise.
39957         * lib/fts-cycle.c: Likewise.
39958         * lib/fts.c: Likewise.
39959         * lib/fts_.h: Likewise.
39960         * lib/full-read.c: Likewise.
39961         * lib/full-read.h: Likewise.
39962         * lib/full-write.c: Likewise.
39963         * lib/full-write.h: Likewise.
39964         * lib/fwritable.c: Likewise.
39965         * lib/fwritable.h: Likewise.
39966         * lib/fwriteerror.c: Likewise.
39967         * lib/fwriteerror.h: Likewise.
39968         * lib/fwriting.c: Likewise.
39969         * lib/fwriting.h: Likewise.
39970         * lib/gcd.c: Likewise.
39971         * lib/gcd.h: Likewise.
39972         * lib/getcwd.c: Likewise.
39973         * lib/getdate.h: Likewise.
39974         * lib/getdate.y: Likewise.
39975         * lib/getdomainname.c: Likewise.
39976         * lib/getdomainname.h: Likewise.
39977         * lib/getgroups.c: Likewise.
39978         * lib/gethostname.c: Likewise.
39979         * lib/gethrxtime.c: Likewise.
39980         * lib/gethrxtime.h: Likewise.
39981         * lib/getloadavg.c: Likewise.
39982         * lib/getndelim2.c: Likewise.
39983         * lib/getndelim2.h: Likewise.
39984         * lib/getnline.c: Likewise.
39985         * lib/getnline.h: Likewise.
39986         * lib/getopt.c: Likewise.
39987         * lib/getopt.in.h: Likewise.
39988         * lib/getopt1.c: Likewise.
39989         * lib/getopt_int.h: Likewise.
39990         * lib/getpagesize.h: Likewise.
39991         * lib/getsubopt.c: Likewise.
39992         * lib/gettime.c: Likewise.
39993         * lib/getugroups.c: Likewise.
39994         * lib/getugroups.h: Likewise.
39995         * lib/getusershell.c: Likewise.
39996         * lib/gl_anyavltree_list1.h: Likewise.
39997         * lib/gl_anyavltree_list2.h: Likewise.
39998         * lib/gl_anyhash_list1.h: Likewise.
39999         * lib/gl_anyhash_list2.h: Likewise.
40000         * lib/gl_anylinked_list1.h: Likewise.
40001         * lib/gl_anylinked_list2.h: Likewise.
40002         * lib/gl_anyrbtree_list1.h: Likewise.
40003         * lib/gl_anyrbtree_list2.h: Likewise.
40004         * lib/gl_anytree_list1.h: Likewise.
40005         * lib/gl_anytree_list2.h: Likewise.
40006         * lib/gl_anytree_oset.h: Likewise.
40007         * lib/gl_anytreehash_list1.h: Likewise.
40008         * lib/gl_anytreehash_list2.h: Likewise.
40009         * lib/gl_array_list.c: Likewise.
40010         * lib/gl_array_list.h: Likewise.
40011         * lib/gl_array_oset.c: Likewise.
40012         * lib/gl_array_oset.h: Likewise.
40013         * lib/gl_avltree_list.c: Likewise.
40014         * lib/gl_avltree_list.h: Likewise.
40015         * lib/gl_avltree_oset.c: Likewise.
40016         * lib/gl_avltree_oset.h: Likewise.
40017         * lib/gl_avltreehash_list.c: Likewise.
40018         * lib/gl_avltreehash_list.h: Likewise.
40019         * lib/gl_carray_list.c: Likewise.
40020         * lib/gl_carray_list.h: Likewise.
40021         * lib/gl_linked_list.c: Likewise.
40022         * lib/gl_linked_list.h: Likewise.
40023         * lib/gl_linkedhash_list.c: Likewise.
40024         * lib/gl_linkedhash_list.h: Likewise.
40025         * lib/gl_list.c: Likewise.
40026         * lib/gl_list.h: Likewise.
40027         * lib/gl_oset.c: Likewise.
40028         * lib/gl_oset.h: Likewise.
40029         * lib/gl_rbtree_list.c: Likewise.
40030         * lib/gl_rbtree_list.h: Likewise.
40031         * lib/gl_rbtree_oset.c: Likewise.
40032         * lib/gl_rbtree_oset.h: Likewise.
40033         * lib/gl_rbtreehash_list.c: Likewise.
40034         * lib/gl_rbtreehash_list.h: Likewise.
40035         * lib/gl_sublist.c: Likewise.
40036         * lib/gl_sublist.h: Likewise.
40037         * lib/group-member.c: Likewise.
40038         * lib/group-member.h: Likewise.
40039         * lib/hard-locale.c: Likewise.
40040         * lib/hard-locale.h: Likewise.
40041         * lib/hash-pjw.c: Likewise.
40042         * lib/hash-pjw.h: Likewise.
40043         * lib/hash-triple.c: Likewise.
40044         * lib/hash.c: Likewise.
40045         * lib/hash.h: Likewise.
40046         * lib/human.c: Likewise.
40047         * lib/human.h: Likewise.
40048         * lib/i-ring.c: Likewise.
40049         * lib/i-ring.h: Likewise.
40050         * lib/idcache.c: Likewise.
40051         * lib/imaxabs.c: Likewise.
40052         * lib/imaxdiv.c: Likewise.
40053         * lib/inet_pton.c: Likewise.
40054         * lib/inet_pton.h: Likewise.
40055         * lib/intprops.h: Likewise.
40056         * lib/inttostr.c: Likewise.
40057         * lib/inttostr.h: Likewise.
40058         * lib/inttypes.in.h: Likewise.
40059         * lib/isapipe.c: Likewise.
40060         * lib/isdir.c: Likewise.
40061         * lib/isnan.c: Likewise.
40062         * lib/isnan.h: Likewise.
40063         * lib/isnanf.c: Likewise.
40064         * lib/isnanf.h: Likewise.
40065         * lib/isnanl-nolibm.h: Likewise.
40066         * lib/isnanl.c: Likewise.
40067         * lib/isnanl.h: Likewise.
40068         * lib/javacomp.c: Likewise.
40069         * lib/javacomp.h: Likewise.
40070         * lib/javaexec.c: Likewise.
40071         * lib/javaexec.h: Likewise.
40072         * lib/javaversion.c: Likewise.
40073         * lib/javaversion.h: Likewise.
40074         * lib/javaversion.java: Likewise.
40075         * lib/lbrkprop.h: Likewise.
40076         * lib/lchmod.h: Likewise.
40077         * lib/lchown.c: Likewise.
40078         * lib/ldexpl.c: Likewise.
40079         * lib/linebreak.c: Likewise.
40080         * lib/linebreak.h: Likewise.
40081         * lib/linebuffer.c: Likewise.
40082         * lib/linebuffer.h: Likewise.
40083         * lib/locale.in.h: Likewise.
40084         * lib/logl.c: Likewise.
40085         * lib/long-options.c: Likewise.
40086         * lib/long-options.h: Likewise.
40087         * lib/lstat.c: Likewise.
40088         * lib/lstat.h: Likewise.
40089         * lib/math.in.h: Likewise.
40090         * lib/mbchar.c: Likewise.
40091         * lib/mbchar.h: Likewise.
40092         * lib/mbfile.h: Likewise.
40093         * lib/mbiter.h: Likewise.
40094         * lib/mbscasecmp.c: Likewise.
40095         * lib/mbscasestr.c: Likewise.
40096         * lib/mbschr.c: Likewise.
40097         * lib/mbscspn.c: Likewise.
40098         * lib/mbslen.c: Likewise.
40099         * lib/mbsncasecmp.c: Likewise.
40100         * lib/mbsnlen.c: Likewise.
40101         * lib/mbspbrk.c: Likewise.
40102         * lib/mbspcasecmp.c: Likewise.
40103         * lib/mbsrchr.c: Likewise.
40104         * lib/mbssep.c: Likewise.
40105         * lib/mbsspn.c: Likewise.
40106         * lib/mbsstr.c: Likewise.
40107         * lib/mbstok_r.c: Likewise.
40108         * lib/mbswidth.c: Likewise.
40109         * lib/mbswidth.h: Likewise.
40110         * lib/mbuiter.h: Likewise.
40111         * lib/memcasecmp.c: Likewise.
40112         * lib/memcasecmp.h: Likewise.
40113         * lib/memchr.c: Likewise.
40114         * lib/memcmp.c: Likewise.
40115         * lib/memcoll.c: Likewise.
40116         * lib/memcoll.h: Likewise.
40117         * lib/memcpy.c: Likewise.
40118         * lib/memrchr.c: Likewise.
40119         * lib/mkancesdirs.c: Likewise.
40120         * lib/mkdir-p.c: Likewise.
40121         * lib/mkdir-p.h: Likewise.
40122         * lib/mkdir.c: Likewise.
40123         * lib/mkdirat.c: Likewise.
40124         * lib/mkdtemp.c: Likewise.
40125         * lib/mkstemp-safer.c: Likewise.
40126         * lib/mkstemp.c: Likewise.
40127         * lib/modechange.c: Likewise.
40128         * lib/modechange.h: Likewise.
40129         * lib/mountlist.c: Likewise.
40130         * lib/mountlist.h: Likewise.
40131         * lib/mpsort.c: Likewise.
40132         * lib/nanosleep.c: Likewise.
40133         * lib/obstack.c: Likewise.
40134         * lib/obstack.h: Likewise.
40135         * lib/open-safer.c: Likewise.
40136         * lib/open.c: Likewise.
40137         * lib/openat-die.c: Likewise.
40138         * lib/openat-priv.h: Likewise.
40139         * lib/openat-proc.c: Likewise.
40140         * lib/openat.c: Likewise.
40141         * lib/openat.h: Likewise.
40142         * lib/pagealign_alloc.c: Likewise.
40143         * lib/pagealign_alloc.h: Likewise.
40144         * lib/physmem.c: Likewise.
40145         * lib/physmem.h: Likewise.
40146         * lib/pipe-safer.c: Likewise.
40147         * lib/pipe.c: Likewise.
40148         * lib/pipe.h: Likewise.
40149         * lib/posixtm.c: Likewise.
40150         * lib/posixtm.h: Likewise.
40151         * lib/posixver.c: Likewise.
40152         * lib/printf-frexp.c: Likewise.
40153         * lib/printf-frexp.h: Likewise.
40154         * lib/printf-frexpl.c: Likewise.
40155         * lib/printf-frexpl.h: Likewise.
40156         * lib/printf.c: Likewise.
40157         * lib/progname.c: Likewise.
40158         * lib/progname.h: Likewise.
40159         * lib/progreloc.c: Likewise.
40160         * lib/putenv.c: Likewise.
40161         * lib/quote.c: Likewise.
40162         * lib/quote.h: Likewise.
40163         * lib/quotearg.c: Likewise.
40164         * lib/quotearg.h: Likewise.
40165         * lib/raise.c: Likewise.
40166         * lib/readline.c: Likewise.
40167         * lib/readline.h: Likewise.
40168         * lib/readlink.c: Likewise.
40169         * lib/readtokens.c: Likewise.
40170         * lib/readtokens.h: Likewise.
40171         * lib/readtokens0.c: Likewise.
40172         * lib/readtokens0.h: Likewise.
40173         * lib/readutmp.c: Likewise.
40174         * lib/readutmp.h: Likewise.
40175         * lib/realloc.c: Likewise.
40176         * lib/relocwrapper.c: Likewise.
40177         * lib/rename-dest-slash.c: Likewise.
40178         * lib/rename.c: Likewise.
40179         * lib/rmdir.c: Likewise.
40180         * lib/rpmatch.c: Likewise.
40181         * lib/safe-read.c: Likewise.
40182         * lib/safe-read.h: Likewise.
40183         * lib/safe-write.c: Likewise.
40184         * lib/safe-write.h: Likewise.
40185         * lib/same-inode.h: Likewise.
40186         * lib/same.c: Likewise.
40187         * lib/same.h: Likewise.
40188         * lib/save-cwd.c: Likewise.
40189         * lib/save-cwd.h: Likewise.
40190         * lib/savedir.c: Likewise.
40191         * lib/savedir.h: Likewise.
40192         * lib/savewd.c: Likewise.
40193         * lib/savewd.h: Likewise.
40194         * lib/search.in.h: Likewise.
40195         * lib/setenv.c: Likewise.
40196         * lib/setenv.h: Likewise.
40197         * lib/settime.c: Likewise.
40198         * lib/sh-quote.c: Likewise.
40199         * lib/sh-quote.h: Likewise.
40200         * lib/sig2str.c: Likewise.
40201         * lib/sig2str.h: Likewise.
40202         * lib/signal.in.h: Likewise.
40203         * lib/signbitd.c: Likewise.
40204         * lib/signbitf.c: Likewise.
40205         * lib/signbitl.c: Likewise.
40206         * lib/sigprocmask.c: Likewise.
40207         * lib/sincosl.c: Likewise.
40208         * lib/sleep.c: Likewise.
40209         * lib/sprintf.c: Likewise.
40210         * lib/sqrtl.c: Likewise.
40211         * lib/stat-time.h: Likewise.
40212         * lib/stdio--.h: Likewise.
40213         * lib/stdio-safer.h: Likewise.
40214         * lib/stdlib--.h: Likewise.
40215         * lib/stdlib-safer.h: Likewise.
40216         * lib/stdlib.in.h: Likewise.
40217         * lib/stpcpy.c: Likewise.
40218         * lib/stpncpy.c: Likewise.
40219         * lib/strchrnul.c: Likewise.
40220         * lib/strcspn.c: Likewise.
40221         * lib/strerror.c: Likewise.
40222         * lib/strftime.c: Likewise.
40223         * lib/strftime.h: Likewise.
40224         * lib/striconveh.c: Likewise.
40225         * lib/striconveh.h: Likewise.
40226         * lib/striconveha.c: Likewise.
40227         * lib/striconveha.h: Likewise.
40228         * lib/stripslash.c: Likewise.
40229         * lib/strnlen1.c: Likewise.
40230         * lib/strnlen1.h: Likewise.
40231         * lib/strtod.c: Likewise.
40232         * lib/strtoimax.c: Likewise.
40233         * lib/strtok_r.c: Likewise.
40234         * lib/strtol.c: Likewise.
40235         * lib/strtoll.c: Likewise.
40236         * lib/strtoul.c: Likewise.
40237         * lib/strtoull.c: Likewise.
40238         * lib/sysexits.in.h: Likewise.
40239         * lib/tempname.c: Likewise.
40240         * lib/tempname.h: Likewise.
40241         * lib/timespec.h: Likewise.
40242         * lib/tls.c: Likewise.
40243         * lib/tls.h: Likewise.
40244         * lib/tmpdir.c: Likewise.
40245         * lib/tmpdir.h: Likewise.
40246         * lib/tmpfile-safer.c: Likewise.
40247         * lib/tmpfile.c: Likewise.
40248         * lib/trigl.c: Likewise.
40249         * lib/trigl.h: Likewise.
40250         * lib/trim.c: Likewise.
40251         * lib/trim.h: Likewise.
40252         * lib/trunc.c: Likewise.
40253         * lib/truncf.c: Likewise.
40254         * lib/truncl.c: Likewise.
40255         * lib/tsearch.c: Likewise.
40256         * lib/unicodeio.c: Likewise.
40257         * lib/unicodeio.h: Likewise.
40258         * lib/unistd--.h: Likewise.
40259         * lib/unistd-safer.h: Likewise.
40260         * lib/unistdio/ulc-fprintf.c: Likewise.
40261         * lib/unistdio/ulc-vfprintf.c: Likewise.
40262         * lib/unlinkdir.c: Likewise.
40263         * lib/unlinkdir.h: Likewise.
40264         * lib/unlocked-io.h: Likewise.
40265         * lib/unsetenv.c: Likewise.
40266         * lib/userspec.c: Likewise.
40267         * lib/utime.c: Likewise.
40268         * lib/utimecmp.c: Likewise.
40269         * lib/utimecmp.h: Likewise.
40270         * lib/utimens.c: Likewise.
40271         * lib/verify.h: Likewise.
40272         * lib/verror.c: Likewise.
40273         * lib/verror.h: Likewise.
40274         * lib/version-etc-fsf.c: Likewise.
40275         * lib/version-etc.c: Likewise.
40276         * lib/version-etc.h: Likewise.
40277         * lib/vfprintf.c: Likewise.
40278         * lib/vprintf.c: Likewise.
40279         * lib/vsprintf.c: Likewise.
40280         * lib/w32spawn.h: Likewise.
40281         * lib/wait-process.c: Likewise.
40282         * lib/wait-process.h: Likewise.
40283         * lib/wcwidth.c: Likewise.
40284         * lib/write-any-file.c: Likewise.
40285         * lib/xalloc-die.c: Likewise.
40286         * lib/xalloc.h: Likewise.
40287         * lib/xasprintf.c: Likewise.
40288         * lib/xgetcwd.c: Likewise.
40289         * lib/xgetcwd.h: Likewise.
40290         * lib/xgetdomainname.c: Likewise.
40291         * lib/xgetdomainname.h: Likewise.
40292         * lib/xgethostname.c: Likewise.
40293         * lib/xmalloc.c: Likewise.
40294         * lib/xmalloca.c: Likewise.
40295         * lib/xmalloca.h: Likewise.
40296         * lib/xmemcoll.c: Likewise.
40297         * lib/xnanosleep.c: Likewise.
40298         * lib/xreadlink.c: Likewise.
40299         * lib/xreadlink.h: Likewise.
40300         * lib/xsetenv.c: Likewise.
40301         * lib/xsetenv.h: Likewise.
40302         * lib/xstriconv.c: Likewise.
40303         * lib/xstriconv.h: Likewise.
40304         * lib/xstrndup.c: Likewise.
40305         * lib/xstrndup.h: Likewise.
40306         * lib/xstrtod.c: Likewise.
40307         * lib/xstrtod.h: Likewise.
40308         * lib/xstrtol-error.c: Likewise.
40309         * lib/xstrtol.c: Likewise.
40310         * lib/xstrtol.h: Likewise.
40311         * lib/xtime.h: Likewise.
40312         * lib/xvasprintf.c: Likewise.
40313         * lib/xvasprintf.h: Likewise.
40314         * lib/yesno.c: Likewise.
40315         * lib/yesno.h: Likewise.
40316         * posix-modules: Likewise.
40317         * tests/test-alloca-opt.c: Likewise.
40318         * tests/test-arcfour.c: Likewise.
40319         * tests/test-arctwo.c: Likewise.
40320         * tests/test-argmatch.c: Likewise.
40321         * tests/test-argp-2.sh: Likewise.
40322         * tests/test-argp.c: Likewise.
40323         * tests/test-arpa_inet.c: Likewise.
40324         * tests/test-array_list.c: Likewise.
40325         * tests/test-array_oset.c: Likewise.
40326         * tests/test-atexit.c: Likewise.
40327         * tests/test-avltree_list.c: Likewise.
40328         * tests/test-avltree_oset.c: Likewise.
40329         * tests/test-avltreehash_list.c: Likewise.
40330         * tests/test-base64.c: Likewise.
40331         * tests/test-binary-io.c: Likewise.
40332         * tests/test-byteswap.c: Likewise.
40333         * tests/test-c-ctype.c: Likewise.
40334         * tests/test-c-strcasecmp.c: Likewise.
40335         * tests/test-c-strcasestr.c: Likewise.
40336         * tests/test-c-strncasecmp.c: Likewise.
40337         * tests/test-c-strstr.c: Likewise.
40338         * tests/test-canonicalize-lgpl.c: Likewise.
40339         * tests/test-canonicalize.c: Likewise.
40340         * tests/test-carray_list.c: Likewise.
40341         * tests/test-ceilf.c: Likewise.
40342         * tests/test-ceill.c: Likewise.
40343         * tests/test-count-one-bits.c: Likewise.
40344         * tests/test-crc.c: Likewise.
40345         * tests/test-dirname.c: Likewise.
40346         * tests/test-fbufmode.c: Likewise.
40347         * tests/test-fcntl.c: Likewise.
40348         * tests/test-fflush.c: Likewise.
40349         * tests/test-floorf.c: Likewise.
40350         * tests/test-floorl.c: Likewise.
40351         * tests/test-fopen.c: Likewise.
40352         * tests/test-fprintf-posix.c: Likewise.
40353         * tests/test-fprintf-posix.h: Likewise.
40354         * tests/test-fpurge.c: Likewise.
40355         * tests/test-freadable.c: Likewise.
40356         * tests/test-freadahead.c: Likewise.
40357         * tests/test-freading.c: Likewise.
40358         * tests/test-freopen.c: Likewise.
40359         * tests/test-frexp.c: Likewise.
40360         * tests/test-frexpl.c: Likewise.
40361         * tests/test-fseek.c: Likewise.
40362         * tests/test-fseeko.c: Likewise.
40363         * tests/test-fseterr.c: Likewise.
40364         * tests/test-fstrcmp.c: Likewise.
40365         * tests/test-ftell.c: Likewise.
40366         * tests/test-ftello.c: Likewise.
40367         * tests/test-fwritable.c: Likewise.
40368         * tests/test-fwriting.c: Likewise.
40369         * tests/test-getaddrinfo.c: Likewise.
40370         * tests/test-getpass.c: Likewise.
40371         * tests/test-gettimeofday.c: Likewise.
40372         * tests/test-hmac-md5.c: Likewise.
40373         * tests/test-hmac-sha1.c: Likewise.
40374         * tests/test-iconv.c: Likewise.
40375         * tests/test-iconvme.c: Likewise.
40376         * tests/test-inttypes.c: Likewise.
40377         * tests/test-isnan.c: Likewise.
40378         * tests/test-isnanf.c: Likewise.
40379         * tests/test-isnanl-nolibm.c: Likewise.
40380         * tests/test-isnanl.c: Likewise.
40381         * tests/test-isnanl.h: Likewise.
40382         * tests/test-ldexpl.c: Likewise.
40383         * tests/test-linked_list.c: Likewise.
40384         * tests/test-linkedhash_list.c: Likewise.
40385         * tests/test-locale.c: Likewise.
40386         * tests/test-localename.c: Likewise.
40387         * tests/test-lock.c: Likewise.
40388         * tests/test-lseek.c: Likewise.
40389         * tests/test-malloca.c: Likewise.
40390         * tests/test-math.c: Likewise.
40391         * tests/test-mbscasecmp.c: Likewise.
40392         * tests/test-mbscasestr1.c: Likewise.
40393         * tests/test-mbscasestr2.c: Likewise.
40394         * tests/test-mbscasestr3.c: Likewise.
40395         * tests/test-mbscasestr4.c: Likewise.
40396         * tests/test-mbschr.c: Likewise.
40397         * tests/test-mbscspn.c: Likewise.
40398         * tests/test-mbsncasecmp.c: Likewise.
40399         * tests/test-mbspbrk.c: Likewise.
40400         * tests/test-mbspcasecmp.c: Likewise.
40401         * tests/test-mbsrchr.c: Likewise.
40402         * tests/test-mbsspn.c: Likewise.
40403         * tests/test-mbsstr1.c: Likewise.
40404         * tests/test-mbsstr2.c: Likewise.
40405         * tests/test-mbsstr3.c: Likewise.
40406         * tests/test-md5.c: Likewise.
40407         * tests/test-memmem.c: Likewise.
40408         * tests/test-netinet_in.c: Likewise.
40409         * tests/test-open.c: Likewise.
40410         * tests/test-printf-frexp.c: Likewise.
40411         * tests/test-printf-frexpl.c: Likewise.
40412         * tests/test-printf-posix.c: Likewise.
40413         * tests/test-printf-posix.h: Likewise.
40414         * tests/test-rbtree_list.c: Likewise.
40415         * tests/test-rbtree_oset.c: Likewise.
40416         * tests/test-rbtreehash_list.c: Likewise.
40417         * tests/test-read-file.c: Likewise.
40418         * tests/test-rijndael.c: Likewise.
40419         * tests/test-search.c: Likewise.
40420         * tests/test-signbit.c: Likewise.
40421         * tests/test-sleep.c: Likewise.
40422         * tests/test-snprintf-posix.c: Likewise.
40423         * tests/test-snprintf-posix.h: Likewise.
40424         * tests/test-snprintf.c: Likewise.
40425         * tests/test-sprintf-posix.c: Likewise.
40426         * tests/test-sprintf-posix.h: Likewise.
40427         * tests/test-stat-time.c: Likewise.
40428         * tests/test-stdbool.c: Likewise.
40429         * tests/test-stdint.c: Likewise.
40430         * tests/test-stdio.c: Likewise.
40431         * tests/test-stdlib.c: Likewise.
40432         * tests/test-stpncpy.c: Likewise.
40433         * tests/test-strcasestr.c: Likewise.
40434         * tests/test-striconv.c: Likewise.
40435         * tests/test-striconveh.c: Likewise.
40436         * tests/test-striconveha.c: Likewise.
40437         * tests/test-string.c: Likewise.
40438         * tests/test-sys_select.c: Likewise.
40439         * tests/test-sys_socket.c: Likewise.
40440         * tests/test-sys_stat.c: Likewise.
40441         * tests/test-sys_time.c: Likewise.
40442         * tests/test-sysexits.c: Likewise.
40443         * tests/test-time.c: Likewise.
40444         * tests/test-tls.c: Likewise.
40445         * tests/test-trunc.c: Likewise.
40446         * tests/test-truncf.c: Likewise.
40447         * tests/test-truncl.c: Likewise.
40448         * tests/test-unistd.c: Likewise.
40449         * tests/test-vasnprintf-posix.c: Likewise.
40450         * tests/test-vasnprintf-posix2.c: Likewise.
40451         * tests/test-vasnprintf.c: Likewise.
40452         * tests/test-vasprintf-posix.c: Likewise.
40453         * tests/test-vasprintf.c: Likewise.
40454         * tests/test-verify.c: Likewise.
40455         * tests/test-vfprintf-posix.c: Likewise.
40456         * tests/test-vprintf-posix.c: Likewise.
40457         * tests/test-vsnprintf-posix.c: Likewise.
40458         * tests/test-vsnprintf.c: Likewise.
40459         * tests/test-vsprintf-posix.c: Likewise.
40460         * tests/test-wchar.c: Likewise.
40461         * tests/test-wctype.c: Likewise.
40462         * tests/test-wcwidth.c: Likewise.
40463         * tests/test-xstrtol.c: Likewise.
40464         * tests/test-xvasprintf.c: Likewise.
40465         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40466         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40467         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40468         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40469         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40470         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40471         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40472         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40473         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40474         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40475         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40476         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40477         * tests/uniname/test-uninames.c: Likewise.
40478         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40479         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
40480         * tests/unistdio/test-u16-printf1.h: Likewise.
40481         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40482         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40483         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40484         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40485         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40486         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40487         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40488         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
40489         * tests/unistdio/test-u32-printf1.h: Likewise.
40490         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40491         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40492         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40493         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40494         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40495         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40496         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40497         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
40498         * tests/unistdio/test-u8-printf1.h: Likewise.
40499         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40500         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40501         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40502         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40503         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40504         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40505         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40506         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
40507         * tests/unistdio/test-ulc-printf1.h: Likewise.
40508         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40509         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40510         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40511         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40512         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40513         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40514         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40515         * tests/uniwidth/test-u16-width.c: Likewise.
40516         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40517         * tests/uniwidth/test-u32-width.c: Likewise.
40518         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40519         * tests/uniwidth/test-u8-width.c: Likewise.
40520         * tests/uniwidth/test-uc_width.c: Likewise.
40521         * config/srclist-update: Likewise.
40522         (fixlicense): Update to GPLv3+.
40523
40524         Change copyright notice from LGPLv2.1+ to LGPLv3+.
40525         * tests/test-tsearch.c: Change copyright notice.
40526
40527         Change copyright notice from LGPLv2.0+ to LGPLv3+.
40528         * lib/c-strcaseeq.h: Change copyright notice.
40529         * lib/streq.h: Likewise.
40530         * lib/uniconv.h: Likewise.
40531         * lib/uniconv/u-conv-from-enc.h: Likewise.
40532         * lib/uniconv/u-conv-to-enc.h: Likewise.
40533         * lib/uniconv/u-strconv-from-enc.h: Likewise.
40534         * lib/uniconv/u-strconv-to-enc.h: Likewise.
40535         * lib/uniconv/u16-conv-from-enc.c: Likewise.
40536         * lib/uniconv/u16-conv-to-enc.c: Likewise.
40537         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
40538         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
40539         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
40540         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
40541         * lib/uniconv/u32-conv-from-enc.c: Likewise.
40542         * lib/uniconv/u32-conv-to-enc.c: Likewise.
40543         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
40544         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
40545         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
40546         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
40547         * lib/uniconv/u8-conv-from-enc.c: Likewise.
40548         * lib/uniconv/u8-conv-to-enc.c: Likewise.
40549         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
40550         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
40551         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
40552         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
40553         * lib/uniname.h: Likewise.
40554         * lib/uniname/uniname.c: Likewise.
40555         * lib/unistdio.h: Likewise.
40556         * lib/unistdio/u-asnprintf.h: Likewise.
40557         * lib/unistdio/u-asprintf.h: Likewise.
40558         * lib/unistdio/u-printf-args.c: Likewise.
40559         * lib/unistdio/u-printf-args.h: Likewise.
40560         * lib/unistdio/u-printf-parse.h: Likewise.
40561         * lib/unistdio/u-snprintf.h: Likewise.
40562         * lib/unistdio/u-sprintf.h: Likewise.
40563         * lib/unistdio/u-vasprintf.h: Likewise.
40564         * lib/unistdio/u-vsnprintf.h: Likewise.
40565         * lib/unistdio/u-vsprintf.h: Likewise.
40566         * lib/unistdio/u16-asnprintf.c: Likewise.
40567         * lib/unistdio/u16-asprintf.c: Likewise.
40568         * lib/unistdio/u16-printf-parse.c: Likewise.
40569         * lib/unistdio/u16-snprintf.c: Likewise.
40570         * lib/unistdio/u16-sprintf.c: Likewise.
40571         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
40572         * lib/unistdio/u16-u16-asprintf.c: Likewise.
40573         * lib/unistdio/u16-u16-snprintf.c: Likewise.
40574         * lib/unistdio/u16-u16-sprintf.c: Likewise.
40575         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
40576         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
40577         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
40578         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
40579         * lib/unistdio/u16-vasnprintf.c: Likewise.
40580         * lib/unistdio/u16-vasprintf.c: Likewise.
40581         * lib/unistdio/u16-vsnprintf.c: Likewise.
40582         * lib/unistdio/u16-vsprintf.c: Likewise.
40583         * lib/unistdio/u32-asnprintf.c: Likewise.
40584         * lib/unistdio/u32-asprintf.c: Likewise.
40585         * lib/unistdio/u32-printf-parse.c: Likewise.
40586         * lib/unistdio/u32-snprintf.c: Likewise.
40587         * lib/unistdio/u32-sprintf.c: Likewise.
40588         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
40589         * lib/unistdio/u32-u32-asprintf.c: Likewise.
40590         * lib/unistdio/u32-u32-snprintf.c: Likewise.
40591         * lib/unistdio/u32-u32-sprintf.c: Likewise.
40592         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
40593         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
40594         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
40595         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
40596         * lib/unistdio/u32-vasnprintf.c: Likewise.
40597         * lib/unistdio/u32-vasprintf.c: Likewise.
40598         * lib/unistdio/u32-vsnprintf.c: Likewise.
40599         * lib/unistdio/u32-vsprintf.c: Likewise.
40600         * lib/unistdio/u8-asnprintf.c: Likewise.
40601         * lib/unistdio/u8-asprintf.c: Likewise.
40602         * lib/unistdio/u8-printf-parse.c: Likewise.
40603         * lib/unistdio/u8-snprintf.c: Likewise.
40604         * lib/unistdio/u8-sprintf.c: Likewise.
40605         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
40606         * lib/unistdio/u8-u8-asprintf.c: Likewise.
40607         * lib/unistdio/u8-u8-snprintf.c: Likewise.
40608         * lib/unistdio/u8-u8-sprintf.c: Likewise.
40609         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
40610         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
40611         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
40612         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
40613         * lib/unistdio/u8-vasnprintf.c: Likewise.
40614         * lib/unistdio/u8-vasprintf.c: Likewise.
40615         * lib/unistdio/u8-vsnprintf.c: Likewise.
40616         * lib/unistdio/u8-vsprintf.c: Likewise.
40617         * lib/unistdio/ulc-asnprintf.c: Likewise.
40618         * lib/unistdio/ulc-asprintf.c: Likewise.
40619         * lib/unistdio/ulc-printf-parse.c: Likewise.
40620         * lib/unistdio/ulc-snprintf.c: Likewise.
40621         * lib/unistdio/ulc-sprintf.c: Likewise.
40622         * lib/unistdio/ulc-vasnprintf.c: Likewise.
40623         * lib/unistdio/ulc-vasprintf.c: Likewise.
40624         * lib/unistdio/ulc-vsnprintf.c: Likewise.
40625         * lib/unistdio/ulc-vsprintf.c: Likewise.
40626         * lib/unistr.h: Likewise.
40627         * lib/unistr/u-cpy-alloc.h: Likewise.
40628         * lib/unistr/u-cpy.h: Likewise.
40629         * lib/unistr/u-endswith.h: Likewise.
40630         * lib/unistr/u-move.h: Likewise.
40631         * lib/unistr/u-set.h: Likewise.
40632         * lib/unistr/u-startswith.h: Likewise.
40633         * lib/unistr/u-stpcpy.h: Likewise.
40634         * lib/unistr/u-stpncpy.h: Likewise.
40635         * lib/unistr/u-strcat.h: Likewise.
40636         * lib/unistr/u-strcpy.h: Likewise.
40637         * lib/unistr/u-strcspn.h: Likewise.
40638         * lib/unistr/u-strdup.h: Likewise.
40639         * lib/unistr/u-strlen.h: Likewise.
40640         * lib/unistr/u-strncat.h: Likewise.
40641         * lib/unistr/u-strncpy.h: Likewise.
40642         * lib/unistr/u-strnlen.h: Likewise.
40643         * lib/unistr/u-strpbrk.h: Likewise.
40644         * lib/unistr/u-strspn.h: Likewise.
40645         * lib/unistr/u-strstr.h: Likewise.
40646         * lib/unistr/u-strtok.h: Likewise.
40647         * lib/unistr/u16-check.c: Likewise.
40648         * lib/unistr/u16-chr.c: Likewise.
40649         * lib/unistr/u16-cmp.c: Likewise.
40650         * lib/unistr/u16-cpy-alloc.c: Likewise.
40651         * lib/unistr/u16-cpy.c: Likewise.
40652         * lib/unistr/u16-endswith.c: Likewise.
40653         * lib/unistr/u16-mblen.c: Likewise.
40654         * lib/unistr/u16-mbsnlen.c: Likewise.
40655         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40656         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40657         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40658         * lib/unistr/u16-mbtouc.c: Likewise.
40659         * lib/unistr/u16-mbtoucr.c: Likewise.
40660         * lib/unistr/u16-move.c: Likewise.
40661         * lib/unistr/u16-next.c: Likewise.
40662         * lib/unistr/u16-prev.c: Likewise.
40663         * lib/unistr/u16-set.c: Likewise.
40664         * lib/unistr/u16-startswith.c: Likewise.
40665         * lib/unistr/u16-stpcpy.c: Likewise.
40666         * lib/unistr/u16-stpncpy.c: Likewise.
40667         * lib/unistr/u16-strcat.c: Likewise.
40668         * lib/unistr/u16-strchr.c: Likewise.
40669         * lib/unistr/u16-strcmp.c: Likewise.
40670         * lib/unistr/u16-strcpy.c: Likewise.
40671         * lib/unistr/u16-strcspn.c: Likewise.
40672         * lib/unistr/u16-strdup.c: Likewise.
40673         * lib/unistr/u16-strlen.c: Likewise.
40674         * lib/unistr/u16-strmblen.c: Likewise.
40675         * lib/unistr/u16-strmbtouc.c: Likewise.
40676         * lib/unistr/u16-strncat.c: Likewise.
40677         * lib/unistr/u16-strncmp.c: Likewise.
40678         * lib/unistr/u16-strncpy.c: Likewise.
40679         * lib/unistr/u16-strnlen.c: Likewise.
40680         * lib/unistr/u16-strpbrk.c: Likewise.
40681         * lib/unistr/u16-strrchr.c: Likewise.
40682         * lib/unistr/u16-strspn.c: Likewise.
40683         * lib/unistr/u16-strstr.c: Likewise.
40684         * lib/unistr/u16-strtok.c: Likewise.
40685         * lib/unistr/u16-to-u32.c: Likewise.
40686         * lib/unistr/u16-to-u8.c: Likewise.
40687         * lib/unistr/u16-uctomb-aux.c: Likewise.
40688         * lib/unistr/u16-uctomb.c: Likewise.
40689         * lib/unistr/u32-check.c: Likewise.
40690         * lib/unistr/u32-chr.c: Likewise.
40691         * lib/unistr/u32-cmp.c: Likewise.
40692         * lib/unistr/u32-cpy-alloc.c: Likewise.
40693         * lib/unistr/u32-cpy.c: Likewise.
40694         * lib/unistr/u32-endswith.c: Likewise.
40695         * lib/unistr/u32-mblen.c: Likewise.
40696         * lib/unistr/u32-mbsnlen.c: Likewise.
40697         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40698         * lib/unistr/u32-mbtouc.c: Likewise.
40699         * lib/unistr/u32-mbtoucr.c: Likewise.
40700         * lib/unistr/u32-move.c: Likewise.
40701         * lib/unistr/u32-next.c: Likewise.
40702         * lib/unistr/u32-prev.c: Likewise.
40703         * lib/unistr/u32-set.c: Likewise.
40704         * lib/unistr/u32-startswith.c: Likewise.
40705         * lib/unistr/u32-stpcpy.c: Likewise.
40706         * lib/unistr/u32-stpncpy.c: Likewise.
40707         * lib/unistr/u32-strcat.c: Likewise.
40708         * lib/unistr/u32-strchr.c: Likewise.
40709         * lib/unistr/u32-strcmp.c: Likewise.
40710         * lib/unistr/u32-strcpy.c: Likewise.
40711         * lib/unistr/u32-strcspn.c: Likewise.
40712         * lib/unistr/u32-strdup.c: Likewise.
40713         * lib/unistr/u32-strlen.c: Likewise.
40714         * lib/unistr/u32-strmblen.c: Likewise.
40715         * lib/unistr/u32-strmbtouc.c: Likewise.
40716         * lib/unistr/u32-strncat.c: Likewise.
40717         * lib/unistr/u32-strncmp.c: Likewise.
40718         * lib/unistr/u32-strncpy.c: Likewise.
40719         * lib/unistr/u32-strnlen.c: Likewise.
40720         * lib/unistr/u32-strpbrk.c: Likewise.
40721         * lib/unistr/u32-strrchr.c: Likewise.
40722         * lib/unistr/u32-strspn.c: Likewise.
40723         * lib/unistr/u32-strstr.c: Likewise.
40724         * lib/unistr/u32-strtok.c: Likewise.
40725         * lib/unistr/u32-to-u16.c: Likewise.
40726         * lib/unistr/u32-to-u8.c: Likewise.
40727         * lib/unistr/u32-uctomb.c: Likewise.
40728         * lib/unistr/u8-check.c: Likewise.
40729         * lib/unistr/u8-chr.c: Likewise.
40730         * lib/unistr/u8-cmp.c: Likewise.
40731         * lib/unistr/u8-cpy-alloc.c: Likewise.
40732         * lib/unistr/u8-cpy.c: Likewise.
40733         * lib/unistr/u8-endswith.c: Likewise.
40734         * lib/unistr/u8-mblen.c: Likewise.
40735         * lib/unistr/u8-mbsnlen.c: Likewise.
40736         * lib/unistr/u8-mbtouc-aux.c: Likewise.
40737         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40738         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40739         * lib/unistr/u8-mbtouc.c: Likewise.
40740         * lib/unistr/u8-mbtoucr.c: Likewise.
40741         * lib/unistr/u8-move.c: Likewise.
40742         * lib/unistr/u8-next.c: Likewise.
40743         * lib/unistr/u8-prev.c: Likewise.
40744         * lib/unistr/u8-set.c: Likewise.
40745         * lib/unistr/u8-startswith.c: Likewise.
40746         * lib/unistr/u8-stpcpy.c: Likewise.
40747         * lib/unistr/u8-stpncpy.c: Likewise.
40748         * lib/unistr/u8-strcat.c: Likewise.
40749         * lib/unistr/u8-strchr.c: Likewise.
40750         * lib/unistr/u8-strcmp.c: Likewise.
40751         * lib/unistr/u8-strcpy.c: Likewise.
40752         * lib/unistr/u8-strcspn.c: Likewise.
40753         * lib/unistr/u8-strdup.c: Likewise.
40754         * lib/unistr/u8-strlen.c: Likewise.
40755         * lib/unistr/u8-strmblen.c: Likewise.
40756         * lib/unistr/u8-strmbtouc.c: Likewise.
40757         * lib/unistr/u8-strncat.c: Likewise.
40758         * lib/unistr/u8-strncmp.c: Likewise.
40759         * lib/unistr/u8-strncpy.c: Likewise.
40760         * lib/unistr/u8-strnlen.c: Likewise.
40761         * lib/unistr/u8-strpbrk.c: Likewise.
40762         * lib/unistr/u8-strrchr.c: Likewise.
40763         * lib/unistr/u8-strspn.c: Likewise.
40764         * lib/unistr/u8-strstr.c: Likewise.
40765         * lib/unistr/u8-strtok.c: Likewise.
40766         * lib/unistr/u8-to-u16.c: Likewise.
40767         * lib/unistr/u8-to-u32.c: Likewise.
40768         * lib/unistr/u8-uctomb-aux.c: Likewise.
40769         * lib/unistr/u8-uctomb.c: Likewise.
40770         * lib/unitypes.h: Likewise.
40771         * lib/uniwidth.h: Likewise.
40772         * lib/uniwidth/cjk.h: Likewise.
40773         * lib/uniwidth/u16-strwidth.c: Likewise.
40774         * lib/uniwidth/u16-width.c: Likewise.
40775         * lib/uniwidth/u32-strwidth.c: Likewise.
40776         * lib/uniwidth/u32-width.c: Likewise.
40777         * lib/uniwidth/u8-strwidth.c: Likewise.
40778         * lib/uniwidth/u8-width.c: Likewise.
40779         * lib/uniwidth/width.c: Likewise.
40780
40781 2007-10-07  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
40784         The file is still under LGPL (see modules/inttypes).
40785
40786 2007-10-06  Bruno Haible  <bruno@clisp.org>
40787
40788         * modules/trunc (Dependencies): Add 'extensions'.
40789         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
40790         Reported by Ben Pfaff <blp@gnu.org>.
40791
40792 2007-10-06  Bruno Haible  <bruno@clisp.org>
40793
40794         * modules/freopen-tests: New file.
40795         * tests/test-freopen.c: New file.
40796
40797         * modules/fopen-tests: New file.
40798         * tests/test-fopen.c: New file.
40799
40800         * modules/fopen: New file.
40801         * lib/fopen.c: New file.
40802         * m4/fopen.m4: New file.
40803         * modules/freopen: New file.
40804         * lib/freopen.c: New file.
40805         * m4/freopen.m4: New file.
40806         * lib/stdio.in.h (fopen, freopen): New declarations.
40807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
40808         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40809         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
40810         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40811         * doc/functions/fopen.texi: Mention the 'fopen' module.
40812         * doc/functions/freopen.texi: Mention the 'freopen' module.
40813
40814 2007-10-06  Bruno Haible  <bruno@clisp.org>
40815
40816         * modules/open-tests: New file.
40817         * tests/test-open.c: New file.
40818
40819         * modules/open: New file.
40820         * lib/open.c: New file.
40821         * m4/open.m4: New file.
40822         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
40823         lib/open.c does.
40824         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
40825         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
40826         macros.
40827         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
40828         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
40829         REPLACE_OPEN.
40830         * doc/functions/open.texi: Mention the 'open' module.
40831
40832 2007-10-04  Bruno Haible  <bruno@clisp.org>
40833
40834         * modules/ceill-tests: New file.
40835         * tests/test-ceill.c: New file.
40836
40837         * modules/ceill: New file.
40838         * lib/ceill.c: Replace entire file.
40839         * m4/ceill.m4: New file.
40840         * lib/math.in.h (ceill): Replace declaration.
40841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
40842         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
40843         * doc/functions/ceill.texi: Mention the 'ceill' module.
40844         * modules/mathl (Files): Remove lib/ceill.c.
40845         (Depends-on): Add ceill.
40846
40847 2007-10-04  Bruno Haible  <bruno@clisp.org>
40848
40849         * modules/ceilf-tests: New file.
40850         * tests/test-ceilf.c: New file.
40851
40852         * modules/ceilf: New file.
40853         * lib/ceil.c: New file.
40854         * lib/ceilf.c: New file.
40855         * m4/ceilf.m4: New file.
40856         * lib/math.in.h (ceilf): New declaration.
40857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
40858         HAVE_DECL_CEILF.
40859         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
40860         HAVE_DECL_CEILF.
40861         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
40862
40863 2007-10-04  Bruno Haible  <bruno@clisp.org>
40864
40865         * modules/floorl-tests: New file.
40866         * tests/test-floorl.c: New file.
40867
40868         * modules/floorl: New file.
40869         * lib/floorl.c: Replace entire file.
40870         * m4/floorl.m4: New file.
40871         * lib/math.in.h (floorl): Replace declaration.
40872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
40873         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
40874         * doc/functions/floorl.texi: Mention the 'floorl' module.
40875         * modules/mathl (Files): Remove lib/floorl.c.
40876         (Depends-on): Add floorl.
40877
40878 2007-10-04  Bruno Haible  <bruno@clisp.org>
40879
40880         * modules/floorf-tests: New file.
40881         * tests/test-floorf.c: New file.
40882
40883         * modules/floorf: New file.
40884         * lib/floor.c: New file.
40885         * lib/floorf.c: New file.
40886         * m4/floorf.m4: New file.
40887         * lib/math.in.h (floorf): New declaration.
40888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
40889         HAVE_DECL_FLOORF.
40890         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
40891         HAVE_DECL_FLOORF.
40892         * doc/functions/floorf.texi: Mention the 'floorf' module.
40893
40894 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
40895             Bruno Haible  <bruno@clisp.org>
40896
40897         Advertise for the Git server instead of the CVS server.
40898         * doc/gnulib-intro.texi (Steady Development): Mention the Git
40899         repository instead of the CVS one.
40900         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
40901         about all VCS systems generically.
40902         * doc/gnulib.texi (Introduction): Capitalize `Git'.
40903
40904 2007-10-04  Bruno Haible  <bruno@clisp.org>
40905
40906         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
40907         means.
40908         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
40909
40910 2007-10-04  Bruno Haible  <bruno@clisp.org>
40911
40912         * modules/truncl-tests: New file.
40913         * tests/test-truncl.c: New file.
40914
40915         * modules/truncl: New file.
40916         * lib/truncl.c: New file.
40917         * m4/truncl.m4: New file.
40918         * lib/math.in.h (truncl): New declaration.
40919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
40920         HAVE_DECL_TRUNCL.
40921         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
40922         HAVE_DECL_TRUNCL.
40923         * doc/functions/truncl.texi: Mention the 'truncl' module.
40924
40925 2007-10-04  Bruno Haible  <bruno@clisp.org>
40926
40927         * modules/truncf-tests: New file.
40928         * tests/test-truncf.c: New file.
40929
40930         * modules/truncf: New file.
40931         * lib/trunc.c: Make paramerizable through USE_* macros.
40932         * lib/truncf.c: New file.
40933         * m4/truncf.m4: New file.
40934         * lib/math.in.h (truncf): New declaration.
40935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
40936         HAVE_DECL_TRUNCF.
40937         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
40938         HAVE_DECL_TRUNCF.
40939         * doc/functions/truncf.texi: Mention the 'truncf' module.
40940
40941 2007-10-03  Bruno Haible  <bruno@clisp.org>
40942
40943         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40944         augmentation also for tests modules.
40945         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
40946         * modules/atexit-tests (Makefile.am): Likewise.
40947         * modules/binary-io-tests (Makefile.am): Likewise.
40948         * modules/c-strcase-tests (Makefile.am): Likewise.
40949         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
40950         * modules/canonicalize-tests (Makefile.am): Likewise.
40951         * modules/closein-tests (Makefile.am): Likewise.
40952         * modules/fprintf-posix-tests (Makefile.am): Likewise.
40953         * modules/freadahead-tests (Makefile.am): Likewise.
40954         * modules/fseek-tests (Makefile.am): Likewise.
40955         * modules/fseeko-tests (Makefile.am): Likewise.
40956         * modules/ftell-tests (Makefile.am): Likewise.
40957         * modules/ftello-tests (Makefile.am): Likewise.
40958         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
40959         * modules/isnanl-tests (Makefile.am): Likewise.
40960         * modules/lseek-tests (Makefile.am): Likewise.
40961         * modules/mbscasecmp-tests (Makefile.am): Likewise.
40962         * modules/mbscasestr-tests (Makefile.am): Likewise.
40963         * modules/mbschr-tests (Makefile.am): Likewise.
40964         * modules/mbscspn-tests (Makefile.am): Likewise.
40965         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
40966         * modules/mbspbrk-tests (Makefile.am): Likewise.
40967         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
40968         * modules/mbsrchr-tests (Makefile.am): Likewise.
40969         * modules/mbsspn-tests (Makefile.am): Likewise.
40970         * modules/mbsstr-tests (Makefile.am): Likewise.
40971         * modules/printf-posix-tests (Makefile.am): Likewise.
40972         * modules/snprintf-posix-tests (Makefile.am): Likewise.
40973         * modules/sprintf-posix-tests (Makefile.am): Likewise.
40974         * modules/tsearch-tests (Makefile.am): Likewise.
40975         * modules/uniname/uniname-tests (Makefile.am): Likewise.
40976         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
40977         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
40978         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
40979         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
40980         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
40981         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
40982         * modules/vprintf-posix-tests (Makefile.am): Likewise.
40983         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
40984         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
40985         * modules/xstrtoimax-tests (Makefile.am): Likewise.
40986         * modules/xstrtol-tests (Makefile.am): Likewise.
40987         * modules/xstrtoumax-tests (Makefile.am): Likewise.
40988         * modules/yesno-tests (Makefile.am): Likewise.
40989
40990 2007-10-03  Bruno Haible  <bruno@clisp.org>
40991
40992         * modules/trunc-tests: New file.
40993         * tests/test-trunc.c: New file.
40994
40995         * modules/trunc: New file.
40996         * lib/trunc.c: New file.
40997         * m4/trunc.m4: New file.
40998         * lib/math.in.h (trunc): New declaration.
40999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41000         HAVE_DECL_TRUNC.
41001         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41002         HAVE_DECL_TRUNC.
41003         * doc/functions/trunc.texi: Mention the 'trunc' module.
41004
41005 2007-10-03  Bruno Haible  <bruno@clisp.org>
41006
41007         * tests/test-fpending.c: New file, mostly copied
41008         from coreutils/lib/t-fpending.c.
41009         * modules/fpending-tests: New file.
41010
41011 2007-10-03  Bruno Haible  <bruno@clisp.org>
41012
41013         Port the stdio extensions to QNX (untested).
41014         * lib/fseterr.c (fseterr): Add support for QNX.
41015         * lib/fbufmode.c (fbufmode): Likewise.
41016         * lib/freadable.c (freadable): Likewise.
41017         * lib/fwritable.c (fwritable): Likewise.
41018         * lib/freading.c (freading): Likewise.
41019         * lib/fwriting.c (fwriting): Likewise.
41020         * lib/freadahead.c (freadahed): Likewise.
41021         * lib/fpurge.c (fpurge): Likewise.
41022         * lib/fseeko.c (rpl_fseeko): Likewise.
41023
41024 2007-10-03  Bruno Haible  <bruno@clisp.org>
41025             Jim Meyering  <jim@meyering.net>
41026             Eric Blake  <ebb9@byu.net>
41027
41028         * doc/relocatable.texi: Use @command instead of @program.
41029
41030 2007-10-02  Jim Meyering  <jim@meyering.net>
41031
41032         Perform one more "_.h" -> ".in.h" substitution.
41033         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41034         instead of unistd_.h here, too.
41035
41036 2007-10-01  Bruno Haible  <bruno@clisp.org>
41037
41038         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41039         Needed for the alloca-opt module.
41040
41041 2007-09-30  Bruno Haible  <bruno@clisp.org>
41042
41043         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41044         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41045         alloca_.h.
41046         * lib/argz.in.h: Renamed from lib/argz_.h.
41047         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41048         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41049         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41050         byteswap_.h.
41051         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41052         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41053         dirent_.h.
41054         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41055         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41056         fcntl_.h.
41057         * lib/float.in.h: Renamed from lib/float_.h.
41058         * modules/float (Files, Makefile.am): Use float.in.h instead of
41059         float_.h.
41060         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41061         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41062         fnmatch_.h.
41063         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41064         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41065         getopt_.h.
41066         * lib/glob.in.h: Renamed from lib/glob_.h.
41067         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41068         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41069         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41070         iconv_.h.
41071         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41072         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41073         inttypes_.h.
41074         * lib/locale.in.h: Renamed from lib/locale_.h.
41075         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41076         locale_.h.
41077         * lib/math.in.h: Renamed from lib/math_.h.
41078         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41079         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41080         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41081         of netinet_in_.h. Add dependency.
41082         * lib/poll.in.h: Renamed from lib/poll_.h.
41083         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41084         * lib/search.in.h: Renamed from lib/search_.h.
41085         * modules/search (Files, Makefile.am): Use search.in.h instead of
41086         search_.h.
41087         * lib/signal.in.h: Renamed from lib/signal_.h.
41088         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41089         _signal.h.
41090         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41091         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41092         stdbool_.h.
41093         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41094         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41095         stdint_.h.
41096         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41097         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41098         stdio_.h.
41099         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41100         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41101         stdlib_.h.
41102         * lib/string.in.h: Renamed from lib/string_.h.
41103         * modules/string (Files, Makefile.am): Use string.in.h instead of
41104         string_.h.
41105         * doc/gnulib-tool.texi (Initial import): Update.
41106         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41107         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41108         of sys_select_.h. Add dependency.
41109         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41110         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41111         of sys_socket_.h.
41112         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41113         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41114         sys_stat_.h.
41115         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41116         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41117         sys_time_.h.
41118         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41119         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41120         sysexits_.h.
41121         * lib/time.in.h: Renamed from lib/time_.h.
41122         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41123         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41124         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41125         unistd_.h.
41126         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41127         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41128         wchar_.h.
41129         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41130         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41131         wctype_.h.
41132         * build-aux/bootstrap (slurp): Update.
41133         * lib/.cppi-disable: Update.
41134
41135 2007-09-30  Bruno Haible  <bruno@clisp.org>
41136
41137         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41138         Needed on BeOS.
41139
41140 2007-09-30  Bruno Haible  <bruno@clisp.org>
41141
41142         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41143
41144 2007-09-29  Bruno Haible  <bruno@clisp.org>
41145
41146         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41147
41148 2007-09-29  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41151         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41152         * build-aux/install-reloc: Compile also areadlink.c.
41153         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41154
41155 2007-09-29  Bruno Haible  <bruno@clisp.org>
41156
41157         * gnulib-tool (func_emit_initmacro_done): Indentation.
41158
41159 2007-09-29  Bruno Haible  <bruno@clisp.org>
41160
41161         * README: Add CVS checkout update instructions.
41162         Info from Bob Proulx <bob@proulx.com>.
41163
41164 2007-09-28  Eric Blake  <ebb9@byu.net>
41165
41166         Provide move-if-change.
41167         * build-aux/move-if-change: New file, based on best practice
41168         rather than any canonical upstream location.
41169
41170 2007-09-28  Jim Meyering  <jim@meyering.net>
41171
41172         Fix canonicalize loop-detection corner case.
41173         Do not attempt to stat the symlink values stored via seen_triple.
41174         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41175         on linux-2.6.18, (but not 2.6.22).
41176         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41177         triple_compare.  The former compares dev,ino,filename, while the latter
41178         would actually stat dirname(filename) when dev and ino were equal.
41179         * lib/hash-triple.c: Install <string.h>.
41180         (STREQ): Define.
41181         (triple_compare_ino_str): New function.
41182         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41183
41184 2007-09-28  Eric Blake  <ebb9@byu.net>
41185
41186         Enforce that AC_REPLACE_FUNCS files exist.
41187         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41188         override check for typos.
41189
41190         Fix test-closein on Solaris 10.
41191         * tests/test-closein.c (main): Don't assume stdin can be inherited
41192         closed on all systems.
41193         * tests/test-closein.sh: Likewise.
41194         Reported by Piotr Tarnowski.
41195
41196 2007-09-28  Jim Meyering  <jim@meyering.net>
41197
41198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41199
41200 2007-09-27  Jim Meyering  <jim@meyering.net>
41201
41202         canonicalize: Avoid a false-positive cycle failure.
41203         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41204         Sort.  Remove cycle-check.
41205         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41206         not cycle-check.h.
41207         (seen_triple): New function.
41208         (canonicalize_filename_mode): Use it instead of cycle-check.
41209         * tests/test-canonicalize.c: Add a test for this bug.
41210         * tests/test-canonicalize.sh: Set up and run the test.
41211
41212         New module, file-set, from coreutils.
41213         * modules/file-set: Define it.
41214         * lib/file-set.c, lib/file-set.h: Implement.
41215
41216         New module, hash-triple, from coreutils.
41217         * modules/hash-triple: Define it.
41218         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41219
41220 2007-09-25  Eric Blake  <ebb9@byu.net>
41221
41222         Fix strerror on Interix.
41223         * lib/string_.h (strerror): Declare replacement.
41224         * doc/functions/strerror.texi (strerror): Document the Interix
41225         shortcoming.
41226         * modules/string (Makefile.am): Support new hooks.
41227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41228         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41229         gl_FUNC_STRERROR_SEPARATE.
41230         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41231         * lib/strerror.c (rpl_strerror): Provide replacement.
41232         * modules/strerror (Depends-on): Add string.
41233         (configure.ac): Detect use of module.
41234         * tests/test-strerror.c: New file.
41235         * modules/strerror-tests: New test module.
41236         * modules/argp (Depends-on): Add strerror.
41237         * modules/error (Depends-on): Likewise.
41238         Reported by Martin Koeppe.
41239
41240 2007-09-24  Bruno Haible  <bruno@clisp.org>
41241
41242         * README: Update git instructions.
41243
41244 2007-09-24  Eric Blake  <ebb9@byu.net>
41245
41246         Revert fpending breakage from 2007-09-08.
41247         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41248         __fpending.c.
41249
41250 2007-09-24  Jim Meyering  <jim@meyering.net>
41251
41252         filenamecat.c: Add a test.
41253         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41254         showing how the function works when DIR is the empty string.
41255
41256 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41257
41258         * tests/test-canonicalize.sh: Turn on executable bit.
41259
41260 2007-09-19  Eric Blake  <ebb9@byu.net>
41261
41262         * README: Update CVS instructions.
41263
41264 2007-09-18  Bruno Haible  <bruno@clisp.org>
41265
41266         * modules/areadlink: New file.
41267         * lib/areadlink.h (areadlink): New declaration.
41268         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41269
41270 2007-09-17  Jim Meyering  <jim@meyering.net>
41271
41272         * lib/savewd.c (ESTALE) [!defined]: Define.
41273         Reported to be required on Interix by Martin Koeppe.
41274
41275 2007-09-17  Bruno Haible  <bruno@clisp.org>
41276
41277         * gnulib-tool (func_version): Use $version.
41278
41279 2007-09-16  Bruno Haible  <bruno@clisp.org>
41280
41281         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41282         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41283         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41284         Reported by Greg Schafer <gschafer@zip.com.au>.
41285
41286 2007-09-15  Bruno Haible  <bruno@clisp.org>
41287
41288         * gnulib-tool (sed): Try a little harder to make bash understand the
41289         alias.
41290         Reported by Bruce Korb <bruce.korb@gmail.com>.
41291
41292 2007-09-13  Eric Blake  <ebb9@byu.net>
41293
41294         * ChangeLog: Remove conflict markers.
41295
41296 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41297
41298         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41299         Reported by Bruno Haible <bruno@clisp.org>.
41300
41301 2007-09-12  Bruno Haible  <bruno@clisp.org>
41302
41303         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41304         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41305         is not defined.
41306
41307 2007-09-12  Eric Blake  <ebb9@byu.net>
41308
41309         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41310         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41311         Autoconf definition.
41312         * modules/euidaccess (Depends-on): Add extensions, for
41313         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41314         * modules/fnmatch (Depends-on): Likewise.
41315         * modules/getaddrinfo (Depends-on): Likewise.
41316         * modules/getdelim (Depends-on): Likewise.
41317         * modules/getline (Depends-on): Likewise.
41318         * modules/getsubopt (Depends-on): Likewise.
41319         * modules/gettext (Depends-on): Likewise.
41320         * modules/group-member (Depends-on): Likewise.
41321         * modules/mbchar (Depends-on): Likewise.
41322         * modules/memmem (Depends-on): Likewise.
41323         * modules/mempcpy (Depends-on): Likewise.
41324         * modules/memrchr (Depends-on): Likewise.
41325         * modules/pagealign_alloc (Depends-on): Likewise.
41326         * modules/readutmp (Depends-on): Likewise.
41327         * modules/stpcpy (Depends-on): Likewise.
41328         * modules/stpncpy (Depends-on): Likewise.
41329         * modules/strchrnul (Depends-on): Likewise.
41330         * modules/strndup (Depends-on): Likewise.
41331         * modules/strsep (Depends-on): Likewise.
41332         * modules/strverscmp (Depends-on): Likewise.
41333         * modules/vasprintf (Depends-on): Likewise.
41334         * modules/wcwidth (Depends-on): Likewise.
41335         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41336         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41337         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41338         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41339         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41340         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41341         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
41342         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41343         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
41344         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
41345         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41346         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41347         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41348         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41349         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
41350         * m4/readutmp.m4 (gl_READUTMP): Likewise.
41351         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41352         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41353         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41354         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41356         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41357         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41358         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
41359         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
41360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41361         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
41362         so that lock.m4 can be used in gettext without extensions module.
41363
41364 2007-09-11  Bruno Haible  <bruno@clisp.org>
41365
41366         * m4/isc-posix.m4: Remove file.
41367         Suggested by Eric Blake.
41368
41369 2007-09-11  Eric Blake  <ebb9@byu.net>
41370
41371         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41372
41373 2007-09-10  Bruno Haible  <bruno@clisp.org>
41374
41375         * posix-modules: Fix typo in error message.
41376         Reported by Matt <mkraai@beckman.com>.
41377
41378 2007-09-09  Bruno Haible  <bruno@clisp.org>
41379
41380         * doc/functions/getdelim.texi: Update list of platforms lacking the
41381         function.
41382         * doc/functions/getline.texi: Likewise.
41383
41384 2007-09-09  Jim Meyering  <jim@meyering.net>
41385
41386         * lib/hash.c (hash_initialize): Detect calloc failure.
41387         Reported by Bruno Haible.
41388
41389 2007-09-09  Bruno Haible  <bruno@clisp.org>
41390
41391         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41392         malloc or realloc fails.
41393
41394 2007-09-09  Bruno Haible  <bruno@clisp.org>
41395
41396         * modules/getcwd (Depends-on): Add malloc-posix.
41397         * modules/glob (Depends-on): Likewise.
41398         * modules/putenv (Depends-on): Likewise.
41399         * modules/strdup (Depends-on): Likewise.
41400         * modules/getdelim (Depends-on): Add realloc-posix.
41401         * modules/read-file (Depends-on): Likewise.
41402
41403 2007-09-09  Bruno Haible  <bruno@clisp.org>
41404
41405         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41406         (gl_FUNC_MALLOC_POSIX): Require it.
41407         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41408         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41409         * modules/realloc (Files): Add m4/malloc.m4.
41410         * modules/calloc (Files): Likewise.
41411
41412 2007-09-09  Bruno Haible  <bruno@clisp.org>
41413
41414         * modules/malloc-posix: New file.
41415         * modules/malloc (Depends-on): Add malloc-posix.
41416         * lib/malloc.c: Include errno.h.
41417         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
41418         and a POSIX-compatible malloc into a single function. Set ENOMEM
41419         when returning NULL.
41420         * m4/malloc.m4: New file.
41421         * doc/functions/malloc.texi: Mention the malloc-posix module.
41422         * lib/stdlib_.h (malloc): New declaration.
41423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41424         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
41425         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
41426         and HAVE_MALLOC_POSIX.
41427
41428 2007-09-09  Bruno Haible  <bruno@clisp.org>
41429
41430         * modules/realloc-posix: New file.
41431         * modules/realloc (Depends-on): Add realloc-posix.
41432         * lib/realloc.c: Include errno.h.
41433         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
41434         and a POSIX-compatible realloc into a single function. Set ENOMEM
41435         when returning NULL.
41436         * m4/realloc.m4: New file.
41437         * doc/functions/realloc.texi: Mention the realloc-posix module.
41438         * lib/stdlib_.h (realloc): New declaration.
41439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41440         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
41441         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
41442         and HAVE_REALLOC_POSIX.
41443
41444 2007-09-09  Bruno Haible  <bruno@clisp.org>
41445
41446         * modules/calloc-posix: New file.
41447         * modules/calloc (Depends-on): Add calloc-posix.
41448         * lib/calloc.c: Include errno.h.
41449         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
41450         and a POSIX-compatible calloc into a single function. Set ENOMEM
41451         when returning NULL.
41452         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
41453         * doc/functions/calloc.texi: Mention the calloc-posix module.
41454         * lib/stdlib_.h (calloc): New declaration.
41455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41456         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
41457         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
41458         and HAVE_CALLOC_POSIX.
41459
41460 2007-09-09  Bruno Haible  <bruno@clisp.org>
41461
41462         Allow for modules to show an arbitrary notice.
41463         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
41464         * gnulib-tool: New option --extract-notice.
41465         (func_usage): Document it.
41466         (sed_extract_prog): Update.
41467         (func_get_notice): New function.
41468         (func_modules_notice): New function.
41469         (func_import, func_create_testdir): Invoke it.
41470         Suggested by Jim Meyering.
41471
41472 2007-09-09  Bruno Haible  <bruno@clisp.org>
41473
41474         * gnulib-tool: New options --verbose, --quiet.
41475         (func_usage): Document them.
41476         (verbose): New variable.
41477         (func_execute_command): New function.
41478         (func_import): Don't show the module list and the file list if
41479         $verbose < 0.
41480         (func_create_testdir): Likewise. Use func_execute_command.
41481         (func_create_megatestdir): Use func_execute_command.
41482
41483 2007-09-08  Bruno Haible  <bruno@clisp.org>
41484
41485         * gnulib-tool (func_import): Prefer rsync over wget when available,
41486         for fetching the PO files.
41487
41488 2007-09-08  Bruno Haible  <bruno@clisp.org>
41489
41490         * posix-modules: New file. Portions copied from gnulib-tool.
41491         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
41492
41493 2007-09-08  Jim Meyering  <jim@meyering.net>
41494
41495         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
41496         * lib/fpending.h: Rename from __fpending.h.
41497         * lib/fpending.c: Rename from __fpending.c.
41498         Include "fpending.h", not "__fpending.h".
41499         * lib/__fpending.h, lib/__fpending.c: Remove files.
41500         * modules/fpending (Files): Reflect new file names.
41501         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
41502
41503 2007-09-08  Bruno Haible  <bruno@clisp.org>
41504
41505         * m4/inttypes-h.m4: Remove stub file.
41506
41507 2007-09-07  Simon Josefsson  <simon@josefsson.org>
41508
41509         * doc/headers/stdint.texi: Discuss #include_next issue.
41510
41511 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41512
41513         * build-aux/bootstrap: Remove obsolete comment about wget --help.
41514
41515 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41516
41517         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
41518         in variable name.
41519
41520 2007-09-03  Jim Meyering  <jim@meyering.net>
41521
41522         New module: git-version-gen.
41523         * modules/git-version-gen: New file.
41524
41525         Import changes from coreutils for bootstrap script.
41526
41527         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
41528
41529         bootstrap: uses rsync to download the .po files
41530         * build-aux/bootstrap (po_download_command_format): New global.
41531         (download_po_files): Use rsync.
41532         (update_po_files): Don't remove .po files after download,
41533         so future rsync runs can take advantage of the copies.
41534
41535         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
41536
41537         Solve the unnecessary-.po-file-regeneration problem once and for all.
41538         * build-aux/bootstrap (download_po_files): New function, renamed from
41539         get_translations.  Now, downloads, but doesn't update LINGUAS.
41540         (update_po_files): New function.
41541
41542         bootstrap: Ignore more.
41543         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
41544         uniwidth to e.g., lib/.gitignore.
41545         (slurp): Handle the sys_stat_.h -> sys mapping, too.
41546
41547         * build-aux/bootstrap: New setting: vc_ignore.
41548         (insert_sorted_if_absent): Create $file if absent.
41549         Adapt to new, possibly empty, list: $vc_ignore.
41550
41551         bootstrap: generate more ignorable names
41552         * build-aux/bootstrap (slurp): When generating ignorable names,
41553         also map .sin to .sed, .gperf to .c, and .y to .c.
41554
41555 2007-09-03  Jim Meyering  <jim@meyering.net>
41556
41557         * build-aux/git-version-gen: New file, from coreutils.  For details, see
41558         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
41559
41560 2007-09-02  Bruno Haible  <bruno@clisp.org>
41561
41562         Fix mis-recognition of 'mcs' on QNX 6.
41563         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
41564         output contains the string "Mono".
41565         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
41566         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
41567
41568 2007-09-01  Bruno Haible  <bruno@clisp.org>
41569
41570         Fix collision between uniwidth/* and linebreak modules.
41571         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
41572         u32_width): Remove declarations.
41573         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
41574         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
41575         streq3, streq2, streq1, streq0): Remove functions.
41576         (STREQ): Remove macro.
41577         (is_cjk_encoding): Remove function.
41578         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
41579         (uc_width, u8_width, u16_width, u32_width): Remove functions.
41580         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
41581         * NEWS: Document the change.
41582
41583 2007-09-01  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/streq.h: Add double-inclusion guard.
41586
41587 2007-09-01  Karl Berry  <karl@gnu.org>
41588
41589         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
41590
41591 2007-08-28  Jim Meyering  <jim@meyering.net>
41592
41593         Rename mreadlink_with_size to areadlink_with_size.
41594         * NEWS: Document the change.
41595         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
41596         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
41597         * lib/mreadlink.h: Rename this to...
41598         * lib/areadlink.h: ...this.
41599         * modules/mreadlink-with-size: Rename this to...
41600         * modules/areadlink-with-size: ...this.
41601         * lib/canonicalize.c: Reflect the renaming.
41602         * modules/canonicalize: Likewise.
41603
41604 2007-08-26  Bruno Haible  <bruno@clisp.org>
41605
41606         * gnulib-tool (func_import): When deciding which files to remove,
41607         consider also dangling symbolic links.
41608         Reported by Eric Blake.
41609
41610 2007-08-26  Bruno Haible  <bruno@clisp.org>
41611
41612         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
41613
41614 2007-08-23  Simon Josefsson  <simon@josefsson.org>
41615
41616         * lib/readline.c: Don't include getline.h, the prototype is now
41617         found in stdio.h.
41618
41619 2007-08-23  Jim Meyering  <jim@meyering.net>
41620
41621         Getdelim touchup.
41622         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
41623         around the funlockfile call, since funlockfile never sets errno.
41624         Don't set errno upon failed realloc.
41625
41626 2007-08-22  Eric Blake  <ebb9@byu.net>
41627
41628         Getline touchups.
41629         * lib/getdelim.c (getdelim): Revert regression that required *n to
41630         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
41631         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
41632         getdelim, rather than whether implementation is missing.
41633         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
41634         * lib/stdio_.h (getline): Also declare if replacement is
41635         required.
41636         * doc/functions/getdelim.texi: New file.
41637         * doc/functions/getline.texi: Likewise.
41638         * doc/gnulib.texi (Function Substitutes): Add new files.
41639         Reported by Bruno Haible.
41640
41641 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
41642
41643         * users.txt: Add Guile.
41644
41645 2007-08-22  Eric Blake  <ebb9@byu.net>
41646
41647         * tests/test-getdelim.c (main): Use remove, not unlink.
41648         * tests/test-getline.c (main): Likewise.
41649
41650         Move getline and getdelim into stdio.h, per POSIX 200x.
41651         * modules/getline (Files): Remove getline.h.
41652         (Depends-on): Add stdio.
41653         (configure.ac): Add module indicator.
41654         * modules/getdelim (Files): Remove getdelim.h.
41655         (Depends-on): Add stdio.
41656         (configure.ac): Add module indicator.
41657         * modules/stdio (Makefile.am): Work with new indicators.
41658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41659         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
41660         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41661         * lib/getdelim.h: Delete.
41662         * lib/getline.h: Delete.
41663         * lib/stdio_.h (getdelim, getline): Declare.
41664         * modules/getdelim-tests: New module.
41665         * modules/getline-tests: Likewise.
41666         * tests/test-getdelim.c: New file.
41667         * tests/test-getline.c: Likewise.
41668         * NEWS: Document the change.
41669         * lib/getline.c: Update choice of header.
41670         * lib/csharpcomp.c: Likewise.
41671         * lib/getpass.c: Likewise.
41672         * lib/javacomp.c: Likewise.
41673         * lib/javaversion.c: Likewise.
41674         * lib/yesno.c: Likewise.
41675         * lib/getdelim.c: Likewise.
41676         (getdelim): Set errno on failure, and avoid memory leak.
41677
41678 2007-08-19  Bruno Haible  <bruno@clisp.org>
41679
41680         * modules/closein (Depends-on): Add freadahead.
41681         * lib/closein.c: Include freadahead.h.
41682         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
41683         is zero.
41684
41685 2007-08-19  Bruno Haible  <bruno@clisp.org>
41686
41687         * modules/freadahead-tests: New file.
41688         * tests/test-freadahead.sh: New file.
41689         * tests/test-freadahead.c: New file.
41690
41691         * modules/freadahead: New file.
41692         * lib/freadahead.h: New file.
41693         * lib/freadahead.c: New file.
41694         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
41695         fbufmode, fpurge, freadable, fwritable.
41696
41697 2007-08-19  Eric Blake  <ebb9@byu.net>
41698
41699         Test yesno in combination with closein.
41700         * lib/yesno.c (yesno): Document use of stdin.
41701         * modules/yesno-tests (Files): New module.
41702         * tests/test-yesno.c (main): New file.
41703         * tests/test-yesno.sh: Likewise.
41704
41705 2007-08-19  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
41708         * lib/fseeko.c (rpl_fseeko): Likewise.
41709         * lib/fseterr.c (fseterr): Likewise.
41710
41711 2007-08-19  Bruno Haible  <bruno@clisp.org>
41712
41713         * tests/test-lseek.c (main): Disable a test for BeOS.
41714         * doc/functions/lseek.texi: Document the BeOS bug.
41715
41716 2007-08-19  Bruno Haible  <bruno@clisp.org>
41717             Eric Blake  <ebb9@byu.net>
41718
41719         * lib/lseek.c: Include <sys/stat.h>.
41720         (rpl_lseek): Add workaround code also for Unix platforms.
41721         Needed for BeOS.
41722         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
41723         * doc/functions/lseek.texi: Document BeOS definiency.
41724
41725 2007-08-18  Bruno Haible  <bruno@clisp.org>
41726
41727         * modules/fstrcmp-tests: New file.
41728         * tests/test-fstrcmp.c: New file.
41729
41730 2007-08-18  Bruno Haible  <bruno@clisp.org>
41731
41732         * modules/fstrcmp: New file, from GNU gettext with modifications.
41733         * lib/fstrcmp.h: New file, from GNU gettext.
41734         * lib/fstrcmp.c: New file, from GNU gettext.
41735         * MODULES.html.sh (String handling): Add fstrcmp.
41736
41737 2007-08-18  Bruno Haible  <bruno@clisp.org>
41738
41739         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
41740         'bool'.
41741         (diag, compareseq): Remove const from the ctxt argument.
41742         (USE_HEURISTIC): Undefine at the end.
41743
41744 2007-08-18  Jim Meyering  <jim@meyering.net>
41745
41746         New file: lib/idcache.h
41747         * NEWS: Mention the addition.
41748         * modules/idcache (Files): Add lib/idcache.h
41749         * lib/idcache.c: Include "idcache.h".
41750         Don't include <sys/types.h>.
41751         Add a FIXME comment.
41752         Move file-scoped "static" declarations to the top.
41753         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
41754
41755 2007-08-17  Bruno Haible  <bruno@clisp.org>
41756         and Paul Eggert  <eggert@cs.ucla.edu>
41757
41758         * MODULES.html.sh: Add diffseq.
41759         * modules/diffseq: New file.
41760         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
41761         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
41762
41763 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41764
41765         Import changes from coreutils for bootstrap script.
41766
41767         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
41768
41769         * build-aux/bootstrap (slurp): Work even in environments where
41770         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
41771         current code does not slurp files whose names start with ".", and
41772         this looks like it might be a troublesome area.
41773
41774         2007-07-11  Jim Meyering  <jim@meyering.net>
41775
41776         If there's a GPL vN copyright comment, require that N == 3.
41777
41778         2007-07-08  Jim Meyering  <jim@meyering.net>
41779
41780         Run the coreutils-specific code only if tests/Makefile.am.in exists.
41781         * build-aux/bootstrap (mam_template): Move definition out of loop.
41782
41783         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
41784
41785         * build-aux/bootstrap (symlink_to_dir): Rename function from
41786         symlink_to_gnulib.  Add a directory parameter.  Update all
41787         callers.
41788         (cp_mark_as_generated): Also check for -- and link to -- files in
41789         gl/.
41790
41791         2007-07-08  Jim Meyering  <jim@meyering.net>
41792
41793         Adapt to deeper hierarchy in gnulib.
41794         * build-aux/bootstrap (symlink_to_dir): If the destination
41795         directory doesn't exist, create it. This is required at least for
41796         "lib/uniwidth/cjk.h".
41797
41798         2007-05-15  Jim Meyering  <jim@meyering.net>
41799
41800         * build-aux/bootstrap: Now that generated Makefile.am files
41801         are no longer under version control, they must be created at
41802         bootstrap time.
41803
41804 2007-08-14  Ben Pfaff  <blp@gnu.org>
41805
41806         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
41807
41808 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41809
41810         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
41811         given the changes below.
41812         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
41813         even on hosts that have padding bits beyond the supported 64.
41814
41815 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41816
41817         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
41818         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
41819         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
41820         depends on it.
41821         (xstrtol_error): Remove.
41822         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
41823         but with a different signature.
41824         (ATTRIBUTE_NORETURN, __attribute__): New macros.
41825         * lib/xstrtol-error.c: Include exitfail.h.
41826         (xstrtol_fatal): New function, with a different signature from the
41827         old xstrtol_error, so that the caller need not worry about passing
41828         in an exit status, or about storage management of the option argument.
41829         (xstrtol_error): Now a static function.  Redo signature to
41830         implement xstrtol_fatal.  Output the correct number of hyphens in
41831         front of the option so that the caller need not worry about
41832         storage management.
41833         (N_): New macro.
41834         (_): Remove; not used now.
41835         * modules/xstrtol: Depend on getopt.
41836         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
41837         of old STRTOL_FATAL_ERROR macro.
41838         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
41839         of test program.
41840         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
41841         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
41842
41843 2007-08-08  Eric Blake  <ebb9@byu.net>
41844
41845         * lib/xstrtol-error.c: Add missing include.
41846
41847         Move xstrtol messages into gnulib domain, when --pobase is used.
41848         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
41849         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
41850         * modules/xstrtol (Files): Distribute new file.
41851         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
41852         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
41853         * tests/test-xstrtol.c: ...into new file.
41854         * tests/test-xstrtoul.c: Also test xstrtoul.
41855         * tests/test-xstrtoimax.c: Also test xstrtoimax.
41856         * tests/test-xstrtoumax.c: Also test xstrtoumax.
41857         * tests/test-xstrtol.sh: Drive the tests.
41858         * tests/test-xstrtoimax.sh: Likewise.
41859         * tests/test-xstrtoumax.sh: Likewise.
41860         * modules/xstrtol-tests: New module.
41861         * modules/xstrtoimax-tests: Likewise.
41862         * modules/xstrtoumax-tests: Likewise.
41863
41864 2007-08-08  Jim Meyering  <jim@meyering.net>
41865
41866         New function: mfile_name_concat.
41867         * lib/filenamecat.c (mfile_name_concat): New function, just like
41868         file_name_concat, but return NULL upon failure rather than exiting
41869         with a diagnostic.
41870         * lib/filenamecat.h: Declare it.
41871
41872 2007-08-07  Bruno Haible  <bruno@clisp.org>
41873
41874         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
41875         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
41876         warning from gcc.
41877         Reported by Eric Blake.
41878
41879 2007-08-07  Simon Josefsson  <simon@josefsson.org>
41880
41881         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
41882         * modules/crypto/arcfour (License): Likewise.
41883         * modules/crypto/des-tests (License): Likewise.
41884         * modules/crypto/gc-arctwo-tests (License): Likewise.
41885         * modules/crypto/gc-des-tests (License): Likewise.
41886         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
41887         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
41888         * modules/crypto/gc-md2-tests (License): Likewise.
41889         * modules/crypto/gc-md4-tests (License): Likewise.
41890         * modules/crypto/gc-md5-tests (License): Likewise.
41891         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
41892         * modules/crypto/gc-rijndael-tests (License): Likewise.
41893         * modules/crypto/gc-sha1-tests (License): Likewise.
41894         * modules/crypto/gc-tests (License): Likewise.
41895         * modules/crypto/hmac-md5 (License): Likewise.
41896         * modules/crypto/hmac-sha1 (License): Likewise.
41897         * modules/crypto/md2-tests (License): Likewise.
41898         * modules/crypto/md4-tests (License): Likewise.
41899         * modules/crypto/md5 (License): Likewise.
41900         * modules/crypto/rijndael (License): Likewise.
41901         * modules/crypto/sha1 (License): Likewise.
41902         * modules/memxor (License): Likewise.
41903
41904 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41905         and Bruno Haible  <bruno@clisp.org>
41906
41907         * NEWS: Describe interface changes to human, xstrtol.
41908         * lib/human.h: Include <xstrtol.h>.
41909         (human_options): Return enum strtol_error, not int.  Remove
41910         bool arg; take int * instead.
41911         * lib/human.c: Don't include "gettext.h".
41912         (_): Remove; no longer used.
41913         Don't include <xstrtol.h>, since human.h does it.
41914         (human_options): Adjust to abovementioned interface changes.
41915         Do not report error to stderr; that's now the caller's
41916         responsibility.
41917         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
41918         interface change.
41919         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
41920         Str, Argument_type_string.  All uses changed.  Put " argument"
41921         in diagnostics to make them clearer.  Change wording of suffix
41922         message for clarity.
41923         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
41924         Argument_type_string.
41925         (STRTOL_FATAL_WARN): Remove; no longer used.
41926         * modules/human (Depends-on): Remove gettext-h.
41927
41928 2007-08-06  Simon Josefsson  <simon@josefsson.org>
41929
41930         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
41931
41932 2007-07-31  Bruno Haible  <bruno@clisp.org>
41933
41934         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
41935         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
41936         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
41937
41938 2007-07-31  Bruno Haible  <bruno@clisp.org>
41939
41940         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
41941         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
41942
41943 2007-07-30  Bruno Haible  <bruno@clisp.org>
41944
41945         * modules/base64 (License): Use the synonymous term "LGPLv2+".
41946         * modules/c-ctype (License): Likewise.
41947         * modules/c-strcase (License): Likewise.
41948         * modules/check-version (License): Likewise.
41949         * modules/iconv (License): Likewise.
41950         * modules/iconv_open (License): Likewise.
41951         * modules/read-file (License): Likewise.
41952         * modules/striconv (License): Likewise.
41953         * modules/strverscmp (License): Likewise.
41954         * modules/vasprintf (License): Likewise.
41955         * modules/crypto/des (License): Likewise.
41956         * modules/crypto/gc (License): Likewise.
41957         * modules/crypto/gc-arcfour (License): Likewise.
41958         * modules/crypto/gc-arctwo (License): Likewise.
41959         * modules/crypto/gc-des (License): Likewise.
41960         * modules/crypto/gc-hmac-md5 (License): Likewise.
41961         * modules/crypto/gc-hmac-sha1 (License): Likewise.
41962         * modules/crypto/gc-md2 (License): Likewise.
41963         * modules/crypto/gc-md4 (License): Likewise.
41964         * modules/crypto/gc-md5 (License): Likewise.
41965         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
41966         * modules/crypto/gc-random (License): Likewise.
41967         * modules/crypto/gc-rijndael (License): Likewise.
41968         * modules/crypto/gc-sha1 (License): Likewise.
41969         * modules/crypto/md2 (License): Likewise.
41970         * modules/crypto/md4 (License): Likewise.
41971
41972 2007-07-30  Jim Meyering  <jim@meyering.net>
41973
41974         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
41975         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
41976         it has valid stat data.  This bug would cause du not to count the
41977         sizes of inaccessible directories.
41978         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
41979         in <http://bugzilla.redhat.com/250077>.
41980
41981 2007-07-25  Peter O'Gorman  <peter@pogma.com>
41982             Bruno Haible  <bruno@clisp.org>
41983
41984         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
41985         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
41986         #include_next, gives a diagnostic about it, but reports no error in
41987         the exit code.
41988         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41989
41990 2007-07-24  Ben Pfaff  <blp@gnu.org>
41991
41992         Improve name: "count-one-bits" is better than "popcount".
41993         * MODULES.html.sh: Update name.
41994         * lib/popcount.h: Renamed lib/count-one-bits.h.
41995         (popcount): Renamed count_one_bits.
41996         (popcountl): Renamed count_one_bits_l.
41997         (popcountll): Renamed count_one_bits_ll.
41998         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
41999         * modules/popcount: Renamed module/count-one-bits.
42000         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42001         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42002
42003 2007-07-23  Ben Pfaff  <blp@gnu.org>
42004
42005         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42006         better code generation, and add U to large constants to avoid
42007         warnings, in non-GCC case.
42008         Suggested by Bruno Haible.
42009
42010 2007-07-23  Ben Pfaff  <blp@gnu.org>
42011
42012         * lib/popcount.h: Use verify_true instead of if...abort.
42013         * modules/popcount: Depend on verify module.
42014         Suggested by Jim Meyering.
42015
42016 2007-07-23  Bruno Haible  <bruno@clisp.org>
42017
42018         * gnulib-tool (func_import): Create a .cvsignore file also when the
42019         directory is not yet in CVS but the toplevel directory is. When
42020         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42021         Reported by Karl Berry.
42022
42023 2007-07-22  Ben Pfaff  <blp@gnu.org>
42024
42025         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42026         case.
42027         Suggested by Eric Blake.
42028
42029 2007-07-22  Ben Pfaff  <blp@gnu.org>
42030
42031         New module: popcount.
42032         * MODULES.html.sh: Add popcount.
42033         * modules/popcount: New file.
42034         * modules/popcount-tests: New file.
42035         * tests/test-popcount.c: New file.
42036         * lib/popcount.h: New file.
42037         * m4/popcount.m4: New file.
42038
42039 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42040
42041         * build-aux/announce-gen: Update to GPLv3.
42042
42043         * build-aux/config.guess: Update from config.
42044
42045 2007-07-21  Bruno Haible  <bruno@clisp.org>
42046
42047         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42048         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42049
42050 2007-07-20  Jim Meyering  <jim@meyering.net>
42051
42052         * check-module: Diagnose a self-dependency.
42053
42054 2007-07-19  Bruno Haible  <bruno@clisp.org>
42055
42056         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42057         empty.
42058         Reported by Eric Blake.
42059
42060 2007-07-18  Bruno Haible  <bruno@clisp.org>
42061
42062         * gnulib-tool: New options --po-base, --po-domain.
42063         (func_usage): Document them.
42064         (pobase, po_domain): New variables.
42065         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42066         DEFAULT_TEXT_DOMAIN.
42067         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42068         (func_import): Consider pobase and po_domain. Create a po/ directory.
42069         (func_create_testdir): Set pobase and po_domain to empty.
42070         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42071         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42072
42073 2007-07-18  Bruno Haible  <bruno@clisp.org>
42074
42075         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42076         EXTRA_DIST augmentation for files in build-aux/.
42077
42078 2007-07-16  Bruno Haible  <bruno@clisp.org>
42079
42080         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42081         * modules/getdelim (License): Likewise.
42082
42083 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42084
42085         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42086         * modules/d-type (License): Likewise.
42087         * modules/extensions (License): Likewise.
42088         * modules/fnmatch (License): Likewise.
42089         * modules/fseeko (License): Likewise.
42090         * modules/getaddrinfo (License): Likewise.
42091         * modules/getline (License): Likewise.
42092         * modules/getlogin_r (License): Likewise.
42093         * modules/getpass (License): Likewise.
42094         * modules/gettimeofday (License): Likewise.
42095         * modules/glob (License): Likewise.
42096         * modules/inet_ntop (License): Likewise.
42097         * modules/malloc (License): Likewise.
42098         * modules/malloca (License): Likewise.
42099         * modules/memmem (License): Likewise.
42100         * modules/mempcpy (License): Likewise.
42101         * modules/memset (License): Likewise.
42102         * modules/minmax (License): Likewise.
42103         * modules/mktime (License): Likewise.
42104         * modules/netinet_in (License): Likewise.
42105         * modules/pathmax (License): Likewise.
42106         * modules/poll (License): Likewise.
42107         * modules/regex (License): Likewise.
42108         * modules/snprintf (License): Likewise.
42109         * modules/stdbool (License): Likewise.
42110         * modules/stdint (License): Likewise.
42111         * modules/stdio (License): Likewise.
42112         * modules/strcase (License): Likewise.
42113         * modules/strcasestr (License): Likewise.
42114         * modules/strdup (License): Likewise.
42115         * modules/string (License): Likewise.
42116         * modules/strndup (License): Likewise.
42117         * modules/strnlen (License): Likewise.
42118         * modules/strpbrk (License): Likewise.
42119         * modules/strptime (License): Likewise.
42120         * modules/strsep (License): Likewise.
42121         * modules/sys_select (License): Likewise.
42122         * modules/sys_socket (License): Likewise.
42123         * modules/sys_stat (License): Likewise.
42124         * modules/sys_time (License): Likewise.
42125         * modules/time (License): Likewise.
42126         * modules/time_r (License): Likewise.
42127         * modules/timegm (License): Likewise.
42128         * modules/unistd (License): Likewise.
42129         * modules/vsnprintf (License): Likewise.
42130         * modules/wctype (License): Likewise.
42131
42132 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42133
42134         * modules/argz (License): LGPLv2+.
42135
42136 2007-07-15  Karl Berry  <karl@gnu.org>
42137
42138         * doc/gnulib.texi: revise node structure per new fdl.texi.
42139
42140 2007-07-14  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42143         the output file.
42144         * lib/uniname/uninames.h: Regenerated.
42145
42146 2007-07-14  Karl Berry  <karl@gnu.org>
42147
42148         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42149         omitting sectioning and index commands.
42150
42151 2007-07-13  Bruno Haible  <bruno@clisp.org>
42152
42153         New gnulib-tool option --more-symlinks.
42154         * gnulib-tool (func_usage): Document --more-symlinks.
42155         (do_copyrights): New variable.
42156         Recognize option --more-symlinks.
42157         (func_import): Don't add a copyright notice transform to
42158         sed_transform_lib_file if do_copyrights is empty.
42159
42160 2007-07-13  Bruno Haible  <bruno@clisp.org>
42161
42162         * lib/vasnprintf.c (decimal_point_char): Define also if
42163         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42164         && !NEED_PRINTF_DIRECTIVE_A.
42165         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42166         Gary V. Vaughan <gary@gnu.org>.
42167
42168 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42169
42170         * lib/inttypes_.h: Undo previous change, since it was fixed
42171         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42172
42173 2007-07-13  Bruno Haible  <bruno@clisp.org>
42174
42175         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42176         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42177
42178 2007-07-13  Jim Meyering  <jim@meyering.net>
42179
42180         df: Don't fail for Tru64's "file-on-file mount".
42181         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42182         so we fall through and use statfs instead.  Details here:
42183         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42184         Reported by Albert Chin.
42185
42186 2007-07-13  Bruno Haible  <bruno@clisp.org>
42187
42188         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42189         * modules/configmake (License): Likewise.
42190         * modules/gettext (License): Likewise.
42191         * modules/gettext-h (License): Likewise.
42192         * modules/include_next (License): Likewise.
42193         * modules/link-warning (License): Likewise.
42194         * modules/localcharset (License): Likewise.
42195         * modules/localename (License): Likewise.
42196         * modules/lock (License): Likewise.
42197         * modules/relocatable-lib-lgpl (License): Likewise.
42198         * modules/size_max (License): Likewise.
42199         * modules/vasnprintf (License): Likewise.
42200         * modules/wchar (License): Likewise.
42201         * modules/xsize (License): Likewise.
42202
42203 2007-07-13  Bruno Haible  <bruno@clisp.org>
42204
42205         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42206         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42207
42208 2007-07-12  Bruno Haible  <bruno@clisp.org>
42209
42210         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42211         in the modules files.
42212
42213 2007-07-11  Karl Berry  <karl@gnu.org>
42214
42215         * MODULES.html.sh (func_module): use
42216          sed -e '\|^'"${includefile}"'$|d'
42217          instead of /.../d, to avoid errors on $includefile's containing /.
42218
42219 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42220
42221         * gnulib-tool (func_import): Avoid duplication of --avoid
42222         statements
42223         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42224         names to `_' in variable names.
42225
42226 2007-07-10  Eric Blake  <ebb9@byu.net>
42227
42228         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42229         * NEWS: Document this change.
42230
42231 2007-07-08  Bruno Haible  <bruno@clisp.org>
42232
42233         Update to Unicode 5.0.
42234         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42235         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42236         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42237         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42238         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42239         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42240         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42241         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42242         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42243         U+10A3F, U+1D242..U+1D244.
42244         (nonspacing_table_ind): Update.
42245         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42246         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42247
42248 2007-07-08  Bruno Haible  <bruno@clisp.org>
42249
42250         Update to Unicode 5.0.
42251         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42252         code transform. Extend the name index field of unicode_name_to_code and
42253         unicode_code_to_name from 16 to 24 bits.
42254         * lib/uniname/uniname.c (unicode_character_name,
42255         unicode_name_character): Add the range 0x12xxx to the code transform.
42256         * lib/uniname/uninames.h: Regenerated.
42257         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42258
42259 2007-07-07  Bruno Haible  <bruno@clisp.org>
42260
42261         * modules/wcwidth-tests: New file.
42262         * tests/test-wcwidth.c: New file.
42263
42264         Work around MacOS X wcwidth() bug.
42265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42266         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42267         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42268         original wcwidth in non-UTF-8 locales.
42269         * modules/wcwidth (Depends-on): Add localcharset, streq,
42270         uniwidth/width.
42271         * doc/functions/wcwidth.texi: Update.
42272
42273 2007-07-07  Bruno Haible  <bruno@clisp.org>
42274
42275         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42276         (wcwidth): New declaration.
42277         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42278         macros.
42279         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42280         here. Prepare for creating <wchar.h> unconditionally.
42281         * modules/wchar (Depends-on): Add link-warning.
42282         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42283         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42284         * lib/wcwidth.h: Remove file.
42285         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42286         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42287         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42288         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42289         (Include): Replace wcwidth.h with <wchar.h>.
42290         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42291         * lib/mbchar.h: Don't include wcwidth.h.
42292         * lib/mbswidth.c: Likewise.
42293         * NEWS: Mention the change.
42294
42295 2007-07-07  Bruno Haible  <bruno@clisp.org>
42296
42297         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42298         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42299         definition with an external declaration.
42300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42301         defined as a function. Remove AC_C_INLINE requirement.
42302         * modules/wcwidth (Files): Add lib/wcwidth.c.
42303         (Makefile.am): Remove redundant statement.
42304
42305 2007-07-07  Bruno Haible  <bruno@clisp.org>
42306
42307         * MODULES.html.sh (Unicode string functions): Add the new modules.
42308
42309         * tests/uniwidth/test-u32-strwidth.c: New file.
42310         * modules/uniwidth/u32-strwidth-tests: New file.
42311
42312         * lib/uniwidth/u32-strwidth.c: New file.
42313         * modules/uniwidth/u32-strwidth: New file.
42314
42315         * tests/uniwidth/test-u16-strwidth.c: New file.
42316         * modules/uniwidth/u16-strwidth-tests: New file.
42317
42318         * lib/uniwidth/u16-strwidth.c: New file.
42319         * modules/uniwidth/u16-strwidth: New file.
42320
42321         * tests/uniwidth/test-u8-strwidth.c: New file.
42322         * modules/uniwidth/u8-strwidth-tests: New file.
42323
42324         * lib/uniwidth/u8-strwidth.c: New file.
42325         * modules/uniwidth/u8-strwidth: New file.
42326
42327         * tests/uniwidth/test-u32-width.c: New file.
42328         * modules/uniwidth/u32-width-tests: New file.
42329
42330         * lib/uniwidth/u32-width.c: New file.
42331         * modules/uniwidth/u32-width: New file.
42332
42333         * tests/uniwidth/test-u16-width.c: New file.
42334         * modules/uniwidth/u16-width-tests: New file.
42335
42336         * lib/uniwidth/u16-width.c: New file.
42337         * modules/uniwidth/u16-width: New file.
42338
42339         * tests/uniwidth/test-u8-width.c: New file.
42340         * modules/uniwidth/u8-width-tests: New file.
42341
42342         * lib/uniwidth/u8-width.c: New file.
42343         * modules/uniwidth/u8-width: New file.
42344
42345         * tests/uniwidth/test-uc_width.c: New file.
42346         * modules/uniwidth/width-tests: New file.
42347
42348         * lib/uniwidth/width.c: New file, from GNU libiconv.
42349         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
42350         * modules/uniwidth/width: New file.
42351
42352         * lib/uniwidth.h: New file, from GNU libiconv.
42353         * modules/uniwidth/base: New file.
42354
42355 2007-07-07  Bruno Haible  <bruno@clisp.org>
42356
42357         * lib/uniname.h: New file, from GNU gettext.
42358         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
42359         * lib/uniname/uninames.h: New file, from GNU gettext.
42360         * lib/uniname/uniname.c: New file, from GNU gettext.
42361         * tests/uniname/test-uninames.sh: New file.
42362         * tests/uniname/test-uninames.c: New file, from GNU gettext.
42363         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
42364         * modules/uniname/base: New file.
42365         * modules/uniname/uniname: New file.
42366         * modules/uniname/uniname-tests: New file.
42367         * MODULES.html.sh (Unicode string functions): Add the new modules.
42368
42369 2007-07-06  Bruno Haible  <bruno@clisp.org>
42370
42371         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42372
42373 2007-07-06  Bruno Haible  <bruno@clisp.org>
42374
42375         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42376         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42377         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42378         include <sys/time.h>.
42379         Reported by Eric Blake.
42380
42381 2007-07-06  Eric Blake  <ebb9@byu.net>
42382
42383         Fix testing canonicalize on cygwin.
42384         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42385         Revert patch from 2007-06-19.
42386         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42387         canonicalize module is also in use.
42388         * tests/test-canonicalize.c: New file.
42389         * tests/test-canonicalize.sh: Likewise.
42390         * modules/canonicalize-tests: Likewise.
42391
42392 2007-07-06  Jim Meyering  <jim@meyering.net>
42393
42394         * lib/getugroups.c (getugroups): Detect getgrent failure.
42395         Adjust comment to reflect reality: this function may return -1.
42396
42397 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42398
42399         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42400         the new TP address.
42401         (usage): Fix typo
42402         (gnulib_mk): New variable.
42403
42404 2007-07-05  Jim Meyering  <jim@meyering.net>
42405
42406         Don't let endgrent clobber errno, no matter how improbable.
42407         * lib/getugroups.c (getugroups): Save and restore errno around
42408         endgrent call.
42409
42410         Close the group DB even when failing with 2^31 or more members.
42411         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
42412
42413 2007-07-04  Jim Meyering  <jim@meyering.net>
42414
42415         * lib/getugroups.h: New file.
42416         * lib/getugroups.c: Include "getugroups.h".
42417         Remove uses of "register" keyword.
42418         Move local variable, "cp", down into scope where used.
42419         Give "username" parameter the "const" attribute.
42420         * modules/getugroups (Files): Add lib/getugroups.h
42421
42422 2007-07-04  Karl Berry  <karl@gnu.org>
42423
42424         * MODULES.html.sh (func_all_modules): Complete rename of
42425         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
42426
42427 2007-07-02  Bruno Haible  <bruno@clisp.org>
42428
42429         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
42430         mode, when inttypes.h comes from gnulib.
42431         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42432
42433 2007-07-02  Simon Josefsson  <simon@josefsson.org>
42434
42435         * NEWS: Mention lgpl module name change.
42436
42437         * modules/lgpl-2.1: Renamed from lgpl.
42438
42439         * NEWS: Mention gpl module name change.
42440
42441         * modules/gpl-3.0: New file, based on gpl-2.0.
42442
42443         * modules/gpl-2.0: Renamed from gpl.
42444
42445         * modules/gpl: Fix filename, doc/gpl.texi is now found at
42446         doc/gpl-2.0.texi.
42447
42448 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42449
42450         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
42451         #define __STDC_LIMIT_MACROS temporarily while including
42452         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
42453         Problem reported by Joel E. Denny in
42454         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
42455
42456 2007-07-01  Bruno Haible  <bruno@clisp.org>
42457
42458         * lib/unistdio.h: New file.
42459         * lib/unistdio/u-asnprintf.h: New file.
42460         * lib/unistdio/u-asprintf.h: New file.
42461         * lib/unistdio/u-printf-args.c: New file.
42462         * lib/unistdio/u-printf-args.h: New file.
42463         * lib/unistdio/u-printf-parse.h: New file.
42464         * lib/unistdio/u-snprintf.h: New file.
42465         * lib/unistdio/u-sprintf.h: New file.
42466         * lib/unistdio/u-vasprintf.h: New file.
42467         * lib/unistdio/u-vsnprintf.h: New file.
42468         * lib/unistdio/u-vsprintf.h: New file.
42469         * lib/unistdio/ulc-asnprintf.c: New file.
42470         * lib/unistdio/ulc-asprintf.c: New file.
42471         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
42472         * lib/unistdio/ulc-printf-parse.c: New file.
42473         * lib/unistdio/ulc-snprintf.c: New file.
42474         * lib/unistdio/ulc-sprintf.c: New file.
42475         * lib/unistdio/ulc-vasnprintf.c: New file.
42476         * lib/unistdio/ulc-vasprintf.c: New file.
42477         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
42478         * lib/unistdio/ulc-vsnprintf.c: New file.
42479         * lib/unistdio/ulc-vsprintf.c: New file.
42480         * lib/unistdio/u8-asnprintf.c: New file.
42481         * lib/unistdio/u8-asprintf.c: New file.
42482         * lib/unistdio/u8-printf-parse.c: New file.
42483         * lib/unistdio/u8-snprintf.c: New file.
42484         * lib/unistdio/u8-sprintf.c: New file.
42485         * lib/unistdio/u8-vasnprintf.c: New file.
42486         * lib/unistdio/u8-vasprintf.c: New file.
42487         * lib/unistdio/u8-vsnprintf.c: New file.
42488         * lib/unistdio/u8-vsprintf.c: New file.
42489         * lib/unistdio/u8-u8-asnprintf.c: New file.
42490         * lib/unistdio/u8-u8-asprintf.c: New file.
42491         * lib/unistdio/u8-u8-snprintf.c: New file.
42492         * lib/unistdio/u8-u8-sprintf.c: New file.
42493         * lib/unistdio/u8-u8-vasnprintf.c: New file.
42494         * lib/unistdio/u8-u8-vasprintf.c: New file.
42495         * lib/unistdio/u8-u8-vsnprintf.c: New file.
42496         * lib/unistdio/u8-u8-vsprintf.c: New file.
42497         * lib/unistdio/u16-asnprintf.c: New file.
42498         * lib/unistdio/u16-asprintf.c: New file.
42499         * lib/unistdio/u16-printf-parse.c: New file.
42500         * lib/unistdio/u16-snprintf.c: New file.
42501         * lib/unistdio/u16-sprintf.c: New file.
42502         * lib/unistdio/u16-vasnprintf.c: New file.
42503         * lib/unistdio/u16-vasprintf.c: New file.
42504         * lib/unistdio/u16-vsnprintf.c: New file.
42505         * lib/unistdio/u16-vsprintf.c: New file.
42506         * lib/unistdio/u16-u16-asnprintf.c: New file.
42507         * lib/unistdio/u16-u16-asprintf.c: New file.
42508         * lib/unistdio/u16-u16-snprintf.c: New file.
42509         * lib/unistdio/u16-u16-sprintf.c: New file.
42510         * lib/unistdio/u16-u16-vasnprintf.c: New file.
42511         * lib/unistdio/u16-u16-vasprintf.c: New file.
42512         * lib/unistdio/u16-u16-vsnprintf.c: New file.
42513         * lib/unistdio/u16-u16-vsprintf.c: New file.
42514         * lib/unistdio/u32-asnprintf.c: New file.
42515         * lib/unistdio/u32-asprintf.c: New file.
42516         * lib/unistdio/u32-printf-parse.c: New file.
42517         * lib/unistdio/u32-snprintf.c: New file.
42518         * lib/unistdio/u32-sprintf.c: New file.
42519         * lib/unistdio/u32-vasnprintf.c: New file.
42520         * lib/unistdio/u32-vasprintf.c: New file.
42521         * lib/unistdio/u32-vsnprintf.c: New file.
42522         * lib/unistdio/u32-vsprintf.c: New file.
42523         * lib/unistdio/u32-u32-asnprintf.c: New file.
42524         * lib/unistdio/u32-u32-asprintf.c: New file.
42525         * lib/unistdio/u32-u32-snprintf.c: New file.
42526         * lib/unistdio/u32-u32-sprintf.c: New file.
42527         * lib/unistdio/u32-u32-vasnprintf.c: New file.
42528         * lib/unistdio/u32-u32-vasprintf.c: New file.
42529         * lib/unistdio/u32-u32-vsnprintf.c: New file.
42530         * lib/unistdio/u32-u32-vsprintf.c: New file.
42531         * tests/unistdio/test-ulc-asnprintf1.c: New file.
42532         * tests/unistdio/test-ulc-asnprintf1.h: New file.
42533         * tests/unistdio/test-ulc-printf1.h: New file.
42534         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
42535         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
42536         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
42537         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
42538         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
42539         * tests/unistdio/test-ulc-vasprintf1.c: New file.
42540         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
42541         * tests/unistdio/test-ulc-vsprintf1.c: New file.
42542         * tests/unistdio/test-u8-asnprintf1.c: New file.
42543         * tests/unistdio/test-u8-asnprintf1.h: New file.
42544         * tests/unistdio/test-u8-printf1.h: New file.
42545         * tests/unistdio/test-u8-vasnprintf1.c: New file.
42546         * tests/unistdio/test-u8-vasnprintf2.c: New file.
42547         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
42548         * tests/unistdio/test-u8-vasnprintf3.c: New file.
42549         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
42550         * tests/unistdio/test-u8-vasprintf1.c: New file.
42551         * tests/unistdio/test-u8-vsnprintf1.c: New file.
42552         * tests/unistdio/test-u8-vsprintf1.c: New file.
42553         * tests/unistdio/test-u16-asnprintf1.c: New file.
42554         * tests/unistdio/test-u16-asnprintf1.h: New file.
42555         * tests/unistdio/test-u16-printf1.h: New file.
42556         * tests/unistdio/test-u16-vasnprintf1.c: New file.
42557         * tests/unistdio/test-u16-vasnprintf2.c: New file.
42558         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
42559         * tests/unistdio/test-u16-vasnprintf3.c: New file.
42560         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
42561         * tests/unistdio/test-u16-vasprintf1.c: New file.
42562         * tests/unistdio/test-u16-vsnprintf1.c: New file.
42563         * tests/unistdio/test-u16-vsprintf1.c: New file.
42564         * tests/unistdio/test-u32-asnprintf1.c: New file.
42565         * tests/unistdio/test-u32-asnprintf1.h: New file.
42566         * tests/unistdio/test-u32-printf1.h: New file.
42567         * tests/unistdio/test-u32-vasnprintf1.c: New file.
42568         * tests/unistdio/test-u32-vasnprintf2.c: New file.
42569         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
42570         * tests/unistdio/test-u32-vasnprintf3.c: New file.
42571         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
42572         * tests/unistdio/test-u32-vasprintf1.c: New file.
42573         * tests/unistdio/test-u32-vsnprintf1.c: New file.
42574         * tests/unistdio/test-u32-vsprintf1.c: New file.
42575         * modules/unistdio/base: New file.
42576         * modules/unistdio/u-printf-args: New file.
42577         * modules/unistdio/ulc-asnprintf: New file.
42578         * modules/unistdio/ulc-asprintf: New file.
42579         * modules/unistdio/ulc-fprintf: New file.
42580         * modules/unistdio/ulc-printf-parse: New file.
42581         * modules/unistdio/ulc-snprintf: New file.
42582         * modules/unistdio/ulc-sprintf: New file.
42583         * modules/unistdio/ulc-vasnprintf: New file.
42584         * modules/unistdio/ulc-vasprintf: New file.
42585         * modules/unistdio/ulc-vfprintf: New file.
42586         * modules/unistdio/ulc-vsnprintf: New file.
42587         * modules/unistdio/ulc-vsprintf: New file.
42588         * modules/unistdio/u8-asnprintf: New file.
42589         * modules/unistdio/u8-asprintf: New file.
42590         * modules/unistdio/u8-printf-parse: New file.
42591         * modules/unistdio/u8-snprintf: New file.
42592         * modules/unistdio/u8-sprintf: New file.
42593         * modules/unistdio/u8-vasnprintf: New file.
42594         * modules/unistdio/u8-vasprintf: New file.
42595         * modules/unistdio/u8-vsnprintf: New file.
42596         * modules/unistdio/u8-vsprintf: New file.
42597         * modules/unistdio/u8-u8-asnprintf: New file.
42598         * modules/unistdio/u8-u8-asprintf: New file.
42599         * modules/unistdio/u8-u8-snprintf: New file.
42600         * modules/unistdio/u8-u8-sprintf: New file.
42601         * modules/unistdio/u8-u8-vasnprintf: New file.
42602         * modules/unistdio/u8-u8-vasprintf: New file.
42603         * modules/unistdio/u8-u8-vsnprintf: New file.
42604         * modules/unistdio/u8-u8-vsprintf: New file.
42605         * modules/unistdio/u16-asnprintf: New file.
42606         * modules/unistdio/u16-asprintf: New file.
42607         * modules/unistdio/u16-printf-parse: New file.
42608         * modules/unistdio/u16-snprintf: New file.
42609         * modules/unistdio/u16-sprintf: New file.
42610         * modules/unistdio/u16-vasnprintf: New file.
42611         * modules/unistdio/u16-vasprintf: New file.
42612         * modules/unistdio/u16-vsnprintf: New file.
42613         * modules/unistdio/u16-vsprintf: New file.
42614         * modules/unistdio/u16-u16-asnprintf: New file.
42615         * modules/unistdio/u16-u16-asprintf: New file.
42616         * modules/unistdio/u16-u16-snprintf: New file.
42617         * modules/unistdio/u16-u16-sprintf: New file.
42618         * modules/unistdio/u16-u16-vasnprintf: New file.
42619         * modules/unistdio/u16-u16-vasprintf: New file.
42620         * modules/unistdio/u16-u16-vsnprintf: New file.
42621         * modules/unistdio/u16-u16-vsprintf: New file.
42622         * modules/unistdio/u32-asnprintf: New file.
42623         * modules/unistdio/u32-asprintf: New file.
42624         * modules/unistdio/u32-printf-parse: New file.
42625         * modules/unistdio/u32-snprintf: New file.
42626         * modules/unistdio/u32-sprintf: New file.
42627         * modules/unistdio/u32-vasnprintf: New file.
42628         * modules/unistdio/u32-vasprintf: New file.
42629         * modules/unistdio/u32-vsnprintf: New file.
42630         * modules/unistdio/u32-vsprintf: New file.
42631         * modules/unistdio/u32-u32-asnprintf: New file.
42632         * modules/unistdio/u32-u32-asprintf: New file.
42633         * modules/unistdio/u32-u32-snprintf: New file.
42634         * modules/unistdio/u32-u32-sprintf: New file.
42635         * modules/unistdio/u32-u32-vasnprintf: New file.
42636         * modules/unistdio/u32-u32-vasprintf: New file.
42637         * modules/unistdio/u32-u32-vsnprintf: New file.
42638         * modules/unistdio/u32-u32-vsprintf: New file.
42639         * modules/unistdio/ulc-asnprintf-tests: New file.
42640         * modules/unistdio/ulc-vasnprintf-tests: New file.
42641         * modules/unistdio/ulc-vasprintf-tests: New file.
42642         * modules/unistdio/ulc-vsnprintf-tests: New file.
42643         * modules/unistdio/ulc-vsprintf-tests: New file.
42644         * modules/unistdio/u8-asnprintf-tests: New file.
42645         * modules/unistdio/u8-vasnprintf-tests: New file.
42646         * modules/unistdio/u8-vasprintf-tests: New file.
42647         * modules/unistdio/u8-vsnprintf-tests: New file.
42648         * modules/unistdio/u8-vsprintf-tests: New file.
42649         * modules/unistdio/u16-asnprintf-tests: New file.
42650         * modules/unistdio/u16-vasnprintf-tests: New file.
42651         * modules/unistdio/u16-vasprintf-tests: New file.
42652         * modules/unistdio/u16-vsnprintf-tests: New file.
42653         * modules/unistdio/u16-vsprintf-tests: New file.
42654         * modules/unistdio/u32-asnprintf-tests: New file.
42655         * modules/unistdio/u32-vasnprintf-tests: New file.
42656         * modules/unistdio/u32-vasprintf-tests: New file.
42657         * modules/unistdio/u32-vsnprintf-tests: New file.
42658         * modules/unistdio/u32-vsprintf-tests: New file.
42659         * MODULES.html.sh (Unicode string functions): Add the new modules.
42660
42661 2007-07-01  Bruno Haible  <bruno@clisp.org>
42662
42663         * lib/sprintf.c (sprintf): Limit the available length estimation,
42664         to avoid address wraparound.
42665         * lib/vsprintf.c (vsprintf): Likewise.
42666         * modules/sprintf-posix (Dependencies): Add stdint.
42667         * modules/vsprintf-posix (Dependencies): Likewise.
42668
42669 2007-07-01  Bruno Haible  <bruno@clisp.org>
42670
42671         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
42672         Windows PATH as well. Conservative double-quoting. Comments.
42673
42674 2007-07-01  Bruno Haible  <bruno@clisp.org>
42675             Eric Blake  <ebb9@byu.net>
42676             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42677
42678         * gnulib-tool (self_abspathname): Fix algorithm to cope with
42679         empty components in $PATH, denoting '.'.
42680
42681 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42682
42683         * gnulib-tool: Fix indentation.
42684         (func_create_megatestdir): Likewise.
42685         Report by Bruno Haible.
42686
42687 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42688
42689         Sync from Automake.
42690         * build-aux/gnupload: Fix shell portability issues with for loops.
42691         Report by Karl Berry.
42692
42693 2007-06-29  Simon Josefsson  <simon@josefsson.org>
42694
42695         * build-aux/maint.mk (POURL): Use translationproject.org.
42696
42697 2007-06-27  Simon Josefsson  <simon@josefsson.org>
42698             Bruno Haible  <bruno@clisp.org>
42699
42700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
42701         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
42702         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
42703         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
42704         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
42705
42706 2007-06-27  Bruno Haible  <bruno@clisp.org>
42707
42708         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
42709         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
42710
42711 2007-06-26  Karl Berry  <karl@gnu.org>
42712
42713         * MODULES.html.sh: remove xreadlink-with-size.
42714
42715 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42716
42717         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
42718         method that I hope also handles the double-include problem noted
42719         by Bruno Haible in
42720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
42721
42722 2007-06-23  Bruno Haible  <bruno@clisp.org>
42723
42724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42725         Don't let the 'mostlyclean' target fail if the last subdirectory could
42726         not be removed.
42727         Reported by Karl Berry.
42728
42729 2007-06-23  Bruno Haible  <bruno@clisp.org>
42730
42731         * gnulib-tool (echo): Add a speedier workaround for ksh.
42732         * tests/test-echo.sh: Likewise.
42733
42734 2007-06-23  Bruno Haible  <bruno@clisp.org>
42735
42736         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
42737         * tests/test-echo.sh: Likewise.
42738
42739 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42740
42741         * gnulib-tool (IFS): Initialize early, so we don't set it to
42742         empty later.
42743         (self_abspathname): Rewrite algorithm to set it, reindent.
42744         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
42745         (func_create_megatestdir): Merge some sed scripts.
42746
42747 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42748
42749         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
42750         exposed by Sun Studio 11 cc on Solaris 8.
42751
42752 2007-06-22  Bruno Haible  <bruno@clisp.org>
42753
42754         * gnulib-tool (echo): Ensure the echo primitive does not interpret
42755         backslashes.
42756         * tests/test-echo.sh: New file.
42757
42758 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42759
42760         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
42761         simplify `sed_replace_build_aux' scripts, they are portable but
42762         echoing them with `echo' is not.
42763         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
42764
42765 2007-06-21  Karl Berry  <karl@gnu.org>
42766
42767         * config/srclist.txt: guess we can't handle the licenses via
42768         srclist at the moment.
42769
42770 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
42771
42772         * MODULES.html.sh: Add include_next.
42773         * modules/include_next: New file.
42774
42775 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42776
42777         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
42778         INCLUDE_NEXT.
42779         (gl_CHECK_NEXT_HEADERS): New macro.
42780         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
42781         the obsolescent gl_ABSOLUTE_HEADER.
42782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
42783         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
42784         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42785         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42786         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
42787         * m4/math_h.m4 (gl_MATH_H): Likewise.
42788         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42789         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42790         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
42791         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42792         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
42793         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
42794         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
42795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42797         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
42798         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
42799         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42800         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
42801         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42802         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42803         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42804         * m4/inttypes.m4 (gl_INTTYPES_H): Define
42805         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
42806         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
42807         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
42808         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
42809         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
42810         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
42811         * lib/float_.h: Likewise.
42812         * lib/inttypes_.h: Likewise.
42813         * lib/math_.h: Likewise.
42814         * lib/search_.h: Likewise.
42815         * lib/signal_.h: Likewise.
42816         * lib/stdint_.h: Likewise.
42817         * lib/stdio_.h: Likewise.
42818         * lib/stdlib_.h: Likewise.
42819         * lib/string_.h: Likewise.
42820         * lib/sys_stat_.h: Likewise.
42821         * lib/sys_time_.h: Likewise.
42822         * lib/time_.h: Likewise.
42823         * lib/unistd_.h: Likewise.
42824         * lib/wchar_.h: Likewise.
42825         * lib/wctype_.h: Likewise.
42826         * lib/dirent_.h: Likewise.
42827         * lib/iconv_.h: Likewise.
42828         * lib/locale_.h: Likewise.
42829         * lib/netinet_in_.h: Likewise.
42830         * lib/sys_select_.h: Likewise.
42831         * lib/sys_socket_.h: Likewise.
42832         * lib/sysexits_.h: Likewise.
42833         * modules/fcntl (Depends-on): Depend on include_next, not
42834         absolute_header.
42835         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
42836         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
42837         * modules/fchdir: Likewise.
42838         * modules/float: Likewise.
42839         * modules/iconv_open: Likewise.
42840         * modules/inttypes: Likewise.
42841         * modules/locale: Likewise.
42842         * modules/math: Likewise.
42843         * modules/netinet_in: Likewise.
42844         * modules/search: Likewise.
42845         * modules/signal: Likewise.
42846         * modules/stdint: Likewise.
42847         * modules/stdio: Likewise.
42848         * modules/stdlib: Likewise.
42849         * modules/string: Likewise.
42850         * modules/sys_select: Likewise.
42851         * modules/sys_socket: Likewise.
42852         * modules/sys_stat: Likewise.
42853         * modules/sys_time: Likewise.
42854         * modules/sysexits: Likewise.
42855         * modules/time: Likewise.
42856         * modules/unistd: Likewise.
42857         * modules/wchar: Likewise.
42858         * modules/wctype: Likewise.
42859         * modules/sys_stat: Change maintainer to "all".
42860         * modules/unistd: Likewise.
42861
42862 2007-06-20  Karl Berry  <karl@gnu.org>
42863
42864         * config/srclist.txt: track www changes in license files.
42865
42866 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
42867
42868         * build-aux/bootstrap: Remove stray dot.
42869         Make sure build_aux settings are honored when linking
42870         gnulib_extra_files.
42871
42872 2007-06-19  Eric Blake  <ebb9@byu.net>
42873
42874         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42875         Allow compilation on cygwin.
42876
42877 2007-06-19  Jim Meyering  <jim@meyering.net>
42878
42879         xreadlink-with-size: Remove module.  No longer used.
42880         Ex-callers now use xreadlink or mreadlink-with-size.
42881         * modules/xreadlink-with-size: Remove module.
42882         * lib/xreadlink-with-size.c: Remove file.
42883         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
42884         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
42885         just before the function definition *is* accurate.
42886
42887         Eliminate one way canonicalize_filename_mode could exit.
42888         * lib/canonicalize.c (canonicalize_filename_mode):
42889         Use mreadlink_with_size, not xreadlink_with_size.
42890
42891 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
42892
42893         Detect porting problems to FreeBSD/arm, which has time_t wider than
42894         long int.  Original problem reported for GNU diff by Xin Li in
42895         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
42896         * modules/getdate (Depends-on): Add intprops, verify.
42897         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
42898         is an integer type no wider than long int.
42899
42900 2007-06-18  Jim Meyering  <jim@meyering.net>
42901
42902         New module: mreadlink-with-size.
42903         * MODULES.html.sh: Add mreadlink-with-size.
42904         * modules/mreadlink-with-size: New module
42905         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
42906         not xreadlink-with-size.
42907         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
42908
42909 2007-06-16  Bruno Haible  <bruno@clisp.org>
42910
42911         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
42912         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
42913         Reported by Gary V. Vaughan <gary@gnu.org>.
42914
42915 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
42916
42917         Revamp lchown so that it lives in unistd.h where it belongs.
42918         * lib/lchown.h: Remove.
42919         * lib/dirchownmod.c: Don't include lib/lchown.h.
42920         * lib/fchownat.c: Likewise.
42921         * lib/openat.c: Likewise.
42922         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
42923         does not follow symlinks.
42924         (EOPNOTSUPP): Define if not defined.
42925         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
42926         is defined to 0.
42927         (lchown): New decl.
42928         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
42929         Do not check for lchown decl.
42930         Set REPLACE_LCHOWN.
42931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
42932         REPLACE_LCHOWN.
42933         * modules/chown: Make it clear it follows symlinks.
42934         * modules/lchown: Make it clear it doesn't follow symlinks.
42935         (Files): Remove lib/lchown.h
42936         (Depends-on): Add unistd.
42937         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
42938         (Include): Include <unistd.h>, not "lchown.h".
42939         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
42940         REPLACE_LCHOWN.
42941
42942 2007-06-15  Jim Meyering  <jim@meyering.net>
42943
42944         Change license (GPL to LGPL) of fsusage and dependents.
42945         * modules/fsusage (License): Change to LGPL.
42946         * modules/full-read (License): Likewise.
42947         * modules/full-write (License): Likewise.
42948         * modules/safe-read (License): Likewise.
42949         * modules/safe-write (License): Likewise.
42950
42951 2007-06-14  Ben Pfaff  <blp@gnu.org>
42952
42953         Missing part of allocsa -> malloca transition.
42954         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
42955         gl_MALLOCA.
42956
42957 2007-06-12  Bruno Haible  <bruno@clisp.org>
42958
42959         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
42960         to ia64, x86_64, i386.
42961         Reported by Eric Blake.
42962
42963 2007-06-12  Bruno Haible  <bruno@clisp.org>
42964
42965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
42966         cross-compiling to x86_64.
42967
42968 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
42969
42970         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
42971         glitch reported by Ralf Wildenhues in
42972         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
42973
42974         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
42975         Vin Shelton.
42976
42977 2007-06-11  Bruno Haible  <bruno@clisp.org>
42978
42979         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
42980         replacement string.
42981         Reported by Eric Blake.
42982
42983 2007-06-10  Bruno Haible  <bruno@clisp.org>
42984
42985         Prepare vasnprintf code for use with Unicode strings.
42986         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
42987         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
42988         TYPE_U32_STRING.
42989         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
42990         a_u32_string variants.
42991         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
42992         * lib/printf-args.c: Don't include config.h and the specification
42993         header if PRINTF_FETCHARGS is already defined.
42994         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
42995         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
42996         TYPE_U16_STRING, TYPE_U32_STRING.
42997         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
42998         u16_directive, u16_directives, u32_directive, u32_directives): New
42999         types.
43000         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43001         New declarations.
43002         * lib/printf-parse.c: Don't include config.h and the specification
43003         header if PRINTF_PARSE is already defined. Eliminate the set of
43004         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43005         them now. Include c-ctype.h.
43006         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43007         directive and CHAR_T_ONLY_ASCII.
43008         * lib/vasnprintf.c: Don't include config.h and the specification header
43009         if VASNPRINTF is already defined.
43010         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43011         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43012         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43013         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43014         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43015         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43016         code accordingly.
43017         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43018         pad_ourselves also in this case, with the 'c' and 's' directives, and
43019         with a different notion of "width".
43020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43021
43022 2007-06-10  Bruno Haible  <bruno@clisp.org>
43023
43024         * modules/unistr/u32-mbsnlen: New file.
43025         * lib/unistr/u32-mbsnlen.c: New file.
43026
43027         * modules/unistr/u16-mbsnlen: New file.
43028         * lib/unistr/u16-mbsnlen.c: New file.
43029
43030         * modules/unistr/u8-mbsnlen: New file.
43031         * lib/unistr/u8-mbsnlen.c: New file.
43032
43033         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43034         declarations.
43035
43036 2007-06-10  Bruno Haible  <bruno@clisp.org>
43037
43038         * lib/string_.h (mbsnlen): New declaration.
43039         * lib/mbsnlen.c: New file.
43040         * m4/mbsnlen.m4: New file.
43041         * modules/mbsnlen: New file.
43042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43043         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43044         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43045
43046 2007-06-10  Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43049
43050 2007-06-10  Bruno Haible  <bruno@clisp.org>
43051
43052         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43053         * lib/mbuiter.h: Likewise.
43054
43055 2007-06-10  Bruno Haible  <bruno@clisp.org>
43056
43057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43058         declaration.
43059
43060 2007-06-10  Karl Berry  <karl@gnu.org>
43061
43062         * config/srclist.txt: remove gettext entries, Bruno prefers
43063         to update individually.
43064
43065 2007-06-10  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43068         'maxlen'. Ensure only length + width bytes are allocated, not
43069         length + 1 + width.
43070
43071 2007-06-09  Bruno Haible  <bruno@clisp.org>
43072
43073         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43074         (CHAR_T): Remove macro.
43075         (VASNPRINTF): Update.
43076
43077 2007-06-09  Bruno Haible  <bruno@clisp.org>
43078
43079         * MODULES.html.sh (Unicode string functions): Add the new modules.
43080
43081         * modules/uniconv/u32-conv-to-enc: New file.
43082         * lib/uniconv/u32-conv-to-enc.c: New file.
43083         * modules/uniconv/u32-conv-to-enc-tests: New file.
43084         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43085
43086         * modules/uniconv/u16-conv-to-enc: New file.
43087         * lib/uniconv/u16-conv-to-enc.c: New file.
43088         * lib/uniconv/u-conv-to-enc.h: New file.
43089         * modules/uniconv/u16-conv-to-enc-tests: New file.
43090         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43091
43092         * modules/uniconv/u8-conv-to-enc: New file.
43093         * lib/uniconv/u8-conv-to-enc.c: New file.
43094         * modules/uniconv/u8-conv-to-enc-tests: New file.
43095         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43096
43097         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43098         u32_conv_to_encoding): New declarations.
43099
43100 2007-06-09  Bruno Haible  <bruno@clisp.org>
43101
43102         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43103
43104 2007-06-09  Bruno Haible  <bruno@clisp.org>
43105
43106         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43107         * modules/malloca: Renamed from modules/allocsa, updated.
43108         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43109         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43110         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43111         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43112         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43113         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43114         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43115         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43116         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43117         * modules/c-strcasestr (Depends-on): Update.
43118         * lib/c-strcasestr.c: Update.
43119         * modules/c-strstr (Depends-on): Update.
43120         * lib/c-strstr.c: Update.
43121         * modules/canonicalize-lgpl (Depends-on): Update.
43122         * lib/canonicalize-lgpl.c: Update.
43123         * modules/clean-temp (Depends-on): Update.
43124         * lib/clean-temp.c: Update.
43125         * modules/csharpcomp (Depends-on): Update.
43126         * lib/csharpcomp.c: Update.
43127         * modules/csharpexec (Depends-on): Update.
43128         * lib/csharpexec.c: Update.
43129         * modules/javacomp (Depends-on): Update.
43130         * lib/javacomp.c: Update.
43131         * modules/javaexec (Depends-on): Update.
43132         * lib/javaexec.c: Update.
43133         * modules/mbscasestr (Depends-on): Update.
43134         * lib/mbscasestr.c: Update.
43135         * modules/mbsstr (Depends-on): Update.
43136         * lib/mbsstr.c: Update.
43137         * modules/setenv (Depends-on): Update.
43138         * lib/setenv.c: Update.
43139         * modules/strcasestr (Depends-on): Update.
43140         * lib/strcasestr.c: Update.
43141         * modules/striconveha (Depends-on): Update.
43142         * lib/striconveha.c: Update.
43143         * modules/relocatable-prog-wrapper (Files): Update.
43144         * lib/relocwrapper.c: Update.
43145         * build-aux/install-reloc: Update.
43146         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43147
43148 2007-06-08  Bruno Haible  <bruno@clisp.org>
43149
43150         Port to uClibc.
43151         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43152         * lib/fpurge.c (fpurge): Likewise.
43153         * lib/freading.c (freading): Likewise.
43154         * lib/fseeko.c (rpl_fseeko): Likewise.
43155         * lib/fseterr.c (fseterr): Likewise.
43156         * lib/fwriting.c (fwriting): Likewise.
43157         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43158
43159 2007-06-08  Bruno Haible  <bruno@clisp.org>
43160
43161         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43162         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43163         * modules/gettext (Files): Add m4/intlmacosx.m4.
43164
43165 2007-06-07  Bruno Haible  <bruno@clisp.org>
43166
43167         * modules/localename-tests: New file.
43168         * tests/test-localename.c: New file.
43169
43170         New module 'localename'.
43171         * lib/localename.h: New file.
43172         * lib/localename.c: New file, from GNU gettext.
43173         * m4/localename.m4: New file.
43174         * modules/localename: New file.
43175
43176 2007-06-07  Bruno Haible  <bruno@clisp.org>
43177
43178         Work around the lack of <wchar.h> on some builds of uClibc.
43179         * doc/headers/wchar.texi: Update.
43180         * lib/wchar_.h: Include <wchar.h> only if it exists.
43181         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43182         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43183         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43184         doesn't exist.
43185         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43186         * modules/mbfile (Depends-on): Add wchar.
43187         * modules/mbiter (Depends-on): Likewise.
43188         * modules/mbuiter (Depends-on): Likewise.
43189         Reported by Simon Josefsson.
43190
43191 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43192
43193         Work around problem reported by Steven M. Schweda in
43194         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43195         Tru64 5.1B with the Compaq compiler environment installed declares
43196         an 'isblank' function but does not define it in the C library.
43197         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43198         * lib/regex_internal.h (isblank): Likewise.
43199         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43200         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43201
43202 2007-06-05  Bruno Haible  <bruno@clisp.org>
43203
43204         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43205         ia64.
43206         * modules/printf-safe: New file.
43207         * modules/fprintf-posix (Depends-on): Add printf-safe.
43208         * modules/printf-posix (Depends-on): Likewise.
43209         * modules/snprintf-posix (Depends-on): Likewise.
43210         * modules/sprintf-posix (Depends-on): Likewise.
43211         * modules/vasnprintf-posix (Depends-on): Likewise.
43212         * modules/vasprintf-posix (Depends-on): Likewise.
43213         * modules/vfprintf-posix (Depends-on): Likewise.
43214         * modules/vprintf-posix (Depends-on): Likewise.
43215         * modules/vsnprintf-posix (Depends-on): Likewise.
43216         * modules/vsprintf-posix (Depends-on): Likewise.
43217         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43218         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43219         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43220         "no" on i386, x86_64, ia64.
43221         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43222         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43223         on i386, x86_64, ia64.
43224         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43225         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43226         on i386, x86_64, ia64.
43227         * tests/test-vasnprintf-posix.c: Include float.h.
43228         (LDBL80_WORDS): New macro.
43229         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43230         on i386, x86_64, ia64.
43231         * tests/test-vasprintf-posix.c: Include float.h.
43232         (LDBL80_WORDS): New macro.
43233         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43234         on i386, x86_64, ia64.
43235         * tests/test-snprintf-posix.c: Include float.h.
43236         * tests/test-sprintf-posix.c: Likewise.
43237         * tests/test-vsnprintf-posix.c: Likewise.
43238         * tests/test-vsprintf-posix.c: Likewise.
43239
43240 2007-06-05  Bruno Haible  <bruno@clisp.org>
43241
43242         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43243         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43244         non-IEEE numbers on i386, x86_64, ia64.
43245         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43246         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43247         * tests/test-isnanl.h: Include float.h.
43248         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43249
43250 2007-06-05  Bruno Haible  <bruno@clisp.org>
43251
43252         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43253         also the %a / %A. Handle the %a / %A code before this extra handling.
43254
43255 2007-06-05  Bruno Haible  <bruno@clisp.org>
43256
43257         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43258         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43259
43260 2007-06-05  Bruno Haible  <bruno@clisp.org>
43261
43262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43263         typo in variable name.
43264
43265 2007-06-05  Eric Blake  <ebb9@byu.net>
43266
43267         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43268         Reported by Simon Josefsson.
43269
43270 2007-06-04  Bruno Haible  <bruno@clisp.org>
43271
43272         Avoid test failures on some PowerPC platforms.
43273         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43274         Define differently for PowerPC.
43275         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43276         Reported by Gary V. Vaughan <gary@gnu.org>.
43277
43278 2007-06-02  Bruno Haible  <bruno@clisp.org>
43279
43280         Fix test-stdint failure on FreeBSD/ia64.
43281         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43282         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43283         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43284         * doc/headers/stdint.texi: Update.
43285
43286 2007-06-01  Bruno Haible  <bruno@clisp.org>
43287
43288         * tests/test-binary-io.c (main): Pass a third argument to open().
43289         Reported by Gary V. Vaughan <gary@gnu.org>.
43290
43291 2007-06-01  Bruno Haible  <bruno@clisp.org>
43292
43293         * doc/functions/frexpl.texi: Update for mingw.
43294
43295 2007-06-01  Bruno Haible  <bruno@clisp.org>
43296
43297         * tests/test-lseek.c (main): Disable test of errno for invalid third
43298         argument.
43299         * doc/functions/lseek.texi: Update.
43300         Reported by Gary V. Vaughan <gary@gnu.org>.
43301
43302 2007-05-28  Bruno Haible  <bruno@clisp.org>
43303
43304         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43305
43306 2007-05-31  Eric Blake  <ebb9@byu.net>
43307
43308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43309         cross compiling.
43310
43311 2007-05-30  Eric Blake  <ebb9@byu.net>
43312         and Bruno Haible  <bruno@clisp.org>
43313
43314         Work around mingw test failures exposed by m4-1.4.9b.
43315         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43316         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43317         moment.
43318
43319 2007-05-30  Bruno Haible  <bruno@clisp.org>
43320
43321         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43322         assuming that they are closed. Needed on HP-UX 11.
43323
43324 2007-05-29  Bruno Haible  <bruno@clisp.org>
43325
43326         Fix a problem with #include_next.
43327         * lib/dirent_.h: Split the double-inclusion guard.
43328         * lib/fcntl_.h: Likewise.
43329         * lib/float_.h: Likewise.
43330         * lib/iconv_.h: Likewise.
43331         * lib/inttypes_.h: Likewise.
43332         * lib/locale_.h: Likewise.
43333         * lib/math_.h: Likewise.
43334         * lib/netinet_in_.h: Likewise.
43335         * lib/search_.h: Likewise.
43336         * lib/signal_.h: Likewise.
43337         * lib/stdint_.h: Likewise.
43338         * lib/stdio_.h: Likewise.
43339         * lib/stdlib_.h: Likewise.
43340         * lib/string_.h: Likewise.
43341         * lib/sys_select_.h: Likewise.
43342         * lib/sys_socket_.h: Likewise.
43343         * lib/sys_stat_.h: Likewise.
43344         * lib/sys_time_.h: Likewise.
43345         * lib/sysexits_.h: Likewise.
43346         * lib/time_.h: Likewise.
43347         * lib/unistd_.h: Likewise.
43348         * lib/wchar_.h: Likewise.
43349         * lib/wctype_.h: Likewise.
43350
43351 2007-05-29  Bruno Haible  <bruno@clisp.org>
43352
43353         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
43354         for the moment.
43355
43356 2007-05-29  Bruno Haible  <bruno@clisp.org>
43357
43358         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
43359         invocation.
43360         Reported by Eric Blake.
43361
43362 2007-05-29  Bruno Haible  <bruno@clisp.org>
43363
43364         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
43365         compiling case.
43366
43367 2007-05-29  Eric Blake  <ebb9@byu.net>
43368             Bruno Haible  <bruno@clisp.org>
43369
43370         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43371         cross compiles.
43372
43373 2007-05-28  Eric Blake  <ebb9@byu.net>
43374
43375         * modules/closein-tests (test_closein_LDADD): Support test on
43376         cygwin with libtool.
43377
43378 2007-05-28  Bruno Haible  <bruno@clisp.org>
43379
43380         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43381         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43382         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43383         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43384         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43385         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43386         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43387         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43388         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43389
43390 2007-05-28  Eric Blake  <ebb9@byu.net>
43391
43392         Unconditionally include <config.h> in unit tests.
43393         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43394         * tests/test-allocsa.c, tests/test-arcfour.c,
43395         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43396         tests/test-array_list.c, tests/test-array_oset.c,
43397         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43398         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43399         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43400         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43401         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43402         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43403         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43404         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43405         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43406         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43407         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43408         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43409         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43410         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43411         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
43412         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
43413         test-md5.c, test-memmem.c, test-printf-posix.c,
43414         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
43415         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
43416         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
43417         test-strcasestr.c, test-striconv.c, test-striconveh.c,
43418         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
43419         test-vasnprintf-posix2.c, test-vasnprintf.c,
43420         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
43421         test-vfprintf-posix.c, test-vprintf-posix.c,
43422         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
43423         test-xvasprintf.c: Likewise.
43424
43425 2007-05-28  Bruno Haible  <bruno@clisp.org>
43426
43427         * gnulib-tool (func_import): Remember the --with-tests command-line
43428         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
43429         Reported by Eric Blake.
43430
43431 2007-05-28  Bruno Haible  <bruno@clisp.org>
43432
43433         * modules/ftell-tests: New file.
43434         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
43435         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
43436
43437         * lib/ftell.c: New file.
43438         * modules/ftell: New file.
43439         * m4/ftell.m4: New file.
43440         * doc/functions/ftell.texi: Update.
43441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
43442         REPLACE_FTELL.
43443         * lib/stdio_.h (rpl_ftell): New declaration.
43444         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
43445         REPLACE_FTELL.
43446
43447 2007-05-28  Eric Blake  <ebb9@byu.net>
43448
43449         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
43450
43451 2007-05-28  Bruno Haible  <bruno@clisp.org>
43452
43453         * modules/fseek-tests: New file.
43454         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
43455         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
43456
43457         * lib/fseek.c: New file.
43458         * modules/fseek: New file.
43459         * m4/fseek.m4: New file.
43460         * doc/functions/fseek.texi: Update.
43461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
43462         REPLACE_FSEEK.
43463         * lib/stdio_.h (rpl_fseek): New declaration.
43464         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
43465         REPLACE_FSEEK.
43466
43467 2007-05-28  Bruno Haible  <bruno@clisp.org>
43468
43469         * lib/stdio_.h (fflush): More comments.
43470
43471 2007-05-28  Bruno Haible  <bruno@clisp.org>
43472
43473         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
43474         runtime test.
43475
43476 2007-05-28  Eric Blake  <ebb9@byu.net>
43477
43478         Improve lseek module.
43479         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
43480         * lib/unistd_.h (lseek): Scale back link warning message.
43481         * tests/test-lseek.c: Beef up test.
43482         * tests/test-lseek.sh: Exercise more facets of lseek.
43483         Reported by Bruno Haible.
43484
43485 2007-05-28  Bruno Haible  <bruno@clisp.org>
43486
43487         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
43488         to define.
43489
43490 2007-05-27  Bruno Haible  <bruno@clisp.org>
43491
43492         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
43493
43494 2007-05-27  Bruno Haible  <bruno@clisp.org>
43495
43496         * modules/openmp: New file.
43497         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
43498         Noah Misch.
43499
43500 2007-05-26  Bruno Haible  <bruno@clisp.org>
43501
43502         * modules/chdir-long (Depends-on): Add fchdir.
43503         * modules/chdir-safer (Depends-on): Likewise.
43504         * modules/fts (Depends-on): Likewise.
43505         * modules/fts-lgpl (Depends-on): Likewise.
43506         * modules/openat (Depends-on): Likewise.
43507         * modules/savewd (Depends-on): Likewise.
43508
43509 2007-05-24  Eric Blake  <ebb9@byu.net>
43510
43511         Fix lseek on mingw.
43512         * modules/lseek: New module.
43513         * m4/lseek.m4: New file.
43514         * lib/lseek.c: New file.
43515         * modules/lseek-tests: New file.
43516         * tests/test-lseek.c: New file.
43517         * tests/test-lseek.sh: New file.
43518         * MODULES.html.sh: Document lseek module.
43519         * modules/fflush (Depends-on): Add lseek, fseeko.
43520         * modules/fseeko (Depends-on): Likewise.
43521         * modules/ftello (Depends-on): Likewise.
43522         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
43523         broken.
43524         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
43525         broken.
43526         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
43527         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
43528         * lib/ftello.c (rpl_ftello): Likewise.
43529         * tests/test-fseeko.c (main): Test this.
43530         * tests/test-fseeko.sh: Likewise.
43531         * tests/test-ftello.c (main): Likewise.
43532         * tests/test-ftello.sh: Likewise.
43533         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
43534         implies replacing fseek.
43535         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
43536         HAVE_FTELLO.
43537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
43538         * modules/unistd (Makefile.am): Likewise.
43539         * lib/unistd_.h (lseek): Declare a replacement.
43540         * doc/functions/lseek.texi (lseek): Document this fix.
43541         * doc/functions/fseek.texi (fseek): Likewise.
43542         * doc/functions/ftell.texi (ftell): Likewise.
43543
43544 2007-05-24  Bruno Haible  <bruno@clisp.org>
43545
43546         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
43547         in the printed representation of a NaN.
43548         * tests/test-vasprintf-posix.c (test_function): Likewise.
43549         * tests/test-snprintf-posix.h (test_function): Likewise.
43550         * tests/test-sprintf-posix.h (test_function): Likewise.
43551         Reported by Eric Blake.
43552
43553 2007-05-23  Eric Blake  <ebb9@byu.net>
43554
43555         Fix fseeko/ftello on cygwin 1.5.24.
43556         * doc/functions/fseeko.texi (fseeko): Document the fix.
43557         * doc/functions/ftello.texi (ftello): Document the fix.
43558         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
43559         * doc/functions/stdout.text (stdout): New file.
43560         * doc/functions/stderr.text (stderr): New file.
43561         * doc/gnulib.texi (Function Substitutes): Use new files.
43562         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
43563         prior to 1.7.0.
43564         * tests/test-ftello.c (main): Likewise for ftello.
43565         * tests/test-fseeko.sh: New file.
43566         * tests/test-ftello.sh: New file.
43567         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
43568         with seekable stdin.
43569         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
43570         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
43571         (gl_REPLACE_FSEEKO): New macro.
43572         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
43573         * modules/fseeko (Files): Distribute fseeko.c.
43574         * modules/ftello (Files): Distribute ftello.c.
43575         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
43576         mode.
43577         * lib/ftello.c (rpl_ftello): New file.
43578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
43579         fseeko, ftello.
43580         (gl_STDIN_LARGE_OFFSET): New macro.
43581         * modules/stdio (Makefile.am): Perform the replacement.
43582         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
43583
43584 2007-05-23  Bruno Haible  <bruno@clisp.org>
43585
43586         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
43587         GNULIB_POSIXCHECK is defined.
43588
43589 2007-05-21  Bruno Haible  <bruno@clisp.org>
43590
43591         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
43592         Check also the output for NaN arguments. When cross-compiling, guess
43593         no on IRIX.
43594         * lib/vasnprintf.c: Update comments.
43595         * tests/test-vasnprintf-posix.c (strisnan): New function.
43596         (test_function): Use it.
43597         * tests/test-vasprintf-posix.c (strisnan): New function.
43598         (test_function): Use it.
43599         * tests/test-snprintf-posix.h (strisnan): New function.
43600         (test_function): Use it.
43601         * tests/test-sprintf-posix.h (strisnan): New function.
43602         (test_function): Use it.
43603         Reported by Eric Blake.
43604
43605 2007-05-20  Bruno Haible  <bruno@clisp.org>
43606
43607         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
43608         numbers that fails on BeOS.
43609         * doc/functions/frexpl.texi: Update.
43610
43611 2007-05-20  Jim Meyering  <jim@meyering.net>
43612
43613         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
43614         forced upon us by glibc-2.6.
43615
43616 2007-05-20  Bruno Haible  <bruno@clisp.org>
43617
43618         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
43619         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
43620         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
43621         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
43622         NEED_PRINTF_INFINITE.
43623         (is_infinitel): New function.
43624         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
43625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
43626         gl_PREREQ_VASNPRINTF_INFINITE.
43627         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
43628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43629         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
43630         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
43631         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
43632         gl_PREREQ_VASNPRINTF_INFINITE.
43633         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43634         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43635         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43636         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43637         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43638         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43639         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43640         * doc/functions/fprintf.texi: Update.
43641         * doc/functions/printf.texi: Update.
43642         * doc/functions/snprintf.texi: Update.
43643         * doc/functions/sprintf.texi: Update.
43644         * doc/functions/vfprintf.texi: Update.
43645         * doc/functions/vprintf.texi: Update.
43646         * doc/functions/vsnprintf.texi: Update.
43647         * doc/functions/vsprintf.texi: Update.
43648
43649 2007-05-20  Bruno Haible  <bruno@clisp.org>
43650
43651         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
43652         was not found in libc.
43653         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43654
43655 2007-05-20  Bruno Haible  <bruno@clisp.org>
43656
43657         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43658         printed as "-nan" instead of "nan".
43659         * tests/test-vasprintf-posix.c (test_function): Likewise.
43660         * tests/test-snprintf-posix.h (test_function): Likewise.
43661         * tests/test-sprintf-posix.h (test_function): Likewise.
43662         Needed for HP-UX 11.
43663
43664 2007-05-20  Jim Meyering  <jim@meyering.net>
43665
43666         Fix buggy test for the fchownat-deref bug.
43667         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
43668         symlink required for the run-test.  Without it, this test would
43669         always declare that fchownat doesn't work, and client code would
43670         unnecessarily use the replacement function with fixed libc.
43671         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
43672         Reported by Greg Schafer.
43673
43674 2007-05-19  Bruno Haible  <bruno@clisp.org>
43675
43676         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
43677         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
43678         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
43679         Needed for IRIX 6.5 and Solaris 2.5.1.
43680
43681 2007-05-19  Bruno Haible  <bruno@clisp.org>
43682
43683         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
43684         (test_function): Skip tests involving -0.0 on platforms where
43685         -0.0 = 0.0.
43686         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
43687         (test_function): Skip tests involving -0.0 on platforms where
43688         -0.0 = 0.0.
43689         * tests/test-snprintf-posix.h (have_minus_zero): New function.
43690         (test_function): Skip tests involving -0.0 on platforms where
43691         -0.0 = 0.0.
43692         * tests/test-sprintf-posix.h (have_minus_zero): New function.
43693         (test_function): Skip tests involving -0.0 on platforms where
43694         -0.0 = 0.0.
43695         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
43696         tests.
43697         * tests/test-printf-posix.h (test_function): Likewise.
43698         * tests/test-printf-posix.output: Remove all -0.0 related results.
43699         Needed for IRIX 6.5.
43700
43701 2007-05-19  Bruno Haible  <bruno@clisp.org>
43702
43703         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43704         printed as "nan0x7fffffff" instead of "nan".
43705         * tests/test-vasprintf-posix.c (test_function): Likewise.
43706         * tests/test-snprintf-posix.h (test_function): Likewise.
43707         * tests/test-sprintf-posix.h (test_function): Likewise.
43708         * tests/test-fprintf-posix.h (NaN): Remove macro.
43709         (test_function): Remove all NaN related tests.
43710         * tests/test-printf-posix.h (NaN): Remove macro.
43711         (test_function): Remove all NaN related tests.
43712         * tests/test-printf-posix.output: Remove all NaN related results.
43713         Needed for IRIX 6.5.
43714
43715 2007-05-19  Bruno Haible  <bruno@clisp.org>
43716
43717         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
43718         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43719
43720 2007-05-19  Bruno Haible  <bruno@clisp.org>
43721
43722         * lib/float_.h: New file.
43723         * m4/float_h.m4: New file.
43724         * modules/float: New file.
43725         * modules/isnanl (Dependencies): Add float.
43726         * modules/isnanl-nolibm (Dependencies): Likewise.
43727         * modules/mathl (Dependencies): Likewise.
43728         * modules/printf-frexpl (Dependencies): Likewise.
43729         * modules/signbit (Dependencies): Likewise.
43730         * modules/vasnprintf (Dependencies): Likewise.
43731         * doc/headers/float.texi: Update.
43732
43733 2007-05-19  Jim Meyering  <jim@meyering.net>
43734
43735         * lib/utimens.c (gl_futimens): Rename from futimens,
43736         now that glibc-2.6 declares futimens.
43737         * lib/utimens.h: Likewise.
43738
43739 2007-05-19  Bruno Haible  <bruno@clisp.org>
43740
43741         Avoid test failures on mingw.
43742         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
43743         * tests/test-printf-posix.sh: Likewise.
43744         * tests/test-vfprintf-posix.sh: Likewise.
43745         * tests/test-vprintf-posix.sh: Likewise.
43746
43747 2007-05-19  Bruno Haible  <bruno@clisp.org>
43748
43749         Fix *printf result for NaN, Inf, -0.0 on mingw.
43750         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
43751         * lib/vasnprintf.c: Include math.h and isnan.h.
43752         (is_infinite_or_zero): New function.
43753         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
43754         values in the %f, %F, %e, %E, %g, %G directives.
43755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
43756         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43757         gl_PRINTF_INFINITE and test its result. Invoke
43758         gl_PREREQ_VASNPRINTF_INFINITE.
43759         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43760         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43761         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43762         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43763         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43764         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43765         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43766         * doc/functions/fprintf.texi: Update.
43767         * doc/functions/printf.texi: Update.
43768         * doc/functions/snprintf.texi: Update.
43769         * doc/functions/sprintf.texi: Update.
43770         * doc/functions/vfprintf.texi: Update.
43771         * doc/functions/vprintf.texi: Update.
43772         * doc/functions/vsnprintf.texi: Update.
43773         * doc/functions/vsprintf.texi: Update.
43774
43775 2007-05-19  Bruno Haible  <bruno@clisp.org>
43776
43777         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
43778         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
43779         Instead of multiplying with 10^k, set extra_zeroes to k.
43780         (scale10_round_long_double): Remove function.
43781
43782 2007-05-18  Bruno Haible  <bruno@clisp.org>
43783
43784         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
43785         introduced on 2007-05-06.
43786
43787 2007-05-18  Bruno Haible  <bruno@clisp.org>
43788
43789         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
43790         %g directives.
43791         * tests/test-vasprintf-posix.c (test_function): Likewise.
43792         * tests/test-snprintf-posix.h (test_function): Likewise.
43793         * tests/test-sprintf-posix.h (test_function): Likewise.
43794
43795 2007-05-18  Bruno Haible  <bruno@clisp.org>
43796
43797         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
43798         (strmatch): New function.
43799         (test_function): Test the %f directive on numbers of various exponents.
43800         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
43801         (strmatch): New function.
43802         (test_function): Test the %f directive on numbers of various exponents.
43803         * tests/test-snprintf-posix.h (strmatch): New function.
43804         (test_function): Test the %f directive on numbers of various exponents.
43805         * tests/test-sprintf-posix.h (strmatch): New function.
43806         (test_function): Test the %f directive on numbers of various exponents.
43807         * tests/test-snprintf-posix.c (SIZEOF): New macro.
43808         * tests/test-sprintf-posix.c (SIZEOF): New macro.
43809         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
43810         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
43811
43812 2007-05-18  Bruno Haible  <bruno@clisp.org>
43813
43814         Add support for 'long double' number output.
43815         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
43816         * lib/vasnprintf.c: Include math.h and float+.h.
43817         (mp_limb_t): New type.
43818         (GMP_LIMB_BITS): New macro.
43819         (mp_twolimb_t): New type.
43820         (GMP_TWOLIMB_BITS): New macro.
43821         (mpn_t): New type.
43822         (multiply, divide, convert_to_decimal, decode_long_double,
43823         scale10_round_long_double, scale10_round_decimal_long_double,
43824         floorlog10l): New functions.
43825         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
43826         for the %f, %F, %e, %E, %g, %G directives.
43827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
43828         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43829         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
43830         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
43831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43832         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43833         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43835         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43838         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
43839         * modules/snprintf-posix (Depends-on): Likewise.
43840         * modules/sprintf-posix (Depends-on): Likewise.
43841         * modules/vasnprintf-posix (Depends-on): Likewise.
43842         * modules/vasprintf-posix (Depends-on): Likewise.
43843         * modules/vfprintf-posix (Depends-on): Likewise.
43844         * modules/vsnprintf-posix (Depends-on): Likewise.
43845         * modules/vsprintf-posix (Depends-on): Likewise.
43846         * modules/vasnprintf (Files): Add lib/float+.h.
43847         * doc/functions/fprintf.texi: Update.
43848         * doc/functions/printf.texi: Update.
43849         * doc/functions/snprintf.texi: Update.
43850         * doc/functions/sprintf.texi: Update.
43851         * doc/functions/vfprintf.texi: Update.
43852         * doc/functions/vprintf.texi: Update.
43853         * doc/functions/vsnprintf.texi: Update.
43854         * doc/functions/vsprintf.texi: Update.
43855
43856 2007-05-18  Bruno Haible  <bruno@clisp.org>
43857
43858         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
43859
43860 2007-05-18  Bruno Haible  <bruno@clisp.org>
43861
43862         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
43863         for printing 64-bit integers. Needed for mingw.
43864
43865 2007-05-18  Bruno Haible  <bruno@clisp.org>
43866
43867         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43868         gl_FUNC_FREXPL_WORKS.
43869         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
43870
43871 2007-05-18  Bruno Haible  <bruno@clisp.org>
43872
43873         * modules/frexpl-nolibm-tests: New file.
43874
43875         * modules/frexpl-nolibm: New file.
43876         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
43877
43878 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43879
43880         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
43881         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
43882         GCC 4.2, which otherwise issues a lot of warnings.
43883         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
43884         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
43885         Likewise.
43886         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
43887         * modules/iconv_open (iconv.h): Likewise.
43888         * modules/locale (locale.h): Likewise.
43889         * modules/netinet_in (netinet/in.h): Likewise.
43890         * modules/sys_select (sys_select.h): Likewise.
43891         * modules/sys_socket (sys/socket.h): Likewise.
43892         * modules/sys_stat (sys/stat.h): Likewise.
43893         * modules/sysexits (sysexits.h): Likewise.
43894         * modules/unistd (unistd.h): Likewise.
43895
43896 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43897
43898         * modules/closein-tests (Makefile.am): Distribute
43899         `test-closein.sh'.
43900
43901 2007-05-17  Bruno Haible  <bruno@clisp.org>
43902
43903         * tests/test-printf-posix.output: Renamed from
43904         tests/test-fprintf-posix.out.
43905         * modules/fprintf-posix-tests: Update.
43906         * modules/printf-posix-tests: Update.
43907         * modules/vfprintf-posix-tests: Update.
43908         * modules/vprintf-posix-tests: Update.
43909         * tests/test-fprintf-posix.sh: Update.
43910         * tests/test-printf-posix.sh: Update.
43911         * tests/test-vfprintf-posix.sh: Update.
43912         * tests/test-vprintf-posix.sh: Update.
43913         Reported by Ralf Wildenhues.
43914
43915 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43916
43917         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
43918         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
43919         GCC 4.2, which otherwise issues a lot of warnings.
43920         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
43921         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
43922         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
43923         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
43924         it should no longer be needed.
43925         * lib/string_.h: Likewise.
43926         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
43927         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
43928         * modules/inttypes (inttypes.h): Likewise.
43929         * modules/math (math.h): Likewise.
43930         * modules/search (search.h): Likewise.
43931         * modules/signal (signal.h): Likewise.
43932         * modules/stdint (stdint.h): Likewise.
43933         * modules/stdio (stdio.h): Likewise.
43934         * modules/stdlib (stdlib.h): Likewise.
43935         * modules/string (string.h): Likewise.
43936         * modules/sys_time (sys/time.h): Likewise.
43937         * modules/time (time.h): Likewise.
43938         * modules/wchar (wchar.h): Likewise.
43939         * modules/wctype (wtype.h): Likewise.
43940
43941 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43942
43943         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
43944
43945 2007-05-13  Bruno Haible  <bruno@clisp.org>
43946
43947         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
43948         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43949         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
43950         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43951         (gl_PREREQ_STRTOK_R): Don't require it here.
43952
43953 2007-05-13  Bruno Haible  <bruno@clisp.org>
43954
43955         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
43956         when used in C++ mode.
43957
43958 2007-05-12  Bruno Haible  <bruno@clisp.org>
43959
43960         * lib/linebuffer.h: Tweak doc.
43961         * lib/linebuffer.c: Likewise.
43962
43963 2007-05-12  James Youngman  <jay@gnu.org>
43964
43965         * lib/linebuffer.c (readlinebuffer_delim): New function,
43966         like readlinebuffer, but use a caller-specified delimiter.
43967         (readlinebuffer): Just call readlinebuffer_delim with '\n'
43968         as the delimiter.
43969         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
43970
43971 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43972
43973         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
43974         * modules/openat (Files): Remove openat-die.c.
43975         (Depends-on): Add openat-die.
43976         * modules/openat-die: New module.
43977
43978 2007-05-06  Bruno Haible  <bruno@clisp.org>
43979
43980         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
43981         Update with info about Cygwin.
43982         * doc/functions/fprintf.texi: Update.
43983         * doc/functions/printf.texi: Update.
43984         * doc/functions/snprintf.texi: Update.
43985         * doc/functions/sprintf.texi: Update.
43986         * doc/functions/vfprintf.texi: Update.
43987         * doc/functions/vprintf.texi: Update.
43988         * doc/functions/vsnprintf.texi: Update.
43989         * doc/functions/vsprintf.texi: Update.
43990         Reported by Eric Blake.
43991
43992 2007-05-06  Bruno Haible  <bruno@clisp.org>
43993
43994         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
43995         padding ourselves for the floating-point directives.
43996         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
43997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
43998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43999         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44000         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44002         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44007         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44008         * tests/test-snprintf-posix.h (test_function): Also check the width
44009         and some flags in the %f directive.
44010         * tests/test-sprintf-posix.h (test_function): Likewise.
44011         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44012         * tests/test-vasprintf-posix.c (test_function): Likewise.
44013         * doc/functions/fprintf.texi: Update.
44014         * doc/functions/printf.texi: Update.
44015         * doc/functions/snprintf.texi: Update.
44016         * doc/functions/sprintf.texi: Update.
44017         * doc/functions/vfprintf.texi: Update.
44018         * doc/functions/vprintf.texi: Update.
44019         * doc/functions/vsnprintf.texi: Update.
44020         * doc/functions/vsprintf.texi: Update.
44021
44022 2007-05-06  Bruno Haible  <bruno@clisp.org>
44023
44024         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44025         pass the ' flag character to sprintf or snprintf.
44026         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44029         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44030         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44031         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44032         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44033         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44034         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44035         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44037         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44038         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44039         flag.
44040         * tests/test-sprintf-posix.h (test_function): Likewise.
44041         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44042         * tests/test-vasprintf-posix.c (test_function): Likewise.
44043         * doc/functions/fprintf.texi: Update.
44044         * doc/functions/printf.texi: Update.
44045         * doc/functions/snprintf.texi: Update.
44046         * doc/functions/sprintf.texi: Update.
44047         * doc/functions/vfprintf.texi: Update.
44048         * doc/functions/vprintf.texi: Update.
44049         * doc/functions/vsnprintf.texi: Update.
44050         * doc/functions/vsprintf.texi: Update.
44051
44052 2007-05-01  Bruno Haible  <bruno@clisp.org>
44053
44054         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44055
44056 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44057
44058         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44059         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44060
44061 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44062
44063         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44064         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44065         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44066
44067 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44068
44069         * lib/argp-help.c (struct hol_entry): New member `ord'.
44070         (HOL_ENTRY_PTRCMP): Use ord for comparison
44071         (hol_sort): Initialize ord.
44072
44073 2007-05-01  Bruno Haible  <bruno@clisp.org>
44074
44075         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44076         Reported by Eric Blake.
44077         * doc/gnulib.texi (Function Substitutes): Update.
44078
44079 2007-05-01  Bruno Haible  <bruno@clisp.org>
44080
44081         * doc/functions.texi: Remove file, now redundant through
44082         doc/functions/*.texi.
44083
44084 2007-05-01  Bruno Haible  <bruno@clisp.org>
44085
44086         * modules/argp (Depends-on): Add sleep.
44087
44088 2007-05-01  Bruno Haible  <bruno@clisp.org>
44089
44090         * modules/sleep-tests: New file.
44091         * tests/test-sleep.c: New file.
44092
44093         * modules/sleep: New file.
44094         * lib/sleep.c: New file.
44095         * m4/sleep.m4: New file.
44096         * lib/unistd_.h (sleep): New declaration.
44097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44098         HAVE_SLEEP.
44099         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44100         * doc/functions/sleep.texi: Document the sleep module.
44101
44102 2007-05-01  Bruno Haible  <bruno@clisp.org>
44103
44104         * lib/sigprocmask.h: Remove file.
44105         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44106         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44107         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44108         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44109         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44110         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44111         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44112         HAVE_SIGSET_T as a shell variable.
44113         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44114         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44115         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44116         (Depends-on): Add signal. Remove verify.
44117         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44118         (Include): Mention <signal.h> instead of sigprocmask.h.
44119         * NEWS: Mention the change.
44120         * lib/fatal-signal.c: Don't include sigprocmask.h.
44121
44122 2007-05-01  Bruno Haible  <bruno@clisp.org>
44123
44124         * modules/signal: New file.
44125         * lib/signal_.h: New file.
44126         * m4/signal_h.m4: New file.
44127
44128 2007-05-01  Bruno Haible  <bruno@clisp.org>
44129
44130         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44131         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44132         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44133         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44134
44135 2007-05-01  Bruno Haible  <bruno@clisp.org>
44136
44137         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44138         configure time.
44139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44140         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44141         * modules/sys_stat (Makefile.am): Substitute their values into
44142         sys/stat.h.
44143
44144 2007-05-01  Bruno Haible  <bruno@clisp.org>
44145
44146         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44147         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44148         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44149
44150 2007-05-01  Bruno Haible  <bruno@clisp.org>
44151
44152         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44153         'assert' module here.
44154
44155 2007-05-01  Bruno Haible  <bruno@clisp.org>
44156
44157         * doc/functions/*.texi: New files.
44158         * doc/functions/google-ranking.txt: New file.
44159         * doc/gnulib.texi (Function Substitutes): New chapter.
44160         (ctime, inet_ntoa): Remove sections.
44161         * doc/ctime.texi: Remove file.
44162         * doc/inet_ntoa.texi: Remove file.
44163         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44164         dependencies.
44165         (%.info): New rule, specifying a --reference-limit.
44166
44167 2007-05-01  Bruno Haible  <bruno@clisp.org>
44168
44169         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44170
44171 2007-05-01  Bruno Haible  <bruno@clisp.org>
44172
44173         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44174         the portability of 'mkdir' to mingw systems.
44175
44176 2007-05-01  Bruno Haible  <bruno@clisp.org>
44177
44178         * doc/headers/google-ranking.txt: New file.
44179
44180 2007-04-30  Eric Blake  <ebb9@byu.net>
44181
44182         Prefer fseeko to fseek.
44183         * modules/getpass (Depends-on): Add fseeko.
44184         * lib/getpass.c (getpass): Use fseeko, not fseek.
44185
44186 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44187
44188         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44189         assumes the sorting is stable, while most qsort implementations
44190         are not.  Use argument addresses to ensure they never compare as
44191         equal.
44192
44193         * tests/test-argp-2.sh (usage-indent test): Fix output
44194         (func_compare): Restore diff options
44195         * tests/test-argp.c: Restore #include "progname.h"
44196
44197 2007-04-29  Bruno Haible  <bruno@clisp.org>
44198
44199         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44200         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44201         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44203         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44204         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44205         (TESTS, check_PROGRAMS): Add test-snprintf.
44206         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44207         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44208         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44209         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44210         assertions that fail on HP-UX, OSF/1, or IRIX.
44211         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44212
44213 2007-04-29  Bruno Haible  <bruno@clisp.org>
44214
44215         * MODULES.html.sh (posix_functions): Remove 'contents'.
44216
44217 2007-04-29  Karl Berry  <karl@gnu.org>
44218
44219         * config/srclist.txt (gendocs_template_min): new entry.
44220
44221 2007-04-29  Bruno Haible  <bruno@clisp.org>
44222
44223         Work around fpurge bug on BSD systems.
44224         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44225         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44226         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44227         fpurge to rpl_fpurge if the system already has this function.
44228         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44229         the case where the system already has this function. Correct invariants
44230         on BSD systems.
44231         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44232         BSD systems.
44233
44234 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44235
44236         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44237         proposed by Sven Verdoolaege.
44238
44239         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44240         options.
44241         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44242         (usage and help tests): Update
44243
44244 2007-04-29  Bruno Haible  <bruno@clisp.org>
44245
44246         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44247         Print more information in case of failure. Disable a test on BeOS.
44248
44249 2007-04-29  Bruno Haible  <bruno@clisp.org>
44250
44251         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44252         This helps debugging on systems on which no gdb is available.
44253
44254 2007-04-29  Bruno Haible  <bruno@clisp.org>
44255
44256         * lib/freading.h: Improve comments.
44257         * lib/fwriting.h: Likewise.
44258         * tests/test-freading.c (main): Don't check freading immediately after
44259         repositioning. Needed for glibc.
44260
44261 2007-04-29  Bruno Haible  <bruno@clisp.org>
44262
44263         * lib/freading.c (freading): Trivial simplification.
44264
44265 2007-04-28  Bruno Haible  <bruno@clisp.org>
44266
44267         * tests/test-fwriting.c (main): Also test the interaction between
44268         fflush and fwriting.
44269         * modules/fwriting-tests (Depends-on): Add fflush.
44270
44271         * tests/test-freading.c (main): Also test the interaction between
44272         fflush and freading.
44273         * modules/freading-tests (Depends-on): Add fflush.
44274
44275 2007-04-28  Bruno Haible  <bruno@clisp.org>
44276
44277         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44278         fseeko and ftello.
44279         Suggested by Eric Blake.
44280
44281 2007-04-28  Jim Meyering  <jim@meyering.net>
44282
44283         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44284         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44285         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44286
44287 2007-04-27  Eric Blake  <ebb9@byu.net>
44288
44289         * doc/headers/assert.texi (assert.h): Document assert module use.
44290
44291 2007-04-27  Bruno Haible  <bruno@clisp.org>
44292
44293         * doc/headers/*.texi: New files.
44294         * doc/gnulib.texi (Header File Substitutes): New chapter.
44295         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44296         dependencies.
44297         (standards.info ,standards.html, standards.dvi): Update dependencies.
44298         (mostlyclean, clean): New targets.
44299
44300 2007-04-27  Bruno Haible  <bruno@clisp.org>
44301
44302         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44303         * modules/sysexits (Files, Makefile.am): Update.
44304
44305         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44306         * modules/sys_socket (Files, Makefile.am): Update.
44307
44308         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44309         * modules/sys_stat (Files, Makefile.am): Update.
44310
44311 2007-04-27  Eric Blake  <ebb9@byu.net>
44312
44313         * lib/freading.h: Improve comments.
44314         * lib/fwriting.h: Likewise.
44315         * lib/fflush.c: Likewise.
44316
44317         Fix closein for mingw.
44318         * modules/closein-tests: Add tests for closein.
44319         * tests/test-closein.c: New file.
44320         * tests/test-closein.sh: Likewise.
44321         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44322         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44323
44324 2007-04-27  Bruno Haible  <bruno@clisp.org>
44325
44326         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44327         version is < 6.
44328         * lib/math_.h [__DECC]: Likewise.
44329         * lib/stdio_.h [__DECC]: Likewise.
44330         * lib/stdlib_.h [__DECC]: Likewise.
44331         * lib/string_.h [__DECC]: Likewise.
44332         * lib/time_.h [__DECC]: Likewise.
44333         * lib/wchar_.h [__DECC]: Likewise.
44334         * lib/wctype_.h [__DECC]: Likewise.
44335
44336 2007-04-27  Bruno Haible  <bruno@clisp.org>
44337
44338         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44339
44340 2007-04-27  Bruno Haible  <bruno@clisp.org>
44341
44342         * lib/fflush.c: Add comments.
44343         * modules/fpurge-tests (Depends-on): Add fflush.
44344         * modules/freadable-tests (Depends-on): Likewise.
44345         * modules/fwritable-tests (Depends-on): Likewise.
44346
44347 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
44348
44349         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
44350         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
44351         Report by Bruno Haible <bruno@clisp.org>.
44352
44353 2007-04-26  Eric Blake  <ebb9@byu.net>
44354
44355         Fix fflush on mingw.
44356         * modules/fflush (Depends-on): Add freading.
44357         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
44358         but unread data.
44359
44360 2007-04-26  Eric Blake  <ebb9@byu.net>
44361         and Bruno Haible  <bruno@clisp.org>
44362
44363         Implement freading and fwriting.
44364         * lib/freading.c: New file.
44365         * lib/freading.h: Likewise.
44366         * m4/freading.m4: Likewise.
44367         * modules/freading: Likewise.
44368         * modules/freading-tests: Likewise.
44369         * tests/test-freading.c: Likewise.
44370         * lib/fwriting.c: New file.
44371         * lib/fwriting.h: Likewise.
44372         * m4/fwriting.m4: Likewise.
44373         * modules/fwriting: Likewise.
44374         * modules/fwriting-tests: Likewise.
44375         * tests/test-fwriting.c: Likewise.
44376         * MODULES.html.sh (File stream based Input/Output): Mention them.
44377
44378 2007-04-26  Bruno Haible  <bruno@clisp.org>
44379
44380         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44381         'long' when we assume it.
44382         Suggested by Eric Blake.
44383
44384 2007-04-26  Bruno Haible  <bruno@clisp.org>
44385
44386         Ensure fseeko, ftello are declared on glibc systems.
44387         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44388         * modules/fseeko (configure.ac-early): Likewise.
44389         * modules/ftello (configure.ac-early): Likewise.
44390         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44391         AC_FUNC_FSEEKO for this.
44392         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44393         (gl_CHECK_FSEEKO): Remove macro.
44394
44395 2007-04-26  Bruno Haible  <bruno@clisp.org>
44396
44397         * tests/test-fflush.c (main): Also check the ftell result after
44398         fflush and fseek/fseeko.
44399         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44400         file descriptor position cache in the stream.
44401         * lib/fseeko.c (rpl_fseeko): Likewise.
44402
44403 2007-04-26  Bruno Haible  <bruno@clisp.org>
44404
44405         * modules/fflush-tests (Depends-on): Add fseeko.
44406
44407 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44408             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44409
44410         * lib/argz_.h: ensure error_t definition is obtained in same
44411         mechanism system argz.h would have.
44412         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
44413         argz facilities are known bad.  Err on the side of caution if
44414         cross-compiling.
44415
44416 2007-04-25  Eric Blake  <ebb9@byu.net>
44417
44418         * lib/fpurge.c (includes): Use stdlib.h for free.
44419         * tests/test-fflush.c (main): Also test fflush-fseeko.
44420
44421 2007-04-25  Bruno Haible  <bruno@clisp.org>
44422
44423         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
44424         * lib/fseeko.c: New file.
44425         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
44426         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44427         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
44428         gl_FUNC_FSEEKO.
44429         (gl_FUNC_FSEEKO): Invoke it.
44430         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
44431         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
44432         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
44433
44434 2007-04-25  Bruno Haible  <bruno@clisp.org>
44435
44436         * modules/fflush (Depends-on): Add ftello.
44437
44438 2007-04-25  Bruno Haible  <bruno@clisp.org>
44439
44440         * modules/ftello-tests: New file.
44441         * tests/test-ftello.c: New file.
44442
44443         * modules/ftello: New file.
44444         * m4/ftello.m4: New file.
44445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
44446         HAVE_FTELLO.
44447         * lib/stdio_.h (ftello): New declaration.
44448         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
44449         HAVE_FTELLO.
44450
44451 2007-04-25  Bruno Haible  <bruno@clisp.org>
44452
44453         * modules/fseeko-tests: New file.
44454         * tests/test-fseeko.c: New file.
44455
44456         * modules/fseeko: New file.
44457         * m4/fseeko.m4: New file.
44458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
44459         HAVE_FSEEKO.
44460         * lib/stdio_.h (fseeko): New declaration.
44461         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
44462         HAVE_FSEEKO.
44463
44464 2007-04-25  Bruno Haible  <bruno@clisp.org>
44465
44466         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
44467
44468 2007-04-25  Bruno Haible  <bruno@clisp.org>
44469
44470         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
44471         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
44472         * tests/test-unistd.c: Likewise.
44473         * tests/test-fcntl.c: Likewise.
44474
44475 2007-04-23  Eric Blake  <ebb9@byu.net>
44476
44477         * lib/fflush.c: Fix missing include.
44478         Reported by Bruno Haible.
44479
44480 2007-04-23  Bruno Haible  <bruno@clisp.org>
44481
44482         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
44483         Reported by Eric Blake.
44484
44485 2007-04-23  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
44488
44489 2007-04-23  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
44492
44493 2007-04-23  Bruno Haible  <bruno@clisp.org>
44494
44495         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
44496         Needed on HP-UX 11.
44497
44498 2007-04-16  Eric Blake  <ebb9@byu.net>
44499
44500         Make fflush rely on fpurge.
44501         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
44502         open coding all variants.
44503         * modules/fflush (Depends-on): Add fpurge and unistd.
44504         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
44505         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
44506
44507         Fix --with-tests compilation on cygwin.
44508         * modules/argmatch-tests (Makefile.am): List gnulib library first
44509         in LDADD.
44510         * modules/argp-tests (Makefile.am): Likewise.
44511         * modules/array-list-tests (Makefile.am): Likewise.
44512         * modules/array-oset-tests (Makefile.am): Likewise.
44513         * modules/avltree-list-tests (Makefile.am): Likewise.
44514         * modules/avltree-oset-tests (Makefile.am): Likewise.
44515         * modules/avltreehash-list-tests (Makefile.am): Likewise.
44516         * modules/carray-list-tests (Makefile.am): Likewise.
44517         * modules/dirname-tests (Makefile.am): Likewise.
44518         * modules/frexp-tests (Makefile.am): Likewise.
44519         * modules/isnanl-tests (Makefile.am): Likewise.
44520         * modules/linked-list-tests (Makefile.am): Likewise.
44521         * modules/linkedhash-list-tests (Makefile.am): Likewise.
44522         * modules/lock-tests (Makefile.am): Likewise.
44523         * modules/rbtree-list-tests (Makefile.am): Likewise.
44524         * modules/rbtree-oset-tests (Makefile.am): Likewise.
44525         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
44526         * modules/tls-tests (Makefile.am): Likewise.
44527         * modules/tsearch-tests (Makefile.am): Likewise.
44528         * modules/xvasprintf-tests (Makefile.am): Likewise.
44529
44530         Fix fpurge for cygwin.
44531         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
44532         value.
44533         * modules/fpurge-tests (Depends-on): Clean up trash.
44534
44535 2007-04-16  Simon Josefsson  <simon@josefsson.org>
44536
44537         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
44538
44539         * m4/autobuild.m4: Re-indent.
44540
44541 2007-04-13  Bruno Haible  <bruno@clisp.org>
44542
44543         * modules/fpurge-tests: New file.
44544         * tests/test-fpurge.c: New file.
44545
44546         * modules/fpurge: New file.
44547         * lib/fpurge.h: New file.
44548         * lib/fpurge.c: New file.
44549         * m4/fpurge.m4: New file.
44550
44551 2007-04-13  Bruno Haible  <bruno@clisp.org>
44552
44553         * modules/fbufmode-tests: New file.
44554         * tests/test-fbufmode.c: New file.
44555
44556         * modules/fbufmode: New file.
44557         * lib/fbufmode.h: New file.
44558         * lib/fbufmode.c: New file.
44559         * m4/fbufmode.m4: New file.
44560
44561 2007-04-13  Bruno Haible  <bruno@clisp.org>
44562
44563         * modules/fwritable-tests: New file.
44564         * tests/test-fwritable.c: New file.
44565
44566         * modules/fwritable: New file.
44567         * lib/fwritable.h: New file.
44568         * lib/fwritable.c: New file.
44569         * m4/fwritable.m4: New file.
44570
44571 2007-04-13  Bruno Haible  <bruno@clisp.org>
44572
44573         * modules/freadable-tests: New file.
44574         * tests/test-freadable.c: New file.
44575
44576         * modules/freadable: New file.
44577         * lib/freadable.h: New file.
44578         * lib/freadable.c: New file.
44579         * m4/freadable.m4: New file.
44580
44581 2007-04-13  Bruno Haible  <bruno@clisp.org>
44582
44583         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
44584         MOSTLYCLEANFILES.
44585
44586 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44587
44588         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
44589         gzip bootstrap.conf to avoid dragging in i18n machinery.
44590         (gnulib_tool_option): Use it.
44591
44592 2007-04-13  Bruno Haible  <bruno@clisp.org>
44593
44594         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
44595         %F directives.
44596         * tests/test-vasprintf-posix.c (test_function): Likewise.
44597         * tests/test-snprintf-posix.h (test_function): Likewise.
44598         * tests/test-sprintf-posix.h (test_function): Likewise.
44599         * tests/test-fprintf-posix.h (test_function): Likewise.
44600         * tests/test-printf-posix.h (test_function): Likewise.
44601         * tests/test-fprintf-posix.out: Likewise.
44602
44603 2007-04-13  Bruno Haible  <bruno@clisp.org>
44604
44605         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
44606         * modules/tls-tests (configure.ac): Likewise.
44607         Reported by Arto C. Nirkko <anirkko@insel.ch>.
44608
44609 2007-04-13  Bruno Haible  <bruno@clisp.org>
44610
44611         * lib/tls.c (glthread_tls_get): Fix return type.
44612         Patch by Arto C. Nirkko <anirkko@insel.ch>.
44613
44614 2007-04-12  Eric Blake  <ebb9@byu.net>
44615
44616         * modules/gettime (Depends-on): Remove gettime.
44617         Reported by Dmitry V. Levin.
44618
44619 2007-04-12  Bruno Haible  <bruno@clisp.org>
44620
44621         * modules/fflush (Include): Mention <stdio.h>.
44622         * modules/strtoimax (Include): Mention <inttypes.h>.
44623         * modules/strtoumax (Include): Likewise.
44624
44625 2007-04-12  Eric Blake  <ebb9@byu.net>
44626
44627         * .cvsignore: New file.
44628         * .gitignore: Likewise.
44629
44630 2007-04-12  Bruno Haible  <bruno@clisp.org>
44631
44632         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
44633         not before, since $(LDADD) often contains libgnu.a.
44634         * modules/striconv-tests (test_striconv_LDADD): Likewise.
44635         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
44636         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
44637         Needed on Cygwin.
44638
44639 2007-04-12  Eric Blake  <ebb9@byu.net>
44640
44641         Work around glibc's failure to flush stdin on fclose.
44642         * lib/closein.c (close_stdin): Flush stdin before closing.
44643
44644         Work around glibc's failure to reset seekable stdin on exit.
44645         * modules/closein: New module.
44646         * lib/closein.c: New file.
44647         * lib/closein.h: Likewise.
44648         * m4/closein.m4: Likewise.
44649         * MODULES.html.sh (File stream based Input/Output): Document it.
44650
44651 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44652
44653         * gnulib-tool: Rename generated 'autobuild' script to
44654         'do-autobuild' in --create-megatestdir output.
44655
44656         * doc/gnulib.texi (Build robot for gnulib): Fix.
44657
44658 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44659
44660         * modules/sysexits (Depends-on): Add absolute-header.
44661
44662 2007-04-12  Eric Blake  <ebb9@byu.net>
44663
44664         No need to preserve errno on success.
44665         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
44666         Reported by Bruno Haible.
44667
44668 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44669
44670         * MODULES.html.sh (Support for maintaining and releasing
44671         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
44672
44673 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44674
44675         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
44676
44677 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44678
44679         * modules/autobuild: New module.
44680
44681         * m4/autobuild.m4: New file.
44682
44683 2007-04-11  Bruno Haible  <bruno@clisp.org>
44684
44685         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
44686         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
44687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
44688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
44689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
44696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
44699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
44702         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44703         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44704         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
44705         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44706         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
44708         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44709         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44710         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
44711         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44712         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44713         Reported by Eric Blake.
44714
44715 2007-04-11  Bruno Haible  <bruno@clisp.org>
44716
44717         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
44718
44719 2007-04-10  Bruno Haible  <bruno@clisp.org>
44720
44721         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
44722         for NaN and Infinity. Needed on FreeBSD 6.1.
44723         * tests/test-vasnprintf-posix.c (test_function): Undo last change
44724         regarding results for "%010a" of Infinity and NaN.
44725         * tests/test-vasprintf-posix.c (test_function): Likewise.
44726         * tests/test-snprintf-posix.h (test_function): Likewise.
44727         * tests/test-sprintf-posix.h (test_function): Likewise.
44728         * tests/test-fprintf-posix.h (test_function): Likewise.
44729         * tests/test-printf-posix.h (test_function): Likewise.
44730         * tests/test-fprintf-posix.out: Likewise.
44731
44732 2007-04-10  Bruno Haible  <bruno@clisp.org>
44733
44734         * modules/locale-tests: New file.
44735         * tests/test-locale.c: New file.
44736
44737         * modules/locale: New file.
44738         * lib/locale_.h: New file.
44739         * m4/locale_h.m4: New file.
44740
44741 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
44742             Bruno Haible  <bruno@clisp.org>
44743
44744         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
44745         be determined, test for availability of the copysignf, copysign,
44746         copysignl functions.
44747         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
44748         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
44749         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
44750
44751 2007-04-09  Eric Blake  <ebb9@byu.net>
44752
44753         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
44754         * modules/stdio (Makefile.am): Support fflush.
44755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44756         * modules/fflush: New file.
44757         * lib/fflush.c: Likewise.
44758         * m4/fflush.m4: Likewise.
44759         * modules/fflush-tests: New test.
44760         * tests/test-fflush.c: Likewise.
44761         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
44762
44763 2007-04-06  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
44766         (VASNPRINTF): Use signbit for faster determination whether to print a
44767         minus sign.
44768         * modules/vasnprintf (Files): Remove lib/float+.h.
44769         * modules/fprintf-posix (Depends-on): Add signbit.
44770         * modules/snprintf-posix (Depends-on): Likewise.
44771         * modules/sprintf-posix (Depends-on): Likewise.
44772         * modules/vasnprintf-posix (Depends-on): Likewise.
44773         * modules/vasprintf-posix (Depends-on): Likewise.
44774         * modules/vfprintf-posix (Depends-on): Likewise.
44775         * modules/vsnprintf-posix (Depends-on): Likewise.
44776         * modules/vsprintf-posix (Depends-on): Likewise.
44777
44778 2007-04-06  Bruno Haible  <bruno@clisp.org>
44779
44780         * tests/test-frexp.c (main): Test also the sign bit of zero results.
44781         * tests/test-frexpl.c (main): Likewise.
44782         * tests/test-ldexpl.c (main): Likewise.
44783         * modules/frexp-tests (Depends-on): Add signbit.
44784         * modules/frexpl-tests (Depdends-on): Likewise.
44785         * modules/ldexpl-tests (Depdends-on): Likewise.
44786
44787 2007-04-06  Bruno Haible  <bruno@clisp.org>
44788
44789         * modules/signbit-tests: New file.
44790         * tests/test-signbit.c: New file.
44791
44792         * modules/signbit: New file.
44793         * lib/signbitf.c: New file.
44794         * lib/signbitd.c: New file.
44795         * lib/signbitl.c: New file.
44796         * m4/signbit.m4: New file.
44797         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
44798         (signbit): New macro.
44799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
44800         REPLACE_SIGNBIT.
44801         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
44802         REPLACE_FREXPL into math.h.
44803
44804 2007-04-06  Bruno Haible  <bruno@clisp.org>
44805
44806         * modules/isnanf-nolibm-tests: New file.
44807         * tests/test-isnanf.c: New file.
44808
44809         * modules/isnanf-nolibm: New file.
44810         * lib/isnanf.h: New file.
44811         * lib/isnanf.c: New file.
44812         * lib/isnan.c: Consider the USE_FLOAT macro.
44813         * m4/isnanf.m4: New file.
44814
44815 2007-04-06  Bruno Haible  <bruno@clisp.org>
44816
44817         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
44818         (Link): New section.
44819
44820         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
44821
44822 2007-04-06  Bruno Haible  <bruno@clisp.org>
44823
44824         Assume the 'long double' type.
44825         * m4/longdouble.m4: Remove file.
44826         * config/srclist.txt: Don't mention longdouble.m4.
44827         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
44828         * lib/float+.h: Likewise.
44829         * lib/frexp.c: Likewise.
44830         * lib/printf-args.h: Likewise.
44831         * lib/printf-args.c: Likewise.
44832         * lib/printf-frexp.c: Likewise.
44833         * lib/printf-parse.c: Likewise.
44834         * lib/vasnprintf.c: Likewise.
44835         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
44836         * m4/intl.m4: Likewise.
44837         * m4/isnanl.m4: Likewise.
44838         * m4/printf.m4: Likewise.
44839         * m4/printf-frexpl.m4: Likewise.
44840         * m4/vasnprintf.m4: Likewise.
44841         * modules/allocsa (Files): Remove m4/longdouble.m4.
44842         * modules/gettext (Files): Likewise.
44843         * modules/relocatable-prog-wrapper (Files): Likewise.
44844         * modules/vasnprintf (Files): Likewise.
44845         * modules/isnanl (Files): Likewise.
44846         (Include): Simplify.
44847         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
44848         (Include): Simplify.
44849         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
44850         (Include): Simplify.
44851         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
44852         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44853         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
44854         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44855         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44856         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44857         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
44858         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44859         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44860         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44861         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
44862         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44863         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
44864         * tests/test-isnanl.c: Likewise.
44865         * tests/test-snprintf-posix.h: Likewise.
44866         * tests/test-sprintf-posix.h: Likewise.
44867         * tests/test-vasnprintf-posix.c: Likewise.
44868         * tests/test-vasnprintf-posix2.c: Likewise.
44869         * tests/test-vasprintf-posix.c: Likewise.
44870
44871 2007-04-06  Bruno Haible  <bruno@clisp.org>
44872
44873         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
44874         * lib/math_.h [__DECC]: Include the overridden include file through
44875         #include_next, outside the double-inclusion guard.
44876         * lib/stdio_.h [__DECC]: Likewise.
44877         * lib/stdlib_.h [__DECC]: Likewise.
44878         * lib/string_.h [__DECC]: Likewise.
44879         * lib/time_.h [__DECC]: Likewise.
44880         * lib/wchar_.h [__DECC]: Likewise.
44881         * lib/wctype_.h [__DECC]: Likewise.
44882         * lib/inttypes_.h [__DECC]: Likewise.
44883         Reported by Albert Chin <china@thewrittenword.com> in
44884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
44885
44886 2007-04-04  Eric Blake  <ebb9@byu.net>
44887
44888         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
44889         1.5.x.
44890
44891 2007-04-04  Bruno Haible  <bruno@clisp.org>
44892
44893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
44894         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
44895
44896 2007-04-04  Bruno Haible  <bruno@clisp.org>
44897
44898         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
44899         results for "%010a" of Infinity and NaN.
44900         * tests/test-vasprintf-posix.c (test_function): Likewise.
44901         * tests/test-snprintf-posix.h (test_function): Likewise.
44902         * tests/test-sprintf-posix.h (test_function): Likewise.
44903         * tests/test-fprintf-posix.h (test_function): Remove these tests.
44904         * tests/test-printf-posix.h (test_function): Likewise.
44905         * tests/test-fprintf-posix.out: Update.
44906         Needed for FreeBSD 6.1.
44907
44908 2007-04-04  Bruno Haible  <bruno@clisp.org>
44909
44910         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
44911         directly used by the gnulib modules nor by gnulib-tool.
44912
44913 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
44914
44915         * DEPENDENCIES: Give overall description of version dependency
44916         desirability.  Use more-typical names for apps.
44917         Add shell, coreutils, diffutils, grep, tar, gzip.
44918
44919 2007-04-04  Simon Josefsson  <simon@josefsson.org>
44920
44921         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
44922
44923 2007-04-04  Karl Berry  <karl@gnu.org>
44924
44925         * MODULES.html.sh (func_module): missing '.
44926
44927 2007-04-03  Bruno Haible  <bruno@clisp.org>
44928
44929         * modules/argmatch-tests (Makefile.am): New variable
44930         test_argmatch_LDADD.
44931         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
44932         * modules/array-list-tests (Makefile.am): New variable
44933         test_array_list_LDADD.
44934         * modules/array-oset-tests (Makefile.am): New variable
44935         test_array_oset_LDADD.
44936         * modules/avltree-list-tests (Makefile.am): New variable
44937         test_avltree_list_LDADD.
44938         * modules/avltree-oset-tests (Makefile.am): New variable
44939         test_avltree_oset_LDADD.
44940         * modules/avltreehash-list-tests (Makefile.am): New variable
44941         test_avltreehash_list_LDADD.
44942         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
44943         test_canonicalize_lgpl_LDADD.
44944         * modules/carray-list-tests (Makefile.am): New variable
44945         test_carray_list_LDADD.
44946         * modules/dirname-tests (Makefile.am): New variable
44947         test_dirname_LDADD.
44948         * modules/linked-list-tests (Makefile.am): New variable
44949         test_linked_list_LDADD.
44950         * modules/linkedhash-list-tests (Makefile.am): New variable
44951         test_linkedhash_list_LDADD.
44952         * modules/rbtree-list-tests (Makefile.am): New variable
44953         test_rbtree_list_LDADD.
44954         * modules/rbtree-oset-tests (Makefile.am): New variable
44955         test_rbtree_oset_LDADD.
44956         * modules/rbtreehash-list-tests (Makefile.am): New variable
44957         test_rbtreehash_list_LDADD.
44958         * modules/xvasprintf-tests (Makefile.am): New variable
44959         test_xvasprintf_LDADD.
44960         Reported by Eric Blake.
44961
44962 2007-04-03  Eric Blake  <ebb9@byu.net>
44963
44964         * DEPENDENCIES: Weaken m4 requirements.
44965
44966 2007-04-03  Bruno Haible  <bruno@clisp.org>
44967
44968         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
44969         * modules/isnanl-tests (configure.ac): Likewise.
44970
44971 2007-04-03  Ben Pfaff  <blp@gnu.org>
44972
44973         * modules/iconv_open: Add $(srcdir)/ to source directory
44974         references in Makefile fragments that call gperf, to fix VPATH
44975         builds.
44976
44977 2007-04-03  Bruno Haible  <bruno@clisp.org>
44978
44979         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
44980         * lib/ldexpl.c: Undo last change.
44981
44982 2007-04-03  Bruno Haible  <bruno@clisp.org>
44983
44984         * modules/printf-frexpl (Depends-on): Undo last change.
44985         (Files): Add m4/ldexpl.m4.
44986
44987 2007-04-03  Bruno Haible  <bruno@clisp.org>
44988
44989         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
44990         * modules/isnanl (Link): New section.
44991
44992         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
44993         * modules/frexp (Link): New section.
44994
44995         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
44996         * modules/frexpl (Link): New section.
44997
44998         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
44999         * modules/ldexpl (Link): New section.
45000
45001 2007-04-03  Bruno Haible  <bruno@clisp.org>
45002
45003         * modules/TEMPLATE-EXTENDED: New file.
45004         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45005
45006 2007-04-03  Bruno Haible  <bruno@clisp.org>
45007
45008         * DEPENDENCIES: New file.
45009         Suggested by Simon Josefsson.
45010
45011 2007-04-03  Bruno Haible  <bruno@clisp.org>
45012
45013         * doc/gnulib.texi: Escape @.
45014
45015 2007-04-03  James Youngman  <jay@gnu.org>
45016         and Paul Eggert  <eggert@cs.ucla.edu>
45017
45018         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45019         birthtime on all systems that have birthtime, not just those which
45020         use st_birthtimensec rather than st_birthtim.  Putting zero in
45021         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45022         that the birth time is not available for files on an NFS mount.
45023
45024 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45025
45026         * modules/memxor: Move back from crypto/, suggested by Bruno.
45027         * modules/crypto/hmac-sha1: Fix memxor dependency.
45028
45029         * modules/crypto/gc: Moved from ../.
45030
45031 2007-04-02  Eric Blake  <ebb9@byu.net>
45032
45033         * lib/ldexpl.c (includes): Avoid libm.
45034
45035         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45036
45037 2007-04-02  Bruno Haible  <bruno@clisp.org>
45038
45039         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45040         on IRIX.
45041
45042 2007-04-02  Bruno Haible  <bruno@clisp.org>
45043
45044         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45045         x86 or x86_64 platforms running MacOS X.
45046         Reported by Ryan Schmidt <@ryandesign.com>.
45047
45048 2007-04-02  Bruno Haible  <bruno@clisp.org>
45049
45050         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45051         i386.
45052
45053 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45054
45055         * modules/crypto/arcfour: Moved from ../.
45056         * modules/crypto/arcfour-tests: Moved from ../.
45057         * modules/crypto/arctwo: Moved from ../.
45058         * modules/crypto/arctwo-tests: Moved from ../.
45059         * modules/crypto/des: Moved from ../.
45060         * modules/crypto/des-tests: Moved from ../.
45061         * modules/crypto/gc-arcfour: Moved from ../.
45062         * modules/crypto/gc-arcfour-tests: Moved from ../.
45063         * modules/crypto/gc-arctwo: Moved from ../.
45064         * modules/crypto/gc-arctwo-tests: Moved from ../.
45065         * modules/crypto/gc-des: Moved from ../.
45066         * modules/crypto/gc-des-tests: Moved from ../.
45067         * modules/crypto/gc-hmac-md5: Moved from ../.
45068         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45069         * modules/crypto/gc-hmac-sha1: Moved from ../.
45070         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45071         * modules/crypto/gc-md2: Moved from ../.
45072         * modules/crypto/gc-md2-tests: Moved from ../.
45073         * modules/crypto/gc-md4: Moved from ../.
45074         * modules/crypto/gc-md4-tests: Moved from ../.
45075         * modules/crypto/gc-md5: Moved from ../.
45076         * modules/crypto/gc-md5-tests: Moved from ../.
45077         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45078         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45079         * modules/crypto/gc-random: Moved from ../.
45080         * modules/crypto/gc-rijndael: Moved from ../.
45081         * modules/crypto/gc-rijndael-tests: Moved from ../.
45082         * modules/crypto/gc-sha1: Moved from ../.
45083         * modules/crypto/gc-sha1-tests: Moved from ../.
45084         * modules/crypto/gc-tests: Moved from ../.
45085         * modules/crypto/hmac-md5: Moved from ../.
45086         * modules/crypto/hmac-md5-tests: Moved from ../.
45087         * modules/crypto/hmac-sha1: Moved from ../.
45088         * modules/crypto/hmac-sha1-tests: Moved from ../.
45089         * modules/crypto/md2: Moved from ../.
45090         * modules/crypto/md2-tests: Moved from ../.
45091         * modules/crypto/md4: Moved from ../.
45092         * modules/crypto/md4-tests: Moved from ../.
45093         * modules/crypto/md5: Moved from ../.
45094         * modules/crypto/md5-tests: Moved from ../.
45095         * modules/crypto/memxor: Moved from ../.
45096         * modules/crypto/rijndael: Moved from ../.
45097         * modules/crypto/rijndael-tests: Moved from ../.
45098         * modules/crypto/sha1: Moved from ../.
45099
45100 2007-03-30  James Youngman  <jay@gnu.org>
45101
45102         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45103         rename() to change the ctime of a file (because ctime is unaffected
45104         by rename on jfs2 on AIX 5.1).
45105         (main): Start by doing cleanup, in case a previous run failed leaving
45106         test files behind.
45107
45108 2007-03-31  Bruno Haible  <bruno@clisp.org>
45109
45110         Support old proprietary implementations of iconv.
45111         * modules/iconv_open: New file.
45112         * lib/iconv_.h: New file.
45113         * m4/iconv_h.m4: New file.
45114         * lib/iconv_open.c: New file.
45115         * lib/iconv_open-aix.gperf: New file.
45116         * lib/iconv_open-hpux.gperf: New file.
45117         * lib/iconv_open-irix.gperf: New file.
45118         * lib/iconv_open-osf.gperf: New file.
45119         * m4/iconv_open.m4: New file.
45120         * modules/linebreak (Depends-on): Add iconv_open.
45121         * modules/striconv (Depends-on): Likewise.
45122         * modules/striconveh (Depends-on): Likewise.
45123         * modules/unicodeio (Depends-on): Likewise.
45124         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45125         (iconv_t)(-1).
45126         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45127         conversion if cd is (iconv_t)(-1).
45128         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45129         is not possible.
45130
45131 2007-03-31  Bruno Haible  <bruno@clisp.org>
45132
45133         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45134         work on Solaris either. Protect also second use of "autodetect_jp".
45135
45136 2007-03-31  Bruno Haible  <bruno@clisp.org>
45137
45138         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45139         the function is not present.
45140
45141 2007-03-31  Bruno Haible  <bruno@clisp.org>
45142
45143         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45144         the function is not present.
45145
45146 2007-03-31  Bruno Haible  <bruno@clisp.org>
45147
45148         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45149         a bug in HP-UX iconv_open().
45150
45151 2007-03-31  Bruno Haible  <bruno@clisp.org>
45152
45153         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45154         (Mathematics <math.h>): New section, add fpieee.
45155         (Input/output <stdio.h>): Add fseterr.
45156         (Mathematics <math.h>): New section, add printf-frexp.
45157         (Container data structures): Add sublist.
45158         (Core language properties): Add fpucw, inline.
45159         (Functions for greatest-width integer types <inttypes.h>): Add
45160         imaxabs, imaxdiv, inttypes.
45161         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45162         isnanl-nolibm, ldexp.
45163         (Mathematics <math.h>): New section, add printf-frexpl.
45164         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45165         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45166         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45167         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45168         (Unicode string functions): Add unistr/u*-mbtoucr.
45169         (Java): Add javacomp-script, javaexec-script.
45170         (C#): Add csharpcomp-script, csharpexec-script.
45171         (Support for building libraries and executables): Add havelib,
45172         relocatable-*.
45173         (Support for maintaining and releasing projects): Renamed from
45174         'Support for maintaining and release projects'. Add announce-gen.
45175
45176 2007-03-31  Bruno Haible  <bruno@clisp.org>
45177
45178         * README: Talk primarily about git.
45179         (git and CVS): Renamed from CVS.
45180         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45181         gnulib is available through git.
45182         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45183
45184 2007-03-30  Bruno Haible  <bruno@clisp.org>
45185
45186         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45187         * lib/poll_.h: Likewise.
45188         * lib/stat_.h: Likewise.
45189         * lib/sys_time_.h: Likewise.
45190         * lib/sysexit_.h: Likewise.
45191         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45192         * lib/stdbool_.h: Likewise.
45193         * lib/byteswap_.h: Add double-inclusion guard.
45194
45195 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45196
45197         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45198
45199 2007-03-30  Karl Berry  <karl@gnu.org>
45200
45201         * config/srclist-update: double space after USA in the license
45202         substitution, since that's how it's usually (?) written.
45203
45204 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45205
45206         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45207         reported by Bruno Haible.
45208
45209 2007-03-29  Bruno Haible  <bruno@clisp.org>
45210
45211         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45212         a bug in AIX iconv().
45213
45214 2007-03-29  Bruno Haible  <bruno@clisp.org>
45215
45216         * modules/ldexpl-tests: New file.
45217         * tests/test-ldexpl.c: New file.
45218
45219 2007-03-29  Bruno Haible  <bruno@clisp.org>
45220
45221         * lib/ldexpl.c: Include fpucw.h.
45222         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45223         multiplication.
45224         * modules/ldexpl (Depends-on): Add fpucw.
45225
45226 2007-03-29  Bruno Haible  <bruno@clisp.org>
45227
45228         * modules/ldexpl: New file.
45229         * m4/ldexpl.m4: New file.
45230         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45231         set.
45232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45233         REPLACE_LDEXPL.
45234         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45235         REPLACE_LDEXPL.
45236         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45237         gl_FUNC_LDEXPL_WORKS.
45238         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45239         * modules/mathl (Files): Remove lib/ldexpl.c.
45240         (Depends-on): Add ldexpl.
45241
45242 2007-03-29  Bruno Haible  <bruno@clisp.org>
45243
45244         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45245
45246 2007-03-29  Bruno Haible  <bruno@clisp.org>
45247
45248         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45249         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45250         and possibly also HP-UX.
45251         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45252         work on AIX, IRIX, HP-UX, OSF/1.
45253         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45254         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45255         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45256         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45257         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45258         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45259
45260 2007-03-29  Bruno Haible  <bruno@clisp.org>
45261
45262         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45263
45264 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45265
45266         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45267         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45268
45269 2007-03-29  Eric Blake  <ebb9@byu.net>
45270
45271         * lib/acl-internal.h: Remove redundant include.
45272         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45273         Cygwin when a file is locked.
45274
45275 2007-03-29  Bruno Haible  <bruno@clisp.org>
45276
45277         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45278         file.
45279         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45280
45281 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45282
45283         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45284         try to remove a parent directory if the child couldn't be removed
45285         (except for the first rmdir, which could fail because the child
45286         doesn't exist).  Problem reported by Jeff Blaine in
45287         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45288
45289 2007-03-28  Bruno Haible  <bruno@clisp.org>
45290
45291         * lib/striconveh.c (utf8conv_carefully): New function.
45292         (mem_cd_iconveh_internal): Invoke it.
45293
45294 2007-03-28  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45297         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45298         input.
45299         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45300         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45301         unistr/u8-uctomb.
45302
45303 2007-03-28  Bruno Haible  <bruno@clisp.org>
45304
45305         * modules/unistr/u8-mbtoucr: New file.
45306         * lib/unistr/u8-mbtoucr.c: New file.
45307         * modules/unistr/u16-mbtoucr: New file.
45308         * lib/unistr/u16-mbtoucr.c: New file.
45309         * modules/unistr/u16-mbtoucr: New file.
45310         * lib/unistr/u16-mbtoucr.c: New file.
45311         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45312
45313 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45314             Bruno Haible  <bruno@clisp.org>
45315
45316         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45317         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45318         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45319
45320         * m4/stdio_h.m4: Add stubs for vasprintf too.
45321
45322         * modules/stdio: Support vasprintf in sed command.
45323
45324         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45325         vasprintf.h.  Add stdio module indicator.
45326
45327         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45328         vasprintf.h.
45329
45330         * lib/vasprintf.h: File removed.
45331
45332         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45333         * lib/vasprintf.c: Ditto.
45334         * lib/xvasprintf.c: Ditto.
45335         * tests/test-vasprintf-posix.c: Ditto.
45336         * tests/test-vasprintf.c: Ditto.
45337
45338 2007-03-27  Bruno Haible  <bruno@clisp.org>
45339
45340         Make vasnprintf multithread-safe.
45341         * lib/vasnprintf.c (decimal_point_char): New function.
45342         (VASNPRINTF): Use it.
45343         Suggested by Simon Josefsson.
45344
45345 2007-03-27  Eric Blake  <ebb9@byu.net>
45346
45347         Support sub-second birthtime on cygwin.
45348         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
45349         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
45350         (get_stat_birthtime): Also work with st_birthtim.
45351
45352 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
45353
45354         * lib/stat-time.h (USE_BIRTHTIME): Remove.
45355         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
45356         (get_stat_birthtime_ns): Do not try to use "spare" fields.
45357         (get_stat_birthtime_ns): Simplify compile-time tests.
45358         (get_stat_birthtime): Change the API to look like
45359         get_stat_mtime etc., except return a negative tv_nsec on error.
45360         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
45361         Don't check for "spare" fields.
45362         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
45363         or for struct stat.st_birthtime, as these tests aren't used.
45364         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
45365
45366 2007-03-27  Bruno Haible  <bruno@clisp.org>
45367
45368         * lib/stat-time.h: Include <sys/stat.h>.
45369
45370 2007-03-27  James Youngman  <jay@gnu.org>
45371
45372         * lib/stat-time.h (get_stat_birthtime): New function for
45373           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45374         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45375           and its variants.
45376         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45377         * modules/stat-time-test: New file.
45378         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45379
45380 2007-03-26  Bruno Haible  <bruno@clisp.org>
45381
45382         Better support of signalling NaNs.
45383         * lib/atanl.c: Include isnanl.h.
45384         (atanl): Perform test for NaN at the beginning of the function and
45385         through a call to isnanl.
45386         * lib/cosl.c: Include isnanl.h.
45387         (cosl): Perform test for NaN at the beginning of the function and
45388         through a call to isnanl.
45389         * lib/ldexpl.c: Include isnanl.h.
45390         (ldexpl): Perform test for NaN through a call to isnanl.
45391         * lib/logl.c: Include isnanl.h.
45392         (logl): Perform test for NaN at the beginning of the function and
45393         through a call to isnanl.
45394         * lib/sinl.c: Include isnanl.h.
45395         (sinl): Perform test for NaN at the beginning of the function and
45396         through a call to isnanl.
45397         * lib/sqrtl.c: Include isnanl.h.
45398         (sqrtl): Perform test for NaN at the beginning of the function and
45399         through a call to isnanl.
45400         * lib/tanl.c: Include isnanl.h.
45401         (tanl): Perform test for NaN at the beginning of the function and
45402         through a call to isnanl.
45403         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45404         * modules/mathl (Depends-on): Add isnanl.
45405
45406 2007-03-26  Eric Blake  <ebb9@byu.net>
45407
45408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45409         regression in logic sense of previous patch.
45410
45411 2007-03-26  Bruno Haible  <bruno@clisp.org>
45412
45413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
45414         unportable shell command "if ! ...".
45415         Reported by Ralf Wildenhues.
45416
45417 2007-03-25  Bruno Haible  <bruno@clisp.org>
45418
45419         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
45420         <sysexits.h> file, and only add EX_CONFIG.
45421         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
45422         absolute file name and whether it is sufficient. Substitute also
45423         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
45424         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
45425         ABSOLUTE_SYSEXITS_H into sysexits.h.
45426
45427 2007-03-25  Bruno Haible  <bruno@clisp.org>
45428
45429         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
45430         hints is NULL.
45431
45432 2007-03-25  Bruno Haible  <bruno@clisp.org>
45433
45434         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
45435         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
45436
45437 2007-03-25  Bruno Haible  <bruno@clisp.org>
45438
45439         * lib/vasnprintf.c: Include langinfo.h.
45440         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
45441         multithread-safe.
45442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
45443         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
45444         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45445         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45449         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
45450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45451         Reported by Simon Josefsson.
45452
45453 2007-03-25  Bruno Haible  <bruno@clisp.org>
45454
45455         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
45456         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
45457         * modules/vasnprintf (Depends-on): Add stdint.
45458
45459 2007-03-25  Bruno Haible  <bruno@clisp.org>
45460
45461         * modules/fpieee: New file.
45462         * m4/fpieee.m4: New file.
45463         * modules/isnan-nolibm (Depends-on): Add fpieee.
45464         * modules/isnanl-nolibm (Depends-on): Add fpieee.
45465         * modules/isnanl (Depends-on): Add fpieee.
45466
45467 2007-03-25  Bruno Haible  <bruno@clisp.org>
45468
45469         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
45470
45471 2007-03-25  Bruno Haible  <bruno@clisp.org>
45472
45473         Avoid test failures on IRIX 6.5.
45474         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
45475         (main): Use it.
45476         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
45477         macros.
45478         (main): Use them.
45479
45480 2007-03-25  Bruno Haible  <bruno@clisp.org>
45481
45482         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
45483         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
45484         exists but doesn't work.
45485         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
45486         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
45487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
45488         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
45489
45490 2007-03-25  Bruno Haible  <bruno@clisp.org>
45491
45492         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
45493         returns inf. Needed on IRIX 6.5.
45494
45495 2007-03-25  Bruno Haible  <bruno@clisp.org>
45496
45497         * tests/test-frexpl.c: Include isnanl-nolibm.h.
45498         (main): Use isnanl instead of x != x idiom.
45499         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
45500
45501         * tests/test-frexp.c: Include isnan.h.
45502         (main): Use isnan instead of x != x idiom.
45503         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
45504
45505 2007-03-25  Bruno Haible  <bruno@clisp.org>
45506
45507         * tests/test-frexp.c (NaN): New function/macro.
45508         (main): Use it instead of 0.0 / 0.0.
45509         * tests/test-isnan.c (NaN): New function/macro.
45510         (main): Use it instead of 0.0 / 0.0.
45511         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
45512         (test_function): Use it instead of 0.0 / 0.0.
45513         * tests/test-vasprintf-posix.c (NaN): New function/macro.
45514         (test_function): Use it instead of 0.0 / 0.0.
45515         * tests/test-snprintf-posix.h (NaN): New function/macro.
45516         (test_function): Use it instead of 0.0 / 0.0.
45517         * tests/test-sprintf-posix.h (NaN): New function/macro.
45518         (test_function): Use it instead of 0.0 / 0.0.
45519         * tests/test-fprintf-posix.h (NaN): New function/macro.
45520         (test_function): Use it instead of 0.0 / 0.0.
45521         * tests/test-printf-posix.h (NaN): New function/macro.
45522         (test_function): Use it instead of 0.0 / 0.0.
45523
45524         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
45525
45526 2007-03-25  Bruno Haible  <bruno@clisp.org>
45527
45528         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
45529
45530 2007-03-25  Bruno Haible  <bruno@clisp.org>
45531
45532         * lib/regexec.c (merge_state_with_log): Make static.
45533
45534 2007-03-25  Bruno Haible  <bruno@clisp.org>
45535
45536         * lib/trigl.c (kernel_rem_pio2): Make static.
45537
45538 2007-03-25  Bruno Haible  <bruno@clisp.org>
45539
45540         * lib/sincosl.c (sincosl_table): Make static.
45541
45542 2007-03-25  Bruno Haible  <bruno@clisp.org>
45543
45544         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
45545         if the compiler does not support C99.
45546
45547 2007-03-25  Bruno Haible  <bruno@clisp.org>
45548
45549         * modules/time (Makefile.am): Ensure all rule action lines start with a
45550         tab.
45551
45552 2007-03-24  Bruno Haible  <bruno@clisp.org>
45553
45554         * modules/tsearch-tests: New file.
45555         * tests/test-tsearch.sh: New file.
45556         * tests/test-tsearch.c: New file, mostly copied from glibc.
45557
45558         * modules/search-tests: New file.
45559         * tests/test-search.c: New file.
45560
45561         * modules/search: New file.
45562         * lib/search_.h: New file, incorporating lib/tsearch.h.
45563         * m4/search_h.m4: New file.
45564         * lib/tsearch.h: Remove file.
45565         * lib/tsearch.c: Include search.h instead of tsearch.h.
45566         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
45567         HAVE_TSEARCH.
45568         * modules/tsearch (Files): Remove lib/tsearch.h.
45569         (Depends-on): Add search.
45570         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
45571         (Include): Change tsearch.h into search.h.
45572
45573 2007-03-24  Bruno Haible  <bruno@clisp.org>
45574
45575         * modules/fpucw: New file.
45576         * lib/fpucw.h: New file.
45577         * lib/frexp.c: Include fpucw.h.
45578         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45579         (FUNC): Use them.
45580         * lib/printf-frexp.c: Include fpucw.h.
45581         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45582         (FUNC): Use them.
45583         * lib/vasnprintf.c: Include fpucw.h.
45584         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
45585         'long double' calculations.
45586         * tests/test-frexpl.c: Include fpucw.h.
45587         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45588         * tests/test-printf-frexpl.c: Include fpucw.h.
45589         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45590         * modules/frexpl (Depends-on): Add fpucw.
45591         * modules/printf-frexpl (Depends-on): Likewise.
45592         * modules/fprintf-posix (Depends-on): Likewise.
45593         * modules/snprintf-posix (Depends-on): Likewise.
45594         * modules/sprintf-posix (Depends-on): Likewise.
45595         * modules/vasnprintf-posix (Depends-on): Likewise.
45596         * modules/vasprintf-posix (Depends-on): Likewise.
45597         * modules/vfprintf-posix (Depends-on): Likewise.
45598         * modules/vsnprintf-posix (Depends-on): Likewise.
45599         * modules/vsprintf-posix (Depends-on): Likewise.
45600         * modules/frexpl-tests (Depends-on): Likewise.
45601         * modules/printf-frexpl-tests (Depends-on): Likewise.
45602
45603 2007-03-24  Bruno Haible  <bruno@clisp.org>
45604
45605         * lib/float+.h: New file.
45606         * lib/isnan.c: Include float+.h.
45607         (SIZE): New macro.
45608         (FUNC): Compare only SIZE bytes of the value.
45609         * lib/vasnprintf.c: Include float+.h.
45610         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
45611         SIZEOF_LDBL or SIZEOF_DBL bytes.
45612         * modules/isnan-nolibm (Files): Add lib/float+.h.
45613         * modules/isnanl-nolibm (Files): Add lib/float+.h.
45614         * modules/isnanl (Files): Add lib/float+.h.
45615         * modules/vasnprintf (Files): Add lib/float+.h.
45616
45617 2007-03-24  Bruno Haible  <bruno@clisp.org>
45618
45619         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
45620         include isnanl-nolibm.h.
45621
45622 2007-03-24  Bruno Haible  <bruno@clisp.org>
45623
45624         * tests/test-read-file.c (main): Don't produce spurious output for
45625         expected situations. Make the test fail if it encountered unexpected
45626         results.
45627
45628 2007-03-24  Bruno Haible  <bruno@clisp.org>
45629
45630         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
45631         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
45632
45633 2007-03-24  Bruno Haible  <bruno@clisp.org>
45634
45635         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
45636
45637 2007-03-24  Bruno Haible  <bruno@clisp.org>
45638
45639         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
45640         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
45641
45642         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
45643         * modules/utf8-ucs4: Turn into a symbolic link to module
45644         unistr/u8-mbtouc.
45645
45646         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
45647         utf8-ucs4-unsafe.
45648         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
45649         unistr/u8-mbtouc-unsafe.
45650
45651         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
45652         * modules/utf16-ucs4: Turn into a symbolic link to module
45653         unistr/u16-mbtouc.
45654
45655         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
45656         utf16-ucs4-unsafe.
45657         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
45658         unistr/u16-mbtouc-unsafe.
45659
45660         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
45661         * modules/ucs4-utf8: Turn into a symbolic link to module
45662         unistr/u8-ubtomb.
45663
45664         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
45665         * modules/ucs4-utf16: Turn into a symbolic link to module
45666         unistr/u16-ubtomb.
45667
45668 2007-03-24  Bruno Haible  <bruno@clisp.org>
45669
45670         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
45671         Enable the function only if HAVE_INLINE.
45672         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
45673         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45674         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
45675         Enable the function only if HAVE_INLINE.
45676         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
45677         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45678         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
45679         Enable the function only if HAVE_INLINE.
45680         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
45681         Enable the function only if HAVE_INLINE.
45682         * modules/utf8-ucs4: Update.
45683         * modules/utf8-ucs4-unsafe: Update.
45684         * modules/utf16-ucs4: Update.
45685         * modules/utf16-ucs4-unsafe: Update.
45686         * modules/ucs4-utf8: Update.
45687         * modules/ucs4-utf16: Update.
45688
45689 2007-03-24  Bruno Haible  <bruno@clisp.org>
45690
45691         * lib/utf8-ucs4.h: Remove file.
45692         * lib/utf8-ucs4-unsafe.h: Remove file.
45693         * lib/utf16-ucs4.h: Remove file.
45694         * lib/utf16-ucs4-unsafe.h: Remove file.
45695         * lib/ucs4-utf8.h: Remove file.
45696         * lib/ucs4-utf16.h: Remove file.
45697         * lib/unistr.h: Include their previous contents.
45698         * m4/utf-ucs4.m4: Remove file.
45699         * m4/ucs4-utf.m4: Remove file.
45700         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
45701         (Depends-on): Add unistr/base.
45702         (configure.ac): Remove gl_UTF_UCS4.
45703         (Makefile.am): Update.
45704         (Include): Change to unistr.h.
45705         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
45706         (Depends-on): Add unistr/base.
45707         (configure.ac): Remove gl_UTF_UCS4.
45708         (Makefile.am): Update.
45709         (Include): Change to unistr.h.
45710         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
45711         (Depends-on): Add unistr/base.
45712         (configure.ac): Remove gl_UTF_UCS4.
45713         (Makefile.am): Update.
45714         (Include): Change to unistr.h.
45715         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
45716         (Depends-on): Add unistr/base.
45717         (configure.ac): Remove gl_UTF_UCS4.
45718         (Makefile.am): Update.
45719         (Include): Change to unistr.h.
45720         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
45721         (Depends-on): Add unistr/base.
45722         (configure.ac): Remove gl_UCS4_UTF.
45723         (Makefile.am): Update.
45724         (Include): Change to unistr.h.
45725         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
45726         (Depends-on): Add unistr/base.
45727         (configure.ac): Remove gl_UCS4_UTF.
45728         (Makefile.am): Update.
45729         (Include): Change to unistr.h.
45730         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
45731         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
45732         utf8-ucs4-unsafe.h.
45733         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
45734         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
45735         utf16-ucs4-unsafe.h.
45736         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
45737         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
45738         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
45739         * lib/unistr/u8-strchr.c: Likewise.
45740         * lib/unistr/u8-strrchr.c: Likewise.
45741         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
45742         * lib/unistr/u16-strchr.c: Likewise.
45743         * lib/unistr/u16-strrchr.c: Likewise.
45744         * lib/striconveh.c: Update.
45745         * lib/linebreak.c: Update.
45746
45747 2007-03-24  Bruno Haible  <bruno@clisp.org>
45748
45749         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
45750         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
45751
45752 2007-03-22  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
45755
45756 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
45757
45758         * MODULES.html.sh (File system functions): New module write-any-file.
45759         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
45760         * m4/write-any-file.m4: New files.
45761
45762 2007-03-23  Eric Blake  <ebb9@byu.net>
45763
45764         * gnulib-tool: Rearrange space-tab sequences, since some editors
45765         like to eat them.
45766
45767 2007-03-23  Eric Blake  <ebb9@byu.net>
45768
45769         * lib/version-etc.c (version_etc_va): Update license wording to
45770         be more concise.  Recommended by Richard Stallman.
45771
45772 2007-03-22  Bruno Haible  <bruno@clisp.org>
45773
45774         * lib/poll.c (MSG_PEEK): New fallback definition.
45775
45776 2007-03-22  Bruno Haible  <bruno@clisp.org>
45777
45778         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
45779         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
45780         (main): Update.
45781         Fixes a compilation error on BeOS.
45782
45783 2007-03-22  Bruno Haible  <bruno@clisp.org>
45784
45785         * modules/frexpl-tests: New file.
45786         * tests/test-frexpl.c: New file.
45787
45788         * modules/frexpl: New file.
45789         * m4/frexpl.m4: New file.
45790         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
45791         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
45792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
45793         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
45794         (Depends-on): Add frexpl. Remove isnanl-nolibm.
45795         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
45796
45797 2007-03-22  Bruno Haible  <bruno@clisp.org>
45798
45799         * lib/frexpl.c: Share code with lib/frexp.c.
45800         * modules/mathl (Files): Add lib/frexp.c.
45801         (Depends-on): Add isnanl-nolibm.
45802
45803 2007-03-22  Bruno Haible  <bruno@clisp.org>
45804
45805         * modules/printf-frexp (Files): Add m4/frexp.m4.
45806         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
45807         only if the found frexp function actually works.
45808
45809 2007-03-22  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/frexp.c: Remove older implementation that uses divisions.
45812
45813 2007-03-21  Bruno Haible  <bruno@clisp.org>
45814
45815         * modules/frexp-tests: New file.
45816         * tests/test-frexp.c: New file.
45817
45818         * modules/frexp: New file.
45819         * lib/frexp.c: New file.
45820         * m4/frexp.m4: New file.
45821         * lib/math_.h (frexp): New declaration.
45822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
45823         REPLACE_FREXP.
45824         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
45825
45826 2007-03-21  Bruno Haible  <bruno@clisp.org>
45827
45828         * modules/isnanl-tests: New file.
45829         * tests/test-isnanl.c: New file.
45830
45831         * modules/isnanl: New file.
45832         * lib/isnanl.h: New file.
45833         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
45834         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
45835         gl_FUNC_ISNANL_WORKS.
45836         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
45837         New macros.
45838
45839 2007-03-21  Bruno Haible  <bruno@clisp.org>
45840
45841         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
45842         lib/isnanl.h.
45843         (Include): Update.
45844         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
45845         * lib/vasnprintf.c: Update.
45846         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
45847         tests/test-isnanl.h, remove tests/test-isnanl.c.
45848         (Makefile.am): Update.
45849         * tests/test-isnanl-nolibm.c: New file.
45850         * tests/test-isnanl.h: New file.
45851         * tests/test-isnanl.c: Remove file.
45852
45853 2007-03-21  Jim Meyering  <jim@meyering.net>
45854
45855         When trying to open ".", treat ESTALE like EACCES.
45856         * lib/savewd.c (savewd_save): Resort to forking not just upon
45857         failure with EACCES, but also when errno is ESTALE.
45858
45859 2007-03-20  Bruno Haible  <bruno@clisp.org>
45860
45861         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
45862         Needed on AIX 5.1. Reported by Matthew Woehlke.
45863
45864 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45865
45866         Suggestions by Bruno Haible:
45867         * lib/acl-internal.h: Include "gettext.h" rather than rolling
45868         our own.
45869         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
45870         * modules/acl (Depends-on): Add gettext.
45871
45872 2007-03-19  Bruno Haible  <bruno@clisp.org>
45873
45874         * modules/iconvme: Remove file.
45875         * lib/iconvme.h: Remove file.
45876         * lib/iconvme.c: Remove file.
45877         * m4/iconvme.m4: Remove file.
45878
45879 2007-03-19  Bruno Haible  <bruno@clisp.org>
45880
45881         * doc/relocatable-maint.texi: Break long shell script line.
45882         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
45883
45884 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45885
45886         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
45887         handle file_has_acl.
45888         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
45889         * lib/acl.c: Move header inclusions and related macro defns into
45890         lib/acl-internal.h.
45891         (S_ISLNK): Remove defn, since that's now done for us.
45892         (file_has_acl): Move to lib/file-has-acl.c.
45893         Call acl_trivial if available.  This is the crucial part of the fix.
45894         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
45895         shared within the library.  Rewrite a bit, partly to make it compatible
45896         with the GNU coding style.
45897         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
45898         Remove unnecessary double-quotes.
45899         Don't test for acl_to_text; the build will catch that.
45900         Replace acl_entries if it doesn't exist and it is needed.
45901         Check for -lsec and acl_trivial (as used on Solaris 10).
45902         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
45903         lib/file-has-acl.c.
45904         (Depends-on): Add sys_stat, for S_ISLNK.
45905
45906 2007-03-19  Ben Pfaff  <blp@gnu.org>
45907
45908         * doc/gnulib.texi: Fix typos.
45909         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
45910
45911 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45912
45913         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
45914         If size is zero here, buf must be zero.
45915
45916 2007-03-19  Simon Josefsson  <simon@josefsson.org>
45917
45918         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
45919         <bruno@clisp.org>.
45920
45921 2007-03-18  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
45924         Suggested by Eric Blake.
45925
45926 2007-03-18  Ben Pfaff  <blp@gnu.org>
45927
45928         * doc/relocatable.texi: Recommend using as prefix a directory
45929         that does not exist and will never be created.  Based on
45930         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
45931         and others.
45932
45933 2007-03-17  Bruno Haible  <bruno@clisp.org>
45934
45935         * lib/fchownat.c: Include lchown.h.
45936
45937 2007-03-17  Bruno Haible  <bruno@clisp.org>
45938
45939         Fix endless loop when the given allocated size was > INT_MAX.
45940         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
45941         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
45942         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
45943         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
45944         * lib/sprintf.c (sprintf): Likewise.
45945
45946 2007-03-17  Bruno Haible  <bruno@clisp.org>
45947
45948         * tests/test-argp-2.sh (func_compare): Output a context diff.
45949
45950 2007-03-17  Bruno Haible  <bruno@clisp.org>
45951
45952         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
45953         locale's decimal-point character.
45954
45955 2007-03-17  Bruno Haible  <bruno@clisp.org>
45956
45957         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
45958         before comparing it. Needed because on some platforms (e.g. x86) a
45959         'long double' occupies less bytes than sizeof (long double).
45960
45961 2007-03-17  Bruno Haible  <bruno@clisp.org>
45962
45963         * tests/test-crc.c (main): Make printf statements 64-bit clean.
45964         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
45965         * tests/test-getaddrinfo.c (simple): Likewise.
45966         * tests/test-read-file.c (main): Likewise.
45967
45968 2007-03-17  Bruno Haible  <bruno@clisp.org>
45969
45970         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
45971
45972 2007-03-17  Bruno Haible  <bruno@clisp.org>
45973
45974         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
45975         unused variable.
45976
45977 2007-03-17  Bruno Haible  <bruno@clisp.org>
45978
45979         * tests/test-c-strcasecmp.c: Include c-strcase.h.
45980         * tests/test-c-strncasecmp.c: Likewise.
45981
45982 2007-03-17  Bruno Haible  <bruno@clisp.org>
45983
45984         * modules/stdlib (Depends-on): Add unistd.
45985         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
45986         Needed for MacOS X 10.3.
45987
45988 2007-03-17  Bruno Haible  <bruno@clisp.org>
45989
45990         * lib/unistr/u-strdup.h: Include <stdlib.h>.
45991
45992 2007-03-17  Bruno Haible  <bruno@clisp.org>
45993
45994         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
45995
45996 2007-03-17  Bruno Haible  <bruno@clisp.org>
45997
45998         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
45999         to reflect files copied from gnulib (with or without modifications).
46000         Suggested by Jim Meyering.
46001
46002 2007-03-17  Eric Blake  <ebb9@byu.net>
46003
46004         * NEWS: Document stdlib change from 2007-02-18.
46005
46006 2007-03-17  Jim Meyering  <jim@meyering.net>
46007
46008         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46009         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46010         someone uses a name containing shell meta-characters.
46011         Reported by Alfred M. Szmidt.
46012
46013         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46014
46015 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46016
46017         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46018         and copy gettext configuration files only if configure.ac contains
46019         a use of AM_GNU_GETTEXT_VERSION.
46020
46021 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46022
46023         * build-aux/bootstrap (gnulib_name): New variable.
46024         (gnulib_tool_options): Use it.
46025
46026 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46027
46028         * tests/test-des.c: Use new namespace.
46029
46030 2007-03-15  Bruno Haible  <bruno@clisp.org>
46031
46032         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46033         Reported by James Youngman <jay@gnu.org>.
46034
46035 2007-03-15  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46038         declared prototype. Needed with cc on OSF/1 5.1.
46039
46040 2007-03-15  Bruno Haible  <bruno@clisp.org>
46041
46042         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46043         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46044         (struct gl_list_implementation): Add dispose_fn argument to the
46045         'create_empty', 'create' methods.
46046         (struct gl_list_impl_base): Add field 'dispose_fn'.
46047         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46048         argument.
46049         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46050         dispose_fn argument.
46051         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46052         dispose_fn on the dropped values.
46053         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46054         dispose_fn argument.
46055         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46056         dropped values.
46057         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46058         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46059         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46060         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46061         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46062         argument.
46063         (gl_tree_list_free): Call dispose_fn on the dropped values.
46064         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46065         the dropped values.
46066         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46067         Add dispose_fn argument.
46068         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46069         Call dispose_fn on the dropped values.
46070         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46071         Add dispose_fn argument.
46072         (gl_sublist_create): Initialize the 'dispose_fn' field.
46073         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46074         * tests/test-array_list.c (main): Update.
46075         * tests/test-carray_list.c (main): Update.
46076         * tests/test-avltree_list.c (main): Update.
46077         * tests/test-rbtree_list.c (main): Update.
46078         * tests/test-avltreehash_list.c (main): Update.
46079         * tests/test-rbtreehash_list.c (main): Update.
46080         * tests/test-linked_list.c (main): Update.
46081         * tests/test-linkedhash_list.c (main): Update.
46082         * tests/test-array_oset.c (main): Update.
46083
46084 2007-03-15  Bruno Haible  <bruno@clisp.org>
46085
46086         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46087         (gl_oset_create_empty): Add dispose_fn argument.
46088         (struct gl_oset_implementation): Add dispose_fn argument to
46089         'create_empty' method.
46090         (struct gl_oset_impl_base): Add dispose_fn field.
46091         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46092         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46093         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46094         values.
46095         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46096         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46097         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46098         dropped value.
46099         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46100         dropped value.
46101         * tests/test-array_oset.c (main): Update.
46102         * tests/test-avltree_oset.c (main): Update.
46103         * tests/test-rbtree_oset.c (main): Update.
46104         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46105
46106 2007-03-13  Bruno Haible  <bruno@clisp.org>
46107
46108         * tests/test-stdbool.c (i): Update after last patch.
46109
46110 2007-03-12  Bruno Haible  <bruno@clisp.org>
46111
46112         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46113         the iswprint macro. Needed on Solaris 2.5.1.
46114
46115 2007-03-12  Bruno Haible  <bruno@clisp.org>
46116
46117         * tests/test-printf-frexp.c (main): Declare x as volatile.
46118
46119 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46120
46121         * doc/gnulib.texi (Build robot for gnulib): New section.
46122
46123 2007-03-12  Jim Meyering  <jim@meyering.net>
46124
46125         * build-aux/bootstrap: New file.
46126         * build-aux/bootstrap.conf: New file, from coreutils.
46127
46128 2007-03-11  Bruno Haible  <bruno@clisp.org>
46129
46130         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46131
46132 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46133
46134         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46135         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46136         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46137
46138 2007-03-11  Bruno Haible  <bruno@clisp.org>
46139
46140         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46141         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46142
46143 2007-03-11  Bruno Haible  <bruno@clisp.org>
46144
46145         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46146         formula. Needed for SunPRO C 5.0.
46147
46148 2007-03-11  Bruno Haible  <bruno@clisp.org>
46149
46150         * modules/long-options (Depends-on): Add getopt.
46151
46152 2007-03-11  Bruno Haible  <bruno@clisp.org>
46153
46154         * modules/modechange (Depends-on): Add stdbool.
46155
46156 2007-03-11  Bruno Haible  <bruno@clisp.org>
46157
46158         * modules/i-ring (Depends-on): Add stdbool.
46159
46160 2007-03-11  Bruno Haible  <bruno@clisp.org>
46161
46162         * modules/gc-des (Depends-on): Add stdbool.
46163
46164 2007-03-11  Bruno Haible  <bruno@clisp.org>
46165
46166         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46167
46168 2007-03-11  Bruno Haible  <bruno@clisp.org>
46169
46170         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46171
46172 2007-03-11  Bruno Haible  <bruno@clisp.org>
46173
46174         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46175
46176 2007-03-11  Bruno Haible  <bruno@clisp.org>
46177
46178         * lib/vasnprintf.c (sprintf): Undefine.
46179
46180 2007-03-11  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46183         initializers in SunPRO C and Compaq C compilers.
46184
46185 2007-03-11  Bruno Haible  <bruno@clisp.org>
46186
46187         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46188         decrementing code ANSI C compliant.
46189
46190 2007-03-11  Bruno Haible  <bruno@clisp.org>
46191
46192         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46193         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46194
46195 2007-03-11  Bruno Haible  <bruno@clisp.org>
46196
46197         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46198         <stdbool.h> substitute doesn't pass.
46199
46200 2007-03-11  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46203
46204 2007-03-11  Bruno Haible  <bruno@clisp.org>
46205
46206         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46207         script, for submission to autobuild.josefsson.org.
46208
46209 2007-03-10  Bruno Haible  <bruno@clisp.org>
46210
46211         * modules/canonicalize-lgpl-tests: New file.
46212         * tests/test-canonicalize-lgpl.sh: New file.
46213         * tests/test-canonicalize-lgpl.c: New file.
46214
46215         * modules/c-strcase-tests: New file.
46216         * tests/test-c-strcase.sh: New file.
46217         * tests/test-c-strcasecmp.c: New file.
46218         * tests/test-c-strncasecmp.c: New file.
46219
46220         * modules/atexit-tests: New file.
46221         * tests/test-atexit.sh: New file.
46222         * tests/test-atexit.c: New file.
46223
46224 2007-03-10  Bruno Haible  <bruno@clisp.org>
46225
46226         * tests/test-binary-io.sh: Use temporary filenames that are not so
46227         likely to clash with those of other tests (in a parallel make).
46228         * tests/test-binary-io.c: Likewise.
46229
46230 2007-03-10  Bruno Haible  <bruno@clisp.org>
46231
46232         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46233         fallback; use #error instead.
46234         Suggested by Simon Josefsson.
46235
46236 2007-03-10  Bruno Haible  <bruno@clisp.org>
46237
46238         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46239         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46240         first and the last.
46241
46242 2007-03-10  Bruno Haible  <bruno@clisp.org>
46243
46244         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46245
46246 2007-03-10  Bruno Haible  <bruno@clisp.org>
46247
46248         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46249         "make distcheck".
46250         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46251         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46252         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46253
46254 2007-03-10  Bruno Haible  <bruno@clisp.org>
46255
46256         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46257         variable.
46258         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46259         variable.
46260
46261 2007-03-09  Eric Blake  <ebb9@byu.net>
46262         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46263
46264         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46265         types are not being provided by gnulib.
46266         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46267         types are supported.
46268
46269 2007-03-10  Bruno Haible  <bruno@clisp.org>
46270
46271         * lib/stdio_.h (__attribute__): New macro.
46272         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46273         vsprintf): Specify __attribute__ __format__ for GCC.
46274         Suggested by Eric Blake.
46275
46276 2007-03-09  Bruno Haible  <bruno@clisp.org>
46277
46278         * modules/printf-posix-tests: New file.
46279         * tests/test-printf-posix.sh: New file.
46280         * tests/test-printf-posix.c: New file.
46281
46282         * modules/printf-posix: New file.
46283         * lib/printf.c: New file.
46284         * m4/printf-posix-rpl.m4: New file.
46285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46286         REPLACE_PRINTF.
46287         * lib/stdio_.h (printf): New declaration.
46288         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46289         ____strfmon____): New macros.
46290         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46291         REPLACE_PRINTF.
46292
46293 2007-03-09  Bruno Haible  <bruno@clisp.org>
46294
46295         * tests/test-vasnprintf-posix2.sh: New file.
46296         * tests/test-vasnprintf-posix2.c: New file.
46297         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46298         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46299         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46300
46301         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46302         a locale dependent decimal point, rather than always '.'.
46303
46304 2007-03-09  Eric Blake  <ebb9@byu.net>
46305
46306         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46307         spite of platforms like Tandem/NSK that define it to -1.
46308
46309 2007-03-08  Bruno Haible  <bruno@clisp.org>
46310
46311         * modules/vprintf-posix-tests: New file.
46312         * tests/test-vprintf-posix.sh: New file.
46313         * tests/test-vprintf-posix.c: New file.
46314         * tests/test-printf-posix.h: New file.
46315
46316         * modules/vprintf-posix: New file.
46317         * lib/vprintf.c: New file.
46318         * m4/vprintf-posix.m4: New file.
46319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46320         REPLACE_VPRINTF.
46321         * lib/stdio_.h (vprintf): New declaration.
46322         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46323         REPLACE_VPRINTF.
46324
46325 2007-03-08  Bruno Haible  <bruno@clisp.org>
46326
46327         * modules/fprintf-posix-tests: New file.
46328         * tests/test-fprintf-posix.sh: New file.
46329         * tests/test-fprintf-posix.c: New file.
46330
46331         * modules/fprintf-posix: New file.
46332         * lib/fprintf.c: New file.
46333         * m4/fprintf-posix.m4: New file.
46334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46335         REPLACE_FPRINTF.
46336         * lib/stdio_.h (fprintf): New declaration.
46337         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46338         REPLACE_FPRINTF.
46339
46340 2007-03-08  Bruno Haible  <bruno@clisp.org>
46341
46342         * modules/vfprintf-posix-tests: New file.
46343         * tests/test-vfprintf-posix.sh: New file.
46344         * tests/test-vfprintf-posix.c: New file.
46345         * tests/test-fprintf-posix.h: New file.
46346         * tests/test-fprintf-posix.out: New file.
46347
46348         * modules/vfprintf-posix: New file.
46349         * lib/vfprintf.c: New file.
46350         * m4/vfprintf-posix.m4: New file.
46351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
46352         REPLACE_VFPRINTF.
46353         * lib/stdio_.h (vfprintf): New declaration.
46354         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
46355         REPLACE_VFPRINTF.
46356
46357 2007-03-08  Bruno Haible  <bruno@clisp.org>
46358
46359         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
46360
46361 2007-03-08  Bruno Haible  <bruno@clisp.org>
46362
46363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
46364         instead of 'expr' invocations.
46365         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46366         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46370         Suggested by Paul Eggert.
46371
46372 2007-03-08  Bruno Haible  <bruno@clisp.org>
46373
46374         * modules/fseterr-tests: New file.
46375         * tests/test-fseterr.c: New file.
46376
46377         * modules/fseterr: New file.
46378         * lib/fseterr.h: New file.
46379         * lib/fseterr.c: New file.
46380
46381 2007-03-08  Bruno Haible  <bruno@clisp.org>
46382
46383         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46384         * lib/getopt_.h: Likewise.
46385         * lib/mbswidth.h: Likewise.
46386         * lib/setenv.h: Likewise.
46387         * lib/vasnprintf.h: Likewise.
46388         * lib/vasprintf.h: Likewise.
46389         * lib/verror.h: Likewise.
46390         * lib/xsetenv.h: Likewise.
46391         * lib/xvasprintf.h: Likewise.
46392
46393 2007-03-08  Jim Meyering  <jim@meyering.net>
46394
46395         * users.txt: Add parted.
46396
46397         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46398
46399 2007-03-07  Bruno Haible  <bruno@clisp.org>
46400
46401         * m4/printf.m4: Make the shell script snippets copy&pastable.
46402
46403 2007-03-02  Bruno Haible  <bruno@clisp.org>
46404
46405         * lib/netinet_in_.h: New file.
46406         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46407         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46408         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46409         (Depends-on): Add absolute-header.
46410         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46411         into netinet/in.h.
46412
46413 2007-03-03  Bruno Haible  <bruno@clisp.org>
46414
46415         * lib/sys_select_.h: New file.
46416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
46417         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
46418         * modules/sys_select (Files): Add lib/sys_select_.h.
46419         (Depends-on): Add absolute-header.
46420         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
46421         into sys/select.h.
46422
46423 2007-03-02  Bruno Haible  <bruno@clisp.org>
46424
46425         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
46426         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
46427         values.
46428         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
46429         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
46430         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
46431         * modules/sys_socket (Depends-on): Add absolute-header.
46432         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
46433         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
46434         (Include): Remove requirement of inclusion of <sys/types.h>.
46435
46436 2007-03-02  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/byteswap_.h (bswap_32): Fix formula.
46439
46440 2007-03-06  Bruno Haible  <bruno@clisp.org>
46441
46442         * modules/sprintf-posix-tests: New file.
46443         * tests/test-sprintf-posix.c: New file.
46444
46445         * modules/sprintf-posix: New file.
46446         * lib/sprintf.c: New file.
46447         * m4/sprintf-posix.m4: New file.
46448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
46449         REPLACE_SPRINTF.
46450         * lib/stdio_.h (sprintf): New declaration.
46451         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
46452         REPLACE_SPRINTF.
46453
46454 2007-03-06  Bruno Haible  <bruno@clisp.org>
46455
46456         * modules/vsprintf-posix-tests: New file.
46457         * tests/test-vsprintf-posix.c: New file.
46458         * tests/test-sprintf-posix.h: New file.
46459
46460         * modules/vsprintf-posix: New file.
46461         * lib/vsprintf.c: New file.
46462         * m4/vsprintf-posix.m4: New file.
46463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
46464         REPLACE_VSPRINTF.
46465         * lib/stdio_.h (vsprintf): New declaration.
46466         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
46467         REPLACE_VSPRINTF.
46468
46469 2007-03-06  Bruno Haible  <bruno@clisp.org>
46470
46471         * modules/vsnprintf (Depend-on): Remove minmax.
46472
46473 2007-03-06  Bruno Haible  <bruno@clisp.org>
46474
46475         * modules/snprintf-posix-tests: New file.
46476         * tests/test-snprintf-posix.c: New file.
46477
46478         * modules/snprintf-posix: New file.
46479         * m4/snprintf-posix.m4: New file.
46480         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
46481         gl_FUNC_SNPRINTF.
46482         (gl_FUNC_SNPRINTF): Invoke it.
46483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
46484         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
46485         is set.
46486         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
46487
46488 2007-03-06  Bruno Haible  <bruno@clisp.org>
46489
46490         * modules/vsnprintf-posix-tests: New file.
46491         * tests/test-vsnprintf-posix.c: New file.
46492         * tests/test-snprintf-posix.h: New file.
46493
46494         * modules/vsnprintf-posix: New file.
46495         * m4/vsnprintf-posix.m4: New file.
46496         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
46497         gl_FUNC_VSNPRINTF.
46498         (gl_FUNC_VSNPRINTF): Invoke it.
46499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
46500         * lib/stdio_.h (vsnprintf): Define as a replacement if
46501         REPLACE_VSNPRINTF is set.
46502         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
46503
46504 2007-03-06  Bruno Haible  <bruno@clisp.org>
46505
46506         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
46507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
46508
46509 2007-03-06  Bruno Haible  <bruno@clisp.org>
46510
46511         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
46512         (asinl): Declare also if HAVE_DECL_ASINL is set.
46513         (atanl): Declare also if HAVE_DECL_ATANL is set.
46514         (ceill): Declare also if HAVE_DECL_CEILL is set.
46515         (cosl): Declare also if HAVE_DECL_COSL is set.
46516         (expl): Declare also if HAVE_DECL_EXPL is set.
46517         (floorl): Declare also if HAVE_DECL_FLOORL is set.
46518         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
46519         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
46520         (logl): Declare also if HAVE_DECL_LOGL is set.
46521         (sinl): Declare also if HAVE_DECL_SINL is set.
46522         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
46523         (tanl): Declare also if HAVE_DECL_TANL is set.
46524         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
46525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
46526         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
46527         declaration of frexpl, ldexpl.
46528         * modules/printf-frexpl (Depends-on): Add math.
46529         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
46530
46531 2007-03-05  Bruno Haible  <bruno@clisp.org>
46532
46533         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
46534         frexpl and ldexpl are declared.
46535         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
46536
46537 2007-03-05  Bruno Haible  <bruno@clisp.org>
46538
46539         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
46540         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
46541
46542 2007-03-05  Bruno Haible  <bruno@clisp.org>
46543
46544         * lib/stdio_.h: Include <stddef.h>.
46545
46546 2007-03-05  Bruno Haible  <bruno@clisp.org>
46547
46548         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
46549
46550 2007-03-05  Bruno Haible  <bruno@clisp.org>
46551
46552         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
46553         NetBSD 4, from Ralf Wildenhues.
46554
46555 2007-03-04  Bruno Haible  <bruno@clisp.org>
46556
46557         * lib/vasprintf.h: Update #if logic for the case when the functions
46558         exist but are overridden.
46559
46560 2007-03-04  Bruno Haible  <bruno@clisp.org>
46561
46562         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
46563         implementations: glibc-2.4 and MacOS X 10.3.
46564         * tests/test-vasnprintf-posix.c (test_function): Test also the case
46565         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
46566         * tests/test-vasprintf-posix.c (test_function): Likewise.
46567
46568 2007-03-04  Bruno Haible  <bruno@clisp.org>
46569
46570         * modules/vasprintf-posix-tests: New file.
46571         * tests/test-vasprintf-posix.c: New file.
46572
46573         * modules/vasprintf-posix: New file.
46574         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
46575         defined.
46576         * m4/vasprintf-posix.m4: New file.
46577         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
46578         gl_FUNC_VASPRINTF.
46579         (gl_FUNC_VASPRINTF): Invoke it.
46580         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
46581         here.
46582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
46583
46584 2007-03-04  Bruno Haible  <bruno@clisp.org>
46585
46586         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
46587         REPLACE_GETTIMEOFDAY.
46588         * modules/sys_time (Makefile.am): Likewise.
46589         * m4/sys_time_h.m4: Likewise.
46590         * m4/gettimeofday.m4: Likewise.
46591
46592 2007-03-04  Bruno Haible  <bruno@clisp.org>
46593
46594         * modules/vasnprintf-posix-tests: New file.
46595         * tests/test-vasnprintf-posix.c: New file.
46596
46597         * modules/vasnprintf-posix: New file.
46598         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
46599         printf-frexpl.h.
46600         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
46601         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
46602         REPLACE_VASNPRINTF is defined.
46603         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
46604         gl_FUNC_VASNPRINTF.
46605         (gl_FUNC_VASNPRINTF): Invoke it.
46606         * m4/vasnprintf-posix.m4: New file.
46607         * m4/printf.m4: New file.
46608
46609 2007-03-04  Bruno Haible  <bruno@clisp.org>
46610
46611         Compile progreloc.c only if --enable-relocatable is specified.
46612         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
46613         if --enable-relocatable was specified.
46614         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
46615         lib_SOURCES.
46616
46617 2007-03-04  Jim Meyering  <jim@meyering.net>
46618
46619         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
46620         Use it consistently, rather than enumerating errno constants.
46621
46622 2007-03-04  Bruno Haible  <bruno@clisp.org>
46623
46624         * modules/xvasprintf-tests: New file.
46625         * tests/test-xvasprintf.c: New file.
46626
46627         * modules/vasprintf-tests: New file.
46628         * tests/test-vasprintf.c: New file.
46629
46630         * modules/vasnprintf-tests: New file.
46631         * tests/test-vasnprintf.c: New file.
46632
46633         * modules/vsnprintf-tests: New file.
46634         * tests/test-vsnprintf.c: New file.
46635
46636         * modules/snprintf-tests: New file.
46637         * tests/test-snprintf.c: New file.
46638
46639 2007-03-04  Bruno Haible  <bruno@clisp.org>
46640
46641         Compile relocatable.c only if --enable-relocatable is specified.
46642         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
46643         gl_RELOCATABLE_LIBRARY.
46644         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
46645         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
46646         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
46647         gl_RELOCATABLE_LIBRARY.
46648         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
46649         (Makefile.am): Remove lib_SOURCES.
46650         * modules/relocatable-lib-lgpl (configure.ac): Invoke
46651         gl_RELOCATABLE_LIBRARY.
46652         (Makefile.am): Remove lib_SOURCES.
46653         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
46654         always.
46655         * modules/relocatable-prog-wrapper (configure.ac): Invoke
46656         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
46657
46658 2007-03-04  Bruno Haible  <bruno@clisp.org>
46659
46660         * modules/argmatch-tests: New file.
46661         * tests/test-argmatch.c: New file.
46662
46663         * tests/test-allocsa.c (main): Halve the number of loop runs.
46664
46665         * modules/alloca-opt-tests: New file.
46666         * tests/test-alloca-opt.c: New file.
46667
46668 2007-03-04  Jim Meyering  <jim@meyering.net>
46669
46670         Work around difference between Linux ACLs and Solaris 10 ZFS.
46671         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
46672         for EINVAL.
46673
46674 2007-03-03  Bruno Haible  <bruno@clisp.org>
46675
46676         * modules/relocatable-prog (Depends-on): Add back progreloc's
46677         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
46678
46679 2007-03-03  Bruno Haible  <bruno@clisp.org>
46680
46681         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
46682         * modules/relocatable-lib: New file.
46683
46684 2007-03-03  Bruno Haible  <bruno@clisp.org>
46685
46686         * modules/relocatable-prog: Renamed from modules/relocatable.
46687         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
46688
46689 2007-03-03  Bruno Haible  <bruno@clisp.org>
46690
46691         * modules/relocatable-script (Files): Add doc/relocatable.texi,
46692         m4/relocatable-lib.m4.
46693         (Depends-on): Remove 'relocatable'.
46694         (configure.ac): Add gl_RELOCATABLE_NOP.
46695
46696 2007-03-03  Bruno Haible  <bruno@clisp.org>
46697
46698         * modules/relocatable-prog-wrapper: New file.
46699         * modules/relocatable (Depends-on): Add it. Remove all other
46700         dependencies except progname.
46701         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
46702
46703         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
46704         (gl_FUNC_STRERROR): Nop.
46705         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
46706
46707         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
46708         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
46709
46710         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
46711         (gl_FUNC_READLINK): Update.
46712
46713         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
46714
46715 2007-03-03  Bruno Haible  <bruno@clisp.org>
46716
46717         * lib/xreadlink.c: Include <unistd.h> unconditionally.
46718         * modules/xreadlink (Depends-on): Add unistd.
46719         * modules/xreadlink-with-size (Depends-on): Likewise.
46720
46721 2007-03-03  Bruno Haible  <bruno@clisp.org>
46722
46723         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
46724         extracted from gt_FUNC_SETENV.
46725         (gt_FUNC_SETENV): Remove macro.
46726         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
46727         remove gt_FUNC_SETENV.
46728
46729 2007-03-03  Bruno Haible  <bruno@clisp.org>
46730
46731         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
46732         ENABLE_RELOCATABLE here.
46733         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
46734
46735 2007-03-03  Bruno Haible  <bruno@clisp.org>
46736
46737         * modules/rbtreehash-list-tests (Depends-on): Add progname.
46738         * tests/test-rbtreehash_list.c: Include progname.h.
46739         (main): Call set_program_name.
46740
46741         * modules/rbtree-oset-tests (Depends-on): Add progname.
46742         * tests/test-rbtree_oset.c: Include progname.h.
46743         (main): Call set_program_name.
46744
46745         * modules/rbtree-list-tests (Depends-on): Add progname.
46746         * tests/test-rbtree_list.c: Include progname.h.
46747         (main): Call set_program_name.
46748
46749         * modules/linked-list-tests (Depends-on): Add progname.
46750         * tests/test-linked_list.c: Include progname.h.
46751         (main): Call set_program_name.
46752
46753 2007-03-03  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
46756         All uses of __restrict changed to _Restrict_.
46757         * lib/glob_.h (__restrict): Remove macro.
46758
46759 2007-03-02  Bruno Haible  <bruno@clisp.org>
46760
46761         * modules/gettext (configure.ac): Require gettext infrastructure
46762         from version 0.16.1.
46763
46764 2007-03-02  Bruno Haible  <bruno@clisp.org>
46765
46766         * modules/linkedhash-list-tests (Depends-on): Add progname.
46767         * tests/test-linkedhash_list.c: Include progname.h.
46768         (main): Call set_program_name.
46769
46770         * modules/carray-list-tests (Depends-on): Add progname.
46771         * tests/test-carray_list.c: Include progname.h.
46772         (main): Call set_program_name.
46773
46774         * modules/avltreehash-list-tests (Depends-on): Add progname.
46775         * tests/test-avltreehash_list.c: Include progname.h.
46776         (main): Call set_program_name.
46777
46778         * modules/avltree-oset-tests (Depends-on): Add progname.
46779         * tests/test-avltree_oset.c: Include progname.h.
46780         (main): Call set_program_name.
46781
46782         * modules/avltree-list-tests (Depends-on): Add progname.
46783         * tests/test-avltree_list.c: Include progname.h.
46784         (main): Call set_program_name.
46785
46786         * modules/array-oset-tests (Depends-on): Add progname.
46787         * tests/test-array_oset.c: Include progname.h.
46788         (main): Call set_program_name.
46789
46790         * modules/array-list-tests (Depends-on): Add progname.
46791         * tests/test-array_list.c: Include progname.h.
46792         (main): Call set_program_name.
46793
46794         * modules/argp-tests (Depends-on): Add progname.
46795         * tests/test-argp.c: Include argp.h first. Include progname.h.
46796         (main): Call set_program_name.
46797
46798 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
46799
46800         * doc/gnulib-tool.texi (Initial import): Reword description of
46801         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
46802         limited effect even if defined after the first system include.
46803
46804 2007-03-01  Bruno Haible  <bruno@clisp.org>
46805
46806         * build-aux/config.libpath: Update to libtool-1.5.22.
46807         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46808
46809 2007-03-01  Bruno Haible  <bruno@clisp.org>
46810
46811         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
46812         foo_CFLAGS.
46813         Reported by Ralf Wildenhues.
46814
46815 2007-03-01  Bruno Haible  <bruno@clisp.org>
46816
46817         * build-aux/install-reloc: Remove object files left over by some
46818         compilers.
46819         Reported by Ralf Wildenhues.
46820
46821 2007-03-01  Bruno Haible  <bruno@clisp.org>
46822
46823         * build-aux/install-reloc: Break long lines.
46824
46825 2007-03-01  Bruno Haible  <bruno@clisp.org>
46826
46827         * doc/relocatable.texi: Document that it may not work on OpenBSD.
46828         Reported by Ralf Wildenhues.
46829
46830 2007-03-01  Bruno Haible  <bruno@clisp.org>
46831
46832         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
46833         include ordering constraints.
46834
46835 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46836
46837         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
46838         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
46839         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
46840         as another example.
46841         * lib/time_.h: Fix misspelling.
46842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46843         Require gl_HEADER_TIME_H_DEFAULTS.
46844         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
46845         * m4/time_r.m4 (gl_TIME_R): Likewise.
46846         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
46847
46848 2007-03-01  Bruno Haible  <bruno@clisp.org>
46849
46850         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
46851         * m4/utimens.m4 (gl_UTIMENS): Likewise.
46852
46853 2007-03-01  Jim Meyering  <jim@meyering.net>
46854
46855         * modules/xreadlink (Maintainer): Add my name.
46856         * modules/xreadlink-with-size (Depends-on): Alphabetize.
46857
46858 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
46859             Bruno Haible  <bruno@clisp.org>
46860
46861         * build-aux/install-reloc: Compile also c-ctype.c.
46862         * build-aux/relocatable.sh.in: New file.
46863         * doc/relocatable.texi: New file.
46864         * doc/relocatable-maint.texi: New file.
46865         * doc/gnulib.texi: Include relocatable-maint.texi.
46866         * lib/progreloc.c: Include unistd.h unconditionally.
46867         * lib/relocwrapper.c: Include unistd.h unconditionally.
46868         Include c-ctype.h.
46869         (add_dotbin): Use c_tolower.
46870         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
46871         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
46872         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
46873         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
46874         to m4/relocatable-lib.m4.
46875         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
46876         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
46877         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
46878         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
46879         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
46880         * modules/relocatable: New file.
46881         * modules/relocatable-lib: New file.
46882         * modules/relocatable-script: New file.
46883
46884 2007-02-28  Bruno Haible  <bruno@clisp.org>
46885
46886         Import --enable-relocatable infrastructure.
46887         * build-aux/config.libpath: New file, from GNU gettext.
46888         * build-aux/install-reloc: New file, from GNU gettext.
46889         * build-aux/reloc-ldflags: New file, from GNU gettext.
46890         * lib/relocatable.h: New file, from GNU gettext.
46891         * lib/relocatable.c: New file, from GNU gettext.
46892         * lib/relocwrapper.c: New file, from GNU gettext.
46893         * m4/relocatable.m4: New file, from GNU gettext.
46894
46895 2007-02-28  Bruno Haible  <bruno@clisp.org>
46896
46897         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
46898
46899         * modules/xreadlink: New file, from GNU gettext with modifications.
46900         * lib/xreadlink.c: New file, from GNU gettext.
46901         * lib/xreadlink.h: Add comments.
46902         (xreadlink): New declaration.
46903
46904         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
46905         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
46906         lib/xreadlink-with-size.c.
46907         (configure.ac): Remove gl_XREADLINK invocation.
46908         (Makefile.am): Augment lib_SOURCES.
46909         * m4/xreadlink.m4: Remove file.
46910         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
46911         (xreadlink_with_size): Renamed from xreadink.
46912         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
46913         * modules/canonicalize (Depends-on): Replace xreadlink with
46914         xreadlink-with-size.
46915         * lib/canonicalize.c (canonicalize_filename_mode): Update.
46916
46917 2007-02-25  Jim Meyering  <jim@meyering.net>
46918
46919         * build-aux/announce-gen: When complaining about excess arguments,
46920         list them.
46921
46922 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
46923
46924         * README: Document signed integer overflow situation more
46925         accurately.
46926
46927 2007-02-25  Bruno Haible  <bruno@clisp.org>
46928
46929         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
46930         'a' or 'A' conversion.
46931
46932 2007-02-25  Bruno Haible  <bruno@clisp.org>
46933
46934         * modules/filename: Renamed from modules/pathname.
46935         (Files): Replace lib/pathname.h with lib/filename.h. Replace
46936         lib/concatpath.c with lib/concat-filename.c.
46937         (Makefile.am): Update.
46938         (Include): Replace pathname.h with filename.h.
46939         * lib/filename.h: Renamed from lib/pathname.h.
46940         (concatenated_filename): Renamed from concatenated_pathname.
46941         * lib/concat-filename.c: Renamed from lib/concatpath.c.
46942         (concatenated_filename): Renamed from concatenated_pathname.
46943         * lib/findprog.c: Include filename.h instead of pathname.h.
46944         (find_in_path): Update.
46945         * lib/javacomp.c: Include filename.h instead of pathname.h.
46946         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46947         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46948         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46949         is_oldgcj_14_13_usable, is_javac_usable): Update.
46950         * lib/javaexec.c: Include filename.h instead of pathname.h.
46951         (execute_java_class): Update.
46952         * modules/findprog: Update.
46953         * modules/javacomp: Update.
46954         * modules/javaexec: Update.
46955         * MODULES.html.sh (File system functions): Add 'filename', remove
46956         'pathname'.
46957
46958 2007-02-25  Bruno Haible  <bruno@clisp.org>
46959
46960         * modules/printf-frexpl-tests: New file.
46961         * tests/test-printf-frexpl.c: New file.
46962
46963         * modules/printf-frexpl: New file.
46964         * lib/printf-frexpl.h: New file.
46965         * lib/printf-frexpl.c: New file.
46966         * m4/printf-frexpl.m4: New file.
46967
46968 2007-02-25  Bruno Haible  <bruno@clisp.org>
46969
46970         * modules/printf-frexp-tests: New file.
46971         * tests/test-printf-frexp.c: New file.
46972
46973         * modules/printf-frexp: New file.
46974         * lib/printf-frexp.h: New file.
46975         * lib/printf-frexp.c: New file.
46976         * m4/printf-frexp.m4: New file.
46977
46978 2007-02-25  Bruno Haible  <bruno@clisp.org>
46979
46980         Assume automake >= 1.10 for the tests.
46981         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
46982         * modules/arctwo-tests: Likewise.
46983         * modules/argp-tests: Likewise.
46984         * modules/avltree-list-tests: Likewise.
46985         * modules/avltree-oset-tests: Likewise.
46986         * modules/avltreehash-list-tests: Likewise.
46987         * modules/carray-list-tests: Likewise.
46988         * modules/crc-tests: Likewise.
46989         * modules/des-tests: Likewise.
46990         * modules/gc-arcfour-tests: Likewise.
46991         * modules/gc-arctwo-tests: Likewise.
46992         * modules/gc-des-tests: Likewise.
46993         * modules/gc-hmac-md5-tests: Likewise.
46994         * modules/gc-hmac-sha1-tests: Likewise.
46995         * modules/gc-md2-tests: Likewise.
46996         * modules/gc-md4-tests: Likewise.
46997         * modules/gc-md5-tests: Likewise.
46998         * modules/gc-pbkdf2-sha1-tests: Likewise.
46999         * modules/gc-rijndael-tests: Likewise.
47000         * modules/gc-sha1-tests: Likewise.
47001         * modules/gc-tests: Likewise.
47002         * modules/getaddrinfo-tests: Likewise.
47003         * modules/hmac-md5-tests: Likewise.
47004         * modules/hmac-sha1-tests: Likewise.
47005         * modules/linked-list-tests: Likewise.
47006         * modules/linkedhash-list-tests: Likewise.
47007         * modules/lock-tests: Likewise.
47008         * modules/md2-tests: Likewise.
47009         * modules/md4-tests: Likewise.
47010         * modules/md5-tests: Likewise.
47011         * modules/rbtree-list-tests: Likewise.
47012         * modules/rbtree-oset-tests: Likewise.
47013         * modules/rbtreehash-list-tests: Likewise.
47014         * modules/read-file-tests: Likewise.
47015         * modules/rijndael-tests: Likewise.
47016         * modules/stdint-tests: Likewise.
47017         * modules/tls-tests: Likewise.
47018
47019 2007-02-24  Bruno Haible  <bruno@clisp.org>
47020
47021         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47022         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47023         function; instead check whether isnan with a double argument links.
47024         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47025         function; instead check whether isnan with a 'long double' argument
47026         links.
47027         Reported by Eric Blake <ebb9@byu.net>.
47028
47029 2007-02-24  Bruno Haible  <bruno@clisp.org>
47030
47031         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47032         defined.
47033         * lib/isnanl.c: Remove all code. Just include isnan.c.
47034         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47035
47036 2007-02-25  Jim Meyering  <jim@meyering.net>
47037
47038         Avoid conflicting types for 'unsetenv' on FreeBSD.
47039         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47040         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47041         in stdlib.h.
47042
47043 2007-02-24  Bruno Haible  <bruno@clisp.org>
47044
47045         * modules/isnanl-nolibm-tests: New file.
47046         * tests/test-isnanl.c: New file.
47047
47048         * modules/isnanl-nolibm: New file.
47049         * lib/isnanl.h: New file.
47050         * lib/isnanl.c: New file.
47051         * m4/isnanl.m4: New file.
47052
47053 2007-02-24  Bruno Haible  <bruno@clisp.org>
47054
47055         * modules/isnan-nolibm-tests: New file.
47056         * tests/test-isnan.c: New file.
47057
47058         * modules/isnan-nolibm: New file.
47059         * lib/isnan.h: New file.
47060         * lib/isnan.c: New file.
47061         * m4/isnan.m4: New file.
47062
47063 2007-02-24  Bruno Haible  <bruno@clisp.org>
47064
47065         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47066         assume that an exponent fits in 20 bits.
47067
47068 2007-02-24  Jim Meyering  <jim@meyering.net>
47069
47070         * m4/regex.m4: Update the description of the configure-time option,
47071         --without-included-regex, to state accurately what the defaults are,
47072         and perhaps to give people an idea why using this option is risky.
47073
47074 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47075
47076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47077         loops on small arguments.  This attempts to avoid the problem
47078         Bruno Haible reported for AIX 4.3.2 in
47079         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47080
47081 2007-02-23  Bruno Haible  <bruno@clisp.org>
47082
47083         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47084         Needed for help2man.
47085
47086 2007-02-23  Karl Berry  <karl@gnu.org>
47087
47088         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47089         exists, foo.h should be cvs-ignored, not committed.
47090
47091 2007-02-23  Eric Blake  <ebb9@byu.net>
47092
47093         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47094         * lib/stat-time.h (includes): Likewise.
47095         * lib/utimecmp.c (includes): Likewise.
47096         * lib/utimens.h (includes): Likewise.
47097         * lib/getdate.y (includes): Also include "timespec.h" for use
47098         internal to the module.
47099         * modules/utimens (Depends-on): Revert yesterday's patch.
47100         * modules/nanosleep (Depends-on): Add missing dependency.
47101
47102 2007-02-22  Bruno Haible  <bruno@clisp.org>
47103
47104         * lib/glob.c: Don't include getlogin_r.h.
47105
47106 2007-02-22  Jim Meyering  <jim@meyering.net>
47107
47108         * modules/utimens (Depends-on): Add timespec, required for
47109         utimens.h's inclusion of timespec.h.
47110
47111 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47112
47113         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47114         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47115         Schwab in
47116         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47117         I'll try to think of a better way to fix the Solaris problem.
47118
47119         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47120         like glibc; on Solaris 10, it fails with errno == EINVAL.
47121         POSIX says the behavior is unspecified if the first argument is NULL,
47122         so play it safe and never pass NULL to the system getcwd.
47123
47124 2007-02-21  Jim Meyering  <jim@meyering.net>
47125
47126         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47127         of gettimeofday.  It would conflict with the one now always
47128         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47129         an IRIX 6.5 build failure.
47130
47131 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47132
47133         Minor fixups to port to Solaris 10 with Sun C 5.8.
47134         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47135         * modules/getcwd (Depends-on): Add dirfd.
47136         * lib/putenv.c (putenv): #undef it.
47137         (rpl_putenv): New decl.
47138         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47139
47140 2007-02-20  Bruno Haible  <bruno@clisp.org>
47141
47142         * modules/stdio-tests: New file.
47143         * tests/test-stdio.c: New file.
47144
47145         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47146         (Depends-on): Add stdio.
47147         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47148         (Include): Use <stdio.h> instead of vsnprintf.h.
47149         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47150         HAVE_DECL_VSNPRINTF.
47151         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47152
47153         * modules/snprintf (Files): Remove lib/snprintf.h.
47154         (Depends-on): Add stdio.
47155         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47156         (Include): Use <stdio.h> instead of snprintf.h.
47157         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47158         HAVE_DECL_SNPRINTF.
47159         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47160         * lib/getaddrinfo.c: Likewise.
47161
47162         * modules/stdio: New file.
47163         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47164         * lib/snprintf.h: Remove file.
47165         * lib/vsnprintf.h: Remove file.
47166         * lib/.cppi-disable: Remove snprintf.h.
47167         * m4/stdio_h.m4: New file.
47168         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47169
47170 2007-02-20  Jim Meyering  <jim@meyering.net>
47171
47172         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47173         used by e.g., mingw.  From Bruno Haible.
47174
47175 2007-02-19  Bruno Haible  <bruno@clisp.org>
47176
47177         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47178         warnings.
47179         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47180
47181 2007-02-19  Bruno Haible  <bruno@clisp.org>
47182
47183         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47184         from mingw users.
47185
47186 2007-02-19  Bruno Haible  <bruno@clisp.org>
47187
47188         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47189         warnings.
47190         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47191
47192 2007-02-19  Jim Meyering  <jim@meyering.net>
47193
47194         Don't use FD after a successful "fdopendir (fd)".
47195         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47196         Reset it by calling dirfd on the just-obtained DIR*.
47197
47198         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47199         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47200
47201 2007-02-18  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/readlink.c: Include <unistd.h>.
47204         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47205         HAVE_READLINK.
47206         * modules/readlink (Depends-on): Add unistd.
47207         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47208         (Include): Add <unistd.h>.
47209
47210         * lib/getlogin_r.h: Remove file.
47211         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47212         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47213         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47214         HAVE_DECL_GETLOGIN_R.
47215         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47216         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47217         (Include): Use <unistd.h> instead of getlogin_r.h.
47218
47219         * lib/getcwd.h: Remove file.
47220         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47221         * lib/xgetcwd.c: Likewise.
47222         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47223         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47224         * modules/getcwd (Files): Remove lib/getcwd.h.
47225         (Depends-on): Add unistd.
47226         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47227         (Include): Use <unistd.h> instad of getcwd.h.
47228
47229         * lib/ftruncate.c: Include <unistd.h> first.
47230         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47231         Set HAVE_FTRUNCATE.
47232         * modules/ftruncate (Depends-on): Add unistd.
47233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47234
47235         * lib/fchdir.c: Include <unistd.h> first.
47236         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47238         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47239         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47240         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47241
47242         * lib/dup2.c: Include <unistd.h> first.
47243         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47244         HAVE_DUP2.
47245         * modules/dup2 (Depends-on): Add unistd.
47246         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47247
47248         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47249         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47250         REPLACE_CHOWN. Don't define chown as a macro here.
47251         * modules/chown (Depends-on): Add unistd.
47252         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47253
47254         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47255         Add definition for GL_LINK_WARNING.
47256         (chown, dup2): New declarations.
47257         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47258         link warning.
47259         (ftruncate): New declaration.
47260         (getcwd): New declaration, taken from old getcwd.h.
47261         (getlogin_r): New declaration, taken from old getlogin_r.h.
47262         (readlink): New declaration.
47263         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47264         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47265         (gl_PREREQ_UNISTD): Remove macro.
47266         (gl_UNISTD_MODULE_INDICATOR): New macro.
47267         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47268         many new variables. Don't set UNISTD_H.
47269         * modules/unistd (Description): Change.
47270         (Depends-on): Add link-warning.
47271         (configure.ac): Update.
47272         (Makefile.am): Create unistd.h always. Substitute many new variables
47273         into it.
47274
47275 2007-02-18  Bruno Haible  <bruno@clisp.org>
47276
47277         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47278         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47279         HAVE_GETSUBOPT.
47280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47281         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47282         * lib/getsubopt.h: Remove file.
47283         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47284         (Depends-on): Add stdlib.
47285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47286         (Includes): Use <stdlib.h> instead of getsubopt.h.
47287         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47288         Set HAVE_GETSUBOPT.
47289         * lib/getsubopt.c: Don't include getsubopt.h.
47290
47291 2007-02-18  Bruno Haible  <bruno@clisp.org>
47292
47293         * modules/fchdir (Depends-on): Add dup2.
47294
47295 2007-02-18  Bruno Haible  <bruno@clisp.org>
47296
47297         * lib/stdlib_.h: Handle glibc's special invocation convention
47298         specially.
47299
47300 2007-02-18  Bruno Haible  <bruno@clisp.org>
47301
47302         * modules/stdlib-tests: New file.
47303         * tests/test-stdlib.c: New file.
47304
47305         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47306         (Depends-on): Add stdlib.
47307         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47308         (Includes): Use <stdlib.h> instead of mkstemp.h.
47309         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47310         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47311         * lib/mkstemp.c: Don't include mkstemp.h.
47312         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47313         * lib/stdlib--.h: Don't include mkstemp.h.
47314
47315         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47316         (Depends-on): Add stdlib.
47317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47318         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47319         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47320         HAVE_MKDTEMP.
47321         * lib/mkdtemp.c: Don't include mkdtemp.h.
47322         * lib/clean-temp.c: Don't include mkdtemp.h.
47323
47324         * modules/exit (Files): Remove lib/exit.h.
47325         (Depends-on): Add stdlib.
47326         (Makefile.am): Remove lib_SOURCES.
47327         (Include): Use <stdlib.h> instead of exit.h.
47328         * lib/argmatch.c: Don't include exit.h.
47329         * lib/execute.c: Likewise.
47330         * lib/pagealign_alloc.c: Likewise.
47331         * lib/pipe.c: Likewise.
47332         * lib/wait-process.c: Likewise.
47333         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47334         * lib/exitfail.c: Likewise.
47335         * lib/savewd.c: Likewise.
47336         * lib/xsetenv.c: Likewise.
47337
47338         * modules/stdlib: New file.
47339         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
47340         and extra comments about mkstemp().
47341         * lib/exit.h: Remove file.
47342         * lib/mkdtemp.h: Remove file.
47343         * lib/mkstemp.h: Remove file.
47344         * m4/stdlib_h.m4: New file.
47345         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
47346
47347 2007-02-18  Bruno Haible  <bruno@clisp.org>
47348
47349         * modules/math-tests: New file.
47350         * tests/test-math.c: New file.
47351
47352         * modules/math: New file.
47353         * modules/mathl (Files): Remove lib/mathl.h.
47354         (Depends-on): Add math.
47355         (Makefile.am): Don't mention mathl.h.
47356         (Include): Use <math.h> instead of mathl.h.
47357         * lib/math_.h: New file.
47358         * lib/mathl.h: Remove file.
47359         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
47360         mathl.h.
47361         * lib/asinl.c: Likewise.
47362         * lib/atanl.c: Likewise.
47363         * lib/ceill.c: Likewise.
47364         * lib/cosl.c: Likewise.
47365         * lib/expl.c: Likewise.
47366         * lib/floorl.c: Likewise.
47367         * lib/frexpl.c: Likewise.
47368         * lib/ldexpl.c: Likewise.
47369         * lib/logl.c: Likewise.
47370         * lib/sincosl.c: Likewise.
47371         * lib/sinl.c: Likewise.
47372         * lib/sqrtl.c: Likewise.
47373         * lib/tanl.c: Likewise.
47374         * lib/trigl.c: Likewise.
47375         * m4/math_h.m4: New file.
47376         * MODULES.html.sh (Mathematics): Add math.
47377
47378 2007-02-17  Bruno Haible  <bruno@clisp.org>
47379
47380         * modules/wctype-tests: New file.
47381         * tests/test-wctype.c: New file.
47382
47383         * modules/wchar-tests: New file.
47384         * tests/test-wchar.c: New file.
47385
47386         * modules/unistd-tests: New file.
47387         * tests/test-unistd.c: New file.
47388
47389         * modules/time-tests: New file.
47390         * tests/test-time.c: New file.
47391
47392         * modules/sysexits-tests: New file.
47393         * tests/test-sysexits.c: New file.
47394
47395         * modules/sys_time-tests: New file.
47396         * tests/test-sys_time.c: New file.
47397
47398         * modules/sys_stat-tests: New file.
47399         * tests/test-sys_stat.c: New file.
47400
47401         * modules/sys_socket-tests: New file.
47402         * tests/test-sys_socket.c: New file.
47403
47404         * modules/sys_select-tests: New file.
47405         * tests/test-sys_select.c: New file.
47406
47407         * modules/string-tests: New file.
47408         * tests/test-string.c: New file.
47409
47410         * modules/stdbool-tests: New file.
47411         * tests/test-stdbool.c: New file.
47412
47413         * modules/netinet_in-tests: New file.
47414         * tests/test-netinet_in.c: New file.
47415
47416         * modules/inttypes-tests: New file.
47417         * tests/test-inttypes.c: New file.
47418
47419         * modules/fcntl-tests: New file.
47420         * tests/test-fcntl.c: New file.
47421
47422         * modules/byteswap-tests: New file.
47423         * tests/test-byteswap.c: New file.
47424
47425         * modules/arpa_inet-tests: New file.
47426         * tests/test-arpa_inet.c: New file.
47427
47428 2007-02-17  Bruno Haible  <bruno@clisp.org>
47429
47430         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
47431         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
47432         if the corresponding module is not enabled. Emit link warnings if
47433         the function is used nevertheless.
47434         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
47435         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
47436         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
47437         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
47438         * modules/inttypes (Depends-on): Add link-warning.
47439         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47440         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
47441         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
47442         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
47443         * modules/imaxdiv (configure.ac): Likewise.
47444         * modules/strtoimax (configure.ac): Likewise.
47445         * modules/strtoumax (configure.ac): Likewise.
47446
47447 2007-02-17  Bruno Haible  <bruno@clisp.org>
47448
47449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
47450         gl_STRING_MODULE_INDICATOR_DEFAULTS.
47451         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
47452         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
47453
47454 2007-02-17  Bruno Haible  <bruno@clisp.org>
47455
47456         * modules/link-warning: New file.
47457         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
47458         * lib/string_.h (GL_LINK_WARNING): Remove definition.
47459         * modules/string (Depends-on): Add link-warning.
47460         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47461         string.h.
47462         * MODULES.html.sh (Support for building libraries and executables): Add
47463         link-warning.
47464
47465 2007-02-17  Bruno Haible  <bruno@clisp.org>
47466
47467         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
47468         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
47469         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
47470         long lines.
47471
47472 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
47473             Bruno Haible  <bruno@clisp.org>
47474
47475         * modules/tmpfile: New file.
47476         * lib/tmpfile.c: New file.
47477         * m4/tmpfile.m4: New file.
47478         * MODULES.html.sh (func_all_modules): New section "Input/output".
47479
47480 2007-02-15  Bruno Haible  <bruno@clisp.org>
47481
47482         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
47483         (supports_delete_on_close): New function.
47484         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
47485
47486 2007-02-14  Bruno Haible  <bruno@clisp.org>
47487
47488         * modules/mbspcasecmp-tests: New file.
47489         * tests/test-mbspcasecmp.sh: New file.
47490         * tests/test-mbspcasecmp.c: New file.
47491
47492         New module mbspcasecmp.
47493         * modules/mbspcasecmp: New file.
47494         * lib/mbspcasecmp.c: New file.
47495         * lib/string_.h (strncasecmp): Change warning message.
47496         (mbspcasecmp): New declaration.
47497         * m4/mbspcasecmp.m4: New file.
47498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47499         GNULIB_MBSPCASECMP.
47500         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
47501         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
47502
47503 2007-02-14  Bruno Haible  <bruno@clisp.org>
47504
47505         * modules/mbsncasecmp-tests: New file.
47506         * tests/test-mbsncasecmp.sh: New file.
47507         * tests/test-mbsncasecmp.c: New file.
47508
47509         New module mbsncasecmp.
47510         * modules/mbsncasecmp: New file.
47511         * lib/mbsncasecmp.c: New file.
47512         * lib/string_.h (mbsncasecmp): New declaration.
47513         * m4/mbsncasecmp.m4: New file.
47514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47515         GNULIB_MBSNCASECMP.
47516         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
47517         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
47518
47519 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47520
47521         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
47522         Verify that it doesn't overlap with our flags.
47523         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
47524         do not have the desired effect in multibyte locales; instead, use
47525         mbscasecmp.
47526         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
47527         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
47528         we don't require GNU fnmatch ourselves (if our users require it, they
47529         should do so explicitly).
47530
47531         Fix regex code so it doesn't rely on strcasecmp.
47532         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
47533         Otherwise, include gnulib's langinfo.h.
47534         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
47535         undesirable behavior in non-C locales.  Instead, rely on localecharset.
47536         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
47537         * modules/regex (FILES): Remove m4/codeset.m4.
47538         (Depends-on): Add localcharset.  Remove strcase.
47539
47540 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47541
47542         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
47543         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47544
47545 2007-02-13  Bruno Haible  <bruno@clisp.org>
47546
47547         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
47548         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47549
47550 2007-02-12  Bruno Haible  <bruno@clisp.org>
47551
47552         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47553         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
47554         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
47555         time warning rather than a link error.
47556
47557 2007-02-12  Bruno Haible  <bruno@clisp.org>
47558
47559         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
47560         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47561         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47562
47563 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47564
47565         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
47566         args, not 2.
47567
47568 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47569
47570         New module 'time', so that apps can include <time.h> as per
47571         POSIX and GNU instead of separate include files like time_r.h
47572         and timegm.h.  This implementation tries out a simpler approach
47573         for replacing decls in standard include files (as compared to
47574         the string module), somewhat as an experiment.
47575
47576         * config/srclist.txt: Comment out mktime.c for now.
47577         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
47578         since it doesn't apply any more.  Use generic wording instead.
47579         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
47580         'time'.
47581         * lib/time_.h, m4/time_h.m4, modules/time: New files.
47582         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
47583         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
47584         Don't include <sys/types.h>; no longer needed since we assume C89.
47585         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
47586         * lib/strftime.c: Likewise.
47587         * lib/time_r.c: Likewise.
47588         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
47589         * lib/nanosleep.c: Include <time.h> first, to check interface.
47590         * lib/strptime.c: Likewise.
47591         * lib/time_r.c: Likewise.
47592         * lib/timegm.c: Likewise.
47593         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
47594         needed.
47595         * lib/timegm.c: Don't include timegm.h; no longer needed.
47596         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
47597         time.h now handles any problems in that area.
47598         (struct timespec, nanosleep): Remove; time.h now arranges for these.
47599         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
47600         that time.h defines struct timespec.
47601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
47602         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
47603         handles that.
47604         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
47605         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
47606         needed.  Set REPLACE_LOCALTIME.
47607         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
47608         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
47609         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
47610         nanosleep; time_h.m4 now does that.  Don't require
47611         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
47612         module handles this now.
47613         * modules/getdate (Depends-on): Remove timespec.  Add time.
47614         * modules/nanosleep (Depends-on): Likewise.
47615         * modules/stat-time (Depends-on): Likewise.
47616         * modules/nanosleep (Include): Include time.h, not timespec.h.
47617         * modules/strptime (Files): Remove lib/strptime.h.
47618         (Depends-on): Add extensions, time.
47619         (Include): Include time.h, not strptime.h.
47620         * modules/time_r (Files): Remove lib/time_r.h.
47621         (Depends-on): Add time.
47622         (Include): Include time.h, not time_r.h.
47623         * modules/timegm: Likewise.
47624         * modules/timespec (Description): Now does timespec-related decls
47625         of our own, instead of struct timespec itself.
47626         (Depends-on): Add time; remove extensions.
47627         (Maintainer): Add self.
47628         * modules/utimecmp (Depends-on): Add time; remove timespec.
47629         * modules/utimens (Depends-on): Likewise.
47630         * modules/xnanosleep (Depends-on): Likewise.
47631
47632 2007-02-11  Bruno Haible  <bruno@clisp.org>
47633
47634         * lib/c-strstr.c: Include allocsa.h.
47635         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47636         * lib/c-strcasestr.c: Include allocsa.h.
47637         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47638         * lib/strcasestr.c: Include allocsa.h.
47639         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47640         * lib/mbsstr.c: Include allocsa.h.
47641         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47642         allocsa/freesa instead of malloc/free.
47643         * lib/mbscasestr.c: Include allocsa.h.
47644         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47645         allocsa/freesa instead of malloc/free.
47646         * modules/c-strstr (Depends-on): Add allocsa.
47647         * modules/c-strcasestr (Depends-on): Likewise.
47648         * modules/strcasestr (Depends-on): Likewise.
47649         * modules/mbsstr (Depends-on): Likewise.
47650         * modules/mbscasestr (Depends-on): Likewise.
47651
47652 2007-02-11  Bruno Haible  <bruno@clisp.org>
47653
47654         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
47655
47656         * modules/mbsspn-tests: New file.
47657         * tests/test-mbsspn.sh: New file.
47658         * tests/test-mbsspn.c: New file.
47659
47660 2007-02-11  Bruno Haible  <bruno@clisp.org>
47661
47662         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
47663
47664         * modules/mbspbrk-tests: New file.
47665         * tests/test-mbspbrk.sh: New file.
47666         * tests/test-mbspbrk.c: New file.
47667
47668 2007-02-11  Bruno Haible  <bruno@clisp.org>
47669
47670         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
47671         unneeded cast.
47672
47673         * modules/mbscspn-tests: New file.
47674         * tests/test-mbscspn.sh: New file.
47675         * tests/test-mbscspn.c: New file.
47676
47677 2007-02-11  Bruno Haible  <bruno@clisp.org>
47678
47679         * modules/mbscasecmp-tests: New file.
47680         * tests/test-mbscasecmp.sh: New file.
47681         * tests/test-mbscasecmp.c: New file.
47682
47683 2007-02-11  Bruno Haible  <bruno@clisp.org>
47684
47685         Ensure O(n) worst-case complexity of mbscasestr.
47686         * lib/mbscasestr.c: Include stdbool.h.
47687         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47688         functions.
47689         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
47690         the bookkeeping indicates that it's worth it.
47691         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
47692
47693         * modules/mbscasestr-tests: New file.
47694         * tests/test-mbscasestr1.c: New file.
47695         * tests/test-mbscasestr2.sh: New file.
47696         * tests/test-mbscasestr2.c: New file.
47697         * tests/test-mbscasestr3.sh: New file.
47698         * tests/test-mbscasestr3.c: New file.
47699         * tests/test-mbscasestr4.sh: New file.
47700         * tests/test-mbscasestr4.c: New file.
47701         * m4/locale-tr.m4: New file.
47702
47703 2007-02-11  Bruno Haible  <bruno@clisp.org>
47704
47705         Ensure O(n) worst-case complexity of mbsstr.
47706         * lib/mbsstr.c: Include stdbool.h.
47707         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47708         functions.
47709         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
47710         bookkeeping indicates that it's worth it.
47711         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
47712
47713         * modules/mbsstr-tests: New file.
47714         * tests/test-mbsstr1.c: New file.
47715         * tests/test-mbsstr2.sh: New file.
47716         * tests/test-mbsstr2.c: New file.
47717         * tests/test-mbsstr3.sh: New file.
47718         * tests/test-mbsstr3.c: New file.
47719         * m4/locale-fr.m4: New file.
47720
47721 2007-02-11  Bruno Haible  <bruno@clisp.org>
47722
47723         * lib/mbsrchr.c (mbsrchr): Fix bug.
47724
47725         * modules/mbsrchr-tests: New file.
47726         * tests/test-mbsrchr.sh: New file.
47727         * tests/test-mbsrchr.c: New file.
47728
47729 2007-02-11  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/mbschr.c (mbschr): Fix bug.
47732
47733         * modules/mbschr-tests: New file.
47734         * tests/test-mbschr.sh: New file.
47735         * tests/test-mbschr.c: New file.
47736         * m4/locale-zh.m4: New file.
47737
47738 2007-02-11  Bruno Haible  <bruno@clisp.org>
47739
47740         Support for copying multibyte string iterators.
47741         * lib/mbiter.h: Include <string.h>.
47742         (mbiter_multi_copy): New function.
47743         (mbi_copy): New macro.
47744         * lib/mbuiter.h: Include <string.h>.
47745         (mbuiter_multi_copy): New function.
47746         (mbui_copy): New macro.
47747
47748 2007-02-11  Bruno Haible  <bruno@clisp.org>
47749
47750         New module mbslen.
47751         * modules/mbslen: New file.
47752         * lib/mbslen.c: New file.
47753         * lib/string_.h (mbslen): New declaration.
47754         * m4/mbslen.m4: New file.
47755         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47756         GNULIB_MBSLEN.
47757         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
47758         * MODULES.html.sh (Internationalization functions): Add mbslen.
47759
47760 2007-02-11  Bruno Haible  <bruno@clisp.org>
47761
47762         Ensure O(n) worst-case complexity of strcasestr substitute.
47763         * lib/strcasestr.c: Include stdbool.h.
47764         (knuth_morris_pratt): New function.
47765         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47766         bookkeeping indicates that it's worth it.
47767         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
47768
47769         * modules/strcasestr-tests: New file.
47770         * tests/test-strcasestr.c: New file.
47771
47772 2007-02-11  Bruno Haible  <bruno@clisp.org>
47773
47774         Ensure O(n) worst-case complexity of c_strcasestr.
47775         * lib/c-strcasestr.c: Include stdbool.h, string.h.
47776         (knuth_morris_pratt): New function.
47777         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
47778         the bookkeeping indicates that it's worth it.
47779         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
47780
47781         * modules/c-strcasestr-tests: New file.
47782         * tests/test-c-strcasestr.c: New file.
47783
47784 2007-02-11  Bruno Haible  <bruno@clisp.org>
47785
47786         Ensure O(n) worst-case complexity of c_strstr.
47787         * lib/c-strstr.c: Include stdbool.h, string.h.
47788         (knuth_morris_pratt): New function.
47789         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47790         bookkeeping indicates that it's worth it.
47791         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
47792
47793         * lib/c-strstr.c: Complete rewrite for maintainability.
47794
47795         * modules/c-strstr-tests: New file.
47796         * tests/test-c-strstr.c: New file.
47797
47798 2007-02-11  Bruno Haible  <bruno@clisp.org>
47799
47800         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
47801         5.2.1 and earlier, whereby \055 was treated just like the range
47802         delimiter '-'.
47803         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47804
47805 2007-02-08  Bruno Haible  <bruno@clisp.org>
47806
47807         * modules/regex (Depends-on): Add stdbool.
47808         Reported by Dalibor Topic <robilad@kaffe.org>.
47809
47810 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47811
47812         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
47813         Prefer returning from main to exiting from it.
47814         Remove unnecessary parens after sizeof.
47815
47816 2007-02-05  Bruno Haible  <bruno@clisp.org>
47817
47818         New module mbssep.
47819         * modules/mbssep: New file.
47820         * lib/mbssep.c: New file.
47821         * lib/string_.h (strsep): Add a conditional link warning.
47822         (mbssep): New declaration.
47823         * m4/mbssep.m4: New file.
47824         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47825         GNULIB_MBSSEP.
47826         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
47827         * MODULES.html.sh (Internationalization functions): Add mbssep.
47828
47829 2007-02-05  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
47832         Optimize search in case of 1 delimiter.
47833
47834 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47835
47836         * lib/acl.h: Include sys/types.h before sys/acl.h.
47837
47838 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47839
47840         Merge upstream fix for glibc bugzilla #3957:
47841
47842         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
47843
47844         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
47845         bit for RE_HAT_LISTS_NOT_NEWLINE.
47846         (build_charclass_op): Remove bogus comment.
47847
47848 2007-02-05  Simon Josefsson  <simon@josefsson.org>
47849
47850         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
47851
47852 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
47853
47854         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
47855         * lib/memmem.c [!defined _LIBC]: Include config.h.
47856
47857 2007-02-04  Bruno Haible  <bruno@clisp.org>
47858
47859         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
47860         warning message.
47861
47862 2007-02-04  Bruno Haible  <bruno@clisp.org>
47863
47864         New module mbstok_r.
47865         * modules/mbstok_r: New file.
47866         * lib/mbstok_r.c: New file.
47867         * lib/string_.h (strtok_r): Change argument names to match the
47868         comments. Add a conditional link warning.
47869         (mbstok_r): New declaration.
47870         * m4/mbstok_r.m4: New file.
47871         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47872         GNULIB_MBSTOK_R.
47873         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
47874         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
47875
47876 2007-02-04  Bruno Haible  <bruno@clisp.org>
47877
47878         New module mbsspn.
47879         * modules/mbsspn: New file.
47880         * lib/mbsspn.c: New file.
47881         * lib/string_.h (strspn): Add a conditional link warning.
47882         (mbsspn): New declaration.
47883         * m4/mbsspn.m4: New file.
47884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47885         GNULIB_MBSSPN.
47886         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
47887         * MODULES.html.sh (Internationalization functions): Add mbsspn.
47888
47889 2007-02-04  Bruno Haible  <bruno@clisp.org>
47890
47891         New module mbspbrk.
47892         * modules/mbspbrk: New file.
47893         * lib/mbspbrk.c: New file.
47894         * lib/string_.h (strpbrk): Add a conditional link warning.
47895         (mbspbrk): New declaration.
47896         * m4/mbspbrk.m4: New file.
47897         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47898         GNULIB_MBSPBRK.
47899         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
47900         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
47901
47902 2007-02-04  Bruno Haible  <bruno@clisp.org>
47903
47904         New module mbscspn.
47905         * modules/mbscspn: New file.
47906         * lib/mbscspn.c: New file.
47907         * lib/string_.h (strcspn): Add a conditional link warning.
47908         (mbscspn): New declaration.
47909         * m4/mbscspn.m4: New file.
47910         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47911         GNULIB_MBSCSPN.
47912         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
47913         * MODULES.html.sh (Internationalization functions): Add mbscspn.
47914
47915 2007-02-04  Bruno Haible  <bruno@clisp.org>
47916
47917         New module mbscasestr, reduced goal of strcasestr.
47918         * modules/mbscasestr: New file.
47919         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
47920         (mbscasestr): Renamed from strcasestr.
47921         * lib/strcasestr.c: Don't include mbuiter.h.
47922         (strcasestr): Remove support for multibyte locales.
47923         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
47924         Change the conditional link warning.
47925         (mbscasestr): New declaration.
47926         * m4/mbscasestr.m4: New file.
47927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
47928         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
47929         REPLACE_STRCASESTR.
47930         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
47931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47932         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
47933         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
47934         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
47935         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
47936         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
47937         (Depends-on): Remove mbuiter.
47938         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
47939
47940 2007-02-04  Bruno Haible  <bruno@clisp.org>
47941
47942         Simplify handling of strncasecmp.
47943         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
47944         the conditional link warning.
47945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47946         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
47947         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
47948         * modules/strcase (configure.ac): Don't invoke
47949         gl_STRING_MODULE_INDICATOR.
47950         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
47951
47952 2007-02-04  Bruno Haible  <bruno@clisp.org>
47953
47954         New module mbscasecmp, reduced goal of strcasecmp.
47955         * modules/mbscasecmp: New file.
47956         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
47957         (mbscasecmp): Renamed from strcasecmp.
47958         * lib/strcasecmp.c: Don't include mbuiter.h.
47959         (strcasecmp): Remove support for multibyte locales.
47960         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
47961         Change the conditional link warning.
47962         (mbscasecmp): New declaration.
47963         * m4/mbscasecmp.m4: New file.
47964         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
47965         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
47966         REPLACE_STRCASECMP.
47967         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
47968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47969         GNULIB_MBSCASECMP.
47970         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
47971         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
47972         * modules/strcase (Files): Remove m4/mbrtowc.m4.
47973         (Depends-on): Remove mbuiter.
47974         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
47975
47976 2007-02-04  Bruno Haible  <bruno@clisp.org>
47977
47978         New module mbsstr. Remove module strstr.
47979         * modules/mbsstr: New file.
47980         * modules/strstr: Remove file.
47981         * lib/mbsstr.c: Renamed from lib/strstr.c.
47982         (mbsstr): Renamed from strstr.
47983         * lib/string_.h (strstr): Remove declaration. Change the conditional
47984         link warning.
47985         (mbsstr): New declaration.
47986         * m4/mbsstr.m4: New file.
47987         * m4/strstr.m4: Remove file.
47988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
47989         REPLACE_STRSTR.
47990         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
47991         Don't initialize GNULIB_STRSTR.
47992         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
47993         substitute GNULIB_STRSTR and REPLACE_STRSTR.
47994         * MODULES.html.sh (Internationalization functions): Add mbsstr.
47995         (Support for systems lacking ANSI C 89): Remove strstr.
47996
47997 2007-02-04  Bruno Haible  <bruno@clisp.org>
47998
47999         New module mbsrchr.
48000         * modules/mbsrchr: New file.
48001         * lib/mbsrchr.c: New file.
48002         * lib/string_.h (strrchr): Add a conditional link warning.
48003         (mbsrchr): New declaration.
48004         * m4/mbsrchr.m4: New file.
48005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48006         GNULIB_MBSRCHR.
48007         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48008         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48009
48010 2007-02-04  Bruno Haible  <bruno@clisp.org>
48011
48012         New module mbschr.
48013         * modules/mbschr: New file.
48014         * lib/mbschr.c: New file.
48015         * lib/string_.h (strchr): Add a conditional link warning.
48016         (mbschr): New declaration.
48017         * m4/mbschr.m4: New file.
48018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48019         GNULIB_MBSCHR.
48020         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48021         * MODULES.html.sh (Internationalization functions): Add mbschr.
48022
48023 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48024
48025         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48026
48027         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48028
48029 2007-02-04  Bruno Haible  <bruno@clisp.org>
48030
48031         New module description section 'configure.ac-early'.
48032         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48033         (func_get_autoconf_early_snippet): New function.
48034         (func_import, func_create_testdir): Use it. Remove special cases for
48035         modules 'extensions' and 'lock'.
48036         * modules/extensions (configure.ac-early): Require
48037         gl_USE_SYSTEM_EXTENSIONS.
48038         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48039
48040 2007-02-04  Bruno Haible  <bruno@clisp.org>
48041
48042         Make use of gcj-4.3's -fsource and -ftarget option.
48043         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48044         and if so try the options -fsource and -ftarget.
48045         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48046         source_version, ftarget_option, target_version arguments.
48047         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48048         (is_envjavac_oldgcj_14_14_usable): Renamed from
48049         is_envjavac_gcj_14_14_usable.
48050         (is_envjavac_oldgcj_14_13_usable): Renamed from
48051         is_envjavac_gcj_14_13_usable.
48052         (is_gcj_present): Update.
48053         (is_gcj_43, is_gcj43_usable): New functions.
48054         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48055         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48056         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48057         try the options -fsource and -ftarget.
48058
48059 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48060
48061         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48062         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48063         larger value.
48064
48065 2007-02-03  Jim Meyering  <jim@meyering.net>
48066
48067         Give tools a better chance to allocate space for very large buffers.
48068         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48069
48070         Make pwd and readlink work also when run with an unreadable parent dir
48071         on systems with openat support.
48072         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48073         provided getcwd function, even when we have openat support.
48074         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48075
48076 2007-02-02  Bruno Haible  <bruno@clisp.org>
48077
48078         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48079         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48080         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48081         portability problems if one of these functions is only used on specific
48082         platforms.
48083         Reported by Paul Eggert.
48084
48085 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48086
48087         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48088         is causing more trouble than it's curing.
48089         * lib/regex_internal.h (__mempcpy): Remove.
48090         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48091         (and make the code a tad smaller to boot).
48092         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48093
48094 2007-02-02  Jim Meyering  <jim@meyering.net>
48095
48096         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48097         section, not in the Makefile.am: one.
48098
48099 2007-02-02  Eric Blake  <ebb9@byu.net>
48100
48101         * lib/strchrnul.c: Always include config.h first.
48102
48103         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48104         gnulib strstr is not necessary here.
48105
48106 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48107
48108         * m4/socklen.m4: Fix typo.
48109
48110 2007-02-02  Eric Blake  <ebb9@byu.net>
48111
48112         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48113         * modules/netinet_in (Makefile.am): Likewise.
48114
48115 2007-02-01  Bruno Haible  <bruno@clisp.org>
48116
48117         * lib/string_.h (GL_LINK_WARNING): New macro.
48118         (strcasecmp, strstr, strcasestr): If provided by the system,
48119         conditionally define as a macro that leads to a warning instead of to
48120         an error.
48121         (strncasecmp): Conditionally define as a macro that leads to a warning.
48122
48123 2007-02-01  Karl Berry  <karl@gnu.org>
48124
48125         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48126
48127 2007-02-01  Bruno Haible  <bruno@clisp.org>
48128
48129         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48130         renamings.
48131
48132 2007-02-01  Eric Blake  <ebb9@byu.net>
48133
48134         * modules/regex (Depends-on): Revert dependence on mempcpy.
48135         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48136         module's definition of mempcpy.
48137         Reported by Paul Eggert.
48138
48139 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48140
48141         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48142         the symbol XYZ before redefining it.  This fixes a problem with
48143         programs that don't use XYZ, when compiled on systems that define
48144         XYZ to something else.
48145
48146 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48147
48148         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48149         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48150         writeable to group or other and (2) is intended to have a special
48151         mode bit that is set or cleared.  In such a case, the directory
48152         should be neither group- nor other-writeable until the special
48153         mode bits are right.
48154
48155 2007-01-31  Eric Blake  <ebb9@byu.net>
48156
48157         * modules/mountlist (Depends-on): Add strstr.
48158
48159         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48160         bug.
48161         * modules/string (Makefile.am): Remove redundant replacement.
48162         * modules/regex (Depends-on): Add mempcpy.
48163
48164 2007-01-31  Bruno Haible  <bruno@clisp.org>
48165
48166         New module description field 'Link'.
48167         * gnulib-tool (func_usage): Document --extract-link-directive.
48168         (sed_extract_prog): Recognize 'Link' directive.
48169         (func_get_link_directive): New function.
48170         (func_import): Show summary of link directives.
48171         Handle --extract-link-directive option.
48172         * modules/acl (Link): New section.
48173         * modules/clock-time (Link): New section.
48174         * modules/euidaccess (Link): New section.
48175         * modules/gettext (Link): New section.
48176         * modules/iconv (Link): New section.
48177         * modules/lock (Link): New section.
48178         * modules/nanosleep (Link): New section.
48179         * modules/readline (Link): New section.
48180
48181 2007-01-27  Bruno Haible  <bruno@clisp.org>
48182
48183         Enforce the use of gnulib modules for unportable <string.h> functions.
48184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48185         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48186         (gl_HEADER_STRING_H_BODY): Require it.
48187         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48188         the symbol XYZ to one that gives a link error.
48189         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48190         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48191         * modules/mempcpy (configure.ac): Likewise.
48192         * modules/memrchr (configure.ac): Likewise.
48193         * modules/stpcpy (configure.ac): Likewise.
48194         * modules/stpncpy (configure.ac): Likewise.
48195         * modules/strcase (configure.ac): Likewise.
48196         * modules/strcasestr (configure.ac): Likewise.
48197         * modules/strchrnul (configure.ac): Likewise.
48198         * modules/strdup (configure.ac): Likewise.
48199         * modules/strndup (configure.ac): Likewise.
48200         * modules/strnlen (configure.ac): Likewise.
48201         * modules/strpbrk (configure.ac): Likewise.
48202         * modules/strsep (configure.ac): Likewise.
48203         * modules/strstr (configure.ac): Likewise.
48204         * modules/strtok_r (configure.ac): Likewise.
48205
48206 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48207
48208         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48209
48210 2007-01-30  Jim Meyering  <jim@meyering.net>
48211
48212         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48213
48214 2007-01-29  Bruno Haible  <bruno@clisp.org>
48215
48216         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48217         * lib/execute.c: Likewise.
48218         * lib/pipe.c: Likewise.
48219         * lib/printf-args.h: Likewise.
48220         * lib/printf-args.c: Likewise.
48221         * lib/printf-parse.c: Likewise.
48222         * lib/vasnprintf.c: Likewise.
48223
48224 2007-01-29  Eric Blake  <ebb9@byu.net>
48225
48226         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48227         declaration.
48228
48229 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48230
48231         * lib/strptime.h (strptime): Use 'restrict' for args where
48232         POSIX requires this.
48233         * lib/strptime.c (strptime): Likewise.
48234         Change license notice from LGPL to GPL, since gnulib-tool will
48235         change this as needed.
48236         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48237         defined.
48238         Include "strptime.h" first, to check interface.
48239         Do not #undef _LIBC and _NL_CURRENT.
48240         Do not include <stdlib.h>; no longer needed.
48241         Include "time_r.h" and declare ptime_locale_status
48242         only if _LIBC is not defined.
48243         (__P): Remove unused macro.
48244         (match_string): Bring back glibc version, but use it only if _LIBC
48245         is defined.
48246         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48247         Remove unnecessary assertion and abort() call.
48248         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48249         * m4/strptime.m4: Fix serial number comment.
48250         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48251         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48252         (Depends-on): Add time_r.
48253
48254 2007-01-29  Bruno Haible  <bruno@clisp.org>
48255
48256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48257         strptime.
48258         * modules/strptime (Depends-on): Add stdbool.
48259         * lib/strptime.h: Include <time.h> always. Add comments.
48260
48261 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48262
48263         * modules/strptime: New file.
48264         * lib/strptime.h: New file.
48265         * lib/strptime.c: New file.
48266         * m4/strptime.m4: New file.
48267
48268 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48269
48270         * MODULES.html.sh: New module mpsort.
48271         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48272
48273         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48274         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48275         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48276         All uses changed.
48277         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48278         All uses changed.
48279         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48280         to _Restrict_.
48281         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48282         the parameter matches the prototype.
48283
48284 2007-01-28  Jim Meyering  <jim@meyering.net>
48285
48286         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48287         sys/time.h here, reverting that part of the previous patch:
48288         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48289
48290 2007-01-28  Bruno Haible  <bruno@clisp.org>
48291
48292         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48293         value of $(SYS_TIME_H).
48294         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48295         remove it conditionally, too. [added by Jim Meyering]
48296         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48297         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48298         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48299         GETTIMEOFDAY_REPLACEMENT to 1.
48300
48301 2007-01-28  Bruno Haible  <bruno@clisp.org>
48302
48303         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48304         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48306         Set UNISTD_H instead of UNISTD_H2.
48307         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48308
48309 2007-01-28  Bruno Haible  <bruno@clisp.org>
48310
48311         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48312         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48313
48314 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48315
48316         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48317         (func_create_testdir): Ensure C locale for `grep' and `tr'
48318         character ranges.
48319         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48320         ACLOCAL_AMFLAGS parsing state machine.
48321
48322 2007-01-27  Bruno Haible  <bruno@clisp.org>
48323
48324         * modules/unistr/base: Update.
48325
48326 2007-01-27  Bruno Haible  <bruno@clisp.org>
48327
48328         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48329         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48330         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48331         modules/unistr/u32-mbtouc.
48332         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48333         * lib/unistr.h: Update.
48334         * lib/linebreak.c: Update.
48335         * modules/unistr/u32-mbtouc: Renamed from
48336         modules/unistr/u32-mbtouc-safe.
48337         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48338         * lib/unistr.h: Update.
48339         * lib/unistr/u32-to-u8.c: Update.
48340         * lib/unistr/u32-to-u16.c: Update.
48341
48342 2007-01-27  Bruno Haible  <bruno@clisp.org>
48343
48344         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
48345         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
48346         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
48347         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
48348         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
48349         * modules/unistr/u16-mbtouc-unsafe: Renamed from
48350         modules/unistr/u16-mbtouc.
48351         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
48352         * lib/unistr.h: Update.
48353         * lib/linebreak.c: Update.
48354         * modules/linebreak: Update.
48355         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
48356         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
48357         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
48358         * modules/unistr/u16-mbtouc: Renamed from
48359         modules/unistr/u16-mbtouc-safe.
48360         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
48361         * lib/unistr.h: Update.
48362         * lib/unistr/u16-to-u8.c: Update.
48363         * modules/unistr/u16-to-u8: Update.
48364         * lib/unistr/u16-to-u32.c: Update.
48365         * modules/unistr/u16-to-u32: Update.
48366
48367 2007-01-27  Bruno Haible  <bruno@clisp.org>
48368
48369         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48370         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48371         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48372         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48373         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48374         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48375         modules/unistr/u8-mbtouc.
48376         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48377         * lib/unistr.h: Update.
48378         * lib/striconveh.c: Update.
48379         * modules/striconveh: Update.
48380         * lib/linebreak.c: Update.
48381         * modules/linebreak: Update.
48382         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48383         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48384         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48385         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48386         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48387         * lib/unistr.h: Update.
48388         * lib/striconveh.c: Update.
48389         * modules/striconveh: Update.
48390         * lib/unistr/u8-to-u16.c: Update.
48391         * modules/unistr/u8-to-u16: Update.
48392         * lib/unistr/u8-to-u32.c: Update.
48393         * modules/unistr/u8-to-u32: Update.
48394
48395 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48396
48397         Sync from Libtool.
48398         * lib/argz.c: Do not include strings.h nor memory.h, include
48399         string.h unconditionally.  Patch by Simon Josefsson.
48400
48401 2007-01-27  Bruno Haible  <bruno@clisp.org>
48402
48403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48404         from gl_HEADER_STRING_H_BODY.
48405         (gl_HEADER_STRING_H_BODY): Require it.
48406         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48407         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48408         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48409         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48410         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48411         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
48412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48413         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48414         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
48415         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48416         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48417         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
48418         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48419         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48420         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48421
48422 2007-01-27  Bruno Haible  <bruno@clisp.org>
48423
48424         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
48425         check_PROGRAMS into noinst_PROGRAMS.
48426         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
48427         check_PROGRAMS in this case.
48428         (func_import): Set for_test to false.
48429         (func_create_testdir): Set for_test to true.
48430
48431 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48432             Bruno Haible  <bruno@clisp.org>
48433
48434         * modules/strcasestr (Files): Remove lib/strcasestr.h.
48435         (Depends-on): Add string.
48436         (Includes): Use <string.h> instead of strcasestr.h.
48437         * modules/string (Makefile.am): Also substitute the value of
48438         REPLACE_STRCASESTR.
48439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
48440         assume strcasestr is declared in <string.h> not <strings.h>. Also
48441         set REPLACE_STRCASESTR.
48442         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
48443         REPLACE_STRCASESTR.
48444         * lib/strcasestr.h: Remove file.
48445         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
48446         * lib/string_.h (strcasestr): New declaration.
48447
48448 2007-01-27  Bruno Haible  <bruno@clisp.org>
48449
48450         * lib/string_.h: Use 'extern'.
48451
48452 2007-01-27  Jim Meyering  <jim@meyering.net>
48453
48454         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
48455         of set-but-not-used local, "q".
48456
48457         * lib/mempcpy.c: Include <config.h> before <string.h>.
48458         This fixes a compilation error on HP-UX, due to the system's
48459         "restrict"-using mempcpy prototype.
48460
48461 2007-01-26  Bruno Haible  <bruno@clisp.org>
48462
48463         Small optimization.
48464         * lib/javacomp.c: Include c-strstr.h.
48465          (is_envjavac_gcj): Use c_strstr instead of strstr.
48466         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
48467
48468 2007-01-26  Bruno Haible  <bruno@clisp.org>
48469
48470         * MODULES.html.sh (Unicode string functions): Add the new modules.
48471
48472         * modules/uniconv/u32-strconv-to-locale: New file.
48473         * lib/uniconv/u32-strconv-to-locale.c: New file.
48474
48475         * modules/uniconv/u16-strconv-to-locale: New file.
48476         * lib/uniconv/u16-strconv-to-locale.c: New file.
48477
48478         * modules/uniconv/u8-strconv-to-locale: New file.
48479         * lib/uniconv/u8-strconv-to-locale.c: New file.
48480
48481         * modules/uniconv/u32-strconv-from-locale: New file.
48482         * lib/uniconv/u32-strconv-from-locale.c: New file.
48483
48484         * modules/uniconv/u16-strconv-from-locale: New file.
48485         * lib/uniconv/u16-strconv-from-locale.c: New file.
48486
48487         * modules/uniconv/u8-strconv-from-locale: New file.
48488         * lib/uniconv/u8-strconv-from-locale.c: New file.
48489
48490         * modules/uniconv/u32-strconv-to-enc: New file.
48491         * lib/uniconv/u32-strconv-to-enc.c: New file.
48492         * modules/uniconv/u32-strconv-to-enc-tests: New file.
48493         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
48494
48495         * modules/uniconv/u16-strconv-to-enc: New file.
48496         * lib/uniconv/u16-strconv-to-enc.c: New file.
48497         * lib/uniconv/u-strconv-to-enc.h: New file.
48498         * modules/uniconv/u16-strconv-to-enc-tests: New file.
48499         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
48500
48501         * modules/uniconv/u8-strconv-to-enc: New file.
48502         * lib/uniconv/u8-strconv-to-enc.c: New file.
48503         * modules/uniconv/u8-strconv-to-enc-tests: New file.
48504         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
48505
48506         * modules/uniconv/u32-strconv-from-enc: New file.
48507         * lib/uniconv/u32-strconv-from-enc.c: New file.
48508         * modules/uniconv/u32-strconv-from-enc-tests: New file.
48509         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
48510
48511         * modules/uniconv/u16-strconv-from-enc: New file.
48512         * lib/uniconv/u16-strconv-from-enc.c: New file.
48513         * modules/uniconv/u16-strconv-from-enc-tests: New file.
48514         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
48515
48516         * modules/uniconv/u8-strconv-from-enc: New file.
48517         * lib/uniconv/u8-strconv-from-enc.c: New file.
48518         * lib/uniconv/u-strconv-from-enc.h: New file.
48519         * modules/uniconv/u8-strconv-from-enc-tests: New file.
48520         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
48521
48522         * modules/uniconv/u32-conv-from-enc: New file.
48523         * lib/uniconv/u32-conv-from-enc.c: New file.
48524         * modules/uniconv/u32-conv-from-enc-tests: New file.
48525         * tests/uniconv/test-u32-conv-from-enc.c: New file.
48526
48527         * modules/uniconv/u16-conv-from-enc: New file.
48528         * lib/uniconv/u16-conv-from-enc.c: New file.
48529         * lib/uniconv/u-conv-from-enc.h: New file.
48530         * modules/uniconv/u16-conv-from-enc-tests: New file.
48531         * tests/uniconv/test-u16-conv-from-enc.c: New file.
48532
48533         * modules/uniconv/u8-conv-from-enc: New file.
48534         * lib/uniconv/u8-conv-from-enc.c: New file.
48535         * modules/uniconv/u8-conv-from-enc-tests: New file.
48536         * tests/uniconv/test-u8-conv-from-enc.c: New file.
48537
48538         * modules/uniconv/base: New file.
48539         * lib/uniconv.h: New file.
48540
48541 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48542
48543         * doc/gnulib-tool.texi (Initial import): Update to match current
48544         behavior with strdup module.
48545         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
48546         * lib/memmem.h: Remove; all uses removed.  This is now done
48547         by <string.h>.
48548         * lib/mempcpy.h: Likewise.
48549         * lib/memrchr.h: Likewise.
48550         * lib/stpcpy.h: Likewise.
48551         * lib/stpncpy.h: Likewise.
48552         * lib/strcase.h: Likewise.
48553         * lib/strchrnul.h: Likewise.
48554         * lib/strdup.h: Likewise.
48555         * lib/strndup.h: Likewise.
48556         * lib/strnlen.h: Likewise.
48557         * lib/strpbrk.h: Likewise.
48558         * lib/strsep.h: Likewise.
48559         * lib/strstr.h: Likewise.
48560         * lib/strtok_r.h: Likewise.
48561         * lib/string_.h: New file.
48562         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
48563         Rely on <string.h> instead.
48564         * lib/canon-host.c: Likewise.
48565         * lib/chdir-long.c: Likewise.
48566         * lib/concatpath.c: Likewise.
48567         * lib/exclude.c: Likewise.
48568         * lib/fchdir.c: Likewise.
48569         * lib/getaddrinfo.c: Likewise.
48570         * lib/getcwd.c: Likewise.
48571         * lib/getsubopt.c: Likewise.
48572         * lib/glob.c: Likewise.
48573         * lib/hard-locale.c: Likewise.
48574         * lib/iconvme.c: Likewise.
48575         * lib/javacomp.c: Likewise.
48576         * lib/mempcpy.c: Likewise.
48577         * lib/memrchr.c: Likewise.
48578         * lib/regex_internal.h: Likewise.
48579         * lib/stpncpy.c: Likewise.
48580         * lib/strcasecmp.c: Likewise.
48581         * lib/strchrnul.c: Likewise.
48582         * lib/strdup.c: Likewise.
48583         * lib/striconv.c: Likewise.
48584         * lib/striconveh.c: Likewise.
48585         * lib/striconveha.c: Likewise.
48586         * lib/strncasecmp.c: Likewise.
48587         * lib/strndup.c: Likewise.
48588         * lib/strnlen.c: Likewise.
48589         * lib/strsep.c: Likewise.
48590         * lib/strstr.c: Likewise.
48591         * lib/strtok_r.c: Likewise.
48592         * lib/userspec.c: Likewise.
48593         * lib/w32spawn.h: Likewise.
48594         * lib/xstrndup.c: Likewise.
48595         * lib/mountlist.c (strstr): Remove decl.
48596         * m4/string_h.m4: New file.
48597         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
48598         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
48599         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
48600         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
48601         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
48602         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
48603         Set REPLACE_STRCASECMP if necessary.
48604         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
48605         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
48606         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
48607         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
48608         HAVE_DECL_STRDUP if necessary.
48609         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
48610         since gl_FUNC_STRNDUP does that now.
48611         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
48612         Check for decl here...
48613         (gl_PREREQ_STRNLEN): ... not here.
48614         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
48615         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
48616         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
48617         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
48618         necessary.
48619         * modules/string: New file.
48620         * modules/memmem (Files): Remove special-purpose include file.
48621         (Depends-on): Add string.
48622         (Include): Include <string.h>, not the removed file.
48623         * modules/mempcpy: Likewise.
48624         * modules/memrchr: Likewise.
48625         * modules/stpcpy: Likewise.
48626         * modules/stpncpy: Likewise.
48627         * modules/strcase: Likewise.
48628         * modules/strchrnul: Likewise.
48629         * modules/strdup: Likewise.
48630         * modules/strndup: Likewise.
48631         * modules/strnlen: Likewise.
48632         * modules/strpbrk: Likewise.
48633         * modules/strsep: Likewise.
48634         * modules/strstr: Likewise.
48635         * modules/strtok_r: Likewise.
48636         * tests/test-dirname.c: Don't include "strdup.h", since
48637         <string.h> now suffices.
48638         * tests/test-memmem.c: Don't include "memmem.h", since
48639         <string.h> now suffices.
48640
48641 2007-01-25  Bruno Haible  <bruno@clisp.org>
48642
48643         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
48644         *resultp is 0.
48645
48646         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
48647         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
48648         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
48649         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
48650
48651         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
48652         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
48653         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
48654         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
48655         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
48656         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
48657
48658 2007-01-24  Bruno Haible  <bruno@clisp.org>
48659
48660         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
48661         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
48662         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
48663         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
48664         gl_FUNC_FTS_CORE.
48665         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
48666         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
48667         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48668         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
48669         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
48670         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
48671         gl_FUNC_FCHOWNAT.
48672         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
48673         gl_FUNC_STRFTIME.
48674         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
48675         Reported by Ralf Wildenhues.
48676
48677 2007-01-24  Bruno Haible  <bruno@clisp.org>
48678
48679         Drop AC_REQUIRE calls that are redundant with the module dependencies.
48680         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
48681         gl_GETADDRINFO.
48682         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
48683         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
48684         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
48685
48686 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
48687
48688         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
48689         Don't use 'exit'; just return from 'main'.
48690         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
48691
48692         * lib/fnmatch_.h: Readjust white space and comments to match
48693         glibc, to avoid spurious diffs.
48694
48695 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48696
48697         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
48698         2004-12-01 change by Jakub Jelinek, since this code won't compile
48699         if !LIBC.  Problem reported by Bob Proulx.
48700
48701 2007-01-23  Bruno Haible  <bruno@clisp.org>
48702
48703         * lib/striconveh.c: Include c-strcaseeq.h.
48704         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
48705         * modules/striconveh (Depends-on): Add c-strcaseeq.
48706
48707 2007-01-23  Bruno Haible  <bruno@clisp.org>
48708
48709         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
48710
48711         * modules/c-strcaseeq: New file.
48712         * lib/c-strcaseeq.h: New file.
48713
48714         * modules/streq: New file.
48715         * lib/streq.h: New file.
48716
48717 2007-01-23  Bruno Haible  <bruno@clisp.org>
48718
48719         * modules/striconveha-tests: New file.
48720         * tests/test-striconveha.c: New file.
48721
48722         * lib/striconveha.h: Include <stdbool.h>.
48723         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
48724         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
48725         (mem_iconveha_notranslit): Renamed from mem_iconveha.
48726         (mem_iconveha): New function.
48727         (str_iconveha_notranslit): Renamed from str_iconveha.
48728         (str_iconveha): New function.
48729         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
48730         c-strcase.
48731
48732 2007-01-23  Bruno Haible  <bruno@clisp.org>
48733
48734         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
48735         encodings without forgiving before trying any encoding with handler.
48736         (str_iconveha): Try all encodings without forgiving before trying any
48737         encoding with handler.
48738
48739 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48740
48741         Import the following changes from libc.
48742
48743         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48744
48745         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
48746
48747         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
48748
48749         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
48750         normal_bracket label.
48751
48752         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
48753
48754         [BZ #361]
48755         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
48756         to normal_bracket after fetching the next character.
48757
48758 2007-01-22  Bruno Haible  <bruno@clisp.org>
48759
48760         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
48761         argument.
48762         * lib/striconveh.c (iconv_carefully_1): New function.
48763         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
48764         argument.
48765         (str_cd_iconveh): Update.
48766         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
48767         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
48768         * tests/test-striconveh.c (MAGIC): New macro.
48769         (new_offsets): New function.
48770         (main): Test call with and without offsets.
48771
48772 2007-01-22  Bruno Haible  <bruno@clisp.org>
48773
48774         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
48775         * modules/sys_select (Makefile.am): Likewise.
48776         * modules/sys_socket (Makefile.am): Likewise.
48777         * modules/sys_time (Makefile.am): Likewise.
48778
48779 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48780
48781         * modules/gettimeofday (License): Change from GPL to LGPL, since
48782         gettimeofday is a library function.
48783
48784 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48785
48786         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
48787
48788 2007-01-21  Bruno Haible  <bruno@clisp.org>
48789
48790         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
48791
48792 2007-01-21  Bruno Haible  <bruno@clisp.org>
48793
48794         * modules/striconveha: New file.
48795         * lib/striconveha.h: New file.
48796         * lib/striconveha.c: New file.
48797         * MODULES.html.sh (Internationalization functions): Add striconveha.
48798         * lib/striconv.c (str_iconv): Optimize the case of an empty input
48799         string.
48800         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
48801
48802 2007-01-21  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
48805         * lib/striconveh.c (str_iconveh): Likewise.
48806
48807 2007-01-21  Bruno Haible  <bruno@clisp.org>
48808
48809         * lib/striconveh.h (mem_iconveh): New declaration.
48810         * lib/striconveh.c (mem_iconveh): New function.
48811         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
48812
48813 2007-01-21  Bruno Haible  <bruno@clisp.org>
48814
48815         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
48816
48817         * lib/striconveh.h (mem_cd_iconveh): Change specification.
48818         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
48819         original result buffer.
48820         (str_cd_iconveh): Update.
48821         * tests/test-striconveh.c (main): Update.
48822
48823         * lib/striconv.h (mem_cd_iconv): Change specification.
48824         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
48825         result buffer.
48826         (str_cd_iconv): Update.
48827         * tests/test-striconv.c (main): Update.
48828
48829 2007-01-21  Bruno Haible  <bruno@clisp.org>
48830
48831         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
48832
48833 2007-01-20  Jim Meyering  <jim@meyering.net>
48834
48835         * lib/userspec.c (parse_with_separator): If a user or group string
48836         starts with "+", skip the corresponding name-to-ID look-up, since
48837         such a look-up must fail: user and group names may not include "+".
48838
48839 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
48840
48841         * lib/poll.c: Include sys/time.h and time.h unconditionally,
48842         since we now assume the sys_time module.
48843         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
48844         check for sys/time.h; no longer needed.
48845         * modules/poll (Depends-on): Depend on sys_time.
48846
48847 2007-01-18  Bruno Haible  <bruno@clisp.org>
48848
48849         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
48850         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
48851
48852         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
48853         gettimeofday.
48854
48855         * tests/test-gettimeofday.c: Include <time.h>.
48856         (dummy): Remove variable.
48857
48858         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
48859         gl_HEADER_SYS_TIME_H.
48860         (gl_HEADER_SYS_TIME_H): New macro.
48861
48862         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
48863         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48864         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
48865         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
48866         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48867         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
48868         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
48869         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48870         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
48871         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
48872         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48873
48874         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
48875         last change; it caused a compilation error when cross-compiling to
48876         Cygwin.
48877
48878 2007-01-18  Jim Meyering  <jim@meyering.net>
48879
48880         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
48881         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
48882         than the race-prone "test -d sys || mkdir sys".
48883         (configure.ac): Use AC_PROG_MKDIR_P.
48884         * modules/sys_select: Likewise.
48885         * modules/sys_socket: Likewise.
48886         * modules/sys_time: Likewise.
48887
48888 2007-01-18  Eric Blake  <ebb9@byu.net>
48889
48890         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
48891         replace gettimeofday.
48892         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
48893         name, to avoid infinite recursion.
48894
48895 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
48896
48897         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
48898         module sys_time.
48899         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
48900         assume timespec.h defines struct timeval.
48901         * lib/settime.c: Likewise.
48902         * lib/utimens.c: Likewise.
48903         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
48904         since we now assume the gettimeofday module.
48905         * lib/tempname.c (__gen_tempname): Likewise.
48906         * lib/gettimeofday.h: Remove.
48907         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
48908         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
48909         Include <time.h>, for 'time()'.
48910         (localtime_buffer_addr): Also use this workaround if
48911         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
48912         to simplify the uses.  All uses changed.
48913         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
48914         that #undef is inside {}, and 'const' follows type name consistently.
48915         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
48916         (gettimeofday): Do not use the maximum possible value for
48917         tv->tv_usec, since that might break usages other than ls.c.
48918         Instead, we'll leave ls.c alone.  This undoes today's patch
48919         by Bruno.  Add a compile-time warning for 1s-clock resolution;
48920         we've never observed the problem but might as well keep the
48921         canary.
48922         * lib/nanosleep.c: Include timespec.h first, for interface check.
48923         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
48924         now assume the sys_time module.
48925         * lib/tempname.c: Likewise.
48926         * lib/timespec.h: Likewise.
48927         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
48928         needed.
48929         * lib/strftime.c: Likewise.
48930         * lib/timespec.h: Likewise.
48931         * lib/posixtm.c: Include posixtm.h first, for interface check.
48932         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
48933         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
48934         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
48935         * lib/sys_time_.h: New file.
48936         * lib/timespec.h (struct timespec): Use long int, not long.
48937         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48938         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
48939         Remove obsolescent call to AC_HEADER_TIME.
48940         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
48941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48942         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
48943         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
48944         Likewise.
48945         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
48946         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
48947         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
48948         into the sys_time module.  Check for gettimeofday just once.
48949         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
48950         for gettimeofday signature to just check the signature.  Merely
48951         compile it, since linking doesn't test signature.  Improve test for
48952         whether gettimeofday.o is actually needed.
48953         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
48954         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
48955         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
48956         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48957         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
48958         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
48959         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
48960         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
48961         than worrying about sys/time.h.
48962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48963         Don't bother worrying about TIME_WITH_SYS_TIME.
48964         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
48965         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
48966         * m4/sys_time_h.m4: New file.
48967         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
48968         Don't include sys/time.h.  Return from main rather than exiting.
48969         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
48970         all uses changed.
48971         * modules/gethrxtime (Depends-on): Add sys_time.
48972         * modules/gettime (Depends-on): Likewise.
48973         * modules/gettimeofday (Depends-on): Likewise.
48974         * modules/nanosleep (Depends-on): Likewise.
48975         * modules/settime (Depends-on): Likewise.
48976         * modules/tempname (Depends-on): Likewise.
48977         * modules/utimens (Depends-on): Likewise.
48978         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
48979         (Include:) Change back to <sys/time.h>.
48980         (Maintainer:) Add self.
48981         * modules/sys_time: New file.
48982         * modules/tempname (Depends-on): Add gettimeofday.
48983         * tests/test-gettimeofday.c: Include <sys/time.h>
48984         rather than gettimeofday.h.
48985
48986 2007-01-17  Bruno Haible  <bruno@clisp.org>
48987
48988         * gnulib-tool (func_get_license): Revert last patch. Instead, let
48989         the license default to GPL.
48990         (func_create_testdir): Don't complain if a module is LGPL and its
48991         tests module depends on GPLed modules.
48992
48993 2007-01-17  Bruno Haible  <bruno@clisp.org>
48994
48995         * lib/gettimeofday.c (gettimeofday): Add code for the case
48996         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
48997         maximum possible value for tv->tv_usec, rather than the minimum one.
48998
48999 2005-10-08  Martin Lambers  <marlam@marlam.de>
49000 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49001 2007-01-16  Bruno Haible  <bruno@clisp.org>
49002
49003         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49004         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49005         gl_FUNC_GETTIMEOFDAY.
49006         (Include): Add gettimeofday.h.
49007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49008         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49009         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49010         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49011         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49012         * lib/gettimeofday.h: New file.
49013         * lib/gettimeofday.c: Include <sys/timeb.h>.
49014         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49015         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49016         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49017         fall back on time().
49018
49019         * tests/test-gettimeofday.c: New file.
49020         * modules/gettimeofday-tests: New file.
49021
49022 2007-01-16  Eric Blake  <ebb9@byu.net>
49023
49024         * modules/fnmatch (Depends-on): Depend on wchar.
49025         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49026         * m4/fnmatch.m4: Likewise.
49027         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49028         * m4/mbchar.m4: Likewise.
49029         * modules/mbswidth (Depends-on): Depend on wchar.
49030         * lib/mbswidth.c: Assume <wchar.h>.
49031         * m4/mbswidth.m4: Likewise.
49032         * modules/quotearg (Depends-on): Depend on wchar.
49033         * lib/quotearg.c: Assume <wchar.h>.
49034         * m4/quotearg.m4: Likewise.
49035         * modules/regex (Depends-on): Depend on wchar.
49036         * lib/regex_internal.h: Assume <wchar.h>.
49037         * m4/regex.m4: Likewise.
49038         * modules/stdint (Depends-on): Depend on wchar.
49039         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49040         * m4/stdint.m4: Likewise.
49041         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49042         * modules/strftime (Depends-on): Depend on wchar.
49043         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49044         * modules/strtol (Depends-on): Depend on wchar.
49045         * lib/strtol.c: Assume <wchar.h>.
49046         * modules/wcwidth (Depends-on): Depend on wchar.
49047         * lib/wcwidth.h: Assume <wchar.h>.
49048         * m4/wcwidth.m4: Likewise.
49049
49050 2007-01-16  Bruno Haible  <bruno@clisp.org>
49051
49052         * modules/csharpexec-script: New, created from...
49053         * modules/csharpexec: ... this.
49054
49055 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49056
49057         * modules/javaexec-script: New, created from...
49058         * modules/javaexec: ... this.
49059
49060 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49061
49062         * modules/poll (Dependencies): Add sys_select.
49063
49064 2007-01-15  Jim Meyering  <jim@meyering.net>
49065
49066         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49067         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49068         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49069         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49070
49071 2007-01-15  Bruno Haible  <bruno@clisp.org>
49072
49073         * modules/striconveh: New file.
49074         * lib/striconveh.h: New file.
49075         * lib/striconveh.c: New file.
49076         * MODULES.html.sh (Internationalization functions): Add striconveh.
49077
49078         * modules/striconveh-tests: New file.
49079         * tests/test-striconveh.c: New file.
49080
49081 2007-01-15  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49084         not from GNU libiconv or GNU libc.
49085
49086 2007-01-15  Bruno Haible  <bruno@clisp.org>
49087
49088         * doc/gnulib-intro.texi (Copyright): Explain the different license
49089         terms for module descriptions, autoconf macros, tests, documentation.
49090
49091 2007-01-14  Bruno Haible  <bruno@clisp.org>
49092
49093         * modules/striconv-tests: New file.
49094         * tests/test-striconv.c: New file.
49095
49096 2007-01-14  Bruno Haible  <bruno@clisp.org>
49097
49098         * modules/iconv-tests: New file.
49099         * tests/test-iconv.c: New file.
49100
49101 2007-01-14  Bruno Haible  <bruno@clisp.org>
49102
49103         * gnulib-tool (func_get_license): For test modules, use the license of
49104         the main module.
49105
49106 2007-01-14  Bruno Haible  <bruno@clisp.org>
49107
49108         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49109         if iconv is found to exist.
49110
49111 2007-01-14  Bruno Haible  <bruno@clisp.org>
49112
49113         * modules/c-ctype-tests: New file.
49114         * tests/test-c-ctype.c: New file.
49115
49116 2007-01-14  Bruno Haible  <bruno@clisp.org>
49117
49118         * modules/binary-io-tests: New file.
49119         * tests/test-binary-io.sh: New file.
49120         * tests/test-binary-io.c: New file.
49121
49122 2007-01-14  Bruno Haible  <bruno@clisp.org>
49123
49124         * modules/array-oset-tests: New file.
49125         * tests/test-array_oset.c: New file.
49126
49127 2007-01-14  Bruno Haible  <bruno@clisp.org>
49128
49129         * modules/array-list-tests: New file.
49130         * tests/test-array_list.c: New file.
49131
49132 2007-01-14  Bruno Haible  <bruno@clisp.org>
49133
49134         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49135         and make.
49136         Reported by Simon Josefsson in
49137         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49138
49139 2007-01-14  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/allocsa-tests: New file.
49142         * tests/test-allocsa.c: New file.
49143
49144 2007-01-14  Bruno Haible  <bruno@clisp.org>
49145
49146         * modules/fchdir (Depends-on): Add absolute-header.
49147         * modules/unistd (Depends-on): Likewise.
49148
49149 2006-12-30  Bruno Haible  <bruno@clisp.org>
49150
49151         * modules/fchdir: New file.
49152         * modules/unistd (Files): Add lib/unistd_.h.
49153         (Makefile.am): Generate unistd.h from unistd_.h.
49154         * lib/fchdir.c: New file.
49155         * lib/dirent_.h: New file.
49156         * lib/unistd_.h: New file.
49157         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49158         * m4/fchdir.m4: New file.
49159         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49160         (gl_HEADER_UNISTD): Invoke it.
49161         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49162         function.
49163         * lib/backupfile.c (opendir, closedir): Undefine.
49164         * lib/chown.c (open, close): Undefine.
49165         * lib/clean-temp.c (open, close): Undefine.
49166         * lib/copy-file.c (open, close): Undefine.
49167         * lib/execute.c (open, close): Undefine.
49168         * lib/fsusage.c (open, close): Undefine.
49169         * lib/gc-gnulib.c (open, close): Undefine.
49170         * lib/getcwd.c (opendir, closedir): Undefine.
49171         * lib/glob.c (opendir, closedir): Undefine.
49172         * lib/javacomp.c (open, close): Undefine.
49173         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49174         * lib/openat-proc.c (open, close): Undefine.
49175         * lib/pagealign_alloc.c (open, close): Undefine.
49176         * lib/pipe.c (open, close): Undefine.
49177         * lib/progreloc.c (open, close): Undefine.
49178         * lib/savedir.c (opendir, closedir): Undefine.
49179         * lib/utime.c (open, close): Undefine.
49180         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49181
49182 2007-01-10  Bruno Haible  <bruno@clisp.org>
49183
49184         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49185
49186 2007-01-12  Eric Blake  <ebb9@byu.net>
49187
49188         Provide a robust <wchar.h>.  Further simplifications are now
49189         possible in other modules, but not included here.
49190         * modules/wchar: New module.
49191         * m4/wchar.m4: New file.
49192         * lib/wchar_.h: Likewise.
49193         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49194         of the new module.
49195         * MODULES.html.sh (Extended multibyte and wide character utilities):
49196         New section.
49197
49198 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49199
49200         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49201         to a reasonable default for memory allocation.
49202         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49203         file system that reports garbage st_size values for symlinks.
49204         Problem reported by Liyang Hu.
49205
49206 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49207
49208         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49209         Emacs .#* auto-save files).
49210
49211 2007-01-11  Bruno Haible  <bruno@clisp.org>
49212
49213         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49214         directory.
49215
49216 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49217
49218         Use @...@ consistently in lib/wctype_.h.
49219         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49220         on it being set to 1 or 0.
49221         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49222         go back to AC_SUBSTing it.
49223         * modules/wctype (Makefile.am): Undo previous change.
49224
49225 2007-01-10  Eric Blake  <ebb9@byu.net>
49226
49227         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49228         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49229         * modules/wctype (Makefile.am): Likewise.
49230         Reported by Chris McGuire.
49231
49232 2007-01-10  Jim Meyering  <jim@meyering.net>
49233
49234         fts.c: a small readability/maintainability improvement
49235         * lib/fts.c (fts_read): Make this code slightly more readable and
49236         maintainable by hoisting the "sp->fts_cur = p" assignments to
49237         immediately follow the statements that set P.  Derived from
49238         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49239
49240 2007-01-10  Eric Blake  <ebb9@byu.net>
49241
49242         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49243         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49245         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49246         Reported by Chris McGuire.
49247
49248 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49249
49250         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49251         in sed script.
49252
49253 2007-01-09  Bruno Haible  <bruno@clisp.org>
49254
49255         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49256         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49257         variables.
49258         (func_module): Use them.
49259
49260 2007-01-09  Bruno Haible  <bruno@clisp.org>
49261
49262         * modules/unistr/base: New file.
49263         * lib/unistr.h: New file.
49264
49265         * modules/unistr/u8-to-u16: New file.
49266         * lib/unistr/u8-to-u16.c: New file.
49267
49268         * modules/unistr/u8-to-u32: New file.
49269         * lib/unistr/u8-to-u32.c: New file.
49270
49271         * modules/unistr/u16-to-u8: New file.
49272         * lib/unistr/u16-to-u8.c: New file.
49273
49274         * modules/unistr/u16-to-u32: New file.
49275         * lib/unistr/u16-to-u32.c: New file.
49276
49277         * modules/unistr/u32-to-u8: New file.
49278         * lib/unistr/u32-to-u8.c: New file.
49279
49280         * modules/unistr/u32-to-u16: New file.
49281         * lib/unistr/u32-to-u16.c: New file.
49282
49283         * modules/unistr/u8-check: New file.
49284         * modules/unistr/u16-check: New file.
49285         * modules/unistr/u32-check: New file.
49286         * lib/unistr/u8-check.c: New file.
49287         * lib/unistr/u16-check.c: New file.
49288         * lib/unistr/u32-check.c: New file.
49289
49290         * modules/unistr/u8-chr: New file.
49291         * modules/unistr/u16-chr: New file.
49292         * modules/unistr/u32-chr: New file.
49293         * lib/unistr/u8-chr.c: New file.
49294         * lib/unistr/u16-chr.c: New file.
49295         * lib/unistr/u32-chr.c: New file.
49296
49297         * modules/unistr/u8-cmp: New file.
49298         * modules/unistr/u16-cmp: New file.
49299         * modules/unistr/u32-cmp: New file.
49300         * lib/unistr/u8-cmp.c: New file.
49301         * lib/unistr/u16-cmp.c: New file.
49302         * lib/unistr/u32-cmp.c: New file.
49303
49304         * modules/unistr/u8-cpy: New file.
49305         * modules/unistr/u16-cpy: New file.
49306         * modules/unistr/u32-cpy: New file.
49307         * lib/unistr/u8-cpy.c: New file.
49308         * lib/unistr/u16-cpy.c: New file.
49309         * lib/unistr/u32-cpy.c: New file.
49310         * lib/unistr/u-cpy.h: New file.
49311
49312         * modules/unistr/u8-cpy-alloc: New file.
49313         * modules/unistr/u16-cpy-alloc: New file.
49314         * modules/unistr/u32-cpy-alloc: New file.
49315         * lib/unistr/u8-cpy-alloc.c: New file.
49316         * lib/unistr/u16-cpy-alloc.c: New file.
49317         * lib/unistr/u32-cpy-alloc.c: New file.
49318         * lib/unistr/u-cpy-alloc.h: New file.
49319
49320         * modules/unistr/u8-endswith: New file.
49321         * modules/unistr/u16-endswith: New file.
49322         * modules/unistr/u32-endswith: New file.
49323         * lib/unistr/u8-endswith.c: New file.
49324         * lib/unistr/u16-endswith.c: New file.
49325         * lib/unistr/u32-endswith.c: New file.
49326         * lib/unistr/u-endswith.h: New file.
49327
49328         * modules/unistr/u8-mblen: New file.
49329         * modules/unistr/u16-mblen: New file.
49330         * modules/unistr/u32-mblen: New file.
49331         * lib/unistr/u8-mblen.c: New file.
49332         * lib/unistr/u16-mblen.c: New file.
49333         * lib/unistr/u32-mblen.c: New file.
49334
49335         * modules/unistr/u8-mbtouc: New file.
49336         * modules/unistr/u16-mbtouc: New file.
49337         * modules/unistr/u32-mbtouc: New file.
49338         * lib/unistr/u8-mbtouc.c: New file.
49339         * lib/unistr/u16-mbtouc.c: New file.
49340         * lib/unistr/u32-mbtouc.c: New file.
49341
49342         * modules/unistr/u8-mbtouc-safe: New file.
49343         * modules/unistr/u16-mbtouc-safe: New file.
49344         * modules/unistr/u32-mbtouc-safe: New file.
49345         * lib/unistr/u8-mbtouc-safe.c: New file.
49346         * lib/unistr/u16-mbtouc-safe.c: New file.
49347         * lib/unistr/u32-mbtouc-safe.c: New file.
49348
49349         * modules/unistr/u8-move: New file.
49350         * modules/unistr/u16-move: New file.
49351         * modules/unistr/u32-move: New file.
49352         * lib/unistr/u8-move.c: New file.
49353         * lib/unistr/u16-move.c: New file.
49354         * lib/unistr/u32-move.c: New file.
49355         * lib/unistr/u-move.h: New file.
49356
49357         * modules/unistr/u8-next: New file.
49358         * modules/unistr/u16-next: New file.
49359         * modules/unistr/u32-next: New file.
49360         * lib/unistr/u8-next.c: New file.
49361         * lib/unistr/u16-next.c: New file.
49362         * lib/unistr/u32-next.c: New file.
49363
49364         * modules/unistr/u8-prev: New file.
49365         * modules/unistr/u16-prev: New file.
49366         * modules/unistr/u32-prev: New file.
49367         * lib/unistr/u8-prev.c: New file.
49368         * lib/unistr/u16-prev.c: New file.
49369         * lib/unistr/u32-prev.c: New file.
49370
49371         * modules/unistr/u8-set: New file.
49372         * modules/unistr/u16-set: New file.
49373         * modules/unistr/u32-set: New file.
49374         * lib/unistr/u8-set.c: New file.
49375         * lib/unistr/u16-set.c: New file.
49376         * lib/unistr/u32-set.c: New file.
49377         * lib/unistr/u-set.h: New file.
49378
49379         * modules/unistr/u8-startswith: New file.
49380         * modules/unistr/u16-startswith: New file.
49381         * modules/unistr/u32-startswith: New file.
49382         * lib/unistr/u8-startswith.c: New file.
49383         * lib/unistr/u16-startswith.c: New file.
49384         * lib/unistr/u32-startswith.c: New file.
49385         * lib/unistr/u-startswith.h: New file.
49386
49387         * modules/unistr/u8-stpcpy: New file.
49388         * modules/unistr/u16-stpcpy: New file.
49389         * modules/unistr/u32-stpcpy: New file.
49390         * lib/unistr/u8-stpcpy.c: New file.
49391         * lib/unistr/u16-stpcpy.c: New file.
49392         * lib/unistr/u32-stpcpy.c: New file.
49393         * lib/unistr/u-stpcpy.h: New file.
49394
49395         * modules/unistr/u8-stpncpy: New file.
49396         * modules/unistr/u16-stpncpy: New file.
49397         * modules/unistr/u32-stpncpy: New file.
49398         * lib/unistr/u8-stpncpy.c: New file.
49399         * lib/unistr/u16-stpncpy.c: New file.
49400         * lib/unistr/u32-stpncpy.c: New file.
49401         * lib/unistr/u-stpncpy.h: New file.
49402
49403         * modules/unistr/u8-strcat: New file.
49404         * modules/unistr/u16-strcat: New file.
49405         * modules/unistr/u32-strcat: New file.
49406         * lib/unistr/u8-strcat.c: New file.
49407         * lib/unistr/u16-strcat.c: New file.
49408         * lib/unistr/u32-strcat.c: New file.
49409         * lib/unistr/u-strcat.h: New file.
49410
49411         * modules/unistr/u8-strchr: New file.
49412         * modules/unistr/u16-strchr: New file.
49413         * modules/unistr/u32-strchr: New file.
49414         * lib/unistr/u8-strchr.c: New file.
49415         * lib/unistr/u16-strchr.c: New file.
49416         * lib/unistr/u32-strchr.c: New file.
49417
49418         * modules/unistr/u8-strcmp: New file.
49419         * modules/unistr/u16-strcmp: New file.
49420         * modules/unistr/u32-strcmp: New file.
49421         * lib/unistr/u8-strcmp.c: New file.
49422         * lib/unistr/u16-strcmp.c: New file.
49423         * lib/unistr/u32-strcmp.c: New file.
49424
49425         * modules/unistr/u8-strcpy: New file.
49426         * modules/unistr/u16-strcpy: New file.
49427         * modules/unistr/u32-strcpy: New file.
49428         * lib/unistr/u8-strcpy.c: New file.
49429         * lib/unistr/u16-strcpy.c: New file.
49430         * lib/unistr/u32-strcpy.c: New file.
49431         * lib/unistr/u-strcpy.h: New file.
49432
49433         * modules/unistr/u8-strcspn: New file.
49434         * modules/unistr/u16-strcspn: New file.
49435         * modules/unistr/u32-strcspn: New file.
49436         * lib/unistr/u8-strcspn.c: New file.
49437         * lib/unistr/u16-strcspn.c: New file.
49438         * lib/unistr/u32-strcspn.c: New file.
49439         * lib/unistr/u-strcspn.h: New file.
49440
49441         * modules/unistr/u8-strdup: New file.
49442         * modules/unistr/u16-strdup: New file.
49443         * modules/unistr/u32-strdup: New file.
49444         * lib/unistr/u8-strdup.c: New file.
49445         * lib/unistr/u16-strdup.c: New file.
49446         * lib/unistr/u32-strdup.c: New file.
49447         * lib/unistr/u-strdup.h: New file.
49448
49449         * modules/unistr/u8-strlen: New file.
49450         * modules/unistr/u16-strlen: New file.
49451         * modules/unistr/u32-strlen: New file.
49452         * lib/unistr/u8-strlen.c: New file.
49453         * lib/unistr/u16-strlen.c: New file.
49454         * lib/unistr/u32-strlen.c: New file.
49455         * lib/unistr/u-strlen.h: New file.
49456
49457         * modules/unistr/u8-strmblen: New file.
49458         * modules/unistr/u16-strmblen: New file.
49459         * modules/unistr/u32-strmblen: New file.
49460         * lib/unistr/u8-strmblen.c: New file.
49461         * lib/unistr/u16-strmblen.c: New file.
49462         * lib/unistr/u32-strmblen.c: New file.
49463
49464         * modules/unistr/u8-strmbtouc: New file.
49465         * modules/unistr/u16-strmbtouc: New file.
49466         * modules/unistr/u32-strmbtouc: New file.
49467         * lib/unistr/u8-strmbtouc.c: New file.
49468         * lib/unistr/u16-strmbtouc.c: New file.
49469         * lib/unistr/u32-strmbtouc.c: New file.
49470
49471         * modules/unistr/u8-strncat: New file.
49472         * modules/unistr/u16-strncat: New file.
49473         * modules/unistr/u32-strncat: New file.
49474         * lib/unistr/u8-strncat.c: New file.
49475         * lib/unistr/u16-strncat.c: New file.
49476         * lib/unistr/u32-strncat.c: New file.
49477         * lib/unistr/u-strncat.h: New file.
49478
49479         * modules/unistr/u8-strncmp: New file.
49480         * modules/unistr/u16-strncmp: New file.
49481         * modules/unistr/u32-strncmp: New file.
49482         * lib/unistr/u8-strncmp.c: New file.
49483         * lib/unistr/u16-strncmp.c: New file.
49484         * lib/unistr/u32-strncmp.c: New file.
49485
49486         * modules/unistr/u8-strncpy: New file.
49487         * modules/unistr/u16-strncpy: New file.
49488         * modules/unistr/u32-strncpy: New file.
49489         * lib/unistr/u8-strncpy.c: New file.
49490         * lib/unistr/u16-strncpy.c: New file.
49491         * lib/unistr/u32-strncpy.c: New file.
49492         * lib/unistr/u-strncpy.h: New file.
49493
49494         * modules/unistr/u8-strnlen: New file.
49495         * modules/unistr/u16-strnlen: New file.
49496         * modules/unistr/u32-strnlen: New file.
49497         * lib/unistr/u8-strnlen.c: New file.
49498         * lib/unistr/u16-strnlen.c: New file.
49499         * lib/unistr/u32-strnlen.c: New file.
49500         * lib/unistr/u-strnlen.h: New file.
49501
49502         * modules/unistr/u8-strpbrk: New file.
49503         * modules/unistr/u16-strpbrk: New file.
49504         * modules/unistr/u32-strpbrk: New file.
49505         * lib/unistr/u8-strpbrk.c: New file.
49506         * lib/unistr/u16-strpbrk.c: New file.
49507         * lib/unistr/u32-strpbrk.c: New file.
49508         * lib/unistr/u-strpbrk.h: New file.
49509
49510         * modules/unistr/u8-strrchr: New file.
49511         * modules/unistr/u16-strrchr: New file.
49512         * modules/unistr/u32-strrchr: New file.
49513         * lib/unistr/u8-strrchr.c: New file.
49514         * lib/unistr/u16-strrchr.c: New file.
49515         * lib/unistr/u32-strrchr.c: New file.
49516
49517         * modules/unistr/u8-strspn: New file.
49518         * modules/unistr/u16-strspn: New file.
49519         * modules/unistr/u32-strspn: New file.
49520         * lib/unistr/u8-strspn.c: New file.
49521         * lib/unistr/u16-strspn.c: New file.
49522         * lib/unistr/u32-strspn.c: New file.
49523         * lib/unistr/u-strspn.h: New file.
49524
49525         * modules/unistr/u8-strstr: New file.
49526         * modules/unistr/u16-strstr: New file.
49527         * modules/unistr/u32-strstr: New file.
49528         * lib/unistr/u8-strstr.c: New file.
49529         * lib/unistr/u16-strstr.c: New file.
49530         * lib/unistr/u32-strstr.c: New file.
49531         * lib/unistr/u-strstr.h: New file.
49532
49533         * modules/unistr/u8-strtok: New file.
49534         * modules/unistr/u16-strtok: New file.
49535         * modules/unistr/u32-strtok: New file.
49536         * lib/unistr/u8-strtok.c: New file.
49537         * lib/unistr/u16-strtok.c: New file.
49538         * lib/unistr/u32-strtok.c: New file.
49539         * lib/unistr/u-strtok.h: New file.
49540
49541         * modules/unistr/u8-uctomb: New file.
49542         * modules/unistr/u16-uctomb: New file.
49543         * modules/unistr/u32-uctomb: New file.
49544         * lib/unistr/u8-uctomb.c: New file.
49545         * lib/unistr/u16-uctomb.c: New file.
49546         * lib/unistr/u32-uctomb.c: New file.
49547
49548         * MODULES.html.sh (Unicode string functions): Add the new modules.
49549
49550 2007-01-08  Bruno Haible  <bruno@clisp.org>
49551
49552         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
49553         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
49554         subdirectories.
49555
49556 2007-01-08  Karl Berry  <karl@gnu.org>
49557
49558         * doc/error.texi: mention that main() fns must set program_name
49559         when progname is used.
49560
49561 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
49562
49563         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
49564         WCTYPE_H is empty, for the benefit of builds from non-distclean
49565         directories.  Problem reported by Eric Blake in
49566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
49567
49568 2007-01-08  Bruno Haible  <bruno@clisp.org>
49569
49570         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
49571         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
49572         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
49573         PROVIDE_CANONICALIZE_FILENAME_MODE.
49574         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
49575
49576 2007-01-08  Bruno Haible  <bruno@clisp.org>
49577
49578         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
49579         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
49580         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
49581         * lib/fts.c: Likewise.
49582         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
49583
49584 2006-12-25  Bruno Haible  <bruno@clisp.org>
49585
49586         * modules/utf8-ucs4-safe: New file.
49587         * lib/utf8-ucs4-safe.h: New file.
49588         * lib/unistr/utf8-ucs4-safe.c: New file.
49589
49590         * modules/utf16-ucs4-safe: New file.
49591         * lib/utf16-ucs4-safe.h: New file.
49592         * lib/unistr/utf16-ucs4-safe.c: New file.
49593
49594         * MODULES.html.sh (Unicode string functions): Add the new modules.
49595
49596 2007-01-08  Bruno Haible  <bruno@clisp.org>
49597
49598         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
49599         (Depends-on): Add unitypes.
49600         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49601         (u8_mbtouc_aux): Move out to separate file.
49602         (u8_mbtouc): Use ucs4_t, uint8_t types.
49603         * lib/unistr/utf8-ucs4.c: New file.
49604
49605         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
49606         (Depends-on): Add unitypes.
49607         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49608         (u16_mbtouc_aux): Move out to separate file.
49609         (u16_mbtouc): Use ucs4_t, uint16_t types.
49610         * lib/unistr/utf16-ucs4.c: New file.
49611
49612         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
49613         (Depends-on): Add unitypes.
49614         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
49615         (u8_uctomb_aux): Move out to separate file.
49616         (u8_uctomb): Use ucs4_t, uint8_t types.
49617         * lib/unistr/ucs4-utf8.c: New file.
49618
49619         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
49620         (Depends-on): Add unitypes.
49621         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
49622         (u16_uctomb_aux): Move out to separate file.
49623         (u16_uctomb): Use ucs4_t, uint16_t types.
49624         * lib/unistr/ucs4-utf16.c: New file.
49625
49626 2006-12-25  Bruno Haible  <bruno@clisp.org>
49627
49628         * modules/unitypes: New file.
49629         * lib/unitypes.h: New file.
49630         * MODULES.html.sh (func_all_modules): New section "Unicode string
49631         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
49632         this section. Add unitypes.
49633
49634 2007-01-08  Bruno Haible  <bruno@clisp.org>
49635
49636         Avoid variable names that conflict with those from libtool.
49637         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
49638         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
49639         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
49640         library_names_spec to acl_library_names_spec, hardcode_* to
49641         acl_hardcode_*.
49642         Reported by Ralf Wildenhues.
49643
49644 2007-01-08  Bruno Haible  <bruno@clisp.org>
49645
49646         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
49647         definition.
49648         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
49649         definition.
49650         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
49651         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
49652         definition.
49653         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
49654         definition.
49655         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
49656         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
49657         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
49658         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
49659         definition.
49660         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
49661         definition.
49662         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
49663         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
49664         GC_USE_<algorithm>.
49665         * lib/gc-libgcrypt.c: Likewise.
49666         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
49667         * modules/gc-arctwo (configure.ac): Likewise.
49668         * modules/gc-des (configure.ac): Likewise.
49669         * modules/gc-hmac-md5 (configure.ac): Likewise.
49670         * modules/gc-hmac-sha1 (configure.ac): Likewise.
49671         * modules/gc-md2 (configure.ac): Likewise.
49672         * modules/gc-md4 (configure.ac): Likewise.
49673         * modules/gc-md5 (configure.ac): Likewise.
49674         * modules/gc-random (configure.ac): Likewise.
49675         * modules/gc-rijndael (configure.ac): Likewise.
49676         * modules/gc-sha1 (configure.ac): Likewise.
49677
49678 2007-01-08  Bruno Haible  <bruno@clisp.org>
49679
49680         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
49681         macro definition.
49682         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
49683         definition.
49684         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
49685         definition.
49686         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
49687         * modules/fcntl-safer (configure.ac): Likewise.
49688         * modules/fopen-safer (configure.ac): Likewise.
49689         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
49690         GNULIB_FWRITEERROR macro definition.
49691
49692 2007-01-08  Bruno Haible  <bruno@clisp.org>
49693
49694         * m4/gnulib-common.m4: New file.
49695         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
49696         (func_get_filelist): Add m4/gnulib-common.m4.
49697
49698 2007-01-08  Bruno Haible  <bruno@clisp.org>
49699
49700         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
49701         command.
49702
49703 2007-01-08  Jim Meyering  <jim@meyering.net>
49704
49705         Use a more robust test for a "can't happen" condition.
49706         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
49707         narrowed the st_size value.  Presuming the "can't happen" condition
49708         is true, that narrowing could conceivably convert an invalid st_size
49709         value into a valid one.  Instead, use a change based on Matthew
49710         Woehlke's original patch.
49711
49712         Slight readability improvement: use an assert-like macro
49713         in place of literal "abort ()" uses.
49714         * lib/fts.c (fts_assert): Define.
49715         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
49716         Use this macro instead of a bare 'abort'.
49717
49718 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
49719
49720         Don't worry about using IRIX 5.3's wctype.h broken definitions;
49721         simply work around them.
49722         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
49723         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
49724         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
49725         declaring.
49726         Don't bother to define as macros, since the standard doesn't require it.
49727         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
49728         longer worry about IRIX 5.3.
49729         (HAVE_WCTYPE_CTMP_BUG): Remove.
49730
49731 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49732
49733         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
49734         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
49735         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49736         Problems reported by Georg Schwarz for IRIX 5.3.
49737
49738         * gnulib-tool (autoconf_minversion): Take the maximum version number
49739         found, not the minimum.  Problem reported by James Youngman.
49740
49741 2007-01-03  Karl Berry  <karl@gnu.org>
49742
49743         * doc/error.texi: new file, explaining interaction with progname.
49744         * doc/gnulib.texi: include it.  Update copyright.
49745
49746 2007-01-03  Simon Josefsson  <simon@josefsson.org>
49747
49748         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
49749         AC_CANONICAL_HOST, to improve autobuild outputs.
49750
49751 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
49752             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49753
49754         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
49755         sockets, server sockets, and other file descriptors.  Count errors
49756         to compute the return value.  Reorder the code a bit to be easier
49757         to follow.  Don't set event bits that were not requested (except
49758         POLLERR and POLLHUP).
49759
49760 2007-01-01  Bruno Haible  <bruno@clisp.org>
49761
49762         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
49763
49764 2007-01-03  Jim Meyering  <jim@meyering.net>
49765
49766         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
49767
49768 2007-01-02  Bruno Haible  <bruno@clisp.org>
49769
49770         * modules/settime (Include): Require timespec.h.
49771         * modules/nanosleep (Include): Likewise.
49772
49773 2007-01-01  Bruno Haible  <bruno@clisp.org>
49774
49775         * gnulib-tool (func_emit_copyright_notice): Bump year.
49776         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
49777
49778 2007-01-01  Bruno Haible  <bruno@clisp.org>
49779
49780         Improve support for OpenBSD.
49781         * build-aux/config.rpath (libname_spec): Export.
49782         (library_names_spec): New variable. Export.
49783         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
49784         library_names_spec from the config.rpath output. Locate shared library
49785         through the name pattern in library_names_spec.
49786
49787 2007-01-01  Eric Blake  <ebb9@byu.net>
49788
49789         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
49790
49791 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
49792
49793         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
49794         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
49795         assume the C locale, and avoid an "eval" that could cause trouble.
49796         Problem with SORT reported by Bob Proulx.
49797
49798         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
49799         Define.  Trivial patch from Henning Nielsen Lund, originally
49800         sent to bug-grep@gnu.org today.
49801
49802 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49803
49804         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
49805         struct stat.  Problem reported by Henning Nielsen Lund.
49806         * lib/acl.c: Include acl.h first, to check interface.  Don't
49807         bother to include sys/types.h and sys/stat.h again.
49808
49809 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49810
49811         Import the following change from libc; problem reported by
49812         Sven Verdoolaege.
49813
49814         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
49815
49816         [BZ #1373]
49817         * lib/argp.h: Remove __NTH for __argp_usage inline function.
49818
49819 2006-12-28  Jim Meyering  <jim@meyering.net>
49820
49821         * build-aux/announce-gen: Do not assume that the package
49822         builds any of tar.gz, tar.bz2, and .xdelta files.
49823         Suggestion from Simon Josefsson.
49824
49825 2006-12-28  Simon Josefsson  <simon@josefsson.org>
49826
49827         * modules/announce-gen: New file.
49828
49829 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         * lib/mbchar.h: Just include <wctype.h>; the wctype module
49832         handles its gotchas now.
49833         * lib/mbswidth.c: Likewise.
49834         * lib/wcwidth.h: Likewise.
49835         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
49836         and iswcntrl; the wctype module does this stuff now.
49837         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49839         * modules/mbchar (Depends-on): Add wctype.
49840         * modules/mbswidth (Depends-on): Likewise.
49841         * modules/wcwidth (Depends-on): Likewise.
49842
49843 2006-12-27  Eric Blake  <ebb9@byu.net>
49844
49845         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
49846         module uses more than what <wctype.h> is required to provide.
49847
49848 2006-12-26  Eric Blake  <ebb9@byu.net>
49849
49850         * gnulib-tool (sed_extract_prog): Avoid space-tab.
49851
49852 2006-12-26  Eric Blake  <ebb9@byu.net>
49853
49854         * modules/absolute-header: New module.
49855         * modules/fcntl (Depends-on): Depend on it.
49856         * modules/inttypes (Depends-on): Likewise.
49857         * modules/stdint (Depends-on): Likewise.
49858         * modules/sys_stat (Depends-on): Likewise.
49859         * modules/wctype (Depends-on): Likewise.
49860         * MODULES.html.sh (Support for building libraries and
49861         executables): Document it.
49862
49863 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49864
49865         * gnulib-tool (SED): Remove, undoing previous change.
49866         The problem was that it broke coreutils on Solaris, because
49867         "sed --posix" leaked into a makefile.
49868         (sed): New alias, if 'alias' and GNU sed.
49869
49870 2006-12-24  Jim Meyering  <jim@meyering.net>
49871
49872         Work around an fchownat bug in glibc-2.4:
49873         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
49874         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
49875         in spite of the -P option.
49876         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
49877         New macros.
49878         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
49879         * modules/openat (Files): Add lib/fchownat.c.
49880         * lib/openat.c (fchownat): Don't define here.  Move to...
49881         * lib/fchownat.c: ...this new file.
49882
49883 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49884
49885         Fix bug reported by Bruno Haible in
49886         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
49887         where quotearg.c didn't compile on Mac OS X 10.2 because it
49888         lacks <wchar.h> and wint_t.
49889         * lib/wctype_.h (__wctype_wint_t): New type.
49890         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
49891         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
49892         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
49893         Arg is now of type __wctype_wint_t, not wint_t.
49894         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
49895         substitute HAVE_WINT_T.
49896         * modules/wctype (Files): Add m4/wint_t.m4.
49897         (wctype.h): Substitute HAVE_WINT_T.
49898
49899 2006-12-23  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
49902
49903 2006-12-23  Bruno Haible  <bruno@clisp.org>
49904
49905         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
49906         S_ISLNK.
49907         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
49908         mingw.
49909
49910 2006-12-22  Bruno Haible  <bruno@clisp.org>
49911
49912         * lib/copy-file.c: Include acl.h.
49913         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
49914         Close the file descriptors only after being done with copy_acl.
49915         * modules/copy-file (Depends-on): Add acl.
49916
49917 2006-12-22  Bruno Haible  <bruno@clisp.org>
49918
49919         * gnulib-tool (SED): New variable.
49920         Use $SED instead of sed everywhere.
49921
49922 2006-12-22  Bruno Haible  <bruno@clisp.org>
49923
49924         * modules/no-c++: New file.
49925         * m4/no-c++.m4: New file.
49926         * MODULES.html.sh (Support for building libraries and executables):
49927         Add no-c++.
49928
49929 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
49930
49931         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49932         Include <limits.h>, and use its INT_MAX to rewrite the
49933         j loop so that it does not overflow 'int'.  Problem reported by
49934         Ralf Wildenhues in
49935         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
49936         Play it safe by shifting left by 1 rather than multiplying by 2,
49937         as GCC is less likely to optimize this away when the value
49938         is signed (when it assumes overflow leads to undefined behavior).
49939         Also, don't assume time_t uses two's complement.
49940
49941 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
49942
49943         * MODULES.html.sh: New module wctype.
49944         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
49945         * lib/fnmatch.c: Don't bother to include <wchar.h> before
49946         <wctype.h>, since the new wctype module should fix this.
49947         * lib/quotearg.c: Include <wctype.h> unconditionally, since
49948         the wctype module should arrange for it.
49949         * lib/regex_internal.h: Likewise.
49950         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
49951         since the wctype module should handle this now.
49952         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
49953         * modules/fnmatch (Depends-on): Add wctype.
49954         * modules/quotearg (Depends-on): Likewise.
49955         * modules/regex (Depends-on): Likewise.
49956
49957 2006-12-19  Bruno Haible  <bruno@clisp.org>
49958
49959         * lib/strdup.h [C++]: Wrap definitions in extern "C".
49960         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
49961
49962 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49963
49964         * modules/savewd (Depends-on): Fix dependency on fcntl.
49965
49966 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49967
49968         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
49969         conforms to C99, rather than relying on the user's environment
49970         setting of STDINT_H.
49971
49972 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49973         and Eric Blake  <ebb9@byu.net>
49974
49975         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
49976         This is more consistent with the other defines here.
49977         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
49978         Port to z/OS.  Problem reported by Paul Gilmartin.
49979         Change local vars to use gl_ prefix rather than ac_.
49980         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
49981         with other defines.
49982         * modules/double-slash-root: New module.
49983         * modules/dirname (Files): Remove m4/double-slash-root.m4.
49984         (Depends-on): Add double-slash-root.
49985         * MODULES.html.sh (File system functions): Mention new module.
49986
49987 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
49988
49989         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
49990         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
49991         This is for the benefit of gzip, which doesn't do i18n.
49992
49993 2006-12-12  Jim Meyering  <jim@meyering.net>
49994
49995         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
49996         Reported by Andreas Schwab <schwab@suse.de>.
49997
49998 2006-12-12  Bruno Haible  <bruno@clisp.org>
49999
50000         Merge these changes.
50001         2006-09-05  Bruno Haible  <bruno@clisp.org>
50002         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50003         iconv_alloc succeeded.
50004         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50005         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50006         test for " && dest " at the end - dest is always != NULL there. Call
50007         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50008         with 2xNULL arguments, also to flush the state storage. Handle the
50009         IRIX iconv behaviour. Realloc the final result, to throw away unused
50010         memory.
50011
50012 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50013
50014         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50015         and fchmodat unconditionally, since glibc 2.4 has them.
50016         Problem reported by Arkadiusz Miskiewicz.
50017
50018 2006-12-10  Bruno Haible  <bruno@clisp.org>
50019
50020         * gnulib-tool (func_import): Show the include files only for those
50021         modules that are copied and specified.
50022         Reported by Karl Berry.
50023
50024 2006-12-08  Jim Meyering  <jim@meyering.net>
50025
50026         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50027         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50028
50029         * build-aux/announce-gen: Add two new options, both optional:
50030         --bootstrap-tools=TOOL_LIST
50031               a comma-separated list of tools, e.g.,
50032               autoconf,automake,bison,gnulib
50033         --gnulib-snapshot-date=DATE
50034               if gnulib is in the bootstrap tool list,
50035               then report this as the snapshot date.
50036               If not specified, use the current date/time.
50037               If you specify a date here, be sure it's UTC.
50038
50039 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50040
50041         * tests/test-argp-2.sh: Fix test to match actual output.
50042         (func_compare): Fix sed script to be portable.
50043
50044 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50045
50046         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50047         workaround for this case.  It is not autoconfigured now; offhand
50048         it's hard to see how to autoconfigure it.
50049
50050 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50051
50052         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50053         a directory that is about to be chowned.  Such a directory's
50054         initial file permissions should permit the owner only and this
50055         should not be changed until after the chown, since the group and
50056         other bits would be incorrect if they granted permission before
50057         the chown.
50058
50059         Fix porting problem for iswctype reported by Georg Schwarz in:
50060         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50061         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50062         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50063         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50064         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50065
50066 2006-12-03  Jim Meyering  <jim@meyering.net>
50067
50068         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50069         p->fts_statp may not yet be defined.
50070         (fts_read): Instead, set it in the caller, once p->fts_statp is
50071         sure to be defined, and corresponds to a top-level directory.
50072         This bug made du -x fail.  Here's the coreutils test case:
50073         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50074         Reported by Mike Frysinger.
50075
50076 2006-12-01  Jim Meyering  <jim@meyering.net>
50077
50078         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50079         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50080         Reported by Simon Josefsson.
50081
50082 2006-11-30  Jim Meyering  <jim@meyering.net>
50083
50084         * m4/warning.m4: Use the all-permissive copyright notice
50085         recommended by RMS (rather than LGPL).
50086         * m4/vararrays.m4: Likewise.
50087         * m4/flexmember.m4: Likewise.
50088
50089 2006-11-29  Bruno Haible  <bruno@clisp.org>
50090
50091         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50092         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50093         using +=.
50094         Reported by Simon Josefsson <simon@josefsson.org>.
50095
50096 2006-11-28  James Youngman <jay@gnu.org>
50097
50098         * README: Advise users that they might find the bug-gnulib@gnu.org
50099         and autotools-announce@gnu.org mailing lists useful.
50100
50101 2006-11-28  Bruno Haible  <bruno@clisp.org>
50102
50103         * m4/ptrdiff_max.m4: Remove file.
50104
50105 2006-11-21  Bruno Haible  <bruno@clisp.org>
50106
50107         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50108         _AC_COMPUTE_INT.
50109         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50110         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50111         _AC_COMPUTE_INT.
50112         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50113         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50114         _AC_COMPUTE_INT.
50115         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50116
50117 2006-11-28  Jim Meyering  <jim@meyering.net>
50118
50119         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50120         warning from "gcc -Wshadow" about shadowing the builtin.
50121
50122 2006-11-27  Bruno Haible  <bruno@clisp.org>
50123
50124         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50125         _AC_COMPUTE_INT.
50126         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50127
50128 2006-11-27  Bruno Haible  <bruno@clisp.org>
50129             Paul Eggert  <eggert@cs.ucla.edu>
50130
50131         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50132
50133 2006-11-26  Bruno Haible  <bruno@clisp.org>
50134
50135         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50136         noinst_LTLIBRARIES.
50137
50138 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50139             Bruno Haible  <bruno@clisp.org>
50140
50141         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50142         if compiling with "gcc -ansi".
50143
50144 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50145
50146         Fix some incompatibilities with gcc -ansi -pedantic.
50147         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50148         if compiling pedantically with GCC, unless it's C99 or later.
50149         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50150         it mishandles gcc -ansi -pedantic as well.
50151         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50152         if gcc -pedantic.
50153         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50154         initializers for struct if -pedantic, unless it's C99 or later.
50155
50156 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50157
50158         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50159         Don't close an fd more than once. Identical atimes indicate
50160         success, not failure.
50161
50162 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50163
50164         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50165
50166 2006-11-23  Jim Meyering  <jim@meyering.net>
50167
50168         * build-aux/announce-gen: New file.  From coreutils.
50169
50170 2006-11-22  Jim Meyering  <jim@meyering.net>
50171
50172         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50173         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50174         (fts_read): Use a temporary to narrow the overused st_size member
50175         before using it in a switch statement.  Reported by Matthew Woehlke.
50176
50177         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50178         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50179
50180 2006-11-20  Bruno Haible  <bruno@clisp.org>
50181
50182         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50183         changequote instead of pairs of brackets.
50184         Reported by Andreas Schwab <schwab@suse.de>.
50185
50186 2006-11-21  Jim Meyering  <jim@meyering.net>
50187
50188         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50189         so as to remain compatible with older compilers.
50190         Patch from Michael Deutschmann.
50191
50192 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50193
50194         * MODULES.html.sh (File system functions): Add openat.
50195
50196         * lib/openat.h (rpl_fstatat): New macro, if
50197         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50198         (fstatat): Define to rpl_fstatat under the same conditions,
50199         unless COMPILING_FSTATAT.
50200         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50201         seems to have the bug.
50202         * lib/fstatat.c: New file.
50203         * modules/openat (Files): Add it.
50204
50205 2006-11-20  Bruno Haible  <bruno@clisp.org>
50206
50207         * Makefile: New file.
50208
50209 2006-11-20  Jim Meyering  <jim@meyering.net>
50210
50211         The beginnings of syntax-related checks for gnulib.
50212         * lib/Makefile: New file.
50213         * lib/t-idcache: New script.  Ensure that the two halves of
50214         idcache.c stay in sync.
50215
50216         * lib/idcache.c: Adjust comments in user- and group- portions to
50217         be more accurate, and to be consistent with one another.
50218
50219 2006-11-20  Jim Meyering  <jim@meyering.net>
50220
50221         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50222         continue using the flexible array member (thus, this module performs
50223         half as many malloc calls), with the addition that...
50224         (getgroup, getuser): Consistently record a non-match via an empty
50225         "name" string, and map an empty string match to a NULL return value.
50226         * modules/idcache (Depends-on): Re-add flexmember.
50227
50228         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50229         (getuidbyname, getgroup, getgidbyname): Likewise.
50230
50231         Use cleaner syntax: NULL rather than 0.
50232         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50233
50234 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50235
50236         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50237         It mishandled the case where the group was missing.
50238         Problem reported by Greg Schafer.
50239         * modules/idcache: Likewise.
50240
50241 2006-11-18  Jim Meyering  <jim@meyering.net>
50242
50243         * check-module (%exempt_header): Add exception for some
50244         conditionally-included headers.
50245
50246         * modules/i-ring (Depends-on): Add verify.
50247         (License): Change to LGPL.
50248
50249 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50250
50251         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50252         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50253         and inttostr.h.  Use snprintf rather than uinttostr, so that
50254         LGPLed code doesn't depend on GPLed.
50255
50256 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50257
50258         * modules/inline (License): Change from GPL to LGPL.
50259
50260 2006-11-17  Jim Meyering  <jim@meyering.net>
50261
50262         * modules/d-type (License): Switch to LGPL.
50263
50264 2006-11-15  Bruno Haible  <bruno@clisp.org>
50265
50266         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50267
50268 2006-11-15  Eric Blake  <ebb9@byu.net>
50269
50270         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50271         the module dependency.
50272
50273 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50274             Bruno Haible  <bruno@clisp.org>
50275
50276         * gnulib-tool (func_create_testdir): Add license consistency check.
50277
50278 2006-11-15  Eric Blake  <ebb9@byu.net>
50279
50280         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50281         random "(cached)" in configure output.
50282
50283 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50284
50285         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50286         test for conforming inttypes.h is both announced and cached.
50287
50288         * MODULES.html.sh (seen_modules, seen_files): New variables.
50289         (func_module): Rewrite to use a few less gnulib-tool and sed
50290         invocations.  Avoid a couple of quadratic algorithms for ...
50291         (missed_modules, missed_files): ... these, with ...
50292         (func_append, func_tmpdir): ... these new functions, from
50293         gnulib-tool.  Analogously, install traps for cleanup.
50294
50295         * tests/test-gc.c (main): Remove unused variables.
50296         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50297
50298 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50299
50300         * modules/inttostr (License): Change to LGPL.
50301
50302 2006-11-14  Eric Blake  <ebb9@byu.net>
50303
50304         * modules/tempname (License): Change to LGPL.
50305
50306 2006-11-14  Eric Blake  <ebb9@byu.net>
50307
50308         * doc/functions.texi (Function Portability): *printf functions on
50309         Cygwin now understand all POSIX size specifiers.
50310
50311 2006-11-14  Bruno Haible  <bruno@clisp.org>
50312
50313         * modules/c-ctype (License): Change to LGPL.
50314
50315 2006-11-12  Bruno Haible  <bruno@clisp.org>
50316
50317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50318         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50319         for GNOME libraries, for which the include files are installed in
50320         subdirectories of $prefix/include.
50321
50322 2006-11-12  Bruno Haible  <bruno@clisp.org>
50323
50324         * m4/lib-link.m4: Require at least autoconf-2.54.
50325         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50326         name to underscores for the --with option.
50327
50328 2006-11-13  Bruno Haible  <bruno@clisp.org>
50329
50330         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50331         the tests directory.
50332         Reported by Ralf Wildenhues.
50333
50334 2006-11-13  Bruno Haible  <bruno@clisp.org>
50335
50336         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50337         (func_emit_initmacro_end): Undo the override here.
50338         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50339         Works around the famous automake error in coreutils.
50340
50341 2006-11-13  Eric Blake  <ebb9@byu.net>
50342
50343         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
50344         element, not its node.
50345
50346 2006-11-12  Bruno Haible  <bruno@clisp.org>
50347
50348         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
50349         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
50350
50351 2006-11-12  Bruno Haible  <bruno@clisp.org>
50352
50353         * gnulib-tool: New option --local-symlink.
50354         (func_usage): Document it.
50355         (lsymbolic): New variable.
50356         (func_import, func_create_testdir): If --symlink was not specified,
50357         test whether --local-symlink was specified and the file comes from
50358         the local_gnulib_dir.
50359
50360 2006-11-12  Bruno Haible  <bruno@clisp.org>
50361
50362         * gnulib-tool (func_ln): New function.
50363         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
50364
50365 2006-11-12  Bruno Haible  <bruno@clisp.org>
50366
50367         Finish support for source files in subdirectories.
50368         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50369         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50370         AUTOMAKE_OPTIONS.
50371         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50372
50373 2006-11-12  Bruno Haible  <bruno@clisp.org>
50374
50375         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50376         EXTRA_lib_SOURCES augmentation.
50377         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50378
50379 2006-11-12  Jim Meyering  <jim@meyering.net>
50380
50381         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50382         file descriptors.  This also averts a failure on systems with
50383         native openat support when a traversed directory lacks "x" access.
50384         * lib/fts_.h: Include "i-ring.h"
50385         (struct FTS) [fts_fd_ring]: New member.
50386         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50387         (FCHDIR): Add parentheses.
50388         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50389         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50390         When descending, rather than simply closing the previous
50391         fts_cwd_fd value, push that file descriptor onto the ring.
50392         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50393         (fts_open): Initialize the new fd_ring member.
50394         (fts_close): Clear the ring.
50395         (fts_safe_changedir): When possible, use our new fd_ring to skip
50396         the diropen and fstat and dev/ino comparison that would normally
50397         accompany a virtual `chdir ("..")'.
50398
50399         * modules/fts (Depends-on): Add i-ring.
50400         * modules/i-ring: New module.
50401         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50402         * m4/i-ring.m4: New file.
50403
50404 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50405
50406         * gnulib-tool (func_create_testdir): Fix replacement of
50407         `build-aux' in configure.ac.  Run autotools in gltests
50408         subdirectory.
50409         (func_create_testdir, func_create_megatestdir, test): There is
50410         no need for '--force' in most autotool invocations in a new
50411         tree.  Actually fail the whole test if any of the tools, or the
50412         configure or make stages fail.
50413
50414         Sync from Automake.
50415         * build-aux/gnupload: Revert last change.  Add pointer to upload
50416         instructions of the GNU Maintenance Instructions.
50417         Suggestion by Karl Berry.
50418
50419 2006-11-10  Jim Meyering  <jim@meyering.net>
50420
50421         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
50422
50423 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50424
50425         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
50426         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
50427         (bind_textdomain_codeset) [! ENABLE_NLS]:
50428         Evaluate all the arguments.  That way, callers get compatible behavior
50429         if the arguments have side effects.  Also, it avoids some GCC
50430         diagnostics in some cases; Joel E. Denny reported problems when Bison
50431         was configured with --enable-gcc-warnigs.
50432
50433 2006-11-10  Jim Meyering  <jim@meyering.net>
50434
50435         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
50436         relevant options in CFLAGS (like -O, -fno-inline) are taken into
50437         account.
50438
50439 2006-11-10  Jim Meyering  <jim@meyering.net>
50440
50441         * modules/inline: New file/module.
50442         * modules/xalloc (Files): Remove m4/inline.m4.
50443         (Depends-on): Add inline, instead.
50444         * modules/oset: Likewise.
50445         * modules/list: Likewise.
50446
50447 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50448
50449         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
50450         Problem reported by Matthew Woehlke.
50451
50452 2006-11-09  Bruno Haible  <bruno@clisp.org>
50453
50454         * lib/tempname.c (gen_tempname): Remove variant that invokes
50455         __gen_tempname.
50456         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
50457         __gen_tempname.
50458
50459 2006-11-08  Bruno Haible  <bruno@clisp.org>
50460
50461         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
50462         to 'yes' instead of 'cross-compiling'.
50463
50464 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
50465
50466         * lib/quotearg.h (quotearg_free): New decl.
50467         * lib/quotearg.c (quotearg_free): New function.
50468         (slot0, nslots, slotvec0, slotvec):
50469         Now file-scope so that quotearg_free can get at them.
50470
50471 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50472
50473         Sync from Automake.
50474         * build-aux/gnupload: Add missing 'gnu' to example URL.
50475         Report by Karl Berry.
50476
50477 2006-11-08  Bruno Haible  <bruno@clisp.org>
50478
50479         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
50480         Suggested by Paul Eggert.
50481
50482 2006-11-08  Jim Meyering  <jim@meyering.net>
50483
50484         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
50485         It's already included if !_LIBC.
50486         (fts_safe_changedir): Add a comment.
50487
50488 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50489
50490         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
50491         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
50492         Matthew Woehlke.
50493
50494         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
50495         definitions up, to avoid colliding with change below.
50496         (static_inline) [HAVE_INLINE]: New macro.
50497         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
50498         Provide extern decls when !HAVE_INLINE.  Do not define unless
50499         static_inline is defined, either by us or by xmalloc.c.  Use
50500         static_inline rather than static inline.
50501         (XCALLOC): Optimize sizeof(T) = 1 case.
50502         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
50503
50504 2006-11-07  Bruno Haible  <bruno@clisp.org>
50505
50506         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
50507         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
50508         AC_C_INLINE.
50509         * modules/xalloc (Files): Add m4/inline.m4.
50510
50511 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50512
50513         * README: Fix typo.
50514         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
50515         (Miscellanous Notes): ...from this.
50516
50517 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50518
50519         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
50520         Mention that offsetof should be used instead of sizeof.
50521         From Bruno Haible.
50522
50523 2006-11-07  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
50526
50527 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50528
50529         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50530         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
50531         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50532         (gl_tree_add_before, gl_tree_add_after):
50533         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
50534         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
50535         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50536         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
50537         (gl_linked_add_after, gl_linked_add_at): Likewise.
50538         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
50539         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50540         (gl_tree_add_before, gl_tree_add_after): Likewise.
50541         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
50542         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
50543         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
50544
50545 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50546
50547         * lib/gl_oset.h: Use C comment style, not C++ comment style.
50548
50549 2006-11-06  Bruno Haible  <bruno@clisp.org>
50550
50551         * m4/inline.m4: New file.
50552         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
50553         * modules/list (Files): Add m4/inline.m4.
50554         * modules/oset (Files): Likewise.
50555
50556 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50557
50558         * lib/idcache.c: Include <stddef.h>, for offsetof.
50559         (struct userid.name): Change from char * to a flexible array member.
50560         All uses changed.
50561         * modules/idcache (Depends-on): Add flexmember.
50562
50563         * MODULES.html.sh (Core language properties): New module flexmember.
50564         * modules/flexmember, m4/flexmember.m4: New files.
50565
50566         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
50567         inline functions that are identical with the old xnmalloc_inline,
50568         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
50569         that we can avoid some unnecessary integer multiplications and
50570         divisions in the common case where the element size is known at
50571         compile time.
50572         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
50573         needed.
50574         (xnboundedmalloc): Remove.
50575         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
50576         arguments, for consistency with rest of this header.
50577         (xcharalloc): Rewrite using XNMALLOC.
50578         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
50579         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
50580         versions have been moved to lib/xalloc.h and renamed to be the
50581         non-*_inline versions.
50582         (xmalloc, xrealloc): Implement without reference to the xnmalloc
50583         and xnrealloc functions, since those functions are now inline and
50584         now call us.
50585         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
50586         renaming described above.
50587         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
50588         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
50589         captures the dependency in AC_C_INLINE.
50590
50591         New module canonicalize-lgpl, proposed by Charles Wilson in
50592         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
50593         with a few small changes afterwards.
50594         * MODULES.html.sh (File system functions): New module
50595         canonicalize-lgpl.
50596         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
50597         and canonicalize_file_name.
50598         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
50599         * modules/canonicalize-lgpl: New files.
50600
50601 2006-11-05  Bruno Haible  <bruno@clisp.org>
50602
50603         * gnulib-tool (func_import, func_create_testdir): Create directories
50604         also for files in subdirectories of lib/.
50605
50606 2006-11-05  Bruno Haible  <bruno@clisp.org>
50607
50608         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
50609         ANSI C compliant.
50610
50611 2006-11-03  Bruno Haible  <bruno@clisp.org>
50612
50613         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50614         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
50615         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
50616         (xnboundedmalloc): New inline function.
50617         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
50618         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
50619         xmalloc.
50620         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
50621         xmalloc.
50622         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
50623         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
50624         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
50625         xmalloc.
50626         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50627         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
50628         xmalloc.
50629         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
50630         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50631         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
50632         xmalloc.
50633         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50634         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
50635         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50636         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
50637         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
50638         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
50639         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
50640
50641 2006-11-03  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/c-ctype.h [C++]: Define functions without name mangling.
50644         * lib/fwriteerror.h [C++]: Likewise.
50645         * lib/gcd.h [C++]: Likewise.
50646         * lib/linebreak.h [C++]: Likewise.
50647
50648 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50649
50650         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
50651         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
50652         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
50653         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50654         Check for functions and headers just once.
50655         Check for declaration of canonicalize_file_name.
50656         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
50657
50658 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50659
50660         * gnulib-tool (func_import): Fix typo in actioncmd.
50661
50662 2006-11-02  Bruno Haible  <bruno@clisp.org>
50663
50664         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
50665         newline sequence in the Makefile.am snippet as a space, like "make"
50666         does.
50667         Reported by Roger Persson <perrog@gmail.com>.
50668
50669 2006-11-01  Bruno Haible  <bruno@clisp.org>
50670
50671         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
50672         already declared in <string.h>.
50673         * lib/strcase.h (strncasecmp): Don't declare it if yes.
50674
50675 2006-11-01  Bruno Haible  <bruno@clisp.org>
50676
50677         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
50678         * lib/strcase.h: Include <string.h>.
50679         (strcasecmp): Define to rpl_strcasecmp here.
50680
50681 2006-11-01  Bruno Haible  <bruno@clisp.org>
50682
50683         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
50684
50685 2006-11-01  Eric Blake  <ebb9@byu.net>
50686
50687         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
50688
50689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
50690
50691 2006-10-29  Bruno Haible  <bruno@clisp.org>
50692
50693         Make it compile in C++ mode.
50694         * lib/full-write.c (full_rw): Add a cast.
50695
50696 2006-11-01  Bruno Haible  <bruno@clisp.org>
50697
50698         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
50699         be POSIX compliant.
50700         Reported by Roger Persson <perrog@gmail.com>.
50701
50702 2006-11-01  Eric Blake  <ebb9@byu.net>
50703
50704         * lib/getopt_.h: Fix comments.
50705
50706 2006-10-31  Eric Blake  <ebb9@byu.net>
50707
50708         * modules/tmpdir (Depends-on): Add sys_stat.
50709         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
50710         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
50711         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
50712         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
50713         tempname.
50714
50715 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
50716
50717         Avoid some C++ diagnostics reported by Bruno Haible.
50718         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
50719         xmalloc.
50720         (quotearg_alloc): Use xcharalloc rather than xmalloc.
50721         (struct slotvec): Move to top level.
50722         (quotearg_n_options): Rewrite to avoid xmalloc.
50723         * lib/xalloc.h (xcharalloc): New function.
50724         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
50725         [defined __cplusplus]: Add function template that provides result
50726         type propagation.  This part of the change is from Bruno Haible.
50727
50728 2006-10-29  Bruno Haible  <bruno@clisp.org>
50729
50730         Make it compile in C++ mode.
50731         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
50732         * lib/strnlen1.c (strnlen1): Cast memchr result.
50733         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
50734         * lib/clean-temp.c (string_equals, string_hash): Add casts.
50735         (create_temp_dir): Rename local variable 'template'.
50736         (compile_csharp_using_sscli): Add cast.
50737         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
50738         * lib/findprog.c (find_in_path): Likewise.
50739         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
50740         * lib/wait-process.c (register_slave_subprocess): Likewise.
50741
50742 2006-10-22  Bruno Haible  <bruno@clisp.org>
50743
50744         * modules/tsearch: New file.
50745         * lib/tsearch.h: New file.
50746         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
50747         * m4/tsearch.m4: New file.
50748         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
50749
50750 2006-10-29  Eric Blake  <ebb9@byu.net>
50751
50752         * lib/arcfour.c: Assume config.h.
50753         * lib/arctwo.c: Likewise.
50754         * lib/base64.c: Likewise.
50755         * lib/check-version.c: Likewise.
50756         * lib/crc.c: Likewise.
50757         * lib/des.c: Likewise.
50758         * lib/gc-gnulib.c: Likewise.
50759         * lib/gc-libgcrypt.c: Likewise.
50760         * lib/gc-pbkdf2-sha1.c: Likewise.
50761         * lib/getaddrinfo.c: Likewise.
50762         * lib/getdelim.c: Likewise.
50763         * lib/getline.c: Likewise.
50764         * lib/hmac-md5.c: Likewise.
50765         * lib/hmac-sha1.c: Likewise.
50766         * lib/iconvme.c: Likewise.
50767         * lib/md2.c: Likewise.
50768         * lib/md4.c: Likewise.
50769         * lib/memxor.c: Likewise.
50770         * lib/read-file.c: Likewise.
50771         * lib/readline.c: Likewise.
50772         * lib/rijndael-alg-fst.c: Likewise.
50773         * lib/rijndael-api-fst.c: Likewise.
50774         * lib/xgetdomainname.c: Likewise.
50775
50776 2006-10-28  Eric Blake  <ebb9@byu.net>
50777
50778         * lib/xstrndup.c: Assume config.h.
50779
50780 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
50781
50782         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
50783         stat-macros.h is now for our own macros, whereas stat_h is for
50784         macros in the <sys/stat.h> name space.
50785         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
50786         (STAT_MACROS_H): Remove.
50787         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
50788         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
50789         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
50790         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
50791         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
50792         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
50793         Move these macros to ...
50794         * lib/stat_.h: here.  Don't include stat-macros.h.
50795         * lib/canonicalize.c: Don't include stat-macros.h.
50796         * lib/chown.c: Likewise.
50797         * lib/euidaccess.c: Likewise.
50798         * lib/file-type.c: Likewise.
50799         * lib/filemode.c: Likewise.
50800         * lib/glob.c: Likewise.
50801         * lib/isapipe.c: Likewise.
50802         * lib/lchown.c: Likewise.
50803         * lib/lstat.c: Likewise.
50804         * lib/mkdir-p.c: Likewise.
50805         * lib/rmdir.c: Likewise.
50806         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
50807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
50808         unless mkdir isn't declared, to speed up 'configure'.
50809         Always create sys/stat.h, since it's unlikely any real sys/stat.h
50810         would define all the S_* symbols.
50811         * modules/canonicalize (Depends-on):
50812         Depend on sys_stat, not stat-macros.
50813         * modules/chown: Likewise.
50814         * modules/euidaccess: Likewise.
50815         * modules/filemode: Likewise.
50816         * modules/file-type: Likewise.
50817         * modules/glob: Likewise.
50818         * modules/isapipe: Likewise.
50819         * modules/lchown: Likewise.
50820         * modules/lstat: Likewise.
50821         * modules/mkancesdirs: Likewise.
50822         * modules/rmdir: Likewise.
50823         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
50824         * modules/modechange: Likewise.
50825         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
50826         (configure.ac): Remove gl_STAT_MACROS.
50827         * modules/sys_stat (Depends-on): Remove stat-macros.
50828
50829 2006-10-27  Bruno Haible  <bruno@clisp.org>
50830
50831         * m4/signed.m4: Remove file.
50832         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
50833         invocation.
50834         * modules/vasnprintf (Files): Remove m4/signed.m4.
50835
50836 2006-10-27  Bruno Haible  <bruno@clisp.org>
50837
50838         Update to GNU gettext 0.16.
50839         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
50840         m4/inttypes-h.m4, m4/signed.m4.
50841         * m4/gettext.m4: Update to GNU gettext 0.16.
50842         * m4/intl.m4: New file, from GNU gettext.
50843         * m4/intldir.m4: New file, from GNU gettext.
50844         * config/srclist.txt: Update
50845
50846 2006-10-27  Eric Blake  <ebb9@byu.net>
50847
50848         * MODULES.html.sh: Document tempname.
50849         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
50850         dependencies.
50851         (Files): Move lib/tempname.c...
50852         * modules/tempname: ...to this new module.
50853         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
50854         (gl_PREREQ_TEMPNAME): Move...
50855         * m4/tempname.m4: ...to this new file.
50856         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
50857         * modules/sys_stat (Depends-on): Add stat-macros.
50858         * lib/stat_.h (includes): Pick up stat macros.
50859         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
50860         if stat macros are broken.
50861         * lib/tempname.c (includes): No need to include "stat-macros.h".
50862         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
50863         (direxists, __path_search) [!_LIBC]: Don't compile these in
50864         gnulib; the tmpdir module covers that.
50865         * lib/tempname.h: New file.
50866
50867 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
50868
50869         * COPYING: Explain how gnulib-tool converts licence headers.
50870         Almost all wording by Eric Blake.
50871
50872 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
50873
50874         * lib/mbchar.h (is_basic_table): Make read-only.
50875         * lib/mbchar.c (is_basic_table): Likewise.
50876         Reported by John Darrington.
50877
50878 2006-10-25  Bruno Haible  <bruno@clisp.org>
50879
50880         * lib/progname.h (set_program_name): Undefine before defining.
50881
50882 2006-10-25  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
50885         false for non-gcc C++ compilers.
50886         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50887
50888 2006-10-24  Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
50891         iconv implementations like Irix iconv.
50892
50893 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50894
50895         * modules/vararrays: New file.
50896         * m4/vararrays.m4: New file, taken from diffutils.
50897         * MODULES.html.sh: New module vararrays.
50898
50899 2006-10-24  Karl Berry  <karl@gnu.org>
50900
50901         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
50902         Don't call GNU Unix.
50903
50904 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50905
50906         * users.txt: Add Libtool.
50907
50908         Sync from Libtool:
50909
50910         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50911
50912         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
50913         to gnulib's policy of including config.h unconditionally.
50914
50915 2006-10-24  Bruno Haible  <bruno@clisp.org>
50916
50917         * modules/wcwidth (Files): Add m4/wint_t.m4.
50918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
50919         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
50920
50921 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50922
50923         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
50924         to pacify GCC with some -W flags enabled.  Problem reported by
50925         Bruno Haible.
50926
50927 2006-10-24  Jim Meyering  <jim@meyering.net>
50928
50929         * MODULES.html.sh: Remove uinttostr.  It's not a module.
50930         Reported by Karl Berry.
50931
50932 2006-10-23  Bruno Haible  <bruno@clisp.org>
50933
50934         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
50935
50936 2006-10-24  Bruno Haible  <bruno@clisp.org>
50937
50938         * lib/gl_list.h: Use C comment style, not C++ comment style.
50939
50940 2006-10-23  Eric Blake  <ebb9@byu.net>
50941
50942         * lib/getaddrinfo.c (includes): Add missing include.
50943
50944 2006-10-23  Bruno Haible  <bruno@clisp.org>
50945             Paul Eggert  <eggert@cs.ucla.edu>
50946
50947         Ability to rename obstack_free.
50948         * lib/obstack.h (__obstack_free): New macro. Declare instead of
50949         obstack_free.
50950         (obstack_free): Invoke the __obstack_free macro.
50951         * lib/obstack.c (obstack_free): Use __obstack_free macro.
50952
50953 2006-10-23  Bruno Haible  <bruno@clisp.org>
50954             Paul Eggert  <eggert@cs.ucla.edu>
50955
50956         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
50957         __argc, __argv from the declaration. (They are defined as macros on
50958         mingw.)
50959
50960 2006-10-22  Bruno Haible  <bruno@clisp.org>
50961
50962         * doc/gnulib-intro.texi: New file.
50963         * doc/gnulib.texi: Include it.
50964
50965 2006-10-21  Bruno Haible  <bruno@clisp.org>
50966
50967         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
50968         "Introduction", "Miscellanous Notes", "Particular Modules".
50969
50970 2006-10-21  Bruno Haible  <bruno@clisp.org>
50971
50972         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50973         Change mostlyclean-local rule to avoid sh syntax error from bash
50974         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
50975
50976 2006-10-23  Jim Meyering  <jim@meyering.net>
50977
50978         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
50979         in place of snprintf.
50980
50981         * modules/inttostr (Files): Add lib/uinttostr.c.
50982         * lib/uinttostr.c (inttostr): New file/function.
50983         * lib/inttostr.h (uinttostr): Declare.
50984         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
50985         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
50986         Add uinttostr.
50987         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
50988
50989 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
50990
50991         * lib/canonicalize.c (ELOOP): Define if not already defined.
50992         Problem reported by Bruno Haible in
50993         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
50994
50995 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
50996
50997         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
50998         Problem reported by Perry Smith and Ville Laurikari.
50999
51000         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51001         uses.
51002
51003 2006-10-19  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51006         for mingw.
51007
51008 2006-10-19  Bruno Haible  <bruno@clisp.org>
51009
51010         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51011         Needed for mingw.
51012
51013 2006-10-19  Bruno Haible  <bruno@clisp.org>
51014
51015         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51016
51017 2006-10-19  Bruno Haible  <bruno@clisp.org>
51018
51019         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51020         it.
51021
51022 2006-10-19  Bruno Haible  <bruno@clisp.org>
51023
51024         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51025         invocation.
51026
51027 2006-10-19  Bruno Haible  <bruno@clisp.org>
51028
51029         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51030         mountlist by default.
51031
51032 2006-10-16  Bruno Haible  <bruno@clisp.org>
51033
51034         * lib/c-strstr.c: Include c-strstr.h.
51035
51036 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51037
51038         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51039         in a slash.
51040
51041 2006-10-18  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/lock.h [C++]: Wrap definitions in extern "C".
51044
51045 2006-10-18  Bruno Haible  <bruno@clisp.org>
51046
51047         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51048         gl_LIBOBJS list.
51049
51050 2006-10-18  Bruno Haible  <bruno@clisp.org>
51051
51052         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51053
51054 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51055
51056         * lib/xstrtol.h: Include gettext.h.
51057         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51058         Problem reported by Eric Blake.
51059         * modules/xstrtol (Depends-on): Add gettext-h.
51060
51061 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51062
51063         * lib/strftime.c (advance): New macro.
51064         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51065         incomplete type, so you can't add 0 to it.  Problem and patch
51066         reported by Eelco Dolstra for dietlibc.
51067
51068 2006-10-18  Jim Meyering  <jim@meyering.net>
51069
51070         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51071         type for a local, and rename it: s/up/user_proc/.
51072
51073 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51074
51075         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51076         READ_UTMP_USER_PROCESS.
51077         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51078
51079 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51080
51081         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51082         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51083
51084 2006-10-17  Eric Blake  <ebb9@byu.net>
51085
51086         * lib/sigprocmask.c (sigprocmask): Fix typo.
51087
51088         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51089
51090         * modules/clean-temp (Makefile.am): Don't add to make output...
51091         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51092         config.h.
51093
51094 2006-10-17  Bruno Haible  <bruno@clisp.org>
51095
51096         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51097         differently if DEFAULT_TEXT_DOMAIN is set.
51098
51099 2006-10-16  Bruno Haible  <bruno@clisp.org>
51100
51101         * lib/clean-temp.c: Include fwriteerror.h.
51102
51103 2006-10-16  Bruno Haible  <bruno@clisp.org>
51104
51105         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51106
51107 2006-10-16  Bruno Haible  <bruno@clisp.org>
51108
51109         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51110         * lib/sigprocmask.h: Include <sys/types.h>.
51111         (sigset_t): Use the system's definition if present.
51112
51113 2006-10-17  Eric Blake  <ebb9@byu.net>
51114
51115         * lib/xvasprintf.c (includes): Assume config.h.
51116         * lib/xasprintf.c (includes): Likewise.
51117
51118 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51119
51120         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51121         at least as wide as intmax_t.
51122
51123 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51124
51125         (Imported from Automake.)
51126         * build-aux/gnupload: Update to version 1.1 of directive file.
51127
51128 2006-10-16  Eric Blake  <ebb9@byu.net>
51129
51130         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51131         match Automake 1.10a.
51132
51133 2006-10-14  Bruno Haible  <bruno@clisp.org>
51134
51135         * modules/sigprocmask: New file.
51136         * lib/sigprocmask.h: New file.
51137         * lib/sigprocmask.c: New file.
51138         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51139         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51140         request sigprocmask.o.
51141         (gl_PREREQ_SIGPROCMASK): New macro.
51142         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51143         (Depends-on): Add sigprocmask.
51144         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51145         gt_SIGNALBLOCKING. Test for 'raise' only once.
51146         * lib/fatal-signal.c: Include sigprocmask.h.
51147         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51148         unblock_fatal_signals): Define always.
51149         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51150         sigprocmask.
51151
51152 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51153
51154         Sync from Automake.
51155         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51156         which incorrectly sets the mode of an existing destination
51157         directory.  In some cases the unpatched install-sh could do the
51158         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51159         system.  We hope this is rare in practice, but it's clearly worth
51160         fixing.  Problem reported by Alex Unleashed in
51161         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51162         Also, don't bother to check for -m bugs unless we're using -m;
51163         suggested by Stepan Kasal.
51164
51165 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51166
51167         Sync from Automake.
51168         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51169         `-c' flag, so they appear at the same position as in %FASTDEP%
51170         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51171         which ignores unknown options only after the first non-option.
51172         Bug report against M4 by Nelson H. F. Beebe.
51173
51174 2006-10-13  Jim Meyering  <jim@meyering.net>
51175
51176         Fix a bug in yesterday's change.
51177         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51178         p->fts_statp->st_dev would be used uninitialized.
51179         Ensures that we always call fts_stat on the very first entry.
51180         Miklos Szeredi reported that find -xdev stopped working.
51181
51182 2006-10-12  Bruno Haible  <bruno@clisp.org>
51183
51184         * gnulib-tool (func_get_automake_snippet): Append an automatically
51185         computed EXTRA_DIST augmentation.
51186         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51187         * modules/alloca-opt (Makefile.am): Likewise.
51188         * modules/allocsa (Makefile.am): Likewise.
51189         * modules/arcfour (Makefile.am): Likewise.
51190         * modules/arctwo (Makefile.am): Likewise.
51191         * modules/argmatch (Makefile.am): Likewise.
51192         * modules/argz (Makefile.am): Likewise.
51193         * modules/atexit (Makefile.am): Likewise.
51194         * modules/backupfile (Makefile.am): Likewise.
51195         * modules/byteswap (Makefile.am): Likewise.
51196         * modules/c-strtod (Makefile.am): Likewise.
51197         * modules/c-strtold (Makefile.am): Likewise.
51198         * modules/calloc (Makefile.am): Likewise.
51199         * modules/canon-host (Makefile.am): Likewise.
51200         * modules/canonicalize (Makefile.am): Likewise.
51201         * modules/chdir-long (Makefile.am): Likewise.
51202         * modules/chdir-safer (Makefile.am): Likewise.
51203         * modules/check-version (Makefile.am): Likewise.
51204         * modules/chown (Makefile.am): Likewise.
51205         * modules/cloexec (Makefile.am): Likewise.
51206         * modules/close-stream (Makefile.am): Likewise.
51207         * modules/closeout (Makefile.am): Likewise.
51208         * modules/crc (Makefile.am): Likewise.
51209         * modules/csharpexec (Makefile.am): Likewise.
51210         * modules/cycle-check (Makefile.am): Likewise.
51211         * modules/des (Makefile.am): Likewise.
51212         * modules/dev-ino (Makefile.am): Likewise.
51213         * modules/dirfd (Makefile.am): Likewise.
51214         * modules/dirname (Makefile.am): Likewise.
51215         * modules/dup2 (Makefile.am): Likewise.
51216         * modules/eealloc (Makefile.am): Likewise.
51217         * modules/error (Makefile.am): Likewise.
51218         * modules/euidaccess (Makefile.am): Likewise.
51219         * modules/exclude (Makefile.am): Likewise.
51220         * modules/exitfail (Makefile.am): Likewise.
51221         * modules/fcntl-safer (Makefile.am): Likewise.
51222         * modules/fcntl (Makefile.am): Likewise.
51223         * modules/file-type (Makefile.am): Likewise.
51224         * modules/fileblocks (Makefile.am): Likewise.
51225         * modules/filemode (Makefile.am): Likewise.
51226         * modules/filenamecat (Makefile.am): Likewise.
51227         * modules/fnmatch (Makefile.am): Likewise.
51228         * modules/fopen-safer (Makefile.am): Likewise.
51229         * modules/fpending (Makefile.am): Likewise.
51230         * modules/fprintftime (Makefile.am): Likewise.
51231         * modules/free (Makefile.am): Likewise.
51232         * modules/fsusage (Makefile.am): Likewise.
51233         * modules/ftruncate (Makefile.am): Likewise.
51234         * modules/fts (Makefile.am): Likewise.
51235         * modules/gc-arcfour (Makefile.am): Likewise.
51236         * modules/gc-des (Makefile.am): Likewise.
51237         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51238         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51239         * modules/gc-md4 (Makefile.am): Likewise.
51240         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51241         * modules/gc-sha1 (Makefile.am): Likewise.
51242         * modules/gc (Makefile.am): Likewise.
51243         * modules/getaddrinfo (Makefile.am): Likewise.
51244         * modules/getcwd (Makefile.am): Likewise.
51245         * modules/getdelim (Makefile.am): Likewise.
51246         * modules/getdomainname (Makefile.am): Likewise.
51247         * modules/getgroups (Makefile.am): Likewise.
51248         * modules/gethostname (Makefile.am): Likewise.
51249         * modules/gethrxtime (Makefile.am): Likewise.
51250         * modules/getline (Makefile.am): Likewise.
51251         * modules/getloadavg (Makefile.am): Likewise.
51252         * modules/getlogin_r (Makefile.am): Likewise.
51253         * modules/getndelim2 (Makefile.am): Likewise.
51254         * modules/getopt (Makefile.am): Likewise.
51255         * modules/getpagesize (Makefile.am): Likewise.
51256         * modules/getpass-gnu (Makefile.am): Likewise.
51257         * modules/getpass (Makefile.am): Likewise.
51258         * modules/getsubopt (Makefile.am): Likewise.
51259         * modules/gettime (Makefile.am): Likewise.
51260         * modules/gettimeofday (Makefile.am): Likewise.
51261         * modules/getugroups (Makefile.am): Likewise.
51262         * modules/getusershell (Makefile.am): Likewise.
51263         * modules/glob (Makefile.am): Likewise.
51264         * modules/group-member (Makefile.am): Likewise.
51265         * modules/hard-locale (Makefile.am): Likewise.
51266         * modules/hash (Makefile.am): Likewise.
51267         * modules/hmac-md5 (Makefile.am): Likewise.
51268         * modules/hmac-sha1 (Makefile.am): Likewise.
51269         * modules/human (Makefile.am): Likewise.
51270         * modules/idcache (Makefile.am): Likewise.
51271         * modules/imaxabs (Makefile.am): Likewise.
51272         * modules/imaxdiv (Makefile.am): Likewise.
51273         * modules/inet_ntop (Makefile.am): Likewise.
51274         * modules/inet_pton (Makefile.am): Likewise.
51275         * modules/intprops (Makefile.am): Likewise.
51276         * modules/inttostr (Makefile.am): Likewise.
51277         * modules/inttypes (Makefile.am): Likewise.
51278         * modules/isapipe (Makefile.am): Likewise.
51279         * modules/javaversion (Makefile.am): Likewise.
51280         * modules/lchmod (Makefile.am): Likewise.
51281         * modules/lchown (Makefile.am): Likewise.
51282         * modules/localcharset (Makefile.am): Likewise.
51283         * modules/long-options (Makefile.am): Likewise.
51284         * modules/lstat (Makefile.am): Likewise.
51285         * modules/malloc (Makefile.am): Likewise.
51286         * modules/mathl (Makefile.am): Likewise.
51287         * modules/mbchar (Makefile.am): Likewise.
51288         * modules/md2 (Makefile.am): Likewise.
51289         * modules/md4 (Makefile.am): Likewise.
51290         * modules/md5 (Makefile.am): Likewise.
51291         * modules/memcasecmp (Makefile.am): Likewise.
51292         * modules/memchr (Makefile.am): Likewise.
51293         * modules/memcmp (Makefile.am): Likewise.
51294         * modules/memcoll (Makefile.am): Likewise.
51295         * modules/memcpy (Makefile.am): Likewise.
51296         * modules/memmem (Makefile.am): Likewise.
51297         * modules/memmove (Makefile.am): Likewise.
51298         * modules/mempcpy (Makefile.am): Likewise.
51299         * modules/memrchr (Makefile.am): Likewise.
51300         * modules/memset (Makefile.am): Likewise.
51301         * modules/memxor (Makefile.am): Likewise.
51302         * modules/mkancesdirs (Makefile.am): Likewise.
51303         * modules/mkdir-p (Makefile.am): Likewise.
51304         * modules/mkdir (Makefile.am): Likewise.
51305         * modules/mkdtemp (Makefile.am): Likewise.
51306         * modules/mkstemp (Makefile.am): Likewise.
51307         * modules/mktime (Makefile.am): Likewise.
51308         * modules/modechange (Makefile.am): Likewise.
51309         * modules/mountlist (Makefile.am): Likewise.
51310         * modules/nanosleep (Makefile.am): Likewise.
51311         * modules/obstack (Makefile.am): Likewise.
51312         * modules/openat (Makefile.am): Likewise.
51313         * modules/pagealign_alloc (Makefile.am): Likewise.
51314         * modules/pathmax (Makefile.am): Likewise.
51315         * modules/physmem (Makefile.am): Likewise.
51316         * modules/poll (Makefile.am): Likewise.
51317         * modules/posixtm (Makefile.am): Likewise.
51318         * modules/posixver (Makefile.am): Likewise.
51319         * modules/putenv (Makefile.am): Likewise.
51320         * modules/quote (Makefile.am): Likewise.
51321         * modules/quotearg (Makefile.am): Likewise.
51322         * modules/raise (Makefile.am): Likewise.
51323         * modules/read-file (Makefile.am): Likewise.
51324         * modules/readline (Makefile.am): Likewise.
51325         * modules/readlink (Makefile.am): Likewise.
51326         * modules/readtokens (Makefile.am): Likewise.
51327         * modules/readutmp (Makefile.am): Likewise.
51328         * modules/realloc (Makefile.am): Likewise.
51329         * modules/regex (Makefile.am): Likewise.
51330         * modules/rename-dest-slash (Makefile.am): Likewise.
51331         * modules/rename (Makefile.am): Likewise.
51332         * modules/rijndael (Makefile.am): Likewise.
51333         * modules/rmdir (Makefile.am): Likewise.
51334         * modules/rpmatch (Makefile.am): Likewise.
51335         * modules/safe-read (Makefile.am): Likewise.
51336         * modules/safe-write (Makefile.am): Likewise.
51337         * modules/same-inode (Makefile.am): Likewise.
51338         * modules/same (Makefile.am): Likewise.
51339         * modules/save-cwd (Makefile.am): Likewise.
51340         * modules/savedir (Makefile.am): Likewise.
51341         * modules/setenv (Makefile.am): Likewise.
51342         * modules/settime (Makefile.am): Likewise.
51343         * modules/sha1 (Makefile.am): Likewise.
51344         * modules/sig2str (Makefile.am): Likewise.
51345         * modules/snprintf (Makefile.am): Likewise.
51346         * modules/stat-macros (Makefile.am): Likewise.
51347         * modules/stat-time (Makefile.am): Likewise.
51348         * modules/stdbool (Makefile.am): Likewise.
51349         * modules/stdint (Makefile.am): Likewise.
51350         * modules/stdlib-safer (Makefile.am): Likewise.
51351         * modules/stpcpy (Makefile.am): Likewise.
51352         * modules/stpncpy (Makefile.am): Likewise.
51353         * modules/strcase (Makefile.am): Likewise.
51354         * modules/strcasestr (Makefile.am): Likewise.
51355         * modules/strchrnul (Makefile.am): Likewise.
51356         * modules/strcspn (Makefile.am): Likewise.
51357         * modules/strdup (Makefile.am): Likewise.
51358         * modules/strerror (Makefile.am): Likewise.
51359         * modules/strftime (Makefile.am): Likewise.
51360         * modules/strndup (Makefile.am): Likewise.
51361         * modules/strnlen (Makefile.am): Likewise.
51362         * modules/strpbrk (Makefile.am): Likewise.
51363         * modules/strsep (Makefile.am): Likewise.
51364         * modules/strstr (Makefile.am): Likewise.
51365         * modules/strtod (Makefile.am): Likewise.
51366         * modules/strtoimax (Makefile.am): Likewise.
51367         * modules/strtok_r (Makefile.am): Likewise.
51368         * modules/strtol (Makefile.am): Likewise.
51369         * modules/strtoll (Makefile.am): Likewise.
51370         * modules/strtoul (Makefile.am): Likewise.
51371         * modules/strtoull (Makefile.am): Likewise.
51372         * modules/strtoumax (Makefile.am): Likewise.
51373         * modules/strverscmp (Makefile.am): Likewise.
51374         * modules/sys_socket (Makefile.am): Likewise.
51375         * modules/sys_stat (Makefile.am): Likewise.
51376         * modules/sysexits (Makefile.am): Likewise.
51377         * modules/time_r (Makefile.am): Likewise.
51378         * modules/timegm (Makefile.am): Likewise.
51379         * modules/timespec (Makefile.am): Likewise.
51380         * modules/tmpfile-safer (Makefile.am): Likewise.
51381         * modules/trim (Makefile.am): Likewise.
51382         * modules/unistd-safer (Makefile.am): Likewise.
51383         * modules/unlinkdir (Makefile.am): Likewise.
51384         * modules/unlocked-io (Makefile.am): Likewise.
51385         * modules/userspec (Makefile.am): Likewise.
51386         * modules/utime (Makefile.am): Likewise.
51387         * modules/utimecmp (Makefile.am): Likewise.
51388         * modules/utimens (Makefile.am): Likewise.
51389         * modules/vasnprintf (Makefile.am): Likewise.
51390         * modules/vasprintf (Makefile.am): Likewise.
51391         * modules/vsnprintf (Makefile.am): Likewise.
51392         * modules/xalloc (Makefile.am): Likewise.
51393         * modules/xgetcwd (Makefile.am): Likewise.
51394         * modules/xnanosleep (Makefile.am): Likewise.
51395         * modules/xreadlink (Makefile.am): Likewise.
51396         * modules/xstrtod (Makefile.am): Likewise.
51397         * modules/xstrtol (Makefile.am): Likewise.
51398         * modules/xstrtold (Makefile.am): Likewise.
51399         * modules/yesno (Makefile.am): Likewise.
51400         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51401
51402 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51403
51404         * modules/error (Makefile.am): Distribute files through
51405         EXTRA_DIST, not lib_SOURCES.
51406
51407 2006-10-12  Eric Blake  <ebb9@byu.net>
51408
51409         * modules/error (Makefile.am): Distribute files in /lib.
51410         * modules/obstack (Makefile.am): Likewise.
51411
51412 2006-10-12  Bruno Haible  <bruno@clisp.org>
51413
51414         * modules/acl (Makefile.am): Distribute all files in lib/ through
51415         EXTRA_DIST.
51416         * modules/arcfour (Makefile.am): Likewise.
51417         * modules/arctwo (Makefile.am): Likewise.
51418         * modules/argmatch (Makefile.am): Likewise.
51419         * modules/argz (Makefile.am): Likewise.
51420         * modules/atexit (Makefile.am): Likewise.
51421         * modules/backupfile (Makefile.am): Likewise.
51422         * modules/c-strtod (Makefile.am): Likewise.
51423         * modules/c-strtold (Makefile.am): Likewise.
51424         * modules/calloc (Makefile.am): Likewise.
51425         * modules/canon-host (Makefile.am): Likewise.
51426         * modules/canonicalize (Makefile.am): Likewise.
51427         * modules/chdir-long (Makefile.am): Likewise.
51428         * modules/chdir-safer (Makefile.am): Likewise.
51429         * modules/check-version (Makefile.am): Likewise.
51430         * modules/chown (Makefile.am): Likewise.
51431         * modules/cloexec (Makefile.am): Likewise.
51432         * modules/close-stream (Makefile.am): Likewise.
51433         * modules/closeout (Makefile.am): Likewise.
51434         * modules/crc (Makefile.am): Likewise.
51435         * modules/cycle-check (Makefile.am): Likewise.
51436         * modules/des (Makefile.am): Likewise.
51437         * modules/dirfd (Makefile.am): Likewise.
51438         * modules/dirname (Makefile.am): Likewise.
51439         * modules/dup2 (Makefile.am): Likewise.
51440         * modules/euidaccess (Makefile.am): Likewise.
51441         * modules/exclude (Makefile.am): Likewise.
51442         * modules/exitfail (Makefile.am): Likewise.
51443         * modules/fcntl-safer (Makefile.am): Likewise.
51444         * modules/file-type (Makefile.am): Likewise.
51445         * modules/fileblocks (Makefile.am): Likewise.
51446         * modules/filemode (Makefile.am): Likewise.
51447         * modules/filenamecat (Makefile.am): Likewise.
51448         * modules/fnmatch (Makefile.am): Likewise.
51449         * modules/fopen-safer (Makefile.am): Likewise.
51450         * modules/fpending (Makefile.am): Likewise.
51451         * modules/fprintftime (Makefile.am): Likewise.
51452         * modules/free (Makefile.am): Likewise.
51453         * modules/fsusage (Makefile.am): Likewise.
51454         * modules/ftruncate (Makefile.am): Likewise.
51455         * modules/fts (Makefile.am): Likewise.
51456         * modules/gc (Makefile.am): Likewise.
51457         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51458         * modules/getaddrinfo (Makefile.am): Likewise.
51459         * modules/getcwd (Makefile.am): Likewise.
51460         * modules/getdelim (Makefile.am): Likewise.
51461         * modules/getdomainname (Makefile.am): Likewise.
51462         * modules/getgroups (Makefile.am): Likewise.
51463         * modules/gethostname (Makefile.am): Likewise.
51464         * modules/gethrxtime (Makefile.am): Likewise.
51465         * modules/getline (Makefile.am): Likewise.
51466         * modules/getloadavg (Makefile.am): Likewise.
51467         * modules/getlogin_r (Makefile.am): Likewise.
51468         * modules/getopt (Makefile.am): Likewise.
51469         * modules/getpass (Makefile.am): Likewise.
51470         * modules/getpass-gnu (Makefile.am): Likewise.
51471         * modules/getsubopt (Makefile.am): Likewise.
51472         * modules/gettime (Makefile.am): Likewise.
51473         * modules/gettimeofday (Makefile.am): Likewise.
51474         * modules/getugroups (Makefile.am): Likewise.
51475         * modules/getusershell (Makefile.am): Likewise.
51476         * modules/glob (Makefile.am): Likewise.
51477         * modules/group-member (Makefile.am): Likewise.
51478         * modules/hard-locale (Makefile.am): Likewise.
51479         * modules/hash (Makefile.am): Likewise.
51480         * modules/hmac-md5 (Makefile.am): Likewise.
51481         * modules/hmac-sha1 (Makefile.am): Likewise.
51482         * modules/human (Makefile.am): Likewise.
51483         * modules/idcache (Makefile.am): Likewise.
51484         * modules/imaxabs (Makefile.am): Likewise.
51485         * modules/imaxdiv (Makefile.am): Likewise.
51486         * modules/inet_ntop (Makefile.am): Likewise.
51487         * modules/inet_pton (Makefile.am): Likewise.
51488         * modules/inttostr (Makefile.am): Likewise.
51489         * modules/isapipe (Makefile.am): Likewise.
51490         * modules/lchown (Makefile.am): Likewise.
51491         * modules/long-options (Makefile.am): Likewise.
51492         * modules/lstat (Makefile.am): Likewise.
51493         * modules/malloc (Makefile.am): Likewise.
51494         * modules/mathl (Makefile.am): Likewise.
51495         * modules/mbchar (Makefile.am): Likewise.
51496         * modules/md2 (Makefile.am): Likewise.
51497         * modules/md4 (Makefile.am): Likewise.
51498         * modules/md5 (Makefile.am): Likewise.
51499         * modules/memcasecmp (Makefile.am): Likewise.
51500         * modules/memchr (Makefile.am): Likewise.
51501         * modules/memcmp (Makefile.am): Likewise.
51502         * modules/memcoll (Makefile.am): Likewise.
51503         * modules/memcpy (Makefile.am): Likewise.
51504         * modules/memmem (Makefile.am): Likewise.
51505         * modules/memmove (Makefile.am): Likewise.
51506         * modules/mempcpy (Makefile.am): Likewise.
51507         * modules/memrchr (Makefile.am): Likewise.
51508         * modules/memset (Makefile.am): Likewise.
51509         * modules/memxor (Makefile.am): Likewise.
51510         * modules/mkancesdirs (Makefile.am): Likewise.
51511         * modules/mkdir (Makefile.am): Likewise.
51512         * modules/mkdir-p (Makefile.am): Likewise.
51513         * modules/mkdtemp (Makefile.am): Likewise.
51514         * modules/mkstemp (Makefile.am): Likewise.
51515         * modules/mktime (Makefile.am): Likewise.
51516         * modules/modechange (Makefile.am): Likewise.
51517         * modules/mountlist (Makefile.am): Likewise.
51518         * modules/nanosleep (Makefile.am): Likewise.
51519         * modules/openat (Makefile.am): Likewise.
51520         * modules/pagealign_alloc (Makefile.am): Likewise.
51521         * modules/physmem (Makefile.am): Likewise.
51522         * modules/poll (Makefile.am): Likewise.
51523         * modules/posixtm (Makefile.am): Likewise.
51524         * modules/posixver (Makefile.am): Likewise.
51525         * modules/putenv (Makefile.am): Likewise.
51526         * modules/quote (Makefile.am): Likewise.
51527         * modules/quotearg (Makefile.am): Likewise.
51528         * modules/raise (Makefile.am): Likewise.
51529         * modules/read-file (Makefile.am): Likewise.
51530         * modules/readline (Makefile.am): Likewise.
51531         * modules/readlink (Makefile.am): Likewise.
51532         * modules/readtokens (Makefile.am): Likewise.
51533         * modules/readutmp (Makefile.am): Likewise.
51534         * modules/realloc (Makefile.am): Likewise.
51535         * modules/regex (Makefile.am): Likewise.
51536         * modules/rename (Makefile.am): Likewise.
51537         * modules/rename-dest-slash (Makefile.am): Likewise.
51538         * modules/rijndael (Makefile.am): Likewise.
51539         * modules/rmdir (Makefile.am): Likewise.
51540         * modules/rpmatch (Makefile.am): Likewise.
51541         * modules/safe-read (Makefile.am): Likewise.
51542         * modules/safe-write (Makefile.am): Likewise.
51543         * modules/same (Makefile.am): Likewise.
51544         * modules/save-cwd (Makefile.am): Likewise.
51545         * modules/savedir (Makefile.am): Likewise.
51546         * modules/setenv (Makefile.am): Likewise.
51547         * modules/settime (Makefile.am): Likewise.
51548         * modules/sha1 (Makefile.am): Likewise.
51549         * modules/sig2str (Makefile.am): Likewise.
51550         * modules/snprintf (Makefile.am): Likewise.
51551         * modules/stdlib-safer (Makefile.am): Likewise.
51552         * modules/stpcpy (Makefile.am): Likewise.
51553         * modules/stpncpy (Makefile.am): Likewise.
51554         * modules/strcase (Makefile.am): Likewise.
51555         * modules/strcasestr (Makefile.am): Likewise.
51556         * modules/strchrnul (Makefile.am): Likewise.
51557         * modules/strcspn (Makefile.am): Likewise.
51558         * modules/strdup (Makefile.am): Likewise.
51559         * modules/strerror (Makefile.am): Likewise.
51560         * modules/strftime (Makefile.am): Likewise.
51561         * modules/strndup (Makefile.am): Likewise.
51562         * modules/strnlen (Makefile.am): Likewise.
51563         * modules/strpbrk (Makefile.am): Likewise.
51564         * modules/strsep (Makefile.am): Likewise.
51565         * modules/strstr (Makefile.am): Likewise.
51566         * modules/strtod (Makefile.am): Likewise.
51567         * modules/strtoimax (Makefile.am): Likewise.
51568         * modules/strtok_r (Makefile.am): Likewise.
51569         * modules/strtol (Makefile.am): Likewise.
51570         * modules/strtoll (Makefile.am): Likewise.
51571         * modules/strtoul (Makefile.am): Likewise.
51572         * modules/strtoull (Makefile.am): Likewise.
51573         * modules/strtoumax (Makefile.am): Likewise.
51574         * modules/strverscmp (Makefile.am): Likewise.
51575         * modules/time_r (Makefile.am): Likewise.
51576         * modules/timegm (Makefile.am): Likewise.
51577         * modules/tmpfile-safer (Makefile.am): Likewise.
51578         * modules/unistd-safer (Makefile.am): Likewise.
51579         * modules/unlinkdir (Makefile.am): Likewise.
51580         * modules/userspec (Makefile.am): Likewise.
51581         * modules/utime (Makefile.am): Likewise.
51582         * modules/utimecmp (Makefile.am): Likewise.
51583         * modules/utimens (Makefile.am): Likewise.
51584         * modules/vasnprintf (Makefile.am): Likewise.
51585         * modules/vasprintf (Makefile.am): Likewise.
51586         * modules/vsnprintf (Makefile.am): Likewise.
51587         * modules/xalloc (Makefile.am): Likewise.
51588         * modules/xgetcwd (Makefile.am): Likewise.
51589         * modules/xnanosleep (Makefile.am): Likewise.
51590         * modules/xreadlink (Makefile.am): Likewise.
51591         * modules/xstrtod (Makefile.am): Likewise.
51592         * modules/xstrtol (Makefile.am): Likewise.
51593         * modules/xstrtold (Makefile.am): Likewise.
51594         * modules/yesno (Makefile.am): Likewise.
51595
51596 2006-10-12  Jim Meyering  <jim@meyering.net>
51597
51598         * m4/getloadavg.m4: Revert the change below.
51599
51600         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
51601         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
51602         fail with a symlink, which is what coreutils' ./bootstrap now
51603         creates by default.
51604
51605 2006-10-12  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
51608         mingw.
51609         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
51610         MSVC and mingw explicitly.
51611
51612 2006-10-11  Simon Josefsson  <jas@extundo.com>
51613             Bruno Haible  <bruno@clisp.org>
51614
51615         Add support for multiple gnulib-tool invocations in the scope of a
51616         single configure.ac file.
51617         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
51618         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
51619         with the same contents as the _LIBADD variable.
51620         (func_emit_initmacro_start, func_emit_initmacro_end,
51621         func_emit_initmacro_done): New functions.
51622         (func_import, func_create_testdir): Invoke them. Allow the identifiers
51623         gl_LIBOBJS and gl_LTLIBOBJS.
51624
51625 2006-10-11  Bruno Haible  <bruno@clisp.org>
51626
51627         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
51628         (func_create_testdir): Don't create po/Makefile.am, don't invoke
51629         autoreconf. Instead, invoke autopoint explicitly but move back the
51630         *.m4 files from gnulib.
51631
51632 2006-10-11  Bruno Haible  <bruno@clisp.org>
51633
51634         * gnulib-tool (func_usage): Make module names after --create-testdir
51635         optional.
51636         (func_create_testdir): If no module was specified, use nearly all
51637         modules.
51638
51639 2006-10-12  Jim Meyering  <jim@meyering.net>
51640
51641         Big performance improvement for fts-based tools that use FTS_NOSTAT.
51642         Avoid spurious inode-mismatch problems on non-POSIX file systems.
51643         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
51644         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
51645         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
51646         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
51647         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
51648         (fts_set_stat_required): New function.
51649         (fts_open): Defer the calls to fts_stat, if possible or requested.
51650         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
51651         into fts_stat itself.
51652         (fts_read): Perform any required (deferred) fts_stat call.
51653         (fts_build): Likewise, for the directory we're about to open and read.
51654         In the readdir loop, carefully decide whether each entry will require
51655         an eventual call to fts_stat, using dirent.d_type info if available.
51656         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
51657         a command line argument into this function.  Update all callers.
51658         Map a return value of FTS_DOT to FTS_D for a command line argument.
51659         * modules/fts (Depends-on): Add d-type.  Alphabetize.
51660         Thanks to Miklos Szeredi for his tenacity and for the initial
51661         bug report about "find" failing on a FUSE-based file system.
51662
51663         * lib/fts.c (fts_open): Use consistent indentation.
51664
51665 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51666
51667         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
51668         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
51669         reported by Jim Meyering.  All uses of cache variables renamed
51670         to match Autoconf's.
51671         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
51672         the other one.
51673
51674         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
51675         Fix misspelling in diagnostic.
51676
51677 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51678
51679         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
51680         defined.  Problem reported by Matthew Woehlke.
51681
51682         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
51683         Add support for Tandem NonStop R series.
51684         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
51685         Use new macro.
51686
51687         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
51688         (has_trailing_slash): Omit size arg; all callers changed.
51689         Omit 'inline', since it doesn't help performance and we'd
51690         need to configure it.
51691         Don't count //, ///, etc. as having a trailing slash.
51692         As a side effect, this removes a C99ism reported by Matthew Woehlke.
51693         (rpl_rename_dest_slash): On failure, use rename's errno rather
51694         than (in some cases) an incorrect or junk errno.
51695         Simplify code by removing need to compute length; this does
51696         cause it to make two passes instead of one over the file name,
51697         but it's worth it.
51698
51699         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
51700         change, since Autoconf's version may no longer be appropriate now
51701         that we are using CVS Autoconf's version.  Add support for Tandem.
51702
51703 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51704             Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
51707         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
51708         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
51709         gl_AC_TYPE_LONG_LONG.
51710
51711         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
51712         instead of HAVE_LONG_LONG.
51713         * lib/printf-args.c (printf_fetchargs): Likewise.
51714         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
51715         * lib/vasnprintf.c (VASNPRINTF): Likewise.
51716         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
51717         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
51718         gl_AC_TYPE_LONG_LONG.
51719
51720 2006-10-11  Bruno Haible  <bruno@clisp.org>
51721
51722         * m4/longlong.m4: Add comments.
51723         * m4/ulonglong.m4: Likewise.
51724
51725 2006-10-10  Bruno Haible  <bruno@clisp.org>
51726
51727         Make it possible to #define stpcpy, strdup to aliases.
51728         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
51729         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
51730
51731 2006-10-10  Bruno Haible  <bruno@clisp.org>
51732
51733         Make it possible to #define gcd to an alias.
51734         * lib/gcd.c: Include config.h.
51735
51736 2006-10-10  Bruno Haible  <bruno@clisp.org>
51737
51738         Make it possible to #define c_isascii to an alias.
51739         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
51740         defined. Undefine the macros before defining them, to avoid gcc
51741         warnings.
51742         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
51743         define NO_C_CTYPE_MACROS early.
51744
51745 2006-10-10  Bruno Haible  <bruno@clisp.org>
51746
51747         Make it possible to #define set_program_name to an alias.
51748         * lib/progname.c: Don't undefine set_program_name; instead, undefine
51749         ENABLE_RELOCATABLE early.
51750
51751 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51752
51753         Port to Tandem NSK OSS, which has 64-bit signed int but at most
51754         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
51755         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
51756         More generally, don't assume that 64-bit signed int is available
51757         if unsigned int is, and vice versa.
51758         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
51759         unsigned symbols, not on their signed counterparts.
51760         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
51761         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
51762         (UINT64_C, UINTMAX_C):
51763         Likewise.
51764         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
51765         unsigned counterparts.
51766         (Have_long_long, Unsigned): New macros.
51767         (Int): Renamed from INT.
51768         (strtoimax): Use the new macros.
51769         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
51770         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
51771         * modules/inttypes (inttypes.h): Substitute
51772         HAVE_UNSIGNED_LONG_LONG_INT.
51773         * modules/stdint (stdint.h): Likewise.
51774         (Files): Add m4/ulonglong.m4.
51775
51776 2006-10-10  Bruno Haible  <bruno@clisp.org>
51777
51778         Fix a gcc -Wshadow warning.
51779         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
51780         to 'bucket'.
51781         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
51782         gl_linked_indexof_from_to): Likewise.
51783         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
51784         Likewise.
51785         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
51786         Likewise.
51787         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
51788         Reported by Eric Blake.
51789
51790 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
51791
51792         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
51793         for NetBSD.  Problem reported by Bruno Haible.
51794
51795 2006-10-09  Jim Meyering  <jim@meyering.net>
51796
51797         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
51798         Patch from Bruno Haible.
51799
51800 2006-10-09  Jim Meyering  <jim@meyering.net>
51801
51802         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
51803         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
51804         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
51805
51806 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51807
51808         Don't include <config.h> twice; this doesn't work in some cases,
51809         e.g., when config.h has "#define intmax_t long long int" and
51810         we include <config.h>, <inttypes.h>, <config.h> in that order.
51811         Problem reported by Matthew Woehlke in:
51812         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
51813         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
51814         * lib/fts-cycle.c: Don't include config.h.
51815         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
51816         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
51817         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
51818         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
51819         inttypes.h.
51820         * lib/xstrtoumax.c: Likewise.
51821         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
51822         __strtol and the like, so that this module is more like its siblings.
51823         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
51824         Remove; no longer needed now that we assume gnulib inttypes.h.
51825
51826 2006-10-08  Bruno Haible  <bruno@clisp.org>
51827
51828         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
51829         option.
51830
51831 2006-10-07  Jim Meyering  <jim@meyering.net>
51832
51833         * modules/inttypes (inttypes.h): Revert what seems to have been
51834         an inadvertent part of today's change: use "|", not "/" in the
51835         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
51836
51837 2006-10-07  Bruno Haible  <bruno@clisp.org>
51838
51839         * modules/sublist: New file.
51840
51841 2006-10-07  Bruno Haible  <bruno@clisp.org>
51842
51843         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
51844         * modules/argz (argz.h): Likewise.
51845         * modules/arpa_inet (arpa/inet.h): Likewise.
51846         * modules/byteswap (byteswap.h): Likewise.
51847         * modules/configmake (configmake.h): Likewise.
51848         * modules/fcntl (fcntl.h): Likewise.
51849         * modules/fnmatch (fnmatch.h): Likewise.
51850         * modules/getopt (getopt.h): Likewise.
51851         * modules/glob (glob.h): Likewise.
51852         * modules/inttypes (inttypes.h): Likewise.
51853         * modules/netinet_in (netinet/in.h): Likewise.
51854         * modules/poll (poll.h): Likewise.
51855         * modules/stdbool (stdbool.h): Likewise.
51856         * modules/stdint (stdint.h): Likewise.
51857         * modules/sys_select (sys/select.h): Likewise.
51858         * modules/sys_socket (sys/socket.h): Likewise.
51859         * modules/sys_stat (sys/stat.h): Likewise.
51860         * modules/sysexits (sysexits.h): Likewise.
51861         * modules/unistd (unistd.h): Likewise.
51862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51863         Add a "DO NOT EDIT" comment to the generated file.
51864         (func_import): Likewise for gnulib-comp.m4.
51865
51866 2006-10-07  Bruno Haible  <bruno@clisp.org>
51867
51868         * lib/gl_sublist.h: New file.
51869         * lib/gl_sublist.c: New file.
51870
51871 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
51872
51873         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
51874         name (relative to the original working directory) and the file
51875         name component (relative to the temporary working directory).  All
51876         callers changed.
51877         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
51878         * lib/mkdir-p.c (make_dir_parents): Likewise.
51879         * lib/mkdir-p.h (make_dir_parents): Likewise.
51880
51881 2006-10-06  Eric Blake  <ebb9@byu.net>
51882
51883         Define several macros for use by the clean-temp module.
51884         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
51885         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
51886         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
51887
51888         * lib/clean-temp.h (close_stream_temp): New declaration.
51889         * lib/clean-temp.c (includes): Pull in headers according to what
51890         other modules are in use.
51891         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
51892
51893 2006-10-06  Bruno Haible  <bruno@clisp.org>
51894
51895         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
51896         instead of fopen, fwriteerror.
51897
51898 2006-10-06  Bruno Haible  <bruno@clisp.org>
51899
51900         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
51901         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
51902         int.
51903         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
51904         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
51905         Return an error indicator.
51906         Suggested by Eric Blake.
51907
51908 2006-10-06  Bruno Haible  <bruno@clisp.org>
51909
51910         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
51911         Reported by Eric Blake.
51912
51913 2006-10-06  Bruno Haible  <bruno@clisp.org>
51914
51915         * modules/closeout (Description): Mention stderr too.
51916
51917 2006-10-06  Bruno Haible  <bruno@clisp.org>
51918         and Paul Eggert  <eggert@cs.ucla.edu>
51919
51920         * lib/closeout.c (close_stdout): Also close stderr.
51921         * lib/closeout.h: Update comment.
51922
51923 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
51924
51925         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
51926         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
51927         * lib/dirchownmod.c: Include lchown.h.
51928         * lib/lchown.c: Don't include files that lchown.h now includes.
51929         Don't declare chown, since lchown.h now does that.
51930         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
51931         (lchown): Define to rpl_chown if lchown is declared but
51932         does not exist.  Declare using a prototype if lchown is not
51933         declared.  Add a copyright notice.
51934         * lib/mkstemp.h: Include <unistd.h>.
51935         * lib/openat.c: Include lchown.h.
51936
51937         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
51938         we now test for that separately.
51939         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
51940         rather than O_NOFOLLOW, when testing whether it's possible to
51941         avoid a race condition reliably.
51942         * lib/savewd.c (savewd_chdir): Likewise.
51943
51944         Remove macros that are no longer needed now that stdint.h is
51945         reliable.
51946         * lib/fsusage.c (UINTMAX_MAX): Remove.
51947         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
51948         * lib/utimecmp.c (SIZE_MAX): Remove.
51949
51950         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
51951
51952         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
51953         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
51954         O_NOATIME works.
51955
51956 2006-10-05  Bruno Haible  <bruno@clisp.org>
51957
51958         * lib/gl_list.h (gl_sortedlist_search_from_to,
51959         gl_sortedlist_indexof_from_to): New declarations.
51960         (gl_list_implementation): New fields sortedlist_search_from_to,
51961         sortedlist_indexof_from_to.
51962         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
51963         inline functions.
51964         * lib/gl_list.c (gl_sortedlist_search_from_to,
51965         gl_sortedlist_indexof_from_to): New functions.
51966         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
51967         function.
51968         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
51969         (gl_array_sortedlist_search_from_to): New function.
51970         (gl_array_list_implementation): Update.
51971         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
51972         function.
51973         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
51974         (gl_carray_sortedlist_search_from_to): New function.
51975         (gl_carray_list_implementation): Update.
51976         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
51977         gl_linked_sortedlist_indexof_from_to): New functions.
51978         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51979         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51980         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
51981         gl_tree_sortedlist_indexof_from_to): New functions.
51982         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51983         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51984         Update.
51985         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51986         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
51987         Update.
51988
51989 2006-10-05  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
51992         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
51993         (struct gl_list_implementation): Add fields search_from_to,
51994         indexof_from_to. Remove fields search, indexof.
51995         (gl_list_search): Use the search_from_to method.
51996         (gl_list_search_from, gl_list_search_from_to): New functions.
51997         (gl_list_indexof): Use the indexof_from_to method.
51998         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
51999         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52000         (gl_list_search_from, gl_list_search_from_to): New functions.
52001         (gl_list_indexof): Use the indexof_from_to method.
52002         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52003         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52004         gl_array_indexof. Add start_index, end_index arguments.
52005         (gl_array_search_from_to): Renamed from gl_array_search. Add
52006         start_index, end_index arguments.
52007         (gl_array_remove, gl_array_list_implementation): Update.
52008         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52009         gl_carray_indexof. Add start_index, end_index arguments.
52010         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52011         start_index, end_index arguments.
52012         (gl_carray_remove, gl_carray_list_implementation): Update.
52013         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52014         gl_linked_search. Add start_index, end_index arguments.
52015         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52016         start_index, end_index arguments.
52017         (gl_linked_remove): Update.
52018         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52019         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52020         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52021         field to 'size_t'.
52022         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52023         gl_tree_search. Add start_index, end_index arguments.
52024         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52025         start_index, end_index arguments.
52026         (gl_tree_remove): Update.
52027         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52028         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52029         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52030         function.
52031         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52032         gl_tree_search. Add start_index, end_index arguments.
52033         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52034         start_index, end_index arguments.
52035         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52036         Update.
52037         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52038
52039 2006-10-05  Bruno Haible  <bruno@clisp.org>
52040
52041         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52042
52043         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52044         fwriteerror_temp): New declarations.
52045         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52046         (descriptors): New variable.
52047         (cleanup): First, close the descriptors.
52048         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52049         fclose_temp, fwriteerror_temp): New functions.
52050
52051 2006-10-04  Jim Meyering  <jim@meyering.net>
52052
52053         * lib/fts.c (fts_open): Tiny comment change.
52054
52055 2006-10-04  Bruno Haible  <bruno@clisp.org>
52056
52057         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52058         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52059         gl_LOCK_BODY.
52060         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52061         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52062         gl_LOCK_EARLY_BODY.
52063         (gl_LOCK): Require gl_LOCK_BODY.
52064
52065 2006-10-04  Bruno Haible  <bruno@clisp.org>
52066
52067         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52068         (gl_oset_search_atleast): New declaration.
52069         (struct gl_oset_implementation): Add field 'search_atleast'.
52070         (gl_oset_search_atleast): New inline function.
52071         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52072         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52073         (gl_array_oset_implementation): Update.
52074         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52075         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52076         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52077
52078 2006-10-04  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52081
52082 2006-10-03  Bruno Haible  <bruno@clisp.org>
52083
52084         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52085         from gl_avltreehash_list_implementation.
52086
52087 2006-10-03  Bruno Haible  <bruno@clisp.org>
52088
52089         * lib/gl_oset.c (gl_oset_add): Fix return type.
52090
52091 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52092
52093         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52094
52095 2006-10-02  Eric Blake  <ebb9@byu.net>
52096
52097         * modules/strnlen (Depends-on): Add extensions.
52098
52099 2006-10-02  Eric Blake  <ebb9@byu.net>
52100
52101         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52102         definition in 2.60+.
52103
52104 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52105
52106         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52107         checks.
52108
52109 2006-10-02  Bruno Haible  <bruno@clisp.org>
52110
52111         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52112         to the AUTOMAKE_OPTIONS.
52113         Reported by Jim Meyering.
52114
52115 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52116
52117         Work around bug in Solaris 10 /proc file system:
52118         /proc/self/fd/NNN/.. isn't the parent directory of
52119         the directory whose file descriptor is NNN.  This needs to
52120         be worked around at run time, not compile time, since a
52121         program might be built on Solaris 8, where things work, and
52122         run on Solaris 10.
52123         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52124         to use the following interface instead:
52125         (OPENAT_BUFFER_SIZE): New macro.
52126         (openat_proc_name): New function.
52127         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52128         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52129         Likewise.
52130         * lib/openat-proc.c: New file.
52131         * modules/openat (Files): Add lib/openat-proc.c.
52132         (Depends-on): Add same-inode, stdbool.
52133         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52134
52135 2006-09-29  Bruno Haible  <bruno@clisp.org>
52136
52137         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52138         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52139         argument. Set stdout_closed before testing for ferror, not after.
52140         (fwriteerror, fwriteerror_no_ebadf): New functions.
52141
52142 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52143
52144         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52145
52146 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52147
52148         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52149         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52150
52151 2006-09-28  Jim Meyering  <jim@meyering.net>
52152
52153         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52154         Include <unistd.h>.
52155
52156 2006-09-28  Bruno Haible  <bruno@clisp.org>
52157
52158         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52159         * modules/linkedhash-list (Depends-on): Likewise.
52160         * modules/rbtreehash-list (Depends-on): Likewise.
52161
52162 2006-09-28  Bruno Haible  <bruno@clisp.org>
52163
52164         * lib/strndup.h: Simplify the redefinition of strndup.
52165         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52166         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52167
52168 2006-09-28  Bruno Haible  <bruno@clisp.org>
52169
52170         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52171         * lib/gl_linkedhash_list.c: Likewise.
52172         * lib/gl_rbtreehash_list.c: Likewise.
52173
52174 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52175
52176         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52177         getaddrinfo.
52178
52179         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52180         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52181         it causes <stdio_ext.h> to cause a compile-time error.
52182         Problem reported by Nelson H. F. Beebe.
52183         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52184         of HAVE_DECL___PENDING.
52185
52186         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52187         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52188         declaration.
52189
52190 2006-09-27  Jim Meyering  <jim@meyering.net>
52191
52192         This file could end up with a definition for a function
52193         named __strndup, rather than rpl_strndup on a system with
52194         incomplete weak_alias support.
52195         * lib/strndup.c (strndup): Rename from __strndup.
52196         Remove #defines that used to map __strndup to strndup.
52197         Don't use K&R prototypes.
52198         Remove LIBC-related code, since this file is not sync'd with glibc.
52199         * lib/strndup.h: Revamp, accordingly.
52200         * m4/strndup.m4: Modernize.
52201
52202 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * modules/savewd (Depends-on): Add 'raise'.
52205         * lib/savewd.c: Include <signal.h>, for 'raise'.
52206
52207 2006-09-26  Jim Meyering  <jim@meyering.net>
52208
52209         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52210         when we detect Darwin 8.7.0's acl_get_file bug.
52211         Rearrange to perform the new (below) run-test while $LIBS
52212         contains any acl-related library.  Set USE_ACL at the end.
52213         (gl_ACL_GET_FILE): New function.
52214
52215 2006-09-26  Eric Blake  <ebb9@byu.net>
52216
52217         * lib/verror.c: Include <config.h> unconditionally.
52218
52219 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52220
52221         * modules/clock-time (Maintainer): Add self.
52222         * modules/getlogin_r (Depends-on): Add extensions.
52223
52224 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52225
52226         * modules/clock-time: New module.
52227         * modules/nanosleep (Depends-on): Add clock-time.
52228         * modules/gethrxtime (Depends-on): Likewise.
52229         * modules/gettime (Depends-on): Likewise.
52230         * modules/settime (Depends-on): Likewise.
52231
52232         * modules/fts-lgpl: Depend on openat.
52233         * modules/mkancesdirs: Depend on savewd.
52234         * modules/mkdir-p: Likewise.
52235
52236 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52237
52238         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52239
52240         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52241         `gl_have_arbitrary_file_name_length_limit' to
52242         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52243         actually works between configure runs.
52244
52245 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52246             Bruno Haible  <bruno@clisp.org>
52247
52248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52249
52250 2006-09-25  Jim Meyering  <jim@meyering.net>
52251
52252         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52253         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52254
52255 2006-09-25  Eric Blake  <ebb9@byu.net>
52256
52257         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52258         exec's in 2006-09-18 patch when shuffling fds.
52259
52260 2006-09-25  Bruno Haible  <bruno@clisp.org>
52261
52262         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52263         Reported by Jim Meyering.
52264
52265 2006-09-24  Jim Meyering  <jim@meyering.net>
52266
52267         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52268         compare a pointer against a literal "0".  That caused failures with
52269         at least HP-UX's hpcc.
52270
52271 2006-09-22  Simon Josefsson  <jas@extundo.com>
52272
52273         * modules/gc-sha1:
52274         * modules/gc-md4:
52275         * modules/gc-hmac-sha1:
52276         * modules/gc-hmac-md5:
52277         * modules/gc-des:
52278         * modules/gc-arcfour: Distribute more files.
52279
52280 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52281
52282         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52283         (gl_linked_iterator_from_to): Initialize struct completely.
52284         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52285         (gl_tree_iterator_from_to): Likewise
52286         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52287         * lib/gl_array_list.c [lint] (gl_array_iterator)
52288         (gl_array_iterator_from_to): Likewise.
52289         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52290         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52291         (gl_carray_iterator_from_to): Likewise.
52292
52293         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52294         * lib/md4.c (md4_process_block): Remove unused variable.
52295         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52296         parentheses for clarity.
52297
52298 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52299
52300         * modules/bison-i18n (Depends-on): Add gettext.
52301
52302 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52303
52304         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52305         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52306         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52307         also add missing comma that caused broken test.
52308         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52309         stdlib.h, for `abort'.
52310         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52311         variables.
52312         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52313         include unistd.h if present, for `rmdir'.
52314         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52315         variables.
52316         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52317         in the process include standard headers for prototypes.
52318         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52319         gets declared on GNU/Linux.
52320         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52321         unistd.h, for `rmdir'.
52322         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52323
52324         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52325         always true.
52326         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52327
52328         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52329
52330 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52331
52332         * gnulib-tool (func_version): Create output all at once.  This
52333         may help avoid triggering unnecessary SIGPIPEs, and at any
52334         rate it doesn't hurt.
52335
52336 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52337             Bruno Haible  <bruno@clisp.org>
52338
52339         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
52340         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52341         * m4/signed.m4 (bh_C_SIGNED): Likewise.
52342
52343         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
52344         (gl_FUNC_VASPRINTF): Invoke it.
52345
52346 2006-09-22  Bruno Haible  <bruno@clisp.org>
52347
52348         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
52349         getloadavg.c as first argument.
52350
52351 2006-09-22  Bruno Haible  <bruno@clisp.org>
52352
52353         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
52354         at the beginning of the gl_INIT macro.
52355         * modules/getloadavg (configure.ac): Pass $gl_source_base to
52356         gl_GETLOADAVG.
52357
52358 2006-09-22  Bruno Haible  <bruno@clisp.org>
52359
52360         * gnulib-tool (func_create_megatestdir): Don't include the config-h
52361         module.
52362         Suggested by Ralf Wildenhues.
52363
52364 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52365
52366         Import this patch from libc:
52367
52368         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52369
52370         * lib/regex_internal.c (re_string_reconstruct): Handle
52371         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52372         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52373         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52374         re_string_context_at.
52375
52376         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52377         now requires it.
52378         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52379         gl_REGEX now does it for us.
52380         (gl_REGEX): Add test taken from
52381         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52382
52383         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52384         Check that large offsets work.  Modernize Autoconf usages.
52385         Prefer "yes" to mean a good thing rather than a bad.
52386         Don't put "#define mkstemp" in config.h, as this might interfere
52387         with standard system headers that "#define mkstemp mkstemp64".
52388
52389         * modules/mkstemp (Depends-on): Add extensions, so that
52390         mkstemp is visible on some platforms.
52391         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52392         (Include): Change to "mkstemp.h" from <stdlib.h>.
52393         (Files): Add mkstemp.h.
52394
52395         * lib/mkstemp.h: New file, since some standard headers
52396         #define mkstemp.
52397         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52398         Include "mkstemp.h".
52399         Make the _LIBC code resemble glibc original more,
52400         e.g., use K&R style.
52401         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52402         (mkstemp): Remove, since mkstemp.h does this for us.
52403         * lib/stdlib--.h: Include mkstemp.h.
52404
52405         Import this patch from libc:
52406
52407         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52408
52409         * lib/tempname.c (__gen_tempname): Change attempts_min
52410         into a macro.  Use preprocessor to decide how to initialize
52411         attempts [Coverity CID 67].
52412
52413 2006-09-20  Bruno Haible  <bruno@clisp.org>
52414
52415         * lib/mkdtemp.c: Import from libc.
52416         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52417                 * sysdeps/posix/tempname.c (__gen_tempname): Change
52418                 attempts_min into a macro.  Use preprocessor to decide how to
52419                 initialize attempts [Coverity CID 67].
52420         2001-11-27  Paul Eggert  <eggert@twinsun.com>
52421                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
52422                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
52423
52424 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52425
52426         * gnulib-tool (func_exit): New function, to allow to pass the
52427         exit status portably through the trap.  Use everywhere.
52428         (--help, --version): Signal a write error.
52429         (trap): catch SIGPIPE, for write errors.
52430         Exit at the end of the trap, with the correct exit status.
52431
52432 2006-09-19  Karl Berry  <karl@gnu.org>
52433
52434         * doc/gnulib.texi: note about the license texinfo files.
52435
52436 2006-09-19  Eric Blake  <ebb9@byu.net>
52437
52438         * gnulib-tool: Avoid space-tab.
52439
52440 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52441
52442         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
52443         that prevented coreutils 6.1 from building.  Problem reported
52444         by Petter Reinholdtsen.
52445
52446 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52447
52448         * gnulib-tool (avoidlist): Fix typo that broke options like
52449         --avoid=lock that are used by coreutils bootstrap.
52450
52451 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
52452
52453         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
52454         more systematically.
52455
52456 2006-09-18  Jim Meyering  <jim@meyering.net>
52457
52458         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
52459
52460 2006-09-18  Bruno Haible  <bruno@clisp.org>
52461
52462         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
52463
52464 2006-09-18  Bruno Haible  <bruno@clisp.org>
52465
52466         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
52467         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
52468         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
52469         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
52470         * m4/gettext.m4: Require autoconf >= 2.52.
52471         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
52472         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
52473         of gl_cv_header_inttypes_h.
52474
52475 2006-09-18  Bruno Haible  <bruno@clisp.org>
52476
52477         * lib/javaversion.c: Include configmake.h.
52478
52479 2006-09-18  Bruno Haible  <bruno@clisp.org>
52480
52481         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
52482         avoid that the while loops be executed in a subshell.
52483
52484 2006-09-18  Bruno Haible  <bruno@clisp.org>
52485
52486         * MODULES.html.sh (func_module): Break long lines.
52487         Suggested by Bruce Korb <bkorb@gnu.org>.
52488
52489 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52490
52491         Speed up by a factor of 1.12.
52492         * gnulib-tool (nl): New variable.
52493         (func_import): Rewrite include directive extraction to only read each
52494         directive once.
52495
52496 2006-09-17  Bruno Haible  <bruno@clisp.org>
52497
52498         * modules/javaversion (Makefile.am): Remove DEFS setting.
52499         (Depends-on): Add configmake, for PKGDATADIR definition.
52500
52501 2006-09-17  Bruno Haible  <bruno@clisp.org>
52502
52503         * gnulib-tool (func_create_testdir): Rewrite all files at once.
52504
52505 2006-09-17  Bruno Haible  <bruno@clisp.org>
52506
52507         * gnulib-tool (func_append): New function, stolen from libtool.m4.
52508         (func_modules_transitive_closure, func_modules_add_dummy,
52509         func_modules_to_filelist, func_import, func_create_testdir,
52510         func_create_megatestdir, ...): Use it wherever possible.
52511         Suggested by Ralf Wildenhues.
52512
52513 2006-09-16  Karl Berry  <karl@gnu.org>
52514
52515         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
52516         to avoid sectioning errors.
52517         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
52518         [ifinfo]: blank line after @center-ed titles.
52519         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
52520         Spell FSF address consistently with others.
52521         (These changes approved by rms.)
52522
52523 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52524
52525         Speed up by a factor of 1.61.
52526         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
52527         already checked module names again.
52528
52529 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52530
52531         Speed up by a factor of 1.13.
52532         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
52533         for new_files, and the input to func_add_or_update.
52534
52535 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52536
52537         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
52538         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
52539
52540 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52541
52542         * modules/mkancesdirs (Depends-on): Add fcntl.
52543         * modules/savewd: New file.
52544         * MODULES.html.sh (File system functions): Add savewd.
52545
52546         * modules/configmake (Makefile.am): Add support for the
52547         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
52548
52549 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52550
52551         * m4/savewd.m4: New file.
52552
52553 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52554
52555         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
52556         (dirchownmod): New arg FD.  All callers changed.
52557         Use FD rather than opening the directory ourself, as opening is
52558         now the caller's responsibility.
52559         * lib/dirchownmod.h: Likewise.
52560         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
52561         hosts that require <sys/types.h> before <sys/stat.h>.  Include
52562         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
52563         (test_dir): Remove.
52564         (mkancesdirs): Return length of prefix of FILE that has already
52565         been made, or -2 if there is a child doing the work.  Redo
52566         algorithm so that it is O(N) rather than O(N**2).  Optimize away
52567         ".", and treat ".." specially since it might stray back into
52568         already-created areas.  Use a subprocess if necessary.  New arg
52569         WD; all users changed.  MAKE_DIR function should now return 1
52570         if it creates a directory that is not readable.  Return -2 if
52571         a child process is spun off.
52572         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
52573         Adjust signature to match code.
52574         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
52575         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
52576         all users changed.
52577         * lib/savewd.c, lib/savewd.h: New files.
52578
52579 2006-09-15  Jim Meyering  <jim@meyering.net>
52580
52581         * modules/rename-dest-slash: New module.
52582         * MODULES.html.sh (posix_compat): Add it here.
52583
52584         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
52585
52586 2006-09-15  Jim Meyering  <jim@meyering.net>
52587
52588         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
52589         file.
52590
52591         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
52592
52593 2006-09-15  Jim Meyering  <jim@meyering.net>
52594
52595         * lib/rename-dest-slash.c (has_trailing_slash): Use
52596         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
52597         (rpl_rename_dest_slash): Perform the cheaper trailing slash
52598         test before testing whether SRC is a directory.
52599         Suggestions from Bruno Haible.
52600
52601         Avoid a warning about an unused variable.
52602         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
52603         into the #ifdef block where it's used.
52604
52605         * lib/rename-dest-slash.c: New file.
52606
52607 2006-09-14  Bruno Haible  <bruno@clisp.org>
52608
52609         * lib/allocsa.c: Include <config.h> unconditionally.
52610         * lib/asnprintf.c: Likewise.
52611         * lib/asprintf.c: Likewise.
52612         * lib/c-strcasecmp.c: Likewise.
52613         * lib/c-strcasestr.c: Likewise.
52614         * lib/c-strncasecmp.c: Likewise.
52615         * lib/c-strstr.c: Likewise.
52616         * lib/classpath.c: Likewise.
52617         * lib/clean-temp.c: Likewise.
52618         * lib/concatpath.c: Likewise.
52619         * lib/copy-file.c: Likewise.
52620         * lib/csharpcomp.c: Likewise.
52621         * lib/csharpexec.c: Likewise.
52622         * lib/execute.c: Likewise.
52623         * lib/fatal-signal.c: Likewise.
52624         * lib/findprog.c: Likewise.
52625         * lib/fwriteerror.c: Likewise.
52626         * lib/gl_array_list.c: Likewise.
52627         * lib/gl_array_oset.c: Likewise.
52628         * lib/gl_avltree_list.c: Likewise.
52629         * lib/gl_avltree_oset.c: Likewise.
52630         * lib/gl_avltreehash_list.c: Likewise.
52631         * lib/gl_carray_list.c: Likewise.
52632         * lib/gl_linked_list.c: Likewise.
52633         * lib/gl_linkedhash_list.c: Likewise.
52634         * lib/gl_list.c: Likewise.
52635         * lib/gl_oset.c: Likewise.
52636         * lib/gl_rbtree_list.c: Likewise.
52637         * lib/gl_rbtree_oset.c: Likewise.
52638         * lib/gl_rbtreehash_list.c: Likewise.
52639         * lib/imaxabs.c: Likewise.
52640         * lib/imaxdiv.c: Likewise.
52641         * lib/javacomp.c: Likewise.
52642         * lib/javaexec.c: Likewise.
52643         * lib/javaversion.c: Likewise.
52644         * lib/linebreak.c: Likewise.
52645         * lib/localcharset.c: Likewise.
52646         * lib/lock.c: Likewise.
52647         * lib/mbchar.c: Likewise.
52648         * lib/mbswidth.c: Likewise.
52649         * lib/mkdtemp.c: Likewise.
52650         * lib/pipe.c: Likewise.
52651         * lib/printf-args.c: Likewise.
52652         * lib/printf-parse.c: Likewise.
52653         * lib/progname.c: Likewise.
52654         * lib/progreloc.c: Likewise.
52655         * lib/readlink.c: Likewise.
52656         * lib/sh-quote.c: Likewise.
52657         * lib/stpcpy.c: Likewise.
52658         * lib/stpncpy.c: Likewise.
52659         * lib/strcasecmp.c: Likewise.
52660         * lib/strcasestr.c: Likewise.
52661         * lib/strcspn.c: Likewise.
52662         * lib/striconv.c: Likewise.
52663         * lib/strncasecmp.c: Likewise.
52664         * lib/strnlen1.c: Likewise.
52665         * lib/strstr.c: Likewise.
52666         * lib/strtok_r.c: Likewise.
52667         * lib/tls.c: Likewise.
52668         * lib/tmpdir.c: Likewise.
52669         * lib/unicodeio.c: Likewise.
52670         * lib/unsetenv.c: Likewise.
52671         * lib/vasnprintf.c: Likewise.
52672         * lib/vasprintf.c: Likewise.
52673         * lib/wait-process.c: Likewise.
52674         * lib/xallocsa.c: Likewise.
52675         * lib/xsetenv.c: Likewise.
52676         * lib/xstriconv.c: Likewise.
52677
52678 2006-09-13  Simon Josefsson  <jas@extundo.com>
52679
52680         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
52681         that internally, suggested by Ralf Wildenhues
52682         <Ralf.Wildenhues@gmx.de>.
52683
52684 2006-09-13  Simon Josefsson  <jas@extundo.com>
52685
52686         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
52687         @LIBOBJS@.
52688         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52689
52690 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52691
52692         * lib/_fpending.c: Include <config.h> unconditionally, since we no
52693         longer worry about uses that don't define HAVE_CONFIG_H.
52694         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
52695         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
52696         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
52697         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
52698         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
52699         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
52700         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
52701         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
52702         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
52703         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
52704         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
52705         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
52706         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
52707         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
52708         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
52709         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
52710         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
52711         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
52712         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
52713         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
52714         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
52715         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
52716         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
52717         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
52718         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
52719         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
52720         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
52721         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
52722         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
52723         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
52724         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
52725         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
52726         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
52727         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
52728         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
52729         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
52730         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
52731         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
52732         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
52733         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
52734         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
52735         Likewise.
52736
52737 2006-09-13  Eric Blake  <ebb9@byu.net>
52738
52739         * lib/getopt.c: Fix typo in last commit.
52740
52741 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52742
52743         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
52744         dgettext.
52745
52746 2006-09-12  Jim Meyering  <jim@meyering.net>
52747
52748         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
52749         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
52750         Reported by Nelson H. F. Beebe.
52751
52752 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52753
52754         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
52755         program_invocation_name and program_invocation_short_name are
52756         initialized.
52757         * lib/argp-namefrob.h: Move declarations of program_invocation_name
52758         and program_invocation_short_name to argp.h, so they are visible
52759         to user programs.
52760         * lib/argp.h: Likewise
52761
52762 2006-09-10  Bruno Haible  <bruno@clisp.org>
52763
52764         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52765         m4/inttypes_h.m4, m4/uintmax_t.m4.
52766
52767 2006-09-10  Bruno Haible  <bruno@clisp.org>
52768
52769         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
52770         gl_AC_TYPE_UINTMAX_T.
52771
52772 2006-09-10  Bruno Haible  <bruno@clisp.org>
52773
52774         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
52775
52776 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52777
52778         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
52779         convention.  Text proposed by Bruno Haible.
52780         (struct argp_option): Document the use of N_() wrappers.
52781
52782         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
52783         '\v', and translate the two parts separately, instead of feeding
52784         the whole string to gettext.  This allows to exclude
52785         '\v' from the strings visible to the translator by writing doc
52786         strings as N_("..") "\v" N_("..").
52787
52788 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
52789
52790         * config/srclist.txt: Undo latest change; the bug was fixed.
52791
52792 2006-09-09  Bruno Haible  <bruno@clisp.org>
52793
52794         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
52795         assignments if building a library without libtool.
52796         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
52797         in func_emit_lib_Makefile_am.
52798         (func_import): When building a static library libfoo.a, arrange to
52799         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
52800         (func_create_testdir): Likewise.
52801         * modules/gc (configure.ac, Makefile.am): If building statically,
52802         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
52803         * modules/iconvme (configure.ac, Makefile.am): Likewise.
52804         * modules/striconv (configure.ac, Makefile.am): Likewise.
52805         Based on a suggestion by Ralf Wildenhues.
52806
52807 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52808
52809         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52810         Check for unistd.h too, since Autoconf doesn't assume POSIX.
52811         Also:
52812
52813         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52814         Add year_2050_test to catch glibc bug 2821
52815         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52816
52817         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52818         Prefer #ifdef to #if.
52819
52820         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
52821         Return from 'main' instead of calling 'exit'.
52822
52823 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52824
52825         * lib/mktime.c (guess_time_tm): Fix bug where mktime
52826         returned the maximum time_t value rather than (time_t) -1.
52827         Problem originally reported by William Bardwell
52828         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52829
52830         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52831         Moved to here ...
52832         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52833         ... from here.
52834
52835 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52836
52837         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
52838         2821 is fixed.
52839
52840 2006-09-08  Jim Meyering  <jim@meyering.net>
52841
52842         Don't make generated files read-only.  That would bother too many
52843         people.  However, do retain the ability to work when targets are
52844         read-only: remove the destination and temporary files before writing
52845         them (when generated via sed or echo), or by using the -f option for
52846         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
52847         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52848         * modules/byteswap, modules/configmake, modules/fcntl:
52849         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52850         * modules/localcharset, modules/netinet_in, modules/poll:
52851         * modules/stdbool, modules/stdint, modules/sys_select:
52852         * modules/sys_socket, modules/sys_stat, modules/sysexits:
52853
52854 2006-09-08  Jim Meyering  <jim@meyering.net>
52855
52856         Avoid new build failure on FreeBSD 6.0.
52857         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
52858         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
52859         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
52860
52861 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52862
52863         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
52864
52865 2006-09-07  Jim Meyering  <jim@meyering.net>
52866
52867         Fix global typo in last change: use chmod u-w, not chmod u-x.
52868         Spotted by Paul Eggert and Bruce Korb.
52869         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52870         * modules/byteswap, modules/configmake, modules/fcntl:
52871         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52872         * modules/localcharset, modules/netinet_in, modules/poll:
52873         * modules/stdbool, modules/stdint, modules/sys_select:
52874         * modules/sys_socket, modules/sys_stat, modules/sysexits:
52875
52876 2006-09-06  Jim Meyering  <jim@meyering.net>
52877
52878         Make generated files be read-only.
52879         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
52880         Ensure that each generated file is now read-only.
52881         * modules/argz: Likewise.
52882         * modules/arpa_inet: Likewise.
52883         * modules/byteswap: Likewise.
52884         * modules/configmake: Likewise.
52885         * modules/fcntl: Likewise.
52886         * modules/fnmatch: Likewise.
52887         * modules/getopt: Likewise.
52888         * modules/glob: Likewise.
52889         * modules/inttypes: Likewise.
52890         * modules/netinet_in: Likewise.
52891         * modules/poll: Likewise.
52892         * modules/stdbool: Likewise.
52893         * modules/stdint: Likewise.
52894         * modules/sys_select: Likewise.
52895         * modules/sys_socket: Likewise.
52896         * modules/sys_stat: Likewise.
52897         * modules/sysexits: Likewise.
52898         * modules/localcharset: Same as above, but continue using temporary
52899         file named "t-$@" (why different?) rather than the "$@-t" used
52900         everywhere else.
52901
52902         * modules/sysexits (Makefile.am): Replace literal occurrences
52903         of "sysexit.h" more readable, and more consistent, "$@".
52904
52905 2006-09-06  Bruno Haible  <bruno@clisp.org>
52906
52907         * modules/striconv: New file.
52908         * modules/xstriconv: New file.
52909         * MODULES.html.sh (Internationalization functions): Add striconv,
52910         xstriconv.
52911
52912 2006-09-06  Bruno Haible  <bruno@clisp.org>
52913
52914         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
52915         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
52916         not using libtool correctly.
52917
52918 2006-09-06  Bruno Haible  <bruno@clisp.org>
52919
52920         * lib/striconv.h: New file.
52921         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
52922         iconvstring.c.
52923         * lib/xstriconv.h: New file.
52924         * lib/xstriconv.c: New file.
52925
52926 2006-09-06  Bruno Haible  <bruno@clisp.org>
52927
52928         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52929         lib_..._LDFLAGS.
52930
52931 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52932
52933         * lib/argz_.h: Sync from Libtool.
52934
52935         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
52936                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52937
52938         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
52939
52940 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
52941
52942         * modules/trim: New file.
52943
52944 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
52945
52946         * lib/trim.h: New file.
52947         * lib/trim.c: New file.
52948
52949 2006-09-05  Bruno Haible  <bruno@clisp.org>
52950
52951         * MODULES.html.sh (String handling): Add trim.
52952
52953 2006-09-04  Karl Berry  <karl@gnu.org>
52954
52955         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
52956         until next release.
52957
52958 2006-09-03  Bruno Haible  <bruno@clisp.org>
52959
52960         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
52961         correctly.
52962
52963 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52964
52965         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
52966         not gl_GETLOADAVG.  Omit unneeded semicolons.
52967         Problems reported by Ralf Wildenhues in
52968         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
52969         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
52970         at the end, which is the usual gnulib style.
52971
52972         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
52973         of doing all the work ourselves.
52974         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
52975         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
52976
52977 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52978
52979         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
52980         Problem reported by Ralf Wildenhues in
52981         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
52982
52983         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
52984         HAVE_STRUCT_STATFS_F_FSTYPENAME.
52985
52986 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52987
52988         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
52989         yesterday's patch by changing test -n to test -z.
52990
52991 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52992
52993         * modules/getloadavg (Files): Add m4/getloadavg.m4.
52994         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
52995         the former is now obsolescent.
52996
52997         * modules/chdir-long (Depends-on): Add fcntl.
52998
52999 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53000
53001         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53002         obsolescent, and programs should use gnulib instead.
53003         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53004         but with prefixes changed.
53005
53006 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53007
53008         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53009         or stdbool.h, because they might not exist while configuring.
53010
53011         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53012         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53013         does that for us.
53014         (O_DIRECTORY): Remove.
53015
53016 2006-08-31  Eric Blake  <ebb9@byu.net>
53017
53018         * gnulib-tool: Don't let emacs change spaces to TAB.
53019
53020 2006-08-31  Bruno Haible  <bruno@clisp.org>
53021
53022         * gnulib-tool: When calling func_import more than once, do it in a
53023         subshell.
53024         Reported by Eric Blake <ebb9@byu.net>.
53025
53026 2006-08-31  Bruno Haible  <bruno@clisp.org>
53027
53028         * gnulib-tool (nl): Remove variable.
53029         (sed_transform_lib_file): Use more robust test for config-h module.
53030         (func_import): Fix typo in 2006-08-25 patch.
53031
53032 2006-08-31  Bruno Haible  <bruno@clisp.org>
53033
53034         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53035         specified, augment Makefile.am variables instead of assigning them.
53036
53037 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53038
53039         Work around a bug in both the Linux and SunOS 64-bit kernels:
53040         nanosleep mishandles sleeps for longer than 2**31 seconds.
53041         Problem reported by Frank v Waveren in
53042         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53043         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53044         Check for nanosleep bug.
53045         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53046
53047 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53048
53049         Work around a bug in both the Linux and SunOS 64-bit kernels:
53050         nanosleep mishandles sleeps for longer than 2**31 seconds.
53051         Problem reported by Frank v Waveren in
53052         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53053         * lib/nanosleep.c (BILLION): New constant.
53054         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53055         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53056         implementation.
53057
53058 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53059
53060         * modules/nanosleep (Depends-on): Add gettime.
53061
53062 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53063         and Simon Josefsson  <jas@extundo.com>
53064         and Oskar Liljeblad  <oskar@osk.mine.nu>
53065
53066         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53067         * gnulib-tool (func_import): New license type 'unmodifiable license
53068         text'.
53069         * modules/fdl: Use it.  Longer description.
53070         * module/gpl, module/lgpl: New files.
53071
53072 2006-08-30  Jim Meyering  <jim@meyering.net>
53073
53074         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53075         shadowing the parameter.
53076
53077 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53078
53079         Sync from Libtool:
53080
53081         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53082
53083         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53084         sharing with gnulib.  Report by Eric Blake.
53085
53086 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53087
53088         * modules/isapipe: New file.
53089         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53090
53091 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53092
53093         * modules/configmake (Makefile.am): Add a comment, and omit
53094         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53095         by Bruno Haible.
53096
53097 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53098
53099         * m4/isapipe.m4: New file.
53100
53101 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53102
53103         * lib/isapipe.c, lib/isapipe.h: New files.
53104
53105 2006-08-29  Jim Meyering  <jim@meyering.net>
53106
53107         * modules/configmake (Makefile.am): Make configmake.h depend on
53108         Makefile.  Otherwise, a stale configmake.h could hang around.
53109
53110 2006-08-29  Eric Blake  <ebb9@byu.net>
53111
53112         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53113         resolution of upstream bug 3044.
53114
53115 2006-08-29  Bruno Haible  <bruno@clisp.org>
53116
53117         * modules/localcharset (Depends-on): Add configmake.
53118         (Makefile.am): Remove setting of LIBDIR through DEFS.
53119
53120 2006-08-29  Bruno Haible  <bruno@clisp.org>
53121
53122         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53123         defined.
53124
53125 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53126
53127         * modules/fcntl: New file.
53128         * modules/chdir-safer (Depends-on): Add fcntl.
53129         * modules/fts: Likewise.
53130         * modules/mkdir-p: Likewise.
53131
53132         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53133         This undoes the most recent change, since we're now addressing the
53134         problem in a different way.
53135
53136         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53137         into output, since the output might be called Makefile.am even
53138         if $makefile_name is something different.
53139         (func_import): Use $makefile_am rather than
53140         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53141         empty.
53142
53143         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53144
53145 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53146
53147         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53148         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53149         recent change to stdint.m4, since we're now addressing the problem in a
53150         different way.
53151
53152 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53153
53154         * m4/fcntl_h.m4: New file.
53155
53156 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53157
53158         * lib/fcntl_.h: New file.
53159         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53160         the fcntl module.
53161         * lib/dirchownmod.c: Likewise.
53162         * lib/fts.c: Likewise.
53163
53164         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53165         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53166         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53167         just before including <inttypes.h>, to avoid circular inclusion.
53168
53169 2006-08-28  Jim Meyering  <jim@meyering.net>
53170
53171         * doc/visibility.texi: Actually read and correct the grammar of the
53172         sentence affected by yesterday's change.
53173
53174 2006-08-28  Eric Blake  <ebb9@byu.net>
53175
53176         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53177         needs wrapper.
53178
53179 2006-08-28  Eric Blake  <ebb9@byu.net>
53180
53181         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53182
53183 2006-08-28  Eric Blake  <ebb9@byu.net>
53184
53185         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53186
53187 2006-08-28  Bruno Haible  <bruno@clisp.org>
53188
53189         * modules/c-strstr: New file, from GNU gettext.
53190         * MODULES.html.sh (String handling): Add c-strstr.
53191
53192 2006-08-28  Bruno Haible  <bruno@clisp.org>
53193
53194         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53195         macros.
53196         Reported by Eric Blake.
53197
53198 2006-08-28  Bruno Haible  <bruno@clisp.org>
53199
53200         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53201         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53202         * lib/vasprintf.c: Include errno.h, limits.h.
53203         (EOVERFLOW): New fallback definition.
53204         (vasprintf): Test here whether the string length is > INT_MAX.
53205         * lib/vsnprintf.c: Include errno.h, limits.h.
53206         (EOVERFLOW): New fallback definition.
53207         (vsnprintf): Fix bug when generated string was too long for the buffer.
53208         Test here whether the string length is > INT_MAX.
53209
53210 2006-08-28  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/inttypes_.h (SCNX*): Remove definitions.
53213         Reported by Eric Blake.
53214
53215 2006-08-28  Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/c-strstr.h: New file, from GNU gettext.
53218         * lib/c-strstr.c: New file, from GNU gettext.
53219
53220 2006-08-28  Bruno Haible  <bruno@clisp.org>
53221
53222         * gnulib-tool: Reorder some statements.
53223
53224 2006-08-28  Bruno Haible  <bruno@clisp.org>
53225
53226         * gnulib-tool: New option --makefile-name.
53227         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53228         $makefile_name.
53229         (func_import): Write $makefile_name to the cache file, and read it from
53230         there unless explicitly specified. Use $makefile_name as file name
53231         instead of Makefile.am. Adjust the recommendations accordingly.
53232
53233 2006-08-28  Bruno Haible  <bruno@clisp.org>
53234
53235         * gnulib-tool (func_verify_module): Check against misapplying patch.
53236
53237 2006-08-28  Bruno Haible  <bruno@clisp.org>
53238
53239         * gnulib-tool (func_relativize, func_relconcat): New functions.
53240         Give an error if --local-dir is given with --update.
53241         Remove trailing slashes from $local_gnulib_dir.
53242         (func_import): Store the relativized $local_gnulib_dir in
53243         gnulib-cache.m4, and read it from there if not specified explicitly.
53244
53245 2006-08-28  Bruno Haible  <bruno@clisp.org>
53246
53247         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53248         is the current directory. Respect also $local_gnulib_dir.
53249
53250 2006-08-28  Bruno Haible  <bruno@clisp.org>
53251             Simon Josefsson  <jas@extundo.com>
53252
53253         BeOS portability.
53254         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53255
53256 2006-08-27  Jim Meyering  <jim@meyering.net>
53257
53258         * doc/visibility.texi: Remove duplicate word: "pointer".
53259
53260 2006-08-26  Bruno Haible  <bruno@clisp.org>
53261
53262         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53263         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53264         (Makefile.am): Create inttypes.h from inttypes_.h.
53265         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53266
53267         * modules/imaxabs: New file.
53268
53269         * modules/imaxdiv: New file.
53270
53271 2006-08-26  Bruno Haible  <bruno@clisp.org>
53272
53273         * m4/inttypes.m4: New file.
53274         * m4/_inttypes_h.m4: Remove file.
53275         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53276         PRI_MACROS_BROKEN.
53277         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53278
53279         * m4/imaxabs.m4: New file.
53280
53281         * m4/imaxdiv.m4: New file.
53282
53283 2006-08-26  Bruno Haible  <bruno@clisp.org>
53284
53285         * lib/inttypes_.h: New file.
53286         * lib/inttypes.h: Remove file.
53287         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53288
53289         * lib/imaxabs.c: New file.
53290
53291         * lib/imaxdiv.c: New file.
53292
53293 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53294
53295         New config-h module, so that "make" output needn't be cluttered
53296         by -DHAVE_CONFIG_H.
53297         * MODULES.html.sh (Support for building libraries and executables):
53298         Add config-h.
53299         * modules/config-h: New file.
53300         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53301         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53302         the config-h module is used.
53303
53304         New configmake module, so that "make" output needn't be cluttered
53305         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53306         * MODULES.html.sh (Support for building libraries and executables):
53307         Add configmake.
53308         * modules/configmake: New file.
53309
53310 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53311
53312         * m4/config-h.m4: New file.
53313
53314 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53315
53316         * config/srclist.txt: Add elisp-comp.
53317
53318 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53319
53320         * MODULES.html.sh (Support for building libraries and executables):
53321         Add elisp-comp.
53322         * build-aux/elisp-comp: New file.
53323         * modules/elisp-comp: New file.
53324
53325 2006-08-24  Bruno Haible  <bruno@clisp.org>
53326
53327         * gnulib-tool (func_create_testdir): Use non-default values of
53328         sourcebase and m4base.
53329
53330 2006-08-24  Bruno Haible  <bruno@clisp.org>
53331
53332         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53333         HTML structure.
53334
53335 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53336
53337         * modules/openat (Depends-on): Add lchown.
53338
53339 2006-08-23  Bruno Haible  <bruno@clisp.org>
53340
53341         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
53342         of gl_LOCK_EARLY instead of gl_LOCK.
53343
53344 2006-08-23  Bruno Haible  <bruno@clisp.org>
53345
53346         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
53347         on OSF/1 to no.
53348         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
53349
53350 2006-08-23  Bruno Haible  <bruno@clisp.org>
53351
53352         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
53353         as unusable.
53354
53355         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
53356         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
53357         (gl_LOCK): New macro.
53358
53359 2006-08-22  Simon Josefsson  <jas@extundo.com>
53360
53361         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
53362         to md5 module.
53363
53364 2006-08-22  Simon Josefsson  <jas@extundo.com>
53365
53366         * MODULES.html.sh: Add "Support for maintaining and release
53367         projects".
53368
53369         * build-aux/gnupload: New file, from coreutils.
53370
53371 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53372
53373         Avoid the need for AC_LIBSOURCES in m4 macros.
53374         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53375         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53376         * modules/check-version (EXTRA_DIST): Add check-version.h.
53377         * modules/crc (EXTRA_DIST): Add crc.h.
53378         * modules/des (EXTRA_DIST): Add des.h.
53379         * modules/gc (EXTRA_DIST): Add gc.h.
53380         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53381         * modules/getline (EXTRA_DIST): Add getline.h.
53382         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53383         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53384         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53385         * modules/md2 (EXTRA_DIST): Add md2.h.
53386         * modules/md4 (EXTRA_DIST): Add md4.h.
53387         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53388         * modules/read-file (EXTRA_DIST): Add read-file.h.
53389         * modules/readline (EXTRA_DIST): Add readline.h.
53390         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53391         rijndael-api-fst.h.
53392
53393 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53394
53395         * m4/rijndael.m4 (gl_ARCFOUR):
53396         * m4/arctwo.m4 (gl_ARCTWO):
53397         * m4/check-version.m4 (gl_CHECK_VERSION):
53398         * m4/crc.m4 (gl_CRC):
53399         * m4/des.m4 (gl_DES):
53400         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53401         * m4/gc.m4 (gl_GC):
53402         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53403         * m4/getline.m4 (gl_FUNC_GETLINE):
53404         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53405         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53406         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53407         * m4/md2.m4 (gl_MD2):
53408         * m4/md4.m4 (gl_MD4):
53409         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53410         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53411         * m4/readline.m4 (gl_FUNC_READLINE):
53412         * m4/rijndael.m4 (gl_RIJNDAEL):
53413         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53414         to get the necessary .h files and whatnot.
53415
53416 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53417
53418         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
53419         gnulib rather than the other way around.
53420         * config/srclistvars.sh (COREUTILS): Remove.
53421
53422 2006-08-22  Jim Meyering  <jim@meyering.net>
53423
53424         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
53425
53426         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
53427
53428 2006-08-22  Eric Blake  <ebb9@byu.net>
53429
53430         * modules/regexprops-generic: New file.
53431         * MODULES.html.sh (Support for building documentation): List it.
53432
53433 2006-08-22  Eric Blake  <ebb9@byu.net>
53434
53435         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
53436         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53437         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
53438         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
53439
53440 2006-08-22  Bruno Haible  <bruno@clisp.org>
53441
53442         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
53443         and lib_LTLIBRARIES like the other lib_* variables.
53444
53445 2006-08-22  Bruno Haible  <bruno@clisp.org>
53446
53447         * build-aux/x-to-1.in: New file, from GNU gettext.
53448
53449 2006-08-22  Bruno Haible  <bruno@clisp.org>
53450
53451         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
53452         <utmpx.h> exists.
53453
53454 2006-08-22  Bruno Haible  <bruno@clisp.org>
53455
53456         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
53457         <utmpx.h> exists.
53458
53459 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53460
53461         BeOS portability.
53462         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
53463         exist.
53464         Problem reported by Bruno Haible.
53465
53466 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53467
53468         Avoid the need for AC_LIBSOURCES in m4 macros.
53469         * modules/acl (EXTRA_DIST): Add acl.h.
53470         * modules/argmatch (Files): Add m4/argmatch.m4.
53471         (configure.ac): Add gl_ARGMATCH.
53472         (EXTRA_DIST): Renamed from lib_SOURCES, for
53473         consistency with the other modules.  Remove argmatch.c.
53474         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
53475         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
53476         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
53477         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
53478         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
53479         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
53480         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
53481         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
53482         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
53483         * modules/closeout (EXTRA_DIST): Add closeout.h.
53484         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
53485         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
53486         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
53487         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
53488         dirname.h; remove basename.c and stripslash.c.
53489         * modules/exclude (EXTRA_DIST): Add exclude.h.
53490         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
53491         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
53492         * modules/file-type (EXTRA_DIST): Add file-type.h.
53493         * modules/filemode (EXTRA_DIST): Add filemode.h.
53494         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
53495         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53496         * modules/fpending (EXTRA_DIST): Add __fpending.h.
53497         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
53498         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
53499         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
53500         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
53501         * modules/getdate (EXTRA_DIST): Add getdate.c.
53502         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
53503         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
53504         * modules/getpass (EXTRA_DIST): Add getpass.h.
53505         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
53506         * modules/group-member (EXTRA_DIST): Add group-member.h.
53507         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
53508         * modules/hash (EXTRA_DIST): Add hash.h.
53509         * modules/human (EXTRA_DIST): Add human.h.
53510         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
53511         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
53512         * modules/lchown (EXTRA_DIST): Add lchown.h.
53513         * modules/long-options (EXTRA_DIST): Add long-options.h.
53514         * modules/lstat (EXTRA_DIST): Add lstat.h.
53515         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
53516         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
53517         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
53518         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
53519         * modules/memxor (EXTRA_DIST): Add memxor.h.
53520         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
53521         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
53522         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
53523         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
53524         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
53525         * modules/physmem (EXTRA_DIST): Add physmem.h.
53526         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
53527         * modules/posixver (EXTRA_DIST): Add posixver.h.
53528         * modules/quote (EXTRA_DIST): Add quote.h.
53529         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
53530         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
53531         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
53532         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
53533         regex_internal.h regexec.c.
53534         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
53535         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
53536         * modules/same (EXTRA_DIST): Add same.h.
53537         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
53538         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
53539         * modules/savedir (EXTRA_DIST): Add savedir.h.
53540         * modules/sha1 (EXTRA_DIST): Add sha1.h.
53541         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
53542         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
53543         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
53544         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
53545         * modules/strdup (EXTRA_DIST): Add strdup.h.
53546         * modules/strftime (EXTRA_DIST): Add strftime.h.
53547         * modules/strndup (EXTRA_DIST): Add strndup.h.
53548         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
53549         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
53550         * modules/time_r (EXTRA_DIST): Add time_r.h.
53551         * modules/timespec (EXTRA_DIST): Add timespec.h.
53552         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53553         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
53554         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
53555         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
53556         * modules/userspec (EXTRA_DIST): Add userspec.h.
53557         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
53558         * modules/utimens (EXTRA_DIST): Add utimens.h.
53559         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
53560         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
53561         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
53562         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
53563         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
53564         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
53565         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
53566         * modules/yesno (EXTRA_DIST): Add yesno.h.
53567
53568 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53569
53570         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
53571
53572         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
53573         * m4/dev-ino.m4, same-inode.m4: Remove.
53574
53575         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
53576         * m4/acl.m4 (AC_FUNC_ACL):
53577         * m4/backupfile.m4 (gl_BACKUPFILE):
53578         * m4/c-strtod.m4 (gl_C99_STRTOLD):
53579         * m4/canon-host.m4 (gl_CANON_HOST):
53580         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53581         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
53582         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
53583         * m4/cloexec.m4 (gl_CLOEXEC):
53584         * m4/close-stream.m4 (gl_CLOSE_STREAM):
53585         * m4/closeout.m4 (gl_CLOSEOUT):
53586         * m4/dirfd.m4 (gl_FUNC_DIRFD):
53587         * m4/dirname.m4 (gl_DIRNAME):
53588         * m4/exclude.m4 (gl_EXCLUDE):
53589         * m4/exitfail.m4 (gl_EXITFAIL):
53590         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
53591         * m4/file-type.m4 (gl_FILE_TYPE):
53592         * m4/filemode.m4 (gl_FILEMODE):
53593         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
53594         * m4/fpending.m4 (gl_FUNC_FPENDING):
53595         * m4/fprintftime.m4 (gl_FPRINTFTIME):
53596         * m4/fts.m4 (gl_FUNC_FTS):
53597         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
53598         * m4/getdate.m4 (gl_GETDATE):
53599         * m4/gethrxtime.m4 (gl_GETHRXTIME):
53600         * m4/getpagesize.m4 (gl_GETPAGESIZE):
53601         * m4/getpass.m4 (gl_FUNC_GETPASS):
53602         * m4/gettime.m4 (gl_GETTIME):
53603         * m4/getugroups.m4 (gl_GETUGROUPS):
53604         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
53605         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
53606         * m4/hard-locale.m4 (gl_HARD_LOCALE):
53607         * m4/hash.m4 (gl_HASH):
53608         * m4/idcache.m4 (gl_IDCACHE):
53609         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
53610         * m4/lchown.m4 (gl_FUNC_LCHOWN):
53611         * m4/long-options.m4 (gl_LONG_OPTIONS):
53612         * m4/lstat.m4 (gl_FUNC_LSTAT):
53613         * m4/md5.m4 (gl_MD5):
53614         * m4/memcasecmp.m4 (gl_MEMCASECMP):
53615         * m4/memcoll.m4 (gl_MEMCOLL):
53616         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
53617         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
53618         * m4/memxor.m4 (gl_MEMXOR):
53619         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
53620         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
53621         * m4/modechange.m4 (gl_MODECHANGE):
53622         * m4/mountlist.m4 (gl_MOUNTLIST):
53623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53624         * m4/openat.m4 (gl_FUNC_OPENAT):
53625         * m4/pathmax.m4 (gl_PATHMAX):
53626         * m4/physmem.m4 (gl_PHYSMEM):
53627         * m4/posixtm.m4 (gl_POSIXTM):
53628         * m4/posixver.m4 (gl_POSIXVER):
53629         * m4/quote.m4 (gl_QUOTE):
53630         * m4/quotearg.m4 (gl_QUOTEARG):
53631         * m4/readtokens.m4 (gl_READTOKENS):
53632         * m4/readutmp.m4 (gl_READUTMP):
53633         * m4/regex.m4 (gl_REGEX):
53634         * m4/safe-read.m4 (gl_SAFE_READ):
53635         * m4/safe-write.m4 (gl_SAFE_WRITE):
53636         * m4/same.m4 (gl_SAME):
53637         * m4/save-cwd.m4 (gl_SAVE_CWD):
53638         * m4/savedir.m4 (gl_SAVEDIR):
53639         * m4/settime.m4 (gl_SETTIME):
53640         * m4/sha1.m4 (gl_SHA1):
53641         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
53642         * m4/stat-macros.m4 (gl_STAT_MACROS):
53643         * m4/stat-time.m4 (gl_STAT_TIME):
53644         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
53645         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
53646         * m4/strdup.m4 (gl_FUNC_STRDUP):
53647         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
53648         * m4/strndup.m4 (gl_FUNC_STRNDUP):
53649         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
53650         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
53651         * m4/time_r.m4 (gl_TIME_R):
53652         * m4/timespec.m4 (gl_TIMESPEC):
53653         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
53654         * m4/unlinkdir.m4 (gl_UNLINKDIR):
53655         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
53656         * m4/userspec.m4 (gl_USERSPEC):
53657         * m4/utimecmp.m4 (gl_UTIMECMP):
53658         * m4/utimens.m4 (gl_UTIMENS):
53659         * m4/xalloc.m4 (gl_XALLOC):
53660         * m4/xgetcwd.m4 (gl_XGETCWD):
53661         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
53662         * m4/xreadlink.m4 (gl_XREADLINK):
53663         * m4/xstrtod.m4 (gl_XSTRTOD):
53664         * m4/yesno.m4 (gl_YESNO):
53665         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53666         to get the necessary .h files and whatnot.
53667
53668 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
53669             Bruno Haible  <bruno@clisp.org>
53670
53671         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
53672         /bin/sh understanding of '!' conditional negation.
53673
53674 2006-08-21  Jim Meyering  <jim@meyering.net>
53675
53676         * modules/openat (Depends-on): Really alphabetize.
53677
53678         * modules/acl (Depends-on): Add error and quote.
53679
53680         * check-module (find_included_lib_files): Add at-func.c to the
53681         ok-to-include-more-than-once white list.
53682
53683         * modules/openat (Depends-on): Add lstat.  Alphabetize.
53684
53685 2006-08-21  Bruno Haible  <bruno@clisp.org>
53686
53687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53688         Emit a pkgdata_DATA variable only if some snippets add contents to it.
53689         Reported by Martin Lambers <marlam@marlam.de>.
53690
53691 2006-08-21  Bruno Haible  <bruno@clisp.org>
53692
53693         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
53694         specify an installation location, don't emit a noinst_LIBRARIES or
53695         noinst_LTLIBRARIES assignment.
53696
53697 2006-08-21  Bruno Haible  <bruno@clisp.org>
53698
53699         BeOS portability.
53700         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
53701         BeOS has mbrtowc() but no <wctype.h>.
53702
53703 2006-08-21  Bruno Haible  <bruno@clisp.org>
53704
53705         BeOS portability.
53706         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
53707         exist.
53708
53709 2006-08-21  Bruno Haible  <bruno@clisp.org>
53710
53711         BeOS portability.
53712         * lib/mbchar.h: Include <wctype.h> only if it exists.
53713
53714 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53715
53716         Remove files that are no longer needed by their respective modules.
53717         * m4/obstack.m4: Remove.
53718         * m4/strerror_r.m4: Remove.
53719         * m4/uint32_t.m4: Remove.
53720         * m4/uintptr_t.m4: Remove.
53721         * m4/ullong_max.m4: Remove.
53722         * m4/xstrtoimax.m4: Remove.
53723         * m4/xstrtoumax.m4: Remove.
53724
53725         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
53726         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
53727         dependencies now capture this.
53728
53729         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
53730         Do not use AC_LIBSOURCES, since gnulib modules now do this.
53731         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
53732         * m4/human.m4 (gl_HUMAN): Likewise.
53733         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
53734         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
53735
53736         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
53737
53738         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
53739         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
53740         stdint.
53741         * m4/human.m4 (gl_HUMAN): Likewise.
53742         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
53743         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
53744         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53745         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53746         * m4/xstrtol (gl_XSTRTOL): Likewise.
53747
53748         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
53749         AC_TYPE_LONG_LONG_INT.
53750         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53751         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
53752         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
53753         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53754
53755         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
53756         on stdbool.
53757
53758         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
53759         (gl_PREREQ_XSTRTOUL): Remove.
53760
53761         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
53762
53763         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
53764         mode.
53765
53766 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53767
53768         Add and change modules to make it easier for coreutils to use
53769         gnulib-tool.
53770         * modules/backupfile (Files): Remove m4/d-ino.m4.
53771         (Depends-on): Add d-ino.
53772         * modules/cycle-check (Depends-on): Add stdint.
53773         (lib_SOURCES): Add cycle-check.h.
53774         * modules/d-ino: New module.
53775         * modules/d-type: New module.
53776         * modules/error (Files): Remove m4/strerror_r.m4.
53777         * modules/filemode (Files): Add m4/st_dm_mode.m4.
53778         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53779         m4/inttypes_h.m4, m4/uintmax_t.m4.
53780         (Depends-on): Add stdint.
53781         (lib_SOURCES): Add fsusage.h.
53782         * modules/getcwd (Files): Remove d-ino.m4.
53783         (Depends-on): Add d-ino.
53784         * modules/getndelim2 (Depends-on): Add stdint.
53785         * modules/glob (Files): Remove m4/d-type.m4.
53786         (Depends-on): Add d-type.
53787         * modules/host-os: New module.
53788         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
53789         m4/inttypes_h.m4, m4/uintmax_t.m4.
53790         * Depends-on: Add stdint.
53791         (lib_SOURCES): Add human.h.
53792         * modules/inttostr (Files): Remove m4/intmax_t.m4,
53793         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
53794         m4/uintmax_t.m4, m4/ulonglong.m4.
53795         (Depends-on): Add stdint.
53796         (EXTRA_DIST): Add inttostr.h.
53797         * modules/lchmod: New module.
53798         * modules/link-follow: New module.
53799         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
53800         (Depends-on): Add lchmod.
53801         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
53802         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
53803         (Depends-on): Add stdint.
53804         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
53805         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
53806         (Depends-on): Add stdint.
53807         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
53808         * modules/perl: New module.
53809         * modules/regex (Depends-on): Add stdint.
53810         * modules/rmdir-errno: New module.
53811         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53812         m4/intmax_t.m4.
53813         (Depends-on): Add stdint.
53814         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53815         m4/uintmax_t.m4.
53816         (Depends-on): Add stdint.
53817         * modules/unlink-busy: New module.
53818         * modules/utimecmp (Depends-on): Add stdint.
53819         * modules/uptime: New module.
53820         * modules/winsz-ioctl: New module.
53821         * modules/winsz-termios: New module.
53822         * modules/xnanosleep (Depends-on): Add nanosleep.
53823         * modules/ullong_max: Remove.
53824         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
53825         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
53826         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
53827         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
53828         (Depends-on): Add inttypes.
53829         (lib_SOURCES): Add xstrtol.h.
53830         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
53831         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
53832         * MODULES.html.sh: Move 'assert' into the assert section.
53833         Move 'dummy' into the linking section.
53834         Remove ullong_max.
53835         Add section for compatibility checks for POSIX:2001 functions,
53836         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
53837         winsz-ioctl, and winsz-termios into it.
53838         Add lchmod.
53839         Add top-level Misc section and put host-os, perl, and uptime
53840         into it.
53841
53842 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53843
53844         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
53845         now assume the stdint module.  Do not include inttypes.h.
53846         * lib/fsusage.h: Likewise.
53847         * lib/getndelim2.c: Likewise.
53848         * lib/human.h: Likewise.
53849         * lib/inttostr.h: Likewise.
53850         * lib/obstack.c: Likewise.
53851         * lib/regex_internal.h: Likewise.
53852         * lib/tempname.c: Likewise.
53853         * lib/utimecmp.c: Likewise.
53854         * lib/xstrtol.h: Likewise.
53855
53856         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
53857
53858         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
53859         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
53860         * lib/xtime.h: Likewise.
53861
53862 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53863
53864         * modules/openat (Files): Add lib/fchmodat.c.
53865         Fixes problem reported by Jay Youngman.
53866
53867 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
53870         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
53871
53872 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
53873             Bruno Haible  <bruno@clisp.org>
53874
53875         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
53876         and is a script that invokes bison. Tighten the code. Add comments.
53877
53878 2006-08-18  Jim Meyering  <jim@meyering.net>
53879
53880         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
53881         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
53882         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
53883         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
53884
53885 2006-08-18  Bruno Haible  <bruno@clisp.org>
53886
53887         * modules/bison-i18n: New file.
53888         * MODULES.html.sh (Internationalization functions): Add it.
53889
53890 2006-08-18  Bruno Haible  <bruno@clisp.org>
53891
53892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
53893         sys/statvfs.h. When getmntinfo was found, check its declaration and
53894         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
53895
53896 2006-08-18  Bruno Haible  <bruno@clisp.org>
53897
53898         * m4/bison-i18n.m4: New file, from bison.
53899
53900 2006-08-18  Bruno Haible  <bruno@clisp.org>
53901
53902         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
53903         (ME_DUMMY): Treat "kernfs" as a dummy.
53904         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
53905
53906 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         Update from coreutils.
53909
53910         2006-08-15  Jim Meyering  <jim@meyering.net>
53911
53912         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
53913
53914         2006-01-17  Jim Meyering  <jim@meyering.net>
53915
53916         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
53917
53918         2006-01-11  Jim Meyering  <jim@meyering.net>
53919
53920         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
53921         Check for the lchmod function.
53922
53923 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         Update from coreutils.
53926
53927         * lib/__fpending.h: Add copyright notice.
53928         * lib/fprintftime.h: Likewise.
53929         * lib/savedir.c: Use (C) in copyright notice.
53930         * lib/savedir.h: Likewise.
53931
53932         2006-08-15  Jim Meyering  <jim@meyering.net>
53933
53934         * lib/at-func.c: New file, with the logic of all emulated at-functions.
53935         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
53936         in support of the EXPECTED_ERRNO macro.
53937         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
53938         definitions.  Instead, define the appropriate symbols and include
53939         "at-func.c".
53940         * lib/mkdirat.c (mkdirat): Likewise.
53941         * lib/fchmodat.c (fchmodat): Likewise.
53942         (ENOSYS): Remove definition.
53943         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
53944         it.  Don't include "unistd--.h" -- it wasn't ever used.
53945
53946         2006-01-17  Jim Meyering  <jim@meyering.net>
53947
53948         Rewrite fts.c not to change the current working directory,
53949         by using openat, fstatat, fdopendir, etc..
53950
53951         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
53952         (HAVE_OPENAT_SUPPORT): Define.
53953         [_LIBC] (fchdir): Don't undef or define; no longer used.
53954         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
53955         Now, this `function' always succeeds, and consumes its file descriptor
53956         parameter -- so callers must not close such FDs.  Update callers.
53957         (diropen_fd, opendirat, cwd_advance_fd): New functions.
53958         (diropen): Add parameter, SP.  Adjust all callers.
53959         Implement using diropen_fd, rather than open.
53960         (fts_open): Initialize new member, fts_cwd_fd.
53961         Remove fts_rft-setting code.
53962         (fts_close): Close fts_cwd_fd, if necessary.
53963         (__opendir2): Define in terms of opendir or opendirat,
53964         depending on whether the FST_NOCHDIR flag is set.
53965         (fts_build): Since fts_safe_changedir consumes its FD, and since
53966         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
53967         and close the dup'd file descriptor upon failure.
53968         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
53969         (fts_safe_changedir): Tweak semantics to reflect that this function
53970         now calls cwd_advance_fd and hence consumes its FD argument.
53971         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
53972         [struct FTS] (fts_rft): Remove now-unused member.
53973         [struct FTS] (fts_cycle.state): Improve comment.
53974
53975         * lib/openat.c (openat_needs_fchdir): New function.
53976         * lib/openat.h (openat_needs_fchdir): Declare it.
53977
53978 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
53979
53980         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
53981         Problem and fix reported by Pádraig Brady in
53982         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
53983
53984 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53985
53986         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
53987
53988 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53989
53990         * lib/memcoll.c (memcoll): Optimize for the common case where the
53991         arguments are bytewise equal.
53992
53993 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53994
53995         * doc/regexprops-generic.texi: Add a copyright notice.
53996
53997 2006-08-15  Bruno Haible  <bruno@clisp.org>
53998
53999         * modules/tmpdir (License): Change to LGPL.
54000
54001 2006-08-15  Bruno Haible  <bruno@clisp.org>
54002
54003         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54004         module.
54005
54006 2006-08-14  Simon Josefsson  <jas@extundo.com>
54007
54008         * config/srclist.txt: Add gnupload.
54009
54010 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54011
54012         Change copyright notice from LGPL 2 to GPL 2, since that's the
54013         standard form used in the gnulib repository.
54014         * tests/test-lock.c: Likewise.
54015         * tests/test-stdint.c: Likewise.
54016         * tests/test-tls.c: Likewise.
54017
54018         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54019         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54020         Add copyright notice.
54021
54022         * check-module: Add copyright notice.  Output a copyright
54023         notice if "--version" is specified.
54024         * modules/COPYING: New file.
54025         * tests/test-getaddrinfo.c: Add copyright notice.
54026         * tests/test-verify.c: Likewise.
54027
54028 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54029
54030         Change copyright notice from LGPL 2 to GPL 2, since that's the
54031         standard form used in the gnulib repository.
54032         * lib/lock.c: LGPL -> GPL.
54033         * lib/lock.h: Likewise.
54034         * lib/strnlen1.c: Likewise.
54035         * lib/strnlen1.h: Likewise.
54036         * lib/tls.c: Likewise.
54037         * lib/tls.h: Likewise.
54038         * lib/tmpdir.c: Likewise.
54039
54040         * lib/TODO: Remove; this belongs only in coreutils.
54041
54042 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54043
54044         Add copyright notices to long-enough files that lack them, since
54045         otherwise the files aren't clearly free.  Use the same notice that
54046         getdate.texi already uses.
54047         * doc/alloca-opt.texi: Add copyright notice.
54048         * doc/alloca.texi: Likewise.
54049         * doc/ctime.texi: Likewise.
54050         * doc/functions.texi: Likewise.
54051         * doc/gcd.texi: Likewise.
54052         * doc/gnulib-tool.texi: Likewise.
54053         * doc/inet_ntoa.texi: Likewise.
54054         * doc/visibility.texi: Likewise.
54055
54056         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54057         * doc/quote.texi: Add copyright notice.
54058
54059         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54060         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54061         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54062         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54063         is now obsolete, and give a pointer to the Sun list.
54064         Add copyright notice.
54065
54066 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54067
54068         * config/srclistvars.sh: Add copyright notice.
54069
54070 2006-08-14  Eric Blake  <ebb9@byu.net>
54071
54072         Import the following change from libc:
54073
54074         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54075
54076         Upstream bug 2997.
54077         * lib/misc/error.c: Add space between program name and message if file
54078         name is missing.
54079
54080 2006-08-12  Karl Berry  <karl@gnu.org>
54081
54082         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54083         remove, these originate in gnulib now.
54084
54085 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54086
54087         * doc/Makefile (standards.info standards.html standards.dvi):
54088         Also depend on make-stds.texi.
54089
54090 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54091
54092         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54093         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54094
54095         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54096         in wchar_t.  Problem reported by Eric Blake.
54097
54098         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54099         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54100         Also, help the compiler to keep LEN in a register.
54101
54102 2006-08-11  Eric Blake  <ebb9@byu.net>
54103
54104         * users.txt: Sort.  Add tar.
54105
54106 2006-08-11  Bruno Haible  <bruno@clisp.org>
54107
54108         * users.txt: New file.
54109
54110 2006-08-11  Bruno Haible  <bruno@clisp.org>
54111
54112         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54113         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54114
54115 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54116
54117         * modules/snprintf (Depends-on): Remove minmax.
54118         (Maintainer): Add self and Bruno.
54119
54120 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54121
54122         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54123         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54124         (EOVERFLOW): Define if the system does not.
54125         Do not include "minmax.h"; it wasn't used.
54126         (snprintf): Don't assume size_t promotes to an unsigned type.
54127         Fix bug when generated string was too long for the buffer: the
54128         buffer's contents are supposed to be the initial prefix of the
54129         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54130         exceeds INT_MAX; do the check ourselves.
54131
54132         Import the following changes from libc:
54133
54134         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54135
54136         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54137         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54138         set wc to the byte which couldn't be converted.
54139         (re_string_reconstruct): Don't clear valid_raw_len before calling
54140         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54141         tip_context using re_string_context_at.
54142
54143         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54144
54145         * lib/posix/regex.h: g++ still cannot handled [restrict].
54146
54147         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54148
54149         * lib/posix/regex.h: Remove special handling for VMS.
54150
54151 2006-08-10  Jim Meyering  <jim@meyering.net>
54152
54153         * modules/same-inode: New module.
54154         * modules/dev-ino: New module.
54155         * modules/cycle-check: Depend on these modules, rather than simply
54156         including their .h files.
54157         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54158         required via m4/cycle-check.m4.
54159         * modules/same: Depend on new same-inode module, rather than
54160         including same-inode.h.
54161         * modules/chdir-safer: New file.
54162
54163         * modules/chown (Depends-on): Add stat-macros.
54164
54165 2006-08-10  Jim Meyering  <jim@meyering.net>
54166
54167         * m4/cycle-check.m4: New file.
54168         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54169         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54170
54171 2006-08-10  Eric Blake  <ebb9@byu.net>
54172
54173         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54174         in from original proposal.
54175
54176 2006-08-10  Eric Blake  <ebb9@byu.net>
54177         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54178
54179         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54180         namespace.
54181
54182 2006-08-10  Bruno Haible  <bruno@clisp.org>
54183
54184         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54185         as well.
54186
54187 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54188
54189         Sync from coreutils.
54190
54191         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54192
54193         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54194         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54195
54196 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54197
54198         * modules/restrict: Remove; no longer needed now that we assume
54199         Autoconf 2.59 or later.
54200         * MODULES.html.sh: Remove 'restrict'.
54201         * modules/argp (Depends-on): Remove 'restrict'.
54202         * modules/base64 (Depends-on): Likewise.
54203         * modules/gc (Depends-on): Likewise.
54204         * modules/getaddrinfo (Depends-on): Likewise.
54205         * modules/glob (Depends-on): Likewise.
54206         * modules/inet_ntop (Depends-on): Likewise.
54207         * modules/inet_pton (Depends-on): Likewise.
54208         * modules/memxor (Depends-on): Likewise.
54209         * modules/regex (Depends-on): Likewise.
54210         * modules/strtok_r (Depends-on): Likewise.
54211         * modules/time_r (Depends-on): Likewise.
54212
54213 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54214
54215         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54216         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54217         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54218         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54219         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54220         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54221         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54222         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54223
54224         Merge from coreutils.
54225         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54226         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54227         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54228         * m4/time_r.m4 (gl_TIME_R): Likewise.
54229
54230 2006-08-09  Karl Berry  <karl@gnu.org>
54231
54232         * config/srclist.txt: no more gettext-tools, per Bruno.
54233
54234 2006-08-08  Eric Blake  <ebb9@byu.net>
54235
54236         * modules/verror: New module.
54237         * MODULES.html.sh: Document it.
54238
54239 2006-08-08  Eric Blake  <ebb9@byu.net>
54240
54241         * lib/verror.h, lib/verror.c: New files.
54242
54243 2006-08-08  Eric Blake  <ebb9@byu.net>
54244
54245         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54246         verror_at_line output complies with GNU Coding Standards even when
54247         file is NULL.
54248
54249 2006-08-07  Bruno Haible  <bruno@clisp.org>
54250
54251         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54252         versions of AIX.
54253         Reported by Ralf Wildenhues.
54254
54255 2006-08-07  Bruno Haible  <bruno@clisp.org>
54256
54257         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54258         in an AC_DEFUN. Needed so that the autoconf snippets can use
54259         AC_REQUIRE.
54260
54261 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54262
54263         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54264         Initialize pkgdata_DATA.
54265         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54266         overriding it.
54267
54268 2006-08-06  Eric Blake  <ebb9@byu.net>
54269
54270         * lib/error.h: Fold in some upstream changes from glibc.
54271         * lib/error.c: Likewise.
54272
54273 2006-08-04  Bruno Haible  <bruno@clisp.org>
54274
54275         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54276         Make the mostlyclean-local rule depend on mostlyclean-generic.
54277         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54278
54279 2006-07-31  Bruno Haible  <bruno@clisp.org>
54280
54281         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54282         <stdlib.h>, <string.h>.
54283
54284 2006-07-30  Bruno Haible  <bruno@clisp.org>
54285
54286         * modules/readlink (License): Change to LGPL.
54287
54288 2006-07-30  Bruno Haible  <bruno@clisp.org>
54289
54290         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54291         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54292         set PKGDATADIR to point to it.
54293
54294 2006-07-30  Bruno Haible  <bruno@clisp.org>
54295
54296         * modules/csharpexec (configure.ac): Comment out macro invocation.
54297         * modules/javaexec (configure.ac): Likewise.
54298         * modules/javacomp-script (configure.ac): Likewise.
54299
54300         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54301
54302 2006-07-30  Bruno Haible  <bruno@clisp.org>
54303
54304         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54305         linked-list.
54306
54307 2006-07-30  Bruno Haible  <bruno@clisp.org>
54308
54309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54310
54311 2006-07-30  Bruno Haible  <bruno@clisp.org>
54312
54313         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54314         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54315         get removed.
54316
54317 2006-07-29  Bruno Haible  <bruno@clisp.org>
54318
54319         Make it possible for gnulib-tool to work with locally modified or
54320         augmented gnulib repositories.
54321         * gnulib-tool (func_usage): Document --local-dir option.
54322         (local_gnulib_dir): New variable.
54323         Handle --local-dir option.
54324         (func_lookup_file): New function.
54325         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54326         (func_get_description, func_get_filelist, func_get_description,
54327         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54328         func_get_automake_snippet, func_get_include_directive,
54329         func_get_license, func_get_maintainer): Use func_lookup_file.
54330         (func_import, func_create_testdir): Use func_lookup_file.
54331
54332 2006-07-29  Bruno Haible  <bruno@clisp.org>
54333
54334         * modules/setenv (Depends-on): Add unistd.
54335
54336 2006-07-29  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54339
54340 2006-07-29  Bruno Haible  <bruno@clisp.org>
54341
54342         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
54343
54344 2006-07-29  Bruno Haible  <bruno@clisp.org>
54345
54346         * gnulib-tool (import, update): If there is no Makefile.am, look at
54347         aclocal.m4, instead of bailing out.
54348
54349 2006-07-29  Bruno Haible  <bruno@clisp.org>
54350
54351         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
54352         Categorize the options by when they are useful.
54353
54354 2006-07-29  Bruno Haible  <bruno@clisp.org>
54355
54356         * gnulib-tool (func_usage): Document option --no-libtool.
54357         Handle option --no-libtool.
54358         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
54359         for changed semantics of $libtool variable.
54360         (func_import): Likewise. If libtool is not used, show this through
54361         an option --no-libtool.
54362         (func_create_testdir): Update.
54363
54364 2006-07-29  Bruno Haible  <bruno@clisp.org>
54365
54366         * gnulib-tool (func_import): Extend error message about missing
54367         --doc-base.
54368
54369 2006-07-29  Bruno Haible  <bruno@clisp.org>
54370
54371         * gnulib-tool (func_import): Don't create the $docbase directory if
54372         there is no file to store there.
54373
54374 2006-07-29  Bruno Haible  <bruno@clisp.org>
54375
54376         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54377         relevant, look for configure.ac there, not in the current directory.
54378         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54379
54380 2006-07-29  Bruno Haible  <bruno@clisp.org>
54381
54382         * gnulib-tool (SORT): New variable.
54383         (func_usage): Undocument --assume-autoconf option.
54384         Remove --assume-autoconf option handling.
54385         (autoconf_minversion): Determine from the contents of configure.ac.
54386         (func_import): Remove autoconf_minversion handling.
54387         Suggested by Eric Blake.
54388
54389 2006-07-29  Bruno Haible  <bruno@clisp.org>
54390
54391         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54392
54393 2006-07-29  Bruno Haible  <bruno@clisp.org>
54394
54395         * config/srclist.txt (*setenv.[ch]): Remove rules.
54396
54397 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54398
54399         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54400
54401 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54402
54403         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54404         arpa/inet.h.
54405
54406 2006-07-28  Simon Josefsson  <jas@extundo.com>
54407
54408         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54409         * modules/inet_pton (Depends-on): Likewise.
54410
54411 2006-07-28  Simon Josefsson  <jas@extundo.com>
54412
54413         * m4/netinet_in_h.m4: New file.
54414
54415 2006-07-28  Simon Josefsson  <jas@extundo.com>
54416
54417         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
54418         #include's.
54419
54420 2006-07-28  Simon Josefsson  <jas@extundo.com>
54421
54422         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
54423         #include's.
54424
54425 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
54426
54427         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
54428         setgid on directories only if they set these bits.
54429         * lib/modechange.h: Remove obsolete comment about masks.
54430
54431 2006-07-28  Eric Blake  <ebb9@byu.net>
54432
54433         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
54434         macro expansion.
54435
54436 2006-07-28  Bruno Haible  <bruno@clisp.org>
54437
54438         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
54439
54440 2006-07-28  Bruno Haible  <bruno@clisp.org>
54441
54442         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
54443
54444 2006-07-28  Bruno Haible  <bruno@clisp.org>
54445
54446         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54447         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54448         Define fallbacks.
54449         Avoids link error on FreeBSD 4.x.
54450         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54451
54452         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
54453         encoding.
54454         * lib/mbswidth.c (iswcntrl): Likewise.
54455
54456 2006-07-27  Bruno Haible  <bruno@clisp.org>
54457
54458         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
54459         test.
54460
54461 2006-07-27  Bruno Haible  <bruno@clisp.org>
54462
54463         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
54464         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
54465         defined.
54466
54467 2006-07-26  Eric Blake  <ebb9@byu.net>
54468
54469         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
54470
54471 2006-07-26  Eric Blake  <ebb9@byu.net>
54472
54473         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
54474         like mingw that lack mkstemp.
54475         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
54476         avoid compilation warning on mingw.
54477
54478 2006-07-26  Bruno Haible  <bruno@clisp.org>
54479
54480         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
54481         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
54482         INT_FAST*_MIN, INTPTR_MIN.
54483
54484 2006-07-25  Bruno Haible  <bruno@clisp.org>
54485
54486         * modules/version-etc (Depends-on): Add stdarg.
54487
54488 2006-07-25  Bruno Haible  <bruno@clisp.org>
54489
54490         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
54491         complex commands.
54492
54493 2006-07-25  Bruno Haible  <bruno@clisp.org>
54494
54495         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
54496         defined in <stdarg.h> or config.h.
54497
54498 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54499
54500         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
54501         (gl_STDIO_SAFER): Remove.
54502
54503 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54504
54505         * MODULES.html.sh (File stream based Input/Output):
54506         Add fopen-safer, tmpfile-safer; remove stdio-safer.
54507         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
54508         * modules/fopen-safer, modules/tmpfile-safer: New files.
54509         * modules/stdio-safer: Remove.
54510
54511 2006-07-24  Bruno Haible  <bruno@clisp.org>
54512
54513         * modules/tmpdir: New file.
54514         * MODULES.html.sh (File system functions): Add it.
54515
54516 2006-07-24  Bruno Haible  <bruno@clisp.org>
54517
54518         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
54519         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
54520
54521 2006-07-24  Bruno Haible  <bruno@clisp.org>
54522
54523         * modules/clean-temp: New file.
54524
54525 2006-07-24  Bruno Haible  <bruno@clisp.org>
54526
54527         * m4/tmpdir.m4: New file, from GNU gettext.
54528
54529 2006-07-24  Bruno Haible  <bruno@clisp.org>
54530
54531         * lib/tmpdir.h: New file, from GNU gettext.
54532         * lib/tmpdir.c: New file, from GNU gettext.
54533
54534 2006-07-24  Bruno Haible  <bruno@clisp.org>
54535
54536         * lib/clean-temp.h: New file, from GNU gettext.
54537         * lib/clean-temp.c: New file, from GNU gettext.
54538
54539 2006-07-23  Eric Blake  <ebb9@byu.net>
54540
54541         * modules/stdio-safer (Files): Add tmpfile-safer.c.
54542         (Depends-on): Add binary-io.
54543
54544 2006-07-23  Eric Blake  <ebb9@byu.net>
54545
54546         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
54547
54548 2006-07-23  Eric Blake  <ebb9@byu.net>
54549
54550         * lib/tmpfile-safer.c: New file.
54551         * lib/stdio-safer.h (fopen_safer): Add prototype.
54552         * lib/stdio--.h (tmpfile): Make safer.
54553
54554 2006-07-23  Bruno Haible  <bruno@clisp.org>
54555
54556         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
54557         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
54558         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
54559         gl_linked_remove_at): Use it.
54560
54561 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54562         and Simon Josefsson <jas@extundo.com>
54563
54564         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
54565
54566         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
54567
54568 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54569
54570         * modules/close-stream: New file.
54571         * modules/closeout (Description): Make it clear that it exits
54572         with a diagnostic on error.
54573         (Depends-on): Add close-stream.  Remove fpending, stdbool.
54574         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
54575
54576 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54577
54578         * m4/close-stream.m4: New file.
54579
54580 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54581
54582         * lib/close-stream.c, lib/close-stream.h: New files.
54583
54584 2006-07-22  Bruno Haible  <bruno@clisp.org>
54585
54586         Merge from GNU gettext 0.15.
54587
54588         2006-05-01  Bruno Haible  <bruno@clisp.org>
54589
54590                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
54591
54592         2006-07-22  Bruno Haible  <bruno@clisp.org>
54593
54594                 * modules/javaversion: New file.
54595                 * MODULES.html.sh (Java): Add javaversion.
54596
54597         2006-03-12  Bruno Haible  <bruno@clisp.org>
54598
54599                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
54600
54601         2005-12-04  Bruno Haible  <bruno@clisp.org>
54602
54603                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
54604                 (untested).
54605
54606         2006-06-21  Bruno Haible  <bruno@clisp.org>
54607
54608                 Avoid warnings from recent versions of mcs.
54609                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
54610                 -o, -L, -r any more. Use options documented since mcs-1.0
54611                 instead. Similarly for -g.
54612
54613         2005-12-04  Bruno Haible  <bruno@clisp.org>
54614
54615                 * build-aux/csharpcomp.sh.in: Suffix for resources is
54616                 .resources, not .resource.
54617
54618         2005-07-09  Bruno Haible  <bruno@clisp.org>
54619
54620                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
54621                 add a .dll suffix.
54622                 Reported by Mark Junker <mjscod@gmx.de>.
54623
54624         2006-07-22  Bruno Haible  <bruno@clisp.org>
54625
54626                 * modules/gettext: Upgrade to gettext-0.15.
54627                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
54628                 m4/visibility.m4.
54629                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
54630
54631 2006-07-22  Bruno Haible  <bruno@clisp.org>
54632
54633         Merge from GNU gettext 0.15.
54634
54635         2006-03-25  Bruno Haible  <bruno@clisp.org>
54636
54637                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
54638
54639         2006-07-21  Bruno Haible  <bruno@clisp.org>
54640
54641                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
54642                 "1.1".
54643
54644         2006-05-09  Bruno Haible  <bruno@clisp.org>
54645
54646                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
54647                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
54648                 for the conftestver execution.
54649
54650         2006-05-01  Bruno Haible  <bruno@clisp.org>
54651
54652                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
54653                 optional target-version argument. Verify that the compiler
54654                 groks source of the specified source-version, or add -source
54655                 option as necessary. Verify that the compiler produces
54656                 bytecode in the specified target-version, or add -target and
54657                 -source options as necessary. Make the result of the test
54658                 available as variable CONF_JAVAC. Also log error output in
54659                 config.log.
54660
54661         2006-03-11  Bruno Haible  <bruno@clisp.org>
54662
54663                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
54664
54665         2006-05-09  Bruno Haible  <bruno@clisp.org>
54666
54667                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
54668                 CLASSPATH_SEPARATOR to a semicolon.
54669
54670         2006-03-12  Bruno Haible  <bruno@clisp.org>
54671
54672                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
54673                 available as variable CONF_JAVA, for subsequent autoconf
54674                 tests. Also log error output in config.log.
54675
54676         2006-07-19  Bruno Haible  <bruno@clisp.org>
54677
54678                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
54679                 that getline works on glibc2 systems. Needed to avoid trouble
54680                 in relocatable.c.
54681                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
54682
54683         2005-12-04  Bruno Haible  <bruno@clisp.org>
54684
54685                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
54686                 launcher (untested).
54687
54688         2005-12-04  Bruno Haible  <bruno@clisp.org>
54689
54690                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
54691
54692         2006-07-22  Bruno Haible  <bruno@clisp.org>
54693
54694                 * gettext.m4: Update from GNU gettext-0.15.
54695                 * nls.m4: Likewise.
54696                 * po.m4: Likewise.
54697                 * inttypes-pri.m4: Likewise.
54698                 * inttypes-h.m4: Renamed from inttypes.m4.
54699                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
54700
54701 2006-07-22  Bruno Haible  <bruno@clisp.org>
54702
54703         Merge from GNU gettext 0.15.
54704
54705         2005-07-05  Bruno Haible  <bruno@clisp.org>
54706
54707                 * printf-args.c (printf_fetchargs): Work around broken
54708                 definition of wint_t on mingw.
54709
54710         2005-02-12  Bruno Haible  <bruno@clisp.org>
54711
54712                 * xallocsa.h: Add extern "C" for C++.
54713
54714         2006-05-17  Bruno Haible  <bruno@clisp.org>
54715
54716                 Cygwin portability.
54717                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
54718
54719         2006-04-30  Bruno Haible  <bruno@clisp.org>
54720
54721                 * progreloc.c: Include <mach-o/dyld.h> if available.
54722                 (find_executable): Use _NSGetExecutablePath when possible.
54723
54724         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54725
54726                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
54727                 function.
54728
54729         2005-12-29  Bruno Haible  <bruno@clisp.org>
54730
54731                 * progreloc.c (set_program_name_and_installdir): Fix
54732                 compilation error.
54733
54734         2005-12-04  Bruno Haible  <bruno@clisp.org>
54735
54736                 Cygwin portability.
54737                 * progreloc.c: Include <windows.h> also on Cygwin.
54738                 (find_executable): Add support for Cygwin.
54739                 (set_program_name_and_installdir): Handle also platforms with
54740                 nonempty EXEEXT.
54741
54742         2006-07-11  Bruno Haible  <bruno@clisp.org>
54743
54744                 * javacomp.c: Fix a comment.
54745                 Reported by Jim Meyering.
54746
54747         2006-04-30  Bruno Haible  <bruno@clisp.org>
54748
54749                 * javacomp.h (compile_java_class): Add source_version,
54750                 target_version arguments.
54751                 * javacomp.c: Rewritten to choose only a compiler that
54752                 respects the specified source_version and target_version.
54753
54754         2006-06-27  Bruno Haible  <bruno@clisp.org>
54755
54756                 Assume correct S_ISDIR macro.
54757                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
54758
54759         2006-07-22  Bruno Haible  <bruno@clisp.org>
54760
54761                 * javaversion.h: New file, from GNU gettext.
54762                 * javaversion.c: New file, from GNU gettext.
54763                 * javaversion.java: New file, from GNU gettext.
54764                 * javaversion.class: New file, from GNU gettext.
54765
54766         2006-05-17  Bruno Haible  <bruno@clisp.org>
54767
54768                 Cygwin portability.
54769                 * javaexec.c (execute_java_class): Test for jview program
54770                 also on Cygwin.
54771
54772         2006-04-09  Bruno Haible  <bruno@clisp.org>
54773
54774                 * fatal-signal.c: Don't include string.h.
54775                 (at_fatal_signal): Use a copying loop instead of memcpy.
54776
54777         2005-12-04  Bruno Haible  <bruno@clisp.org>
54778
54779                 * csharpexec.c: Add support for 'clix' launcher (untested).
54780                 (execute_csharp_using_sscli): New function.
54781                 (execute_csharp_program): Call it.
54782
54783         2006-06-21  Bruno Haible  <bruno@clisp.org>
54784
54785                 Avoid warnings from recent versions of mcs.
54786                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
54787                 -o, -L, -r any more. Use options documented since mcs-1.0
54788                 instead. Similarly for -g.
54789
54790         2005-07-09  Bruno Haible  <bruno@clisp.org>
54791
54792                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
54793                 add a .dll suffix.
54794                 Reported by Mark Junker <mjscod@gmx.de>.
54795
54796         2006-06-17  Bruno Haible  <bruno@clisp.org>
54797
54798                 * config.charset: Update for NetBSD 3.0.
54799
54800         2006-05-17  Bruno Haible  <bruno@clisp.org>
54801
54802                 Cygwin portability.
54803                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
54804
54805         2006-05-16  Bruno Haible  <bruno@clisp.org>
54806
54807                 * localcharset.c [CYGWIN]: Include <windows.h>.
54808                 (get_charset_aliases): For Cygwin, return the same CPxxx
54809                 aliases list as under WIN32.
54810                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
54811                 the environment variables. Fall back to GetACP().
54812
54813         2006-04-05  Bruno Haible  <bruno@clisp.org>
54814
54815                 * config.charset: Update Juan Manuel Guerrero's address.
54816
54817         2005-02-12  Bruno Haible  <bruno@clisp.org>
54818
54819                 * allocsa.h: Add extern "C" for C++.
54820
54821         2005-02-10  Bruno Haible  <bruno@clisp.org>
54822
54823                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
54824                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
54825
54826         2006-07-22  Bruno Haible  <bruno@clisp.org>
54827
54828                 * gettext.h: Update to GNU gettext-0.15.
54829
54830 2006-07-22  Bruno Haible  <bruno@clisp.org>
54831
54832         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
54833         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
54834         lib-prefix.m4, longdouble.m4, ssize_t.m4.
54835
54836 2006-07-21  Eric Blake  <ebb9@byu.net>
54837
54838         * modules/stdlib-safer: New file.
54839         * MODULES.html.sh (File stream based Input/Output): Add
54840         stdlib-safer.
54841
54842 2006-07-21  Eric Blake  <ebb9@byu.net>
54843
54844         * lib/stdlib-safer.h: New file from coreutils, required by
54845         stdlib--.h.
54846
54847 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
54848
54849         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
54850
54851 2006-07-20  Bruno Haible  <bruno@clisp.org>
54852
54853         * gnulib-tool: Recognize new option --assume-autoconf.
54854         (autoconf_minversion): New variable.
54855         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
54856
54857 2006-07-20  Bruno Haible  <bruno@clisp.org>
54858
54859         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
54860
54861 2006-07-19  Derek R. Price  <derek@ximbiot.com>
54862
54863         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
54864         Reindent and repaginate.
54865
54866 2006-07-19  Derek Price  <derek@ximbiot.com>
54867
54868         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
54869         Correct grammar.
54870
54871 2006-07-17  Bruno Haible  <bruno@clisp.org>
54872
54873         * modules/list: New file.
54874         * modules/array-list: New file.
54875         * modules/carray-list, modules/carray-list-tests: New files.
54876         * modules/linked-list, modules/linked-list-tests: New files.
54877         * modules/avltree-list, modules/avltree-list-tests: New files.
54878         * modules/rbtree-list, modules/rbtree-list-tests: New files.
54879         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
54880         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
54881         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
54882         * modules/oset: New file.
54883         * modules/array-oset: New file.
54884         * modules/avltree-oset, modules/avltree-oset-tests: New files.
54885         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
54886         * tests/test-carray_list.c: New file.
54887         * tests/test-linked_list.c: New file.
54888         * tests/test-avltree_list.c: New file.
54889         * tests/test-rbtree_list.c: New file.
54890         * tests/test-linkedhash_list.c: New file.
54891         * tests/test-avltreehash_list.c: New file.
54892         * tests/test-rbtreehash_list.c: New file.
54893         * tests/test-avltree_oset.c: New file.
54894         * tests/test-rbtree_oset.c: New file.
54895         * MODULES.html.sh (Container data structures): New section.
54896
54897 2006-07-17  Bruno Haible  <bruno@clisp.org>
54898
54899         * m4/gl_list.m4: New file.
54900
54901 2006-07-17  Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/gl_list.h: New file.
54904         * lib/gl_list.c: New file.
54905         * lib/gl_array_list.h: New file.
54906         * lib/gl_array_list.c: New file.
54907         * lib/gl_carray_list.h: New file.
54908         * lib/gl_carray_list.c: New file.
54909         * lib/gl_linked_list.h: New file.
54910         * lib/gl_linked_list.c: New file.
54911         * lib/gl_anylinked_list1.h: New file.
54912         * lib/gl_anylinked_list2.h: New file.
54913         * lib/gl_avltree_list.h: New file.
54914         * lib/gl_avltree_list.c: New file.
54915         * lib/gl_anyavltree_list1.h: New file.
54916         * lib/gl_anyavltree_list2.h: New file.
54917         * lib/gl_rbtree_list.h: New file.
54918         * lib/gl_rbtree_list.c: New file.
54919         * lib/gl_anyrbtree_list1.h: New file.
54920         * lib/gl_anyrbtree_list2.h: New file.
54921         * lib/gl_anytree_list1.h: New file.
54922         * lib/gl_anytree_list2.h: New file.
54923         * lib/gl_linkedhash_list.h: New file.
54924         * lib/gl_linkedhash_list.c: New file.
54925         * lib/gl_anyhash_list1.h: New file.
54926         * lib/gl_anyhash_list2.h: New file.
54927         * lib/gl_avltreehash_list.h: New file.
54928         * lib/gl_avltreehash_list.c: New file.
54929         * lib/gl_rbtreehash_list.h: New file.
54930         * lib/gl_rbtreehash_list.c: New file.
54931         * lib/gl_anytreehash_list1.h: New file.
54932         * lib/gl_anytreehash_list2.h: New file.
54933
54934         * lib/gl_oset.h: New file.
54935         * lib/gl_oset.c: New file.
54936         * lib/gl_array_oset.h: New file.
54937         * lib/gl_array_oset.c: New file.
54938         * lib/gl_avltree_oset.h: New file.
54939         * lib/gl_avltree_oset.c: New file.
54940         * lib/gl_rbtree_oset.h: New file.
54941         * lib/gl_rbtree_oset.c: New file.
54942         * lib/gl_anytree_oset.h: New file.
54943
54944 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54945
54946         * m4/mkancesdirs.m4: New file.
54947         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
54948         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
54949         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
54950         it.
54951
54952 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54953
54954         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
54955         * lib/mkancesdirs.h: New files.
54956         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
54957         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
54958         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
54959         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
54960         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
54961         callers changed.  Revamp internals significantly, by not
54962         attempting to create directories that are temporarily more
54963         permissive than the final results.  Do not attempt to use
54964         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
54965         This removes some race conditions, fixes some bugs, and simplifies
54966         things.  Use new dirchownmod function to do owner and mode changes.
54967         * lib/mkdir-p.h: Likewise.
54968         * lib/modechange.c (octal_to_mode): New function.
54969         (struct mode_change): New member mentioned.
54970         (make_node_op_equals): New arg mentioned.  All callers changed.
54971         (mode_compile): Keep track of which mode bits the user has explicitly
54972         mentioned.
54973         (mode_adjust): New arg DIR, so that we implement the X op correctly.
54974         New arg PMODE_BITS, to keep track of which mode bits the user
54975         mentioned; it treats S_ISUID and S_ISGID speciall.
54976         All callers changed.
54977         * lib/modechange.h: Likewise.
54978
54979 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54980
54981         * MODULES.html.sh: Add mkancestors.
54982         * modules/mkancesdirs: New module.
54983         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
54984         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
54985         The chdir-safer and afs files are now orphans; I'll remove them
54986         unless someone speaks up.
54987         Add lib/dirchownmod.c, lib/dirchownmod.h.
54988         (Depends-on): Remove alloca, chown, save-cwd, dirname.
54989         Add lchown, mkancesdirs.
54990         (Maintainer): Add self.
54991
54992 2006-07-15  Karl Berry  <karl@gnu.org>
54993
54994         * gnulib-tool: help message wording/arrangement.
54995
54996 2006-07-14  Simon Josefsson  <jas@extundo.com>
54997
54998         * doc/gnulib.texi (Libtool and Windows): New section.
54999
55000 2006-07-12  Simon Josefsson  <jas@extundo.com>
55001
55002         * modules/gendocs (License): Fix license, approved by Karl.
55003
55004 2006-07-12  Eric Blake  <ebb9@byu.net>
55005
55006         * MODULES.html.sh: Add gendocs.
55007
55008 2006-07-11  Eric Blake  <ebb9@byu.net>
55009
55010         * modules/fdl: New module, to install doc/fdl.texi.
55011         * MODULES.html.sh: Add new section for documentation modules.
55012         * gnulib-tool: Avoid space-tab.
55013         (--doc-base): New option, to manage files from doc.
55014
55015 2006-07-11  Eric Blake  <ebb9@byu.net>
55016
55017         * m4/absolute-header.m4: Fix comments to match recent change.
55018
55019 2006-07-11  Eric Blake  <ebb9@byu.net>
55020
55021         * gnulib-tool: List --doc-base before --tests-base.
55022
55023 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55024
55025         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55026
55027 2006-07-11  Bruno Haible  <bruno@clisp.org>
55028
55029         * README: Mention where to put documentation.
55030
55031 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55032
55033         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55034
55035 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55036
55037         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55038         to stdint.m4.
55039
55040 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55041
55042         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55043         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55044         "no/such/file/stdint.h" when there is no such file, so that
55045         the resulting C code can be parsed by dodgy compilers.
55046         Problems reported by Bob Proulx.
55047
55048 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55049
55050         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55051         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55052         macros into the GNU _D_EXACT_NAMLEN.
55053         * lib/savedir.c:  Likewise.
55054         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55055
55056 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55057         and Paul Eggert  <eggert@cs.ucla.edu>
55058
55059         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55060         * m4/savedir.m4:
55061         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55062         macros into the GNU _D_EXACT_NAMLEN.
55063
55064 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55065
55066         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55067         around the absolute name, to work around a problem with the HP-UX
55068         11.23 native C compiler, reported by Bob Proulx.
55069
55070 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55071
55072         * doc/maintain.texi, make-stds.texi: Sync from
55073         <http://savannah.gnu.org/projects/gnustandards>.
55074
55075 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55076
55077         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55078
55079 2006-07-09  Jim Meyering  <jim@meyering.net>
55080
55081         * m4/glob.m4: Remove a doubled word in a comment.
55082
55083 2006-07-09  Jim Meyering  <jim@meyering.net>
55084
55085         * lib/argp-pv.c: Remove a doubled word in a comment.
55086         * lib/check-version.c (check_version): Likewise.
55087         * lib/javacomp.c (compile_java_class): Likewise.
55088
55089 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55090
55091         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55092         for the benefit of people using Autoconf 2.60.  If you want to
55093         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55094         (or m4/onceonly.m4, if pre-2.57) manually.
55095
55096 2006-07-08  Jim Meyering  <jim@meyering.net>
55097
55098         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55099         comment.
55100         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55101         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55102         comment.
55103
55104 2006-07-08  Jim Meyering  <jim@meyering.net>
55105
55106         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55107
55108 2006-07-07  Simon Josefsson  <jas@extundo.com>
55109
55110         * tests/test-crc.c: Change expected crc value, the test vector
55111         were probably computed using the old broken crc.c?
55112
55113 2006-07-06  Simon Josefsson  <jas@extundo.com>
55114
55115         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55116         now the canonical place for the M4 file).
55117
55118         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55119         from the sys_socket dependency now.
55120
55121         * modules/inet_pton (Files): Ditto.
55122
55123         * modules/inet_ntop (Files): Ditto.
55124
55125 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55126
55127         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55128         not gl_PREREQ_GETUSERSHELL.
55129
55130 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55131
55132         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55133         with only one argument, for Autoconf 2.60.
55134         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55135         expand to nothing, so add a shell command to avoid syntax error.
55136         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55137
55138 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55139
55140         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55141
55142 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55145         no longer needed.  Check for isblank decl.
55146         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55147         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55148         of existence.
55149
55150 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         * lib/getloadavg.c: Use __VMS, not VMS.
55153         * lib/getopt.c: Likewise.
55154         * lib/getpagesize.h: Likewise.
55155         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55156         and probably does not work.
55157
55158 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55159
55160         * lib/.cppi-disable: Add wcwidth.
55161         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55162         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55163         (ISGRAPH): Remove.  All uses changed to isgraph.
55164         (FOLD) [!defined _LIBC]: Remove special case.
55165         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55166         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55167         HAVE_ISBLANK.
55168         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55169         case.
55170
55171 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55172
55173         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55174         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55175         brackets.  Other minor changes to suppress some compiler
55176         warnings.
55177
55178 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55179         and Paul Eggert  <eggert@cs.ucla.edu>
55180
55181         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55182         of invoking obsolescent AC_HEADER_DIRENT macro.
55183         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55184         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55185         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55186         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55187         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55188         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55189         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55190         * m4/readdir.m4: Remove; no longer needed.
55191
55192 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55193         and Paul Eggert  <eggert@cs.ucla.edu>
55194
55195         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55196         Don't worry about this obsolete case any more.
55197         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55198         directories.
55199         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55200         worry about this obsolete case any more.
55201         * lib/fts.c: Likewise.
55202         * lib/getcwd.c: Likewise.
55203         * lib/glob.h: Likewise.
55204         * lib/savedir.c: Likewise.
55205
55206 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55207
55208         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55209         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55210         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55211         needed.
55212         All uses removed.
55213         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55214         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55215         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55216         needed.
55217         * m4/getdate.m4 (gl_GETDATE): Likewise.
55218         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55219         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55220         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55221         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55222         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55223         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55224         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55225         needed.
55226
55227 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55228
55229         * lib/memcasecmp.c: Include <limits.h>.
55230         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55231         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55232         Don't assume isdigit succeeds only on '0' through '9'.
55233
55234 2006-07-05  Eric Blake  <ebb9@byu.net>
55235
55236         * modules/getaddrinfo (Depends-on): Add snprintf.
55237
55238 2006-07-05  Eric Blake  <ebb9@byu.net>
55239
55240         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55241         to avoid 'header present but could not be compiled' on cygwin.
55242
55243 2006-07-05  Eric Blake  <ebb9@byu.net>
55244
55245         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55246         missing from netdb.h.
55247         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55248
55249 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55250
55251         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55252         no longer needed.
55253         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55254         * m4/getdate.m4 (gl_GETDATE): Likewise.
55255         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55256         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55257         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55258         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55259         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55260
55261 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55262
55263         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55264         All uses of is_space replaced by isspace.
55265         * lib/exit.h: Don't talk about STDC_HEADERS.
55266         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55267         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55268         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55269         replaced by isprint etc.
55270         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55271         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55272         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55273         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55274         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55275         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55276
55277 2006-07-05  Bruno Haible  <bruno@clisp.org>
55278
55279         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55280         the function exists, before testing against AIX.
55281         Reported by Martin Lambers <marlam@marlam.de>.
55282
55283 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55286         From Mark D. Baushke.
55287
55288 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55291         to the absolute name, not just one, to bypass Sun C 5.8's
55292         "warning: #include of /usr/include/... may be non-portable".
55293
55294 2006-07-04  Eric Blake  <ebb9@byu.net>
55295
55296         * modules/dirname-tests: New test module.
55297         * tests/test-dirname.c: New file, replacing dirname.c
55298         TEST_DIRNAME section that was recently deleted.
55299
55300 2006-07-04  Bruno Haible  <bruno@clisp.org>
55301
55302         Assume ANSI C header files and <ctype.h> functions.
55303         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55304         (mbsnwidth): Use isprint, iscntrl instead.
55305
55306 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55307
55308         Merge from coreutils.
55309         * MODULES.html.sh: Add xstrtold.
55310         * modules/xstrtold: New file.
55311         * modules/cycle-check (Files): Add lib/same-inode.h.
55312         * modules/dirname (Files): Add m4/double-slash-root.m4.
55313         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55314         * modules/mkdir-p (Files): Add lib/same-inode.h.
55315         * modules/same (Files): Add lib/same-inode.h.
55316
55317 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55318
55319         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55320         This is to keep the terminology clean; POSIX talks about
55321         "absolute pathnames", not "full pathnames", but the GNU
55322         Coding Standards say to use "path" for something else;
55323         so use "absolute" to keep both sides happy.
55324         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55325         Set gl_absolute_header, not gl_full_header_path.
55326         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55327         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55328         All uses changed.
55329
55330         Merge from coreutils.
55331
55332         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55333
55334         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55335         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55336         want to require the building of c-strtod.o.
55337         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55338         needs -lm directly.
55339         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
55340
55341         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55342
55343         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
55344         --as-needed option if available.  Problem reported by Albert Chin in
55345         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
55346         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
55347         cc merely issues a bunch of annoying warnings for --as-needed
55348         (this problem was reported by Bob Proulx).  Also, try linking with
55349         -lm to detect a bug in binutils 2.16 (this problem was reported
55350         by Ralf Wildenhues).
55351
55352         2006-06-18  Jim Meyering  <jim@meyering.net>
55353
55354         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
55355         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
55356         macro.
55357         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
55358         also check for glibc-2.4's abort-inducing bug.
55359
55360         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
55361         Low-probability clean-up should be to use rmdir to get rid of
55362         the just-created directory, not unlink.
55363
55364         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
55365         configure fail, and request a bug report to inform us about it.
55366         Add a comment that, barring reports to the contrary, in 2007 we'll
55367         assume ftruncate is universally available.
55368
55369         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55370
55371         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55372
55373         2006-03-12  Jim Meyering  <jim@meyering.net>
55374
55375         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55376         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55377         * m4/same.m4 (gl_SAME): Likewise.
55378         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55379
55380         2006-03-11  Eric Blake  <ebb9@byu.net>
55381
55382         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55383         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55384         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55385         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55386
55387 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55388
55389         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55390         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55391         reported by Mark D. Baushke, one in
55392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55393
55394         Merge from coreutils.
55395
55396         * lib/.cppi-disable: Add stdint_.h.
55397         * lib/.cvsignore: Add stdint.h.
55398
55399         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55400
55401         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55402         both double and long double versions.
55403         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55404         * lib/xstrtold.c: New file.
55405         * lib/xstrtod.h (xstrtold): New decl.
55406
55407         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * lib/filemode.c (setst): Remove.
55410         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55411         (arguably) clearer, and the generated code is a bit smaller on my
55412         Debian GNU/Linux stable x86 host.
55413
55414         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55415
55416         * lib/filemode.c: Include "filemode.h" first, to test the interface.
55417         Assume that filemode.h includes sys/types.h and sys/stat.h.
55418         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
55419         (ftypelet): Reorder to put common cases first, for efficiency.
55420         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
55421         to do 'M'.
55422         (strmode): Renamed from mode_string, and now stores 12 bytes instead
55423         of 10, for compatibility with FreeBSD.  All callers changed.
55424         (filemodestring): Now stores 12 bytes instead of 10, and sets file
55425         types that can't be deduced solely from st_mode.  First arg is now a
55426         const pointer.
55427         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
55428         (strmode): Renamed from mode_string.
55429         (filemodestring): New decl.
55430         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
55431         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
55432         needed.
55433         (S_ISPORT, S_ISWHT): New macros, if not already defined.
55434
55435         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55436
55437         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
55438         fsusage.h now does that.  Include fsusage.h first, to test interface.
55439         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
55440         at most one method (the old code could have generated decls that
55441         didn't conform to C89, not that this was ever exercised).
55442         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
55443
55444         2006-03-19  Jim Meyering  <jim@meyering.net>
55445
55446         Work even in a chroot where d_ino values for entries in "/"
55447         don't match the stat.st_ino values for the same names.
55448         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
55449         number, iterate through all entries again, using lstat instead.
55450         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
55451         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
55452
55453         * lib/getcwd.c (__getcwd): Clarify a comment.
55454         Use memcpy in place of a call to strcpy.
55455
55456         2006-03-12  Jim Meyering  <jim@meyering.net>
55457
55458         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
55459         matches that of the current directory (which we're about to chdir ".."
55460         out of), then save the dev-ino of the parent, instead.
55461
55462         * lib/same-inode.h (SAME_INODE): New file/macro.
55463         * lib/chdir-safer.c (SAME_INODE): Remove definition.
55464         Include "same-inode.h", instead.
55465         * lib/same.c: Likewise.
55466         * lib/cycle-check.h: Include "same-inode.h".
55467         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
55468         * lib/cycle-check.c (SAME_INODE): Remove definition.
55469         * lib/root-dev-ino.h: Include "same-inode.h".
55470
55471         2006-03-11  Eric Blake  <ebb9@byu.net>
55472
55473         * lib/same.c (same_name): s/base_name/last_component/
55474         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
55475         * lib/filenamecat.c (file_name_concat): Likewise.
55476
55477         2006-03-11  Eric Blake  <ebb9@byu.net>,
55478                     Paul Eggert  <eggert@cs.ucla.edu>
55479
55480         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
55481         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
55482         drive prefix.
55483         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
55484         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
55485         (last_component): New method.
55486         * lib/dirname.c (dir_len): Determine when drive letters need a
55487         subsequent slash.  Preserve // when it is special.
55488         (dir_name): Don't append dot when drive letter is absolute.
55489         [TEST_DIRNAME]: Move into a full-blown gnulib test.
55490         * lib/basename.c (base_name): New semantics - malloc the result.
55491         Preserve // when it is special.  Preserve relative files that look
55492         like drive letters.
55493         (base_len): Preserve // when it is special.
55494         (last_component): New method, similar to old base_name semantics.
55495         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
55496         base_name.  Strip redundant slashes from ///.
55497
55498 2006-07-03  Jim Meyering  <jim@meyering.net>
55499
55500         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
55501         macro is used before the first cycle_check call.
55502
55503 2006-07-03  Eric Blake  <ebb9@byu.net>
55504
55505         * modules/dirname (Depends-on): Add xstrndup.
55506
55507 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55508
55509         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
55510         test cases, so that config.log is a bit easier to follow.
55511
55512 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55513
55514         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
55515         both are 64 bits, since this seems to be the tradition, and this
55516         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
55517         we ever run into a host that prefers long long to long in this
55518         case, we'll need another configure-time test.  Problem reported by
55519         Jim Meyering.
55520
55521 2006-07-02  Eric Blake  <ebb9@byu.net>
55522
55523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
55524
55525 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55526
55527         * modules/inttypes (Depends-on): No longer depends on stdint.
55528         * modules/stdint (Description): Say more about assumptions.
55529         Say that the fast types might differ.  Say macros are used.
55530         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
55531         (Makefile.am): Revise list of substituted symbols to match
55532         new stdint.m4.
55533         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
55534         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
55535         * tests/test-stdint.c (verify_same_types)
55536         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
55537         the code conforms to C99/C89.
55538         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
55539         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
55540
55541 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55542
55543         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
55544         but fix a bug, by requiring at least 64 bits.
55545         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55546         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
55547         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
55548         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
55549
55550         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
55551         changes.  Make 2.59 a prerequisite.  Check and substitute for
55552         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
55553         inttypes.h.  Do not use special include files; just use the
55554         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
55555         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
55556         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
55557         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
55558         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
55559         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
55560         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
55561         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
55562         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
55563         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
55564         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
55565         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
55566         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
55567         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
55568         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
55569         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
55570         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
55571         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
55572         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
55573         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
55574         WINT_MAX.  Check for C99 conformance more strictly, by detecting
55575         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
55576         not check for things that C99 does not require, e.g., int8_t.  If
55577         a test isn't needed unless <stdint.h> isn't working, and is
55578         unlikely to be needed for any other reason, then don't do it
55579         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
55580         size_t, since we assume C89 freestanding at least.  Do not check
55581         for sig_atomic_t, wchar_t, or wint_t, since the code now does
55582         the right thing even if the types are not defined.  Instead use:
55583         (gl_STDINT_TYPE_PROPERTIES): New macro.
55584         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
55585         testing whether <sys/types.h> clashes, as Autoconf does this for
55586         us now.  All uses removed.
55587         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
55588         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
55589         (gl_CHECK_TYPE_SAME):
55590         Remove; no longer needed.
55591         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
55592         exists, since we'll return 0 anyway in that case.
55593         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
55594
55595 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55596
55597         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
55598         possible collision with system files.
55599         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
55600         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
55601         WCHAR_MIN and WCHAR_MAX in this case.
55602         (<stddef.h>): Do not include; no longer needed.
55603         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
55604         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
55605         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
55606         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
55607         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
55608         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
55609         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
55610         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
55611         !defined(__c99))]: Include in this case too, since it's harmless
55612         now.
55613         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
55614         dangerous to do so.
55615         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
55616         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
55617         (_STDINT_MIN, _STDINT_MAX): New macros.
55618         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
55619         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
55620         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
55621         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
55622         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
55623         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
55624         macros, not typedefs; this simplifies things quite a bit.
55625         Use long int for all types narrower than int64_t.
55626         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
55627         Define in terms of long long int or int64_t or long int,
55628         not int64_t or int32_t.  This saves some compile-time testing.
55629         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
55630         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
55631         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
55632         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
55633         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
55634         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
55635         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
55636         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
55637         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
55638         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
55639         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55640         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55641         undef any previous version and define our own version, for
55642         simplicity and consistency with the new macros for types.
55643         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55644         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55645         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
55646         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
55647         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
55648         @WINT_T_SUFFIX@ to keep things simple here.
55649         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
55650         Simplify by assuming typical 8/16/32/64 host, since we're
55651         already doing that elsewhere anyway.
55652         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
55653         and assume long long int is 64 bits if available.  This
55654         speeds up 'configure'.
55655
55656 2006-07-01  Eric Blake  <ebb9@byu.net>
55657
55658         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
55659         Reported by Andreas Buening.
55660
55661 2006-07-01  Eric Blake  <ebb9@byu.net>
55662
55663         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
55664
55665 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55666
55667         * lib/getaddrinfo.c: fixed typo
55668
55669 2006-06-29  Jim Meyering  <jim@meyering.net>
55670
55671         * modules/strftime (Maintainer): Add my name, since with the
55672         FPRINTFTIME changes strftime.c has forked from glibc.
55673
55674 2006-06-29  Eric Blake  <ebb9@byu.net>
55675
55676         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
55677
55678 2006-06-29  Eric Blake  <ebb9@byu.net>
55679
55680         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
55681
55682 2006-06-29  Eric Blake  <ebb9@byu.net>
55683
55684         * lib/stat_.h: New file.
55685
55686 2006-06-29  Eric Blake  <ebb9@byu.net>
55687
55688         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
55689         unused static function.
55690
55691 2006-06-29  Eric Blake  <ebb9@byu.net>
55692
55693         * doc/functions.texi (Function Portability): Document missing lstat
55694         on mingw.
55695
55696 2006-06-29  Eric Blake  <ebb9@byu.net>
55697
55698         * MODULES.html.sh: Add sys_stat.
55699         * modules/sys_stat: New module.
55700         * modules/mkstemp (Depends-on): Add sys_stat.
55701
55702 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55703
55704         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
55705
55706 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55707
55708         * m4/c-bs-a.m4: Removed.
55709
55710 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55711
55712         * lib/strftime.c: Assume strftime() exists.
55713
55714 2006-06-29  Derek Price  <derek@ximbiot.com>
55715
55716         * modules/c-bs-a: Removed - \a is C89.
55717         * MODULES.html.sh: Remove c-bs-a.
55718
55719 2006-06-29  Bruno Haible  <bruno@clisp.org>
55720
55721         * modules/wcwidth (License): Change to LGPL.
55722
55723 2006-06-28  Simon Josefsson  <jas@extundo.com>
55724
55725         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
55726         on _WIN32.
55727
55728         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
55729         getnameinfo.
55730
55731 2006-06-28  Simon Josefsson  <jas@extundo.com>
55732
55733         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
55734
55735 2006-06-28  Simon Josefsson  <jas@extundo.com>
55736
55737         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
55738         functions there.  It will succeed on Windows XP, but on Windows
55739         2000 and (presumably) earlier, it will fail, and use the internal
55740         re-implementation.
55741         (use_win32_p): New function.
55742         (getaddrinfo): Use strtoul on servname, to support numeric ports.
55743         Support AI_NUMERICSERV to disable getservbyname.
55744         (getnameinfo): New function, only supports
55745         NI_NUMERICHOST|NI_NUMERICSERV for now.
55746
55747         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
55748         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
55749         getnameinfo.
55750
55751 2006-06-28  Eric Blake  <ebb9@byu.net>
55752
55753         * modules/wcwidth: New file.
55754         * modules/mbchar (Depends-on): Add wcwidth.
55755         * modules/mbswidth (Depends-on): Add wcwidth.
55756         * MODULES.html.sh: Add wcwidth.
55757
55758 2006-06-28  Eric Blake  <ebb9@byu.net>
55759
55760         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
55761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
55762
55763 2006-06-28  Eric Blake  <ebb9@byu.net>
55764
55765         * lib/xvasprintf.h: Fix comments.
55766
55767 2006-06-28  Eric Blake  <ebb9@byu.net>
55768
55769         * lib/mbchar.h (wcwidth): Include wcwidth.h.
55770         * lib/mbswidth.c (wcwidth): Move from here...
55771         * lib/wcwidth.h: ...to this new file.
55772
55773 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55774
55775         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
55776
55777         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
55778         it's obsolete.
55779         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
55780
55781 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55782
55783         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
55784         Autoconf 2.60 says this stuff was obsolete.
55785
55786 2006-06-28  Bruno Haible  <bruno@clisp.org>
55787
55788         * modules/wcwidth (Files): Add m4/wchar_t.m4.
55789
55790 2006-06-28  Bruno Haible  <bruno@clisp.org>
55791
55792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
55793         gt_TYPE_WCHAR_T.
55794
55795 2006-06-28  Bruno Haible  <bruno@clisp.org>
55796
55797         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
55798         declaration for wcwidth.
55799         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
55800
55801 2006-06-28  Bruno Haible  <bruno@clisp.org>
55802
55803         * lib/mkdtemp.c [MINGW]: Include <io.h>.
55804         (mkdir): Define using _mkdir.
55805
55806 2006-06-28  Bruno Haible  <bruno@clisp.org>
55807
55808         * lib/getaddrinfo.h: Fix POSIX URL.
55809         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
55810         _WIN32.
55811         (use_win32_p): Make static.
55812         (getaddrinfo): Reject service name if it is empty or does not consist
55813         solely of decimal digits, or if its value is > 65535.
55814         (getnameinfo): Remove useless casts.
55815
55816 2006-06-27  Simon Josefsson  <jas@extundo.com>
55817
55818         * modules/sys_select: New file, suggested by Bruno Haible, Paul
55819         Eggert and Martin Lambers.
55820
55821 2006-06-27  Simon Josefsson  <jas@extundo.com>
55822
55823         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
55824         Eggert and Martin Lambers.
55825
55826 2006-06-27  Bruno Haible  <bruno@clisp.org>
55827
55828         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
55829         result to 0, not to empty.
55830         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
55831
55832 2006-06-27  Bruno Haible  <bruno@clisp.org>
55833
55834         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
55835
55836 2006-06-26  Simon Josefsson  <jas@extundo.com>
55837
55838         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
55839         present.
55840
55841 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
55842
55843         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
55844         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
55845         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
55846
55847 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
55848
55849         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
55850
55851 2006-06-26  Bruno Haible  <bruno@clisp.org>
55852
55853         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
55854
55855 2006-06-26  Bruno Haible  <bruno@clisp.org>
55856
55857         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
55858
55859 2006-06-26  Bruno Haible  <bruno@clisp.org>
55860
55861         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
55862         SGI C compiler in pre-C99 mode.
55863         Suggested by Mark D. Baushke and Larry Jones.
55864
55865 2006-06-26  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
55868         WCHAR_MAX.
55869         Reported by Mark D. Baushke and Larry Jones.
55870
55871 2006-06-26  Bruno Haible  <bruno@clisp.org>
55872
55873         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
55874         in pre-C99 mode.
55875         Suggested by Mark D. Baushke and Larry Jones.
55876
55877 2006-06-23  Simon Josefsson  <jas@extundo.com>
55878             Bruno Haible  <bruno@clisp.org>
55879
55880         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
55881         Emit mostlyclean-local rule.
55882         (func_emit_tests_Makefile_am): Likewise.
55883         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
55884
55885 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
55886
55887         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
55888
55889 2006-06-23  Bruno Haible  <bruno@clisp.org>
55890
55891         * tests/test-stdint.c: Update to match ISO C 99 Technical
55892         Corrigendum 1.
55893
55894 2006-06-23  Bruno Haible  <bruno@clisp.org>
55895
55896         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
55897
55898 2006-06-23  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/stdint_.h: Treat IRIX like OpenBSD.
55901
55902 2006-06-23  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
55905         ISO C 99 Technical Corrigendum 1.
55906
55907 2006-06-22  Simon Josefsson  <jas@extundo.com>
55908
55909         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
55910         MinGW.
55911
55912 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55913
55914         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
55915         needed.  Some compiler complained about some of them.  Problem reported
55916         by Larry Jones in
55917         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
55918
55919 2006-06-21  Simon Josefsson  <jas@extundo.com>
55920
55921         * tests/test-getaddrinfo.c: New file.
55922
55923         * modules/getaddrinfo-tests: New file.
55924
55925         * MODULES.html.sh: Add inet_pton.
55926
55927         * modules/inet_pton: New file.
55928
55929 2006-06-21  Simon Josefsson  <jas@extundo.com>
55930
55931         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
55932         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
55933         of using the (limited) gnulib implementation on Windows XP.
55934
55935         * m4/inet_pton.m4: New file.
55936
55937 2006-06-21  Simon Josefsson  <jas@extundo.com>
55938
55939         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
55940         variable.
55941
55942         * lib/socket_.h: Don't define WINVER.
55943
55944         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
55945         slightly modified to work in gnulib.
55946
55947 2006-06-21  Simon Josefsson  <jas@extundo.com>
55948
55949         * doc/gnulib.texi (Windows sockets): Add.
55950
55951 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55952
55953         * lib/read-file.c (fread_file): Start with buffer allocation of
55954         0 bytes rather than 1 byte; this simplifies the code.
55955         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
55956         code to free buffer and save/restore errno.
55957         (internal_read_file): Remove unused local.
55958
55959 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55960
55961         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
55962         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
55963         Problem reported by Denis Excoffier in
55964         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
55965
55966 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55967
55968         * modules/sys_socket, modules/socklen: Include sys/types since
55969         FreeBSD 4.x's sys/socket.h needs it.
55970
55971 2006-06-19  Simon Josefsson  <jas@extundo.com>
55972
55973         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
55974
55975 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55976
55977         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
55978
55979 2006-06-19  Bruno Haible  <bruno@clisp.org>
55980
55981         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
55982         and FULL_PATH_INTTYPES_H in angle brackets.
55983         Reported by Mark D. Baushke <mdb@gnu.org>.
55984
55985 2006-06-17  Eric Blake  <ebb9@byu.net>
55986
55987         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
55988         errno.
55989
55990 2006-06-17  Bruno Haible  <bruno@clisp.org>
55991
55992         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
55993         <sys/inttypes.h>.
55994
55995 2006-06-17  Bruno Haible  <bruno@clisp.org>
55996
55997         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
55998         whether errno is declared. Assume <errno.h> declares errno.
55999
56000 2006-06-17  Bruno Haible  <bruno@clisp.org>
56001
56002         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56003
56004 2006-06-17  Bruno Haible  <bruno@clisp.org>
56005
56006         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56007         problem on Solaris 2.5.1.
56008
56009 2006-06-16  Eric Blake  <ebb9@byu.net>
56010
56011         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56012         * lib/unicodeio.c [!defined errno]: Likewise.
56013         * lib/strtol.c [!defined errno]: Likewise.
56014         * lib/strtod.c [!defined errno]: Likewise.
56015
56016 2006-06-15  Eric Blake  <ebb9@byu.net>
56017
56018         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56019
56020 2006-06-15  Eric Blake  <ebb9@byu.net>
56021
56022         * config/srclist.txt (ssize_t.m4): Lose sync.
56023
56024 2006-06-15  Bruno Haible  <bruno@clisp.org>
56025
56026         * modules/stdint (Files): Include m4/full-header-path.m4,
56027         m4/size_max.m4, m4/wchar_t.m4.
56028         (Makefile.am): Many more substitutions.
56029         * modules/stdint-tests: New file.
56030         * tests/test-stdint.c: New file.
56031
56032 2006-06-15  Bruno Haible  <bruno@clisp.org>
56033
56034         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56035         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56036         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56037         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56038         gl_CHECK_TYPE_SAME): New macros.
56039
56040 2006-06-15  Bruno Haible  <bruno@clisp.org>
56041
56042         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56043
56044 2006-06-15  Bruno Haible  <bruno@clisp.org>
56045
56046         * lib/stdint_.h: Rewritten to be fully auto-configured.
56047         Fixes bug on HP-UX/IA64.
56048
56049 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56050
56051         * lib/getdate.y (__attribute__): Don't define if already defined.
56052         Problem reported by Larry Jones.
56053         * lib/utimens.c (__attribute__): Likewise.
56054
56055 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56056
56057         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56058         reported by Andreas Schwab.
56059
56060 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56061             Bruno Haible  <bruno@clisp.org>
56062
56063         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56064         check for the declaration of strnlen and a run test that exposes the
56065         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56066         rpl_strndup.
56067
56068 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56069             Bruno Haible  <bruno@clisp.org>
56070
56071         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56072
56073 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56074
56075         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56076         compile test, for Tru64 4.0D.
56077
56078 2006-05-28  Karl Berry  <karl@gnu.org>
56079
56080         * config/srclist.txt (printf-args.c): lose sync.
56081
56082 2006-05-26  Martin Lambers  <marlam@marlam.de>
56083
56084         * lib/getpass.c: Updates the test for the native W32 API, and adds
56085         missing includes, thus fixing compilation warnings.
56086
56087 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56088
56089         * lib/exclude.c (exclude_fnmatch): New function.
56090         (excluded_file_name): Call exclude_fnmatch.
56091         * lib/exclude.h (excluded_file_name): New prototype
56092
56093 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56094
56095         * lib/tempname.c (small_open, large_open): New macros.
56096         (__open, __open64) [!_LIBC]: Remove.
56097         (__gen_tempname): Use small_open and large_open instead of __open
56098         and __open64.  This fixes a portability bug on HP-UX 11.11i
56099         reported by Simon Wing-Tang in
56100         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56101
56102 2006-05-24  Bruno Haible  <bruno@clisp.org>
56103
56104         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56105         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56106         Reported by Thorsten Maerz <torte@netztorte.de> via
56107         Aaron Stone <aaron@serendipity.cx>.
56108
56109 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56110
56111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56112         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56113         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56114         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56115         not really conditional on the cache.
56116         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56117
56118 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56119
56120         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56121         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56122         (my_usleep): Don't mishandle maximum value.
56123
56124 2006-05-19  Jim Meyering  <jim@meyering.net>
56125
56126         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56127
56128 2006-05-17  Bruno Haible  <bruno@clisp.org>
56129
56130         Cygwin portability.
56131         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56132
56133 2006-05-17  Bruno Haible  <bruno@clisp.org>
56134
56135         * lib/stdint_.h: Fix recognition of Cygwin.
56136
56137 2006-05-15  Bruno Haible  <bruno@clisp.org>
56138
56139         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56140         on libtool patch by Ralf Wildenhues.
56141
56142 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56143
56144         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56145         test for C99 conformance; (bool) 0.5 is an integer constant
56146         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56147         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56148
56149 2006-05-11  Simon Josefsson  <jas@extundo.com>
56150
56151         * m4/xvasprintf.m4: Fix obvious typo.
56152
56153 2006-05-11  Jim Meyering  <jim@meyering.net>
56154
56155         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56156         James Lemley.
56157
56158 2006-05-10  Simon Josefsson  <jas@extundo.com>
56159
56160         * lib/md4.c: Typo fix, update copyright years.
56161         (K1, K2): Don't use L because it turn computations into 64-bit on
56162         64-bit platforms.
56163
56164 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56165
56166         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56167         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56168         unwanted sign propagation, e.g., on hosts with 64-bit int.
56169         There still are some problems with reeelly weird theoretical hosts
56170         (e.g., 33-bit int) but it's not worth worrying about now.
56171         * lib/sha1.c (rol): Likewise.
56172         (K1, K2, K3, K4): Remove unnecessary L suffix.
56173
56174 2006-05-10  Bruno Haible  <bruno@clisp.org>
56175
56176         * lib/des.c: Cast to avoid warnings.
56177
56178 2006-05-09  Bruno Haible  <bruno@clisp.org>
56179
56180         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56181         (Depends-on): Depend also on xsize, stdarg.
56182         (configure.ac): Add gl_XVASPRINTF.
56183
56184 2006-05-09  Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/xvasprintf.m4: New file.
56187
56188 2006-05-09  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56191         (EOVERFLOW): Define fallback value.
56192         (xstrcat): New function.
56193         (xvasprintf): Recognize the special case of a string concatenation.
56194
56195 2006-05-08  Eric Blake  <ebb9@byu.net>
56196
56197         * gnulib-tool (func_version): Base copyright year on CVS date.
56198         (func_emit_copyright_notice): New function.
56199         (func_emit_lib_Makefile_am): Use it.
56200         (func_emit_tests_Makefile_am): Likewise.
56201         (func_import): Likewise.
56202
56203 2006-05-08  Bruno Haible  <bruno@clisp.org>
56204
56205         * modules/stdarg: New file.
56206         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56207
56208 2006-05-08  Bruno Haible  <bruno@clisp.org>
56209
56210         * m4/stdarg.m4: New file, from GNU gettext.
56211
56212 2006-05-08  Bruno Haible  <bruno@clisp.org>
56213
56214         * config/srclist.txt (build-aux/config.rpath): different from latest
56215         release.
56216
56217 2006-05-08  Bruno Haible  <bruno@clisp.org>
56218
56219         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56220
56221 2006-05-05  Jim Meyering  <jim@meyering.net>
56222
56223         * m4/warning.m4: New file, derived from bison's file by the same name.
56224
56225 2006-05-03  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/stdint_.h: Shorter URL.
56228         * lib/inttypes.h: Likewise.
56229
56230 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56231
56232         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56233
56234 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56235
56236         * lib/verify.h: Document the internals better.  Most of this change
56237         was written by Bruno Haible.
56238
56239 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56240
56241         * doc/verify.texi: New file, partly based on a proposal by
56242         Bruno Haible.
56243
56244 2006-05-02  Bruno Haible  <bruno@clisp.org>
56245
56246         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56247         test from here...
56248         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56249
56250 2006-04-29  Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56253         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56254
56255 2006-04-29  Bruno Haible  <bruno@clisp.org>
56256
56257         * gnulib-tool: Make --update option actually work.
56258
56259 2006-04-29  Bruno Haible  <bruno@clisp.org>
56260
56261         * doc/gcd.texi: New file.
56262         * doc/gnulib.texi: Include it.
56263
56264 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56265
56266         * lib/getdate.y (get_date): When adding relative date, start with the
56267         initial time, not with the result of the first mktime call.
56268
56269 2006-04-25  Bruno Haible  <bruno@clisp.org>
56270
56271         * gnulib-tool (func_import): Output the include directives in three
56272         blocks, sorted separately.
56273         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56274
56275 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56276
56277         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56278         to define main with arguments, for C++.  Reported by Eric Blake.
56279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56280         Prefer 'int main ()' to 'int main (void)', for C++.
56281         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56282         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56283         for 'main', for C99 and C++.
56284
56285 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56286
56287         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56288         Don't assume that exit status -1 is valid.
56289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56290         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56291         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56292         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56293         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56294         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56295         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56296         functions can be used without declaring them, or that you can
56297         exit with status -1.
56298         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56299
56300 2006-04-24  Karl Berry  <karl@gnu.org>
56301
56302         * config/srclist.txt (longdouble.m4): sync lost.
56303
56304 2006-04-24  Eric Blake  <ebb9@byu.net>
56305
56306         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56307
56308 2006-04-24  Bruno Haible  <bruno@clisp.org>
56309
56310         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56311         poll() implementation in AIX.
56312         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56313
56314 2006-04-24  Bruno Haible  <bruno@clisp.org>
56315
56316         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56317         assigned exactly once.
56318
56319 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56320             Bruno Haible  <bruno@clisp.org>
56321
56322         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56323         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56324         for AM_CPPFLAGS.
56325
56326 2006-04-23  Bruno Haible  <bruno@clisp.org>
56327
56328         * modules/copy-file: Depend on unistd.
56329         * modules/execute: Likewise.
56330         * modules/fatal-signal: Likewise.
56331         * modules/findprog: Likewise.
56332         * modules/mkdtemp : Likewise.
56333         * modules/pipe: Likewise.
56334         * modules/wait-process: Likewise.
56335
56336 2006-04-23  Bruno Haible  <bruno@clisp.org>
56337
56338         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56339         condition was already detected.
56340         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56341
56342 2006-04-23  Bruno Haible  <bruno@clisp.org>
56343
56344         * lib/copy-file.c: Include <unistd.h> unconditionally.
56345         * lib/execute.c: Likewise.
56346         * lib/fatal-signal.c: Likewise.
56347         * lib/findprog.c: Likewise.
56348         * lib/mkdtemp.c: Likewise.
56349         * lib/pipe.h: Likewise.
56350         * lib/pipe.c: Likewise.
56351         * lib/wait-process.h: Likewise.
56352
56353 2006-04-23  Bruno Haible  <bruno@clisp.org>
56354
56355         * gnulib-tool (func_usage): Fix --import description. Document
56356         --update.
56357         (func_import): Create temporary file in a temporary directory, if
56358         --dry-run is specified. Silence errors from 'grep' when there are no
56359         m4 files in $m4dir.
56360         (func_create_testdir): Silence errors from 'grep' when there are no
56361         m4 files in $m4dir.
56362         Reported by Karl Berry <karl@freefriends.org>.
56363
56364 2006-04-20  Bruno Haible  <bruno@clisp.org>
56365
56366         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56367         one argument, so that the code will be portable to Autoconf 2.60.
56368         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56369         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56370         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56371
56372 2006-04-19  Derek Price  <derek@ximbiot.com>
56373             Eric Blake  <ebb9@byu.net>
56374
56375         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56376         rather than "/full/path.h".  Update comment to match.  Shorten &
56377         generalize m4_translit call via AS_TR_CPP.
56378
56379 2006-04-19  Derek Price  <derek@ximbiot.com>
56380             Eric Blake  <ebb9@byu.net>
56381
56382         * lib/inttypes.h: Correct grammar in comment.
56383
56384 2006-04-18  Derek Price  <derek@ximbiot.com>
56385             Paul Eggert  <eggert@cs.ucla.edu>
56386
56387         * modules/inttypes: New file.
56388         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56389
56390 2006-04-18  Derek Price  <derek@ximbiot.com>
56391             Paul Eggert  <eggert@cs.ucla.edu>
56392
56393         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56394         New files.
56395
56396 2006-04-18  Derek Price  <derek@ximbiot.com>
56397             Paul Eggert  <eggert@cs.ucla.edu>
56398
56399         * lib/inttypes.h: New file.
56400         * lib/strtoimax.c: Assume <inttypes.h>.
56401
56402 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56403
56404         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56405         isn't mounted.  Problem reported by Kir Kolyshkin.
56406
56407 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56408
56409         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56410         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56411         Derek R. Price.
56412         * lib/regex.h (RE_DUP_MAX): Update comment to match current
56413         implementation.
56414
56415 2006-04-12  Eric Blake  <ebb9@byu.net>
56416
56417         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
56418         is now done automatically by the corresponding Autoconf macro.
56419
56420 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
56421
56422         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
56423         time_r.h.
56424
56425 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56426
56427         Merge regex changes from libc, removing some of our
56428         POSIX-conformance changes that were rejected and redoing them in a
56429         less-intrusive way.
56430
56431         * lib/regcomp.c (re_compile_internal, init_dfa):
56432         Length arg is now size_t, not Idx.  All uses changed.
56433         (peek_token): Forward decl now says internal_function.
56434         (__re_error_msgid, __re_error_msgid_idx):
56435         Now static rather than extern with attribute_hidden.
56436         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
56437         For some reason libc prefers K&R style defns for external functions.
56438         (regerror) [!defined _LIBC]: Likewise.
56439         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
56440         (seek_collating_symbol_entry, lookup_collation_sequence_value):
56441         (build_range_exp, build_collating_symbol):
56442         Use K&R-style defn.
56443         (re_compile_fastmap): Use '\0' to memset, not 0.
56444         (utf8_sb_map): Make the calculations more obvious.
56445         (init_dfa, parse_bracket_exp, build_charclass_op):
56446         Call calloc and cast result, as glibc does.
56447         (init_word_char, fetch_token, peek_token, peek_token_bracket):
56448         (build_range_exp, build_collating_symbol):
56449         Now internal functions.
56450
56451         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
56452
56453         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
56454         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
56455         Don't depend on VMS; depend on __VMS instead, for POSIX
56456         namespace cleanness.
56457         (regoff_t): Define to ssize_t, not long int.
56458
56459         Remove the REG_ macros named below.  Instead, make the old names
56460         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
56461         __USE_GNU_REGEX.
56462         (REG_BACKSLASH_ESCAPE_IN_LISTS):
56463         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
56464         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
56465         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
56466         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
56467         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
56468         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
56469         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
56470         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
56471         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
56472         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
56473         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
56474         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
56475         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
56476         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
56477         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
56478         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
56479         (REG_NREGS):
56480         Remove.  All uses replaced by the old RE_* names.
56481         (RE_BACKSLASH_ESCAPE_IN_LISTS):
56482         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
56483         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
56484         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
56485         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
56486         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
56487         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
56488         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
56489         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
56490         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
56491         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
56492         Don't bother having these macros be independent of each others'
56493         values, since they no longer exist in the POSIX name space.
56494
56495         Rename the following member names back to their old names,
56496         unless !__USE_GNU_REGEX.  All uses changed back.
56497         (buffer): Renamed from re_buffer.
56498         (allocated): Renamed from re_allocated.
56499         (used): Renamed from re_used.
56500         (syntax): Renamed from re_syntax.
56501         (fastmap): Renamed from re_fastmap.
56502         (translate): Renamed from re_translate.
56503         (can_be_null): Renamed from re_can_be_null.
56504         (regs_allocated): Renamed from re_regs_allocated.
56505         (fastmap_accurate): Renamed from re_fastmap_accurate.
56506         (no_sub): Renamed from re_no_sub.
56507         (not_bol): Renamed from re_not_bol.
56508         (not_eol): Renamed from re_not_eol.
56509         (newline_anchor): Renamed from re_newline_anchor.
56510         (num_regs): Renamed from rm_num_regs.
56511         (start): Renamed from rm_start.
56512         (end): Renamed from rm_end.
56513
56514         (free_state): Move up a bit.
56515
56516         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
56517         #define to be empty.
56518         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
56519         when that is what is intended.
56520         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
56521         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
56522         (MAX): New macro.
56523         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
56524         All uses changed back to re_malloc, etc.  It's now the caller's
56525         responsibility to check for overflow; all callers changed.
56526         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
56527         (re_x2nrealloc): Remove.
56528         (free_state): Remove decl.
56529
56530         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
56531         (re_set_registers, re_exec):
56532         Use K&R-style defn.
56533
56534         2006-01-31  Roland McGrath  <roland@redhat.com>
56535
56536         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
56537         Reported by Mike Frysinger <vapier@gentoo.org>.
56538
56539         2006-01-15  Andreas Jaeger  <aj@suse.de>
56540
56541         [BZ #1950]
56542         * lib/regex_internal.c (re_string_reconstruct): Adjust for
56543         build_wcs_upper_buffer change.
56544         (build_wcs_upper_buffer): Change return type.
56545
56546         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
56547
56548         * lib/regex_internal.h: Include <stdint.h> if available.
56549
56550         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
56551
56552         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
56553
56554         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56555
56556         * lib/regcomp.c: Adjust for changed secondary hash function.
56557
56558         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
56559
56560         * lib/regex.h: Pretty printing.
56561         Clean up namespace a bit.
56562
56563         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
56564
56565         * lib/regexec.c (update_cur_sifted_state, check_arrival,
56566         check_arrival_add_next_nodes): Avoid using uninitialized variable.
56567
56568         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56569                     Ulrich Drepper  <drepper@redhat.com>
56570
56571         [BZ #1302]
56572         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
56573         changed.
56574         (bitset_word_t): Renamed from bitset_word.  All uses changed.
56575
56576         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
56577
56578         [BZ #281]
56579         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
56580         * lib/regcomp.c: Remove unnecessary uses of
56581         unsigned RE_TRANSLATE_TYPE.
56582         * lib/regex_internal.h: Likewise.
56583         * lib/regex_internal.c: Likewise.
56584         * lib/regexec.c: Likewise.
56585         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
56586
56587         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
56588
56589         * lib/regexec.c (find_recover_state): Remove unnecessary
56590         initialization.
56591         (transit_state_bkref): Make DFA a const pointer.
56592         (get_subexp): Likewise.
56593         (check_arrival): Likewise.
56594         (update_cur_sifted_state): Likewise.
56595         (re_search_internal): Likewise.
56596         (prune_impossible_nodes): Likewise.
56597         (acquire_init_state_context): Likewise.
56598         (proceed_next_node): Likewise.
56599         (set_regs): Likewise.
56600         (free_fail_stack_return): Likewise.
56601         (check_arrival_expand_ecl): Mark DFA parameter as const.
56602         (check_arrival_expand_ecl_sub): Likewise.
56603         (check_subexp_limits): Likewise.
56604         (sub_epsilon_src_nodes):  Likewise.
56605         (add_epsilon_src_nodes):  Likewise.
56606         (merge_state_array): Likewise.
56607         (update_regs): Likewise.
56608         (build_trtable): Likewise.
56609         (sift_states_backward): Mark MCTX parameter as const.
56610         (build_sifted_states): Likewise.
56611         (update_cur_sifted_state): Likewise.
56612         (sift_states_mkref): Likewise.
56613         (check_arrival_expand_ecl): Mark eclosure as const.
56614         (check_dst_limits_calc_pos_1): Likewise.
56615         * lib/regex_internal.h (re_match_context_t): Make dfa a const
56616         pointer.
56617
56618         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
56619
56620         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
56621         (transit_state_sb): Likewise.
56622         (transit_state_mb): Likewise.
56623         (sift_states_iter_mb): Likewise.
56624         (check_arrival_add_next_nodes): Likewise.
56625         (check_node_accept_bytes): Change first parameter to pointer-to-const.
56626         [_LIBC] (re_search_2_stub): Use mempcpy.
56627
56628         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
56629         mbrtowc for very simple UTF-8 case.
56630
56631         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
56632         a pointer-to-const.
56633         (re_acquire_state_context): Likewise.
56634         * lib/regex_internal.h: Adjust prototypes.
56635
56636         * lib/regex.c: Prevent using C++ compilers.
56637
56638         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
56639         (re_acquire_state_context): Likewise.
56640
56641 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56642
56643         * modules/regex (Depends-on): Add ssize_t.
56644
56645 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56646
56647         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
56648         translation table.
56649
56650 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56651
56652         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
56653
56654 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
56655             Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
56658         <sys/types.h> and <inttypes.h>.
56659
56660 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56661
56662         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
56663         `__error_t_defined', so argp.h will not typedef the former.
56664
56665 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
56666
56667         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
56668         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
56669         glibc names.  Even if glibc is changed to conform to POSIX, the
56670         traditional names will be available anyway, since regex depends on
56671         the extensions module.  Also, fix a longstanding typo in the
56672         implementation of Spencer ERE test #75 from grep 2.3.  Problems
56673         reported by Emanuele Giaquinta.  Also, change sense of cached
56674         variable, so that the message makes sense.
56675
56676 2006-03-24  Simon Josefsson  <jas@extundo.com>
56677
56678         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
56679         including some doc fixes.
56680         (base64_encode_alloc): Fix +1 bug on allocation failures.
56681
56682 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56683
56684         * lib/base64.c (base64_encode): Do not read past end of array with
56685         unsanitized input on systems with CHAR_BIT > 8.
56686
56687 2006-03-24  Eric Blake  <ebb9@byu.net>
56688
56689         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
56690
56691 2006-03-22  Karl Berry  <karl@gnu.org>
56692
56693         * config/srclist.txt (*setenv.[ch]): get from coreutils.
56694         * config/srclistvars.sh (COREUTILS): new var.
56695
56696 2006-03-17  Jim Meyering  <jim@meyering.net>
56697
56698         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
56699         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
56700
56701 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56702
56703         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
56704         no longer needs it.  Instead, check that regoff_t is as least
56705         as wide as ptrdiff_t.
56706
56707         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
56708         so that our regex.h stays compatible with the installed regex.
56709         This is helpful for installers who configure --without-included-regex.
56710         Problem reported by Emanuele Giaquinta.
56711
56712 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
56715         Typedef to long int, not to off_, as POSIX will likely change
56716         in that direction.
56717
56718 2006-03-15  Eric Blake  <ebb9@byu.net>
56719
56720         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
56721
56722 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56723
56724         * lib/argp-help.c (validate_uparams): Fix typo
56725         * lib/argp-parse.c (argp_default_options): Consistently begin help
56726         messages with a lowercase letter.
56727
56728 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
56729
56730         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
56731         overrun buffers and shouldn't be used (much as gets shouldn't be
56732         used).
56733         * lib/time_r.c (asctime_r, ctime_r): Likewise.
56734
56735 2006-03-08  Simon Josefsson  <jas@extundo.com>
56736
56737         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
56738         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56739
56740 2006-03-08  Simon Josefsson  <jas@extundo.com>
56741
56742         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
56743         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56744
56745 2006-03-08  Simon Josefsson  <jas@extundo.com>
56746
56747         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
56748         signal that configure disabled the device.
56749
56750 2006-03-08  Simon Josefsson  <jas@extundo.com>
56751
56752         * build-aux/maint.mk: Fix refresh-po, to handle no translated
56753         languages.
56754
56755 2006-03-07  Simon Josefsson  <jas@extundo.com>
56756
56757         * modules/getopt (Depends-on): Add unistd.
56758
56759         * modules/unistd: New file.
56760
56761 2006-03-07  Simon Josefsson  <jas@extundo.com>
56762
56763         * modules/gc-random: New file.
56764
56765 2006-03-07  Simon Josefsson  <jas@extundo.com>
56766
56767         * m4/unistd_h.m4: New file.
56768
56769 2006-03-07  Simon Josefsson  <jas@extundo.com>
56770
56771         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
56772         test to be side-effect free by storing the result in the cache
56773         variable gl_cv_lib_readline, and moving the assignment of
56774         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
56775         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56776
56777 2006-03-07  Simon Josefsson  <jas@extundo.com>
56778
56779         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
56780         error on missing devices (the functions will return an error).
56781
56782         * m4/gc.m4: Move random stuff to gc-random.m4
56783
56784 2006-03-07  Simon Josefsson  <jas@extundo.com>
56785
56786         * lib/unistd_.h: New file.
56787
56788 2006-03-07  Simon Josefsson  <jas@extundo.com>
56789
56790         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
56791
56792 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56793
56794         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
56795         Problem reported by Juan Manuel Guerrero.
56796
56797 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56798
56799         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
56800         the unistd module.
56801         * lib/getlogin_r.c: Likewise.
56802         * lib/getlogin_r.h: Likewise.
56803         * lib/glob.c: Likewise.
56804         * lib/pagealign_alloc.c: Likewise.
56805         * lib/unistd_.h: Remove; no longer needed.
56806
56807 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56808
56809         * MODULES.html.sh (Support for systems lacking POSIX:2001):
56810         Add unistd.
56811         * modules/c-stack (Depends-on): Add unistd.
56812         * modules/getlogin_r: Likewise.
56813         * modules/glob: Likewise.
56814         * modules/pagealign_alloc: Likewise.
56815         * modules/unistd (Files): Remove lib/unistd_.h.
56816         (EXTRA_DIST): Remove.
56817         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
56818         need unistd_.h.
56819         (MOSTLYCLEANFILES): Remove unistd.h-t.
56820
56821 2006-03-03  Simon Josefsson  <jas@extundo.com>
56822
56823         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
56824
56825 2006-03-03  Simon Josefsson  <jas@extundo.com>
56826
56827         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
56828         libidn and bison.
56829
56830 2006-03-03  Simon Josefsson  <jas@extundo.com>
56831
56832         * build-aux/maint.mk: Add indent target.
56833
56834 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
56835
56836         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
56837         our replacement poll.h in any case, to avoid a differing
56838         declaration from a system header.  Seen on AIX.
56839
56840 2006-03-01  Simon Josefsson  <jas@extundo.com>
56841
56842         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
56843         <kasal@ucw.cz>.
56844
56845 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56846
56847         * modules/gettime (Depends-on): Add extensions module.
56848         * modules/nanosleep (Depends-on): Likewise.
56849         * modules/settime (Depends-on): Likewise.
56850
56851 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56852
56853         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
56854         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
56855         pedantically.
56856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56857         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
56858
56859         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
56860         not "==".  Reported by Ralf Wildenhues.
56861
56862 2006-03-01  Karl Berry  <karl@gnu.org>
56863
56864         * doc/Copyright/request-*: new files, synced from gnuorg.
56865
56866 2006-03-01  Karl Berry  <karl@gnu.org>
56867
56868         * config/srclist.txt (Copyright/*): new entries.
56869
56870 2006-02-28  Simon Josefsson  <jas@extundo.com>
56871
56872         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
56873
56874 2006-02-27  Simon Josefsson  <jas@extundo.com>
56875
56876         * lib/base64.h: Indent #define's.  From Jim Meyering
56877         <jim@meyering.net>.
56878
56879 2006-02-27  Jim Meyering  <jim@meyering.net>
56880
56881         Revert the change of 2006-02-24, so these files can continue
56882         to be sync'd from gettext.
56883         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
56884         of `config.h'.
56885
56886 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56887
56888         * modules/intprops: New file.
56889         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56890         Add intprops.
56891         * modules/getloadavg (Files): Remove lib/intprops.h.
56892         (Depends-on): Add intprops.
56893         * modules/human: Likewise.
56894         * modules/inttostr: Likewise.
56895         * modules/openat: Likewise.
56896         * modules/sig2str: Likewise.
56897         * modules/userspec: Likewise.
56898         * modules/utimecmp: Likewise.
56899         * modules/xnanosleep: Likewise.
56900         * modules/xstrtol: Likewise.
56901
56902 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
56903
56904         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
56905         * modules/lock-tests (TESTS): Use $(EXEEXT).
56906         * modules/tls-tests: Likewise.
56907         * modules/argp-tests: Likewise.
56908         (check_PROGRAMS): New var, replacing...
56909         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
56910
56911 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56912
56913         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
56914         `config.h'.
56915
56916 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56917
56918         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
56919
56920 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56921
56922         Sync from coreutils.
56923         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
56924         gl_CHDIR_SAFER.
56925
56926 2006-02-22  Jim Meyering  <jim@meyering.net>
56927
56928         Sync from coreutils.
56929         * m4/chdir-safer.m4: New file.
56930
56931 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56932
56933         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
56934         AT_FDCWD exceeds INT_MAX.
56935         * lib/openat.h (AT_FDCWD): Likewise.
56936
56937 2006-02-17  Eric Blake  <address@hidden>
56938
56939         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
56940
56941 2006-02-16  Simon Josefsson  <jas@extundo.com>
56942
56943         * modules/getaddrinfo (Depends-on): Add sys_socket.
56944
56945 2006-02-15  Simon Josefsson  <jas@extundo.com>
56946
56947         * build-aux/maint.mk: Add dsyntax-check rule.
56948
56949 2006-02-15  Eric Blake  <ebb9@byu.net>
56950
56951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
56952         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
56953         'present but cannot compile' warnings on cygwin.
56954         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
56955         use ws2tcpip.h if sys/socket.h works.
56956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
56957         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
56958
56959 2006-02-14  Simon Josefsson  <jas@extundo.com>
56960
56961         * modules/maintainer-makefile (Files): Rename.
56962
56963         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
56964         and (the local) Makefile.cfg to maint-cfg.mk.
56965
56966         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
56967         to the latter.
56968
56969         * modules/maintainer-makefile: New module.
56970
56971         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
56972         severaly stripped to make it possible to build it up from scratch
56973         with reliable tests.
56974
56975         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
56976         fixes to permit overriding the default actions when configure and
56977         makefile are not available.
56978
56979 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56980
56981         Sync from coreutils.
56982         * modules/lstat (Depends-on): Don't depend on xalloc.
56983         (License): Change from GPL to LGPL, since this is now simply a
56984         replacement for a libc function.
56985
56986 2006-02-14  Jim Meyering  <jim@meyering.net>
56987
56988         Sync from coreutils.
56989
56990         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
56991         failure on deficient systems, and simplify gnulib lgpl dependencies.
56992         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
56993         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
56994
56995         * lib/xalloc-die.c: Remove unused definition of N_.
56996
56997 2006-02-14  Jim Meyering  <jim@meyering.net>
56998
56999         Sync from coreutils.
57000         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57001         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57002         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57003         double-quote uses of that variable, to accommodate the rare case in
57004         which getmntent is available in none of the libraries checked.  This
57005         happens at least on FreeBSD 5.0.
57006
57007 2006-02-13  Simon Josefsson  <jas@extundo.com>
57008
57009         * gnulib-tool (Usage): Fix --import, from
57010         karl@freefriends.org (Karl Berry).
57011
57012 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57013
57014         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57015
57016 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57017
57018         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57019         "autoupdate" on 2005-12-12.
57020
57021 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57022
57023         * modules/closeout (Depends-on): Remove atexit.
57024
57025 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57026
57027         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57028         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57029
57030 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57031
57032         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57033         __EXTENSIONS__ if this causes compilation to fail.  Problem
57034         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57035         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57036
57037 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57038
57039         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57040         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57042         All uses changed.
57043
57044 2006-01-26  Simon Josefsson  <jas@extundo.com>
57045
57046         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57047         prototype is visible on mingw32.
57048
57049         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57050         for mingw32.
57051
57052         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57053         mingw32).
57054
57055 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57056
57057         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57058         attempt to open for write; this always fails, at least on POSIX
57059         hosts.  This reinstates the 2006-01-09 change, which was
57060         inadvertently removed.
57061
57062 2006-01-26  Bruno Haible  <bruno@clisp.org>
57063
57064         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57065         Reported by Paul Eggert.
57066
57067 2006-01-26  Bruno Haible  <bruno@clisp.org>
57068             Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         * lib/stdbool_.h (_Bool)
57071         [(! (defined __cplusplus || defined __BEOS__)
57072           && !defined __GNUC__
57073           && !(defined __HP_cc || defined __xlc__
57074                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57075                || defined __sgi))]:
57076         #define to signed char in these cases too; this simplifies
57077         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57078         etc., separately) and makes it more conservative.
57079
57080 2006-01-25  Simon Josefsson  <jas@extundo.com>
57081
57082         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57083         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57084         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57085
57086 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57087
57088         * lib/argp-namefrob.h: Bugfix. Remove stray #
57089
57090 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57091
57092         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57093         so that we test the test.
57094         Check for yet another HP-UX cc bug involving *bool |= bool.
57095
57096 2006-01-25  Karl Berry  <karl@gnu.org>
57097
57098         * config/srclist.txt (vasnprintf.c): sync lost.
57099
57100 2006-01-25  Jim Meyering  <jim@meyering.net>
57101
57102         Sync from the stable (b5) branch of coreutils:
57103
57104         * lib/fts.c (fts_children): Don't let close() clobber errno from
57105         failed fchdir().
57106
57107         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57108         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57109         a dangling symlink.  That can also happen at least for ELOOP.
57110         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57111         FYI, this bug predates the inclusion of fts.c in coreutils.
57112
57113         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57114         in their own block, so pre-c99 compilers don't object.
57115
57116         Avoid the double-free (first in fts_read, second in fts_close) that
57117         would occur when an `active' directory is made inaccessible (e.g.,
57118         via chmod a-x) during a traversal.
57119         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57120         before returning.  Reproduce this failure by
57121         mkdir -p a/b; cd a; chmod a-x . b
57122         Reported by Stavros Passas.
57123
57124 2006-01-25  Jim Meyering  <jim@meyering.net>
57125
57126         * lib/fileblocks.c: Remove more useless parentheses.
57127         * lib/readutmp.h: Likewise.
57128
57129 2006-01-25  Bruno Haible  <bruno@clisp.org>
57130
57131         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57132         warnings.
57133         Reported by Paul Eggert.
57134
57135 2006-01-25  Bruno Haible  <bruno@clisp.org>
57136
57137         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57138         rid of a trap command. For Solaris sh.
57139         Reported by Mark D. Baushke <mdb@gnu.org>.
57140
57141 2006-01-24  Simon Josefsson  <jas@extundo.com>
57142
57143         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57144         Bruno.
57145
57146 2006-01-24  Karl Berry  <karl@gnu.org>
57147
57148         * config/srclist.txt (argp-namefrob.h): sync lost.
57149
57150 2006-01-24  Jim Meyering  <jim@meyering.net>
57151
57152         * modules/openat (Files): Add lib/intprops.h.
57153         From Mark D. Baushke.
57154
57155 2006-01-24  Jim Meyering  <jim@meyering.net>
57156
57157         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57158         Reported by Mark D. Baushke.
57159
57160 2006-01-24  Jim Meyering  <jim@meyering.net>
57161
57162         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57163
57164 2006-01-24  Bruno Haible  <bruno@clisp.org>
57165
57166         * modules/strnlen (Maintainer): Change from glibc to all.
57167
57168 2006-01-24  Bruno Haible  <bruno@clisp.org>
57169
57170         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57171         Patch by Paul Eggert.
57172
57173 2006-01-24  Bruno Haible  <bruno@clisp.org>
57174
57175         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57176         already has it.
57177         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57178         2005-11-26.
57179
57180         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57181         'signed char' to avoid problems with the built-in _Bool type.
57182         Reported by Paul Eggert on 2005-11-26.
57183
57184 2006-01-24  Bruno Haible  <bruno@clisp.org>
57185
57186         * gnulib-tool (func_import): Avoid constructing complicated sed
57187         expressions inside backquote.
57188         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57189
57190 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57191
57192         These changes imported from libc.
57193         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57194         test and two separate function calls.
57195         * lib/strndup.c (__strndup): Add libc_hidden_def.
57196
57197 2006-01-23  Simon Josefsson  <jas@extundo.com>
57198
57199         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57200         Remove the test_*_SOURCES variable: automake infers it by default.
57201         * modules/tls-tests: Likewise.
57202
57203 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57204
57205         Work around porting bugs reported by Dieter in
57206         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57207         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57208         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57209         Include "getopt.h" first, to check interface.
57210         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57211         !HAVE_DECL_GETENV.
57212         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57213         (__strndup): Revert to K&R-style function dfns, the glibc style.
57214         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57215         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57216         Include strnlen.h first, to get prototype properly.
57217         (strnlen): Renamed from __strnlen.
57218         Remove weak alias.
57219
57220 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57221
57222         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57223
57224 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57225
57226         * config/srclist.txt: Adjust to reflect glibc reorganization.
57227         This affects only comments.
57228
57229 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57230
57231          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57232          Reported by Bruce Korb <bkorb@gnu.org>.
57233
57234 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57235
57236         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57237         to pacify gcc -Wswitch-default.
57238
57239 2006-01-22  Bruno Haible  <bruno@clisp.org>
57240
57241         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57242         temporary buffer for sprintf, take into account the precision also
57243         for 'd', 'i', 'u', 'o', 'x', 'X'.
57244
57245 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57246
57247         * modules/argp-tests: New module
57248         * tests/test-argp.c: New file
57249         * tests/test-argp-2.sh: New file
57250
57251 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57252
57253         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57254         (__argp_base_name): Removed
57255         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57256         typo.
57257         (__argp_base_name): Provide macro definition or extern declaration
57258         depending on the configuration
57259
57260 2006-01-20  Simon Josefsson  <jas@extundo.com>
57261
57262         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57263
57264 2006-01-20  Simon Josefsson  <jas@extundo.com>
57265
57266         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57267
57268 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57269
57270         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57271         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57272         Suggested by Bruno Haible.
57273
57274 2006-01-20  Karl Berry  <karl@gnu.org>
57275
57276         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57277         until changes propagate, I guess.
57278
57279 2006-01-19  Simon Josefsson  <jas@extundo.com>
57280
57281         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57282
57283 2006-01-19  Simon Josefsson  <jas@extundo.com>
57284
57285         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57286
57287 2006-01-19  Simon Josefsson  <jas@extundo.com>
57288
57289         * gnulib-tool: Set check_PROGRAMS.
57290
57291         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57292         modules/des-tests, modules/gc-arcfour-tests,
57293         modules/gc-arctwo-tests, modules/gc-des-tests,
57294         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57295         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57296         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57297         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57298         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57299         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57300         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57301         test_*_SOURCES.
57302
57303 2006-01-18  Simon Josefsson  <jas@extundo.com>
57304
57305         * modules/socklen (Depends-on): Depend on sys_socket.
57306
57307 2006-01-18  Simon Josefsson  <jas@extundo.com>
57308
57309         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57310         modules/des-tests, modules/gc-arcfour-tests,
57311         modules/gc-arctwo-tests, modules/gc-des-tests,
57312         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57313         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57314         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57315         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57316         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57317         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57318         $(EXEEXT) to automake TESTS variable, for mingw32.
57319
57320 2006-01-17  Simon Josefsson  <jas@extundo.com>
57321
57322         * modules/socklen (Include): Need sys/socket.h.
57323
57324 2006-01-17  Bruno Haible  <bruno@clisp.org>
57325
57326         * modules/ssize_t (Include): Add <sys/types.h>.
57327
57328 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57329
57330         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57331         it's not portable and it doesn't work with cross-compiles.
57332         Problem reported by Bruno Haible.  Fix missing-$ typo in
57333         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57334         -zignore from being used with Sun's C compiler.
57335
57336 2006-01-12  Simon Josefsson  <jas@extundo.com>
57337
57338         * lib/base64.c: Fix warning, reported by Bruno Haible
57339         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
57340
57341 2006-01-12  Bruno Haible  <bruno@clisp.org>
57342
57343         * modules/ldd: New file.
57344         * build-aux/ldd.sh.in: New file.
57345         * MODULES.html.sh (Support for building libraries and executables): Add
57346         ldd.
57347
57348 2006-01-12  Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/ldd.m4: New file.
57351
57352 2006-01-12  Bruno Haible  <bruno@clisp.org>
57353
57354         * gnulib-tool (func_import, func_create_testdir): Don't go into an
57355         endless loop while replacing $auxdir with build-aux.
57356
57357 2006-01-11  Simon Josefsson  <jas@extundo.com>
57358
57359         * lib/stdint_.h (SIZE_MAX): Add missing (.
57360
57361 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         Sync from coreutils.
57364         * lib/md5.c: Fix commentary typos.
57365         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57366         * lib/md5.h (__attribute__): Remove; unused.
57367         * lib/sha1.c: Fix commentary to match md5 better.
57368         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57369         so that we don't need to worry about alignment.  All uses changed.
57370         This merges the 2005-10-28 md5 change into sha1.
57371
57372 2006-01-11  Jim Meyering  <jim@meyering.net>
57373
57374         Sync from coreutils.
57375         * lib/md5.c (OP): Fix spacing.
57376
57377 2006-01-11  Bruno Haible  <bruno@clisp.org>
57378
57379         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57380         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57381         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57382
57383 2006-01-11  Bruno Haible  <bruno@clisp.org>
57384
57385         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57386         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57387         the "early" section as well.
57388
57389 2006-01-11  Bruno Haible  <bruno@clisp.org>
57390
57391         Avoid "ar: no archive members specified" error on MacOS X.
57392         * gnulib-tool (func_modules_add_dummy): New function.
57393         (func_import, func_create_testdir): Invoke it.
57394
57395 2006-01-11  Bruno Haible  <bruno@clisp.org>
57396
57397         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57398         with $auxdir in AC_CONFIG_FILES statements.
57399
57400 2006-01-11  Bruno Haible  <bruno@clisp.org>
57401
57402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57403         Initialize also noinst_HEADERS to empty.
57404
57405 2006-01-11  Bruno Haible  <bruno@clisp.org>
57406
57407         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57408         variables.
57409         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57410         autoreconf.
57411
57412 2006-01-11  Bruno Haible  <bruno@clisp.org>
57413
57414         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
57415         overridable by the user.
57416         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57417
57418 2006-01-10  Simon Josefsson  <jas@extundo.com>
57419
57420         * modules/sys_socket: New file.
57421
57422 2006-01-10  Simon Josefsson  <jas@extundo.com>
57423
57424         * m4/sys_socket_h.m4: New file.
57425
57426 2006-01-10  Simon Josefsson  <jas@extundo.com>
57427
57428         * lib/socket_.h: New file.
57429
57430 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57431
57432         * modules/readutmp (Maintainer): Add myself.
57433
57434 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57435
57436         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
57437         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
57438         People who are still concerned with buggy memcmp implementations
57439         can invoke gl_FUNC_MEMCMP themselves.
57440
57441 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57442
57443         * lib/regex_internal.h (BITSET_WORD_BITS):
57444         Work around a bug in 64-bit PGC (before version 6.1-2), where the
57445         preprocessor mishandles large unsigned values as if they were signed.
57446         Problem reported by Claudio Fontana in
57447         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
57448
57449 2006-01-10  Jim Meyering  <jim@meyering.net>
57450
57451         Avoid the double-free (first in fts_read, second in fts_close) that
57452         would occur when an `active' directory is made inaccessible (e.g.,
57453         via chmod a-x) during a traversal.
57454         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57455         before returning.  Reproduce this failure by
57456         mkdir -p a/b; cd a; chmod a-x . b
57457         Reported by Stavros Passas.
57458
57459         Sync from coreutils.
57460         * lib/sha1.c: Tweak grammar in a comment.
57461
57462 2006-01-10  Jim Meyering  <jim@meyering.net>
57463
57464         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
57465         Patch by Joerg Sonnenberger.
57466
57467 2006-01-10  Bruno Haible  <bruno@clisp.org>
57468
57469         * modules/readutmp: Depend on module free.
57470         * modules/strtok_r: Depend on module restrict.
57471
57472 2006-01-10  Bruno Haible  <bruno@clisp.org>
57473
57474         * modules/gettext (configure.ac): Add an invocation of
57475         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
57476
57477 2006-01-10  Bruno Haible  <bruno@clisp.org>
57478
57479         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
57480         Reported by Werner Lemberg <wl@gnu.org>.
57481
57482 2006-01-10  Bruno Haible  <bruno@clisp.org>
57483
57484         * lib/localcharset.c: Update from GNU gettext.
57485
57486 2006-01-10  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/argp.h (__const): Remove macro. Use const instead.
57489         * lib/argp-fmtstream.h (__const): Likewise.
57490         * lib/glob_.h (__const): Remove macro.
57491         * lib/glob-libc.h: Use const instead of __const.
57492
57493 2006-01-10  Bruno Haible  <bruno@clisp.org>
57494
57495         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
57496         variable.
57497         Needed to avoid an automake error regarding the 'gettext' module.
57498
57499 2006-01-09  Simon Josefsson  <jas@extundo.com>
57500
57501         * modules/inet_ntop (Depends-on): Add restrict.
57502
57503 2006-01-09  Simon Josefsson  <jas@extundo.com>
57504
57505         * modules/gc-rijndael-tests (License): Put under LGPL.
57506
57507         * modules/gc-des-tests (License): Likewise.
57508
57509         * modules/gc-arcfour-tests (License): Likewise.
57510
57511         * modules/gc-arctwo-tests (License): Likewise.
57512
57513         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
57514
57515         * modules/gc-hmac-sha1-tests (Files): Likewise.
57516
57517         * modules/gc-hmac-md5-tests (License): Likewise.
57518
57519         * modules/gc-sha1-tests (License): Likewise.
57520
57521         * modules/gc-md5-tests (License): Likewise.
57522
57523         * modules/gc-md4-tests (License): Likewise.
57524
57525         * modules/gc-md2-tests (License): Likewise.
57526
57527         * modules/gc-tests (License): Likewise.
57528
57529         * modules/des-tests (License): Likewise.
57530
57531         * modules/md4-tests (License): Likewise.
57532
57533         * modules/md2-tests (License): Likewise.
57534
57535 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57536
57537         Sync from coreutils:
57538
57539         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
57540         * modules/lib-ignore: New file.
57541         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
57542         chdir-safer.m4, lchmod.m4.
57543         * modules/openat: Add mkdirat.c, openat-priv.h.
57544
57545 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57546
57547         Sync from coreutils.
57548         * m4/lib-ignore.m4: New file.
57549         * m4/lchmod.m4: New file.
57550
57551 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57552
57553         Sync from coreutils.
57554         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
57555         for write access: POSIX says that must fail.
57556         * lib/fts.c (diropen): Likewise.
57557         * lib/save-cwd.c (save_cwd): Likewise.
57558         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
57559         well, for minor improvements on hosts that lack O_DIRECTORY.
57560         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
57561         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
57562         Fall back on chown if open failed with EACCES.
57563
57564         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
57565         Report an error at compile-time if only a 1-second nominal clock
57566         resolution is found.
57567
57568         * lib/lchmod.h: New file.
57569         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
57570         (make_dir_parents): Use lchown rather than chown, and
57571         lchmod rather than chmod.
57572
57573         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
57574         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
57575         "proc" reported by n0dalus.
57576
57577         * lib/mountlist.c: Include <limits.h>.
57578         (dev_from_mount_options)
57579         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
57580         New function.  It no longer assumes "dev=" has the System V meaning
57581         on Linux (since it doesn't).  It also parses "dev=" more carefully.
57582         (read_file_system_list)
57583         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
57584         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
57585         dev= in that case.
57586
57587         * lib/posixtm.h (PDS_PRE_2000): New macro.
57588         * lib/posixtm.c (year): Arg is now syntax_bits rather than
57589         allow_century.  All usages changed.  Reject dates outside the range
57590         1969-1999 if PDS_PRE_2000 is used.
57591
57592 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57593
57594         Sync from coreutils.
57595         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
57596         (Time of day items): Mention the possibility of leap seconds.
57597         Problem reported by Dr. David Alan Gilbert.
57598
57599 2006-01-09  Jim Meyering  <jim@meyering.net>
57600
57601         Sync from coreutils.
57602
57603         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
57604
57605         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
57606
57607         * lib/modechange.c (mode_compile): Reject an invalid mode string
57608         that starts with an octal digit.  From Andreas Gruenbacher.
57609
57610         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
57611         and dup to open_safer and dup_safer, respectively.
57612         (openat_permissive): Fix typo in comment.
57613
57614         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
57615         "gettext.h"; either no longer needed or are guaranteed by openat.h.
57616         (_): Remove; no longer needed.
57617         (openat): Renamed from rpl_openat; no need for rpl_openat
57618         since openat.h renames openat for us.
57619         Replace most of the body with a call to openat_permissive,
57620         to avoid duplicate code.
57621         Port to (probably hypothetical) environments were mode_t is
57622         wider than int.
57623         (openat_permissive): Require mode arg, so that we can check
57624         types better.  Put it just after flags.  Change cwd failure
57625         indicator from pointer-to-bool to pointer-to-errno-value.
57626         All callers changed.
57627         Invoke openat_save_fail and/or openat_restore_fail if
57628         cwd_errno is null, so that openat can call us.
57629         (openat_permissive, fdopendir, fstatat, unlinkat):
57630         Simplify errno handling to avoid some duplicate code,
57631         as it's OK to set errno on success.
57632         * lib/openat.h: Revamp code so that function macros depend on
57633         __OPENAT_PREFIX only, not also on AT_FDCWD.
57634         (openat_ro): Remove.  Caller changed to use openat_permissive.
57635         (openat_permissive): Now a macro, if not a function.
57636         (openat_restore_fail, openat_save_fail): Now always functions,
57637         since mkdirat needs them even if __OPENAT_PREFIX is defined.
57638
57639         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
57640         and openat.c.
57641         * lib/mkdirat.c: Include openat-priv.h.
57642         Remove definitions of macros defined therein.
57643         * lib/openat.c: Likewise.
57644
57645         * lib/mkdirat.c (mkdirat): New file and function.
57646         * lib/openat.h (mkdirat): Declare.
57647
57648         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
57649
57650         * lib/openat.h (openat_permissive): Declare.
57651         (openat_ro): Define.
57652
57653         * lib/openat.c (EXPECTED_ERRNO): New macro.
57654         (openat_permissive): New function -- used in remove.c rewrite.
57655         (all functions): Set errno just before returning, only if there
57656         was an actual failure.
57657         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
57658
57659         Emulate openat-family functions using Linux's procfs, if possible.
57660         Idea and some code based on Ulrich Drepper's glibc changes.
57661
57662         * lib/openat.c: (BUILD_PROC_NAME): New macro.
57663         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
57664         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
57665         before falling back on save_cwd and restore_cwd.
57666         (fdopendir, fstatat, unlinkat): Likewise.
57667
57668         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
57669         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
57670
57671         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
57672         as second argument to va_arg.  Otherwise, some versions of gcc
57673         warn that `if this code is reached, the program will abort'.
57674
57675 2006-01-09  Jim Meyering  <jim@meyering.net>
57676
57677         Sync from coreutils.
57678         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
57679         Require openat-priv.h.
57680
57681 2006-01-09  Bruno Haible  <bruno@clisp.org>
57682
57683         * modules/strnlen (Include): Use strnlen.h.
57684
57685 2006-01-09  Bruno Haible  <bruno@clisp.org>
57686
57687         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
57688
57689 2006-01-09  Bruno Haible  <bruno@clisp.org>
57690
57691         * lib/sysexit_.h (EX_OK): New macro.
57692         Suggested by Martin Lambers <marlam@marlam.de>.
57693
57694 2006-01-09  Bruno Haible  <bruno@clisp.org>
57695
57696         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
57697         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
57698
57699 2006-01-09  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
57702         numbers.
57703
57704 2006-01-09  Bruno Haible  <bruno@clisp.org>
57705
57706         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
57707         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
57708         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
57709         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
57710
57711 2006-01-09  Bruno Haible  <bruno@clisp.org>
57712
57713         * build-aux/javacomp.sh.in: New file, moved from lib/.
57714         * modules/javacomp-script (Files): Update.
57715         (configure.ac): Add AC_CONFIG_FILES invocation.
57716         (EXTRA_DIST): Remove variable.
57717
57718         * build-aux/javaexec.sh.in: New file, moved from lib/.
57719         * modules/javaexec (Files): Update.
57720         (configure.ac): Add AC_CONFIG_FILES invocation.
57721         (EXTRA_DIST): Remove javaexec.sh.in.
57722
57723         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
57724         * modules/csharpcomp-script (Files): Update.
57725         (configure.ac): Add AC_CONFIG_FILES invocation.
57726         (EXTRA_DIST): Remove variable.
57727
57728         * build-aux/csharpexec.sh.in: New file, moved from lib/.
57729         * modules/csharpexec (Files): Update.
57730         (configure.ac): Add AC_CONFIG_FILES invocation.
57731         (EXTRA_DIST): Remove csharpexec.sh.in.
57732
57733 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57734
57735         Sync from coreutils.
57736
57737         Add POSIX ACL support
57738         * lib/acl.h (copy_acl, set_acl): Add declarations.
57739         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
57740         systems other than Linux.
57741         (chmod_or_fchmod): New function: use fchmod when possible,
57742         and chmod otherwise.
57743         (file_has_acl): Add a POSIX ACL implementation, with a
57744         Linux-specific subcase.
57745         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
57746         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
57747         acls are unsupported.
57748         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
57749         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
57750         are unsupported.
57751
57752 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57753
57754         Sync from coreutils.
57755         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
57756
57757 2006-01-07  Bruno Haible  <bruno@clisp.org>
57758
57759         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
57760         gl_EARLY.
57761
57762 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         * lib/strftime.c (tzname): Don't declare if it is already #defined.
57765         Problem reported for Mingw by Mark Junker.
57766
57767 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57768
57769         * README: Gnulib normally doesn't generate a tarball.
57770
57771 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
57772
57773         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
57774         long int, not int, for nanosecond counts, so that people who are
57775         used to POSIX struct timespec won't be surprised.  Reported by Jim
57776         Meyering.
57777
57778 2005-12-28  Bruno Haible  <bruno@clisp.org>
57779
57780         * build-aux/config.rpath: Update from GNU gettext.
57781
57782 2005-12-16  Jim Meyering  <jim@meyering.net>
57783
57784         * modules/fprintftime: New module.
57785         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
57786
57787 2005-12-16  Jim Meyering  <jim@meyering.net>
57788
57789         * m4/fprintftime.m4: New file.
57790
57791 2005-12-16  Jim Meyering  <jim@meyering.net>
57792
57793         * lib/fprintftime.c, lib/fprintftime.h: New files.
57794
57795 2005-12-15  Simon Josefsson  <jas@extundo.com>
57796
57797         * modules/socklen (configure.ac): Fix M4 macro name, to align with
57798         new m4/socklen.m4.
57799
57800 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57801
57802         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
57803         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
57804
57805 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57806
57807         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
57808         * lib/argp-help.c (fill_in_uparams): Check if the constructed
57809         struct uparams is valid. Fall back to the default values if it is
57810         not.
57811
57812 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57813
57814         * modules/argp (Files): Add argp-pin.c
57815         (Depends-on): dirname
57816         (lib_SOURCES): Add argp-pin.c
57817
57818 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57819
57820         * m4/argp.m4:  Check if program_invocation_name and
57821         program_invocation_short_name are declared and define appropriate
57822         macros if they are not.
57823
57824 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57825
57826         * lib/argp-help.c (__argp_base_name): New function
57827         (__argp_short_program_name): Rewrite using __argp_base_name
57828         * lib/argp-namefrob.h: Define program_invocation_name and
57829         program_invocation_short_name if requested
57830         (__argp_base_name): Add prototype
57831         * lib/argp-parse.c (argp_def): Use gettext wrappers
57832         (argp_default_parser): Use __argp_base_name
57833         * lib/argp-pin.c: New file. Defines program_invocation_name and
57834         program_invocation_short_name on systems that lack them.
57835
57836 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57837
57838         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
57839         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57840         porting problem reported by Georg Schwarz in
57841         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57842
57843 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57844
57845         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
57846         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57847         porting problem reported by Georg Schwarz in
57848         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57849
57850 2005-12-05  Bruno Haible  <bruno@clisp.org>
57851
57852         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
57853         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
57854         Reported by Mark Junker <mjscod@gmx.de>.
57855
57856 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
57857
57858         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
57859         Use implementation from Albert Chin, with some
57860         comments/corrections by Stepan Kasal and myself.
57861
57862 2005-12-02  Bruno Haible  <bruno@clisp.org>
57863
57864         * gnulib-tool (func_import): Accept GPLed build tool modules when
57865         --lgpl is given.
57866         * modules/csharpcomp-script: New file.
57867         * modules/csharpcomp: Depend on it.
57868         * modules/javacomp-script: New file.
57869         * modules/javacomp: Depend on it.
57870         Suggested by Simon Josefsson.
57871
57872 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
57873
57874         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
57875         statement, to work around an HP-UX 10.20 compiler bug reported by
57876         Peter O'Gorman.
57877
57878 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
57879
57880         * modules/savedir (Depends-on): Add openat.
57881
57882 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
57883
57884         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
57885         (uintmax_t) [defined uintmax_t]: Do not declare.
57886         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
57887         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
57888         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
57889         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
57890         sake of portability to weird hosts that C allows (though we don't
57891         know of any practical examples).
57892
57893         * lib/savedir.h (fdsavedir): New decl.
57894         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
57895         contains most of the former guts of savedir.
57896         (savedir): Use savedirstream.
57897         Include "openat.h".
57898
57899 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57900
57901         * modules/obstack (Files): Add m4/ulonglong.m4.
57902         Problem reported by Davide Angelocola.
57903
57904 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57905
57906         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
57907         coreutils no longer futzes with rounding modes.
57908
57909 2005-11-14  Jim Meyering  <jim@meyering.net>
57910
57911         * lib/mkstemp-safer.c: Include <config.h>, required for possible
57912         replacement of mkstemp.
57913
57914 2005-11-10  Simon Josefsson  <jas@extundo.com>
57915
57916         * lib/readline.c: Remove EOL.
57917
57918 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57919
57920         * modules/gethrxtime (Depends-on): Add gettime.
57921
57922 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57923
57924         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
57925         or gettimeofday; no longer needed.
57926
57927 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57928
57929         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
57930         time business.
57931         (gethrxtime) [! (HAVE_NANOUPTIME
57932         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
57933         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
57934         our own approximation.
57935
57936 2005-11-08  Eric Blake  <ebb9@byu.net>
57937
57938         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
57939
57940 2005-11-08  Eric Blake  <ebb9@byu.net>
57941
57942         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
57943
57944 2005-11-04  Bruno Haible  <bruno@clisp.org>
57945
57946         * gnulib-tool: Implement --update mode.
57947
57948 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57949
57950         Fix porting problem reported by Theodoros V. Kalamatianos.
57951         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
57952         Don't assume that futimes failing means we must fail.
57953
57954 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57955
57956         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
57957         variables to suggest the intended function of the PATH_MAX check.
57958
57959 2005-10-30  Kean Johnston  <jkj@sco.com>
57960
57961         Trivial changes to support SCO systems.
57962         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
57963         as PATH_MAX.
57964         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
57965         where __ptr is null when no I/O is pending.
57966
57967 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
57970         leave errno alone.  Problem reported by Dmitry V. Levin.
57971
57972 2005-10-28  Simon Josefsson  <jas@extundo.com>
57973
57974         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
57975         Test more.
57976
57977         * tests/test-gc-md2.c, tests/test-md2.c: New files.
57978
57979         * modules/md2, modules/md2-tests: New files.
57980
57981 2005-10-28  Simon Josefsson  <jas@extundo.com>
57982
57983         * m4/inet_ntop.m4: More tests.
57984
57985         * m4/gc-md2.m4, md2.m4: New file.
57986
57987 2005-10-28  Simon Josefsson  <jas@extundo.com>
57988
57989         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
57990         "restrict" keywords, as per POSIX.  Protect the function
57991         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
57992         Don't use K&R prototypes.  Check the sprintf return values.
57993         Re-define EAFNOSUPPORT if not present.  Indent.
57994
57995         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
57996         suggested by Bruno Haible <bruno@clisp.org>.
57997
57998         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
57999
58000         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58001
58002         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58003         libgcrypt).
58004
58005         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58006
58007         * lib/md2.h, lib/md2.c: New files.
58008
58009 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58010
58011         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58012         errno alone.  Problem reported by Frederic Jolliton.
58013
58014 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58015
58016         * modules/verify (License): Change from GPL to LGPL.  This is a
58017         tiny module and there are apparently near-equivalents that are
58018         under the BSD license.
58019
58020 2005-10-24  Simon Josefsson  <jas@extundo.com>
58021
58022         * modules/sha1: Relicense to LGPL.
58023
58024 2005-10-24  Simon Josefsson  <jas@extundo.com>
58025
58026         * lib/md4.h: Shrink buffer size, now that we changed the type.
58027
58028 2005-10-23  Simon Josefsson  <jas@extundo.com>
58029
58030         * gnulib-tool (func_import): Fix --tests-base.
58031
58032 2005-10-22  Simon Josefsson  <jas@extundo.com>
58033
58034         * modules/arcfour (Depends-on): Need stdint.
58035
58036 2005-10-22  Simon Josefsson  <jas@extundo.com>
58037
58038         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58039         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58040
58041 2005-10-22  Simon Josefsson  <jas@extundo.com>
58042
58043         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58044         suggested by Bruno Haible <bruno@clisp.org>.
58045
58046 2005-10-22  Simon Josefsson  <jas@extundo.com>
58047
58048         * lib/crc.h: Include stddef.h, for size_t.
58049
58050 2005-10-22  Simon Josefsson  <jas@extundo.com>
58051
58052         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58053         arcfour_context struct (simplify test vector testing in GNU
58054         Shishi).
58055
58056 2005-10-21  Simon Josefsson  <jas@extundo.com>
58057
58058         * modules/des, modules/des-tests: New files.
58059
58060         * modules/gc-des, modules/gc-des-tests: New files.
58061
58062         * tests/test-des.c, tests/test-gc-des.c: New file.
58063
58064 2005-10-21  Simon Josefsson  <jas@extundo.com>
58065
58066         * modules/arctwo, modules/arctwo-tests: New files.
58067
58068         * tests/test-arctwo.c: New file.
58069
58070         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58071
58072         * tests/test-gc-arctwo.c: New file.
58073
58074 2005-10-21  Simon Josefsson  <jas@extundo.com>
58075
58076         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58077         Bruno Haible <bruno@clisp.org>.
58078
58079         * m4/gc-des.m4: New file.
58080
58081 2005-10-21  Simon Josefsson  <jas@extundo.com>
58082
58083         * m4/arctwo.m4: New file.
58084
58085         * m4/gc-arctwo.m4: New file.
58086
58087 2005-10-21  Simon Josefsson  <jas@extundo.com>
58088
58089         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58090         block.
58091
58092 2005-10-21  Simon Josefsson  <jas@extundo.com>
58093
58094         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58095         <bruno@clisp.org>.
58096
58097         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58098
58099         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58100         Bruno Haible <bruno@clisp.org>.
58101
58102         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58103         <bruno@clisp.org>.
58104
58105 2005-10-21  Simon Josefsson  <jas@extundo.com>
58106
58107         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58108
58109 2005-10-21  Simon Josefsson  <jas@extundo.com>
58110
58111         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58112
58113 2005-10-21  Simon Josefsson  <jas@extundo.com>
58114
58115         * lib/des.h, lib/des.c: New files.
58116
58117         * lib/gc-gnulib.c: Support DES.c
58118
58119 2005-10-21  Simon Josefsson  <jas@extundo.com>
58120
58121         * lib/arctwo.h, lib/arctwo.c: New files.
58122
58123         * lib/gc-gnulib.c: Support ARCTWO.
58124
58125 2005-10-21  Simon Josefsson  <jas@extundo.com>
58126
58127         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58128         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58129
58130 2005-10-21  Simon Josefsson  <jas@extundo.com>
58131
58132         * gnulib-tool (func_import, func_create_testdir): Define automake
58133         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58134         Makefile.am snippet),
58135         suggested by Bruno Haible <bruno@clisp.org>.
58136
58137         * modules/gc (Makefile.am): Use it.
58138
58139 2005-10-21  Bruno Haible  <bruno@clisp.org>
58140
58141         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58142         patch.
58143
58144 2005-10-19  Simon Josefsson  <jas@extundo.com>
58145
58146         * tests/test-gc-rijndael.c: New file.
58147
58148         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58149
58150 2005-10-19  Simon Josefsson  <jas@extundo.com>
58151
58152         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58153         interface too.
58154
58155 2005-10-19  Simon Josefsson  <jas@extundo.com>
58156
58157         * tests/test-gc-arcfour.c: New file.
58158
58159         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58160
58161 2005-10-19  Simon Josefsson  <jas@extundo.com>
58162
58163         * modules/gc-md4, modules/gc-md4-tests: New file.
58164
58165         * tests/test-gc-md4.c: New file.
58166
58167 2005-10-19  Simon Josefsson  <jas@extundo.com>
58168
58169         * m4/gc-md4.m4: New file.
58170
58171 2005-10-19  Simon Josefsson  <jas@extundo.com>
58172
58173         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58174         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58175         <kasal@ucw.cz>.
58176
58177 2005-10-19  Simon Josefsson  <jas@extundo.com>
58178
58179         * m4/gc-arcfour.m4: New file.
58180
58181         * m4/gc-rijndael.m4: New file.
58182
58183 2005-10-19  Simon Josefsson  <jas@extundo.com>
58184
58185         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58186
58187 2005-10-19  Simon Josefsson  <jas@extundo.com>
58188
58189         * lib/gc-gnulib.c: Support ARCFOUR.
58190
58191 2005-10-19  Simon Josefsson  <jas@extundo.com>
58192
58193         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58194         support.
58195
58196         * lib/gc.h: Add ECB enum type.
58197
58198         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58199
58200 2005-10-18  Simon Josefsson  <jas@extundo.com>
58201
58202         * tests/test-md5.c: New file.
58203
58204         * modules/md5-tests: New file.
58205
58206 2005-10-18  Simon Josefsson  <jas@extundo.com>
58207
58208         * tests/test-md4.c: New file.
58209
58210         * modules/md4, modules/md4-tests: New files.
58211
58212 2005-10-18  Simon Josefsson  <jas@extundo.com>
58213
58214         * m4/md4.m4: New file.
58215
58216 2005-10-18  Simon Josefsson  <jas@extundo.com>
58217
58218         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58219
58220 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58221
58222         * gnulib-tool (func_create_testdir): Omit the second check whether
58223         BUILT_SOURCES in nonempty.
58224
58225 2005-10-17  Simon Josefsson  <jas@extundo.com>
58226
58227         * tests/test-rijndael.c: New file.
58228
58229 2005-10-17  Simon Josefsson  <jas@extundo.com>
58230
58231         * modules/sha1: Depend on stdint instead of md5.
58232
58233         * modules/md5: Depend on stdint, remove uint32_t.
58234
58235 2005-10-17  Simon Josefsson  <jas@extundo.com>
58236
58237         * modules/gc-sha1-tests: New file.
58238
58239         * tests/test-gc-sha1.c: New file.
58240
58241 2005-10-17  Simon Josefsson  <jas@extundo.com>
58242
58243         * m4/md5.m4: Remove call to uint32_t.m4.
58244
58245 2005-10-17  Simon Josefsson  <jas@extundo.com>
58246
58247         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58248
58249         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58250         md5.h.
58251
58252         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58253
58254         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58255
58256 2005-10-17  Simon Josefsson  <jas@extundo.com>
58257
58258         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58259
58260 2005-10-17  Simon Josefsson  <jas@extundo.com>
58261
58262         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58263
58264 2005-10-17  Simon Josefsson  <jas@extundo.com>
58265
58266         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58267
58268         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58269
58270 2005-10-17  Bruno Haible  <bruno@clisp.org>
58271
58272         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58273         that it can also be used in a test.
58274
58275 2005-10-16  Bruno Haible  <bruno@clisp.org>
58276
58277         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58278         TESTS_ENVIRONMENT, so that individual tests can augment it.
58279
58280         * gnulib-tool (func_create_testdir): Use an intermediate target for
58281         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58282         macros, like $(ALLOCA_H), which cannot be passed through the command
58283         line.
58284
58285 2005-10-15  Simon Josefsson  <jas@extundo.com>
58286
58287         * modules/rijndael-tests: New file.
58288
58289         * modules/rijndael: New file.
58290
58291 2005-10-15  Simon Josefsson  <jas@extundo.com>
58292
58293         * m4/rijndael.m4: New file.
58294
58295 2005-10-15  Simon Josefsson  <jas@extundo.com>
58296
58297         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58298
58299         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58300
58301 2005-10-14  Simon Josefsson  <jas@extundo.com>
58302
58303         * tests/test-arcfour.c: New file.
58304
58305         * modules/arcfour, modules/arcfour-tests: New files.
58306
58307 2005-10-14  Simon Josefsson  <jas@extundo.com>
58308
58309         * m4/arcfour.m4: New file.
58310
58311 2005-10-14  Simon Josefsson  <jas@extundo.com>
58312
58313         * lib/arcfour.h, lib/arcfour.c: New files.
58314
58315 2005-10-14  Roland McGrath  <roland@redhat.com>
58316
58317         Import from libc.  [BZ #1331]
58318         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58319         macro argument.
58320         Reported by Matej Vela <vela@debian.org>.
58321
58322 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58323
58324         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58325         include <wchar.h>; no longer needed.
58326
58327 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58328
58329         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58330
58331 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58332         and  Ulrich Drepper  <drepper@redhat.com>
58333
58334         Import from libc.
58335         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58336         instead of inline stream orientation test and two separate
58337         function calls.  Pay no attention to USE_IN_LIBIO.
58338
58339 2005-10-13  Simon Josefsson  <jas@extundo.com>
58340
58341         * modules/gc-hmac-md5-tests: New file.
58342
58343         * tests/test-gc-hmac-sha1.c: New file.
58344
58345         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
58346
58347         * modules/gc-hmac-md5-tests: New file.
58348
58349         * tests/test-gc-md5.c: New file.
58350
58351         * modules/gc-md5-tests: New file.
58352
58353 2005-10-13  Simon Josefsson  <jas@extundo.com>
58354
58355         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
58356         Move memory allocation outside of loop.
58357
58358 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58359
58360         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
58361         intermediate directory is in a read-only file system.  Problem
58362         reported by Eric Blake.
58363
58364 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
58365
58366         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58367
58368 2005-10-12  Simon Josefsson  <jas@extundo.com>
58369
58370         * tests/test-hmac-sha1.c: New file.
58371
58372         * modules/hmac-sha1-tests: New file.
58373
58374         * modules/hmac-sha1: New file.
58375
58376 2005-10-12  Simon Josefsson  <jas@extundo.com>
58377
58378         * modules/gc-sha1: New file.
58379
58380 2005-10-12  Simon Josefsson  <jas@extundo.com>
58381
58382         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58383
58384         * tests/test-gc-pbkdf2-sha1.c: New file.
58385
58386 2005-10-12  Simon Josefsson  <jas@extundo.com>
58387
58388         * modules/gc-md5, modules/gc-hmac-md5: New files.
58389
58390         * modules/gc (Files): Remove md5, memxor and hmac files.
58391
58392 2005-10-12  Simon Josefsson  <jas@extundo.com>
58393
58394         * m4/gc-pbkdf2-sha1.m4: New file.
58395
58396         * m4/gc-hmac-sha1.m4: New file.
58397
58398         * m4/gc-sha1: New file.
58399
58400         * m4/hmac-sha1.m4: New file.
58401
58402 2005-10-12  Simon Josefsson  <jas@extundo.com>
58403
58404         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58405
58406         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58407
58408 2005-10-12  Simon Josefsson  <jas@extundo.com>
58409
58410         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58411         suggested by Bruno Haible <bruno@clisp.org>.
58412
58413 2005-10-12  Simon Josefsson  <jas@extundo.com>
58414
58415         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
58416
58417 2005-10-12  Simon Josefsson  <jas@extundo.com>
58418
58419         * lib/gc-pbkdf2-sha1.c: New file.
58420
58421         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
58422
58423 2005-10-12  Simon Josefsson  <jas@extundo.com>
58424
58425         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
58426
58427         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
58428
58429 2005-10-12  Simon Josefsson  <jas@extundo.com>
58430
58431         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
58432         GC_USE_HMAC_MD5, respectively.
58433
58434         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
58435         (gc_md5): Fix typo.
58436
58437         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
58438
58439         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
58440
58441         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
58442
58443 2005-10-12  Bruno Haible  <bruno@clisp.org>
58444
58445         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
58446         Reported by Stepan Kasal <kasal@ucw.cz>.
58447
58448 2005-10-11  Simon Josefsson  <jas@extundo.com>
58449
58450         * tests/test-crc.c: New file.
58451
58452         * modules/crc, modules/crc-tests: New files.
58453
58454 2005-10-11  Simon Josefsson  <jas@extundo.com>
58455
58456         * m4/crc.m4: New file.
58457
58458 2005-10-11  Simon Josefsson  <jas@extundo.com>
58459
58460         * lib/gc.h: Add gc_hash and gc_hash_buffer.
58461
58462         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
58463
58464         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
58465
58466 2005-10-11  Simon Josefsson  <jas@extundo.com>
58467
58468         * lib/crc.h, lib/crc.c: New files.
58469
58470         * lib/gc.h (gc_hash_buffer): Add doc.
58471
58472 2005-10-11  Bruno Haible  <bruno@clisp.org>
58473
58474         * modules/c-strcasestr: New file.
58475         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
58476
58477 2005-10-11  Bruno Haible  <bruno@clisp.org>
58478
58479         * modules/c-strcase: New file.
58480         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
58481
58482 2005-10-11  Bruno Haible  <bruno@clisp.org>
58483
58484         * lib/strcasecmp.c: Include limits.h.
58485         (strcasecmp): Avoid integer overflow on exotic platforms.
58486         * lib/strncasecmp.c: Include limits.h.
58487         (strncasecmp): Avoid integer overflow on exotic platforms.
58488         Reported by Paul Eggert.
58489
58490 2005-10-11  Bruno Haible  <bruno@clisp.org>
58491
58492         * lib/c-strcasestr.h: New file, from GNU gettext.
58493         * lib/c-strcasestr.c: New file, from GNU gettext.
58494
58495 2005-10-11  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/c-strcase.h: New file, from GNU gettext.
58498         * lib/c-strcasecmp.c: New file, from GNU gettext.
58499         * lib/c-strncasecmp.c: New file, from GNU gettext.
58500
58501 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58502
58503         * modules/mempcpy (License): GPL -> LGPL.
58504         * modules/strchrnul (License): Likewise.
58505         * modules/sysexits (License): Likewise.
58506
58507 2005-10-08  Simon Josefsson  <jas@extundo.com>
58508
58509         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
58510
58511 2005-10-07  Simon Josefsson  <jas@extundo.com>
58512
58513         * m4/memxor.m4: Remove gl_C_RESTRICT call.
58514
58515 2005-10-06  Simon Josefsson  <jas@extundo.com>
58516
58517         * tests/test-hmac-md5.c: New file.
58518
58519         * modules/hmac-md5-tests: New file.
58520
58521         * modules/hmac-md5: New file.
58522
58523 2005-10-06  Simon Josefsson  <jas@extundo.com>
58524
58525         * m4/hmac-md5.m4: New file.
58526
58527         * m4/memxor.m4: Require gl_C_RESTRICT.
58528
58529 2005-10-06  Simon Josefsson  <jas@extundo.com>
58530
58531         * lib/memxor.c (memxor): Avoid casts and warnings.
58532
58533 2005-10-06  Simon Josefsson  <jas@extundo.com>
58534
58535         * lib/hmac-md5.c: New file.
58536
58537         * lib/hmac.h: New file.
58538
58539 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58540
58541         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
58542         promotes to int, not unsigned int, to catch the AIX 5.3
58543         compiler bug.
58544
58545 2005-10-05  Simon Josefsson  <jas@extundo.com>
58546
58547         * modules/memxor: New file.
58548
58549         * modules/iconv (Files): Move config.rpath to havelib, it is used
58550         there.
58551
58552         * modules/havelib (Files): Add config.rpath.
58553
58554 2005-10-05  Simon Josefsson  <jas@extundo.com>
58555
58556         * m4/memxor.m4: New file.
58557
58558 2005-10-05  Simon Josefsson  <jas@extundo.com>
58559
58560         * lib/memxor.c (memxor): Fix compiler error.
58561
58562         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
58563         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
58564
58565         * lib/memxor.h, lib/memxor.c: New files.
58566
58567         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
58568         we assume all systems have it, suggested by Jim Meyering
58569         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
58570         any systems lack sys/socket.h; mingw32 is known to lack it, but we
58571         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
58572         same reasons.
58573
58574 2005-10-05  Simon Josefsson  <jas@extundo.com>
58575
58576         * config/srclist.txt: Add glibc bug 1423 for md5.h.
58577
58578 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58579
58580         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
58581         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
58582         needed, since the source code now assumes these .h files.
58583
58584 2005-10-05  Derek Price  <derek@ximbiot.com>
58585
58586         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
58587
58588 2005-10-05  Bruno Haible  <bruno@clisp.org>
58589
58590         * modules/stdint (License): Change to LGPL.
58591
58592 2005-10-04  Simon Josefsson  <jas@extundo.com>
58593
58594         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
58595         D. Baushke" <mdb@gnu.org>.
58596
58597 2005-10-04  Bruno Haible  <bruno@clisp.org>
58598
58599         * lib/verify.h (verify_true): Provide alternative definition for C++.
58600
58601 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
58604         (SSIZE_MAX): New macro, if not already defined.
58605         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
58606         than 2 GiB.
58607
58608 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58609
58610         Sync from coreutils.
58611         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
58612         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
58613         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
58614         ULLONG_MAX doesn't work with 2.7.2.1.
58615
58616 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58617
58618         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
58619         From Ben Pfaff.
58620
58621         * modules/exclude (Depends-on): Depend on verify.
58622         * modules/strtoimax (Depends-on): Likewise.
58623         * modules/utimecmp (Depends-on): Likewise.
58624
58625 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58626
58627         * lib/exclude.c: Include verify.h.
58628         (verify): Remove.  All callers changed to use verify.h's version.
58629         * lib/strtoimax.c: Likewise.
58630         * lib/utimecmp.c: Likewis.e
58631
58632         Sync from coreutils.
58633         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
58634         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
58635         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
58636         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
58637         bother returning ENOSYS if settimeofday or stime fails; just let
58638         them return whatever errno they want to return.
58639         * lib/utimens.c: Include unistd.h, for dup2.
58640         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
58641         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
58642
58643 2005-10-02  Jim Meyering  <jim@meyering.net>
58644
58645         Sync from coreutils.
58646         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
58647         from glibc-2.2.5 that fails for read-only files.
58648
58649 2005-10-02  Jim Meyering  <jim@meyering.net>
58650
58651         Sync from coreutils.
58652         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
58653         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
58654         `#if HAVE_CONFIG_H'.
58655         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
58656         Remove AT_FDCWD test.
58657         Do not consume the fd unless successful.
58658         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
58659         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
58660         block, so that we don't even try to compile it if settimeofday is
58661         available.  This works around a compilation failure on OSF1 V5.1,
58662         due to stime requiring a `long int*' while tv_sec is `int'.
58663
58664 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
58665
58666         Sync from coreutils.
58667         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
58668         against `yes', rather than just testing for nonempty.
58669
58670 2005-10-01  Simon Josefsson  <jas@extundo.com>
58671
58672         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
58673         and Darwin.
58674
58675         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
58676         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
58677         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
58678         freeaddrinfo and gai_strerror are declared by the POSIX headers.
58679         Check if struct addrinfo is declared.
58680
58681 2005-10-01  Simon Josefsson  <jas@extundo.com>
58682
58683         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
58684         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
58685         AI_* and EAI_* definitions.  Protect function declarations.
58686
58687 2005-10-01  Jim Meyering  <jim@meyering.net>
58688
58689         Sync from coreutils.
58690
58691         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
58692         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
58693         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
58694         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58695         in the inet and nsl libraries.  Required on Solaris 5.7.
58696
58697 2005-10-01  Jim Meyering  <jim@meyering.net>
58698
58699         Sync from coreutils.
58700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58701         in the inet and nsl libraries.  Required on Solaris 5.7.
58702
58703 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
58704
58705         * lib/getdelim.c (getdelim): Remove unused variables.
58706
58707 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58708
58709         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
58710         so that the code works even with ancient cpp.  Portability problem
58711         with GCC 2.7.2.1 reported by Thomas M.Ott.
58712
58713 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58714
58715         * modules/regex (Depends-on): Add strcase.
58716
58717         * modules/gethostname (Licence): Change from GPL to LGPL, since
58718         gethostname.c is a trivial implementation of a standard library
58719         function.
58720         * modules/poll (License): Change from GPL to LGPL, since it's
58721         derived from LGPL code.
58722
58723 2005-09-27  Jim Meyering  <jim@meyering.net>
58724
58725         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
58726         HAVE_CONFIG_H.
58727
58728         * lib/intprops.h (signed_type_or_expr__): Define.
58729         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
58730         for unsigned types.
58731
58732 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         * lib/verify.h (verify_expr): Remove, replacing with:
58735         (verify_true): New macro that returns true instead of void.
58736         (verify_type__): Remove.
58737         (verify): Use verify_true rather than verify_type__.
58738
58739 2005-09-26  Bruno Haible  <bruno@clisp.org>
58740
58741         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
58742         is necessary.
58743         (lib_SOURCES): Remove mbchar.c.
58744         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
58745         (Files): Add m4/mbrtowc.m4.
58746         * modules/mbiter: Likewise.
58747         * modules/mbuiter: Likewise.
58748
58749 2005-09-26  Bruno Haible  <bruno@clisp.org>
58750
58751         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
58752         compile mbchar.c if they are not both present.
58753         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
58754         * m4/mbiter.m4 (gl_MBITER): Likewise.
58755         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
58756         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
58757         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
58758
58759 2005-09-25  Jim Meyering  <jim@meyering.net>
58760
58761         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
58762         also uses socklen_t.
58763
58764 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
58765
58766         * lib/utimens.c (ENOSYS): Define if not already defined.
58767         (futimens): Support having a null PATH if the file descriptor
58768         is nonnegative.
58769
58770         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
58771         Remove.
58772         (__attribute): Define to empty unless GCC 3.1 or later.
58773         This works around a core dump on OpenBSD 3.4, which has GCC
58774         2.95.3, which dumps core when given __attribute__(()).  It also
58775         simplifies other tests, since we really don't want to bother with
58776         worrying about which ancient version of GCC supported what.
58777         Original problem reported by Yoann Vandoorselaere, with part of
58778         the fix suggested by Derek Price.
58779
58780 2005-09-24  Jim Meyering  <jim@meyering.net>
58781
58782         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
58783         so we can once again use a positive bitfield width of 1 -- now we
58784         don't have to explain why we were using a bitfield width of 2.
58785
58786 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58787
58788         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
58789         and similarly for the other external symbols.  Problem reported
58790         by James Gallager.
58791
58792         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
58793         bug reported by Jim Meyering.
58794
58795         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
58796         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
58797         not needed, since socklen is a prerequisite module.
58798
58799 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58800
58801         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
58802         Problem reported by Eric Blake.
58803         (getaddrinfo): Initialize se so that it's not garbage.
58804         Redo internal storage allocation so that it doesn't make unportable
58805         assumptions about alignment.
58806         Fix a memory leak.
58807
58808         * lib/utimens.c (futimens): Use futimesat if available.
58809         Prefer it to futimes since it doesn't have the futimes bug.
58810
58811         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
58812         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
58813         Instead, declare a function that returns a pointer to an array,
58814         and use verify_type__ to declare the size of the array.
58815         Problem and germ of a solution reported by Bruno Haible.
58816         (verify_type__): Use 2, not 1, for bitfield size, to avoid
58817         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
58818
58819 2005-09-23  Jim Meyering  <jim@meyering.net>
58820
58821         Sync from coreutils.
58822         Correct build failure (socklen_t not defined) on at least
58823         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
58824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
58825
58826 2005-09-23  Jim Meyering  <jim@meyering.net>
58827
58828         * modules/getaddrinfo (Depends-on): Add socklen.
58829
58830 2005-09-23  Bruno Haible  <bruno@clisp.org>
58831
58832         * tests/test-verify.c: New file.
58833
58834 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58835
58836         Sync from coreutils.
58837
58838         * modules/argmatch (Depends-on): Add verify.
58839         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
58840         unistd-safer.
58841         * modules/save-cwd (Depends-on): Likewise.
58842
58843         * modules/openat (Files): Add lib/openat-die.c.
58844         (Depends-on): Remove error, exitfail.
58845         Add dirname.
58846
58847         * modules/verify: New file.
58848         * MODULES.html.sh (Diagnostics <assert.h>): New section,
58849         with "verify" module.
58850
58851 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58852
58853         Sync from coreutils.
58854
58855         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
58856         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
58857         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
58858         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
58859         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
58860         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
58861         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
58862         Don't bother checking for string.h, stdlib.h, unistd.h.
58863         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
58864         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
58865         module's job.
58866         * m4/jm-macros.m4 (gl_MACROS): Likewise.
58867         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
58868
58869         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
58870         (gl_GETDATE): Use it.
58871
58872         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
58873
58874 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58875
58876         Sync from coreutils.
58877
58878         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
58879         stat-time.h.
58880         * lib/argmatch.h: Include verify.h
58881         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
58882         (ARGMATCH_ASSERT): Remove; unused.
58883         * lib/canonicalize.c: Assume STDC_HEADERS.
58884         * lib/exclude.c: Include "strcase.h".
58885         * lib/regex_internal.h [!defined _LIBC]: Likewise.
58886         * lib/getusershell.c: Include stdio--.h rather than stdio.h
58887         and stdio-safer.h.
58888         (getusershell): Call fopen, not fopen_safer.
58889         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
58890         Do not include unistd-safer.h.
58891         (save_cwd): Don't call fd_safer; no longer needed
58892         now that we include fcntl--.h.
58893
58894         * lib/getdate.y (relative_time): New type.
58895         (RELATIVE_TIME_0): New constant.
58896         (parser_control): Use relative_time instead of doing it ourselves.
58897         (%union): Add new relative_time rel member.
58898         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
58899         Now typeless.
58900         (relunit, relunit_snumber): Now of type rel.
58901         (zone, rel, relunit, get_date): Adjust to above changes.
58902
58903         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
58904         Do not include unistd-safer.h.
58905         (getloadavg): Don't call fd_safer; no longer needed
58906         now that we include fcntl--.h.
58907
58908         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
58909         (make_dir_parents): Treat ENOSYS like EEXIST.
58910
58911         Improve quality of diagnostics on restore_cwd failure.
58912         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
58913         (make_dir_parents): Last arg is now int * (for errno), not bool *.
58914         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
58915         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
58916         each time through the loop.  Do not diagnose restore_cwd failure;
58917         that is the caller's job (and perhaps the caller does not care).
58918
58919         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
58920         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
58921         If the file already exists but is not a directory, don't bother
58922         to try to make its parents.
58923         Close potential file descriptor leak if we can't chdir("/") (!).
58924         Don't always return true if chdir($PWD) fails; return true only
58925         if the requested action was done successfully (except for the
58926         chdir($PWD)).
58927         Don't log final directory unless we actually made it.
58928         Refactor to avoid duplicate code to fix up permissions.
58929         Don't attempt to fix up parent permissions if chdir($PWD) fails.
58930
58931         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
58932         to make it a bit faster and (I hope) clearer.
58933         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
58934         Fix bug in formats like %2N.
58935
58936         * lib/verify.h: New file.
58937
58938 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58939
58940         Sync from coreutils.
58941         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
58942
58943 2005-09-22  Jim Meyering  <jim@meyering.net>
58944
58945         Sync from coreutils.
58946
58947         * m4/lstat.m4 (gl_FUNC_LSTAT):
58948         Use AC_LIBSOURCES to require lstat.c and lstat.h.
58949         Remove obsolete comment.
58950         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
58951         * m4/xstrtod.m4: Likewise.
58952
58953         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
58954
58955 2005-09-22  Jim Meyering  <jim@meyering.net>
58956
58957         Sync from coreutils.
58958
58959         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
58960
58961         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
58962         the .tm_year member, since otherwise gcc-4.0 would now warn about
58963         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
58964
58965         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
58966         order to avoid an unsuppressible warning from gcc on 64-bit systems.
58967
58968         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
58969         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
58970         when run in a time zone for which daylight savings time is in effect
58971         for the starting date.
58972
58973         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
58974         stop us from restricting permissions of just-created absolute-named
58975         directories.
58976         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
58977         to restore initial working directory.
58978         * lib/mkdir-p.c (make_dir_parents): New parameter:
58979         different_working_dir, to tell caller if/when we change the working
58980         directory and are unable to return to the initial one.
58981         * lib/mkdir-p.h (make_dir_parents): Update prototype.
58982         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
58983         `return false'.  This fixes a bug introduced on 2004-07-30.
58984
58985         * lib/openat.c (fdopendir): Be sure to close the supplied
58986         file descriptor before returning.  This makes our replacement
58987         implementation a little closer to Solaris's, where fdopendir
58988         ties the file descriptor to the returned DIR* pointer.
58989         * lib/openat.c (unlinkat): New function.
58990         * lib/openat.h (unlinkat): Add prototype.
58991         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
58992         (openat_restore_fail): Rename from openat_restore_die.
58993         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
58994
58995         Provide an alternative to exiting immediately upon save_cwd or
58996         restore_cwd failure.  Now, an application can arrange e.g.,
58997         to perform a longjump in that case.
58998         * lib/openat.c: Include dirname.h.
58999         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59000         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59001         and openat_restore_die rather than calling error directly.
59002         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59003
59004         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59005         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59006         define.
59007
59008         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59009         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59010                             int utc, int nanoseconds);
59011         Background:
59012         date should not have to allocate a megabyte of virtual memory to
59013         handle a format argument like +%1048575T.  When implemented with
59014         strftime, it must allocate such a buffer, use strftime to fill it
59015         in, print it, then free it.
59016         With fprintftime, it simply prints everything and exits.
59017         With no need for memory allocation, that's one fewer way to fail.
59018         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59019         optional field width, not before, so we accept %9:z, not %:9z.
59020         (my_strftime): Be sure to use L_('x') for literals.
59021
59022         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59023         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59024         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59025         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59026         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59027         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59028         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59029         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59030         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59031         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59032         * lib/xgethostname.c, lib/xreadlink.c:
59033         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59034
59035         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59036         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59037         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59038         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59039         and don't include <sys/file.h>).
59040
59041 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59042
59043         Sync from coreutils.
59044
59045         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59046         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59047         [!LDAV_DONE]: Avoid unused variable warning.
59048
59049 2005-09-21  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/unicodeio.h (unicode_to_mb): New declaration.
59052
59053 2005-09-20  Derek Price  <derek@ximbiot.com>
59054
59055         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59056         getaddrinfo.h.
59057
59058 2005-09-20  Bruno Haible  <bruno@clisp.org>
59059
59060         * gnulib-tool: Remove trailing slashes from the values specified for
59061         --source-base, --m4-base, --tests-base, --aux-dir.
59062         Suggested by Simon Josefsson <jas@extundo.com>.
59063
59064 2005-09-20  Bruno Haible  <bruno@clisp.org>
59065
59066         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59067         func_modules_to_filelist, func_import, func_create_testdir): Make all
59068         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59069         change when gnulib-tool is invoked in a different locale.
59070
59071 2005-09-19  Simon Josefsson  <jas@extundo.com>
59072
59073         * m4/socklen.m4: Fix typo.
59074
59075 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59076
59077         Use a consistent style for including <config.h>.
59078         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59079         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59080         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59081         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59082         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59083         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59084         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59085         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59086         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59087         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59088         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59089         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59090         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59091         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59092         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59093         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59094         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59095         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59096         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59097         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59098         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59099         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59100         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59101         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59102         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59103         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59104         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59105         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59106         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59107         lib/xstrtoumax.c, lib/yesno.c:
59108         Standardize inclusion of config.h.
59109         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59110         lib/inttostr.h:  Removed inclusion of config.h from header files.
59111         * lib/inttostr.c:  Adjusted in-tree users.
59112         * lib/timespec.h: Remove superfluous warning to include config.h.
59113         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59114         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59115         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59116         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59117         config.h with HAVE_CONFIG_H.
59118
59119 2005-09-19  Jim Meyering  <jim@meyering.net>
59120
59121         * modules/pathmax (License): Change to LGPL.
59122
59123 2005-09-19  Derek Price  <derek@ximbiot.com>
59124
59125         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59126
59127 2005-09-19  Bruno Haible  <bruno@clisp.org>
59128
59129         * gnulib-tool (import): Provide default for --tests-base.
59130
59131 2005-09-19  Bruno Haible  <bruno@clisp.org>
59132
59133         * doc/quote.texi: New file, extracted from gnulib.texi.
59134         * doc/ctime.texi: New file, extracted from gnulib.texi.
59135         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59136         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59137         * doc/gnulib.texi: Include them.
59138
59139 2005-09-18  Bruno Haible  <bruno@clisp.org>
59140
59141         Portability fix.
59142         * gnulib-tool (func_readlink): New function.
59143         (func_ln_if_changed): Use it.
59144
59145 2005-09-18  Bruno Haible  <bruno@clisp.org>
59146
59147         * gnulib-tool: Support --with-tests also with --import.
59148         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59149         (func_import): Use variables $testsbase and $inctests. Emit a
59150         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59151         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59152         SUBDIRS += $testsdir.
59153         (func_create_testdir): Update.
59154
59155 2005-09-18  Bruno Haible  <bruno@clisp.org>
59156
59157         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59158         instead of $dry_run.
59159         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59160         (func_ln_if_changed): Don't handle dry-run here.
59161         (func_import): In dry-run mode, detect more precisely which actions
59162         would be performed, and don't use "...ing" verbs.
59163
59164 2005-09-18  Bruno Haible  <bruno@clisp.org>
59165
59166         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59167         (func_import): Use join on two temporary files instead of three nested
59168         loops, in order to determine which files are new or old.
59169
59170 2005-09-18  Bruno Haible  <bruno@clisp.org>
59171
59172         * gnulib-tool (func_import): Comment out code that spits out the
59173         new files with --dry-run.
59174
59175 2005-09-18  Bruno Haible  <bruno@clisp.org>
59176
59177         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59178
59179 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59180
59181         * lib/stat-time.h: New file.
59182         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59183         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59184         in a different way.
59185         (timespec_cmp): New function.
59186         * lib/utimecmp.c: Include stat-time.h.
59187         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59188         members exist, not on the obsolescent ST_MTIM_NSEC.
59189         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59190
59191 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59192
59193         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59194
59195 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59196
59197         * MODULES.html.sh (File system functions): Add stat-time.
59198         * modules/stat-time: New file.
59199         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59200         is now done in a different way, by the stat-time module.
59201         * modules/utimecmp (Depends-on): Add stat-time.
59202
59203 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59204
59205         * m4/st_mtim.m4: Remove.  Superseded by...
59206         * m4/stat-time.m4: New file.
59207         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59208         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59209
59210 2005-09-15  Derek Price  <derek@ximbiot.com>
59211
59212         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59213
59214 2005-09-15  Derek Price  <derek@ximbiot.com>
59215
59216         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59217         * lib/regex_internal.c: Ditto, using this...
59218         (__GNUC_PREREQ): ...new macro.
59219         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59220         using...
59221         (__GNUC_PREREQ): ...this new macro.
59222
59223         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59224
59225 2005-09-15  Derek Price  <derek@ximbiot.com>
59226             Paul Eggert  <eggert@cs.ucla.edu>
59227
59228         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59229         changes, consolidating in...
59230         * lib/regex_internal.h: ...this file.
59231
59232 2005-09-13  Jim Meyering  <jim@meyering.net>
59233
59234         * lib/canon-host.c: Filter through gnu indent and reword comments
59235         slightly.
59236         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59237
59238 2005-09-13  Derek Price  <derek@ximbiot.com>
59239
59240         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59241         failure.
59242         Reported by Jim Meyering  <jim@meyering.net>.
59243
59244 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59245
59246         * lib/base64.c: Typo.
59247         (base64_encode): Put b64str in initialized data section.
59248
59249 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59250
59251         Merge glibc and coreutils changes into gnulib, plus a few
59252         extra fixes.
59253         * lib/md5.c: Use #error rather than a string.
59254         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59255         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59256         (__attribute__): Define to empty for non recent-GCC.
59257         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59258         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59259         Renamed from their non-__ counterparts, with new macros replacing
59260         them if not _LIBC.  Add __THROW attribute.
59261         (rol): Remove.
59262         (struct md5_ctx): Align buffer if using GCC.
59263         * lib/sha1.h (struct sha1_ctx): Likewise.
59264         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59265         The old name was backwards.
59266         (NOTSWAP): Remove; not used.
59267         (rol): New macro, moved here from md5.h.
59268         (sha1_process_block): Remove a FIXME that doesn't make sense.
59269
59270 2005-09-12  Derek Price  <derek@ximbiot.com>
59271
59272         Return usable errors from canon-host.
59273         * lib/canon-host.h: New file.
59274         * lib/canon-host.c (canon_host): Wrap...
59275         (canon_host_r): ...this new function, which now relies exclusively on
59276         getaddrinfo.
59277         (ch_strerror): New function.
59278         (last_cherror): New global.
59279         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59280         interface.
59281         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59282         void *.
59283         (freeaddrinfo): Free ai->ai_canonname when set.
59284
59285 2005-09-12  Derek Price  <derek@ximbiot.com>
59286
59287         Make canon-host require getaddrinfo.
59288         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59289         AC_LIBSOURCE canon-host.h.  Call...
59290         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59291         gl_GETADDRINFO.
59292         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59293
59294 2005-09-12  Derek Price  <derek@ximbiot.com>
59295
59296         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59297         LGPL.
59298         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59299
59300 2005-09-12  Derek Price  <derek@ximbiot.com>
59301
59302         * lib/gai_strerror.c: Include config.h when available.  Include
59303         getaddrinfo.h before other headers to test interface.
59304         Reported by Larry Jones <lawrence.jones@ugs.com>.
59305
59306 2005-09-12  Derek Price  <derek@ximbiot.com>
59307             Paul Eggert  <eggert@cs.ucla.edu>
59308
59309         * modules/glob (Files): Add glob-libc.h.
59310
59311 2005-09-12  Derek Price  <derek@ximbiot.com>
59312             Paul Eggert  <eggert@cs.ucla.edu>
59313
59314         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59315         glob_.h, glob-libc.h.
59316         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59317
59318 2005-09-12  Derek Price  <derek@ximbiot.com>
59319             Paul Eggert  <eggert@cs.ucla.edu>
59320
59321         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59322         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59323         protecting things that should be done only in gnulib contexts.
59324         * lib/glob_.h: New file, containing only the glob things needed for
59325         gnulib.
59326         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59327         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59328         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59329         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59330         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59331         and to respect the namespace rules better.
59332
59333 2005-09-08  Simon Josefsson  <jas@extundo.com>
59334
59335         * modules/socklen: New file.
59336
59337 2005-09-08  Simon Josefsson  <jas@extundo.com>
59338
59339         * m4/socklen.m4: New file.
59340
59341 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59342
59343         * modules/utimens (Files): Add m4/utimbuf.m4, since
59344         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
59345         Reported by Sergey Poznyakoff.
59346
59347 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59348
59349         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
59350         definitions, since that's the preferred style in glibc.
59351         Fix a minor spacing issue, and update copyright notice to match
59352         glibc's.
59353
59354 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59355
59356         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
59357
59358 2005-09-06  Simon Josefsson  <jas@extundo.com>
59359
59360         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
59361         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
59362
59363 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59364
59365         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59366         warning.
59367
59368 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59369
59370         * config/srclist.txt: Add glibc bug 1302.
59371
59372 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         Change bitset word type from unsigned int to unsigned long int,
59375         as this has better performance on typical 64-bit hosts.
59376         Port bitset code to hosts with unusual word sizes.
59377         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59378         (build_collating_symbol):
59379         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59380         argument is a bitset.  This is merely a style issue, but it makes
59381         it clearer that an entire array is expected.
59382         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59383         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59384         Port to the case where bitset_word is not the same as unsigned int.
59385         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59386         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59387         Likewise.
59388         * lib/regexec.c (check_dst_limits_calc_pos_1,
59389         check_subexp_matching_top):
59390         (build_trtable, group_nodes_into_DFAstates):
59391         Likewise.
59392         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59393         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59394         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59395         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59396         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59397         * lib/regcomp.c (optimize_subexps, lower_subexp):
59398         Work even if bitset_word has holes in its bitwise representation.
59399         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59400         * lib/regexec.c (check_dst_limits_calc_pos_1,
59401         check_subexp_matching_top):
59402         Likewise.
59403         * lib/regex_internal.c (re_string_reconstruct):
59404         Don't assume UCHAR_MAX == 255.
59405         * lib/regex_internal.h (bitset_set_all): Likewise.
59406         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59407         All uses changed.
59408         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59409         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59410         All uses changed.
59411         (BITSET_WORD_MAX): New macro.
59412         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
59413         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
59414         (bitset_empty, bitset_copy):
59415         Prefer sizeof (bitset) to multiplying it out ourselves.
59416         (bitset_not_merge): Remove; unused.
59417         (bitset_contain): Return bool, not unsigned int with one bit on.
59418         All callers changed.
59419         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
59420         alignment than re_node_set; do this by defining a new internal
59421         type struct dests_alloc and using it to allocate memory.
59422
59423 2005-09-05  Bruno Haible  <bruno@clisp.org>
59424
59425         * gnulib-tool (func_import): Fix comparison in handling of symbolic
59426         links.
59427
59428 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
59429
59430         * modules/size_max (Makefile.am): Add size_max.h
59431
59432 2005-09-04  Derek Price  <derek@ximbiot.com>
59433
59434         * gnulib-tool (func_import): Fix reversed $symbolic logic.
59435
59436 2005-09-03  Simon Josefsson  <jas@extundo.com>
59437
59438         * gnulib-tool: Fix typo.
59439
59440 2005-09-03  Simon Josefsson  <jas@extundo.com>
59441
59442         * config/srclist.txt: Add glibc bug 1293.
59443
59444 2005-09-03  Derek Price  <derek@ximbiot.com>
59445
59446         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
59447         From Larry Jones <lawrence.jones@ugs.com>.
59448
59449 2005-09-02  Simon Josefsson  <jas@extundo.com>
59450
59451         * modules/socklen: New file.
59452
59453 2005-09-02  Simon Josefsson  <jas@extundo.com>
59454
59455         * modules/havelib: New module.
59456
59457         * modules/gettext, modules/iconv, modules/lock, modules/readline:
59458         Use havelib.
59459
59460 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59461
59462         Check for arithmetic overflow when calculating sizes, to prevent
59463         some buffer-overflow issues.  These patches are conservative, in the
59464         sense that when I couldn't determine whether an overflow was possible,
59465         I inserted a run-time check.
59466         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
59467         macros.
59468         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
59469         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
59470         (re_xnrealloc, re_x2nrealloc): New inline functions.
59471         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
59472         parse_bracket_exp):
59473         (build_equiv_class, build_charclass): Check for arithmetic overflow
59474         in size expression calculations.
59475         * lib/regex_internal.c (re_string_realloc_buffers):
59476         (build_wcs_upper_buffer, re_node_set_add_intersect):
59477         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
59478         (re_dfa_add_node, register_state): Likewise.
59479         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
59480         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
59481         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
59482         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
59483
59484 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59485
59486         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59487         m4/ulonglong.m4.  Problem reported by Martin Lambers.
59488
59489 2005-09-02  Bruno Haible  <bruno@clisp.org>
59490
59491         Support for lib vs. lib64 distinction on biarch platforms.
59492         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
59493         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
59494         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
59495
59496 2005-09-02  Bruno Haible  <bruno@clisp.org>
59497
59498         * gnulib-tool (import): In the other first-use case, provide defaults
59499         as well.
59500
59501 2005-09-02  Bruno Haible  <bruno@clisp.org>
59502
59503         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
59504         patches not yet found in the latest gettext release.
59505
59506 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59507
59508         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
59509         to avoid a collision with bits/local_lim.h in glibc.
59510         All uses changed.  Problem reported by Dmitry V. Levin in
59511         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
59512
59513         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
59514         bugs in int versus size_t comparisons.
59515         (re_string_context_at): Fix bug where the code assumed that
59516         Idx is signed.
59517
59518         Use bool where appropriate.
59519         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
59520         All callers changed.
59521         (calc_eclosure_iter): Likewise, for ROOT arg.
59522         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
59523         (build_charclass_op): Likewise, for NON_MATCH arg.
59524         * lib/regex_internal.c (re_string_allocate, re_string_construct):
59525         (re_string_construct_common): Likewise, for ICASE arg.
59526         * lib/regexec.c (re_search_2_stub, re_search_stub):
59527         Likewise, for RET_LEN arg.
59528         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
59529         (set_regs): Likewise, for FL_BACKTRACK arg.
59530         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
59531         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
59532         (calc_eclosure_iter, parse_bracket_exp):
59533         Use bool for internal variables that are booleans.
59534         * lib/regexec.c (re_search_internal, check_matching,
59535         proceed_next_node):
59536         (set_regs, build_sifted_states, sift_states_bkref):
59537         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
59538         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59539         (find_collation_sequence_value):
59540         Likewise.
59541         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
59542         (re_node_set_compare):
59543         Return bool, not int. All callers changed.
59544         * lib/regexec.c (check_halt_node_context, check_dst_limits):
59545         (build_trtable, check_node_accept): Likewise.
59546         * lib/regex_internal.h: Include stdbool.h.
59547
59548         Fix bugs uncovered when converting to bool.
59549         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
59550         failure instead of charging ahead blindly.
59551         * lib/regex_internal.c (register_state): Likewise.
59552         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
59553         for freeing internal storage.
59554         (group_nodes_into_DFA_states): Use unsigned int, not int, for
59555         bitset pieces used as boolean, to avoid undefined behavior
59556         on hosts that do int overflow checking.
59557
59558 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59559
59560         * config/srclist.txt: Add glibc bugs 1285-1287.
59561
59562 2005-09-01  Jim Meyering  <jim@meyering.net>
59563
59564         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
59565         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
59566         Require gl_STAT_MACROS, too.
59567
59568 2005-09-01  Bruno Haible  <bruno@clisp.org>
59569
59570         * gnulib-tool (import): In the first-use case, provide defaults.
59571
59572 2005-09-01  Bruno Haible  <bruno@clisp.org>
59573
59574         * gnulib-tool (func_import): Remove the .tmp files.
59575
59576 2005-09-01  Bruno Haible  <bruno@clisp.org>
59577
59578         * gnulib-tool (func_import): Fix handling of symbolic links.
59579
59580 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59581
59582         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
59583         old glibc regex code mishandles strings longer than 2**31 bytes.
59584         This patch fixes this when the regex code is used in gnulib
59585         (i.e., outside glibc).
59586
59587         This patch should not affect the use of the regex code inside
59588         glibc.  No doubt this problem also needs to be handled for glibc
59589         as well, but the result will be an incompatible change to the
59590         glibc ABI, and the old ABI will have to be supported too.  That
59591         can be the the subject for another patch.
59592
59593         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
59594         governing whether the rest of this patch is active.  By default,
59595         the macro is disabled and the patch has no effect.
59596         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
59597         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
59598         (struct re_pattern_buffer, re_search, re_search_2, re_match):
59599         (re_match_2, re_set_registers): Use the new types.
59600         * lib/regex_internal.h (Idx, re_hashval_t): New types.
59601         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
59602         New macros.
59603         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
59604         (re_string_context_at, bin_tree_t, re_dfastate_t):
59605         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
59606         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
59607         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
59608         (re_string_char_size_at, re_string_wchar_at):
59609         (re_string_elem_size_at):
59610         Use the new types and macros to port to 64-bit hosts.
59611         Use unsigned types for internal values, so that the code
59612         mostly works even for arrays larger than SSIZE_MAX.
59613         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
59614         (search_duplicated_node, calc_eclosure_iter, fetch_number):
59615         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
59616         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
59617         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
59618         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
59619         (calc_inveclosure, parse_dup_op, build_range_exp):
59620         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
59621         (fetch_number, create_token_tree, mark_opt_subexp):
59622         Likewise.
59623         * lib/regex_internal.c (re_string_construct_common,
59624         create_ci_newstate):
59625         (create_cd_newstate, re_string_allocate, re_string_construct):
59626         (re_string_realloc_buffers, build_wcs_upper_buffer):
59627         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59628         (re_string_reconstruct, re_string_peek_byte_case):
59629         (re_string_fetch_byte_case, re_string_context_at):
59630         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59631         (re_node_set_init_copy, re_node_set_add_intersect):
59632         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59633         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59634         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59635         (re_acquire_state, re_acquire_state_context, register_state):
59636         Likewise.
59637         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
59638         search_cur_bkref_entry):
59639         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
59640         (re_search_internal, re_search_2_stub, re_search_stub)
59641         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
59642         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
59643         (update_cur_sifted_state, check_dst_limits):
59644         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59645         (check_subexp_limits, sift_states_bkref, merge_state_array):
59646         (check_subexp_matching_top, get_subexp, get_subexp_sub):
59647         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
59648         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59649         (expand_bkref_cache, check_node_accept_bytes):
59650         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
59651         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
59652         (acquire_init_state_context, check_halt_node_context):
59653         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
59654         (sift_states_backward, clean_state_log_if_needed):
59655         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
59656         (find_recover_state, transit_state_sb, transit_state_mb):
59657         (transit_state_bkref, build_trtable, match_ctx_clean):
59658         Likewise.
59659         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
59660         to work around an assumption that REG_MISSING is negative.
59661
59662         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
59663         (seek_collating_symbol_entry) [defined _LIBC]:
59664         (lookup_collation_sequence_value) [defined _LIBC]:
59665         (build_range_exp, build_collating_symbol) [defined _LIBC]:
59666         Use prototypes rather than old-style function definitions.
59667         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
59668         (transit_state_sb) [0]:
59669         (find_collation_sequence_value) [defined _LIBC]: Likewise.
59670
59671         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
59672         rm_eo.
59673
59674         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
59675         (optimize_subexps, lower_subexp):
59676         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
59677         since the signed shift might overflow.  Use 1u<<31 instead.
59678         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59679         Likewise.
59680         * lib/regexec.c (check_dst_limits_calc_pos_1,
59681         check_subexp_matching_top): Likewise.
59682
59683         * lib/regcomp.c (optimize_subexps, lower_subexp):
59684         Use CHAR_BIT rather than 8, for clarity.
59685         * lib/regexec.c (check_dst_limits_calc_pos_1):
59686         (check_subexp_matching_top): Likewise.
59687         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
59688         have to worry about portability issues when shifting it left.
59689         Remove no-longer-needed test for table_size > 0.
59690         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
59691         in a word, as the resulting behavior is undefined.
59692         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
59693         in one case, a <= should have been an <, and in another case the
59694         whole test was missing.
59695         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
59696         the standard name CHAR_BIT.
59697         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
59698         this is not true on one's complement and signed-magnitude hosts.
59699
59700         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
59701         next_last_offset.
59702         (struct re_dfa_t): Remove unused member states_alloc.
59703         * lib/regcomp.c (init_dfa): Don't initialize unused members.
59704
59705 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59706
59707         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
59708         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
59709         and large-file glibc and in 32-bit large-file Solaris.
59710
59711 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59712
59713         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
59714         lengths fit in regoff_t; this isn't true if regoff_t is the same
59715         width as size_t.
59716         * lib/regex.c (re_search_internal): 5th arg is LAST_START
59717         (= START + RANGE) instead of RANGE.  This avoids overflow
59718         problems when regoff_t is the same width as size_t.
59719         All callers changed.
59720         (re_search_2_stub): Check for overflow when adding the
59721         sizes of the two strings.
59722         (re_search_stub): Check for overflow when adding START
59723         to RANGE; if it occurs, substitute the extreme value.
59724
59725 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59726
59727         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
59728
59729 2005-08-31  Jim Meyering  <jim@meyering.net>
59730
59731         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
59732         a pointer-to-const.
59733         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
59734         (register_state): Likewise.
59735         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
59736         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59737         (group_nodes_into_DFAstates): Likewise.
59738
59739 2005-08-31  Jim Meyering  <jim@meyering.net>
59740
59741         * check-module: Add a FIXME comment.
59742
59743 2005-08-31  Eric Blake  <ebb9@byu.net>
59744
59745         * modules/unistd-safer (Files): Add unistd--.h.
59746         * modules/stdio-safer (Files): Add stdio--.h.
59747
59748 2005-08-31  Derek Price  <derek@ximbiot.com>
59749
59750         * lib/getdelim.c (getdelim): Return EOF on EOF.
59751         Reported by Larry Jones <lawrence.jones@ugs.com>.
59752
59753 2005-08-31  Bruno Haible  <bruno@clisp.org>
59754
59755         Avoid unnecessary diffs in the generated lib/Makefile.am.
59756         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
59757         the generated files.
59758         (func_import): Don't set cmd.
59759
59760 2005-08-31  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/strstr.c: Include <stddef.h>, for NULL.
59763         * lib/strcasestr.c: Likewise.
59764         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59765
59766 2005-08-31  Bruno Haible  <bruno@clisp.org>
59767
59768         * gnulib-tool: New option --macro-prefix.
59769         (func_import): Use macro_prefix.
59770         (import): Handle option --macro-prefix.
59771
59772 2005-08-31  Bruno Haible  <bruno@clisp.org>
59773
59774         * gnulib-tool (import): Rename most ac_* variables to cached_*.
59775         Also use new variables cached_lgpl, cached_libtool.
59776
59777 2005-08-31  Bruno Haible  <bruno@clisp.org>
59778
59779         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
59780         always instantiating them.
59781
59782 2005-08-31  Bruno Haible  <bruno@clisp.org>
59783
59784         * gnulib-tool (func_import): Read the previous cached settings
59785         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
59786         earlier added by gnulib but are now dropped. Warn when a gnulib file
59787         overwrites a non-gnulib file.
59788
59789 2005-08-31  Bruno Haible  <bruno@clisp.org>
59790
59791         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
59792         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
59793         projects that don't keep autogenerated files in CVS. Put into
59794         actioncmd only the specified modules, not the transitive closure.
59795
59796 2005-08-31  Bruno Haible  <bruno@clisp.org>
59797
59798         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
59799         Create directories that shall be filled.
59800         (import): Don't look for gl_* macros in configure.ac. Recurse across
59801         all directories containing a gnulib-cache.m4 files, if meaningful.
59802
59803 2005-08-31  Bruno Haible  <bruno@clisp.org>
59804
59805         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
59806         (import): Set seen_libtool when we see gl_LIBTOOL.
59807
59808 2005-08-31  Bruno Haible  <bruno@clisp.org>
59809
59810         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
59811         declaration macro definitions from generated gnulib.m4.
59812
59813 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
59814
59815         * lib/iconvme.h: Add prototype for iconv_alloc.
59816
59817 2005-08-29  Simon Josefsson  <jas@extundo.com>
59818
59819         * lib/iconvme.c: Fix errno.
59820
59821 2005-08-29  Bruno Haible  <bruno@clisp.org>
59822
59823         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
59824         that it works when the directory contains spaces.
59825
59826 2005-08-29  Bruno Haible  <bruno@clisp.org>
59827
59828         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
59829
59830 2005-08-29  Bruno Haible  <bruno@clisp.org>
59831
59832         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
59833         Emit more advice.
59834
59835 2005-08-29  Bruno Haible  <bruno@clisp.org>
59836         and Stepan Kasal  <kasal@ucw.cz>
59837
59838         * check-module: If more parameters are given, check each of them
59839         separately; add more exceptions, as noted by Jim Meyering.
59840         (check_module): New procedure.
59841         (%exempt_header): Now contains all exceptions.
59842
59843 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
59844
59845         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
59846
59847 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59848
59849         * lib/iconvme.c: Split iconv_string into iconv_alloc.
59850
59851 2005-08-28  Bruno Haible  <bruno@clisp.org>
59852
59853         * m4/gnulib-tool.m4: New file.
59854
59855 2005-08-27  Jim Meyering  <jim@meyering.net>
59856
59857         * modules/unistd-safer (Files): Add pipe-safer.c.
59858         * modules/fcntl-safer (Files): Add creat-safer.c.
59859
59860 2005-08-27  Jim Meyering  <jim@meyering.net>
59861
59862         * m4/stdlib-safer.m4: New file.  From coreutils.
59863         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
59864         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
59865         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
59866         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
59867         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
59868
59869 2005-08-27  Jim Meyering  <jim@meyering.net>
59870
59871         * lib/fopen-safer.c: Merge minor changes from coreutils.
59872         * lib/dup-safer.c: Likewise.
59873         * lib/fd-safer.c: Likewise.
59874
59875         Merge from coreutils.
59876         * lib/stdio--.h: New file.
59877         * lib/stdlib--.h: New file.
59878         * lib/mkstemp-safer.c: New file.
59879
59880         GNU tar needs these.
59881         * lib/pipe-safer.c: New file.
59882         * lib/creat-safer.c: New file.
59883         * lib/fcntl--.h (creat): Define to creat_safer.
59884         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
59885         * lib/unistd--.h (pipe): Define to pipe_safer.
59886         * lib/unistd-safer.h: Declare pipe_safer.
59887
59888 2005-08-26  Simon Josefsson  <jas@extundo.com>
59889
59890         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
59891         Haible <bruno@clisp.org>.
59892
59893 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
59894
59895         * lib/regex_internal.h: Remove all references to
59896         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
59897         or better.
59898         (bitset_not, bitset_merge, bitset_not_merge):
59899         (bitset_mask, re_string_allocate, re_string_construct):
59900         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
59901         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
59902         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
59903         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
59904         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59905         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59906         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
59907         (re_acquire_state_context):
59908         Remove unnecessary forward decls.
59909         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
59910         Put __attribute at function definition,
59911         now that the function decl has been removed.
59912         * lib/regex_internal.c (re_string_peek_byte_case):
59913         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
59914         Likewise.
59915
59916 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
59917
59918         * m4/regex.m4: Add AC_PREREQ(2.50).
59919         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
59920
59921 2005-08-25  Simon Josefsson  <jas@extundo.com>
59922
59923         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
59924         __fsetlocking.
59925
59926 2005-08-25  Simon Josefsson  <jas@extundo.com>
59927
59928         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
59929         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
59930         GLIBC specific code.
59931
59932 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59933
59934         Make regex safe for g++.  This fixes one real bug (an "err"
59935         that should have been "*err").  g++ problem reported by
59936         Sam Steingold.
59937         * lib/regex_internal.h (re_calloc): New macro, consistent with
59938         re_malloc etc.  All callers of calloc changed to use re_calloc.
59939         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
59940         not int.  All callers changed.
59941         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
59942         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
59943         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
59944         (find_recover_state): Change "err" to "*err"; this fixes what
59945         appears to be a real bug.
59946         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
59947         versus int.
59948
59949 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59950
59951         * modules/regex (Depends-on): Add malloc, since the code
59952         assumes that !malloc(0) means failure.
59953
59954 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59955
59956         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
59957
59958         alloca modernization/simplification for regex.
59959         * lib/regex.c: Remove portability cruft for alloca.  This no longer
59960         needs to be at the start of the file, and can be moved into
59961         regex_internal.h and simplified.
59962         * lib/regex_internal.h: Include <alloca.h>.
59963         (__libc_use_alloca) [!defined _LIBC]: New macro.
59964         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
59965         now works outside glibc.
59966
59967 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59968
59969         * config/srclist.txt: Add glibc bugs 1241, 1245.
59970
59971 2005-08-25  Jim Meyering  <jim@meyering.net>
59972
59973         * lib/open-safer.c: Include <config.h>.
59974         Otherwise, we'd lose LARGEFILE support in any file using
59975         e.g. "fcntl--.h"
59976
59977 2005-08-25  Bruno Haible  <bruno@clisp.org>
59978
59979         * m4/minmax.m4: Require autoconf 2.52.
59980         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
59981         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
59982         alternatives of translit over the alphabet.
59983         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
59984
59985 2005-08-24  Simon Josefsson  <jas@extundo.com>
59986
59987         * tests/test-getpass.c: New file.
59988
59989 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
59992         for GNU regex features.
59993
59994 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
59997         * lib/regex.h (regerror): Likewise.
59998
59999         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60000         requires this.  (The code never needed it.)
60001
60002         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60003         All uses of recently-renamed identifiers changed to use the new,
60004         POSIX-compliant names.  The code will build and run just fine
60005         without these changes, but it's better to eat our own dog food
60006         and use the standard-conforming names.
60007
60008         * lib/regex.h: Fix a multitude of POSIX name space violations.
60009         These changes have an effect only for programs that define
60010         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60011         do not change anything for programs compiled in the normal way.
60012         Also, there is no effect on the ABI.
60013
60014         (_REGEX_SOURCE): New macro.
60015         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60016         defined and _GNU_SOURCE is not; this fixes a name space violation.
60017
60018         Rename the following macros to obey POSIX requirements.
60019         The old names are still visible as macros if _REGEX_SOURCE is defined.
60020         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60021         RE_BACKSLASH_ESCAPE_IN_LISTS.
60022         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60023         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60024         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60025         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60026         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60027         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60028         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60029         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60030         (REG_INTERVALS): renamed from RE_INTERVALS.
60031         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60032         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60033         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60034         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60035         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60036         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60037         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60038         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60039         RE_UNMATCHED_RIGHT_PAREN_ORD.
60040         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60041         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60042         (REG_DEBUG): renamed from RE_DEBUG.
60043         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60044         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60045         unusual, since we can't clash with the POSIX REG_ICASE.
60046         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60047         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60048         (REG_NO_SUB): renamed from RE_NO_SUB.
60049         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60050         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60051         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60052         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60053         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60054         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60055         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60056         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60057         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60058         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60059         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60060         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60061         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60062         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60063         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60064         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60065         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60066         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60067         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60068         (REG_FIXED): Renamed from REGS_FIXED.
60069         (REG_NREGS): Renamed from RE_NREGS.
60070
60071         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60072         of other REG_* macros, since POSIX says the user is allowed to
60073         #undef these macros selectively.
60074
60075         (reg_errcode_t): Update comment stating what other tables need
60076         to be consistent.
60077
60078         Rename the following enum values to obey POSIX requirements.
60079         The old names are still visible as macros.
60080         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60081         is not defined, since GNU is supposed to be a superset of POSIX as
60082         much as possible, and since we want reg_errcode_t to be a signed
60083         type for implementation consistency.
60084         (_REG_NOERROR): Renamed from REG_NOERROR.
60085         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60086         (_REG_BADPAT): Renamed from REG_BADPAT.
60087         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60088         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60089         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60090         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60091         (_REG_EBRACK): Renamed from REG_EBRACK.
60092         (_REG_EPAREN): Renamed from REG_EPAREN.
60093         (_REG_EBRACE): Renamed from REG_EBRACE.
60094         (_REG_BADBR): Renamed from REG_BADBR.
60095         (_REG_ERANGE): Renamed from REG_ERANGE.
60096         (_REG_ESPACE): Renamed from REG_ESPACE.
60097         (_REG_BADRPT): Renamed from REG_BADRPT.
60098         (_REG_EEND): Renamed from REG_EEND.
60099         (_REG_ESIZE): Renamed from REG_ESIZE.
60100         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60101         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60102         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60103         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60104         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60105
60106         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60107         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60108         changed.  But support the old name if the new one is not defined
60109         and if _REGEX_SOURCE.
60110
60111         Change the following member names in struct re_pattern_buffer.
60112         The old names are still supported if !_REGEX_SOURCE.
60113         The new names are always supported, regardless of _REGEX_SOURCE.
60114         (re_buffer): Renamed from buffer.
60115         (re_allocated): Renamed from allocated.
60116         (re_used): Renamed from used.
60117         (re_syntax): Renamed from syntax.
60118         (re_fastmap): Renamed from fastmap.
60119         (re_translate): Renamed from translate.
60120         (re_can_be_null): Renamed from can_be_null.
60121         (re_regs_allocated): Renamed from regs_allocated.
60122         (re_fastmap_accurate): Renamed from fastmap_accurate.
60123         (re_no_sub): Renamed from no_sub.
60124         (re_not_bol): Renamed from not_bol.
60125         (re_not_eol): Renamed from not_eol.
60126         (re_newline_anchor): Renamed from newline_anchor.
60127
60128         Change the following member names in struct re_registers.
60129         The old names are still supported if !_REGEX_SOURCE.
60130         The new names are always supported, regardless of _REGEX_SOURCE.
60131         (rm_num_regs): Renamed from num_regs.
60132         (rm_start): Renamed from start.
60133         (rm_end): Renamed from end.
60134
60135         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60136         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60137         Prepend __ to parameter names.
60138
60139         Undo yesterday's changes.
60140
60141 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60142
60143         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60144         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60145         lib/regex.c.
60146
60147 2005-08-24  Jim Meyering  <jim@meyering.net>
60148
60149         Sync from coreutils.
60150         * m4/fcntl-safer.m4: New file.
60151
60152         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60153         and object files for this module.
60154
60155 2005-08-24  Jim Meyering  <jim@meyering.net>
60156
60157         Sync from coreutils.
60158         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60159
60160 2005-08-24  Jim Meyering  <jim@meyering.net>
60161
60162         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60163         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60164
60165 2005-08-24  Jim Meyering  <jim@meyering.net>
60166
60167         * modules/fcntl-safer: New module.
60168         * modules/fts (Depends-on): Add fcntl-safer.
60169         * MODULES.html.sh (File descriptor based Input/Output):
60170         Add fcntl-safer.
60171
60172 2005-08-24  Bruno Haible  <bruno@clisp.org>
60173
60174         Support for unit test modules.
60175         * modules/README: Mention tests modules.
60176         * modules/TEMPLATE-TESTS: New file.
60177         * gnulib-tool: New options --extract-tests-module, --with-tests and
60178         --tests-base (unused for the moment).
60179         (testsbase, inctests): New variables.
60180         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60181         (func_verify_module): Exclude TEMPLATE-TESTS.
60182         (func_verify_nontests_module, func_verify_tests_module): New functions.
60183         (func_get_dependencies): Add implicit dependency for tests modules.
60184         (func_get_tests_module): New function.
60185         (func_modules_transitive_closure): When --with-tests was specified,
60186         include the unit tests as well, unless explicitly avoided.
60187         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60188         (func_emit_tests_Makefile_am): New function.
60189         (func_create_testdir): When --with-tests was specified, emit a
60190         tests/ directory.
60191         * MODULES.html.sh (Future developments): Update.
60192
60193 2005-08-24  Bruno Haible  <bruno@clisp.org>
60194
60195         * modules/tls-tests: New file.
60196         * tests/test-tls.c: New file, from GNU gettext.
60197
60198 2005-08-24  Bruno Haible  <bruno@clisp.org>
60199
60200         * modules/lock-tests: New file.
60201         * tests/test-lock.c: New file, from GNU gettext.
60202
60203 2005-08-24  Bruno Haible  <bruno@clisp.org>
60204
60205         * lib/lock.h: Add multiple inclusion guard.
60206         * lib/tls.h: Add multiple inclusion guard.
60207
60208 2005-08-24  Bruno Haible  <bruno@clisp.org>
60209
60210         * gnulib-tool: Add support for the --aux-dir option to
60211         --create-testdir, --create-megatestdir, --test, --megatest.
60212         (func_create_testdir, func_create_megatestdir): Optionally emit a
60213         AC_CONFIG_AUX_DIR directive.
60214         (create-testdir, create-megatestdir, test, megatest): Provide a
60215         default value for $auxdir.
60216
60217 2005-08-24  Bruno Haible  <bruno@clisp.org>
60218
60219         * gnulib-tool (import): Use compound statement instead of subshell
60220         where possible.
60221
60222 2005-08-24  Bruno Haible  <bruno@clisp.org>
60223
60224         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60225
60226 2005-08-24  Bruno Haible  <bruno@clisp.org>
60227
60228         * gnulib-tool (func_version): Update.
60229
60230 2005-08-24  Bruno Haible  <bruno@clisp.org>
60231
60232         * gnulib-tool (func_import, func_create_testdir,
60233         func_create_megatestdir): Quote all autoconf macro arguments.
60234
60235 2005-08-24  Bruno Haible  <bruno@clisp.org>
60236
60237         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60238         option --force, because --force causes the aclocal.m4 of each
60239         subdirectory to be newer than the corresponding config.h.in.
60240
60241 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60242
60243         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60244         All contents moved to gl_REGEX.
60245         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60246         assume that it does.
60247
60248 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60249
60250         * lib/regex.h (REG_NOSYS)
60251         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60252         Define, since POSIX requires it as of 2001.
60253         (_REG_ENOSYS)
60254         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60255         New private symbol, used to keep the enum signed in all cases.
60256         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60257         Youngman in
60258         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60259
60260         * lib/regex_internal.c (re_string_skip_chars, register_state):
60261         (calc_state_hash):
60262         Remove forward decls; no longer needed now that we use prototypes.
60263         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60264         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60265         (clean_state_log_if_needed): Likewise.
60266
60267 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60268
60269         * config/srclist.txt: Add glibc bugs 1231-1233.
60270
60271 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60272
60273         Fix problems reported by Sam Steingold in
60274         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60275         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60276         assumed that reg_errcode_t is a signed type, which is not
60277         necessarily true if _XOPEN_SOURCE is not defined.
60278         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60279         since some compilers warn about it otherwise.
60280
60281 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60282
60283         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60284         (init_word_char, create_initial_state, duplicate_node_closure):
60285         (fetch_token, peek_token_bracket, build_range_exp):
60286         (build_collating_symbol): Remove forward decls; no longer needed
60287         now that we use prototypes.
60288
60289         * lib/regcomp.c:
60290         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60291         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60292         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60293         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60294         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60295         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60296         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60297         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60298         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60299         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60300         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60301         (build_charclass, build_charclass_op, fetch_number, create_tree):
60302         (create_token_tree, mark_opt_subexp, duplicate_tree):
60303         Use prototypes rather than old-style definitions.
60304
60305         * lib/regex_internal.c:
60306         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60307         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60308         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60309         (re_string_reconstruct, re_string_peek_byte_case):
60310         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60311         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60312         (re_node_set_init_copy, re_node_set_add_intersect):
60313         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60314         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60315         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60316         (re_acquire_state, re_acquire_state_context, register_state):
60317         (create_ci_newstate, create_cd_newstate, free_state):
60318         Likewise.
60319         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60320         re_search_2):
60321         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60322         (re_search_internal, prune_impossible_nodes):
60323         (acquire_init_state_context, check_matching, static):
60324         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60325         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60326         (update_regs, sift_states_backward, build_sifted_states):
60327         (clean_state_log_if_needed, merge_state_array):
60328         (update_cur_sifted_state, add_epsilon_src_nodes):
60329         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60330         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60331         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60332         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60333         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60334         (check_arrival, check_arrival_add_next_nodes):
60335         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60336         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60337         (check_node_accept_bytes, check_node_accept, extend_buffers):
60338         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60339         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
60340         (sift_ctx_init):
60341         Likewise.
60342
60343         * lib/regex_internal.h:
60344         (re_string_allocate, re_string_construct, re_string_reconstruct):
60345         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
60346         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
60347         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
60348         (re_string_context_at, re_string_peek_byte_case):
60349         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
60350         is defined, since we now use prototypes always.
60351
60352         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
60353         C89 or better.  All uses removed.
60354
60355 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * config/srclist.txt: Add glibc bugs 1220-1227.
60358
60359 2005-08-20  Jim Meyering  <jim@meyering.net>
60360
60361         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
60362         of unused local, dfa.
60363
60364 2005-08-20  Bruno Haible  <bruno@clisp.org>
60365
60366         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60367
60368 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60369
60370         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60371         (re_node_set_insert_last, re_dfa_add_node):
60372         Rename local variables to avoid GCC shadowing warnings.
60373
60374 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60375
60376         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60377         [defined lint]: Suppress bogus uninitialized-variable warnings.
60378
60379         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60380         and let the caller return REG_ESPACE if out of space.  This
60381         removes an uninitialied-variable warning with GCC 4.0.1, and also
60382         avoids taking the address of a local variable.  All callers
60383         changed.
60384
60385 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60388         $LIBCSRC/posix/regexec.c.
60389         Add glibc bug 1217 for regcomp.c.
60390
60391 2005-08-19  Jim Meyering  <jim@meyering.net>
60392
60393         * lib/regexec.c (proceed_next_node): Redo local variables to
60394         avoid GCC shadowing warnings.
60395
60396 2005-08-18  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/strstr.c (strstr): Fix return value in multibyte case.
60399         * lib/strcasestr.c (strcasestr): Likewise.
60400
60401 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60404
60405 2005-08-17  Jim Meyering  <jim@meyering.net>
60406
60407         Make the %s format (seconds since the epoch) work for a negative
60408         number and when used with a zero-padded field width, e.g. %015s.
60409
60410         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60411         label so that it precedes the code to set `digits'.  Otherwise,
60412         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
60413         print `00-22'.  Now, it prints `-0022', as it should.
60414
60415 2005-08-17  Bruno Haible  <bruno@clisp.org>
60416
60417         * modules/strstr (Files): Add m4/mbrtowc.m4.
60418         (Depends-on): Add mbuiter.
60419
60420 2005-08-17  Bruno Haible  <bruno@clisp.org>
60421
60422         * modules/strcasestr: New file.
60423         * MODULES.html.sh (String handling, based on ANSI C 89): Add
60424         strcasestr.
60425
60426 2005-08-17  Bruno Haible  <bruno@clisp.org>
60427
60428         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
60429
60430 2005-08-17  Bruno Haible  <bruno@clisp.org>
60431
60432         * modules/mbuiter: New file.
60433         * MODULES.html.sh (Extended multibyte and wide character utilities):
60434         Add mbuiter.
60435
60436 2005-08-17  Bruno Haible  <bruno@clisp.org>
60437
60438         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
60439         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
60440
60441 2005-08-17  Bruno Haible  <bruno@clisp.org>
60442
60443         * m4/strcasestr.m4: New file.
60444
60445 2005-08-17  Bruno Haible  <bruno@clisp.org>
60446
60447         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
60448         * lib/strstr.c: Completely rewritten, with multibyte locale support.
60449
60450 2005-08-17  Bruno Haible  <bruno@clisp.org>
60451
60452         * lib/strcasestr.h: New file.
60453         * lib/strcasestr.c: New file.
60454
60455 2005-08-17  Bruno Haible  <bruno@clisp.org>
60456
60457         * lib/strcasecmp.c: Use mbuiter.h.
60458
60459 2005-08-17  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/mbuiter.h: New file.
60462
60463 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60464
60465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
60466         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
60467         and gl_GETOPT are both invoked via different paths (as happens
60468         with GNU tar CVS because it uses both argp and getopt), the former
60469         wins.
60470
60471 2005-08-16  Bruno Haible  <bruno@clisp.org>
60472
60473         * modules/tls: New file.
60474         * MODULES.html.sh (Multithreading): Add tls.
60475
60476 2005-08-16  Bruno Haible  <bruno@clisp.org>
60477
60478         * modules/strnlen1: New file.
60479         * MODULES.html.sh (String handling): Add strnlen1.
60480
60481 2005-08-16  Bruno Haible  <bruno@clisp.org>
60482
60483         * modules/strcase (Files): Add m4/mbrtowc.m4.
60484         (Depends-on): Add strnlen1, mbchar.
60485
60486 2005-08-16  Bruno Haible  <bruno@clisp.org>
60487
60488         * modules/mbiter: New file.
60489         * MODULES.html.sh (Extended multibyte and wide character utilities):
60490         Add mbiter.
60491
60492 2005-08-16  Bruno Haible  <bruno@clisp.org>
60493
60494         * modules/mbfile: New file.
60495         * MODULES.html.sh (Extended multibyte and wide character utilities):
60496         Add mbfile.
60497
60498 2005-08-16  Bruno Haible  <bruno@clisp.org>
60499
60500         * modules/mbchar: New file.
60501         * MODULES.html.sh (Extended multibyte and wide character utilities):
60502         New section.
60503
60504 2005-08-16  Bruno Haible  <bruno@clisp.org>
60505
60506         * m4/tls.m4: New file, from GNU gettext.
60507
60508 2005-08-16  Bruno Haible  <bruno@clisp.org>
60509
60510         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
60511         always.
60512         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
60513
60514 2005-08-16  Bruno Haible  <bruno@clisp.org>
60515
60516         * m4/mbiter.m4: New file.
60517
60518 2005-08-16  Bruno Haible  <bruno@clisp.org>
60519
60520         * m4/mbfile.m4: New file.
60521
60522 2005-08-16  Bruno Haible  <bruno@clisp.org>
60523
60524         * m4/mbchar.m4: New file.
60525
60526 2005-08-16  Bruno Haible  <bruno@clisp.org>
60527
60528         * lib/tls.h: New file, from GNU gettext.
60529         * lib/tls.c: New file, from GNU gettext.
60530
60531 2005-08-16  Bruno Haible  <bruno@clisp.org>
60532
60533         * lib/strnlen1.h: New file.
60534         * lib/strnlen1.c: New file.
60535
60536 2005-08-16  Bruno Haible  <bruno@clisp.org>
60537
60538         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
60539         (mbi_init): Update.
60540         (mbi_avail, mbi_advance): Let the iteration end before the terminating
60541         NUL byte, not after it.
60542
60543 2005-08-16  Bruno Haible  <bruno@clisp.org>
60544
60545         * lib/strcase.h (strcasecmp): Add note in comments.
60546         * lib/strncasecmp.c: Use code from strcasecmp.c.
60547         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
60548         (strcasecmp): Work correctly in multibyte locales.
60549
60550 2005-08-16  Bruno Haible  <bruno@clisp.org>
60551
60552         * lib/mbiter.h: New file.
60553
60554 2005-08-16  Bruno Haible  <bruno@clisp.org>
60555
60556         * lib/mbfile.h: New file.
60557
60558 2005-08-16  Bruno Haible  <bruno@clisp.org>
60559
60560         * lib/mbchar.h: New file.
60561         * lib/mbchar.c: New file.
60562
60563 2005-08-16  Bruno Haible  <bruno@clisp.org>
60564
60565         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
60566         the valid ones. Makes the comparison operations transitive:
60567         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
60568         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
60569
60570 2005-08-15  Simon Josefsson  <jas@extundo.com>
60571
60572         * modules/ssize_t (License): Change to 'unlimited'.
60573
60574         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
60575
60576 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
60579         Add comments for each pending glibc patch.
60580
60581 2005-08-15  Bruno Haible  <bruno@clisp.org>
60582
60583         * lib/regex.h (__restrict_arr): Don't define to __restrict if
60584         __cplusplus is defined.
60585
60586 2005-08-14  Jim Meyering  <jim@meyering.net>
60587
60588         Sync from coreutils.
60589
60590         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
60591         Use the hash-table-based cycle-detection code not just when
60592         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
60593         Reported by James Youngman in
60594         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
60595         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
60596         FTS_TIGHT_CYCLE_CHECK.
60597         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
60598         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
60599         once again.
60600         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
60601         * lib/fts.c (fd_safer): Remove decl.
60602         Include fcntl--.h rather than unistd-safer.h
60603         (fts_safe_changedir): Don't call fd_safer; no longer needed
60604         now that we include fcntl--.h.
60605
60606 2005-08-12  Simon Josefsson  <jas@extundo.com>
60607
60608         * modules/getndelim2: Use ssize_t module.
60609         * modules/getnline: Likewise.
60610         * modules/safe-read: Likewise.
60611         * modules/xreadlink: Likewise.
60612
60613         * modules/ssize_t: New file.
60614
60615 2005-08-12  Simon Josefsson  <jas@extundo.com>
60616
60617         * m4/readline.m4: Look for termcap, curses or ncurses if required.
60618
60619 2005-08-12  Simon Josefsson  <jas@extundo.com>
60620
60621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60622         ssize_t.
60623
60624 2005-08-12  Simon Josefsson  <jas@extundo.com>
60625
60626         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
60627         readline, getdelim and check_version.
60628         (Support for systems lacking ISO C 99: Sizes of integer types):
60629         Add size_max.
60630
60631 2005-08-12  Bruno Haible  <bruno@clisp.org>
60632
60633         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
60634
60635 2005-08-11  Simon Josefsson  <jas@extundo.com>
60636
60637         * modules/readline: New file.
60638
60639         * modules/strnlen (Files): Add strnlen.h.
60640
60641 2005-08-11  Simon Josefsson  <jas@extundo.com>
60642
60643         * m4/readline.m4: New file.
60644
60645 2005-08-11  Simon Josefsson  <jas@extundo.com>
60646
60647         * lib/readline.h, readline.c: New file.
60648
60649 2005-08-11  Simon Josefsson  <jas@extundo.com>
60650
60651         * doc/gnulib.texi (Initial import, Finishing touches): Mention
60652         gl_AVOID.
60653
60654 2005-08-11  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/strnlen.h (strnlen): Change parameter name to match comment.
60657
60658 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
60659
60660         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
60661
60662 2005-08-10  Simon Josefsson  <jas@extundo.com>
60663
60664         * tests/test-iconvme.c: New file.
60665
60666 2005-08-10  Simon Josefsson  <jas@extundo.com>
60667
60668         * m4/strnlen.m4: New file.
60669
60670         * m4/strndup.m4: Don't check for strnlen declaration, done in
60671         strnlen.m4.
60672
60673 2005-08-10  Simon Josefsson  <jas@extundo.com>
60674
60675         * lib/strndup.c: Use strnlen.h.
60676
60677         * lib/strnlen.h: New file.
60678
60679 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60680
60681         * README: Typos.
60682
60683 2005-08-02  Simon Josefsson  <jas@extundo.com>
60684
60685         * modules/readline: New file.
60686
60687 2005-08-02  Simon Josefsson  <jas@extundo.com>
60688
60689         * modules/getdelim: New file.
60690
60691         * modules/getline: Rewrite, don't use getndelim2.
60692
60693 2005-08-02  Simon Josefsson  <jas@extundo.com>
60694
60695         * m4/getline.m4: Separate out getdelim stuff into separate module.
60696
60697         * m4/getdelim.m4: New file.
60698
60699 2005-08-02  Simon Josefsson  <jas@extundo.com>
60700
60701         * lib/getline.h, getline.c: Rewrite.
60702
60703         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
60704
60705 2005-07-31  Bruno Haible  <bruno@clisp.org>
60706
60707         * lib/lock.h (gl_lock_initializer): New macro.
60708         (gl_lock_define_initialized): Use it.
60709         (gl_rwlock_initializer): New macro.
60710         (gl_rwlock_define_initialized): Use it.
60711         (gl_recursive_lock_initializer): New macro.
60712         (gl_recursive_lock_define_initialized): Use it.
60713
60714 2005-07-30  Karl Berry  <karl@gnu.org>
60715
60716         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
60717         Report from Ben Pfaff, regarding getopt.
60718
60719 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
60720
60721         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
60722         normal way.
60723         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
60724         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
60725         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
60726         (gl_GETOPT): Use the new macros.  Most of the implementation
60727         is moved to the new macros.  This is for programs like Emacs
60728         that don't want all the functionality of gl_GETOPT.
60729
60730 2005-07-26  Bruno Haible  <bruno@clisp.org>
60731
60732         * m4/lock.m4: Update from GNU gettext.
60733
60734 2005-07-26  Bruno Haible  <bruno@clisp.org>
60735
60736         * lib/lock.h: Update from GNU gettext.
60737         * lib/lock.c: Update from GNU gettext.
60738
60739 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
60740
60741         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
60742         obsolescent AC_TRY_RUN.  Include the default includes files, for
60743         'exit'.
60744
60745 2005-07-24  Bruno Haible  <bruno@clisp.org>
60746
60747         * modules/visibility: New file.
60748         * MODULES.html.sh (Misc): Add visibility.
60749
60750 2005-07-24  Bruno Haible  <bruno@clisp.org>
60751
60752         * m4/visibility.m4: New file.
60753
60754 2005-07-24  Bruno Haible  <bruno@clisp.org>
60755
60756         * doc/visibility.texi: New file.
60757
60758 2005-07-22  Bruno Haible  <bruno@clisp.org>
60759
60760         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
60761         $(ALLOCA_H), redundant through BUILT_SOURCES.
60762         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
60763         redundant through BUILT_SOURCES.
60764         * modules/byteswap (Makefile.am): Remove explicit dependency on
60765         $(BYTESWAP_H), redundant through BUILT_SOURCES.
60766         * modules/fnmatch (Makefile.am): Remove explicit dependency on
60767         $(FNMATCH_H), redundant through BUILT_SOURCES.
60768         * modules/getopt (Makefile.am): Remove explicit dependency on
60769         $(GETOPT_H), redundant through BUILT_SOURCES.
60770         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
60771         redundant through BUILT_SOURCES.
60772         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
60773         redundant through BUILT_SOURCES.
60774         * modules/stdbool (Makefile.am): Remove explicit dependency on
60775         $(STDBOOL_H), redundant through BUILT_SOURCES.
60776         * modules/stdint (Makefile.am): Remove explicit dependency on
60777         $(STDINT_H), redundant through BUILT_SOURCES.
60778         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
60779         Remove explicit dependency on $(SYSEXITS_H).
60780         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
60781
60782 2005-07-18  Simon Josefsson  <jas@extundo.com>
60783
60784         * lib/check-version.c (check_version): Accept identical versions too.
60785
60786 2005-07-18  Bruno Haible  <bruno@clisp.org>
60787
60788         * modules/lock: New file.
60789         * MODULES.html.sh (Multithreading): New section.
60790
60791 2005-07-18  Bruno Haible  <bruno@clisp.org>
60792
60793         * m4/lock.m4: New file, from GNU gettext.
60794
60795 2005-07-18  Bruno Haible  <bruno@clisp.org>
60796
60797         * lib/lock.h: New file, from GNU gettext.
60798         * lib/lock.c: New file, from GNU gettext.
60799
60800 2005-07-18  Bruno Haible  <bruno@clisp.org>
60801
60802         * lib/lock.h (gl_once_t): New type.
60803         (gl_once_define, gl_once): New macros.
60804         * lib/lock.c (fresh_once): New variable.
60805         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
60806         functions.
60807
60808 2005-07-16  Simon Josefsson  <jas@extundo.com>
60809
60810         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
60811         workaround, suggested by Bruno.
60812
60813 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60814
60815         * modules/xalloc (Depends-on): Add xalloc-die.
60816         * modules/xvasprintf (Depends-on): Add xalloc-die.
60817
60818 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60819
60820         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
60821         with a minor change.
60822
60823 2005-07-15  Bruno Haible  <bruno@clisp.org>
60824
60825         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
60826         When using lib/poll.c, define poll as rpl_poll.
60827
60828 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
60829
60830         * modules/argp (Depends-on): Remove unlocked-io.
60831
60832 2005-07-14  Derek Price  <derek@ximbiot.com>
60833
60834         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
60835         for glob symlink bug.
60836
60837 2005-07-14  Bruno Haible  <bruno@clisp.org>
60838
60839         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
60840         Instead, test for *_unlocked function declarations directly.
60841
60842 2005-07-11  Simon Josefsson  <jas@extundo.com>
60843
60844         * modules/size_max: New file.
60845
60846         * modules/xsize: Depend on size_max module for size_max.m4.
60847
60848 2005-07-11  Simon Josefsson  <jas@extundo.com>
60849
60850         * lib/size_max.h: New file.
60851
60852 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
60853
60854         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
60855         copyright symbol and the year.
60856         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
60857         (version_etc_va): Use parameterized copyright notice.
60858         Reword to conform to the current GNU coding standards.
60859
60860 2005-07-11  Karl Berry  <karl@gnu.org>
60861
60862         * doc/gnulib.texi (Quoting): new node.
60863         (Initial import): more info, from Patrice.
60864
60865 2005-07-11  Bruno Haible  <bruno@clisp.org>
60866
60867         * gnulib-tool (func_usage): Document option --avoid.
60868         (Command line options): Handle --avoid.
60869         (func_acceptable): New function.
60870         (func_modules_transitive_closure): Use it.
60871
60872 2005-07-11  Bruno Haible  <bruno@clisp.org>
60873
60874         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
60875         Reported by Jim Meyering.
60876
60877 2005-07-10  Bruno Haible  <bruno@clisp.org>
60878
60879         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
60880         Needed when size_t is smaller than 'unsigned int'.
60881         Reported by Paul Eggert.
60882
60883 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60884
60885         * modules/argp (Depends-on): Add unlocked-io
60886
60887 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60888
60889         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
60890         block of defines.
60891
60892 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60893
60894         * config/srclist.txt: Comment out regcomp.c, since we have a porting
60895         fix now.
60896
60897 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
60898         and Paul Eggert  <eggert@cs.ucla.edu>
60899
60900         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
60901         in wint_t, not wchar_t.  Remove now-unnecessary cast.
60902
60903 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60904
60905         * modules/regex (Files): Add lib/regex_internal.c,
60906         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
60907         (Depends-on): Add extensions.
60908         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
60909
60910 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60911
60912         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
60913         pathconf.
60914         * m4/same.m4 (gl_SAME): Likewise.
60915         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
60916
60917         * m4/regex.m4: Adjust to new libc regex implementation.
60918         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
60919         all the .c and .h parts of (the new) regex.
60920         Quote the m4 stuff better.
60921         Check for RE_ICASE bug of old gnulib.
60922         Check for REG_STARTEND of recent libc.
60923         Rename local variables from jm_* to gl_*.
60924         Quote operand of "test -f".
60925         Say "recent enough" version of libc, not "version 2".
60926         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
60927         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
60928         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
60929         Remove check for btowc, isascii.
60930         Require AM_LANGINFO_CODESET.
60931
60932 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         * lib/regex.c, regex.h: Sync from libc.
60935         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
60936         * lib/regexec.c:
60937         New files, synced from libc, except that regex_internal.h
60938         currently has a small porting fix.
60939
60940 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60941
60942         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
60943         regex_internal.c, regexec.c.
60944         Add regex_internal.h too, but as a comment, since the libc version
60945         is currently broken in gnulib mode.
60946
60947 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60948
60949         Support programs like Emacs that use gnulib but not gettext.
60950         * MODULES.html.sh (Internationalization functions): Add gettext-h.
60951         * modules/gettext-h: New file.
60952         * modules/gettext (Files): Remove lib/gettext.h.
60953         (Depends-on): Add gettext-h.
60954         (Makefile.am): Remove lib_SOURCES.
60955         * modules/argmatch, modules/c-stack, modules/closeout:
60956         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
60957         * modules/execute, modules/file-type, modules/getaddrinfo:
60958         * modules/getopt, modules/human, modules/javacomp:
60959         * modules/javaexec, modules/mkdir-p, modules/obstack:
60960         * modules/openat, modules/pagealign_alloc, modules/pipe:
60961         * modules/quotearg, modules/regex, modules/rpmatch:
60962         * modules/unicodeio, modules/userspec, modules/version-etc:
60963         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
60964         * modules/xsetenv:
60965         Depend on gettext-h, not gettext.
60966
60967 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60968
60969         * gnulib-tool (func_import): Add support for 'public domain' license.
60970         * modules/alloca, modules/atexit, modules/memmove:
60971         Now public domain, not GPL.
60972         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
60973         * modules/realloc, modules/strerror, modules/strtod:
60974         Now LGPL, not GPL.
60975
60976 2005-07-05  Bruno Haible  <bruno@clisp.org>
60977
60978         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
60979         autoconf CVS. Needed for mingw.
60980
60981 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         Remove the dependency of the strftime module on the tzset module.
60984         * modules/strftime (Depends-on): Remove dependency on tzset.
60985
60986 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60987
60988         Remove the dependency of the strftime module on the tzset module.
60989         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
60990         gl_FUNC_TZSET_CLOBBER.
60991
60992 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         Remove the dependency of the strftime module on the tzset module.
60995         * lib/strftime.c (my_strftime)
60996         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
60997         Copy the input structure, to work around some of the bug with
60998         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
60999         Solaris releases, you should also use the tzset module, but we won't
61000         require it as a dependency any more since we don't want LGPLed code
61001         to depend on GPLed code.
61002
61003 2005-07-02  Jim Meyering  <jim@meyering.net>
61004
61005         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61006         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61007         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61008         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61009
61010 2005-07-02  Jim Meyering  <jim@meyering.net>
61011
61012         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61013
61014 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61017         declares only 'struct timespec;' (!).
61018
61019 2005-07-01  Jim Meyering  <jim@meyering.net>
61020
61021         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61022         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61023         * lib/save-cwd.c, tempname.c:
61024         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61025         and don't include <sys/file.h>).
61026
61027 2005-06-29  Jim Meyering  <jim@meyering.net>
61028
61029         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61030         type name.  Use the variable name instead.
61031         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61032         Likewise.
61033
61034 2005-06-28  Simon Josefsson  <jas@extundo.com>
61035
61036         * modules/check-version (Files): Add check-version.m4.
61037
61038 2005-06-28  Simon Josefsson  <jas@extundo.com>
61039
61040         * m4/check-version.m4: New file, suggested by Jim Meyering
61041         <jim@meyering.net>.
61042
61043 2005-06-28  Simon Josefsson  <jas@extundo.com>
61044
61045         * lib/check-version.h, lib/check-version.c: New files.
61046
61047 2005-06-28  Simon Josefsson  <jas@extundo.com>
61048
61049         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61050         collision with global variable.  Better indentation.  Don't
61051         increment buffer pointer beyond buffer end.  Based on comments
61052         from Paul Eggert <eggert@cs.ucla.edu>.
61053
61054         * lib/base64.h: Indent.
61055
61056 2005-06-28  Simon Josefsson  <jas@extundo.com>
61057
61058         * doc/gnulib.texi (Library version handling): New section.
61059
61060 2005-06-28  Jim Meyering  <jim@meyering.net>
61061
61062         * check-module (find_included_lib_files): Hard-code another
61063         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61064         but modules/fts-lgpl (correctly) does not list those files.
61065
61066         * modules/canonicalize (Files): Add lib/pathmax.h.
61067
61068 2005-06-25  Simon Josefsson  <jas@extundo.com>
61069
61070         * modules/check-version: New file.
61071
61072 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61073
61074         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61075         initializer of struct addrinfo, as an indication that we don't
61076         care how many members the structure has.
61077
61078 2005-06-24  Derek Price  <derek@ximbiot.com>
61079         and Bruno Haible  <bruno@clisp.org>
61080
61081         Remove stat module & update lstat.
61082         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61083         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61084         * m4/stat.m4: Remove this file.
61085
61086 2005-06-24  Derek Price  <derek@ximbiot.com>
61087         and Bruno Haible  <bruno@clisp.org>
61088
61089         Remove stat module & update lstat.
61090         * lib/stat.c: Remove this file...
61091         (slash_aware_lstat): ...moving this content and its support...
61092         * lib/lstat.c (rpl_lstat): ...into here.
61093         * lib/lstat.h: New file.
61094
61095 2005-06-24  Derek Price  <derek@ximbiot.com>
61096         and Bruno Haible  <bruno@clisp.org>
61097
61098         Remove stat module & update lstat.
61099         * config/srclist.txt (libc sources): Remove stat.
61100
61101 2005-06-24  Derek Price  <derek@ximbiot.com>
61102         and Bruno Haible  <bruno@clisp.org>
61103
61104         Remove stat module & update lstat.
61105         * MODULES.html.sh (stat): Remove.
61106         * MODULES.html: Regenerated.
61107         * modules/lstat (Description): Correct function name.
61108         (Files): Add "lstat.h".
61109         (Depends-on): Remove stat, add xalloc, stat-macros.
61110         * modules/stat: Remove this file.
61111         (Include): Add "lstat.h", remove <sys/stat.h>.
61112
61113 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61114
61115         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61116         (ranged_convert): Don't save conversion in a temporary struct.
61117         This causes a warning with GCC 4.0.0, and anyway in the typical
61118         case it's not worth the extra 100 bytes or so of code.
61119         (ranged_convert, __mktime_internal): When calling a function via a
61120         pointer P, use P () rather than (*P) (), as we now assume C89 or
61121         better.
61122
61123 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61124
61125         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61126         "who -r" failed to give output.  Problem reported by Tim Waugh.
61127
61128         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61129         (xcalloc): Use it to avoid needless tests.
61130         Problem reported by Jim Meyering.
61131
61132 2005-06-20  Derek Price  <derek@ximbiot.com>
61133
61134         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61135         unnecessary for Autoconfs > 2.59c.
61136
61137 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61138
61139         * lib/argp.h (__option_is_short): Check upper limit of
61140         __key. Isprint() requires its argument to have the value
61141         of an unsigned char or EOF.
61142
61143 2005-06-16  Jim Meyering  <jim@meyering.net>
61144
61145         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61146         when either N or S is zero.
61147
61148 2005-06-16  Derek Price  <derek@ximbiot.com>
61149
61150         * m4/bison.m4: Declare YACC & YFLAGS precious.
61151
61152 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61153
61154         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61155         multibyte string or pattern, fall back on unibyte matching.
61156         Problem reported by James Youngman.
61157
61158 2005-06-08  Bruno Haible  <bruno@clisp.org>
61159
61160         * modules/csharpcomp: New file.
61161         * MODULES.html.sh (C#): Add csharpcomp.
61162
61163 2005-06-08  Bruno Haible  <bruno@clisp.org>
61164
61165         * m4/csharpcomp.m4: New file, from GNU gettext.
61166
61167 2005-06-08  Bruno Haible  <bruno@clisp.org>
61168
61169         * lib/csharpcomp.h: New file, from GNU gettext.
61170         * lib/csharpcomp.c: New file, from GNU gettext.
61171         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61172
61173 2005-06-08  Bruno Haible  <bruno@clisp.org>
61174
61175         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61176         warning on mingw.
61177
61178 2005-06-07  Derek Price  <derek@ximbiot.com>
61179
61180         Sync from CVS.
61181         * lib/glob_.h: Indent nested #ifdef.
61182
61183 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61184
61185         Sync from coreutils.
61186         Use "file name" when talking about file names, instead of "filename"
61187         or "path", as per the GNU coding standards.
61188         * lib/mkdir-p.c: Renamed from makepath.c.
61189         (make_dir_parents): Renamed from make_path.  All callers changed.
61190         * lib/mkdir-p.h: Likewise.  All includers changed.
61191         * lib/filenamecat.c: Renamed from path-concat.c.
61192         (file_name_concat): Renamed from path_concat.  All callers changed.
61193         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61194         * lib/filenamecat.h: Likewise.  All includers changed.
61195         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61196         in comments or local variable names.
61197         * lib/basename.c: Likewise.
61198         * lib/canonicalize.c, canonicalize.h: Likewise.
61199         * lib/dirname.c, dirname.h: Likewise.
61200         * lib/euidaccess.c: Likewise.
61201         * lib/exclude.c: Likewise
61202         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61203         * lib/fsusage.c, fsuage.h: Likewise.
61204         * lib/fts.c, fts_.h: Likewise.
61205         * lib/getcwd.c: Likewise.
61206         * lib/getloadavg.c: Likewise.
61207         * lib/mkstemp.c: Likewise.
61208         * lib/mountlist.c, mountlist.h: Likewise.
61209         * lib/openat.c, openat.h: Likewise.
61210         * lib/readlink-stub.c: Likewise.
61211         * lib/readutmp.c, readutmp.h: Likewise.
61212         * lib/rename.c: Likewise.
61213         * lib/rmdir.c: Likewise.
61214         * lib/same.c: Likewise.
61215         * lib/savedir.c: Likewise.
61216         * lib/stripslash.c: Likewise.
61217         * lib/tempname.c: Likewise.
61218         * lib/xreadlink.c: Likewise.
61219         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61220         All uses changed.
61221         * lib/exclude.h: Likewise.
61222
61223         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61224         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61225         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61226         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61227         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61228         files have been getting away with it for years (MORE/BSD 4.3
61229         is extinct now).
61230         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61231         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61232
61233         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61234         Define to 256, not 255, as per modern POSIX.
61235
61236 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61237
61238         Sync from coreutils.
61239         Use "file name" when talking about file names, instead of "filename"
61240         or "path", as per the GNU coding standards.
61241         * MODULES.html.sh: mkdir-p renamed from makepath.
61242         filenamecat renamed from path-concat.
61243         * modules/filenamecat: Renamed from modules/path-concat.
61244         (Files): filenamecat.h and filenamecat.c renamed from
61245         path-concat.h and path-concat.c.
61246         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61247         (Include): filenamecat.h, not path-concat.h.
61248         * modules/mkdir-p: Renamed from modules/makepath.
61249         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61250         makepath.c.
61251         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61252         (Include): mkdir-p.h, not makepath.h.
61253
61254 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         Sync from coreutils.
61257         * m4/mkdir-p.m4: Renamed from makepath.m4.
61258         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61259         Rename files from makepath.c to mkdir-p.c, and from
61260         makepath.h to mkdir-p.h.
61261         * m4/filenamecat.m4: Renamed from path-concat.m4.
61262         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61263         Rename files from path-concat.c to filenamecat.c,
61264         and from path-concat.h to filenamecat.h.
61265         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61266         "file name" in local variables or comments.
61267         * m4/rename.m4: Likewise.
61268
61269 2005-06-01  Bruno Haible  <bruno@clisp.org>
61270
61271         * modules/csharpexec: New file.
61272         * MODULES.html.sh (C#): New section.
61273
61274 2005-06-01  Bruno Haible  <bruno@clisp.org>
61275
61276         * m4/csharp.m4: New file, from GNU gettext.
61277         * m4/csharpexec.m4: New file, from GNU gettext.
61278
61279 2005-06-01  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/csharpexec.h: New file, from GNU gettext.
61282         * lib/csharpexec.c: New file, from GNU gettext.
61283         * lib/csharpexec.sh.in: New file, from GNU gettext.
61284
61285 2005-05-31  Derek Price  <derek@ximbiot.com>
61286             Paul Eggert  <eggert@cs.ucla.edu>
61287
61288         Sync from cvs.
61289         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61290
61291 2005-05-31  Derek Price  <derek@ximbiot.com>
61292             Paul Eggert  <eggert@cs.ucla.edu>
61293
61294         Sync from cvs.
61295         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61296
61297 2005-05-29  Derek Price  <derek@ximbiot.com>
61298
61299         * config/srclist.txt (glob_.h, glob.c): Add these files.
61300
61301 2005-05-29  Derek Price  <derek@ximbiot.com>
61302
61303         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61304         * modules/glob: New file.
61305         * modules/getlogin_r: Add link to POSIX spec in description.
61306
61307 2005-05-29  Derek Price  <derek@ximbiot.com>
61308             Paul Eggert  <eggert@cs.ucla.edu>
61309
61310         * m4/glob.m4: New file.
61311
61312 2005-05-29  Derek Price  <derek@ximbiot.com>
61313             Paul Eggert  <eggert@cs.ucla.edu>
61314
61315         * lib/glob_.h, lib/glob.c: New files.
61316
61317 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61318
61319         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61320         * modules/fts-lgpl (Depends-on): Remove gettext.
61321
61322 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61323
61324         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61325         and don't require gt_INTTYPES_PRI.
61326
61327 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61328
61329         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61330
61331         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61332         the configuration hassle isn't worth it.
61333         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61334         (LONGEST_MODIFIER, PRIuMAX): Remove.
61335
61336 2005-05-27  Bruno Haible  <bruno@clisp.org>
61337
61338         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61339
61340 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
61341
61342         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
61343         _POSIX_PTHREAD_SEMANTICS for Solaris.
61344
61345 2005-05-25  Derek Price  <derek@ximbiot.com>
61346
61347         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
61348
61349 2005-05-25  Derek Price  <derek@ximbiot.com>
61350             Paul Eggert  <eggert@cs.ucla.edu>
61351
61352         * modules/getlogin_r, m4/getlogin_r.m4: New files.
61353         * lib/getlogin_r.c, getlogin_r.h: New files.
61354
61355 2005-05-25  Bruno Haible  <bruno@clisp.org>
61356             Derek Price  <derek@ximbiot.com>
61357
61358         * lib/getlogin_r.h: Simplify API documentation.
61359
61360 2005-05-23  Derek Price  <derek@ximbiot.com>
61361
61362         * modules/minmax (Files): Add m4/minmax.m4.
61363         (configure.ac): Add gl_MINMAX.
61364
61365 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61366
61367         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61368         so that unistd-safer.h (GPL'ed code) need not be included.
61369
61370 2005-05-22  Bruno Haible  <bruno@clisp.org>
61371
61372         * m4/minmax.m4: New file.
61373         Based on a patch by Derek Price <derek@ximbiot.com>.
61374
61375 2005-05-22  Bruno Haible  <bruno@clisp.org>
61376
61377         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61378         (INT64_MIN): Fix definition.
61379         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61380
61381         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61382         NEED_SIGNED_INT_TYPES.
61383
61384         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61385         HAVE_SYSTEM_INTTYPES.
61386
61387 2005-05-22  Bruno Haible  <bruno@clisp.org>
61388
61389         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61390         Also include <sys/param.h> if it defines MIN, MAX.
61391         Based on a patch by Derek Price <derek@ximbiot.com>.
61392
61393 2005-05-21  Jim Meyering  <jim@meyering.net>
61394
61395         * modules/fts (Files): Add m4/inttypes-pri.m4.
61396         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61397
61398 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61399
61400         New fts module.
61401         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61402         (setup_dir, free_dir): New functions.
61403         (enter_dir, leave_dir): Define trivial
61404         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61405         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61406         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61407         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61408         Move to fts-cycle.c.
61409         (fts_open): Use setup_dir.
61410         (fts_close): Use free_dir.
61411         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
61412         This adds a label and some gotos, but the alternatives were messier.
61413         Check for memory allocation failure when entering a dir.
61414         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
61415         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
61416         (FTS): New member fts_cycle, that is a union that contains the
61417         old active_dir_ht and cycle_state.  All uses changed to mention
61418         fts_cycle.ht and fts_cycle.state.
61419         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
61420         fts.c, with the following changes:
61421         (setup_dir, free_dir): New functions.
61422         (enter_dir): Now returns bool.  Return true if successful, false
61423         if memory exhausted.  All callers changed.
61424         Do not bother partly cleaning up on
61425         memory allocation failure; that is free_dir's job.
61426         However, free ad if hash_insert fails, to avoid memory leak.
61427         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
61428         fts->fts_options to see which union member to use.
61429
61430 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61431
61432         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
61433         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
61434
61435 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61436
61437         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
61438
61439 2005-05-20  Jim Meyering  <jim@meyering.net>
61440
61441         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
61442         Now a macro, to pacify GCC.
61443
61444 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61445
61446         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
61447         of -1.
61448
61449 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61450
61451         * lib/chown.c (rpl_chown): Return -1 on failure.
61452
61453 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61454
61455         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
61456         Don't check for stddef.h.
61457         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
61458         don't use its results.
61459         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
61460         since we include them unconditionally.  Don't require
61461         AM_STDBOOL_H, since stdbool is a prerequisite.
61462         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
61463         since we assume C89 or better.
61464         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
61465         as we don't use their results.
61466         Don't check for fchdir, memmove, memset, strrchr, as we use
61467         them unconditionally.
61468         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
61469         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
61470
61471 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61472
61473         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
61474         Include <stddef.h> unconditionally, since we assume C89 now.
61475         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
61476         * lib/fts.c: Include fts_.h first, to check interface.
61477         Do not include intprops.h; no longer needed.
61478         Include cycle-check.h and hash.h, since fts_.h no longer does.
61479         Remove unnecessary casts of closedir to void.
61480         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
61481         decide whether to decrement nlinks.
61482         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
61483         (FTS): Use struct hash_table * instead of Hash_table, so that
61484         we no longer need to include hash.h here.
61485
61486 2005-05-18  Jim Meyering  <jim@meyering.net>
61487
61488         * modules/dirfd (License): Change to LGPL.  Most of the code
61489         is already in the public domain.
61490
61491 2005-05-18  Jim Meyering  <jim@meyering.net>
61492
61493         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
61494         Reported by Yoann Vandoorselaere.
61495
61496 2005-05-17  Jim Meyering  <jim@meyering.net>
61497
61498         * m4/fts.m4: New file, from coreutils.
61499
61500 2005-05-17  Jim Meyering  <jim@meyering.net>
61501
61502         * lib/fts.c, lib/fts_.h: New files, from coreutils.
61503
61504 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61505
61506         Sync from coreutils.
61507         * m4/unlinkdir.m4: New file.
61508
61509 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61510
61511         Sync from coreutils.
61512         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
61513         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
61514         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
61515         White space changes only.
61516         * lib/makepath.c (make_path): Port to hosts where leading "//" is
61517         special.
61518         * lib/yesno.c: Include getline.h, not ctype.h.
61519         (yesno): Don't remove leading white space; POSIX doesn't allow it.
61520         Use getline to remove arbitrary restriction on response length.
61521
61522 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         * config/srclist-update: Spell out "Street" in FSF postal
61525         mail address; this is the style the FSF seems to prefer.
61526
61527         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
61528         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
61529         this updates FSF postal mail address.
61530
61531         Sync from coreutils.
61532         * modules/unlinkdir: New file.
61533         * modules/yesno (Depends-on): Add getline.
61534         * MODULES.html.sh (File system functions): Add unlinkdir.
61535
61536 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
61539         lib/strsep.h:
61540         Change the initial comment to refer to GPL, not LGPL.
61541         gnulib-tool will change it to LGPL as needed.
61542
61543         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
61544         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
61545         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
61546         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
61547         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
61548         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
61549         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
61550         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
61551         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
61552         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
61553         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
61554         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
61555         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
61556         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
61557         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
61558         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
61559         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
61560         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
61561         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
61562         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
61563         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
61564         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
61565         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
61566         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
61567         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
61568         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
61569         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
61570         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
61571         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
61572         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
61573         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
61574         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
61575         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
61576         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
61577         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
61578         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
61579         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
61580         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
61581         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
61582         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
61583         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
61584         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
61585         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
61586         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
61587         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
61588         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
61589         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
61590         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
61591         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
61592         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
61593         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61594         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
61595         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
61596         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
61597         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
61598         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
61599         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
61600         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
61601         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
61602         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
61603         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
61604         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
61605         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
61606         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
61607         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
61608         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
61609         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
61610         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
61611         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
61612         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
61613         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
61614         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
61615         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
61616         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
61617         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
61618         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
61619         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
61620         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
61621         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
61622         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
61623         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
61624         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
61625         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
61626         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
61627         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
61628         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
61629         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
61630         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
61631         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
61632         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
61633         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
61634         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
61635         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
61636         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
61637         lib/yesno.c, lib/yesno.h:
61638         Update FSF postal mail address.
61639
61640 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61641
61642         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
61643         tests/test-memmem.c, tests/test-stpncpy.c:
61644         Update FSF postal mail address.
61645
61646 2005-05-13  Bruno Haible  <bruno@clisp.org>
61647
61648         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
61649         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
61650         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
61651         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
61652         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
61653         Add support for 64-bit integers in the MSVC compiler.
61654
61655 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61656
61657         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
61658
61659 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
61660
61661         * gnulib-tool (func_import): Sort and uniquify recommended includes.
61662
61663 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
61664
61665         * doc/getdate.texi (General date syntax): Don't say that date
61666         date --iso-8601=ns generates acceptable dates; it doesn't yet.
61667         Problem reported by Nic Ferrier.
61668
61669 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61670
61671         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
61672         specified in ai_socktype. Fix invalid ai_protocol
61673         check. ai_protocol is usually set to 0 or depending on
61674         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
61675         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
61676         ai_socktype / ai_protocol in the returned addrinfo structure.
61677
61678 2005-05-10  Simon Josefsson  <jas@extundo.com>
61679
61680         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
61681         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61682
61683 2005-05-10  Karl Berry  <karl@gnu.org>
61684
61685         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
61686         (from http://www.gnu.org/licenses).
61687         * doc/COPYING.LIB: also rename to COPYING.LESSER.
61688         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
61689         fdl.texi suffices.
61690
61691 2005-05-10  Karl Berry  <karl@gnu.org>
61692
61693         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
61694         (COPYING.DOC): remove.
61695
61696         * config/srclist-update: new FSF address.
61697
61698 2005-05-10  Derek Price  <derek@ximbiot.com>
61699
61700         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
61701         possible.
61702
61703 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61704             Bruno Haible  <bruno@clisp.org>
61705
61706         * modules/inet_ntop: New file.
61707         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61708         inet_ntop.
61709
61710 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61711             Bruno Haible  <bruno@clisp.org>
61712
61713         * m4/inet_ntop.m4: New file.
61714
61715 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61716             Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/inet_ntop.h: New file.
61719         * lib/inet_ntop.c: New file, from glibc with modifications.
61720
61721 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
61722
61723         * modules/time_r (License): Change to LGPL.
61724         * modules/extensions (License): Change to LGPL.  Actually,
61725         the license is more permissive than that, but currently gnulib-tool
61726         doesn't know how to handle more-permissive licenses.
61727
61728         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
61729         Problem reported by Dave Love.
61730
61731 2005-05-08  Jim Meyering  <jim@meyering.net>
61732
61733         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
61734         blank.
61735
61736 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61737
61738         * modules/argmatch (Depends-on): Add stdbool.
61739         * modules/backupfile (Depends-on): Likewise.
61740         * modules/chdir-long (Depends-on): Likewise.
61741         * modules/closeout (Depends-on): Likewise.
61742         * modules/cycle-check (Depends-on): Likewise.
61743         * modules/dirname (Depends-on): Likewise.
61744         * modules/fnmatch (Depends-on): Likewise.
61745         * modules/fsusage (Depends-on): Likewise.
61746         * modules/fwriteerror (Depends-on): Likewise.
61747         * modules/getcwd (Depends-on): Likewise.
61748         * modules/getloadavg (Depends-on): Likewise.
61749         * modules/hard-locale (Depends-on): Likewise.
61750         * modules/makepath (Depends-on): Likewise.
61751         * modules/mountlist (Depends-on): Likewise.
61752         * modules/nanosleep (Depends-on): Likewise.
61753         * modules/posixtm (Depends-on): Likewise.
61754         * modules/quotearg (Depends-on): Likewise.
61755         * modules/readtokens (Depends-on): Likewise.
61756         * modules/readtokens0 (Depends-on): Likewise.
61757         * modules/readutmp (Depends-on): Likewise.
61758         * modules/save-cwd (Depends-on): Likewise.
61759         * modules/strftime (Depends-on): Likewise.
61760         * modules/userspec (Depends-on): Likewise.
61761         * modules/utimecmp (Depends-on): Likewise.
61762         * modules/xgetcwd (Depends-on): Likewise.
61763         * modules/xnanosleep (Depends-on): Likewise.
61764         * modules/xstrtod (Depends-on): Likewise.
61765         * modules/yesno (Depends-on): Likewise.
61766
61767 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
61768
61769         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
61770         needless checks.
61771
61772 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61773
61774         Merge from coreutils.  Among other things,
61775         add bulletproofing for cases where stdin, stdout, or stderr are closed.
61776         * lib/fd-safer.c: New file.
61777         * lib/fcntl-safer.h, open-safer.c: Remove.
61778         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
61779         * lib/dup-safer.c: Include unistd-safer.h first.
61780         Don't include errno.h.
61781         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
61782         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
61783         * lib/file-type.c: Rely on file-type.h change.
61784         * lib/getloadavg.c: Include unistd-safer.h.
61785         (getloadavg): Use safer open.
61786         * lib/getusershell.c: Include "stdio-safer.h".
61787         (getusershell): Use safer fopen.
61788         * lib/long-options.c (long_options): Use NULL rather than 0.
61789         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
61790         'free'.
61791         * lib/modechange.c: Likewise.
61792         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
61793         (MODE_DONE): New constant.
61794         (struct mode_change): Remove 'next' member.
61795         (make_node_op_equals): New function; like the old one of the
61796         same name, except it allocates an array.
61797         (mode_compile, mode_create_from_ref): Use it.
61798         (mode_compile): Allocate result as an array, not a linked list.
61799         Parse octal string ourself, so that we catch mistakes like "+0".
61800         (mode_adjust): Arg is an array, not a linked list.
61801         * lib/modechange.c: Include stat-macros.h, xalloc.h.
61802         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
61803         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
61804         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
61805         Remove.  This is now stat-macros.h's job.
61806         (talloc): Remove.  All callers replaced by xalloc, so that
61807         our invokers don't have to worry about reporting memory failures.
61808         (make_node_op_equals): Remove.
61809         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61810         New constants.
61811         (struct mode_change): Moved here from modechange.h.
61812         (mode_append_entry): Remove.
61813         (mode_compile): Remove MASKED_OPS arg, since it encouraged
61814         apps to have incorrect behavior.  Use simpler algorithm for head
61815         and tail.  Don't futz with umask; that's now the job of mode_adjust.
61816         Detect more invalid usages rather than having somewhat-random behavior.
61817         Don't insert an "a=" action, as that leads to incorrect behavior.
61818         (mode_compile, mode_create_from_ref): Return NULL on error instead
61819         of an enum, since now there's only one way to have an error.  All
61820         callers changed.
61821         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
61822         at the correct time.  Simplify calculation of "+u" and its ilk.
61823         Don't mishandle "+X".
61824         (mode_free): Remove "register" and localize decls.
61825         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61826         (struct mode_change): Move to modechange.c; callers don't
61827         need to see this stuff.
61828         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
61829         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
61830         (mode_change, mode_adjust): Reflect the new signatures noted above.
61831         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
61832         that might redefine system include files.
61833         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
61834         (my_usleep): Use NULL rather than (void *) 0.
61835         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
61836         Use siginterrupt to specify that system calls should be interrupted.
61837         (rpl_nanosleep): Move initialization of suspended closer to call of
61838         my_usleep.
61839         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
61840         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
61841         (desirable_utmp_entry): New function.
61842         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
61843         using x2nrealloc, to simplify logic.
61844         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
61845         size calculation.  Do not assume utmp file is a regular file.
61846         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
61847         (READ_UTMP_CHECK_PIDS): New constant.
61848         * lib/save-cwd.c: Include unistd-safer.h.
61849         (save_cwd): Use fd_safer.
61850         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
61851         [!_LIBC] Include "stat-macros.h" instead.
61852         * lib/unistd-safer.h (fd_safer): New decl.
61853
61854 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61855
61856         * modules/getloadavg (Depends-on): Add unistd-safer.
61857         * modules/getusershell (Depends-on): Add stdio-safer.
61858         * modules/lstat (Depends-on): Remove xalloc.
61859         * modules/mkstemp (Depends-on): Add stat-macros.
61860         * modules/modechange (Depends-on): Remove xstrtol.
61861         Add stat-macros, xalloc.
61862         * modules/save-cwd (Depends-on): Add unistd-safer.
61863         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
61864         * modules/unistd-safer (Files): Add lib/fd-safer.c
61865         (Makefile.am): Remove lib_SOURCES.
61866
61867         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
61868         Remove fcntl-safer; unistd-safer supersedes it.
61869
61870 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
61873         AC_HEADER_STAT.
61874         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
61875         (gl_PREREQ_CHOWN): Remove.
61876         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
61877         it.  Don't require AC_HEADER_STAT.
61878         (gl_PREREQ_LSTAT): Remove.
61879         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
61880         Don't require AC_HEADER_STAT.
61881         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
61882         (gl_PREREQ_RMDIR): Remove.
61883         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
61884         mention stat-macros.h or AC_HEADER_STAT, since we'll make
61885         the stat-macros module a prerequisite.
61886         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
61887         * m4/filemode.m4 (gl_FILEMODE): Likewise.
61888         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
61889         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
61890         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
61891         variable names.
61892         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
61893         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
61894         variable prefixes.
61895         * m4/fcntl-safer.m4: Remove.
61896         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
61897         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
61898         Invoke gl_PREREQ_FD_SAFER.
61899         (gl_PREREQ_FD_SAFER): New macro.
61900         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
61901         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
61902         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
61903         Remove duplicate call to AC_LIBOBJ(readutmp).
61904         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
61905
61906         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
61907         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
61908
61909 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61910
61911         * MODULES.html.sh (Misc): Add byteswap.
61912
61913 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61914
61915         * modules/getcwd (Depends-on): Add extensions.
61916         * modules/openat (Depends-on): Likewise.
61917
61918 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61919
61920         * modules/byteswap: New file.
61921
61922 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61923
61924         * m4/byteswap.m4: New file.
61925
61926 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61927
61928         * lib/byteswap_.h: New file.
61929
61930 2005-04-25  Karl Berry  <karl@gnu.org>
61931
61932         * m4/gettext.m4: Update from GNU gettext 0.14.4.
61933
61934 2005-04-25  Albert Chin  <china@thewrittenword.com>
61935
61936         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
61937         Toolkit C bug.
61938
61939 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
61940
61941         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
61942         (func_ln_if_changed) Remove forcibly for no error message
61943         in case file does not exist.
61944
61945 2005-04-19  Simon Josefsson  <jas@extundo.com>
61946
61947         * gnulib-tool (Options): Make --symlink mean --symbolic.
61948
61949 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
61950
61951         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
61952
61953 2005-04-16  Simon Josefsson  <jas@extundo.com>
61954
61955         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
61956
61957 2005-04-15  Simon Josefsson  <jas@extundo.com>
61958
61959         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
61960
61961 2005-04-15  Simon Josefsson  <jas@extundo.com>
61962
61963         * gnulib-tool: Rename --symlink to --symbolic.
61964
61965 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
61966
61967         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
61968         symbolic links to files instead of copying/moving.  Add --aux-dir,
61969         specifying directory relative --dir where auxiliary build tools
61970         are placed.
61971
61972 2005-04-14  Bruno Haible  <bruno@clisp.org>
61973
61974         * modules/allocsa (License): Change to LGPL.
61975         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
61976
61977 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61978
61979         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
61980         that "UTC +1 second" continues to work.  Problem reported
61981         by Dmitry V. Levin.
61982         (relunit_snumber): New rule.
61983         (relunit): Use it.
61984
61985 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61986
61987         * lib/getdate.y (universal_time_zone_table): New constant.
61988         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
61989         universal_time_zone_table.
61990         (lookup_zone): Prefer universal_time_zone_table to
61991         local_time_zone_table, so that "GMT" time stamps are allowed in
61992         London during the summer.  Problem reported by Ian Abbott.
61993
61994 2005-04-12  Jim Meyering  <jim@meyering.net>
61995
61996         * lib/human.c (humblock): Set *options even when returning due to
61997         xstrtoumax conversion failure.  Thanks to a used-uninitialized
61998         warning from gcc-4.
61999
62000 2005-04-09  Jim Meyering  <jim@meyering.net>
62001
62002         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62003         -Wuninitialized: initialize tm0.tm_year.
62004
62005 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62006
62007         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62008         count, since there's no maximum.  All uses changed.
62009         Add member dsts_seen.
62010         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62011         not being INT_MAX.
62012         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62013         Use pc_rels_seen to decide whther a date is absolute.
62014
62015         * lib/getdate.y (number): Don't overwrite year.
62016         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62017         check.
62018
62019 2005-04-02  Simon Josefsson  <jas@extundo.com>
62020
62021         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62022         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62023
62024 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62025
62026         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62027         where no absolute path name can be longer than PATH_MAX.
62028
62029 2005-03-27  Jim Meyering  <jim@meyering.net>
62030
62031         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62032
62033 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62036         "one's complement" -> "ones' complement" in comment, as per Knuth.
62037         "value of type" -> "type or expression" in comment.
62038         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62039
62040 2005-03-26  Jim Meyering  <jim@meyering.net>
62041
62042         Comment nits.
62043         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62044         Correct typos: s/or/of/.
62045
62046 2005-03-26  Jim Meyering  <jim@meyering.net>
62047
62048         * modules/check-include-files: Move to ../ and rename to...
62049         * check-module: ...this.
62050
62051 2005-03-25  Jim Meyering  <jim@meyering.net>
62052
62053         * modules/xvasprintf (Files): Add xalloc.h.
62054
62055 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * modules/gettext (Files): config/config.rpath ->
62058         build-aux/config.rpath
62059         * modules/iconv (Files): Likewise.
62060         Problem reported by Oskar Liljeblad.
62061
62062 2005-03-23  Jim Meyering  <jim@meyering.net>
62063
62064         * modules/check-include-files: New script to check for
62065         missing dependencies, multiple includes, etc.
62066
62067         * modules/c-strtold (Depends-on): Add xalloc.
62068         * modules/c-strtod (Depends-on): Add xalloc.
62069         * modules/hash (Depends-on): Add xalloc.
62070         (Files): Remove lib/xalloc.h.
62071
62072         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62073         * modules/userspec (Files): Add lib/inttostr.h.
62074
62075 2005-03-23  Jim Meyering  <jim@meyering.net>
62076
62077         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62078
62079 2005-03-22  Jim Meyering  <jim@meyering.net>
62080
62081         * modules/stat-macros: New module.
62082         * modules/canonicalize, modules/euidaccess, modules/file-type,
62083         * modules/filemode, modules/lchown, modules/makepath,
62084         * modules/rmdir, modules/stat: Depend on new stat-macros module
62085         rather than listing lib/stat-macros.h manually.
62086         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62087
62088 2005-03-22  Jim Meyering  <jim@meyering.net>
62089
62090         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62091
62092 2005-03-22  Bruno Haible  <bruno@clisp.org>
62093
62094         * config/srclist.txt: Replace target directory 'config' with
62095         'build-aux'.
62096         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62097         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62098         ../build-aux/.
62099
62100 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62101
62102         * modules/chdir-long (Depends-on): Add mempcpy.
62103
62104         * modules/acl, modules/backupfile, modules/c-strtod,
62105         modules/c-strtold, modules/canon-host, modules/canonicalize,
62106         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62107         modules/exclude, modules/exitfail, modules/file-type,
62108         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62109         modules/getdate, modules/getline, modules/getpagesize,
62110         modules/getpass, modules/getugroups, modules/group-member,
62111         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62112         modules/inttostr, modules/long-options, modules/makepath,
62113         modules/md5, modules/memcasecmp, modules/memcoll,
62114         modules/modechange, modules/mountlist, modules/path-concat,
62115         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62116         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62117         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62118         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62119         modules/strftime, modules/strndup, modules/strverscmp,
62120         modules/timespec, modules/unlocked-io, modules/userspec,
62121         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62122         modules/yesno:
62123         Remove lib_SOURCES line from Makefile.am section, as this is now
62124         done automatically by the corresponding Autoconf macro.
62125
62126 2005-03-21  Jim Meyering  <jim@meyering.net>
62127
62128         Changes imported from coreutils.
62129
62130         * lib/cycle-check.c: Don't include xalloc.h.
62131
62132         * lib/path-concat.c: Don't include assert.h.
62133         (path_concat): Remove assertion that would have triggered
62134         for ABASE starting with more than one slash.
62135         Reported by Andreas Schwab.
62136
62137         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62138         properly when ABASE is an absolute file name.
62139         Correct the description of this function.
62140         Include <assert.h>.
62141         Add an assertion and a test driver.
62142         This fixes a bug introduced on 2004-07-02.
62143         Andreas Schwab reported the resulting failure of cp --parents:
62144         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62145
62146 2005-03-21  Jim Meyering  <jim@meyering.net>
62147
62148         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62149         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62150
62151 2005-03-21  Jim Meyering  <jim@meyering.net>
62152         and  Paul Eggert  <eggert@cs.ucla.edu>
62153
62154         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62155         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62156         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62157         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62158         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62159         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62160         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62161         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62162         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62163         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62164         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62165         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62166         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62167         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62168         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62169         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62170         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62171         for these modules.
62172
62173 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62174
62175         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62176         (which shouldn't happen), generate nothing instead of returning 0
62177         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62178
62179 2005-03-16  Bruno Haible  <bruno@clisp.org>
62180
62181         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62182         HAVE_LONGLONG_64BIT.
62183
62184 2005-03-16  Bruno Haible  <bruno@clisp.org>
62185
62186         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62187         HAVE_LONGLONG_64BIT.
62188
62189 2005-03-16  Bruno Haible  <bruno@clisp.org>
62190
62191         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62192         HAVE_LONGLONG_64BIT.
62193
62194 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62195
62196         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62197         reliably distinguish strftime failure from empty output on POSIX
62198         hosts.
62199
62200 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62201
62202         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62203         (iconv_string): Don't guess a size-zero buffer, as that might cause
62204         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62205         result would be 'too large', where 'too large' is (heuristically)
62206         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62207         overflow concerns.  This will prevent some unwanted malloc failures
62208         when the inputs are very large.
62209
62210 2005-03-15  Karl Berry  <karl@gnu.org>
62211
62212         * config/srclist.txt (config.rpath): from gettext.
62213         * config/config.rpath: update.
62214
62215 2005-03-15  Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62218         to 'negate'.
62219
62220         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62221         variable.
62222
62223         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62224         results.
62225
62226 2005-03-14  Simon Josefsson  <jas@extundo.com>
62227
62228         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62229         <fx@gnu.org>.
62230
62231 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62232
62233         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62234         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62235         intprops.h.
62236         * lib/strtol.c: Likewise.
62237
62238 2005-03-14  Jim Meyering  <jim@meyering.net>
62239
62240         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62241         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62242         to be nonzero so that we (and caller) can detect the difference
62243         between a valid zero-length expansion and an error return, even
62244         when the underlying strftime fails before writing anything into
62245         that location.
62246
62247 2005-03-14  Bruno Haible  <bruno@clisp.org>
62248
62249         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62250         Update from GNU gettext 0.14.3.
62251
62252 2005-03-10  Jim Meyering  <jim@meyering.net>
62253
62254         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62255
62256 2005-03-10  Jim Meyering  <jim@meyering.net>
62257
62258         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62259         so that this module works on systems without fchdir.
62260
62261 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62262
62263         Factor int-properties macros into a single file, except for
62264         glibc-related files.
62265         * lib/intprops.h: New file.
62266         * lib/getloadavg.c: Include it instead of limits.h.
62267         (INT_STRLEN_BOUND): Remove.
62268         * lib/human.c: Include intprops.h.
62269         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62270         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62271         302/1000.
62272         * lib/inttostr.h: Include intprops.h instead of limits.h.
62273         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62274         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62275         for consistency with intprops.h.
62276         (time_t_is_integer, twos_complement_arithmetic): Use them.
62277         * lib/sig2str.h: Include <signal.h>, intprops.h.
62278         (INT_STRLEN_BOUND): Remove.
62279         * lib/strftime.c (TYPE_SIGNED): Remove.
62280         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62281         * lib/strtol.c: Adjust comments to match intprops.h.
62282         * lib/userspec.c: Include intprops.h.
62283         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62284         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62285         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62286         instead of rolling our own expressions.
62287         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62288
62289         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62290         instead of int.
62291         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62292         the right thing even if adding 1900 would overflow.  Similarly
62293         for tm_mon + 1 and tm_yday + 1.
62294         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62295         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62296         (DO_SIGNED_NUMBER): New macro.
62297         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62298
62299 2005-03-07  Bruno Haible  <bruno@clisp.org>
62300
62301         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62302
62303 2005-03-07  Bruno Haible  <bruno@clisp.org>
62304
62305         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62306
62307 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62308
62309         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62310         (func_import): Only replace files via --import when they have actually
62311         changed.
62312
62313 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62314
62315         * m4/mmap-anon.m4: New file.
62316         * m4/pagealign_alloc.m4: New file.
62317
62318 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62319             Bruno Haible  <bruno@clisp.org>
62320
62321         * modules/pagealign_alloc: New file.
62322         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62323
62324 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62325             Bruno Haible  <bruno@clisp.org>
62326
62327         * lib/pagealign_alloc.h: New file.
62328         * lib/pagealign_alloc.c: New file.
62329
62330 2005-03-03  Bruno Haible  <bruno@clisp.org>
62331
62332         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62333         Use an all-permissive copyright notice, recommended by RMS.
62334
62335 2005-03-02  Bruno Haible  <bruno@clisp.org>
62336
62337         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62338         of AIX, the replacement has to be done only after <string.h> is
62339         included, therefore not in config.h. stpncpy.h does the replacement,
62340         and stpncpy.c uses it.
62341
62342 2005-03-02  Bruno Haible  <bruno@clisp.org>
62343
62344         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
62345         stpncpy.c uses it.
62346
62347 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62348
62349         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
62350         The workaround isn't strictly needed for POSIX conformance, and
62351         it's too much of a pain to configure and maintain.  We'll ask
62352         people to fix their kernels instead.
62353         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
62354         (NANOSLEEP_BUG_WORKAROUND): Remove.
62355         (xnanosleep): Remove the workaround.
62356
62357 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62358
62359         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
62360         Reported by Derek Price.
62361         (Include): Add "timespec.h".
62362
62363         * modules/xnanosleep (Depends-on): Remove gethrxtime.
62364
62365 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62366
62367         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62368         to detect nanosleep bug.
62369
62370 2005-03-01  Bruno Haible  <bruno@clisp.org>
62371
62372         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62373
62374 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62375
62376         * modules/gethrxtime: New file.
62377         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62378         (Depends-on): Add gethrxtime.
62379         (configure.ac): Add gl_XNANOSLEEP.
62380         (Makefile.am): Remove lib_SOURCES line.
62381
62382 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62383
62384         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62385         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62386
62387 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62388
62389         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62390         * lib/timespec.h (gettime): Return void, since it always
62391         succeeds now.  All uses changed.
62392         * lib/gettime.c (gettime) Likewise.
62393         [HAVE_NANOTIME]: Prefer nanotime.
62394         Assume gettimeofday succeeds, as POSIX requires.
62395         Assime time () succeeds, since other code already does.
62396         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62397         (timespec_subtract): Remove.
62398         (NANOSLEEP_BUG_WORKAROUND): New constant.
62399         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62400         things considerably.  Use it only on GNU/Linux hosts, since the
62401         workaround shouldn't be needed elsewhere.
62402
62403 2005-02-24  Bruno Haible  <bruno@clisp.org>
62404
62405         * modules/gettext (Files): Add m4/glibc2.m4.
62406
62407 2005-02-24  Bruno Haible  <bruno@clisp.org>
62408
62409         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62410         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62411         * m4/progtest.m4:
62412         Update from GNU gettext 0.14.2.
62413         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
62414
62415 2005-02-24  Bruno Haible  <bruno@clisp.org>
62416
62417         * lib/localcharset.c: Update from GNU gettext 0.14.2.
62418         * lib/config.charset: Update from GNU gettext 0.14.2.
62419
62420 2005-02-24  Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/gettext.h: Update from GNU gettext 0.14.2.
62423
62424 2005-02-23  Simon Josefsson  <jas@extundo.com>
62425
62426         * m4/iconvme.m4: New file.
62427
62428 2005-02-23  Jim Meyering  <jim@meyering.net>
62429
62430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
62431         change.
62432         Thanks to Bruno Haible for catching it.
62433
62434 2005-02-22  Simon Josefsson  <jas@extundo.com>
62435
62436         * modules/iconvme: New file.
62437
62438         * MODULES.html.sh: Add iconvme.
62439
62440 2005-02-22  Simon Josefsson  <jas@extundo.com>
62441
62442         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
62443
62444 2005-02-22  Simon Josefsson  <jas@extundo.com>
62445
62446         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
62447
62448 2005-02-22  Jim Meyering  <jim@meyering.net>
62449
62450         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
62451         s/ifndef/ifdef/.
62452
62453 2005-02-20  Neil Conway  <neilc@samurai.com>
62454
62455         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
62456         returned by OSX/Darwin if the specified buffer is not large
62457         enough for the hostname.
62458
62459 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62460
62461         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
62462         pass it to _help, otherwise the latter coredumps trying to
62463         dereference state.root_argp.
62464
62465 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62466
62467         * modules/chdir-long (Depends-on): Add memrchr.
62468         * modules/memrchr (Files): Add lib/memrchr.h.
62469         (Include): "memrchr.h".
62470
62471 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62472
62473         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
62474
62475 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62476
62477         * lib/memrchr.h: New file.
62478         * lib/chdir-long.c: Include it.
62479         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
62480         Don't bother including stddef.h.
62481
62482 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62483
62484         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
62485         inclusion.
62486         Include <sys/types.h>, for dev_t.
62487         (ME_DUMMY, ME_REMOTE): Move from here....
62488         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
62489         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
62490         Dmitry V. Levin.
62491         Include mountlist.h first, to test the interface.
62492
62493 2005-01-29  Bruno Haible  <bruno@clisp.org>
62494
62495         * lib/progname.c (program_name): Initialize.
62496         Needed when linking statically on MacOS X.
62497
62498 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         Sync from coreutils.
62501         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
62502         (Depends-on): Add c-strtod.
62503         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
62504
62505 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62506
62507         Sync from coreutils.
62508         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
62509
62510         Remove files that are specific to coreutils.
62511         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
62512
62513 2005-01-28  Bruno Haible  <bruno@clisp.org>
62514
62515         * modules/javacomp: New file.
62516         * MODULES.html.sh (Java): Add javacomp.
62517
62518 2005-01-28  Bruno Haible  <bruno@clisp.org>
62519
62520         * m4/javacomp.m4: New file, from GNU gettext.
62521
62522 2005-01-28  Bruno Haible  <bruno@clisp.org>
62523
62524         * lib/javacomp.sh.in: New file, from GNU gettext.
62525         * lib/javacomp.h: New file, from GNU gettext.
62526         * lib/javacomp.c: New file, from GNU gettext.
62527
62528 2005-01-26  Simon Josefsson  <jas@extundo.com>
62529
62530         * lib/gai_strerror.c: Use GPL in header.
62531
62532 2005-01-26  Bruno Haible  <bruno@clisp.org>
62533
62534         * modules/javaexec: New file.
62535         * MODULES.html.sh (Java): Add javaexec.
62536
62537 2005-01-26  Bruno Haible  <bruno@clisp.org>
62538
62539         * m4/javaexec.m4: New file, from GNU gettext.
62540
62541 2005-01-26  Bruno Haible  <bruno@clisp.org>
62542
62543         * lib/javaexec.sh.in: New file, from GNU gettext.
62544         * lib/javaexec.h: New file, from GNU gettext.
62545         * lib/javaexec.c: New file, from GNU gettext.
62546
62547 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62548
62549         * modules/lchown (Depends-on): Remove lchown.h
62550
62551 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62552
62553         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
62554         must be defined if the header file was not found, in order
62555         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
62556
62557 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62558
62559         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
62560         initializers for struct pentry_state.
62561         (__argp_error): Check return value of __asprintf
62562         (__argp_failure): Translate error message
62563
62564         * lib/argp-parse.c: Removed braces around the expansion of N_()
62565
62566 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
62569         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
62570         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
62571         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
62572         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
62573         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
62574         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
62575         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
62576         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
62577         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
62578         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
62579         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
62580         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
62581         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
62582         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
62583         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
62584         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
62585         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
62586         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
62587         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
62588         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
62589         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
62590         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
62591         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
62592         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
62593         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
62594         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
62595         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
62596         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
62597         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
62598         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
62599         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
62600         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
62601         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
62602         xstrtol.m4, xstrtoumax.m4, yesno.m4:
62603         Use an all-permissive copyright notice, recommended by RMS.
62604
62605 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
62606
62607         * modules/chdir-long (Depends-on): Remove mempcpy.
62608
62609 2005-01-21  Jim Meyering  <jim@meyering.net>
62610
62611         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
62612         same value as for Solaris 9.
62613
62614         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
62615         component length.  This included changing the parameter to be
62616         of type `char *' rather than `char const *'.
62617         * lib/chdir-long.h (chdir_long): Update prototype.
62618
62619         * lib/openat.c (fdopendir, fstatat): New functions.
62620         * lib/openat.h: Include headers required for use of DIR and struct
62621         stat.
62622         [AT_SYMLINK_NOFOLLOW]: Define.
62623         (fdopendir, fstatat): Add prototypes.
62624
62625 2005-01-21  Bruno Haible  <bruno@clisp.org>
62626
62627         * modules/classpath: New file.
62628         * MODULES.html.sh (Java): Add classpath.
62629
62630 2005-01-21  Bruno Haible  <bruno@clisp.org>
62631
62632         * lib/classpath.h: New file, from GNU gettext.
62633         * lib/classpath.c: New file, from GNU gettext.
62634
62635 2005-01-20  Simon Josefsson  <jas@extundo.com>
62636
62637         * modules/version-etc-fsf: New file.
62638
62639 2005-01-20  Simon Josefsson  <jas@extundo.com>
62640
62641         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
62642         * lib/version-etc.c: Remove version_etc_copyright.
62643         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
62644         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
62645
62646 2005-01-20  Simon Josefsson  <jas@extundo.com>
62647
62648         * lib/base64.h (isbase64): Add.
62649
62650         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
62651         using a unsigned prototype, don't inline.
62652         (base64_decode): Use it.
62653
62654 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62655
62656         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
62657         it.
62658
62659 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62660
62661         * lib/save-cwd.c (save_cwd): Remove code to support the case
62662         where fchdir is missing or flaky.
62663
62664 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62665
62666         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
62667
62668 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62669
62670         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
62671         AC_LIBSOURCES now does this.
62672         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
62673         with new ullong_max module.
62674
62675 2005-01-19  Bruno Haible  <bruno@clisp.org>
62676
62677         * modules/sh-quote: New file.
62678         * MODULES.html.sh (Executing programs): Add sh-quote.
62679
62680 2005-01-19  Bruno Haible  <bruno@clisp.org>
62681
62682         * lib/sh-quote.h: New file, from GNU gettext.
62683         * lib/sh-quote.c: New file, from GNU gettext.
62684
62685 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62686
62687         Merge from coreutils.
62688         * m4/ullong_max.m4: New file.
62689         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
62690         (gl_MACROS): Assume localeconv exists.
62691
62692 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62693
62694         Merge changes from coreutils, as described below in several
62695         changelogs dated today.
62696
62697         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
62698         (O_DIRECTORY): Remove; not needed here, since "." must be
62699         a directory.  All uses removed.
62700         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
62701         universal on Suns, and we also need to test for IRIX.
62702         Revamp code to use 'if' rather than '#if'.
62703         Avoid unnecessary comparison of cwd->desc to 0.
62704
62705         * lib/utimens.c (futimens): Robustify the previous patch, by checking
62706         for known valid error numbers rather than observed invalid ones.
62707
62708 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62709
62710         * modules/ullong_max: New file.
62711
62712         * modules/chdir-long, modules/openat: New files.
62713         * modules/save-cwd (Depends-on): Depend on chdir-long.
62714         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
62715
62716 2005-01-18  Jim Meyering  <jim@meyering.net>
62717
62718         Merge from coreutils.
62719         * m4/chdir-long.m4, m4/openat.m4: New files.
62720         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
62721         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
62722         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
62723         is sane and DOES follow symlinks.  Besides, testing 20 different
62724         systems found no broken chown implementations.
62725         Prompted by a change in rsync's copy of this macro.
62726         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
62727
62728         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
62729
62730         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
62731         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
62732         NULL-means-set-to-current-time semantics.
62733         Remove temporary file immediately, rather than waiting
62734         for configure's at-exit trap code to do it.
62735
62736 2005-01-18  Jim Meyering  <jim@meyering.net>
62737
62738         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62739
62740         * lib/utimens.c (futimens): Account for the fact that futimes
62741         can also fail with errno == ENOSYS or errno == ENOENT.
62742         Patch from Dmitry V. Levin.
62743
62744         Change the name of the robust chdir function from chdir to chdir_long.
62745         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
62746         (restore_cwd): Use chdir_long, not chdir.
62747         * lib/chdir-long.c: Renamed from chdir.c.
62748         * lib/chdir-long.h: Renamed from chdir.h.
62749         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
62750         Hurd.
62751
62752 2005-01-18  Bruno Haible  <bruno@clisp.org>
62753
62754         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
62755         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
62756         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
62757         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
62758         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
62759         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
62760         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
62761         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
62762         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
62763         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
62764         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
62765         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
62766         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
62767         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
62768         Use an all-permissive copyright notice, recommended by RMS.
62769
62770 2005-01-18  Bob Proulx  <bob@proulx.com>
62771
62772         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
62773         simplify offsetof() macro construct to avoid compile failure with
62774         native HP-UX 11.0 ANSI C compiler.
62775
62776 2005-01-17  Bruno Haible  <bruno@clisp.org>
62777
62778         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
62779         redundant because stpncpy.m4 takes care of it.
62780
62781 2005-01-17  Bruno Haible  <bruno@clisp.org>
62782
62783         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
62784
62785 2005-01-17  Bruno Haible  <bruno@clisp.org>
62786
62787         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
62788         used.
62789
62790 2005-01-17  Bruno Haible  <bruno@clisp.org>
62791
62792         * lib/fwriteerror.h (fwriteerror): Change specification to include
62793         fclose.
62794         * lib/fwriteerror.c: Include <stdbool.h>.
62795         (fwriteerror): At the end, close the file stream. Record whether
62796         stdout was already closed.
62797
62798 2005-01-17  Bruno Haible  <bruno@clisp.org>
62799
62800         * lib/execute.c (environ): Declare if needed.
62801         * lib/pipe.c (environ): Likewise.
62802         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
62803
62804 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62805
62806         * modules/argp: Depend on vsnprintf
62807
62808 2005-01-10  Jim Meyering  <jim@meyering.net>
62809
62810         * modules/closeout (Depends-on): Add atexit.
62811
62812 2005-01-06  Bruno Haible  <bruno@clisp.org>
62813
62814         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
62815
62816 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62817
62818         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
62819         definitions to be after all include files, to avoid collisions.
62820         Problem reported by Bob Proulx.
62821
62822 2005-01-04  Jim Meyering  <jim@meyering.net>
62823
62824         Changes imported from coreutils.
62825         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
62826         as the mkstemp template, use a temporary directory and an
62827         8.3-friendly template to avoid trouble on systems like DJGPP.
62828         Reported by Juan M. Guerrero via Stepan Kasal.
62829         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
62830         close. Remove the temporary directory right away, rather than waiting
62831         for configure's at-exit trap code to do it.
62832         Suggestion from Stepan Kasal.
62833
62834 2005-01-01  Simon Josefsson  <jas@extundo.com>
62835
62836         * gnulib-tool: Print #include directives when --import'ing.
62837
62838 2004-12-28  Simon Josefsson  <jas@extundo.com>
62839
62840         * tests/test-base64.c: Include required header files.  Remove
62841         unused variables.
62842
62843 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * modules/error (Depends-on): Remove gettext.
62846
62847 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62848
62849         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
62850         not needed.  This removes a dependency on the gettext module.
62851         [defined _LIBC]: Do not include <libintl.h>; not needed.
62852
62853 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62854
62855         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
62856         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
62857
62858 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62859
62860         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
62861         HAVE_DECL_STRTOLD.
62862
62863 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62864
62865         * modules/getdate (Depends-on): Remove alloca-opt.
62866
62867 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62868
62869         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
62870
62871 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62872
62873         * lib/argp-parse.c: Include <stddef.h>.
62874         (alignof, alignto): New macros.
62875         (parser_init): Don't assume that void * is aligned sufficiently
62876         for struct option.
62877
62878         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
62879         need to extend the stack.
62880         (YYINITDEPTH): New macro, so that the initial stack isn't overly
62881         large.
62882
62883 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62884
62885         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
62886
62887 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62888
62889         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
62890         (2004-10-24) change.  Apparently this was a false alarm.
62891
62892         * modules/getdate: Depend on alloca-opt, not alloca.
62893
62894 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62895
62896         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
62897         Remove now-obsolete comment about AIX.
62898         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
62899         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
62900         (YYMAXDEPTH): New macro.
62901
62902 2004-12-18  Simon Josefsson  <jas@extundo.com>
62903
62904         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
62905
62906 2004-12-18  Bruno Haible  <bruno@clisp.org>
62907
62908         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
62909
62910 2004-12-18  Bruno Haible  <bruno@clisp.org>
62911
62912         * lib/fatal-signal.c (fatal_signals): Make non-const.
62913         (init_fatal_signals): New function.
62914         (uninstall_handlers, install_handlers): Ignore signals that were set to
62915         SIG_IGN.
62916         (at_fatal_signal): Call init_fatal_signals.
62917         (init_fatal_signal_set): Likewise. Ignore signals that were set to
62918         SIG_IGN.
62919         Reported by Paul Eggert.
62920
62921 2004-12-18  Bruno Haible  <bruno@clisp.org>
62922
62923         * doc/alloca.texi: New file.
62924         * doc/alloca-opt.texi: New file.
62925
62926 2004-12-17  Jim Meyering  <jim@meyering.net>
62927
62928         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
62929         Otherwise, install-sh could exit with improper exit status when
62930         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
62931
62932 2004-12-16  Simon Josefsson  <jas@extundo.com>
62933
62934         * tests/test-base64.c: Add license.
62935
62936 2004-12-15  Stepan Kasal  <address@hidden>
62937
62938         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
62939
62940 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
62941
62942         * modules/getcwd (Files): Add m4/d-ino.m4.
62943         Suggested by Mark D. Baushke.
62944
62945 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         * lib/getdate.y (textint): New member "negative".
62948         (time_zone_hhmm): New function.
62949         Expect 14 shift-reduce conflicts, not 13.
62950         (o_colon_minutes): New rule.
62951         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
62952         (yylex): Set the "negative" member of signed numbers.
62953
62954 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
62955
62956         * doc/getdate.texi (Time of day items, Time zone items):
62957         Describe new formats +00:00, UTC+00:00.
62958
62959 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62960
62961         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
62962         spurious "-l"s.  Problem reported by Stepan Kasal.
62963
62964 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
62965
62966         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
62967         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
62968
62969 2004-12-04  Simon Josefsson  <jas@extundo.com>
62970
62971         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
62972         Vandoorselaere <yoann@prelude-ids.org>.
62973
62974 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62975
62976         Changes imported from coreutils.
62977         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
62978         exist.
62979         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
62980
62981 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62982
62983         Changes imported from coreutils.
62984         * lib/hard-locale.c: Assume <locale.h> exists.
62985         Include "strdup.h".
62986         (GLIBC_VERSION): New macro.
62987         (hard_locale): Assume setlocale exists.
62988         Rewrite to avoid #ifdef.
62989         Use strdup rather than malloc + strcpy.
62990         * lib/human.c: Assume <locale.h> exists.
62991         (human_readable): Assume localeconv exists.
62992
62993 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62994
62995         * modules/hard-locale (Depends-on): Add strdup.
62996
62997 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62998
62999         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63000         convert T2, not T.  (Imported from libc.)
63001
63002 2004-11-30  Simon Josefsson  <jas@extundo.com>
63003
63004         * modules/restrict (License): Change to LGPL.
63005
63006 2004-11-30  Simon Josefsson  <jas@extundo.com>
63007
63008         * m4/restrict.m4: Add copyright and copying conditions.
63009
63010 2004-11-30  Simon Josefsson  <jas@extundo.com>
63011
63012         * m4/base64.m4: New file.
63013
63014 2004-11-30  Simon Josefsson  <jas@extundo.com>
63015
63016         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63017         base64.
63018
63019         * tests/test-base64.c: New file.
63020
63021         * modules/base64: New file.
63022
63023 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63024
63025         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63026         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63027
63028         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63029
63030 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63031
63032         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63033         (__getcwd.c): Don't restore errno; glibc doesn't.
63034         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63035         first, falling back to our code only if its results look suspicious.
63036         Ensure that the resulting buffer is only as large as necessary.
63037
63038         * lib/readutmp.c: Include readutmp.h first.
63039         Include <errno.h>, since readutmp.h no longer does that.
63040         * lib/readutmp.h: Don't include <errno.h>,
63041         <sys/param.h>, <time.h>; not needed to establish interface.
63042         (errno): Remove decl.
63043         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63044         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63045         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63046
63047 2004-11-28  Simon Josefsson  <jas@extundo.com>
63048
63049         * lib/base64.h, base64.c: New file.
63050
63051 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63052
63053         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63054
63055 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63058         (Depends-on): Remove pathmax, same.  Add mempcpy.
63059         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63060         (Makefile.am): Append getcwd.h to lib_SOURCES.
63061         (Include): Add getcwd.h.
63062         (Maintainer): Change from Jim Meyering to "all, glibc",
63063         since getdate now uses intended-for-glibc code.
63064         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63065         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63066
63067 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63068
63069         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63070         HP's ANSI C compiler.
63071         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63072         Declaring int functions causes warnings on some modern systems and
63073         shouldn't be needed to compile on ancient ones.
63074         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63075         defined.
63076
63077         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63078         with the following changes.
63079         (__set_errno): Parenthesize properly.
63080         Include <stdbool.h>.
63081         (MIN, MAX, MATCHING_INO): New macros.
63082         (__getcwd): Define with prototype, not K&R form.
63083         Use heuristics to allocate default buffer on stack if possible.
63084         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63085         behavior, and to avoid the PATH_MAX limit when computing
63086         ../../../../...
63087         Use MATCHING_INO to compare inode number to file.
63088         Check for arithmetic overflow in size calculations.
63089         Fix bug in reallocation of dot array that caused getcwd to fail
63090         on directories nested deeper than 75.
63091         Be more careful about saving errno on error.
63092         Do not use realloc; use only free+malloc, as this is a bit
63093         more flexible and avoids a needless copy operation.
63094         Do not inspect st_dev and st_ino for symbolic links; POSIX
63095         doesn't specify the latter.
63096         Check for closedir errors.
63097         Avoid needless casts.
63098         Use "#ifdef weak_alias" around weak_alias, to be like other
63099         glibc code.
63100         The following changes to getcwd.c have effect only when used in
63101         gnulib; they have no effect inside glibc proper.
63102         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63103         as alloca isn't used.
63104         (alloca, __alloca): Likewise.
63105         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63106         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63107         unconditionally, as gnulib assumes C89 or better.
63108         Do not include <sys/param.h>.
63109         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63110         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63111         better.
63112         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63113         Include <dirent.h> in a way that is compatible with modern Autoconf.
63114         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63115         New macros, if not already defined.
63116         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63117         Use "_LIBC", not "defined _LIBC", for consistency.
63118         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63119         a mempcpy module.
63120         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63121         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63122         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63123         credit only to Jim Meyering and adjust the copyright dates.
63124         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63125         <stdlib.h>, <unistd.h>, "pathmax.h".
63126         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63127         (INITIAL_BUFFER_SIZE): Remove.
63128         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63129
63130 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63131
63132         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63133         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63134         Use the _ONCE methods, for efficiency.
63135         Check for fcntl.h.  In test program, include <errno.h>
63136         and <fcntl.h> if available.  Remove old K&R cruft from
63137         test program.  Check for common errors in GNU/Linux,
63138         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63139         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63140         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63141         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63142         name accordingly.
63143         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63144         accommodate new getcwd.c.
63145         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63146         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63147         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63148         that's all we need now.
63149
63150 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63151
63152         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63153         argp-parse.c depends on getopt internals, that means we should
63154         always use our getopt, to be on the safe side.
63155         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63156         order not to spoil the result of an eventual previous invocation
63157         of gl_GETOPT_SUBSTITUTE.
63158
63159 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63160
63161         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63162         redefinition warnings. To avoid them, include the defines
63163         in `#if !defined __need_getopt ... #endif'. The only place
63164         where __getopt_argv_const is used is in definitions
63165         of getopt_long and getopt_long_only below, which are as well
63166         protected by `#ifndef __need_getopt'.
63167         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63168         __need_getopt after including <stdio.h> and <unistd.h> These
63169         headers might have defined it.
63170
63171 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63174
63175 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63176
63177         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63178         (futimens): New function, which uses futimes if available.
63179         (futimens, utimens): Support timespec==NULL, with same semantics
63180         as utime and utimens.
63181         * lib/utimens.h (futimens): New decl.
63182
63183 2004-11-23  Jim Meyering  <jim@meyering.net>
63184
63185         * lib/getopt_.h: Remove trailing blanks.
63186
63187 2004-11-23  Jim Meyering  <jim@meyering.net>
63188
63189         * lib/__fpending.c: Add comment.
63190
63191 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63192
63193         * modules/canonicalize (Depends-on): Add xreadlink.
63194         Problem reported by James Youngman.
63195
63196 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63197
63198         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63199         New macros.
63200         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63201         optopt): Use them instead of invoking ## directly; otherwise, the
63202         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63203
63204 2004-11-19  Bruno Haible  <bruno@clisp.org>
63205
63206         * lib/strtok_r.c: Move comments from here...
63207         * lib/strtok_r.h: ... to here.
63208
63209 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63210
63211         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63212         implementations that mishandle size_t overflow.
63213
63214 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63217         might fail.  Problem reported by Yoann Vandoorselaere.
63218         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63219         implementations that mishandle size_t overflow.
63220
63221 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63222
63223         * modules/canon-host (Depends-on): Add strdup.
63224
63225 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63226
63227         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63228
63229 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         * lib/canon-host.c: Include "strdup.h".
63232         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63233         Use strdup instead of malloc/strcpy to duplicate strings.
63234
63235         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63236         (human_space_before_unit): New constant.
63237         * lib/human.c (human_readable): Support it.
63238
63239         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63240         (xgetcwd): Set errno correctly when failing.
63241         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63242         the failure is actually due to a PATH_MAX problem.
63243
63244         Further getopt changes to make it more likely that glibc will
63245         buy the changes back.
63246         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63247         (getopt): Use it, so to preserve glibc semantic
63248         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63249         when compiling for libc.
63250         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63251         (getopt_long, getopt_long_only): Use it.
63252
63253         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63254         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63255         (getopt): Argv is now char * const *, as per standard.
63256         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63257         not char *__getopt_argv_const *.
63258         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63259         _getopt_long_only_r): Likewise.
63260         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63261         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63262         _getopt_long_r, _getopt_long_only_r): Likewise.
63263         * lib/getopt_.h (__getopt_argv_const): Remove.
63264         (getopt): Argv is now char * const *, as per standard.
63265
63266         * lib/getdate.y (tORDINAL): New token.
63267         (day, relunit): Allow it for relative times.
63268         (relative_time_table): Use tORDINAL for ordinals.
63269
63270 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63271
63272         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63273         Document that "second" isn't allowed as an ordinal number.
63274
63275 2004-11-16  Jim Meyering  <jim@meyering.net>
63276
63277         * modules/closeout (Depends-on): Add fpending.
63278
63279 2004-11-15  Jim Meyering  <jim@meyering.net>
63280
63281         * lib/closeout.c: Include "__fpending.h" once again.
63282         Include <stdbool.h>.
63283         (close_stdout): Don't fail just because stdout was closed initially,
63284         since some programs don't write to stdout in the normal course of
63285         operation (other than --version and --help), and we don't want this
63286         function to make e.g. `touch file >&-' fail.
63287         But do fail if it was closed and someone has tried to write to it.
63288         E.g., `printf foo >&-' must fail.
63289
63290 2004-11-13  Jim Meyering  <jim@meyering.net>
63291
63292         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63293
63294 2004-11-12  Simon Josefsson  <jas@extundo.com>
63295
63296         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63297         small doc fix is still pending.
63298
63299 2004-11-11  Simon Josefsson  <jas@extundo.com>
63300
63301         * modules/strtok_r: New file.
63302
63303         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63304         strtok_r.
63305
63306 2004-11-11  Simon Josefsson  <jas@extundo.com>
63307
63308         * m4/strtok_r.m4: New file.
63309
63310         * m4/getopt.m4: Replace opterr.
63311
63312 2004-11-11  Simon Josefsson  <jas@extundo.com>
63313
63314         * lib/strtok_r.h, strtok_r.c: New file.
63315
63316 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63317
63318         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63319         of replacing opterr, getopt, etc.  This should handle the
63320         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63321
63322 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63323
63324         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63325         we can stop lying to compilers about the constness of argv when we
63326         are compiled outside glibc.
63327         (getopt, getopt_long, getopt_long_only): Use it.
63328         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63329         _getopt_internal, getopt): Likewise.
63330         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63331         _getopt_long_only_r): Likewise.
63332         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63333         _getopt_long_r, _getopt_long_only_r): Likewise.
63334
63335         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63336         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63337         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63338         the other external symbols.
63339         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
63340         declaration, since the above renaming now works around collisions.
63341
63342 2004-11-11  Jim Meyering  <jim@meyering.net>
63343
63344         * lib/linebreak.c: Remove trailing blanks.
63345         * lib/alloca_.h: Likewise.
63346         * lib/acosl.c: Likewise.
63347         * lib/euidaccess.c: Likewise.
63348         * lib/allocsa.h: Likewise.
63349
63350 2004-11-10  Simon Josefsson  <jas@extundo.com>
63351
63352         * m4/getaddrinfo.m4: New file.
63353
63354 2004-11-10  Simon Josefsson  <jas@extundo.com>
63355
63356         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
63357
63358 2004-11-10  Simon Josefsson  <jas@extundo.com>
63359
63360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63361         getaddrinfo.
63362
63363         * modules/getaddrinfo: New file.
63364
63365 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63366
63367         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63368
63369 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         * lib/mktime.c (SHR): New macro, which is a portable
63372         substitute for >> that should work even on Crays.
63373         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63374         Problem reported by Mark D. Baushke in
63375         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63376         * lib/getdate.y (SHR): Likewise.
63377         (tm_diff): Use it.
63378         * lib/strftime.c (SHR): Likewise.
63379         (tm_diff): Use it.
63380         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63381         quote_these_too, so that right shifts are well defined.  All uses
63382         changed.
63383
63384 2004-11-10  Jim Meyering  <jim@meyering.net>
63385
63386         Ensure that no close failure goes unreported.
63387         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63388         return early when it seems there's nothing to flush.
63389         Don't include __fpending.h.
63390
63391 2004-11-10  Jim Meyering  <jim@meyering.net>
63392
63393         * modules/closeout (Depends-on): Remove fpending.
63394
63395 2004-11-10  Jim Meyering  <jim@meyering.net>
63396
63397         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63398
63399 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63400
63401         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63402         gl_FUNC_STRFTIME.
63403         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63404         and AC_REQUIRE when possible, to avoid duplicate checks.
63405         Check for <wchar.h>.
63406
63407 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63408
63409         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63410
63411 2004-11-09  Bruno Haible  <bruno@clisp.org>
63412
63413         * m4/sockpfaf.m4: New file.
63414
63415 2004-11-05  Bruno Haible  <bruno@clisp.org>
63416
63417         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
63418         Reported by Mark D. Baushke <mdb@cvshome.org>.
63419
63420 2004-11-04  Bruno Haible  <bruno@clisp.org>
63421
63422         2004-09-11  Bruno Haible  <bruno@clisp.org>
63423                 * allocsa.valgrind: New file.
63424         2004-02-06  Bruno Haible  <bruno@clisp.org>
63425                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
63426                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
63427                 Reported by Christopher Seip <chris.seip@hp.com>.
63428
63429 2004-11-04  Bruno Haible  <bruno@clisp.org>
63430
63431         * modules/allocsa (Files): Add lib/allocsa.valgrind.
63432         (Makefile.am): Distribute it.
63433
63434 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63435
63436         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
63437         with errno == ERANGE if the buffer is too small.
63438         Problem reported by Mark D. Baushke.
63439
63440 2004-11-03  Albert Chin  <china@thewrittenword.com>
63441             Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
63444         equivalent, substitute $ac_type for equivalent type rather than
63445         blindly using uint32_t *always* which won't work if uint32_t is not
63446         available.  Define _UINT32_T to work around typedef of uint32_t if
63447         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
63448         2.5.1.
63449
63450 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63451
63452         * m4/jm-macros.m4: Sync from coreutils.
63453         (gl_MACROS): Check for mbrlen, for pathchk.
63454         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
63455
63456 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63457
63458         * lib/xreadlink.c (MAXSIZE): New macro.
63459         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
63460         size does not exceed MAXSIZE.  Avoid cast.
63461         As suggested by Mark D. Baushke in
63462         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
63463         if readlink fails with buffer size just under MAXSIZE, try again
63464         with MAXSIZE.
63465
63466 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63467
63468         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
63469
63470 2004-11-02  Derek R. Price  <derek@ximbiot.com>
63471         and  Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
63474         (get_date): Overparenthesize to avoid GCC warning.
63475
63476 2004-11-02  Bruno Haible  <bruno@clisp.org>
63477
63478         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
63479         returns void.
63480
63481 2004-11-02  Bruno Haible  <bruno@clisp.org>
63482
63483         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
63484         function returns void.
63485
63486 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63487
63488         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
63489         fflush_unlocked, flockfile, funlockfile, funlockfile,
63490         fputs_unlocked, putc_unlocked.
63491
63492 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63493
63494         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63495         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
63496         already declared.
63497
63498 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63499
63500         * modules/getdate (Files): Add doc/getdate.texi.
63501         (Depends-on): Add setenv, xalloc.
63502
63503 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         * lib/getdate.y: Add support for TZ="foo" within a date string.
63506         Fix some bugs near time_t boundaries.  Reject dates with
63507         out-of-range components, e.g., "Sept 31".
63508         Include <stdlib.h>, "setenv.h", "xalloc.h".
63509         (ISDIGIT_LOCALE): Remove; unused.
63510         Note that the TZ and time functions used here are not reentrant.
63511         (mktime_ok, get_tz): New functions.
63512         (TZBUFSIZE): New constant.
63513         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
63514         This requires that we sometimes generate our own TZ="XXX..." setting.
63515
63516 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63517
63518         * doc/getdate.texi: New file, from coreutils with modifications for
63519         the new TZ parsing.
63520
63521 2004-10-27  Derek R. Price  <derek@ximbiot.com>
63522
63523         * lib/mktime.c (not_equal_tm): Remove redundant check.
63524
63525 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63526
63527         * modules/regex (lib_SOURCES): Add regex.c.
63528         Reported by James Youngman in
63529         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
63530
63531 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * lib/getdate.y: Use Bison 1.875 features, and some minor
63534         code cleanups.  This change does not affect semantics.
63535         Don't include <stdlib.h>; no longer needed.
63536         Don't include unlocked-io.h; only the "#if TEST" code uses
63537         stdio, and performance isn't crucial there.
63538         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
63539         Bison 1.875 features as described below.
63540         All uses of "PC." replaced by "pc->".
63541         (YYSTYPE): Add a forward declaration.
63542         (yylex, yyerror): Use full prototypes in forward decls.
63543         Use "%pure-parser" rather than obsolescent "%pure_parser".
63544         Use %parse-param and %lex-param instead of obsolescent
63545         YYPARSE_PARAM and YYLEX_PARAM.
63546         (meridian_table, month_and_day_table, time_units_table,
63547         relative_time_table, time_zone_table, military_table,
63548         lookup_zone, lookup_word, get_date):
63549         Use NULL instead of 0 where appropriate.
63550         (to_hour): Avoid abort (), to avoid a dependency on
63551         stdlib.h.
63552         (yyerror, yylex): Now accepts parser_control * arg.
63553         (main) [TEST]: Use '\0' rather than 0 for char.
63554
63555 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63556
63557         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
63558
63559 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63560
63561         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
63562         It's now the caller's responsibility to handle the case where
63563         !HAVE_GETPAGESIZE && !defined getpagesize.
63564
63565         * lib/mktime.c (leapyear): Arg is long int, not int.
63566
63567 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
63568
63569         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
63570
63571 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63572
63573         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
63574         missing.  Problem reported by James Youngman.
63575
63576 2004-10-16  Simon Josefsson  <jas@extundo.com>
63577
63578         * gnulib-tool: Fix comments.  Fix parse problem.
63579         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
63580
63581 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
63584         implementation of getopt_long.  Problem reported by Alexander Taler in:
63585         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
63586
63587 2004-10-15  Bruno Haible  <bruno@clisp.org>
63588
63589         * gnulib-tool: Untabify. Initialize supplied_libname.
63590         (func_usage): More homogenous output.
63591         (func_modules_transitive_closure, func_modules_to_filelist,
63592         func_emit_lib_Makefile_am): New functions.
63593         (func_import): New function, extracted from big case statement. Use
63594         func_get_license, func_modules_transitive_closure,
63595         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
63596         opt_lgpl. Don't use test -a, as it's not portable.
63597         (func_create_testdir): Use func_modules_transitive_closure,
63598         func_modules_to_filelist, func_emit_lib_Makefile_am.
63599
63600 2004-10-15  Bruno Haible  <bruno@clisp.org>
63601
63602         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
63603
63604 2004-10-15  Bruno Haible  <bruno@clisp.org>
63605
63606         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
63607         the portions belonging to each module.
63608         Suggested by Derek Robert Price <derek@ximbiot.com>.
63609
63610 2004-10-12  Simon Josefsson  <jas@extundo.com>
63611
63612         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63613         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
63614         to real functions.
63615
63616 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63617
63618         * modules/vsnprintf: New file.
63619
63620 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63621
63622         * m4/vsnprintf.m4: New file.
63623
63624 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63625
63626         * lib/vsnprintf.h: New file.
63627         * lib/vsnprintf.c: New file.
63628
63629 2004-10-11  Bruno Haible  <bruno@clisp.org>
63630
63631         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
63632         vsnprintf.
63633
63634 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63635
63636         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
63637
63638 2004-10-07  Bruno Haible  <bruno@clisp.org>
63639
63640         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
63641         fits into the provided buffer.
63642
63643 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63644
63645         * lib/diacrit.c, diacrit.h: Add GPL notice.
63646
63647         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
63648         notice.
63649         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
63650         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
63651         This avoids a potential constant-folding bug.
63652
63653 2004-10-05  Bruno Haible  <bruno@clisp.org>
63654
63655         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
63656         for the declaration of strsep.
63657
63658 2004-10-05  Bruno Haible  <bruno@clisp.org>
63659
63660         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
63661
63662 2004-10-04  Simon Josefsson  <jas@extundo.com>
63663
63664         * modules/memmem: New file.
63665         * tests/test-memmem.c: New file.
63666         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
63667
63668 2004-10-04  Simon Josefsson  <jas@extundo.com>
63669
63670         * m4/memmem.m4: New file.
63671
63672 2004-10-04  Simon Josefsson  <jas@extundo.com>
63673
63674         * lib/memmem.h: New file.
63675         * lib/memmem.c: New file, taken from glibc.
63676
63677 2004-10-04  Simon Josefsson  <jas@extundo.com>
63678
63679         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
63680         '#ifdef USE_UNLOCKED_IO'.
63681
63682 2004-10-04  Simon Josefsson  <jas@extundo.com>
63683
63684         * config/srclist.txt: Add memmem from glibc.
63685
63686 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63687
63688         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
63689
63690         * modules/argmatch, modules/argp, modules/closeout, modules/error,
63691         modules/exclude, modules/getdate, modules/getline,
63692         modules/getndelim2, modules/getpass, modules/getpass-gnu,
63693         modules/getusershell, modules/linebuffer, modules/md5,
63694         modules/mountlist, modules/posixtm, modules/readtokens,
63695         modules/readutmp, modules/regex, modules/sha1,
63696         modules/version-etc, modules/yesno:
63697         Remove dependency on unlocked-io.
63698
63699 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63700
63701         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
63702
63703         * m4/unlocked-io.m4: Add copyright notice.
63704         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
63705
63706 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
63709         * lib/xmalloc.c (xmemdup): Likewise.
63710         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
63711         XFREE): Remove these long-obsolescent macros.
63712         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
63713         * lib/xstrdup.c: Remove.
63714
63715         * lib/regex.c (re_comp): Cast gettext return value to char *,
63716         Problem reported by Martin Neitzel via Mark D. Baushke.
63717
63718 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63719
63720         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
63721         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
63722         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
63723         regex.c, sha1.c, version-etc.c, yesno.c:
63724         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
63725         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
63726         the includer's responsibility.
63727
63728         Sync from coreutils.
63729
63730         * lib/modechange.c (mode_compile): Don't decrement a pointer that
63731         points to the start of a string, as the C Standard says the
63732         resulting behavior is undefined.
63733
63734         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
63735         simple -> simple_backups, numbered_existing ->
63736         numbered_existing_backups, numbered -> numbered_backups
63737         to avoid shadowing problems.  All uses changed.
63738         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
63739         * lib/backupfile.c (check_extension, numbered_backup):
63740         Rename locals to avoid shadowing 'basename'.
63741         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
63742         once.
63743
63744         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
63745         * lib/.cvsignore: Add getopt.h.
63746
63747 2004-10-04  Bruno Haible  <bruno@clisp.org>
63748
63749         * modules/README: New file.
63750         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
63751         not a module.
63752
63753 2004-10-02  Jim Meyering  <jim@meyering.net>
63754
63755         * lib/dirfd.h, getpagesize.h: Add copyright notice.
63756
63757 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63758
63759         * modules/strsep: New file.
63760
63761 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63762
63763         * m4/strsep.m4: New file.
63764
63765 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63766
63767         * lib/strsep.h: New file.
63768         * lib/strsep.c: New file.
63769
63770 2004-10-01  Simon Josefsson  <jas@extundo.com>
63771
63772         * lib/snprintf.c (snprintf): Handle size==0.
63773
63774 2004-10-01  Simon Josefsson  <jas@extundo.com>
63775             Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
63778         (snprintf): Declare 'args'.
63779
63780 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
63781
63782         * lib/snprintf.c: Remove comments as to why each header is needed.
63783
63784 2004-10-01  Bruno Haible  <bruno@clisp.org>
63785
63786         * MODULES.html.sh: Add strsep.
63787
63788 2004-09-30  Simon Josefsson  <jas@extundo.com>
63789
63790         * modules/snprintf: New file.
63791
63792 2004-09-30  Simon Josefsson  <jas@extundo.com>
63793
63794         * m4/snprintf.m4: New file.
63795
63796 2004-09-30  Simon Josefsson  <jas@extundo.com>
63797
63798         * lib/snprintf.h, lib/snprintf.c: New files.
63799
63800 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63801
63802         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
63803         (hol_entry_help): Never translate an empty string.
63804         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
63805         * lib/argp.h (OPTION_NO_TRANS): New option.
63806
63807 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63808
63809         * modules/argp (Maintainer): Replace Simon Josefsson
63810         by Sergey Poznyakoff.
63811
63812 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63813
63814         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
63815         changes merged back into glibc.
63816
63817 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63818
63819         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
63820
63821 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63822
63823         * lib/xvasprintf.c: Include xalloc.h.
63824         (xvasprintf): Use xalloc_die, not xmalloc_die.
63825
63826 2004-09-29  Bruno Haible  <bruno@clisp.org>
63827
63828         * modules/alloca-opt: New file, derived from modules/alloca.
63829         * modules/allocsa: Depend on alloca-opt instead of alloca.
63830         * modules/setenv: Likewise.
63831         * modules/vasnprintf: Likewise.
63832         * MODULES.html.sh: Add alloca-opt.
63833
63834 2004-09-28  Simon Josefsson  <jas@extundo.com>
63835
63836         * gnulib-tool: New parameter --lgpl, to asseert that modules are
63837         LGPL, and to replace license template from GPL to LGPL.
63838
63839 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63840
63841         * modules/dummy: Change license to LGPL.
63842
63843 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63844
63845         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
63846
63847 2004-09-24  Simon Josefsson  <jas@extundo.com>
63848
63849         * modules/minmax (License): Change from GPL to LGPL.
63850
63851 2004-09-23  Simon Josefsson  <jas@extundo.com>
63852
63853         * gnulib-tool (--import): Typo.
63854
63855 2004-09-23  Simon Josefsson  <jas@extundo.com>
63856
63857         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
63858
63859 2004-09-22  Bruno Haible  <bruno@clisp.org>
63860
63861         * modules/*: Add 'License' field.
63862         * gnulib-tool: Accept --extract-license option.
63863         (func_get_license): New function.
63864
63865 2004-09-21  Bruno Haible  <bruno@clisp.org>
63866
63867         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
63868         Reported by Simon Josefsson.
63869
63870 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63871
63872         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
63873         gl_AC_TYPE_LONG_LONG.
63874
63875 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63876
63877         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
63878
63879 2004-09-18  Simon Josefsson  <jas@extundo.com>
63880         and  Paul Eggert  <eggert@cs.ucla.edu>
63881
63882         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
63883         calls with autoreconf.  Define GL_LIB.
63884
63885 2004-09-14  Karl Berry  <karl@gnu.org>
63886
63887         * config/srclist.txt: unsync setenv.c, sigh.
63888
63889 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63890
63891         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
63892         Problem reported by Bruno Haible in:
63893         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
63894
63895 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63896
63897         * config/srclist.txt: Comment out argp-pvh.c.
63898
63899 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
63900
63901         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
63902         in case some system header has #define'd it.  Problem reported by
63903         Soeren D. Schulze in
63904         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
63905
63906 2004-09-09  Karl Berry  <karl@gnu.org>
63907
63908         * regex.[ch]: delete from the root.  These were supposed to be
63909                 synced with emacs cvs, but this has not happened for about
63910                 a year, and anyway nothing else uses emacs regex.[ch].
63911                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
63912                 lib/regex[.ch] is untouched.
63913
63914 2004-09-09  Bruno Haible  <bruno@clisp.org>
63915
63916         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
63917
63918 2004-09-09  Bruno Haible  <bruno@clisp.org>
63919
63920         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
63921         modifications.
63922         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
63923
63924 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63925
63926         * modules/xvasprintf: New file.
63927         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
63928
63929 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63930
63931         * lib/xvasprintf.h: New file.
63932         * lib/xvasprintf.c: New file.
63933         * lib/xasprintf.c: New file.
63934
63935 2004-09-08  Bruno Haible  <bruno@clisp.org>
63936
63937         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
63938
63939 2004-09-08  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
63942         length is > INT_MAX.
63943         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
63944         more.
63945
63946 2004-09-08  Bruno Haible  <bruno@clisp.org>
63947
63948         * lib/stdint_.h: New file, taken from GNU clisp.
63949
63950 2004-09-08  Bruno Haible  <bruno@clisp.org>
63951             Oskar Liljeblad  <oskar@osk.mine.nu>
63952
63953         * modules/stdint: New file.
63954         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
63955
63956 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63957
63958         Import from coreutils.
63959         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
63960         strings on unbounded length.  alloca's performance benefits aren't
63961         that important here.
63962         (V_STRDUP): Remove.
63963         (parse_with_separator): New function, with most of the internals
63964         of the old parse_user_spec.  Allow user to omit both user and group,
63965         for compatibility with FreeBSD.
63966         Clone only the user name, not the entire spec.
63967         Do not set *uid, *gid unless entirely successful.
63968         Avoid memory leak in some failing cases.
63969         Fix regression for USER.GROUP reported by Dmitry V. Levin in
63970         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
63971         (parse_user_spec): Rewrite to use parse_with_separator.
63972
63973 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63974
63975         * modules/userspec: Don't depend on alloca.
63976
63977 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63978
63979         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
63980
63981 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63982
63983         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
63984         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
63985         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
63986
63987 2004-08-16  Simon Josefsson  <jas@extundo.com>
63988
63989         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
63990         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
63991         Add --dry-run for --import.
63992         Let user provided command line parameters override configure.ac
63993         settings.
63994
63995 2004-08-12  Simon Josefsson  <jas@extundo.com>
63996
63997         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
63998         as discussed with Paul Eggert in threads rooted at
63999         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64000         and
64001         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64002         Before, the test was empty, and relied on ELIDE_CODE in source
64003         code.)
64004         (gl_PREREQ_GETOPT): New macro.
64005         (gl_GETOPT): Use them.
64006
64007 2004-08-12  Simon Josefsson  <jas@extundo.com>
64008
64009         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64010         * lib/getopt_.h: Renamed from getopt.h.
64011
64012 2004-08-12  Simon Josefsson  <jas@extundo.com>
64013
64014         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64015         Change default library name from libfoo to libgnu.
64016         Now, if you have a configure.ac that says:
64017                 gl_SOURCE_BASE(gl)
64018                 gl_M4_BASE(gl/m4)
64019                 gl_MODULES(error getopt etcetera)
64020                 gl_INIT
64021         you can import all you need by running:
64022                 ../gnulib/gnulib-tool --import
64023
64024         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64025         (Makefile.am): Rewrite, use logic from argz.
64026         (Include): Use <getopt.h> instead of "getopt.h".
64027
64028 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64029
64030         * modules/argp (Files): Add m4/unlocked-io.m4.
64031         (Depends-on): Add extensions.
64032
64033 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64034
64035         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64036         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64037         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64038         Check for program_invocation_name, program_invocation_short_name,
64039         flockfile, funlockfile, features.h, _getopt_long_only_r.
64040
64041 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64042
64043         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64044         its complicated substitute.
64045         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64046         and program_invocation_name.
64047         (__argp_basename) [!_LIBC]: Remove; the only use was
64048         replaced by its body.
64049         (__argp_short_program_name): Change condition from
64050         !defined __argp_short_program_name to
64051         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64052         to match argp-namefrob.h.
64053         (__argp_failure): Don't assume strerror_r returns char *.
64054         * lib/argp-parse.c (N_): Define unconditionally.
64055         (argp_default_options): Fill out initializers with 0 to avoid
64056         gcc warnings.
64057
64058 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64061         getopt1.c.
64062
64063 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         Merge from coreutils.
64066
64067         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64068
64069         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64070         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64071
64072 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64073
64074         Merge from coreutils.
64075
64076         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64077         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64078         for Reliant Unix 5.43.
64079
64080         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64081         (union fooround): Use uintmax_t, not long int.
64082         The rest is a merge from libc:
64083         [defined _LIBC]: Include <shlib-compat.h>.
64084         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64085
64086         * lib/settime.c (settime): Recode to avoid warning with
64087         Sun Forte C 6U2.
64088
64089         * lib/strverscmp.c: Convert to UTF-8.
64090
64091 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64092
64093         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64094         m4/uintmax_t.m4.
64095
64096 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64097
64098         * modules/xalloc-die: New file.
64099         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64100
64101         * modules/md5 (Files): Add m4/uint32_t.m4.
64102         * modules/sha1: Renamed from modules/sha.
64103         (Files):
64104         Rename lib/sha.h to lib/sha1.h.
64105         Rename lib/sha.c to lib/sha1.c.
64106         Rename m4/sha.m4 to m4/sha1.m4.
64107         (lib_SOURCES): Likewise.
64108         (configure.ac): Rename gl_SHA to gl_SHA1.
64109         (Include): sha.h -> sha1.h.
64110
64111 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64112
64113         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64114         * m4/sha1.m4: Renamed from sha.m4.
64115         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64116
64117 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64118
64119         * lib/obstack.h (obstack_empty_p):
64120         Don't assume that chunk->contents is suitably aligned.
64121         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64122         Likewise. Problem reported by Benno in
64123         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64124
64125         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64126         readable.  This could be improved further but it'd take some work.
64127
64128 2004-08-08  Simon Josefsson  <jas@extundo.com>
64129
64130         * modules/xgethostname (Depends-on): Remove exit and error (not
64131         used).
64132
64133         * modules/getpass-gnu: Add getpass.h.
64134         (Depends-on): Add stdbool.
64135         * modules/getpass: Add getpass.h.
64136
64137 2004-08-08  Simon Josefsson  <jas@extundo.com>
64138
64139         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64140         Check getpass declaration.
64141
64142 2004-08-08  Simon Josefsson  <jas@extundo.com>
64143
64144         * lib/xgethostname.c: Don't include error.h (not used).
64145
64146         * lib/getpass.h: Add.
64147         * lib/getpass.c: Include getpass.h first.
64148
64149 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64150
64151         * lib/xalloc-die.c: New file.
64152         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64153         All uses removed.
64154         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64155         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64156         xalloc-die.c.
64157         (_, N_, xalloc_die): Move to xalloc-die.c.
64158         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64159         so that we needn't mess with xalloc_msg_memory_exhausted.
64160
64161         * lib/sha1.h: Renamed from sha.h.
64162         (SHA1_H): Renamed from _SHA_H.
64163         (sha1_ctx): Renamed from sha_ctx.
64164         (sha1_init_ctx): Renamed from sha_init_ctx.
64165         (sha1_process_block): Renamed from sha_process_block.
64166         (sha1_process_bytes): Renamed from sha_process_bytes.
64167         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64168         (sha1_read_ctx): Renamed from sha_read_ctx.
64169         (sha1_stream): Renamed from sha_stream.
64170         (sha1_buffer): Renamed from sha_buffer.
64171         * lib/sha1.c: Likewise; renamed from sha.c.
64172         Do not include <sys/types.h>.
64173         Include <stddef.h> rather than <stdlib.h>.
64174
64175 2004-08-08  Bruno Haible  <bruno@clisp.org>
64176
64177         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64178         FILESYSTEM_PREFIX_LEN.
64179         * lib/progreloc.c: Likewise.
64180         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64181
64182 2004-08-06  Simon Josefsson  <jas@extundo.com>
64183
64184         * modules/progname (Depends-on): Don't depend on stdbool.
64185
64186 2004-08-06  Simon Josefsson  <jas@extundo.com>
64187
64188         * modules/getsubopt: New file.
64189         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64190         getsubopt.
64191
64192 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64193
64194         More merge from coreutils.
64195
64196         * m4/utimens.m4, m4/utimecmp.m4: New files.
64197         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64198         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64199         prereq.m4, sha.m4: Import changes from coreutils.
64200
64201 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64202
64203         More merge from coreutils.
64204         * modules/raise, modules/readtokens0, modules/utimens:
64205         * modules/utimecmp, module/xnanosleep: New files.
64206         * modules/strftime: Add lib/strftime.h.
64207         Change include from <time.h> to "strftime.h".
64208         * modules/yesno: Add lib/yesno.h.
64209         * modules/backupfile: Remove lib/addext.c.
64210         * modules/euidaccess: Add stat-macros.h.
64211         * modules/canonicalize, modules/euidaccess,
64212         modules/filemode, modules/lchown, modules/makepath,
64213         modules/rmdir, modules/stat: Likewise.
64214
64215 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         Merge from tar.
64218         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64219         SIZE_MAX is a valid preprocessor constant.
64220         (__argp_basename): Change from "#ifndef _LIBC"
64221         to "#ifndef __argp_short_program_name", so that
64222         we don't compile these functions for tar.
64223
64224         More merges from coreutils.
64225         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64226         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64227         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64228         * lib/addext.c: Remove; no longer needed.
64229         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64230         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64231         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64232         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64233         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64234         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64235         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64236         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64237         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64238         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64239         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64240         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64241         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64242         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64243         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64244         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64245         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64246         Import changes from coreutils.
64247
64248 2004-08-05  Simon Josefsson  <jas@extundo.com>
64249
64250         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64251
64252 2004-08-05  Simon Josefsson  <jas@extundo.com>
64253
64254         * m4/getsubopt.m4: New file.
64255
64256 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         Merge from coreutils.
64259
64260         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64261         * m4/getcwd-path-max.m4: New files.
64262
64263         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64264         FILESYSTEM_PREFIX_LEN ->
64265         FILE_SYSTEM_PREFIX_LEN.
64266         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64267         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64268         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64269         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64270
64271         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64272         prerequisite modules now handle the DOS stuff.
64273         Don't check for unistd.h.
64274
64275 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64276
64277         Merge from coreutils.
64278
64279         * lib/.gdb-history: Remove; this doesn't belong here.
64280
64281         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64282         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64283         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64284         * lib/getcwd.c: New files.
64285
64286         * lib/dirname.h: Include <stdbool.h>.
64287         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64288         for consistency with POSIX terminology.  All uses changed.
64289         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64290         (strip_trailing_slashes): Use bool for booleans.
64291         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64292
64293         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64294         sometimes returns a positive errno value even when it succeeds.
64295         (print_errno_message) [!LIBC]: Fall back on strerror if
64296         __strerror_r fails.
64297
64298         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64299         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64300         (longest_relative_suffix): New function.
64301         (path_concat): Use it.  Assume first argument is not NULL.
64302         Port to DOS.  Omit redundant separators.
64303         Report an error instead of returning NULL.
64304         Use mempcpy instead of memcpy.
64305         (xpath_concat): Remove: not declared or used.
64306
64307         * lib/same.h: Include <stdbool.h>
64308         (same_name): Return bool, not int.
64309         * lib/same.c (same_name): Likewise.
64310         (errno): Don't declare; we assume C89 or better now.
64311
64312         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64313         if not already defined.
64314
64315         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64316         * lib/dup-safer.c (errno): Likewise.
64317
64318 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         Merge from coreutils.
64321         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64322         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64323         * modules/path-concat: Don't depend on strdup.
64324
64325 2004-08-03  Simon Josefsson  <jas@extundo.com>
64326
64327         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64328         * lib/progname.h: Don't include stdbool.h.
64329
64330 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64333         * MODULES.html.sh (func_all_modules): Remove fatal.
64334
64335 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64338
64339 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64340
64341         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
64342         working.
64343
64344 2004-08-02  Simon Josefsson  <jas@extundo.com>
64345
64346         * lib/getsubopt.h: New file, with comments from Bruno Haible.
64347         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
64348         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
64349
64350 2004-08-01  Simon Josefsson  <jas@extundo.com>
64351
64352         * lib/xgetdomainname.c: Include stdlib.h, for free().
64353
64354 2004-07-19  Bruno Haible  <bruno@clisp.org>
64355
64356         * MODULES.html.sh (func_all_modules): Add dummy.
64357
64358 2004-07-16  Simon Josefsson  <jas@extundo.com>
64359
64360         * modules/dummy: New file.
64361
64362 2004-07-16  Simon Josefsson  <jas@extundo.com>
64363
64364         * lib/dummy.c: New file.
64365
64366 2004-07-16  Bruno Haible  <bruno@clisp.org>
64367
64368         * lib/backupfile.h: Add extern "C" for C++.
64369         * lib/closeout.h: Likewise.
64370         * lib/copy-file.h: Likewise.
64371         * lib/findprog.h: Likewise.
64372         * lib/full-write.h: Likewise.
64373         * lib/pathname.h: Likewise.
64374         * lib/progname.h: Likewise.
64375         * lib/stpcpy.h: Likewise.
64376         * lib/stpncpy.h: Likewise.
64377         * lib/strcase.h: Likewise.
64378         * lib/strstr.h: Likewise.
64379         * lib/xalloc.h: Likewise.
64380
64381         * lib/mbswidth.h: Add extern "C" for C++.
64382         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64383
64384 2004-07-13  Robert Millan  <robertmh@gnu.org>
64385
64386         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64387
64388 2004-07-09  Simon Josefsson  <jas@extundo.com>
64389
64390         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64391         failed without this.)
64392
64393 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64394
64395         * modules/chown (Files): Add lib/fchown-stub.c, since
64396         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64397
64398 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64399
64400         * lib/fchown-stub.c: New file.
64401
64402 2004-06-24  Jim Meyering  <jim@meyering.net>
64403
64404         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64405
64406 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64407
64408         * modules/argz: Omit "#include".
64409
64410         * MODULES.html.sh (func_all_modules): Add calloc, to match
64411         2004-06-01 addition of calloc module.
64412
64413 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64414
64415         * m4/argz.m4: New file, which is autoupdated from libtool.
64416
64417 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
64420         libtool.
64421
64422 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64423
64424         * config/srclist-update: Don't insist on "USA." before the
64425         close-comment, as libtool omits the period and puts the */ on a
64426         separate line.
64427         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
64428         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
64429
64430 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
64431
64432         * modules/argz: New file.
64433         * MODULES.html.sh (func_all_modules): Add argz.
64434
64435 2004-06-12  Jim Meyering  <jim@meyering.net>
64436         and  Paul Eggert  <eggert@cs.ucla.edu>
64437
64438         * modules/hash (Files): Add lib/xalloc.h.
64439         * modules/pipe (Depends-on): Add wait-process.
64440         * modules/stat (Depends-on): Add xalloc.
64441         * modules/userspec (Files): Add lib/userspec.h.
64442         * modules/xstrto
64443
64444         Upgrade from gettext-0.13.
64445         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
64446         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
64447         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
64448
64449 2004-06-10  Jim Meyering  <jim@meyering.net>
64450
64451         * lib/calloc.c: New file.
64452
64453 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64454
64455         * lib/getdate.y (yylex): Allow space between sign and number.
64456         Problem reported by Dan Jacobson.
64457
64458 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64459
64460         Merge from coreutils CVS.
64461
64462         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
64463         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
64464         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
64465         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
64466         xstrtol.m4: Fix copyright date and/or serial number.
64467
64468         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
64469         See if we need an fchown replacement.
64470         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
64471         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
64472         and use the replacement function if we detect either defect.
64473
64474         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
64475         gl_UTIMECMP.
64476
64477 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64478         and  Jim Meyering  <jim@meyering.net>
64479
64480         Merge from coreutils CVS.
64481
64482         * lib/stat-macros.h: New file, with contents from file-type.h
64483         and coreutils' system.h.
64484         * lib/file-type.c: Include "stat-macros.h".
64485         * lib/file-type.h (file_type): Move all macro definitions to new file,
64486         stat-macros.h.
64487
64488         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
64489         Wrap old code with this conditional.
64490         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
64491         function that does not dereference symlinks.
64492         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
64493
64494         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
64495         dependency problems.
64496         (xreadlink): Accept new arg SIZE, for efficiency.
64497         All decls and uses changed.
64498         * lib/xreadlink.h: Include <stddef.h>, for size_t.
64499
64500         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
64501         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
64502
64503         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
64504         sysexits.h.
64505
64506 2004-06-01  Jim Meyering  <jim@meyering.net>
64507
64508         * m4/calloc.m4: New file.
64509
64510 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
64511
64512         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
64513         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
64514         Also, fix a typo in a diagnostic.
64515
64516 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64517
64518         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
64519         or AC_FUNC_REALLOC.
64520
64521 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64522
64523         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
64524         macros to be defined.
64525         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
64526         the allocator returns NULL because the requested size is zero.
64527
64528 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64529
64530         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
64531         var.  Add comment explaining why libc still defines it.  This
64532         merges the following patch from glibc:
64533         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
64534
64535 2004-05-20  Andreas Schwab  <schwab@suse.de>
64536
64537         * m4/free.m4: Replace free if it not known to work, not the other
64538         way round.
64539
64540 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64541
64542         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
64543         present in glibc since revision 1.1 of this file.
64544         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
64545         obstack_alignment_mask, obstack_alloc, obstack_base,
64546         obstack_blank, obstack_blank_fast, obstack_chunk_size,
64547         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
64548         obstack_grow0, obstack_init, obstack_int_grow,
64549         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
64550         obstack_next_free, obstack_object_size, obstack_ptr_grow,
64551         obstack_ptr_grow_fast, obstack_room): Remove declarations of
64552         nonexistent functions.
64553
64554 2004-05-18  Karl Berry  <karl@gnu.org>
64555
64556         * config/srclist.txt: break link for vasnprintf.c.
64557
64558 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64559
64560         Port obstack to the AS/400, where pointers are 16 bytes wide and
64561         you cannot cast an integer to a valid pointer.  This patch is
64562         currently waiting to be integrated into glibc; see
64563         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
64564
64565         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
64566         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
64567         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
64568         (struct obstack): temp member is now a union of a pointer and
64569         an integer, instead of an integer.  All integer uses changed.
64570         This does not affect the physical layout of struct obstack,
64571         except on hosts (like the AS/400) where the size or alignment of
64572         void * is greater than that of ptrdiff_t.
64573         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
64574         __STDC__)]: Store temporary in pointer member of union, not
64575         integer member.
64576         * lib/obstack.c: Include <stddef.h>, for offsetof.
64577         (struct fooalign): Remove; it doesn't need a name.
64578         (union fooround): Change double to long double, and add void *.
64579         (DEFAULT_ALIGNMENT): Use offsetof to compute.
64580         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
64581         not a macro.  Hence the values are always int; so remove all
64582         casts-to-int in uses.
64583
64584 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64585
64586         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
64587         we can get this patch merged into glibc.
64588
64589 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64590             Paul Eggert  <eggert@cs.ucla.edu>
64591
64592         * m4/argp: Depend on alloca.
64593
64594 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64595             Paul Eggert  <eggert@cs.ucla.edu>
64596
64597         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
64598         freecoding.
64599
64600 2004-05-17  Bruno Haible  <bruno@clisp.org>
64601
64602         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
64603         precision that consists of a '.' followed by an empty digit string.
64604         Patch by Tor Lillqvist <tml@iki.fi>.
64605
64606 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
64609         for backward compatibility with older code.  We need our own
64610         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
64611         it under some other name, and our alloca.h will define it.
64612
64613 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64614             Derek Price  <derek@ximbiot.com>
64615
64616         * lib/alloca.c: Include <alloca.h>, to get our interface.
64617         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
64618         include <alloca.h> first.  Use C89 prototype for alloca; this
64619         requires including <stddef.h> for size_t.  Use extern "C" if C++.
64620         Use #elif for simplicity, since we can assume C89 now.
64621         Don't try to source the system alloca.h since it will not be found
64622         and to prevent recursively including its replacement.
64623         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
64624         * lib/regex.c: Likewise.
64625
64626 2004-05-16  Derek Price  <derek@ximbiot.com>
64627             Paul Eggert  <eggert@cs.ucla.edu>
64628
64629         getline cleanup.  This changes the getndelim2 API: both order of
64630         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
64631         no delimiter).
64632
64633         * lib/getline.c: Don't include stddef.h or stdio.h, since our
64634         interface does that.
64635         (getline): Always use getdelim, so that we don't have two
64636         copies of this code.
64637         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
64638         if available.
64639         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
64640         (GETNDELIM2_MAXIMUM): New macro.
64641         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
64642         instead of the old practice of delim2==0.  All callers changed.
64643         Return -1 on overflow, instead of returning junk.
64644         Do not set *linesize unless allocation succeeds.
64645         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
64646         that we include sys/types.h.
64647         * lib/getnline.h: Likewise.
64648         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
64649         (getndelim2): Reorder arguments.
64650         * lib/getnline.c (getnline, getndelim):
64651         Don't discard the NMAX argument.
64652         (getnline): Invoke getndelim, to avoid code duplication.
64653         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
64654         of (size_t) -1 by callers of the getnline family.
64655
64656 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64657
64658         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
64659         Check for gettimeofday.
64660         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
64661         Check for settimeofday, stime.
64662
64663 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64664
64665         * lib/nanosleep.c (suspended): Change its type from int to
64666         sig_atomic_t volatile.
64667         (first_call): Make it private to rpl_nanosleep, and have it
64668         be zero initially as that's a bit faster.
64669         (my_usleep): Round up fractional times instead of truncating them,
64670         as this is the usual meaning for 'sleep'.
64671
64672         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
64673         doesn't work.
64674         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
64675         (ENOSYS): Define if not defined.
64676         (settime): Fall back on stime if it exists and settimeofday fails.
64677         But don't bother with fallbacks if a method fails with errno == EPERM.
64678
64679 2004-05-11  Jim Meyering  <jim@meyering.net>
64680
64681         Prior to this change, the save_cwd caller required read access to the
64682         current directory on most systems (ones with the fchdir function).
64683
64684         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
64685         fails, try write-only, and finally, resort to using xgetcwd.
64686
64687 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64688
64689         * lib/obstack.c, obstack.h: Import changes from libc.
64690
64691 2004-04-28  Bruno Haible  <bruno@clisp.org>
64692
64693         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
64694         also implicitly appends .exe to executables.
64695         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
64696         accepts Windows pathnames.
64697         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64698         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64699         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64700         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64701         Reported by Derek Robert Price <derek@ximbiot.com>.
64702
64703 2004-04-21  Karl Berry  <karl@gnu.org>
64704
64705         * config/srclist.txt (localcharset.c): break sync.
64706
64707 2004-04-20  Paul Eggert  <eggert@twinsun.com>
64708
64709         * m4/host-os.m4: Add a copyright notice.
64710
64711 2004-04-20  Jim Meyering  <jim@meyering.net>
64712
64713         Change UTILS_ to gl_ in AC_DEFINE'd names.
64714         Change utils_- and jm_-prefixed variables, too.
64715         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
64716         UTILS_FUNC_MKDIR_TRAILING_SLASH.
64717         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
64718
64719         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
64720         Don't emit trailing blanks.
64721         Also rename jm_-prefixed variables to have gl_ prefix.
64722
64723         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
64724         Also rename jm_-prefixed variables to have gl_ prefix.
64725
64726         * m4/jm-macros.m4: Reflect the renamings.
64727         * m4/prereq.m4: Likewise.
64728
64729 2004-04-20  Jim Meyering  <jim@meyering.net>
64730
64731         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
64732         memory.
64733
64734 2004-04-20  Jim Meyering  <jim@meyering.net>
64735             Bruno Haible  <bruno@clisp.org>
64736
64737         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
64738         memory when realloc fails.
64739
64740 2004-04-19  Jim Meyering  <jim@meyering.net>
64741
64742         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
64743         now that readutmp.c may call `free (0)'.
64744
64745 2004-04-19  Bruno Haible  <bruno@clisp.org>
64746
64747         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
64748         * m4/inttypes_h.m4: Likewise.
64749         * m4/stdint_h.m4: Likewise.
64750         * m4/intmax_t.m4: Likewise.
64751         * m4/uintmax_t.m4: Likewise.
64752
64753 2004-04-18  Jim Meyering  <jim@meyering.net>
64754
64755         * m4/prereq.m4: Don't forbid jm_ prefix.
64756
64757         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
64758         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
64759         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
64760         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
64761         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
64762         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
64763         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
64764         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
64765         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
64766         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
64767         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
64768         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
64769         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
64770         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
64771         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
64772         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
64773         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
64774         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
64775         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
64776
64777 2004-04-18  Jim Meyering  <jim@meyering.net>
64778
64779         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
64780         failure, don't leak memory and do call END_UTMP_ENT.
64781
64782 2004-04-16  Jim Meyering  <jim@meyering.net>
64783
64784         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
64785         coreutils' stat program.
64786         (gl_PREREQ): Don't require jm_PREREQ_STAT.
64787
64788 2004-04-11  Paul Eggert  <eggert@twinsun.com>
64789
64790         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
64791         C89.
64792         (CHAR_BIT): Remove, since we assume C89.
64793         Include <stdint.h> if available, as per current Autoconf CVS advice.
64794
64795 2004-03-31  Jim Meyering  <jim@meyering.net>
64796
64797         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
64798         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
64799         * m4/xalloc.m4: Likewise.
64800
64801 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64802
64803         Merge from coreutils.
64804
64805         * m4/inttostr.m4: New file.
64806         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
64807         Require AM_STDBOOL_H and gl_TIMESPEC instead.
64808         Require gl_CLOCK_TIME.
64809         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
64810
64811 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64812
64813         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
64814         not bool, to be more consistent with Unix conventions.
64815         Suggested by Bruno Haible.
64816
64817         Merge from coreutils.
64818
64819         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
64820         * lib/umaxtostr.c: New files.
64821
64822         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
64823         the usual <time.h> dance.
64824         (get_date): Change signature to support fractional time stamps.
64825         All callers changed.
64826         * lib/getdate.y: Include "getdate.h" first, as we can now
64827         assume C89 and don't need to worry about 'const'.
64828         Similarly, include "unlocked-io.h" near start, not in middle.
64829         Include <limits.h>.
64830         (textint.value): Use long int rather than int.
64831         (textint.digits): Use size_t rather than int.
64832         (BILLION, LOG10_BILLION): New constants.
64833         (parser_control): New member rel_ns.  Members day_ordinal,
64834         time_zone, month, day, hour, minutes, rel_year, rel_month,
64835         rel_day, rel_hour, rel_minutes, rel_seconds
64836         are now long int, not int.  Member seconds is now struct timespec,
64837         not int.  New member timespec_seen.  Members dates_seen, days_seen,
64838         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
64839         not int.
64840         (%union.intval): Now long int, not int.
64841         New member timespec.
64842         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
64843         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
64844         (spec): Now is a timespec or an item list.
64845         (timespec, items): New nonterminals.
64846         (time, rel, relunit, number, get_date):
64847         Add support for fractional seconds.
64848         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
64849         (gmtime, localtime, mktime): Remove decls; not needed with C89.
64850         (to_hour): First arg is now long int, not int.
64851         (to_year): Returns long int, not int.
64852         Don't treat year -70 like 70.
64853         (tm_diff): Returns long int, not int.
64854         (lookup_word): Use bool instead of int when appropriate.
64855         (yylex): Use size_t for count, not int.
64856         Detect overflow when parsing large integer constants.
64857         Add support for fractions.
64858         (get_date): Make pointers 'const' if possible.
64859         Use more-portable code to detect integer overflow.
64860         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
64861         Don't use ctime; it's not reliable if the year has >4 digits.
64862
64863         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
64864         This is for compatibility with BSD.
64865
64866         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
64867         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
64868         From coreutils' system.h.
64869
64870         * lib/userspec.c: Don't include "posixver.h".
64871         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
64872         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
64873         compatible extension.  Simplify code by removing a boolean int
64874         that was always nonzero if a string was nonnull.
64875
64876 2004-03-30  Jim Meyering  <jim@meyering.net>
64877
64878         Merge from coreutils.
64879
64880         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
64881         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
64882         on some systems one must include <grp.h> before it.
64883         Reported by Christian Krackowizer.
64884
64885 2004-03-30  Jim Meyering  <jim@meyering.net>
64886
64887         Merge from coreutils.
64888
64889         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
64890
64891         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
64892         an empty input stream.
64893
64894         * lib/readtokens.c: Include <stdbool.h>.
64895         (readtoken): Use `size_t' rather than int/long.
64896         All callers adjusted.
64897         Use `bool' rather than `int' where appropriate.
64898         Use memset rather than an explicit loop.
64899         Use x2nrealloc rather than xrealloc.
64900         Allow the use of `\0' as a delimiter.
64901         (readtokens): Likewise.
64902         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
64903
64904 2004-03-30  Jim Meyering  <jim@meyering.net>
64905
64906         * m4/realloc.m4: Remove file, since now it does no more than
64907         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
64908         the `configure.ac' section of module/realloc.
64909         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
64910
64911 2004-03-30  Bruno Haible  <bruno@clisp.org>
64912
64913         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
64914         nonnull.
64915
64916 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64917
64918         Merge changes to getloadavg.c from coreutils and Emacs.
64919
64920         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
64921         Define to an expression, not to the empty string.
64922         Include cloexec.h and xalloc.h.
64923         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
64924         Use set_cloexec_flag rather than rolling our own.
64925         * lib/cloexec.c, lib/cloexec.h: New files.
64926
64927 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64928
64929         * m4/cloexec.m4: New file.
64930
64931 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64932
64933         * lib/getopt.h: Sync with libc CVS.
64934
64935 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64936             Bruno Haible  <bruno@clisp.org>
64937
64938         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
64939         mbswidth.
64940
64941 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64942             Bruno Haible  <bruno@clisp.org>
64943
64944         * lib/mbswidth.h: Include <wchar.h> only if
64945         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
64946         <wchar.h>.
64947         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
64948
64949 2004-03-09  Paul Eggert  <eggert@twinsun.com>
64950
64951         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
64952         Sync with libc CVS.
64953         * lib/getopt_int.h: New file, also synced from libc.
64954
64955 2004-03-09  Paul Eggert  <eggert@twinsun.com>
64956
64957         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
64958         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
64959         Bring back getopt.c, getopt.h, getopt1.c.
64960
64961 2004-03-07  Paul Eggert  <eggert@twinsun.com>
64962
64963         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
64964         All uses changed.  Check for sa_sigaction member; this fixes
64965         a bug first reported by Jason Andrade in
64966         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
64967
64968 2004-03-07  Paul Eggert  <eggert@twinsun.com>
64969
64970         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
64971         '#if' expressions.  Unlike the code it replaces, it does not
64972         depend on (defined _SC_PAGESIZE).  However, it does depend on
64973         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
64974         first reported by Jason Andrade in
64975         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
64976
64977 2004-02-25  Simon Josefsson  <jas@extundo.com>
64978
64979         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
64980
64981 2004-02-25  Simon Josefsson  <jas@extundo.com>
64982
64983         * lib/strdup.h: New file.
64984         * lib/strdup.c: Include it.
64985         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
64986         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
64987
64988 2004-02-23  Karl Berry  <karl@gnu.org>
64989
64990         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
64991         (from fencepost.gnu.org:/gd/gnuorg).
64992
64993 2004-02-23  Karl Berry  <karl@gnu.org>
64994
64995         * config/srclistvars.sh (GNUORG) [karl]: redefine.
64996         * config/srclist.txt: add maintain/standards documents.
64997
64998 2004-02-18  Bruno Haible  <bruno@clisp.org>
64999
65000         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65001         Reported by Derek Robert Price <derek@ximbiot.com>.
65002
65003 2004-02-16  Karl Berry  <karl@gnu.org>
65004
65005         * config/mkinstalldirs, install-sh: update from automake.
65006
65007 2004-02-06  Karl Berry  <karl@gnu.org>
65008
65009         * m4/po.m4: update from gettext 0.14.1.
65010
65011 2004-02-06  Karl Berry  <karl@gnu.org>
65012
65013         * lib/config.charset: update from gettext 0.14.1.
65014
65015 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65016
65017         Add comments and code, prompted by suggestions from Bruno Haible
65018         for sh-quote.
65019         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65020         describing the enum quoting_style values.
65021         * lib/quotearg.c (quotearg_alloc): New function.
65022         (quotearg_buffer_restyled): Treat lone { and } as special.
65023         Treat = as special.  Work around bug with older shells
65024         that "see" a '\' that is really the 2nd byte of a multibyte char.
65025         Quote empty string with shell_quoting_style.
65026
65027 2004-02-03  Bruno Haible  <bruno@clisp.org>
65028
65029         * m4/pipe.m4: New file, from GNU gettext.
65030
65031 2004-02-03  Bruno Haible  <bruno@clisp.org>
65032
65033         * lib/pipe.h: New file, from GNU gettext.
65034         * lib/pipe.c: New file, from GNU gettext.
65035
65036 2004-01-27  Bruno Haible  <bruno@clisp.org>
65037
65038         * m4/execute.m4: New file, from GNU gettext.
65039
65040 2004-01-27  Bruno Haible  <bruno@clisp.org>
65041
65042         * lib/execute.h: New file, from GNU gettext.
65043         * lib/execute.c: New file, from GNU gettext.
65044         * lib/w32spawn.h: New file, from GNU gettext.
65045
65046 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65047
65048         Merge from diffutils.
65049
65050         * lib/file-type.c (file_type): Add typed memory objects.
65051         * lib/file-type.h (S_TYPEISTMO): New macro.
65052
65053         * lib/c-stack.h (c_stack_action): Remove argv argument.
65054         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65055         (die): Don't calculate message unless segv_action returns.
65056         (get_stack_location, min_address_from_argv, max_address_from_argv,
65057         volatile stack_base, volatile_stack_size): Remove.
65058         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65059         that every segmentation violation is a stack overflow.  (Ouch!)
65060         See Debian bug 136249 (still outstanding) for more info about why
65061         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65062
65063 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65064
65065         Exit-status fix from coreutils.
65066
65067         Use exit_failure consistently in place of EXIT_FAILURE,
65068         so that program exit statuses are consistent on failure.
65069
65070         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65071         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65072         * lib/argmatch.h: Comment fix to match the above.
65073         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65074         Now a macro referring to exit_failure, instead of a separate
65075         variable.  Include "exitfail.h" to get it.
65076         * lib/xstrtol.h: Include "exitfail.h".
65077         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65078
65079         * lib/long-options.c (parse_long_options): Use prototype
65080         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65081         for clarity.
65082
65083 2004-01-21  Jim Meyering  <jim@meyering.net>
65084
65085         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65086         so as not to conflict with a different-sized __mktime_internal
65087         function in GNU libc.
65088         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65089         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65090
65091 2004-01-20  Karl Berry  <karl@gnu.org>
65092
65093         * config/config.guess: update from config.
65094
65095         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65096
65097 2004-01-20  Bruno Haible  <bruno@clisp.org>
65098
65099         Safer stack allocation.
65100         * lib/setenv.c: Include allocsa.h.
65101         (alloca): Remove fallback definition.
65102         (freea): Remove macro.
65103         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65104         instead of freea.
65105
65106 2004-01-20  Bruno Haible  <bruno@clisp.org>
65107
65108         * m4/eealloc.m4: New file, from GNU gettext.
65109
65110 2004-01-20  Bruno Haible  <bruno@clisp.org>
65111
65112         * m4/allocsa.m4: New file, from GNU gettext.
65113
65114 2004-01-20  Bruno Haible  <bruno@clisp.org>
65115
65116         * lib/xallocsa.h: New file, from GNU gettext.
65117         * lib/xallocsa.c: New file, from GNU gettext.
65118
65119 2004-01-20  Bruno Haible  <bruno@clisp.org>
65120
65121         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65122
65123 2004-01-20  Bruno Haible  <bruno@clisp.org>
65124
65125         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65126         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65127         specially.
65128
65129 2004-01-20  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65132         patch.
65133
65134 2004-01-20  Bruno Haible  <bruno@clisp.org>
65135
65136         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65137
65138 2004-01-20  Bruno Haible  <bruno@clisp.org>
65139
65140         * lib/eealloc.h: New file.
65141
65142 2004-01-20  Bruno Haible  <bruno@clisp.org>
65143
65144         * lib/binary-io.h: Avoid warnings on Cygwin.
65145
65146 2004-01-20  Bruno Haible  <bruno@clisp.org>
65147
65148         * lib/allocsa.h: New file, from GNU gettext.
65149         * lib/allocsa.c: New file, from GNU gettext.
65150
65151 2004-01-18  Karl Berry  <karl@gnu.org>
65152
65153         * doc/gpl.texi, doc/lgpl.texi: new files.
65154
65155 2004-01-18  Karl Berry  <karl@gnu.org>
65156
65157         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65158         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65159
65160 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65161
65162         Merge from coreutils.
65163
65164         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65165         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65166         (gl_DEFAULT_POSIX2_VERSION): Move
65167         the documentation from 'configure' into 'config.hin',
65168         so that 'configure --help' isn't burdened by it and
65169         we don't have to worry about its formatting there.
65170         Reword the documentation so that it's more succinct
65171         and can be run together into a single paragraph.
65172         * m4/same.m4 (gl_SAME): Check for pathconf.
65173
65174 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65175
65176         Merge from coreutils.
65177
65178         * lib/posixver.c: Include posixver.h.
65179
65180         * lib/same.c: Include <stdbool.h>, <limits.h>.
65181         (_POSIX_NAME_MAX): Define if not defined.
65182         (MIN): New macro.
65183         (same_name): If file names are silently truncated, report
65184         that the file names are the same if they are the same after
65185         the silent truncation.
65186
65187         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65188         conversion function.
65189         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65190         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65191         longer needed.
65192
65193 2004-01-15  Jim Meyering  <jim@meyering.net>
65194
65195         Merge from coreutils.
65196
65197         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65198         if no library is required.
65199         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65200         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65201         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65202         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65203         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65204         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65205         value, $ac_cv_search_crypt, if it's "none required".
65206         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65207         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65208         not gl_FUNC_GETLOADAVG.
65209         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65210         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65211
65212 2004-01-15  Jim Meyering  <jim@meyering.net>
65213
65214         Merge from coreutils.
65215
65216         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65217         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65218         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65219
65220         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65221         optional configure-time default.
65222
65223         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65224
65225         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65226
65227 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65228
65229         Merge from coreutils.
65230
65231         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65232         value, $ac_cv_search_nanosleep, if it's "none required".
65233
65234 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65235
65236         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65237         with like-named macro in fnmatch.c.
65238         (EXT): Use an internal constant instead.
65239
65240         Merge fnmatch patches from glibc.
65241         * lib/fnmatch.c (mbsinit): Remove define.
65242         Add libc_hidden_ver (__fnmatch, fnmatch).
65243         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65244         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65245
65246 2004-01-14  Karl Berry  <karl@gnu.org>
65247
65248         * config/install-sh: update from automake.
65249
65250 2004-01-13  Karl Berry  <karl@gnu.org>
65251
65252         * config/install-sh: update from automake.
65253
65254 2004-01-09  Karl Berry  <karl@gnu.org>
65255
65256         * config/install-sh: update from automake.
65257
65258 2004-01-05  Karl Berry  <karl@gnu.org>
65259
65260         * config/config.{sub,guess}: update from config.
65261
65262 2003-12-31  Karl Berry  <karl@gnu.org>
65263
65264         * config/depcomp: update from automake.
65265
65266 2003-12-14  Karl Berry  <karl@gnu.org>
65267
65268         * lib/config.charset: update from gettext-runtime.
65269
65270 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65271
65272         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65273         Bug reported by Alfred M. Szmidt.
65274
65275 2003-12-03  Bruno Haible  <bruno@clisp.org>
65276
65277         * m4/gettext.m4: Upgrade from gettext-0.13.
65278         * m4/po.m4: Upgrade from gettext-0.13.
65279         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65280         * m4/intmax.m4: New file, from gettext-0.13.
65281         * m4/printf-posix.m4: New file, from gettext-0.13.
65282
65283 2003-11-29  Karl Berry  <karl@gnu.org>
65284
65285         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65286
65287 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65288             Bruno Haible  <bruno@clisp.org>
65289
65290         * lib/printf-parse.h: Don't include sys/types.h.
65291         (ARG_NONE): New macro.
65292         (char_directive): Change type of *arg_index fields to size_t.
65293         * lib/printf-parse.c: Don't include sys/types.h.
65294         (SSIZE_MAX): Remove macro.
65295         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65296         Remove unnecessary overflow check.
65297         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65298         fields.
65299
65300 2003-11-25  Bruno Haible  <bruno@clisp.org>
65301
65302         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65303
65304 2003-11-25  Bruno Haible  <bruno@clisp.org>
65305
65306         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65307         gt_TYPE_SSIZE_T.
65308
65309 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65310
65311         * modules/alloca: Remove dependency on xalloc.
65312
65313 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65314
65315         * lib/alloca.c: Remove dependency on xalloc module.
65316         (xalloc_die): Remove.
65317         (memory_full) [!defined emacs]: New macro.
65318         [!defined emacs]: Don't include xalloc.h.
65319         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65320         address arithmetic overflows.  Change datatypes a bit to avoid
65321         unnecessary casts.
65322
65323 2003-11-22  Jim Meyering  <jim@meyering.net>
65324
65325         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65326         s/size/size_t/.
65327
65328 2003-11-21  Karl Berry  <karl@gnu.org>
65329
65330         * config/config.{sub,guess}: update from config.
65331
65332 2003-11-18  Karl Berry  <karl@gnu.org>
65333
65334         * config/config.{sub,guess}: update from config.
65335
65336         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65337
65338 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65339
65340         * README: Mention that S+T cannot overflow if S is the size of
65341         an existing object and T is sufficiently small.
65342
65343 2003-11-17  Jim Meyering  <jim@meyering.net>
65344
65345         On systems without utime and without a utimes function capable of
65346         dealing with a NULL struct utimbuf* argument, this utime replacement
65347         could -- in unusual circumstances -- leak a file descriptor.
65348         * lib/utime.c: Include <unistd.h> and <errno.h>.
65349         (utime_null): Be sure to close `fd' and to preserve errno.
65350         Reported by Geoff Collyer via Arnold Robbins.
65351
65352 2003-11-17  Bruno Haible  <bruno@clisp.org>
65353
65354         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
65355         (Depends-on): Add xsize.
65356
65357 2003-11-17  Bruno Haible  <bruno@clisp.org>
65358
65359         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
65360
65361 2003-11-17  Bruno Haible  <bruno@clisp.org>
65362
65363         * lib/vasnprintf.c (alloca): Remove fallback definition.
65364         (freea): Remove definition.
65365         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65366         Reported by Paul Eggert.
65367
65368 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65369             Bruno Haible  <bruno@clisp.org>
65370
65371         Protect against address arithmetic overflow.
65372         * lib/printf-args.h: Include stddef.h.
65373         (arguments): Change type of field 'count' to size_t.
65374         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65375         'unsigned int' where appropriate.
65376         * lib/printf-parse.h: Include sys/types.h.
65377         (char_directive): Change type of *arg_index fields to ssize_t.
65378         (char_directives): Change type of fields 'count', max_*_length to
65379         size_t.
65380         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65381         (SSIZE_MAX): Define fallback value.
65382         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65383         instead of 'int' where appropriate. Check a_allocated, d_allocated
65384         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65385         * lib/vasnprintf.c: Include xsize.h.
65386         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65387         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65388         overflow. Avoid wraparound when converting a width or precision from
65389         decimal to binary.
65390
65391 2003-11-16  Bruno Haible  <bruno@clisp.org>
65392
65393         Update from GNU gettext.
65394         * lib/printf-parse.c: Generalize to it can be compiled for wide
65395         strings.
65396         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65397         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65398         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65399         SNPRINTF): New macros.
65400         Don't include <alloca.h> if the file is used inside libintl.
65401         (local_wcslen): New function, for Solaris 2.5.1.
65402         (VASNPRINTF): Use it instead of wcslen.
65403
65404 2003-11-16  Bruno Haible  <bruno@clisp.org>
65405
65406         * lib/xsize.h (xmax): New function.
65407         (xsum, xsum3, xsum4): Declare as "pure" functions.
65408
65409 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65410
65411         * modules/xalloc (Files): Undo latest change, since xalloc.h
65412         no longer needs SIZE_MAX or PTRDIFF_MAX.
65413
65414 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65415
65416         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
65417         gl_PTRDIFF_MAX.
65418
65419 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65420
65421         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
65422         "return", to pacify some unknown compiler.  Problem reported
65423         by Joerg Schilling.
65424
65425 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65426
65427         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
65428         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
65429         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
65430         heuristic is just as accurate as far as we know, and it removes a
65431         dependency on size_max.m4 and ptrdiff_max.m4.
65432
65433 2003-11-11  Bruno Haible  <bruno@clisp.org>
65434
65435         * modules/xsize (Files): Add m4/size_max.m4.
65436         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
65437
65438 2003-11-11  Bruno Haible  <bruno@clisp.org>
65439
65440         * m4/size_max.m4: New file.
65441         * m4/ptrdiff_max.m4: New file.
65442         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
65443         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
65444         (gl_XALLOC): Invoke it.
65445
65446 2003-11-11  Bruno Haible  <bruno@clisp.org>
65447
65448         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
65449         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
65450         defined.
65451
65452 2003-11-10  Paul Eggert  <eggert@twinsun.com>
65453
65454         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
65455         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
65456         rejected some allocations of exactly SIZE_MAX - 2 bytes.
65457         From Bruno Haible.
65458         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
65459         not (size_t) -1, since it's defined here.
65460
65461 2003-11-09  Karl Berry  <karl@gnu.org>
65462
65463         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
65464
65465 2003-11-06  Paul Eggert  <eggert@twinsun.com>
65466
65467         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
65468         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
65469         Reject sizes of exactly SIZE_MAX bytes.
65470         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
65471         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
65472
65473 2003-11-05  Bruno Haible  <bruno@clisp.org>
65474
65475         * lib/xsize.h: Include limits.h, to avoid a possible collision with
65476         SIZE_MAX defined in <limits.h> on Solaris.
65477
65478 2003-11-04  Jim Meyering  <jim@meyering.net>
65479
65480         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
65481         variable names, rather than @VAR@.
65482         * modules/poll: Likewise.
65483
65484 2003-11-04  Bruno Haible  <bruno@clisp.org>
65485
65486         * modules/xsize: New file.
65487         * modules/linebreak: Depend on xsize.
65488         * MODULES.html.sh (func_all_modules): Add xsize.
65489
65490 2003-11-04  Bruno Haible  <bruno@clisp.org>
65491
65492         * m4/xsize.m4: New file.
65493
65494 2003-11-04  Bruno Haible  <bruno@clisp.org>
65495
65496         * lib/xsize.h: New file.
65497         * lib/linebreak.c: Include xsize.h.
65498         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
65499         argument for overflow.
65500         Suggested by Paul Eggert.
65501
65502 2003-11-03  Karl Berry  <karl@gnu.org>
65503
65504         * config/config.{guess,sub}: update from config.
65505
65506 2003-11-03  Jim Meyering  <jim@meyering.net>
65507
65508         * modules/userspec (lib_SOURCES): Add userspec.h.
65509         (Include): Add "userspec.h".
65510         Improve description.
65511
65512 2003-11-03  Jim Meyering  <jim@meyering.net>
65513
65514         * lib/userspec.c: Include "userspec.h".
65515         * lib/userspec.h: New file.
65516
65517 2003-11-03  Bruno Haible  <bruno@clisp.org>
65518
65519         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
65520
65521 2003-11-03  Bruno Haible  <bruno@clisp.org>
65522
65523         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
65524         available, to avoid (extremely rare) race condition.
65525         Suggested by Paul Eggert.
65526
65527 2003-11-02  Karl Berry  <karl@gnu.org>
65528
65529         * config/srclist.txt (vasprintf.c): sync broken, sigh.
65530
65531 2003-10-31  Paul Eggert  <eggert@twinsun.com>
65532
65533         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
65534         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
65535         (read_filesystem_list): Set and use me_type_malloced.
65536         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
65537         whatever the type happens to be), for brevity and consistency.
65538         Check for size calculation overflow on Alphas running OSF/1.
65539
65540 2003-10-31  Jim Meyering  <jim@meyering.net>
65541
65542         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
65543
65544         * lib/linebuffer.c: Include <string.h> for declaration of memset.
65545
65546 2003-10-30  Paul Eggert  <eggert@twinsun.com>
65547             Bruno Haible  <bruno@clisp.org>
65548
65549         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
65550         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
65551
65552 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
65555         netbsd*-gnu*.  Suggested by Robert Millan.
65556
65557 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65558
65559         * modules/group-member: Depend on stdbool.
65560
65561 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65562
65563         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
65564
65565 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65566
65567         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
65568         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
65569         after the 'gnu' in these cases.  This fixes some bugs in the
65570         previous change, and is based on suggestions by Robert Millan.
65571
65572 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65573
65574         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
65575         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
65576         no longer needed.
65577         * lib/quotearg.c (quotearg_n_options): Use it.
65578         * lib/group-member.c: Include <stdbool.h>.
65579         (free_group_info): Arg is now const *; don't free arg.
65580         (get_group_info): Now returns bool and accepts struct group_info *,
65581         rather than returning a malloc'ed struct group_info *.
65582         All uses changed.  Check for overflow in internal size calculation.
65583
65584         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
65585         rather than xmalloc/xrealloc.
65586         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
65587         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
65588         conformance bug: the old code used a pointer after freeing the
65589         storage that it addressed.
65590         * lib/hash.c (hash_initialize): Simplify the code by using
65591         xalloc_oversized rather than doing it by hand.
65592         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
65593         the buffer preserved.  Use free and xmalloc instead.
65594         * lib/quotearg.c (quotearg_n_options): Likewise.
65595         Use a simpler test for size overflow.  Don't use xalloc_oversized
65596         because unsigned int might be wider than size_t (!); this suggests
65597         that we should switch from unsigned int to size_t for slot numbers.
65598
65599 2003-10-28  Paul Eggert  <eggert@twinsun.com>
65600
65601         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
65602         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
65603         NetBSD kernels.  Requested by Richard Stallman.
65604
65605 2003-10-27  Paul Eggert  <eggert@twinsun.com>
65606
65607         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
65608         to allocate the returned structure.  Do not allocate a subarray,
65609         as x2nrealloc will do that.
65610         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
65611         instead of xnrealloc.
65612         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
65613
65614 2003-10-27  Bruno Haible  <bruno@clisp.org>
65615
65616         * lib/stdbool_.h: Better support for BeOS.
65617
65618 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65619
65620         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
65621         now uses inline.
65622
65623 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65624
65625         * lib/xalloc.h (xalloc_oversized): New static inline function, for
65626         callers that want to do their own size-overflow checking.  Include
65627         <stdbool.h>, since xalloc_oversized returns bool.
65628         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
65629         to use xalloc_oversized.
65630
65631         Add two functions x2realloc, x2nrealloc, for programs that grow
65632         arrays dynamically by doubling their sizes.
65633         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
65634         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
65635         New functions.
65636
65637         Port to C99 semantics for 'inline' of external functions.
65638         Bug reported by Bruno Haible.
65639         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
65640         with the old contents of xnmalloc.
65641         (xnmalloc, xmalloc): Use it.
65642         (xnrealloc_inline): New static inline function,
65643         with the old contents of xnrealloc.
65644         (xnrealloc, xrealloc): Use it.
65645
65646         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
65647         that.
65648
65649 2003-10-26  Karl Berry  <karl@gnu.org>
65650
65651         * config/srclist.txt (COPYING.DOC): no longer available from
65652         /gd/gnuorg; don't know where the ultimate source is.
65653
65654 2003-10-25  Paul Eggert  <eggert@twinsun.com>
65655
65656         Fix several address-calculation bugs in the hash modules,
65657         plus some minor code cleanup.
65658
65659         * lib/hash.h: Include <stdbool.h>, for bool.
65660         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
65661         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
65662         hash_get_n_entries, hash_get_max_bucket_length,
65663         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
65664         hash_rehash): Use size_t rather than unsigned.
65665         * lib/hash.c (struct hash_table, hash_get_n_buckets,
65666         hash_get_n_buckets_used, hash_get_n_entries,
65667         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
65668         hash_get_entries, hash_do_for_each, hash_string, is_prime,
65669         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
65670         Likewise.
65671         (SIZE_MAX): Define if not defined.
65672         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
65673         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
65674         hash_print):
65675         Use const * when possible.
65676         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
65677         (check_tuning): Fix bug: if tuning parameters were very close to
65678         0 or 1, rounding errors could have caused subscript violations.
65679         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
65680         (hash_initialize): Add 'fail:' label
65681         to free table and return NULL, and use it to simplify code.
65682         Use calloc rather than clearing the storage ourself.
65683         (hash_initialize, hash_rehash): Check for arithmetic overflow in
65684         buffer size calculations.
65685         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
65686         Include <stddef.h>, for size_t.
65687         * lib/hash-pjw.c (hash_pjw): Likewise.
65688         Switch to method described by Bruno Haible.
65689         Include <limits.h>, for CHAR_BIT.
65690         (SIZE_BITS): New macro.
65691
65692 2003-10-23  Paul Eggert  <eggert@twinsun.com>
65693
65694         * m4/getline.m4 (AM_FUNC_GETLINE):
65695         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
65696         hosts.  Problem reported by Derek Robert Price in
65697         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
65698         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
65699         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
65700
65701 2003-10-21  Paul Eggert  <eggert@twinsun.com>
65702
65703         * lib/getndelim2.c (getndelim2): When size calculation overflows,
65704         ceiling the allocation at NMAX bytes rather than silently
65705         discarding input bytes before NMAX is reached.  This makes
65706         a difference only if NMAX exceeds SIZE_MAX / 2.
65707
65708         * lib/obstack.c: Merge from glibc.
65709         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
65710         Add libc_hidden_def (_obstack_newchunk).
65711         (_obstack_free) [! defined _LIBC]: Remove.
65712         [defined _LIBC]: Make a strong alias from obstack_free, rather than
65713         a clone of the function body.
65714         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
65715         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
65716
65717         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
65718         glibc.
65719         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
65720         arg to memcpy.
65721
65722         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
65723         (obstack_ptr_grow_fast, obstack_int_grow_fast):
65724         Don't use lvalue casts, as GCC plans to remove support for them
65725         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
65726         was also present in the non-GCC version, indicating that this
65727         code had always been buggy and had never been widely used.
65728         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
65729         Use the fast variant of each macro, rather than copying the
65730         definiens of the fast variant; that way, we'll be more likely to
65731         catch future bugs in the fast variants.
65732
65733 2003-10-20  Bruno Haible  <bruno@clisp.org>
65734
65735         * modules/wait-process: New file.
65736         * MODULES.html.sh (func_all_modules): Add wait-process.
65737
65738 2003-10-20  Bruno Haible  <bruno@clisp.org>
65739
65740         * m4/wait-process.m4: New file.
65741
65742 2003-10-20  Bruno Haible  <bruno@clisp.org>
65743
65744         * lib/wait-process.h: New file, from GNU gettext.
65745         * lib/wait-process.c: New file, from GNU gettext.
65746
65747 2003-10-19  Jim Meyering  <jim@meyering.net>
65748
65749         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
65750         HPUX 10.20.
65751
65752 2003-10-18  Karl Berry  <karl@gnu.org>
65753
65754         * config/config.guess: update from config.
65755
65756 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65757
65758         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
65759         (getgroups): First arg is int, not size_t.
65760         Don't let 'free' mangle errno.
65761
65762 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65763
65764         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
65765
65766 2003-10-16  Karl Berry  <karl@gnu.org>
65767
65768         * config/config.{guess,sub}: update from config.
65769
65770 2003-10-16  Jim Meyering  <jim@meyering.net>
65771
65772         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
65773         memcpy.
65774
65775 2003-10-15  Paul Eggert  <eggert@twinsun.com>
65776
65777         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
65778         (SIZE_MAX): Remove.
65779         (new_exclude, add_exclude_file): Initial size no longer needs to
65780         be a power of 2.
65781         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
65782         our own address arithmetic overflow checking.
65783
65784         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
65785         (fnmatch): Do not alloca more than 2000 wide characters;
65786         instead, use malloc for large buffers.
65787         Check for address arithmetic overflow, and return -1
65788         with errno set to ENOMEM in that case.
65789         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
65790         (NEW_PATTERN): Do not alloca more than 8000 bytes;
65791         instead, return -1.  Check for address arithmetic overflow.
65792
65793 2003-10-14  Paul Eggert  <eggert@twinsun.com>
65794
65795         Handle invalid suffixes and overflow independently, so that
65796         callers can treat them independently as needed.  Fix some bugs in
65797         suffix handling, e.g., "100k@" was not diagnosed as an invalid
65798         suffix for a human-readable blocksize.  The major caller-visible
65799         change is the addition of a new
65800         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
65801         that both overflow and suffix chars were found.
65802
65803         * lib/human.c (humblock): Don't check separately for invalid suffix
65804         char; that is xstrtoumax's job (now that its bug is fixed).
65805         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
65806         INTMAX_MAX]: New macros.
65807         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
65808         TYPE_MAXIMUM): New macros.
65809         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
65810         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
65811         if overflow occurs, as it's what __strtol does and it's more useful
65812         in practice.
65813         (__xstrtol): If __strtol reports some error other than ERANGE,
65814         reflect it to the caller as LONGINT_INVALID.  If it reports
65815         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
65816         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
65817         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
65818         value.
65819         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
65820         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
65821         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
65822         [defined UINTMAX_MAX]: New macros.
65823
65824 2003-10-14  Bruno Haible  <bruno@clisp.org>
65825
65826         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
65827
65828 2003-10-14  Bruno Haible  <bruno@clisp.org>
65829
65830         * m4/sig_atomic_t: New file, from GNU gettext.
65831         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
65832
65833 2003-10-14  Bruno Haible  <bruno@clisp.org>
65834
65835         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
65836         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
65837         Also use volatile where needed.
65838
65839 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65840
65841         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
65842         Change maintainer from Bruno Haible to 'all'.
65843
65844 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65845
65846         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
65847
65848 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65849
65850         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
65851         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
65852         and define in terms of the other primitives.
65853         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
65854         (SIZE_MAX): Define if not already defined.
65855         (array_size_overflow): New function.
65856         (xalloc_die): Abort instead of exiting if 'error' returns.
65857         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
65858         (xmalloc, xrealloc): Use them.
65859         (xcalloc): Check for address arithmetic overflow.
65860         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
65861         a bit faster than strcpy.
65862
65863 2003-10-10  Simon Josefsson  <jas@extundo.com>
65864
65865         * modules/argp (Depends-on): Add restrict and strcase.
65866
65867 2003-10-10  Simon Josefsson  <jas@extundo.com>
65868
65869         * m4/argp.m4: Add AC_C_INLINE.
65870
65871 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65872
65873         Merge getpass from libc, plus a few fixes.
65874
65875         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
65876         Include <stdbool.h>.
65877         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
65878         __fsetlocking to empty.
65879         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
65880         do include <bits/libc-lock.h>.
65881         Do not include <fcntl.h>; not needed.
65882         [_LIBC]: Include <wchar.h>.
65883         (NOTCANCEL_MODE): New macro.
65884         (flockfile, funlockfile) [_LIBC]: New macros.
65885         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
65886         [!_LIBC]: New macros.
65887         (call_fclose): New function.
65888         (getpass): Use it.  Save tty stream separately; this simplifies the
65889         code and makes it more reliable if stdin happens to equal stdout.
65890         Invoke __fsetlocking on tty.
65891         Handle thread cancellation if needed.
65892         Namespace cleanup (use __tcgetattr, __getline).
65893         Use bool for Booleans.
65894         [USE_IN_LIBIO]: Handle wide streams.
65895         [!_LIBC]: Unconditionally do the fseek, since we don't know what
65896         stream might go where.
65897
65898         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
65899         doesn't have to include <stdio.h> before us.
65900         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
65901         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
65902         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
65903         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
65904         if not declared, so that we can use getpass.c code from libc without
65905         rewriting it.
65906         (flockfile, ftrylockfile, funlockfile): New macros.
65907
65908 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65909
65910         * modules/getpass: Depend on stdbool.
65911
65912 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65913
65914         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
65915
65916 2003-10-07  Karl Berry  <karl@gnu.org>
65917
65918         * config/config.{guess,sub}: update from config.
65919
65920 2003-10-06  Jim Meyering  <jim@meyering.net>
65921             Bruno Haible  <bruno@clisp.org>
65922
65923         This lets translators provide better translations for the
65924         "Written by ..." part of --version output.
65925         * lib/version-etc.h: Include stdarg.h.
65926         (version_etc_copyright): Declare as readonly.
65927         (version_etc): Make this function variadic with a NULL-terminated list
65928         of author name strings.
65929         (version_etc_va): New declaration.
65930         * lib/version-etc.c: Include stdarg.h, stdlib.h.
65931         (version_etc_copyright): Declare as readonly.
65932         (version_etc_va): New function. Provide a different translatable string
65933         for each possible number of authors < 10. Abbreviate when there are 10
65934         authors or more.
65935         (version_etc): Make this function variadic. Call version_etc_va.
65936         Suggestion from Gary V. Vaughan.
65937
65938         * lib/long-options.h (parse_long_options): Change prototype: the
65939         authors string is moved to the end and becomes variadic.
65940         * lib/long-options.c: Include stdarg.h.
65941         (parse_long_options): Make this function variadic, too.
65942         Call version_etc_va, not version_etc.
65943
65944 2003-10-06  Bruno Haible  <bruno@clisp.org>
65945
65946         * modules/version-etc-2: Remove file.
65947         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
65948
65949 2003-10-06  Bruno Haible  <bruno@clisp.org>
65950
65951         * modules/fatal-signal: New file.
65952         * MODULES.html.sh (func_all_modules): Add fatal-signal.
65953
65954 2003-10-06  Bruno Haible  <bruno@clisp.org>
65955
65956         * m4/fatal-signal.m4: New file.
65957         * m4/signalblocking.m4: New file, from GNU gettext.
65958
65959 2003-10-06  Bruno Haible  <bruno@clisp.org>
65960
65961         * lib/version-etc-2.h: Remove file.
65962         * lib/version-etc-2.c: Remove file.
65963
65964 2003-10-06  Bruno Haible  <bruno@clisp.org>
65965
65966         * lib/fatal-signal.h: New file, from GNU gettext.
65967         * lib/fatal-signal.c: New file, from GNU gettext.
65968
65969 2003-10-05  Paul Eggert  <eggert@twinsun.com>
65970
65971         * README: Rework advice for preventing empty .o files.
65972         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
65973         not <sys/types.h>.
65974
65975 2003-10-04  Karl Berry  <karl@gnu.org>
65976
65977         * lib/argp*: update from libc.
65978
65979 2003-10-04  Karl Berry  <karl@gnu.org>
65980
65981         * config/config.{guess,sub}: update from config.
65982
65983 2003-10-02  Bruno Haible  <bruno@clisp.org>
65984
65985         * modules/lchown (Include): Add lchown.h.
65986         * modules/time_r (Include): Use "..." syntax.
65987         * modules/xgetdomainname (Include): Add xgetdomainname.h.
65988
65989 2003-10-01  Simon Josefsson  <jas@extundo.com>
65990
65991         * MODULES.html.sh (func_all_modules): Move gethostname from section
65992         'based on' to section 'lacking' POSIX:2001.
65993
65994 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
65995
65996         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
65997         to output mode on the same stream.
65998
65999 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66000
66001         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66002         Fix arg typo in previous patch.
66003
66004 2003-09-28  Jim Meyering  <jim@meyering.net>
66005
66006         * lib/error.c: Correct cpp indentation.
66007
66008 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66009
66010         * modules/free: New file.
66011
66012 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66013
66014         * m4/free.m4: New file.
66015
66016 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66017
66018         * lib/minmax.h (MIN, MAX)
66019         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66020         Omit the special code that used __typeof__, since we worry that
66021         it could be more trouble than it's worth.  See:
66022         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66023         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66024
66025         * lib/free.c: New file.
66026
66027 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66028
66029         Trivial fixes to Makefile.am parts of module listings.
66030         * modules/strstr: Append strstr.h to lib_SOURCES.
66031         * modules/strcase: Likewise, for strcase.h.
66032
66033 2003-09-27  Karl Berry  <karl@gnu.org>
66034
66035         * config/mkinstalldirs: update from automake.
66036
66037 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66038
66039         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66040         (error_tail): Do not loop, reallocating temporary buffer, since
66041         the output cannot contain more wide characters than the input
66042         contains bytes, the size must be big enough already.  This avoids
66043         one potential size overflow calculation.  Check for size overflow
66044         when calculating temporary buffer size.  Free temporary buffer
66045         when done, if it was allocated with malloc; this plugs a memory
66046         leak.  Remove casts from void * to pointers, that are no longer
66047         needed now that we're assuming C89 or better.
66048
66049         Merge error changes from glibc.
66050
66051         * lib/error.c, error.h: Update copyright notice header to match glibc.
66052         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66053         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66054         Disable cancellation while printing error.
66055         * lib/error.h: Prepend __ to parameter names.
66056
66057 2003-09-26  Jim Meyering  <jim@meyering.net>
66058
66059         * lib/error.c (error_tail): Move some declarations
66060         into inner scope where the local variables are used.
66061
66062 2003-09-26  Bruno Haible  <bruno@clisp.org>
66063
66064         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66065         stpncpy().
66066         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66067
66068 2003-09-26  Bruno Haible  <bruno@clisp.org>
66069
66070         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66071         (stpncpy): Define as alias for gnu_stpncpy.
66072         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66073
66074 2003-09-25  Simon Josefsson  <jas@extundo.com>
66075
66076         * lib/xgetdomainname.h: New file.
66077         * lib/xgetdomainname.c: New file.
66078
66079 2003-09-25  Simon Josefsson  <jas@extundo.com>
66080             Bruno Haible  <bruno@clisp.org>
66081
66082         * modules/getdomainname: New file.
66083         * modules/xgetdomainname: New file.
66084         * MODULES.html.sh (func_all_modules): Add getdomainname,
66085         xgetdomainname.
66086
66087 2003-09-25  Simon Josefsson  <jas@extundo.com>
66088             Bruno Haible  <bruno@clisp.org>
66089
66090         * m4/getdomainname.m4: New file.
66091
66092 2003-09-25  Simon Josefsson  <jas@extundo.com>
66093             Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/getdomainname.h: New file.
66096         * lib/getdomainname.c: New file.
66097
66098 2003-09-25  Karl Berry  <karl@gnu.org>
66099
66100         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66101
66102 2003-09-25  Karl Berry  <karl@gnu.org>
66103
66104         * config/install-sh: update from automake.
66105
66106 2003-09-25  Bruno Haible  <bruno@clisp.org>
66107
66108         * modules/version-etc-2: New file, from modules/version-etc with
66109         modifications.
66110         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66111
66112 2003-09-25  Bruno Haible  <bruno@clisp.org>
66113
66114         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66115         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66116
66117 2003-09-24  Simon Josefsson  <jas@extundo.com>
66118
66119         * modules/xgethostname: Add xgethostname.h.
66120
66121 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66122
66123         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66124         the buffer associated with the argument.  Bug reported by
66125         Simon Josefsson.
66126
66127 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66128
66129         * README: Document assumptions that 'int' is at least 32 bits
66130         wide, that integer arithmetic is 2's complement without overflow,
66131         that there are no holes in integer values, that adding sizes of
66132         two nonoverlapping objects can't overflow, and that all-bits-zero
66133         yields scalar zero.  Fix spelling and capitalization typos.
66134
66135 2003-09-19  Karl Berry  <karl@gnu.org>
66136
66137         * lib/argp.h: update from libc.
66138
66139 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66140
66141         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66142         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66143         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66144
66145 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66146
66147         * gnulib-tool: Use "test -h", not "test -L", for portability
66148         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66149         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66150         (sed_extract_prog): Issue s commands one-by-one, rather than
66151         using \| in one s command.
66152
66153 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66154
66155         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66156         input error, instead of returning NULL the next time we are called
66157         (and therefore losing track of errno).
66158
66159 2003-09-16  Bruno Haible  <bruno@clisp.org>
66160
66161         * gnulib-tool (func_create_testdir): Warn about duplicated
66162         dependencies.
66163
66164 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66165
66166         * modules/argmatch, modules/fatal, modules/obstack,
66167         modules/xalloc, modules/xgethostname: Sort dependencies by
66168         importance, not alphabetically.
66169
66170 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66171
66172         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66173         fails, so that the caller gets the proper errno.
66174
66175         * lib/readutmp.c (read_utmp): Likewise.
66176         Check for fstat error.  Close stream and free storage
66177         when failing.
66178
66179 2003-09-14  Karl Berry  <karl@gnu.org>
66180
66181         * config/srclist.txt (strdup.c): disable for c89 changes.
66182
66183 2003-09-14  Jim Meyering  <jim@meyering.net>
66184
66185         * lib/getloadavg.c: Correct cpp indentation.
66186         * lib/strdup.c: Likewise.
66187         * lib/vasnprintf.c: Likewise.
66188
66189 2003-09-14  Bruno Haible  <bruno@clisp.org>
66190
66191         * modules/fwriteerror: New file.
66192         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66193
66194 2003-09-14  Bruno Haible  <bruno@clisp.org>
66195
66196         * lib/fwriteerror.h: New file.
66197         * lib/fwriteerror.c: New file.
66198
66199 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66200
66201         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66202         modules/xgethostname, modules/xalloc: Depend on exit.
66203
66204 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66205
66206         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66207
66208         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66209         and AC_MINIX, too, so that their extensions are available.
66210
66211         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66212         This macro has been superseded by gl_BACKUPFILE.
66213
66214         More patches to assume C89 or better.
66215
66216         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66217
66218         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66219         unconditionally.
66220         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66221         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66222         Include <string.h>, <stdlib.h> unconditionally.
66223         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66224         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66225         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66226         headers or for string.h.
66227         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66228         or strtoul.
66229
66230         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66231         headers.
66232         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66233         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66234         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66235         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66236         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66237         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66238         memcpy, memset.
66239         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66240         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66241         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66242         strtol.
66243         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66244         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66246         strtoul.
66247
66248 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66249
66250         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66251         * lib/obstack.c [!defined _LIBC]: Likewise.
66252         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66253         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66254         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66255
66256         More changes to assume C89 or better.
66257
66258         * lib/error.c (error_tail): Assume vprintf.
66259
66260         * lib/argmatch.c (getenv): Remove decl.
66261         * lib/progreloc.c (get_full_program_name): Define via prototype.
66262         * lib/setenv.c (clearenv): Likewise.
66263         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66264         needed.
66265         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66266         (malloc, memcpy): Remove decls.
66267         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66268         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66269         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66270         (memcpy): Remove macro.
66271         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66272         (__P): Remove.  All uses removed.
66273         (PTR): Remove.  All uses changed to void *.
66274         (CHAR_BIT, NULL): Remove.
66275         (spaces, zeros, memset_space, memset_zero)
66276         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66277         Remove.
66278         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66279         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66280         Define with prototype.
66281         Remove now-unnecessary prototype decl.
66282         (extra_args_spec): Assume ANSI C.  All uses changed.
66283         (extra_args_spec_iso): Remove.
66284         (my_strftime, emacs_strftimeu): Define via prototype.
66285         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66286         unconditionally.
66287         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66288         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66289         (strtoul, strtol): Remove decls.
66290         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66291         LONG_MAX): Remove.
66292         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66293         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66294         (LOCALE_PARAM_PROTO): New macro.
66295         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66296         (INTERNAL (strtol), strtol): Define with a prototype.
66297         (PARAMS): Remove.  All uses removed.
66298         * lib/tempname.c: Include <string.h> unconditionally.
66299         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66300         * lib/xgethostname.c (main): Define with a prototype.
66301         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66302         Include <stdlib.h> unconditionally.
66303         (calloc, malloc, realloc, free): Remove decls.
66304         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66305         Include <stdlib.h> unconditionally.  Sort include file names.
66306         (strtod): Remove.
66307         (xstrtod): Define with a prototype.
66308         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66309         (strtol, strtoul): Remove decls.
66310
66311 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66312
66313         More patches to assume C89 or better.
66314         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66315         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66316         string.h, memchr, STDC_HEADERS.
66317
66318 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66319
66320         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66321         Include <stdlib.h>, <string.h> unconditionally.
66322         Remove now-unnecessary cast to char *.
66323         * lib/strnlen.c: Include <string.h> unconditionally.
66324         * lib/yesno.c (yesno): Define with a prototype.
66325
66326 2003-09-11  Bruno Haible  <bruno@clisp.org>
66327
66328         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66329
66330 2003-09-10  Jim Meyering  <jim@meyering.net>
66331
66332         * lib/error.c: Correct indentation of cpp directives.
66333
66334 2003-09-10  Bruno Haible  <bruno@clisp.org>
66335
66336         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66337         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66338         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66339         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
66340         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
66341         <stdlib.h> and <string.h> checks.
66342         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
66343         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
66344
66345 2003-09-10  Bruno Haible  <bruno@clisp.org>
66346
66347         * lib/strcspn.c: Include <string.h> unconditionally.
66348         * lib/strpbrk.c: Include <string.h> unconditionally.
66349         * lib/strstr.c: Include <string.h> unconditionally.
66350         * lib/unicodeio.c: Include <string.h> unconditionally.
66351         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
66352         * lib/unsetenv.c: Likewise.
66353         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
66354         * lib/yesno.c: Include <stdlib.h> unconditionally.
66355         (rpmatch): Add prototype.
66356
66357 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66358
66359         More patches to assume C89 or better.
66360         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
66361         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
66362         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
66363         or for string.h.
66364         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
66365         stdlib.h.
66366         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66367         C headers.
66368         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66369         string.h.
66370         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66371         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66372         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66373         or for string.h.
66374         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66375         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66376         C headers.
66377         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66378         memcpy.
66379         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66380         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66381         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66382         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66383         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66384         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66385         string.h, free.
66386         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66387         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66388         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66389         C headers, or for string.h.
66390         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66391         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66392         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66393         headers, memory.h, stdlib.h, string.h, strings.h.
66394         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66395         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66396         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66397         strchr.
66398         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66399         headers, memory.h, string.h.
66400         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66401         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66402         free.
66403         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66404         headers.
66405         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66406         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66407         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66408         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66409         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66410
66411 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66412
66413         More K&R removal.
66414
66415         * lib/acosl.c (main): Use a prototype.
66416         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
66417         tanl.c: Likewise.
66418
66419         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
66420
66421         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
66422         (getopt, etopt_long, getopt_long_only, _getopt_internal)
66423         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
66424         with a prototype.
66425         * lib/getopt.c (const): Remove macro.
66426         Include <string.h> unconditionally.
66427         (my_index): Remove; all uses changed to strchr.
66428         (strlen): Remove decl.
66429         (exchange): Remove forward decl; no longer needed.
66430         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
66431         Define with prototype.
66432         * lib/getopt1.c (const): Remove macro.
66433         (getopt_long, getopt_long_only, main): Define with prototype.
66434
66435         * lib/getugroups.c: Include <string.h> unconditionally.
66436
66437         * lib/getusershell.c: Include <stdlib.h> unconditionally.
66438         (getusershell, setusershell, endusershell, readname, main):
66439         Define with prototypes.
66440
66441         * lib/group-member.c: Include group-member.h first.
66442         Include <stdlib.h> unconditionally.
66443
66444         * lib/hard-locale.c: Include hard-locale.h first.
66445         Include <stdlib.h>, <string.h> unconditionally.
66446
66447         * lib/hash.c (free, malloc): Remove decls.
66448         Include <stdlib.h> unconditionally.
66449
66450         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
66451         (getenv): Do not declare.
66452
66453         * lib/idcache.c: Include <string.h> unconditionally.
66454
66455         * lib/long-options.c: Include long-options.h first, to test interface.
66456         Include <stdlib.h> unconditionally.
66457
66458         * lib/makepath.c: Include makepath.h first, to test interface.
66459         Include <stdlib.h> and <string.h> unconditionally.
66460
66461         * lib/linebuffer.c: Include <stdlib.h>.
66462         (free): Remove decl.
66463
66464         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
66465         stddef.h. rpl_malloc returns void *, not char *.
66466         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
66467         prototype.
66468
66469         * lib/md5.h: Include <limits.h> unconditionally.
66470         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
66471         (__P): Remove; all uses removed.
66472         * lib/md5.c: Include "md5.h" first.
66473         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
66474         md5_buffer, md5_process_bytes, md5_process_block):
66475         Define with prototypes.
66476         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
66477         * lib/sha.c: Include "sha.h" first.
66478         Include <stdlib.h>, <string.h> unconditionally.
66479
66480         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
66481         * lib/memcmp.c (__ptr_t): Likewise.
66482         * lib/memrchr.c (__ptr_t): Likewise.
66483         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
66484         Include <string.h> unconditionally.
66485         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
66486         * lib/memchr.c: Include <stdlib.h> unconditionally.
66487         * lib/memchr.c (LONG_MAX): Remove.
66488         * lib/memrchr.c (LONG_MAX): Likewise.
66489         * lib/memchr.c (__memchr): Define via a prototype.
66490         * lib/memrchr.c (__memrchr): Likewise.
66491         * lib/memcmp.c (__P): Remove, and remove all uses.
66492         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
66493         Remove forward decls; no longer needed.
66494         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
66495         Use types required by C89 in prototype.
66496
66497         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
66498         * lib/savedir.c: Likewise.
66499         * lib/mkdir.c (free): Remove decl.
66500         * lib/rmdir.c (rmdir): Define with a prototype.
66501         * lib/savedir.c: Include savedir.h first, to test interface.
66502
66503         * lib/mktime.c (STDC_HEADERS): Remove.
66504         Include <stdlib.h>, <string.h> unconditionally.
66505
66506         * lib/modechange.c: Include <stdlib.h> unconditionally.
66507         (malloc): Remove decl.
66508
66509         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
66510         (free): Remove decl.
66511
66512         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
66513         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
66514         (This type really should be intptr_t, but that's a C99ism.)
66515         (_obstack_memcpy): Remove: all uses changed to memcpy.
66516         Include <string.h> unconditionally.
66517         (struct obstack): Assume __STDC__ for types of members
66518         chunkfun, freefun, extra_arg.
66519         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
66520         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
66521         obstack_begin, obstack_specify_allocation,
66522         obstack_specify_allocation_with_arg, obstack_chunkfun,
66523         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
66524         Remove unprototyped decls and the macros that use them.
66525         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
66526         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
66527         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
66528         (defined __STDC__ && __STDC__)]:
66529         Remove nonprototyped code.
66530         Include <stdlib.h> unconditionally.
66531         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
66532         _obstack_allocated_p, _obstack_free, obstack_free,
66533         _obstack_memory_used, print_and_abort):
66534         Define using prototypes.
66535         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
66536         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
66537         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
66538         obstack_next_free, obstack_object_size, obstack_room) [0]:
66539         Remove unused, unprototyped code.
66540
66541         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
66542
66543         * lib/physmem.c (physmem_total, physmem_available, main): Define
66544         with prototypes.
66545
66546         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
66547         (main): Define with a prototype.
66548
66549         * lib/posixver.c (getenv): Remove decl.
66550
66551         * lib/putenv.c (malloc): Returns void *, not char *.
66552         Include <string.h> unconditionally.
66553         (strchr, memcpy, NULL): Do not define.
66554
66555         * lib/readtokens.c: Include readtokens.h first, to test interface.
66556         Include <stdlib.h>, <string.h> unconditionally.
66557         (init_tokenbuffer): Define with a prototype.
66558
66559         * lib/regex.c (PARAMS): Remove.  All uses removed.
66560         All uses of _RE_ARGS removed, too.
66561         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66562         unconditionally.
66563         (bzero): Assume memset exists.
66564         (memcmp, memcpy, NULL): Remove.
66565         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
66566         char, or assignments to local vars of type signed char.
66567         (init_syntax_once, PREFIX(extract_number_and_incr),
66568         PREFIX(print_partial_compiled_pattern),
66569         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
66570         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
66571         PREFIX(regex_grow_registers), PREFIX(regex_compile),
66572         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
66573         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
66574         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
66575         wcs_compile_range, byte_compile_range, truncate_wchar,
66576         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
66577         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
66578         count_mbs_length, wcs_re_match_2_internal,
66579         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
66580         PREFIX(alt_match_null_string_p),
66581         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
66582         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
66583         regfree, PREFIX(extract_number)): Define with prototype.  Remove
66584         now-unnecessary declaration, if any.
66585         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
66586         regcomp, regexec):
66587         Remove now-unnecessary casts among pointer types.
66588         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
66589
66590         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
66591         (free): Remove decl.
66592
66593         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
66594
66595         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
66596         (free): Remove decl.
66597
66598         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
66599         * lib/xgetcwd.c: Likewise.
66600
66601         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
66602         (free): Remove decl.
66603
66604         * lib/strchrnul.c (strchrnul): Define with a prototype.
66605         Fix bug: c_in was not converted to char before searching.
66606
66607         The following changes are not K&R related:
66608
66609         * lib/group-member.h: Include <sys/types.h>, so that this file is
66610         self-contained.
66611         * lib/makepath.h: Likewise.
66612
66613         * lib/getusershell.c (readname, default_index, line_size, readname):
66614         Use size_t, not int, for sizes.
66615         (readname): If the size overflows, report an error instead of
66616         looping forever.
66617
66618 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66619
66620         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
66621         libc.
66622
66623 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66624
66625         * README: New section: portability guidelines.
66626
66627 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66628
66629         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
66630         C89 spec.
66631
66632 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66633
66634         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
66635
66636 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66637
66638         Assume C89 or better; remove K&R cruft.
66639         A few of these changes were first proposed by Derek Robert Price
66640         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
66641
66642         * lib/addext.c: Include <string.h> unconditionally.
66643         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
66644         Don't declare getenv or malloc.
66645
66646         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
66647         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
66648         (NULL): Remove.
66649         (find_stack_direction, alloca): Use prototypes.
66650
66651         * lib/atexit.c (atexit): Define using a prototype.
66652
66653         * lib/basename.c, dirname.c, stripslash.c:
66654         Include <string.h> unconditionally.
66655
66656         * lib/bcopy.c: Include <stddef.h>.
66657         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
66658
66659         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
66660
66661         * lib/error.h (error, error_at_line, error_print_progname)
66662         [! (defined (__STDC__) && __STDC__)]: Remove decls.
66663         * lib/error.c: Include error.h first, to check interface.
66664         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66665         (VA_START): Remove; all uses changeed to va_start.
66666         (exit, strerror): Remove decls.
66667         (error_print_progname): Prototype uncondionally.
66668         Don't include <errno.h>; no longer needed.
66669         (private_strerror): Remove.
66670         (error_tail): Always define.
66671         (error, error_at_line): Assume C89 or better; always use prototypes.
66672         * lib/fatal.c: Include "fatal.h" first, to test interface.
66673         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66674         (VA_START): Remove; all uses changed to va_start.
66675         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
66676         this case.
66677         (exit): Remove decl.
66678         (fatal): Prototype unconditionally.  Assume va_start works.
66679         Abort at end, to pacify gcc.
66680
66681         * lib/euidaccess.c (main): Define with a prototype.
66682
66683         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
66684
66685         * lib/exitfail.c: Include <stdlib.h> unconditionally.
66686
66687         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
66688         prototypes.
66689         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
66690         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
66691         (getenv): Remove decl.
66692         (fnmatch): Define using a prototype.
66693         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
66694         (FCT): Define using a prototype.
66695
66696         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
66697
66698         * lib/gethostname.c: Include <stddef.h>.
66699         (gethostname): Define with prototype.  Length is size_t, not int.
66700
66701 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66702
66703         Assume C89 or better; remove K&R cruft.
66704         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
66705         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
66706         string.h, getenv, malloc.
66707         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
66708         headers.
66709         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
66710         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
66711         do not check for strerror.
66712         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
66713         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
66714         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
66715         do not check for doprnt or vprintf.
66716         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
66717         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
66718
66719 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66720
66721         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
66722         getversion.c should have been removed then, but was accidentally
66723         preserved.
66724
66725         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
66726         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
66727
66728 2003-09-08  Karl Berry  <karl@gnu.org>
66729
66730         * config/config.sub, config.guess, srclistvars.sh: update from savannah
66731                 config, forget about prep.
66732
66733         * config/depcomp, missing: update from automake.
66734
66735 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66736
66737         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
66738         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66739
66740 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66741
66742         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
66743         copy_tm_result.  Bug reported by Simon Josefsson in
66744         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66745
66746 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66747
66748         * m4/time_r.m4: New file.
66749         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
66750         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
66751         is. Check for timegm declaration.
66752         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
66753         Do not check for gmtime_r.
66754         Replace mktime if __mktime_internal does not exist and if mktime
66755         hasn't been replaced already.
66756
66757 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66758
66759         * lib/time_r.c, lib/time_r.h: New files.
66760
66761         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
66762         __localtime_r.
66763         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
66764         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
66765
66766         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
66767         __gmtime_r.
66768         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
66769         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
66770         Include <time_r.h>.
66771
66772         * lib/timegm.c: Switch to glibc implementation, with the following
66773         changes:
66774         [defined HAVE_CONFIG_H]: Include <config.h>.
66775         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
66776         (__mktime_internal) [!defined _LIBC]: New decl.
66777         (__gmtime_r) [!defined _LIBC]: New macro and function.
66778         (timegm): Use a prototype, since gnulib assumes C89.
66779         Do not bother declaring tmp to be const, as it's not really usefu.
66780         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
66781         (timegm): Declare only if HAVE_DECL_TIMEGM.
66782
66783 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66784
66785         * MODULES.html.sh (func_all_modules): Add time_r.
66786         * modules/time_r: New file.
66787         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
66788         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
66789
66790 2003-09-03  Paul Eggert  <eggert@twinsun.com>
66791
66792         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
66793         Bug reported by Lute Kamstra in
66794         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
66795
66796         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
66797         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
66798         course with correspondingly smaller numbers for tomorrow and
66799         yesterday.  From Tadayoshi Funaba.  Originally installed into
66800         sh-utils on 1999-08-07, but the patch got lost (I guess during the
66801         coreutils merge?).
66802
66803 2003-08-31  Simon Josefsson  <jas@extundo.com>
66804
66805         * modules/timegm: New file.
66806         * MODULES.html.sh (func_all_modules): Add timegm.
66807
66808 2003-08-31  Simon Josefsson  <jas@extundo.com>
66809
66810         * m4/timegm.m4: New file.
66811
66812 2003-08-31  Simon Josefsson  <jas@extundo.com>
66813
66814         * lib/timegm.h: New file.
66815         * lib/timegm.c: New file.  Based on
66816         wget-1.8.2/src/http.c:mktime_from_utc.
66817
66818 2003-08-31  Karl Berry  <karl@gnu.org>
66819
66820         * lib/argp.h: update from libc.
66821
66822 2003-08-28  Bruno Haible  <bruno@clisp.org>
66823
66824         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
66825         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
66826         followed by '#define fnmatch fnmatch_posix' gives an error.
66827
66828 2003-08-28  Bruno Haible  <bruno@clisp.org>
66829
66830         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
66831         warning on QNX, which defines O_BINARY to 000000.
66832
66833 2003-08-27  Jim Meyering  <jim@meyering.net>
66834
66835         * m4/mkstemp.m4: Require that the system mkstemp be able to create
66836         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
66837         would fail after 32.  Reported by Danny Levinson.  Details here:
66838         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
66839
66840 2003-08-24  Bruno Haible  <bruno@clisp.org>
66841
66842         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
66843         MSVC7 <stdio.h> is included later.
66844
66845 2003-08-22  Simon Josefsson  <jas@extundo.com>
66846
66847         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
66848
66849 2003-08-20  Karl Berry  <karl@gnu.org>
66850
66851         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
66852
66853 2003-08-20  Bruno Haible  <bruno@clisp.org>
66854
66855         * modules/progname: New file.
66856         * MODULES.html.sh (func_all_modules): Add progname.
66857
66858 2003-08-20  Bruno Haible  <bruno@clisp.org>
66859
66860         * lib/progname.h: New file, from GNU gettext.
66861         * lib/progname.c: New file, from GNU gettext.
66862         * lib/progreloc.c: New file, from GNU gettext.
66863
66864 2003-08-19  Jim Meyering  <jim@meyering.net>
66865
66866         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
66867         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
66868
66869 2003-08-19  Bruno Haible  <bruno@clisp.org>
66870
66871         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
66872         more.
66873
66874 2003-08-19  Bruno Haible  <bruno@clisp.org>
66875
66876         * lib/xstrdup.c: Assume <string.h> exists.
66877
66878 2003-08-18  Paul Eggert  <eggert@twinsun.com>
66879
66880         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
66881         in makefile rules.
66882
66883 2003-08-18  Jim Meyering  <jim@meyering.net>
66884
66885         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
66886         * m4/lib-ld.m4: Likewise.
66887
66888 2003-08-18  Jim Meyering  <jim@meyering.net>
66889
66890         * lib/setenv.h: Indent nested cpp directive.
66891         * lib/vasnprintf.c: Remove trailing blanks.
66892
66893 2003-08-17  Simon Josefsson  <jas@extundo.com>
66894
66895         * modules/xstrndup: New file.
66896         * MODULES.html.sh (func_all_modules): Add xstrndup.
66897
66898 2003-08-17  Simon Josefsson  <jas@extundo.com>
66899
66900         * modules/argp: Fix autoconf macro name. Add more dependencies.
66901
66902 2003-08-17  Simon Josefsson  <jas@extundo.com>
66903
66904         * m4/xstrndup.m4: New file.
66905
66906 2003-08-17  Simon Josefsson  <jas@extundo.com>
66907
66908         * m4/argp.m4: New file.
66909
66910 2003-08-17  Simon Josefsson  <jas@extundo.com>
66911             Bruno Haible  <bruno@clisp.org>
66912
66913         * lib/xstrndup.h: New file.
66914         * lib/xstrndup.c: New file.
66915
66916 2003-08-17  Bruno Haible  <bruno@clisp.org>
66917
66918         * modules/strndup (Files, Include): Add lib/strndup.h.
66919
66920 2003-08-17  Bruno Haible  <bruno@clisp.org>
66921
66922         * modules/euidaccess (Files): Add lib/euidaccess.h.
66923
66924 2003-08-17  Bruno Haible  <bruno@clisp.org>
66925
66926         * lib/strndup.h: New file.
66927
66928 2003-08-17  Bruno Haible  <bruno@clisp.org>
66929
66930         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
66931         like AC_GNU_SOURCE.
66932         * modules/extensions (configure.ac): Comment out the invocation of
66933         gl_USE_SYSTEM_EXTENSIONS.
66934
66935 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66936
66937         Merges from coreutils, etc.
66938         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
66939         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
66940         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
66941         fixing a typo.
66942         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
66943         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
66944
66945 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66946
66947         Document merge from coreutils.
66948         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
66949         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
66950         * modules/utime: Add m4/utimes-null.m4.
66951
66952 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66953
66954         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
66955         space, undoing this 2003-08-12 change:
66956         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
66957
66958 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66959
66960         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
66961         strtoul.c from libc, undoing this 2003-08-12 change:
66962         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
66963
66964 2003-08-16  Jim Meyering  <jim@meyering.net>
66965
66966         Merges from coreutils.
66967         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
66968         prefix.  Adjust cache variables similarly.  Create 500 rather than
66969         just 300 files, to exercise bug on Darwin6.5, too.
66970         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
66971         $missing_dir.
66972         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
66973         AM_SYS_POSIX_TERMIOS.
66974         Reported by mkc@mathdogs.com.
66975         Also change use of $am_cv_sys_posix_termios
66976         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
66977         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
66978         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
66979         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
66980         in /proc/mounts until it finds one with matching device number.  This
66981         is unnecessary when the FILE argument *is* a mount point.  No stat call
66982         is necessary in that case.  So, disable the statvfs-testing code on
66983         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
66984         as RedHat bug# 84846.
66985         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
66986         to 1MB, so as not to render systems with no stack size limit (e.g.,
66987         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
66988         Include <unistd.h>.  On some systems,
66989         it is required for the definition of _SC_PAGESIZE.
66990
66991 2003-08-16  Jim Meyering  <jim@meyering.net>
66992
66993         Merge from coreutils.
66994         * lib/xstrtoimax.c: #else #if -> #elif.
66995         * lib/xstrtoumax.c: Likewise.
66996
66997 2003-08-16  Jim Meyering  <jim@meyering.net>
66998
66999         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67000         * m4/utimes.m4: Removed.
67001         * m4/utimes-null.m4: Renamed from utimes.m4.
67002
67003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67004         to 1MB, so as not to render systems with no stack size limit (e.g.,
67005         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67006         Include <unistd.h>.  On some systems,
67007         it is required for the definition of _SC_PAGESIZE.
67008
67009 2003-08-16  Jim Meyering  <jim@meyering.net>
67010         and Paul Eggert  <eggert@cs.ucla.edu>
67011
67012         Merges from coreutils, etc.
67013
67014         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67015         using the latest version from cvs.  This avoids problems with #line
67016         directives using a vendor (Sun) compiler.
67017         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67018         Don't set GETGROUPS_LIB here; now it's
67019         done via getgroups.m4's wrapper function.
67020         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67021         rather than just in sh-util/configure.in, so that the
67022         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67023         same.
67024         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67025         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67026         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67027         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67028         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67029         Remove code that is now done by the newly-required macros.
67030         Append $(EXEEXT) to DF_PROG.
67031         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67032         Do not invoke or require the following here,
67033         since prereq.m4 or some gnulib .m4 now does this for us:
67034         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67035         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67036         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67037         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67038         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67039         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67040         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67041         AC_FUNC_OBSTACK.
67042         Do not replace the following functions, as this is now the job
67043         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67044         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67045         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67046         atexit getpass, strdup, getpagesize.
67047         Replace 'raise'.
67048         Do not check for the following functions, as this is now the job
67049         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67050         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67051         setregid.
67052         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67053         Check for sys/sysctl.h.
67054         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67055         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67056         of checking for ssize_t ourselves.
67057
67058         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67059         Require every macro that gnulib/modules/* suggests for us.
67060         (jm_PREREQ_ADDEXT): New macro.
67061         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67062         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67063
67064         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67065         (gl_PHYSMEM): Use it.
67066         Also check for `table' function.
67067         Check for new headers and functions.
67068         Add check for sys/sysmp.h.
67069         With suggestions from Kaveh Ghazi.
67070         Ignore headers that are present but cannot be compiled.  This
67071         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67072         C 5.4.
67073
67074 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67075
67076         Document merge from coreutils.
67077         * modules/userspec: Depend on posixver.
67078         * modules/strftime: Depend on tzset.
67079
67080 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67081
67082         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67083         rather than tab, after '#' in shell-script copyright notices.
67084         Suggested by Bruno Haible.
67085
67086 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67087
67088         * config/srclist-update: Use three spaces, rather than tab, after '#'
67089         in shell-script copyright notices.  Suggested by Bruno Haible.
67090         Remove unnecessary parenthesization in regular expression.
67091
67092 2003-08-15  Jim Meyering  <jim@meyering.net>
67093
67094         Merge from coreutils.
67095         * lib/xgethostname.c: Include <stdlib.h>.
67096         (xghostname): Don't exit for anything other than memory-related
67097         failure; just return NULL.
67098         * lib/userspec.c: Include "posixver.h".
67099         (parse_user_spec): Accept `.' as a separator only
67100         in pre-POSIX-200112 mode.
67101         * lib/strtoimax.c: Use #elif rather than #else #if.
67102         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67103         Remove function, now that we can rely on a working tzset function.
67104         [!_LIBC]: Ensure that the required autoconf test has been run.
67105         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67106         Use underlying_strftime for %r.
67107         * lib/sha.c: Merge in some clean-up and optimization changes from
67108         glibc.
67109         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67110         Ensure that it is a multiple of 64.
67111         Rearrange loop exit tests so as to avoid performing an
67112         additional fread after encountering an error or EOF.
67113         * lib/realloc.c: Update copyright date.
67114
67115 2003-08-15  Jim Meyering  <jim@meyering.net>
67116         and Paul Eggert  <eggert@twinsun.com>
67117
67118         Merge from coreutils.
67119         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67120         member but strut utmpx does not.  Needed for AIX 4.3.3.
67121         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67122
67123 2003-08-15  Jim Meyering  <jim@meyering.net>
67124         and Paul Eggert  <eggert@cs.ucla.edu>
67125
67126         Merges from coreutils, etc.
67127         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67128         Require gl_FUNC_TZSET_CLOBBER.
67129         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67130         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67131         members.
67132
67133 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67134
67135         Help the merge from coreutils.
67136         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67137         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67138         * m4/tzset.m4: Use it too.
67139
67140 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67141
67142         * modules/tzset: New file.
67143
67144 2003-08-14  Jim Meyering  <jim@meyering.net>
67145
67146         Merges from coreutils.
67147         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67148         variable names, rather than @FNMATCH_H@.
67149         * modules/alloca: Likewise for $(ALLOCA_H).
67150
67151         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67152         the three copies of the literal target, `fnmatch.h'.
67153         * modules/alloca (alloca.h): Likewise.
67154
67155 2003-08-14  Jim Meyering  <jim@meyering.net>
67156
67157         Merge from coreutils.
67158         * m4/tzset.m4: New file.
67159         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67160         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67161         otherwise, AIX 5.1 systems would end up using the latter.
67162         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67163         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67164         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67165         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67166
67167 2003-08-14  Jim Meyering  <jim@meyering.net>
67168
67169         Merge from coreutils.
67170         * lib/obstack.h: Whitespace changes.
67171         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67172         and xcalloc return values.
67173         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67174         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67175         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67176         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67177         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67178         error from mntctl.
67179         Use mntctl's return value to drive the entry-processing loop, since
67180         we can't rely on the value of the vmt_length member in the last
67181         entry.  On some systems doing so could result in exhausting
67182         virtual memory.  Based in part on a patch from Mike Jetzer.
67183
67184 2003-08-14  Jim Meyering  <jim@meyering.net>
67185         and Paul Eggert  <eggert@twinsun.com>
67186
67187         Merges from coreutils, plus other fixes.
67188         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67189         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67190         for credits and details.  Thanks to Kaveh Ghazi for helping
67191         to keep these files in sync.
67192         (ARRAY_SIZE): Define it.
67193         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67194         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67195         (memcasecmp): Don't assume size_t fits in unsigned int.
67196         Remove casts and duplicate code.
67197         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67198         (memcpy): Remove definition.
67199         Merge in some clean-up and optimization changes from glibc.
67200         [BLOCKSIZE]: Move definition to top of file.
67201         Ensure that it is a multiple of 64.
67202         Rearrange loop exit tests so as to avoid performing an
67203         additional fread after encountering an error or EOF.
67204         * lib/md5.h (md5_uintptr): Define.
67205         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67206         return to the initial working directory.  Preserve errno
67207         for caller.
67208         * lib/idcache.c: Include "xalloc.h".
67209         (xmalloc, xrealloc): Remove decls.
67210         (getuser): Remove casts no longer required in C89.
67211         * lib/human.c: Include stdio.h, for sprintf.
67212         * lib/group-member.c: Include "xalloc.h".
67213         (xmalloc, xrealloc): Remove decls.
67214         (get_group_info): Remove casts no longer required in C89.
67215         * lib/getusershell.c (readname): Remove casts no longer required in
67216         C89.
67217         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67218         * lib/getline.c: Whitespace fix, from coreutils.
67219
67220 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67221
67222         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67223         Check for isascii.
67224
67225         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67226         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67227         Undo previous (whitespace-only) change.
67228
67229 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67230
67231         * lib/exclude.c: Include <ctype.h>
67232         (IN_CTYPE_DOMAIN): New macro.
67233         (is_space): New fn.
67234         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67235         and empty lines.
67236
67237         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67238         Undo previous (whitespace-only) change.
67239
67240 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67241
67242         * config/srclist-update: Change update back to the old behavior,
67243         leaving whitespace alone.  Use one 'sed' command rather than a
67244         pipeline.
67245         (fixlicense): Now a variable, not a function.
67246         (remove_trailing_blanks): Remove.
67247         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67248         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67249         Undo previous (whitespace-only) change.
67250
67251 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67252
67253         Merge from coreutils.
67254         * modules/euidaccess: Add lib_SOURCES, include for new
67255         file euidaccess.h
67256
67257 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67258
67259         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67260         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67261         Normalize leading white space and remove trailing white space.
67262
67263         Merge from coreutils
67264         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67265
67266         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67267         0.12.1.  These files are now being upgraded automatically by
67268         ../config/srclist-update.
67269
67270 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67271
67272         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67273         Normalize leading white space and remove trailing white space.
67274         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67275         notice, as per ../config/srclist-update.
67276
67277         Merge from coreutils.
67278         * lib/euidaccess.h: New file.
67279         * lib/euidaccess.c: Include it.
67280         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67281         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67282         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67283
67284 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67285
67286         * config/srclist-update: Add copyright notice.
67287         (remove_id_lines, remove_trailing_blanks): New constants.
67288         (fixfile): Use them to normalize spacing a bit in copied files.
67289         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67290         Normalize leading white space and remove trailing white space.
67291
67292         * config/texinfo.tex: Sync with texinfo.
67293
67294         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67295         strtoul.c from libc, to merge coreutils whitespace changes.
67296
67297         * config/srclist.txt: Get the following m4 files from gettext:
67298         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67299         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67300         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67301         wint_t.m4.
67302
67303 2003-08-12  Karl Berry  <karl@gnu.org>
67304
67305         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67306         been made.
67307
67308 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67309
67310         * modules/gnu-source, m4/gnu-source.m4:
67311         Remove; we're assuming Autoconf 2.54 or later now.
67312         Suggested by Bruno Haible.
67313         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67314
67315 2003-08-11  Bruno Haible  <bruno@clisp.org>
67316
67317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67318
67319 2003-08-11  Bruno Haible  <bruno@clisp.org>
67320
67321         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67322         (vasnprintf): Use it instead of wcslen.
67323
67324 2003-08-11  Bruno Haible  <bruno@clisp.org>
67325
67326         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67327         value to ensure that _Bool promotes to int. Use #define for _Bool when
67328         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67329
67330 2003-08-10  Karl Berry  <karl@gnu.org>
67331
67332         * lib/regex.h: update from libc (whitespace fix).
67333
67334 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67335
67336         Merge some files from coreutils.  These changes were
67337         originally made by Jim Meyering.
67338         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67339         many older Unixes require this.
67340         * lib/alloca.c (alloca): Remove cast to argument of free;
67341         no longer needed in C89.
67342         * lib/alloca_.h, regex.h: Fix white space to match
67343         what GNU indent does.
67344
67345 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67346
67347         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
67348         apparently Emacs's Unicode mode got confused before my 2003-08-05
67349         checkin.
67350
67351 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67352
67353         * m4/extensions.m4: New file.
67354         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
67355         Require gl_USE_SYSTEM_EXTENSIONS.
67356         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
67357         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
67358
67359 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67360
67361         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
67362         * modules/extensions, modules/gnu-source: New files.
67363         * modules/timespec, modules/unlocked-io: Depend on extensions.
67364
67365 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67366
67367         * modules/restrict: New file.
67368         * MODULES.html.sh (func_all_modules): Add restrict.
67369         * modules/regex: Depend on restrict.
67370
67371 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67372
67373         * m4/restrict.m4: New file.
67374         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67375
67376 2003-08-07  Bruno Haible  <bruno@clisp.org>
67377
67378         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67379         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67380
67381 2003-08-07  Bruno Haible  <bruno@clisp.org>
67382
67383         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67384         makes the module 'getndelim2' compatible with the module 'getline'.
67385
67386 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67387
67388         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67389         byte with "\201" to avoid glitches when editing that source file
67390         with multi-gnome-terminal.
67391
67392 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67393
67394         * lib/bumpalloc.h: Remove.
67395
67396 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67397
67398         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67399         * modules/bumpalloc: Remove.
67400
67401 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67402
67403         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67404         GNU coding style.
67405
67406         Merge from coreutils.
67407         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67408         1. From glibc.
67409         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67410         from Karl Berry, implemented by Jim Meyering.
67411         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
67412         from Dmitry V. Levin.
67413         Remove anachronistic cast of xrealloc.
67414         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
67415         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
67416         type. Otherwise, it wouldn't compile with at least /bin/cc on
67417         ymp-cray-unicos9.0.2.X.
67418         Combine two mostly-identical uses of alloca into one.
67419         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
67420
67421 2003-08-04  Dave Love  <d.love@dl.ac.uk>
67422
67423         [From Emacs.]
67424
67425         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
67426         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
67427         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
67428         obsolete NLIST_NAME_UNION.
67429         [__GNU__]: Undef BSD and FSCALE.
67430         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
67431
67432 2003-08-03  Paul Eggert  <eggert@twinsun.com>
67433
67434         * lib/stdbool_.h (_Bool): Make it signed char, instead of
67435         an enum type, so that it's guaranteed to promote to int.  See:
67436         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
67437
67438 2003-08-03  Karl Berry  <karl@gnu.org>
67439
67440         * config/depcomp: update from automake.
67441
67442 2003-07-31  Paul Eggert  <eggert@twinsun.com>
67443
67444         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
67445         (strerror): Don't assume that a printable int fits in 14 bytes.
67446
67447 2003-07-31  Bruno Haible  <bruno@clisp.org>
67448
67449         * modules/getpass-gnu: New file.
67450         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
67451
67452 2003-07-31  Bruno Haible  <bruno@clisp.org>
67453
67454         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
67455
67456 2003-07-24  Karl Berry  <karl@gnu.org>
67457
67458         * config/missing: update from automake.
67459
67460 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
67461             Bruno Haible  <bruno@clisp.org>
67462
67463         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
67464         * lib/getline.c (getline, getdelim): Likewise.
67465         Remove _GNU_SOURCE define; now it's defined in config.h through
67466         m4/getline.m4.
67467
67468 2003-07-23  Karl Berry  <karl@gnu.org>
67469
67470         * config/config.sub: update from prep.
67471
67472 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67473
67474         * modules/xalloc (Depends-on): Add exitfail.
67475         * modules/xmemcoll: Likewise.
67476
67477 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67478
67479         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
67480         over-parenthesization in macros.
67481
67482         Sync with coreutils.
67483
67484         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
67485         required by C99.
67486
67487         Use `exit_failure' for xalloc and xmemcoll instead of their own
67488         private exit-failure variables.
67489         * lib/xalloc.h (xalloc_exit_failure): Remove.
67490         * lib/xmalloc.c: Likewise.  Include exitfail.h.
67491         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
67492         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
67493         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
67494         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
67495
67496 2003-07-20  Jim Meyering  <jim@meyering.net>
67497
67498         * modules/closeout (Depends-on): Add exitfail.
67499         Suggestion from Bruno Haible.
67500
67501 2003-07-19  Karl Berry  <karl@gnu.org>
67502
67503         * config/config.sub: update from prep.
67504
67505 2003-07-18  Paul Eggert  <eggert@twinsun.com>
67506
67507         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
67508         Remove.
67509         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
67510         to test that it can stand by itself.  Include "exitfail.h".
67511         Clients should set exit_failure instead.
67512         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
67513
67514 2003-07-18  Bruno Haible  <bruno@clisp.org>
67515
67516         * modules/getndelim2: New file.
67517         * modules/getline: Share files with module getndelim2.
67518         * modules/getnline: Depend on getndelim2 instead of sharing files with
67519         it. Add getnline.c to lib_SOURCES.
67520         * MODULES.html.sh (func_all_modules): Add getndelim2.
67521
67522 2003-07-18  Bruno Haible  <bruno@clisp.org>
67523
67524         * m4/getndelim2.m4: New file.
67525         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
67526         invoke gl_PREREQ_GETNDELIM2.
67527         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
67528         gl_PREREQ_GETNDELIM2.
67529         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
67530         gl_GETNDELIM2.
67531
67532 2003-07-18  Bruno Haible  <bruno@clisp.org>
67533
67534         * lib/getndelim2.h: New file.
67535         * lib/getndelim2.c: Make into a module of its own. Include config.h,
67536         getndelim2.h.
67537         (getndelim2): Make non-static. Change return type to ssize_t.
67538         * lib/getline.h: Change argument names.
67539         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
67540         * lib/getnline.c: Include getndelim2.h.
67541
67542 2003-07-18  Andreas Schwab  <schwab@suse.de>
67543
67544         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
67545
67546 2003-07-17  Karl Berry  <karl@gnu.org>
67547
67548         * config/config.sub: update from prep.
67549
67550 2003-07-17  Bruno Haible  <bruno@clisp.org>
67551
67552         * modules/getnline: New file.
67553         * modules/getline: Add lib/getndelim2.c to source file list.
67554         * MODULES.html.sh (func_all_modules): Add getnline.
67555
67556 2003-07-17  Bruno Haible  <bruno@clisp.org>
67557
67558         * m4/getnline.m4: New file.
67559
67560 2003-07-17  Bruno Haible  <bruno@clisp.org>
67561
67562         * m4/Makefile.am.in: Remove file.
67563         * m4/Makefile.am: Remove file.
67564         * m4/Makefile.in: Remove file.
67565
67566 2003-07-17  Bruno Haible  <bruno@clisp.org>
67567
67568         * lib/getnline.h: New file.
67569         * lib/getnline.c: New file.
67570         * lib/getndelim2.c: New file, extracted from getline.c.
67571         (getndelim2): Renamed from getdelim2, with added nmax argument.
67572         * lib/getline.c: Include getndelim2.c.
67573         (getdelim2): Moved out to getndelim2.c.
67574         (getline, getdelim): Update.
67575
67576 2003-07-17  Bruno Haible  <bruno@clisp.org>
67577
67578         * lib/Makefile.am: Remove file.
67579         * lib/Makefile.in: Remove file.
67580
67581 2003-07-17  Bruno Haible  <bruno@clisp.org>
67582
67583         * configure.in: Remove file.
67584         * Makefile.in: Remove file.
67585
67586 2003-07-17  Bruno Haible  <bruno@clisp.org>
67587
67588         * MODULES.html.sh: Put the </BODY> right before </HTML>.
67589
67590 2003-07-16  Karl Berry  <karl@gnu.org>
67591
67592         * config/srclist-update: was running fixlicense twice, which caused
67593                 texinfo.tex to be nullified for some reason.  Simplify,
67594                 $gplsrc is no longer needed as far as I can see?
67595
67596 2003-07-16  Jim Meyering  <jim@meyering.net>
67597
67598         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
67599
67600 2003-07-15  Paul Eggert  <eggert@twinsun.com>
67601
67602         * config/srclist.txt: Get the following files from gettext-runtime/intl
67603         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
67604         ref-del.sin.  From Bruno Haible.
67605         * config/srclist-update (fixfile): Change grep pattern again, since the
67606         previous fix didn't work (there was another trailing $).  Use
67607         '[$]' to escape the $s.
67608
67609 2003-07-15  Karl Berry  <karl@gnu.org>
67610
67611         * lib/vasnprintf.c: update from gettext.
67612
67613 2003-07-15  Karl Berry  <karl@gnu.org>
67614
67615         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
67616         gets expanded when surrounded by '$'.
67617
67618 2003-07-15  Jim Meyering  <jim@meyering.net>
67619
67620         * modules/save-cwd: Don't depend on error.  From Derek Price.
67621
67622 2003-07-15  Jim Meyering  <jim@meyering.net>
67623
67624         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
67625
67626 2003-07-14  Simon Josefsson  <jas@extundo.com>
67627
67628         * modules/mempcpy: New file.
67629         * MODULES.html.sh (func_all_modules): Add mempcpy.
67630
67631 2003-07-14  Simon Josefsson  <jas@extundo.com>
67632
67633         * m4/mempcpy.m4: New file.
67634
67635 2003-07-14  Simon Josefsson  <jas@extundo.com>
67636
67637         * lib/mempcpy.h: New file.
67638         * lib/mempcpy.c: New file.
67639
67640 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67641
67642         * modules/getdate, modules/posixtm: Depend on mktime.
67643
67644 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67645
67646         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
67647         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
67648         unicodeio.c, unicodeio.h, unlocked-io.h:
67649         Switch from LGPL to GPL.
67650
67651 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67652
67653         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
67654         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
67655         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
67656         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
67657         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
67658         updated automatically by ../config/srclist-update.  This changes
67659         their license from LPGL to GPL.
67660
67661 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67662
67663         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
67664         assumed to refer to the root of the most recent stable gettext version.
67665         * config/srclistvars.sh: Add defaults for eggert.
67666         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
67667         Match "This program" as well as "The program".  This is needed
67668         for gettext.
67669
67670 2003-07-14  Jim Meyering  <jim@meyering.net>
67671
67672         Don't emit diagnostics.  Let callers do that.
67673         * lib/save-cwd.c: Don't include "error.h".
67674         (save_cwd): Don't call error.  Ensure that errno is valid
67675         when returning nonzero.
67676
67677         * lib/save-cwd.h (restore_cwd): Update prototype.
67678         * lib/save-cwd.c (restore_cwd): Remove two parameters.
67679         Simplify.  Don't call error upon failure.  Let callers do that.
67680         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
67681         when auditing is enabled.  But don't bother updating the #if.
67682
67683 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
67684
67685         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
67686         it breaks C++ compilation.
67687         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
67688
67689 2003-07-10  Simon Josefsson  <jas@extundo.com>
67690
67691         * modules/strchrnul (Makefile.am): Add strchrnul.h.
67692
67693 2003-07-10  Jim Meyering  <jim@meyering.net>
67694
67695         * m4/clock_time.m4: Remove trailing blank.
67696         * m4/intmax_t.m4: Likewise.
67697
67698 2003-07-10  Jim Meyering  <jim@meyering.net>
67699
67700         * lib/vasnprintf.c: Remove trailing blanks.
67701         Make cpp indentation consistent.
67702
67703 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67704
67705         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
67706         posixver.c, strftime.c, strnlen.c, strverscmp.c:
67707         Switch from LGPL to GPL.
67708
67709 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67710
67711         * config/srclist.txt: Sort sublists.  Add
67712         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
67713         that differ from gnulib for one reason or another; we'd like this list
67714         to be smaller but for now let's document what we have.
67715
67716 2003-07-08  Paul Eggert  <eggert@twinsun.com>
67717
67718         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
67719         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
67720         and sweeter "eval x=$x".
67721         * config/srclist.txt: Get lib/argp* from glibc.
67722
67723 2003-07-07  Paul Eggert  <eggert@twinsun.com>
67724
67725         * lib/mktime.c: Fix some boundary cases and remove need for floating
67726         point.
67727
67728         Issue a compile-time diagnostic if time_t is floating point, or if
67729         two's complement arithmetic is not in effect, or if arithmetic
67730         right shift does not propagate the sign.  These assumptions were
67731         all in the original code but they weren't checked.
67732
67733         (TIME_T_MIDPOINT, verify): New macros.
67734         (__isleap): Remove; it has integer overflow problems.
67735         (leapyear): New function, without those problems.
67736         (ydhms_tm_diff): Remove; splitting into two parts.
67737         (ydhms_diff): New function, containing the arithmetic part of
67738         the old ydhms_tm_diff function.  Issue a compile-time
67739         diagnostic if we are not using C99 integer division.
67740         Avoid casts when possible.
67741         (guess_time_tm): New function, containing the checking part of
67742         the old ydhms_tm_diff function.  Return the new value, rather than
67743         the difference between it and the old.  Accept a new argument T
67744         so that *T specifies the old value.  Check for overflow in the result.
67745
67746         (__mktime_internal): Use a time_t offset, not a long int offset.
67747         This undoes the 2003-06-04 change, which is no longer needed now
67748         that we have better overflow checking.
67749         (localtime_offset): Likewise.
67750
67751         (__mktime_internal): Avoid harmful overflow on hosts where time_t
67752         and long are 64-bit but int is only 32-bit.
67753         (ydhms_diff): Use long int to store year1 and yday1.
67754         Issue a compile-time diagnostic if long int is not wide enough.
67755
67756         (__mktime_internal): Use long int to store adjusted year and yday.
67757         Use plain C rather than preprocessor commands, if that doesn't
67758         affect efficiency.
67759         Check for overflow (and try to repair) after each probe
67760         rather than checking only at the very end.  This avoids some bugs
67761         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
67762         does not equal GMT offset at maximum time).
67763         Use integer to check for overflow rather than floating point; this
67764         is more portable to non-IEEE hosts, and is a tad faster.
67765         When we detect that we are oscillating between two values,
67766         don't check whether tm_isdst has the requested value, since
67767         we already know the answer.  When tm_isdst has the wrong value,
67768         use a different heuristic to find the right one, based on the
67769         extreme values actually observed in practice in tz2003a,
67770         rather than the (overly optimistic) "previous 3 calendar quarters".
67771
67772         (not_equal_tm, print_tm, check_result): Use "const T" rather than
67773         "T const" to accommodate glibc style.
67774         (check_result): Use less-confusing report format.  "long" -> "long int.
67775         (main): Likewise.
67776         Don't loop if the iteration overflows time_t.
67777         Allow a negative step in the iteration.
67778
67779 2003-07-06  Karl Berry  <karl@gnu.org>
67780
67781         * config/depcomp: update from automake.
67782         * config/config.sub: update from prep.
67783
67784 2003-07-03  Karl Berry  <karl@gnu.org>
67785
67786         * config/config.guess: update from prep.
67787
67788 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67789
67790         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
67791         xreadlink.c now includes it unconditionally.
67792
67793 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67794
67795         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
67796         having it depend on HAVE_SYS_TYPES_H.
67797
67798 2003-07-01  Bruno Haible  <bruno@clisp.org>
67799
67800         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
67801         <sys/types.h> should be sufficient.
67802         Reported by Paul Eggert.
67803
67804 2003-06-26  Karl Berry  <karl@gnu.org>
67805
67806         * config/depcomp: update from automake.
67807
67808 2003-06-26  Bruno Haible  <bruno@clisp.org>
67809
67810         * modules/human: Depend on module stdbool.
67811
67812 2003-06-25  Bruno Haible  <bruno@clisp.org>
67813
67814         * modules/readlink: New file.
67815         * modules/xreadlink: Depend on it.
67816         * MODULES.html.sh (func_all_modules): Add readlink.
67817
67818 2003-06-25  Bruno Haible  <bruno@clisp.org>
67819
67820         * m4/readlink.m4: New file.
67821
67822 2003-06-25  Bruno Haible  <bruno@clisp.org>
67823
67824         * lib/readlink.c: New file.
67825
67826 2003-06-22  Karl Berry  <karl@gnu.org>
67827
67828         * config/srclist.txt: update mkinstalldirs from automake.
67829         * config/mkinstalldirs: update.
67830
67831 2003-06-22  Bruno Haible  <bruno@clisp.org>
67832
67833         Portability to mingw32.
67834         * m4/ssize_t.m4: New file, from GNU gettext.
67835         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
67836         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
67837
67838 2003-06-22  Bruno Haible  <bruno@clisp.org>
67839
67840         * modules/safe-read: Add m4/ssize_t.m4.
67841         * modules/xreadlink: Add m4/ssize_t.m4.
67842
67843 2003-06-20  Bruno Haible  <bruno@clisp.org>
67844
67845         Assume C89, so PARAMS isn't needed.
67846         * lib/unicodeio.h (PARAMS): Remove.
67847         * lib/unicodeio.c: Don't use PARAMS.
67848
67849 2003-06-18  Karl Berry  <karl@gnu.org>
67850
67851         * config/config.{guess,sub}: update from prep.
67852
67853 2003-06-18  Jim Meyering  <jim@meyering.net>
67854
67855         Merge changes from coreutils.
67856         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
67857         Remove explicit declarations of xmalloc and realloc.
67858         Include xalloc.h.
67859         (read_utmp): Remove anachronistic cast of xmalloc.
67860
67861 2003-06-17  Paul Eggert  <eggert@twinsun.com>
67862
67863         Assume C89, so PARAMS isn't needed.
67864         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
67865         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
67866         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
67867         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
67868         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
67869         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
67870         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
67871         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
67872         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
67873         lib/xstrtod.h, lib/xstrtol.h: Likewise.
67874         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
67875         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
67876         no longer needed. Anyway, config.h should always be included before any
67877         other file.
67878
67879 2003-06-11  Simon Josefsson  <jas@extundo.com>
67880
67881         * modules/sysexits: New file.
67882         * MODULES.html.sh (func_all_modules): Add sysexits.
67883
67884 2003-06-11  Simon Josefsson  <jas@extundo.com>
67885
67886         * lib/sysexit_.h: New file.
67887
67888 2003-06-11  Derek Price  <derek@ximbiot.com>
67889
67890         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
67891         necessary.
67892
67893 2003-06-11  Bruno Haible  <bruno@clisp.org>
67894
67895         * m4/sysexits.m4: New file.
67896
67897 2003-06-10  Simon Josefsson  <jas@extundo.com>
67898
67899         * lib/argp.h: New file, from glibc.
67900         * lib/argp-ba.c: New file, from glibc.
67901         * lib/argp-eexst.c: New file, from glibc.
67902         * lib/argp-fmtstream.c: New file, from glibc.
67903         * lib/argp-fmtstream.h: New file, from glibc.
67904         * lib/argp-fs-xinl.c: New file, from glibc.
67905         * lib/argp-help.c: New file, from glibc.
67906         * lib/argp-namefrob.h: New file, from glibc.
67907         * lib/argp-parse.c: New file, from glibc.
67908         * lib/argp-pv.c: New file, from glibc.
67909         * lib/argp-pvh.c: New file, from glibc.
67910         * lib/argp-xinl.c: New file, from glibc.
67911
67912 2003-06-10  Simon Josefsson  <jas@extundo.com>
67913
67914         * modules/strchrnul: New file.
67915
67916 2003-06-10  Simon Josefsson  <jas@extundo.com>
67917
67918         * modules/argp: New file.
67919
67920 2003-06-10  Simon Josefsson  <jas@extundo.com>
67921
67922         * m4/strchrnul.m4: New file.
67923
67924 2003-06-10  Simon Josefsson  <jas@extundo.com>
67925
67926         * lib/strchrnul.h: New file.
67927         * lib/strchrnul.c: New file.
67928
67929 2003-06-10  Bruno Haible  <bruno@clisp.org>
67930
67931         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
67932
67933 2003-06-07  Karl Berry  <karl@gnu.org>
67934
67935         * config/config.{guess,sub}: update from prep.
67936
67937 2003-06-07  Jim Meyering  <jim@meyering.net>
67938
67939         * modules/strtod: Use $(...) notation, not @...@ for
67940         AC_REPLACE'd variables.
67941         * modules/localcharset: Likewise.
67942
67943 2003-06-07  Jim Meyering  <jim@meyering.net>
67944
67945         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
67946         in place of my name in the copyright comment.
67947         Remove definition and uses of __P.
67948
67949         From coreutils.
67950         * lib/stat.c: Don't declare xmalloc explicitly.
67951         Instead, include "xalloc.h".
67952         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
67953         xrealloc, and xcalloc return values.
67954         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
67955         Improve comment.
67956         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
67957
67958 2003-06-07  Bruno Haible  <bruno@clisp.org>
67959
67960         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
67961         avoid AC_CONFIG_LINKS.
67962         * modules/fnmatch (Makefile.am): Use explicit creation rule for
67963         fnmatch.h, to avoid AC_CONFIG_LINKS.
67964         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
67965
67966 2003-06-07  Bruno Haible  <bruno@clisp.org>
67967
67968         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
67969         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
67970         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
67971         directory.
67972         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
67973         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
67974         directory.
67975
67976 2003-06-06  Jim Meyering  <jim@meyering.net>
67977
67978         Merge from coreutils.
67979         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
67980         Consolidate declarations and initializations of *_base* locals.
67981
67982         Merge from coreutils.
67983         This avoids a core dump on systems without GNU putenv,
67984         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
67985         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
67986         (unsetenv): New static function, from GNU libc.
67987         (rpl_putenv): Use it.
67988
67989         * lib/modechange.c: Remove trailing blanks.
67990
67991         Merge from coreutils.
67992         * lib/fsusage.c: Remove declaration of statfs.
67993         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
67994
67995         * lib/posixtm.c: Include <stdbool.h> unconditionally.
67996
67997 2003-06-06  Jim Meyering  <jim@meyering.net>
67998
67999         * lib/stdbool_.h: Renamed from stdbool.h.in.
68000
68001 2003-06-06  Jim Meyering  <jim@meyering.net>
68002             Bruno Haible  <bruno@clisp.org>
68003
68004         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68005         Adjust Makefile.am snippet not to redirect directly to target.
68006         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68007
68008 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68009
68010         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68011         mismatch, look in future quarters as well as past.  This fixes a
68012         bug when processing fall-backwards gaps immediately after a long
68013         period of daylight-saving time.
68014
68015         * lib/mktime.c: Assume freestanding C89 or better.
68016         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68017         (__P): Remove; not used.
68018         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68019         (mktime, not_equal_tm, print_tm, check_result,
68020         main): Use prototypes.  Use const * where appropriate.
68021         (main): Fix typo in testing code that uncovered by above changes.
68022         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68023
68024 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68025
68026         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68027         locale.h, localeconv.  This merges changes from coreutils.
68028
68029         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68030         It can be removed after the next Autoconf is released.
68031         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68032         needed.
68033
68034 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68035
68036         * lib/mktime.c: Fix Debian bug 177940
68037         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68038         (localtime_offset): Now long int, not time_t, because we want it
68039         to be guaranteed to be signed.  All uses changed.
68040         (__mktime_internal): If overflow would occur when adding offset,
68041         don't add it.
68042
68043         Merge 'human' changes from coreutils.  Rewrite to support
68044         locale-specific notations like thousands separators.
68045         * lib/human.c: Simplify authorship notice.
68046         Include human.h immediately after config.h.
68047         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68048         <limits.h>: Do not include, since human.h does.
68049         (SIZE_MAX, UINTMAX_MAX): New macros.
68050         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68051         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68052         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68053         (power_letter): Renamed from suffixes.
68054         (generate_suffix_backwards): Remove.
68055         (adjust_value): Now takes int style (because of human.h changes)
68056         and long double value (for greater precision on some platforms).
68057         (group_number): New function.
68058         (human_readable): Use it.  Use integer options, not enum.
68059         Put the options before the sizes in the arg list.
68060         Support all the new options.
68061         The old human_readable function has been removed;
68062         use inttostr.h instead.
68063         (human_readable, default_block_size, humblock):
68064         Use uintmax_t, not int, for block sizes.
68065         (human_readable_inexact, block_size_types): Remove.
68066         (block_size_opts): New constant.
68067         (human_options): Renamed from human_block_size, with new signature
68068         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68069         * lib/human.h: Add copyright and authorship notice.
68070         Include <limits.h> and <stdbool.h> unconditionally.
68071         (PARAMS): Remove.  All uses removed.
68072         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68073         (enum human_inexact_style): Remove tag; now a nameless enum.
68074         (human_floor, human_ceiling, human_round_to_even): Now have
68075         values 2, 0, 1 rather than -1, 1, 0.
68076         (human_group_digits, human_suppress_point_zero, human_autoscale,
68077         human_base_1024, human_SI, human_B): New constants.
68078         (human_readable_inexact, human_block_size): Remove.
68079         (human_readable): Size args are now uintmax_t, not int.
68080         (human_options): New decl.
68081
68082         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68083         unnecessary now that we assume C89 or better.  This change
68084         imported from coreutils.
68085
68086         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68087         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68088         in the 2003-05-30 sync from glibc.
68089
68090         .h files should stand alone, but we shouldn't include <sys/types.h>
68091         if we can get away with just <stddef.h>.
68092
68093         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68094         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68095         rather than <sys/types.h>, as we merely need size_t.
68096         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68097         to get size_t.
68098         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68099         Include <stdio.h>, to get FILE.
68100         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68101         memcasecmp.h has included <stddef.h> and all we need is size_t.
68102         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68103         our interface, instead of including <sys/types.h>
68104
68105 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68106
68107         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68108         now, as glibc mktime is buggy on non-glibc systems.
68109
68110 2003-06-03  Karl Berry  <karl@gnu.org>
68111
68112         * config/config.sub: update from prep.
68113
68114 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68115
68116         [from coreutils]
68117         Fix some minor time-related bugs with POSIX time arguments.
68118         Some valid time stamps were being rejected (notably -1, and
68119         time stamps before 1900 on 64-bit hosts).  And some invalid
68120         time stamps were being accepted, e.g. September 31.
68121
68122         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68123         that we can return (time_t) -1 successfully.
68124         * lib/posixtm.c: Likewise.
68125         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68126         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68127         (t): Remove static var.
68128         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68129         of static var.  All uses changed.
68130         (year): Do not reject years before 1900; they can occur with
68131         64-bit time_t.
68132         (posix_time_parse): Do not check for out-of-range components;
68133         that is now the caller's responsibility, since our checks were
68134         only approximations.
68135         (posixtime): Use mktime to check for out-of-range components,
68136         since it knows them exactly.
68137         If mktime returns (time_t) -1, check whether an error actually occurred
68138         by invoking localtime on -1.
68139         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68140         posixtime failures better.
68141         Improve the test data (in comments only).
68142
68143 2003-06-02  Karl Berry  <karl@gnu.org>
68144
68145         * config/mkinstalldirs (version): new variable.
68146         (--version): new option.
68147         (usage): improve message.
68148
68149 2003-05-30  Karl Berry  <karl@gnu.org>
68150
68151         * lib/mktime.c: update from libc.
68152
68153 2003-05-30  Bruno Haible  <bruno@clisp.org>
68154
68155         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68156         * config/config.rpath: Upgrade to gettext-0.12.1.
68157
68158 2003-05-30  Bruno Haible  <bruno@clisp.org>
68159
68160         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68161         * m4/nls.m4: New file, from gettext-0.12.1.
68162         * m4/po.m4: New file, from gettext-0.12.1.
68163         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68164
68165 2003-05-30  Bruno Haible  <bruno@clisp.org>
68166
68167         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68168         * lib/localcharset.h: Likewise.
68169         * lib/localcharset.c: Likewise.
68170
68171 2003-05-29  Karl Berry  <karl@gnu.org>
68172
68173         * config/config.rpath: update from gettext.
68174
68175 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68176
68177         Assume the headers required for C89 freestanding compilers.
68178         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68179         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68180         * m4/human.m4 (gl_HUMAN): Likewise.
68181         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68182         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68183         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68184         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68185         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68186         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68187
68188 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68189
68190         Assume the headers required for C89 freestanding compilers.
68191         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68192         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68193         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68194         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68195         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68196         define, since <limits.h> is guaranteed to do that.
68197         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68198         * lib/exclude.c: Include <stdbool.h> unconditionally.
68199         * lib/tempname.c: Include <stddef.h> unconditionally.
68200         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68201         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68202         <stddef.h> does that.
68203         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68204         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68205         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68206         needed.
68207         * lib/xstrtol.c: Likewise.
68208         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68209         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68210
68211         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68212         warnings on some platforms.
68213
68214         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68215         arbitrarily.
68216
68217 2003-05-26  Jim Meyering  <jim@meyering.net>
68218
68219         Merge in a change from coreutils:
68220         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68221         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68222         that condition, rather than `-1' which is slightly misleading.
68223         Change the name of the cache variable to have the gl_ prefix.
68224         Prompted by a patch from Richard Dawe for DJGPP.
68225
68226 2003-05-24  Karl Berry  <karl@gnu.org>
68227
68228         * config/config.guess: update from prep.
68229
68230 2003-05-22  Karl Berry  <karl@gnu.org>
68231
68232         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68233
68234 2003-05-20  Karl Berry  <karl@gnu.org>
68235
68236         * config/config.guess: update from prep.
68237
68238 2003-05-18  Karl Berry  <karl@gnu.org>
68239
68240         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68241         might actually be set by the user.
68242
68243         * config/depcomp, install-sh, mdate-sh: update from automake.
68244
68245 2003-05-17  Bruno Haible  <bruno@clisp.org>
68246
68247         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68248         invalid expansion for AC_EGREP_CPP.
68249         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68250         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68251         Suggested by Akim Demaille <akim@epita.fr> in
68252         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68253
68254 2003-05-12  Jim Meyering  <jim@meyering.net>
68255
68256         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68257         the space-padded-by-default conversion specifiers, %e, %k, %l.
68258
68259 2003-05-12  Bruno Haible  <bruno@clisp.org>
68260
68261         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68262         the string is longer than 4 KB.
68263
68264 2003-05-11  Karl Berry  <karl@gnu.org>
68265
68266         * config/config.{guess,sub}: update from prep.
68267
68268 2003-05-09  Bruno Haible  <bruno@clisp.org>
68269
68270         * modules/error: Add m4/strerror_r.m4 to file list.
68271
68272 2003-05-03  Bruno Haible  <bruno@clisp.org>
68273
68274         Upgrade to Unicode-4.0.
68275         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68276         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68277         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68278         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68279         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68280         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68281         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68282         Change width of U+E0100..U+E01EF from 1 to 0.
68283
68284 2003-04-25  Jim Meyering  <jim@meyering.net>
68285
68286         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68287         of type size_t, not int.
68288
68289 2003-04-25  Bruno Haible  <bruno@clisp.org>
68290
68291         * lib/copy-file.c: Include <stddef.h>, for size_t.
68292
68293 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68294
68295         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68296         code which expansion is under static control.  Patch imported from
68297         Akim Demaille's patch to Bison; see
68298         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68299
68300 2003-04-14  Bruno Haible  <bruno@clisp.org>
68301
68302         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68303
68304 2003-04-11  Jim Meyering  <jim@meyering.net>
68305
68306         Merge changes from Coreutils.
68307
68308         2003-03-22  Jim Meyering  <jim@meyering.net>
68309
68310         * lib/strftime.c (widen): Cast alloca return value to proper type.
68311
68312         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68313
68314         From GNU libc.
68315         * lib/strftime.c (my_strftime): Handle very large width
68316         specifications for numeric values correctly.  Improve checks for
68317         overflow.
68318
68319         2003-01-19  Jim Meyering  <jim@meyering.net>
68320
68321         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68322         definitions.
68323         (nl_get_alt_digit) [! defined my_strftime]: Define.
68324         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68325         _nl_get_alt_digit and _nl_get_walt_digit.
68326
68327         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68328         libc. These changes have no effect outside of _LIBC.
68329
68330 2003-04-10  Bruno Haible  <bruno@clisp.org>
68331
68332         * modules/findprog: New file.
68333         * MODULES.html.sh (func_all_modules): Add it.
68334
68335 2003-04-10  Bruno Haible  <bruno@clisp.org>
68336
68337         * m4/findprog.m4: New file.
68338         * m4/eaccess.m4: New file.
68339
68340 2003-04-10  Bruno Haible  <bruno@clisp.org>
68341
68342         * lib/findprog.h: New file, from GNU gettext.
68343         * lib/findprog.c: New file, from GNU gettext.
68344
68345 2003-04-05  Jim Meyering  <jim@meyering.net>
68346
68347         Merge changes from Coreutils.
68348
68349         * lib/exclude.h (PARAMS): Remove definition and uses.
68350         * lib/exclude.c: Remove uses of `PARAMS'.
68351
68352         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
68353         Add test-cases for DOS filenames. Declare program_name.
68354         (main): Set up program_name.  Patch by Rich Dawe.
68355
68356         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68357         error from mntctl.
68358         Use mntctl's return value to drive the entry-processing loop, since
68359         we can't rely on the value of the vmt_length member in the last
68360         entry.  On some systems doing so could result in exhausting
68361         virtual memory.  Based in part on a patch from Mike Jetzer.
68362
68363 2003-04-04  Bruno Haible  <bruno@clisp.org>
68364
68365         * modules/linebreak: New file.
68366         * MODULES.html.sh (func_all_modules): Add it.
68367
68368 2003-04-04  Bruno Haible  <bruno@clisp.org>
68369
68370         * m4/linebreak.m4: New file.
68371
68372 2003-04-04  Bruno Haible  <bruno@clisp.org>
68373
68374         * lib/linebreak.h: New file, from GNU gettext.
68375         * lib/linebreak.c: New file, from GNU gettext with slight
68376         modifications.
68377         * lib/lbrkprop.h: New file, from GNU gettext.
68378
68379 2003-04-03  Bruno Haible  <bruno@clisp.org>
68380
68381         * modules/utf8-ucs4: New file.
68382         * modules/utf16-ucs4: New file.
68383         * modules/ucs4-utf8: New file.
68384         * modules/ucs4-utf16: New file.
68385         * MODULES.html.sh (func_all_modules): Add them.
68386
68387 2003-04-03  Bruno Haible  <bruno@clisp.org>
68388
68389         * m4/utf-ucs4.m4: New file.
68390         * m4/ucs4-utf.m4: New file.
68391
68392 2003-04-03  Bruno Haible  <bruno@clisp.org>
68393
68394         * lib/utf8-ucs4.h: New file, from GNU gettext.
68395         * lib/utf16-ucs4.h: New file, from GNU gettext.
68396         * lib/ucs4-utf8.h: New file, from GNU gettext.
68397         * lib/ucs4-utf16.h: New file, from GNU gettext.
68398
68399 2003-04-02  Bruno Haible  <bruno@clisp.org>
68400
68401         * modules/binary-io: New file.
68402         * MODULES.html.sh (func_all_modules): Add it.
68403
68404 2003-04-02  Bruno Haible  <bruno@clisp.org>
68405
68406         * lib/binary-io.h: New file, from GNU gettext.
68407
68408 2003-04-01  Bruno Haible  <bruno@clisp.org>
68409
68410         * modules/pathname: New file.
68411         * MODULES.html.sh (func_all_modules): Add it.
68412
68413 2003-04-01  Bruno Haible  <bruno@clisp.org>
68414
68415         * lib/pathname.h: New file, from GNU gettext.
68416         * lib/concatpath.c: New file, from GNU gettext.
68417
68418 2003-03-30  Bruno Haible  <bruno@clisp.org>
68419
68420         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
68421
68422 2003-03-30  Bruno Haible  <bruno@clisp.org>
68423
68424         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
68425         function chown() doesn't exist.
68426
68427 2003-03-28  Bruno Haible  <bruno@clisp.org>
68428
68429         * modules/copy-file: New file.
68430         * MODULES.html.sh (func_all_modules): Add it.
68431
68432 2003-03-28  Bruno Haible  <bruno@clisp.org>
68433
68434         * m4/copy-file.m4: New file.
68435
68436 2003-03-28  Bruno Haible  <bruno@clisp.org>
68437
68438         * lib/copy-file.h: New file, from GNU gettext.
68439         * lib/copy-file.c: New file, from GNU gettext.
68440
68441 2003-03-18  Jim Meyering  <jim@meyering.net>
68442
68443         * lib/quote.c (quote_n): Fix typo in comment.
68444
68445 2003-03-18  Bruno Haible  <bruno@clisp.org>
68446
68447         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
68448         checking.
68449         * m4/onceonly_2_57.m4: Likewise.
68450
68451 2003-03-17  Bruno Haible  <bruno@clisp.org>
68452
68453         * m4/onceonly.m4: Require autoconf 2.54 or newer.
68454         (m4_quote): Remove macro.
68455         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
68456
68457 2003-03-14  Jim Meyering  <jim@meyering.net>
68458
68459         Merge changes from Coreutils.
68460         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
68461         to be const, in order to avoid warnings.
68462         (obstack_room): Likewise.
68463         (obstack_empty_p): Likewise.
68464
68465 2003-03-14  Bruno Haible  <bruno@clisp.org>
68466
68467         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
68468         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
68469
68470 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68471
68472         Merge changes from Bison.
68473         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
68474         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
68475         when compiling Bison 1.875's `bitset bset = obstack_alloc
68476         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
68477         * lib/hash.c: Include <stdbool.h> unconditionally.
68478
68479 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68480
68481         * m4/onceonly.m4 (m4_quote): New macro.
68482         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
68483         Quote AC_FOREACH variable-expansions properly.
68484
68485 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68486
68487         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
68488
68489 2003-03-09  Paul Eggert  <eggert@twinsun.com>
68490
68491         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
68492         Reported by Bruce Becker; see:
68493         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
68494
68495 2003-03-03  Paul Eggert  <eggert@twinsun.com>
68496             Bruno Haible  <bruno@clisp.org>
68497
68498         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
68499         Reported by John Hughes, see
68500         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
68501
68502 2003-02-20  Bruno Haible  <bruno@clisp.org>
68503
68504         * MODULES.html.sh (func_all_modules): Add poll.
68505
68506 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68507
68508         * modules/poll: New file.
68509
68510 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68511
68512         * lib/poll_.h: New file.
68513         * lib/poll.c: New file.
68514
68515 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68516
68517         * m4/poll.m4: New file.
68518
68519 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68520
68521         * modules/mathl: New file.
68522
68523 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68524
68525         * lib/mathl.h: New file.
68526         * lib/acosl.c: New file.
68527         * lib/asinl.c: New file.
68528         * lib/atanl.c: New file.
68529         * lib/ceill.c: New file.
68530         * lib/cosl.c: New file.
68531         * lib/expl.c: New file.
68532         * lib/floorl.c: New file.
68533         * lib/frexpl.c: New file.
68534         * lib/ldexpl.c: New file.
68535         * lib/logl.c: New file.
68536         * lib/sincosl.c: New file.
68537         * lib/sinl.c: New file.
68538         * lib/sqrtl.c: New file.
68539         * lib/tanl.c: New file.
68540         * lib/trigl.c: New file.
68541         * lib/trigl.h: New file.
68542
68543 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68544
68545         * m4/mathl.m4: New file.
68546
68547 2003-02-18  Bruno Haible  <bruno@clisp.org>
68548
68549         * MODULES.html.sh (func_all_modules): Add mathl.
68550
68551 2003-02-17  Bruno Haible  <bruno@clisp.org>
68552
68553         * modules/mkdtemp: New module.
68554         * MODULES.html.sh (func_all_modules): Add it.
68555
68556 2003-02-17  Bruno Haible  <bruno@clisp.org>
68557
68558         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
68559
68560 2003-02-17  Bruno Haible  <bruno@clisp.org>
68561
68562         * lib/mkdtemp.h: New file, from GNU gettext.
68563         * lib/mkdtemp.c: New file, from GNU gettext.
68564
68565 2003-02-02  Jim Meyering  <jim@meyering.net>
68566
68567         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
68568         e.g. glibc-2.2.93.
68569
68570 2003-01-31  Bruno Haible  <bruno@clisp.org>
68571
68572         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
68573         'rpl_rename'.
68574         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
68575         'rpl_strnlen'.
68576         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
68577         'rpl_strtod'.
68578         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
68579         'rpl_utime'.
68580
68581 2003-01-31  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/rename.c: #undef rename before defining rpl_rename.
68584         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
68585
68586 2003-01-30  Bruno Haible  <bruno@clisp.org>
68587
68588         * modules/vasnprintf, modules/vasprintf: New modules.
68589         * MODULES.html.sh (func_all_modules): Add them.
68590
68591 2003-01-30  Bruno Haible  <bruno@clisp.org>
68592
68593         * m4/signed.m4: New file, from GNU gettext.
68594         * m4/longdouble.m4: New file, from GNU gettext.
68595         * m4/wchar_t.m4: New file, from GNU gettext.
68596         * m4/wint_t.m4: New file, from GNU gettext.
68597         * m4/vasnprintf.m4: New file.
68598         * m4/vasprintf.m4: New file.
68599
68600 2003-01-30  Bruno Haible  <bruno@clisp.org>
68601
68602         * lib/printf-args.h: New file, from GNU gettext.
68603         * lib/printf-args.c: New file, from GNU gettext.
68604         * lib/printf-parse.h: New file, from GNU gettext.
68605         * lib/printf-parse.c: New file, from GNU gettext.
68606         * lib/vasnprintf.h: New file, from GNU gettext.
68607         * lib/vasnprintf.c: New file, from GNU gettext.
68608         * lib/asnprintf.c: New file, from GNU gettext.
68609         * lib/vasprintf.h: New file, from GNU gettext with modifications.
68610         * lib/vasprintf.c: New file, from GNU gettext.
68611         * lib/asprintf.c: New file, from GNU gettext.
68612
68613 2003-01-29  Bruno Haible  <bruno@clisp.org>
68614
68615         * modules/stpncpy: New module.
68616         * MODULES.html.sh (func_all_modules): Add it.
68617
68618 2003-01-29  Bruno Haible  <bruno@clisp.org>
68619
68620         * m4/stpncpy.m4: New file.
68621
68622 2003-01-29  Bruno Haible  <bruno@clisp.org>
68623
68624         * lib/stpncpy.h: New file, from GNU gettext with modifications.
68625         * lib/stpncpy.c: New file, from GNU gettext with modifications.
68626
68627 2003-01-28  Bruno Haible  <bruno@clisp.org>
68628
68629         * modules/c-ctype: New module.
68630         * MODULES.html.sh (func_all_modules): Add it.
68631
68632 2003-01-28  Bruno Haible  <bruno@clisp.org>
68633
68634         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
68635         Paul Eggert.
68636         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
68637         Paul Eggert.
68638
68639 2003-01-27  Bruno Haible  <bruno@clisp.org>
68640
68641         * modules/xsetenv: New module.
68642         * MODULES.html.sh (func_all_modules): Add it.
68643
68644 2003-01-27  Bruno Haible  <bruno@clisp.org>
68645
68646         * lib/xsetenv.h: New file, from GNU gettext.
68647         * lib/xsetenv.c: New file, from GNU gettext.
68648
68649 2003-01-23  Jim Meyering  <jim@meyering.net>
68650
68651         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
68652         from working on systems without dirfd (at least Irix and OSF1/Tru64).
68653
68654 2003-01-23  Bruno Haible  <bruno@clisp.org>
68655
68656         * modules/minmax: New module.
68657         * MODULES.html.sh (func_all_modules): Add it.
68658
68659 2003-01-23  Bruno Haible  <bruno@clisp.org>
68660
68661         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
68662         Eggert.
68663
68664 2003-01-22  Bruno Haible  <bruno@clisp.org>
68665
68666         * modules/exit: New module.
68667         * MODULES.html.sh (func_all_modules): Add it.
68668
68669 2003-01-22  Bruno Haible  <bruno@clisp.org>
68670
68671         * lib/exit.h: New file, from GNU gettext.
68672
68673 2003-01-19  Bruno Haible  <bruno@clisp.org>
68674
68675         * gnulib-tool: Recognize option --extract-maintainer.
68676         (func_get_maintainer): New function.
68677         * modules/*: Add Maintainer entry.
68678
68679 2003-01-16  Jim Meyering  <jim@meyering.net>
68680
68681         * m4/regex.m4: The `regex' struct is both input and output.
68682         Initialize it before each use.  Patch by Tim Waugh.
68683
68684 2003-01-16  Bruno Haible  <bruno@clisp.org>
68685
68686         * MODULES.html.sh: Add a table of contents. Add the module name as
68687         leftmost column. Add hyperlinks.
68688
68689 2003-01-15  Bruno Haible  <bruno@clisp.org>
68690
68691         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
68692
68693 2003-01-15  Bruno Haible  <bruno@clisp.org>
68694
68695         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
68696         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
68697         suffix.
68698
68699 2003-01-15  Bruno Haible  <bruno@clisp.org>
68700
68701         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
68702
68703 2003-01-15  Bruno Haible  <bruno@clisp.org>
68704
68705         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
68706         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
68707
68708 2003-01-14  Jim Meyering  <jim@meyering.net>
68709
68710         * lib/same.c (same_name): Tweak a comment.
68711
68712 2003-01-14  Bruno Haible  <bruno@clisp.org>
68713
68714         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
68715         when a string comparison is sufficient.
68716
68717 2003-01-14  Bruno Haible  <bruno@clisp.org>
68718
68719         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
68720         'unsigned int'.
68721
68722 2003-01-14  Bruno Haible  <bruno@clisp.org>
68723
68724         * lib/hash-pjw.c: Add comment about low quality of this function.
68725
68726 2003-01-13  Bruno Haible  <bruno@clisp.org>
68727
68728         * modules/stpcpy: Distribute lib/stpcpy.h.
68729         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
68730
68731 2003-01-13  Bruno Haible  <bruno@clisp.org>
68732
68733         * modules/*: Add a description.
68734         * modules/strpbrk: Fix Makefile.am snippet.
68735         * modules/strtoimax: Fix dependencies.
68736         * modules/strtoumax: Likewise.
68737
68738 2003-01-13  Bruno Haible  <bruno@clisp.org>
68739
68740         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
68741         * modules/alloca (Makefile.am): All object files depend on alloca.h.
68742         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
68743
68744 2003-01-13  Bruno Haible  <bruno@clisp.org>
68745
68746         * gnulib-tool (func_create_testdir): Store config/* files in the main
68747         directory.
68748         * config.rpath: Move to ...
68749         * config/config.rpath: ... here.
68750         * modules/gettext: Contains config/config.rpath, not config.rpath.
68751         * modules/iconv: Likewise.
68752
68753 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68754
68755         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68756         to avoid collisions with libcurses and libreadline.
68757
68758         * m4/getstr.m4: Remove.
68759         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
68760
68761 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68762
68763         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68764         to avoid collisions with libcurses and libreadline.
68765
68766         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
68767         * lib/getstr.h, getstr.c: Remove.
68768         * lib/getline.c: Include "getline.h", to check interface.
68769         Move body of old getstr.c here: this defines MIN_CHUNK and
68770         declares getdelim2, which is renamed from getstr.
68771         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
68772
68773         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
68774         All uses changed.
68775         * lib/linebuffer.h: Likewise.
68776         (readline): Remove backward-compatibility macro.
68777
68778 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68779
68780         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68781         to avoid collisions with libcurses and libreadline.
68782         * getstr: Remove.
68783         * MODULES.html.sh: Remove getstr.
68784         * modules/getline: Depend on unlocked-io, not getstr.
68785
68786 2003-01-12  Jim Meyering  <jim@meyering.net>
68787
68788         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
68789
68790 2003-01-10  Bruno Haible  <bruno@clisp.org>
68791
68792         * modules/alloca: Change Makefile.am requirements. Simplify Include
68793         requirements. Add lib/alloca_.h to file list.
68794
68795 2003-01-10  Bruno Haible  <bruno@clisp.org>
68796
68797         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
68798
68799 2003-01-10  Bruno Haible  <bruno@clisp.org>
68800
68801         * lib/alloca_.h: New file.
68802         * lib/getdate.y: Unconditionally include alloca.h.
68803         * lib/makepath.c: Likewise.
68804         * lib/setenv.c: Likewise.
68805         * lib/userspec.c: Likewise.
68806
68807 2003-01-09  Karl Berry  <karl@gnu.org>
68808
68809         * MODULES.html.sh: include `dirname $0` in PATH, to find
68810         gnulib-tool.
68811
68812 2003-01-09  Bruno Haible  <bruno@clisp.org>
68813
68814         * modules/stdbool: Change configure.ac, Makefile.am requirements.
68815         Simplify Include requirements. Add lib/stdbool.h.in to file list.
68816
68817 2003-01-09  Bruno Haible  <bruno@clisp.org>
68818
68819         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
68820
68821 2003-01-09  Bruno Haible  <bruno@clisp.org>
68822
68823         * lib/stdbool.h.in: New file.
68824
68825 2003-01-09  Bruno Haible  <bruno@clisp.org>
68826
68827         * gnulib-tool (func_all_modules): Ignore files ending in ~.
68828         * MODULES.html.sh: Likewise.
68829
68830 2003-01-08  Jim Meyering  <jim@meyering.net>
68831
68832         * lib/full-write.c: Undefine and define-away `const' after inclusion
68833         of errno.h, not before.  Suggestion from Bruno Haible.
68834
68835 2003-01-08  Bruno Haible  <bruno@clisp.org>
68836
68837         * modules/full-read: Depend on full-write.
68838
68839 2003-01-08  Bruno Haible  <bruno@clisp.org>
68840
68841         * lib/safe-read.c: Include specification header first, to ensure its
68842         selfcontainedness.
68843         * lib/full-write.c: Likewise.
68844
68845 2003-01-07  Jim Meyering  <jim@meyering.net>
68846
68847         * lib/full-write.c: Rework so that it may serve to define full_read,
68848         too.
68849         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
68850
68851 2003-01-07  Bruno Haible  <bruno@clisp.org>
68852
68853         * lib/strtoimax.c: Include <stdint.h> as an alternative to
68854         <inttypes.h>.
68855         * lib/xstrtol.h: Likewise.
68856         * lib/xstrtoimax.c: Likewise.
68857         * lib/xstrtoumax.c: Likewise.
68858         * lib/human.h: Likewise.
68859
68860         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
68861         on systems that have <inttypes.h> but not <stdint.h>.
68862
68863 2003-01-07  Bruno Haible  <bruno@clisp.org>
68864
68865         * MODULES.html.sh: Add copyright notice.
68866         (missed_files): Omit CVS directory entries.
68867         (func_module): Make it work with sed-3.02.
68868         * MODULES.txt: Remove file.
68869
68870 2003-01-06  Jim Meyering  <jim@meyering.net>
68871
68872         * lib/version-etc.c: Update year in translatable copyright string.
68873
68874 2003-01-03  Karl Berry  <karl@gnu.org>
68875
68876         * config/config.{guess,sub}: update from prep.
68877
68878 2003-01-02  Karl Berry  <karl@gnu.org>
68879
68880         * doc/COPYING.DOC: belatedly updated to 1.2.
68881
68882 2003-01-01  Karl Berry  <karl@gnu.org>
68883
68884         * gnulib-tool (func_verify_module): report module name $module in
68885         error message, not $1.
68886         * gnulib-tool (create-testdir): don't complain if destdir couldn't
68887         be created, only if it doesn't exist.
68888         * gnulib-tool (last_checkin_date): don't expand the $Date here.
68889
68890 2002-12-31  Paul Eggert  <eggert@twinsun.com>
68891
68892         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
68893
68894 2002-12-31  Paul Eggert  <eggert@twinsun.com>
68895
68896         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
68897         memcmp if strcoll doesn't work.
68898
68899 2002-12-31  Bruno Haible  <bruno@clisp.org>
68900
68901         * lib/utime.c (utime_null): No need to call ftruncate if the file was
68902         nonempty.
68903
68904 2002-12-31  Bruno Haible  <bruno@clisp.org>
68905
68906         * lib/memcoll.c (STRCOLL): New macro.
68907         (memcoll): Use it.
68908
68909 2002-12-31  Bruno Haible  <bruno@clisp.org>
68910
68911         * lib/localcharset.h: New file.
68912         * lib/localcharset.c: Include it.
68913         * lib/unicodeio.c: Likewise.
68914
68915 2002-12-31  Bruno Haible  <bruno@clisp.org>
68916
68917         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
68918         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
68919
68920 2002-12-31  Bruno Haible  <bruno@clisp.org>
68921
68922         * lib/getline.h: Include <stddef.h>, for size_t.
68923
68924         * lib/unicodeio.h: Include <stddef.h>, for size_t.
68925         * lib/unicodeio.c: Don't include <stddef.h>.
68926
68927 2002-12-31  Bruno Haible  <bruno@clisp.org>
68928
68929         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
68930         HAVE_TM_ZONE.
68931
68932 2002-12-24  Karl Berry  <karl@gnu.org>
68933
68934         * config/config.guess: update from prep.
68935
68936 2002-12-24  Bruno Haible  <bruno@clisp.org>
68937
68938         General infrasructure.
68939         * m4/README: Rewritten.
68940         * m4/onceonly.m4: New file.
68941         * m4/onceonly_2_57.m4: New file.
68942
68943         Module atexit.
68944         * m4/atexit.m4: New file.
68945
68946         Module strtod.
68947         * m4/strtod.m4: New file.
68948
68949         Module strtol.
68950         * m4/strtol.m4: New file.
68951
68952         Module strtoul.
68953         * m4/strtoul.m4: New file.
68954
68955         Module memchr.
68956         * m4/memchr.m4: New file.
68957
68958         Module memcmp.
68959         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
68960         (jm_FUNC_MEMCMP): Invoke it.
68961
68962         Module memcpy.
68963         * m4/memcpy.m4: New file.
68964
68965         Module memmove.
68966         * m4/memmove.m4: New file.
68967
68968         Module memset.
68969         * m4/memset.m4: New file.
68970
68971         Module strcspn.
68972         * m4/strcspn.m4: New file.
68973
68974         Module strpbrk.
68975         * m4/strpbrk.m4: New file.
68976
68977         Module strstr.
68978         * m4/strstr.m4: New file.
68979
68980         Module strerror.
68981         * m4/strerror.m4: New file.
68982
68983         Module mktime.
68984         * m4/mktime.m4: Renamed from jm-mktime.m4.
68985         (gl_PREREQ_MKTIME): New macro.
68986         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
68987
68988         Module malloc.
68989         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
68990         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
68991         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
68992
68993         Module realloc.
68994         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
68995         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
68996         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
68997
68998         Module strftime.
68999         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69000         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69001         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69002         gl_TM_GMTOFF.
69003         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69004
69005         Module xalloc.
69006         * m4/xalloc.m4: New file.
69007
69008         Module alloca.
69009         * m4/alloca.m4: New file.
69010
69011         Module putenv.
69012         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69013         (jm_FUNC_PUTENV): Invoke it.
69014
69015         Module setenv.
69016         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69017         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69018         when invoked twice.
69019         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69020         gt_FUNC_SETENV.
69021
69022         Module memrchr.
69023         * m4/memrchr.m4: New file.
69024
69025         Module stpcpy.
69026         * m4/stpcpy.m4: New file.
69027
69028         Module strcase.
69029         * m4/strcase.m4: New file.
69030
69031         Module strdup.
69032         * m4/strdup.m4: New file.
69033
69034         Module strnlen.
69035         * m4/strnlen.m4: New file.
69036
69037         Module strndup.
69038         * m4/strndup.m4: New file.
69039
69040         Module xstrtod.
69041         * m4/xstrtod.m4: New file.
69042
69043         Module xstrtol.
69044         * m4/xstrtol.m4: New file.
69045
69046         Module getdate.
69047         * m4/getdate.m4: New file.
69048
69049         Module unlocked-io.
69050         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69051         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69052         * m4/jm-glibc-io.m4n: Remove file.
69053
69054         Module long-options.
69055         * m4/long-options.m4: New file.
69056
69057         Module md5.
69058         * m4/md5.m4: New file.
69059
69060         Module sha.
69061         * m4/sha.m4: New file.
69062
69063         Module getstr.
69064         * m4/getstr.m4: New file.
69065
69066         Module getline.
69067         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69068         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69069         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69070         simply getline. Infoke gl_PREREQ_GETLINE.
69071
69072         Module obstack.
69073         * m4/obstack.m4: New file.
69074
69075         Module hash.
69076         * m4/hash.m4: New file.
69077
69078         Module readtokens.
69079         * m4/readtokens.m4: New file.
69080
69081         Module strverscmp.
69082         * m4/strverscmp.m4: New file.
69083
69084         Module stdbool.
69085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69086         OSF/1.
69087
69088         Module strtoll.
69089         * m4/strtoll.m4: New file.
69090
69091         Module strtoull.
69092         * m4/strtoull.m4: New file.
69093
69094         Module strtoimax.
69095         * m4/strtoimax.m4: New file.
69096
69097         Module strtoumax.
69098         * m4/strtoumax.m4: New file.
69099
69100         Module xstrtoimax.
69101         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69102         jm_AC_PREREQ_XSTRTOIMAX.
69103         Moved the strtol prerequisites to strtol.m4.
69104         Moved the strtoll prerequisites to strtoll.m4.
69105         Moved the strtoimax prerequisites to strtoimax.m4.
69106
69107         Module xstrtoumax.
69108         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69109         jm_AC_PREREQ_XSTRTOUMAX.
69110         Moved the strtoul prerequisites to strtoul.m4.
69111         Moved the strtoull prerequisites to strtoull.m4.
69112         Moved the strtoumax prerequisites to strtoumax.m4.
69113
69114         Module chown.
69115         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69116         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69117
69118         Module dup2.
69119         * m4/dup2.m4: New file.
69120
69121         Module ftruncate.
69122         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69123         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69124
69125         Module getgroups.
69126         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69127         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69128
69129         Module gettimeofday.
69130         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69131         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69132         gl_PREREQ_GETTIMEOFDAY.
69133
69134         Module mkdir.
69135         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69136         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69137
69138         Module mkstemp.
69139         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69140         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69141         jm_AC_TYPE_UINTMAX_T.
69142         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69143
69144         Module stat.
69145         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69146         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69147
69148         Module lstat.
69149         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69150         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69151
69152         Module timespec.
69153         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69154         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69155         * m4/st_mtim.m4: Indentation.
69156
69157         Module nanosleep.
69158         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69159         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69160         gl_PREREQ_NANOSLEEP.
69161
69162         Module regex.
69163         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69164         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69165         (gl_REGEX): New macro.
69166
69167         Module rename.
69168         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69169         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69170
69171         Module rmdir.
69172         * m4/rmdir.m4: New file.
69173
69174         Module utime.
69175         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69176         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69177         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69178
69179         Module dirname.
69180         * m4/dirname.m4: New file.
69181
69182         Module getopt.
69183         * m4/getopt.m4: New file.
69184
69185         Module unistd-safer.
69186         * m4/unistd-safer.m4: New file.
69187
69188         Module fnmatch.
69189         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69190         declaration.
69191         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69192         (gl_FUNC_FNMATCH_POSIX): New macro.
69193         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69194         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69195         simply fnmatch.
69196
69197         Module exclude.
69198         * m4/exclude.m4: New file.
69199
69200         Module human.
69201         * m4/human.m4: New file.
69202
69203         Module acl.
69204         * m4/acl.m4: Nop.
69205
69206         Module backupfile.
69207         * m4/backupfile.m4: New file.
69208         * m4/d-ino.m4: Indentation.
69209
69210         Module fsusage.
69211         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69212         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69213         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69214
69215         Module dirfd.
69216         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69217         requirements.
69218
69219         Module euidaccess.
69220         * m4/euidaccess.m4: New file.
69221
69222         Module file-type.
69223         * m4/file-type.m4: New file.
69224
69225         Module fileblocks.
69226         * m4/fileblocks.m4: New file.
69227
69228         Module filemode.
69229         * m4/filemode.m4: New file.
69230
69231         Module isdir.
69232         * m4/isdir.m4: New file.
69233
69234         Module lchown.
69235         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69236         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69237
69238         Module makepath.
69239         * m4/makepath.m4: New file.
69240
69241         Module modechange.
69242         * m4/modechange.m4: New file.
69243
69244         Module mountlist.
69245         * m4/mountlist.m4: New file.
69246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69247         Indentation.
69248
69249         Module path-concat.
69250         * m4/path-concat.m4: New file.
69251
69252         Module pathmax.
69253         * m4/pathmax.m4: New file.
69254
69255         Module same.
69256         * m4/same.m4: New file.
69257
69258         Module save-cwd.
69259         * m4/save-cwd.m4: New file.
69260
69261         Module savedir.
69262         * m4/savedir.m4: New file.
69263
69264         Module xgetcwd.
69265         * m4/xgetcwd.m4: New file.
69266         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69267
69268         Module xreadlink.
69269         * m4/xreadlink.m4: New file.
69270
69271         Module safe-read.
69272         * m4/safe-read.m4: New file.
69273
69274         Module safe-write.
69275         * m4/safe-write.m4: New file.
69276
69277         Module closeout.
69278         * m4/closeout.m4: New file.
69279
69280         Module stdio-safer.
69281         * m4/stdio-safer.m4: New file.
69282
69283         Module getpass.
69284         * m4/getpass.m4: New file.
69285
69286         Module getugroups.
69287         * m4/getugroups.m4: New file.
69288
69289         Module group-member.
69290         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69291         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69292
69293         Module idcache.
69294         * m4/idcache.m4: New file.
69295
69296         Module userspec.
69297         * m4/userspec.m4: New file.
69298
69299         Module gettime.
69300         * m4/clock_time.m4: New file.
69301         * m4/gettime.m4: New file.
69302
69303         Module settime.
69304         * m4/settime.m4: New file.
69305
69306         Module posixtm.
69307         * m4/posixtm.m4: New file.
69308
69309         Module gethostname.
69310         * m4/gethostname.m4: New file.
69311
69312         Module canon-host.
69313         * m4/canon-host.m4: New file.
69314
69315         Module gettext.
69316         * m4/codeset.m4: New file, from gettext-0.11.5.
69317         * m4/gettext.m4: New file, from gettext-0.11.5.
69318         * m4/glibc21.m4: New file, from gettext-0.11.5.
69319         * m4/iconv.m4: New file, from gettext-0.11.5.
69320         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69321         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69322         * m4/inttypes.m4: New file, from gettext-0.11.5.
69323         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69324         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69325         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69326         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69327         * m4/lib-link.m4: New file, from gettext-0.11.5.
69328         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69329         * m4/progtest.m4: New file, from gettext-0.11.5.
69330         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69331         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69332         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69333
69334         Module localcharset.
69335         * m4/localcharset.m4: New file.
69336
69337         Module hard-locale.
69338         * m4/hard-locale.m4: New file.
69339
69340         Module mbswidth.
69341         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
69342         onceonly macros.
69343         * m4/mbrtowc.m4: Add comment.
69344
69345         Module memcasecmp.
69346         * m4/memcasecmp.m4: New file.
69347
69348         Module memcoll.
69349         * m4/memcoll.m4: New file.
69350
69351         Module unicodeio.
69352         * m4/unicodeio.m4: New file.
69353
69354         Module rpmatch.
69355         * m4/rpmatch.m4: New file.
69356
69357         Module yesno.
69358         * m4/yesno.m4: New file.
69359
69360         Module exitfail.
69361         * m4/exitfail.m4: New file.
69362
69363         Module c-stack.
69364         * m4/c-stack.m4 (gl_C_STACK): New macro.
69365         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69366
69367         Module error.
69368         * m4/error.m4 (gl_ERROR): New macro.
69369         (jm_PREREQ_ERROR): Use onceonly macros.
69370
69371         Module fatal.
69372         * m4/fatal.m4: New file.
69373
69374         Module getloadavg.
69375         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69376         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69377
69378         Module getpagesize.
69379         * m4/getpagesize.m4: New file.
69380
69381         Module getusershell.
69382         * m4/getusershell.m4: New file.
69383
69384         Module physmem.
69385         * m4/physmem.m4: New file.
69386
69387         Module posixver.
69388         * m4/posixver.m4: New file.
69389
69390         Module quotearg.
69391         * m4/quotearg.m4: New file.
69392
69393         Module quote.
69394         * m4/quote.m4: New file.
69395
69396         Module readutmp.
69397         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69398
69399         Module sig2str.
69400         * m4/sig2str.m4: New file.
69401
69402         Other.
69403         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69404         ulonglong.m4.
69405         * m4/intmax_t.m4: New file.
69406         * m4/d-type.m4: Indentation.
69407         * m4/jm-macros.m4: Update.
69408         * m4/prereq.m4 (jm_PREREQ): Update.
69409         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69410         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69411         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
69412         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
69413         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
69414         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
69415         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
69416         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
69417         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
69418         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
69419         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
69420         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
69421         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
69422         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
69423         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
69424         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
69425         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
69426         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
69427         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
69428
69429 2002-12-24  Bruno Haible  <bruno@clisp.org>
69430
69431         * MODULES.txt: Update according to m4/ changes.
69432
69433         Module gettext.
69434         * config.rpath: New file, from gettext-0.11.5.
69435
69436         * modules/*: New module descriptions.
69437         * gnulib-tool: New file.
69438         * MODULES.html.sh: New file.
69439
69440 2002-12-21  Karl Berry  <karl@gnu.org>
69441
69442         * doc/fdl.texi: update to version 1.2.
69443
69444 2002-12-19  Karl Berry  <karl@gnu.org>
69445
69446         * config/config.guess: update from prep.
69447
69448 2002-12-18  Bruno Haible  <bruno@clisp.org>
69449
69450         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
69451         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
69452
69453 2002-12-17  Bruno Haible  <bruno@clisp.org>
69454
69455         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
69456         stdlib.h, string.h.
69457
69458 2002-12-17  Bruno Haible  <bruno@clisp.org>
69459
69460         * lib/canon-host.c (strdup): Remove unused declaration.
69461
69462         * lib/fsusage.c: Include full_read.h.
69463         (get_fs_usage): Use full_read instead of safe_read.
69464
69465         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
69466
69467 2002-12-12  Karl Berry  <karl@gnu.org>
69468
69469         * config/config.guess: update from prep.
69470
69471 2002-12-11  Bruno Haible  <bruno@clisp.org>
69472
69473         * m4/setenv.m4: New file, from gettext-0.11.5.
69474
69475 2002-12-11  Bruno Haible  <bruno@clisp.org>
69476
69477         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
69478         not unsetenv().
69479         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
69480         modifications:
69481
69482         2002-12-11  Bruno Haible  <bruno@clisp.org>
69483
69484                 * setenv.c (alloca): Fall back to malloc.
69485                 (freea): New macro.
69486                 (setenv): Use freea() to free memory allocated with alloca().
69487
69488         2002-11-13  Bruno Haible  <bruno@clisp.org>
69489
69490                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
69491                 function declarations.
69492                 * unsetenv.c (unsetenv): Likewise.
69493
69494         2002-03-04  Bruno Haible  <bruno@clisp.org>
69495
69496                 Portability to AIX 4.3.3.
69497                 * unsetenv.c: New file, extracted from setenv.c.
69498                 * setenv.c: Move the unsetenv() function to unsetenv.c.
69499
69500         2001-12-20  Bruno Haible  <bruno@clisp.org>
69501
69502                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
69503                 use malloc instead. For SunOS 4.
69504
69505         2001-12-11  Bruno Haible  <bruno@clisp.org>
69506
69507                 * setenv.c: Declare alloca.
69508                 (compar_fn_t): New typedef.
69509                 (KNOWN_VALUE, STORE_VALUE): Use it.
69510
69511         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
69512         setenv.h.
69513
69514 2002-12-10  Paul Eggert  <eggert@twinsun.com>
69515
69516         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
69517         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
69518         Choose values that are less likely to collide with system fnmatch
69519         options.
69520         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
69521         defined (e.g., a pure POSIX system).
69522         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
69523         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
69524
69525 2002-12-06  Paul Eggert  <eggert@twinsun.com>
69526
69527         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
69528         a pain in practice to deal with generated m4 files.  This change
69529         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
69530
69531         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
69532         and jm-glibc-io.m4, as they are no longer a special case.
69533         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
69534         kludge and the auto-generation stuff.  Check only whether the
69535         functions are declared, not whether they exist, since older hosts
69536         that don't declare the functions can't use the optimization anyway.
69537
69538 2002-12-06  Jim Meyering  <jim@meyering.net>
69539
69540         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
69541
69542         Merge in changes from libc's misc/error.c, in preparation
69543         for the merge of gnulib's changes back into libc.
69544
69545         * lib/error.c (_): Define only if not already defined.
69546         Move definition to follow all #include directives.
69547         Include unlocked-io.h only if !_LIBC.
69548         [_LIBC]: Include <libio/libioP.h>.
69549         [USE_IN_LIBIO]: Include <libio/iolibio.h>
69550         (fflush): Tweak definition to use INTUSE.
69551         (putc): Define.
69552
69553 2002-12-05  Paul Eggert  <eggert@twinsun.com>
69554
69555         * lib/alloca.c [defined emacs]: Include "lisp.h".
69556         (xalloc_die) [defined emacs]: New macro.
69557         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
69558         [! defined emacs]: Include <xalloc.h>.
69559         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
69560         (pointer): Typedef to POINTER_TYPE *.
69561         (malloc): Remove decl; we now always use xmalloc.
69562         (alloca): Use old-style definition, since Emacs needs this.
69563         Check for arithmetic overflow when computing combined size.
69564
69565 2002-12-04  Paul Eggert  <eggert@twinsun.com>
69566
69567         Do not generate unlocked-io.h automatically, since it's easier to
69568         maintain it by hand.
69569
69570         * lib/unlocked-io.h: New file, from GNU diffutils,
69571         but with proper copyright notice and attribution.
69572         * lib/gen-uio: Remove.
69573         * lib/Makefile.am: Add copyright notice.
69574         (libfetish_a_SOURCES): Add unlocked-io.h.
69575         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
69576         (DISTCLEANFILES, io_functions): Remove macros.
69577         (EXTRA_DIST): Remove gen_uio.
69578         (unlocked-io.h): Remove rule.
69579
69580 2002-12-04  Jim Meyering  <jim@meyering.net>
69581
69582         Reflect the fact that stat.c and lstat.c are no longer generated.
69583         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
69584         (DISTCLEANFILES): Likewise.
69585         (EXTRA_DIST): Likewise.
69586         (all_local): Don't depend on stat.c or lstat.c.
69587         (stat.c, lstat.c): Remove rules.
69588         (EXTRA_DIST): Remove xstat.in.
69589
69590         * lib/xstat.in: Remove file.  Contents moved into stat.c.
69591         * lib/stat.c: New file.  Contents mostly from xstat.in.
69592         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
69593         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
69594
69595         * lib/safe-read.c: Rework so that it may serve to define safe_write,
69596         too.
69597         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
69598
69599 2002-12-03  Jim Meyering  <jim@meyering.net>
69600
69601         * lib/safe-read.c, safe-write.c: Change variable names and comments,
69602         but not semantics, to minimize the differences between these two files.
69603         (safe_read): Change comment to mention SAFE_READ_ERROR.
69604
69605         * lib/safe-read.c (IS_EINTR): Define.
69606         (safe_read): Use IS_EINTR in place of in-function cpp directives.
69607
69608 2002-12-02  Jim Meyering  <jim@meyering.net>
69609
69610         * lib/safe-read.c (EINTR): Define.
69611         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69612         (INT_MAX): Provide fallback.
69613         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
69614
69615         * lib/safe-read.h (SAFE_READ_ERROR): Define.
69616
69617 2002-12-02  Bruno Haible  <bruno@clisp.org>
69618
69619         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
69620         Define, taken from safe-read.c.
69621         (INT_MAX): Provide fallback.
69622         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
69623         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
69624
69625         * lib/safe-read.c (EINTR): Remove definition.
69626         (safe_read): Don't use EINTR if it is absent.
69627
69628 2002-12-01  Jim Meyering  <jim@meyering.net>
69629
69630         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
69631         zero.
69632         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
69633
69634 2002-11-27  Paul Eggert  <eggert@twinsun.com>
69635
69636         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
69637         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
69638         with `if (! (value < limit)) abort ();', for readability.
69639
69640 2002-11-26  Karl Berry  <karl@gnu.org>
69641
69642         * lib/strdup.c: copy from libc again, with jim's ok.
69643         * lib/.cppi-disable: re-add strdup.c
69644
69645 2002-11-25  Karl Berry  <karl@gnu.org>
69646
69647         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
69648         instead of "strtol.c".
69649
69650 2002-11-25  Karl Berry  <karl@gnu.org>
69651
69652         * config/install-sh: update from automake for variable quoting, $0 in
69653         error msgs, etc.
69654
69655         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
69656         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
69657         entry.
69658
69659 2002-11-25  Jim Meyering  <jim@meyering.net>
69660
69661         * lib/mktime.c: Sync from libc, now that it has the latest fix.
69662
69663 2002-11-24  Karl Berry  <karl@gnu.org>
69664
69665         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
69666         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
69667
69668 2002-11-24  Jim Meyering  <jim@meyering.net>
69669
69670         Update from coreutils:
69671
69672         * lib/mktime.c: Merge in changes from libc.
69673
69674         Avoid a link-time failure on some Linux systems.
69675         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
69676         (otherwise).
69677         (__mon_yday): Declare with the STATIC attribute.
69678         (__mktime_internal): Likewise.
69679         Based on a report from Greg Schafer.
69680
69681 2002-11-23  Jim Meyering  <jim@meyering.net>
69682
69683         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
69684         Use `unsigned', not `int', as type of index.
69685
69686         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
69687
69688         * lib/fsusage.c: Remove unneeded parentheses around operands of
69689         `defined'.
69690
69691 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69692
69693         * lib/quotearg.h: Allow multiple inclusion by surrounding with
69694         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
69695         so that we can be included first.
69696         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
69697         * lib/quotearg.c: Include quotearg.h immediately after config.h.
69698         No need to include stddef.h or sys/types.h any more.
69699         Surround local include files with "", not "<>".
69700         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
69701         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
69702         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
69703         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
69704         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
69705         (ISPRINT): Remove; no longer needed now that we assume C89.
69706
69707         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
69708         Preserve errno.
69709
69710         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
69711         quotearg_char): Use SIZE_MAX rather than
69712         (size_t) -1 when we are talking about "infinity".
69713
69714         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
69715
69716 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69717
69718         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
69719         hint that one should use `if (! x) abort ();' rather than `assert
69720         (x);', and anyway it's one less thing to worry about configuring.
69721         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
69722         hash_rehash, hash_insert): Use abort rather than assert.
69723
69724 2002-11-22  Bruno Haible  <bruno@clisp.org>
69725
69726         * lib/safe-read.h: Assume C89. Add comments.
69727         (safe_read): Change return type to size_t.
69728         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
69729         byte counts > SSIZE_MAX correctly.
69730         * lib/safe-write.h: New file.
69731         * lib/safe-write.c: New file.
69732         * lib/full-read.h: New file.
69733         * lib/full-read.c: New file.
69734         * lib/full-write.h: Assume C89. Add comments.
69735         * lib/full-write.c: Include safe-write.h.
69736         (full_write): Rewritten to use safe_write.
69737         Suggested by Jim Meyering and Paul Eggert.
69738
69739 2002-11-21  Jim Meyering  <jim@meyering.net>
69740
69741         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
69742
69743         Merge in changes from the coreutils.
69744
69745         2002-09-25  Paul Eggert  <eggert@twinsun.com>
69746         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
69747         <stdint.h>.
69748         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
69749         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
69750         int.  Work more efficiently if X is the same width as uintmax_t.
69751         Do not compare X to -1, to avoid bogus compiler warning.
69752         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
69753         Don't assume that f_frsize and f_bsize are the same type.
69754
69755         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
69756         warning on FreeBSD.
69757
69758         * lib/makepath.c (make_path): Restore umask *before* creating the final
69759         component.
69760         (make_path): Minor reformatting.
69761
69762         * lib/xmalloc.c: Adjust to work with new autoconf macros,
69763         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
69764         HAVE_MALLOC/HAVE_REALLOC.
69765
69766         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
69767         dummy ones.  At least on GNU/Linux systems, `auto' means something
69768         else.
69769         From Michael Stone.
69770
69771 2002-11-21  Bruno Haible  <bruno@clisp.org>
69772
69773         Remove case insensitive option matching.
69774         * lib/argmatch.h (argcasematch): Remove declaration.
69775         (ARGCASEMATCH): Remove macro.
69776         (__xargmatch_internal): Remove case_sensitive argument.
69777         (XARGMATCH): Update.
69778         (XARGCASEMATCH): Remove macro.
69779         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
69780         case_sensitive argument.
69781         (argcasematch): Remove function.
69782         (__xargmatch_internal): Remove case_sensitive argument.
69783         (main): Use XARGMATCH instead of XARGCASEMATCH.
69784
69785         * lib/xmalloc.c: Change compile-time error message. Add comment about
69786         required autoconf version.
69787
69788 2002-11-20  Paul Eggert  <eggert@twinsun.com>
69789
69790         Merge argmatch cleanups from Bison.  Assume C89.
69791
69792         * lib/argmatch.c: Include config.h here, not in argmatch.h.
69793         Include stdlib.h, for EXIT_FAILURE.
69794         Always include <string.h>, since we assume C89.
69795         (EXIT_FAILURE): Remove pre-C89 bug workaround.
69796         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
69797         Include <stddef.h> instead, since it's all we need for size_t.
69798         (PARAMS): Remove.  All uses removed.
69799         (ARRAY_CARDINALITY): Do not bother to #undef.
69800         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
69801         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69802         Remove unnecessary parentheses.
69803         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69804         Insert necessary parentheses.
69805         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
69806         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
69807
69808 2002-11-19  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
69811         * lib/mbswidth.h: Include <stddef.h>, for size_t.
69812
69813         * lib/mbswidth.h (PARAMS): Remove macro.
69814         (mbswidth, mbsnwidth): Use ANSI C function declarations.
69815         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
69816
69817         * lib/gcd.h (PARAMS): Remove macro.
69818         (gcd): Use ANSI C function declarations.
69819         * lib/gcd.c (gcd): Likewise.
69820
69821 2002-11-15  Bruno Haible  <bruno@clisp.org>
69822
69823         * lib/strcspn.c: Include <stddef.h>.
69824         (strcspn): Use ANSI C function declaration. Change return type to
69825         size_t. Use NULL.
69826         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
69827         (strpbrk): Use NULL.
69828         * lib/strpbrk.h (PARAMS): Remove macro.
69829         (strpbrk): Use ANSI C function declaration.
69830         * lib/strstr.c: Don't include <sys/types.h>.
69831         * lib/strstr.h (PARAMS): Remove macro.
69832         (strstr): Use ANSI C function declarations.
69833
69834 2002-11-14  Karl Berry  <karl@gnu.org>
69835
69836         * config/mkinstalldirs: `do' on separate line, instead of
69837         `for var; do'.
69838
69839 2002-11-06  Bruno Haible  <bruno@clisp.org>
69840
69841         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
69842         * lib/gcd.c (gcd): Likewise.
69843
69844 2002-11-05  Bruno Haible  <bruno@clisp.org>
69845
69846         * lib/gcd.h: New file, from gettext-0.11.5.
69847         * lib/gcd.c: New file, from gettext-0.11.5.
69848
69849 2002-11-05  Bruno Haible  <bruno@clisp.org>
69850
69851         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69852         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69853         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69854         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69855
69856         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
69857         <libintl.h>.
69858         * lib/makepath.c: Include gettext.h instead of <locale.h> and
69859         <libintl.h>.
69860
69861         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
69862         * lib/human.c: Include gettext.h instead of <libintl.h>.
69863         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
69864         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
69865         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
69866         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
69867         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
69868         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
69869         (textdomain): Remove definition.
69870         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
69871
69872         * lib/long-options.c: Remove include of <libintl.h> and definition of
69873         _.
69874         * lib/same.c: Remove include of <libintl.h> and definition of _.
69875
69876 2002-11-04  Owen Taylor  <otaylor@redhat.com>
69877
69878         * lib/config.charset: A few additions for Solaris.
69879
69880 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
69881
69882         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
69883         * lib/localcharset.c (locale_charset): Declare as extern "C".
69884
69885 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
69886
69887         * lib/config.charset: msdos in uk_UA uses CP1125.
69888
69889 2002-11-04  Bruno Haible  <bruno@clisp.org>
69890
69891         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
69892         * lib/strcase.h: New file, from GNU gettext-0.11.5.
69893         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
69894         * lib/strstr.h: New file, from GNU gettext-0.11.5.
69895         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
69896
69897 2002-11-04  Bruno Haible  <bruno@clisp.org>
69898
69899         * lib/localcharset.c (locale_charset): Don't return an empty string.
69900
69901 2002-11-04  Bruno Haible  <bruno@clisp.org>
69902
69903         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
69904         aliases.
69905
69906 2002-11-04  Bruno Haible  <bruno@clisp.org>
69907
69908         * lib/config.charset: Update for newest glibc. Add canonical names
69909         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
69910
69911 2002-11-04  Bruno Haible  <bruno@clisp.org>
69912
69913         * lib/config.charset: Add support for NetBSD.
69914
69915 2002-11-04  Bruno Haible  <bruno@clisp.org>
69916
69917         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
69918
69919 2002-11-01  Bruno Haible  <bruno@clisp.org>
69920
69921         * configure.in: Add AC_CONFIG_AUX_DIR call.
69922         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
69923         test/Makefile.
69924         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
69925
69926 2002-09-28  Karl Berry  <karl@gnu.org>
69927
69928         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
69929         installed automake until the next release, since changes have been
69930         made.
69931
69932 2002-09-25  Karl Berry  <karl@gnu.org>
69933
69934         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
69935         * lib/getopt*: copy from libc/posix.
69936         * lib/gettext.h: copy from gettext.
69937         * lib/.cppi-disable: add strdup.c, gettext.h.
69938
69939 2002-09-25  Karl Berry  <karl@gnu.org>
69940
69941         * config/srclist.txt: enable gettext.h check.
69942         * config/config.{guess,sub}: update from prep.
69943         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
69944                 from automake 1.6.3.
69945         See srclist*.
69946
69947 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
69948
69949         * regex.c (PATFETCH): Remove the translating fetch.
69950         (PATFETCH_RAW): Rename to PATFETCH.
69951         (set_image_of_range): New fun.
69952         (SET_RANGE_TABLE_WORK_AREA): Use it.
69953         (regex_compile): Don't translate the pattern chars so eagerly.
69954         Only do it when inserting an `exactn' bytecode or when handling
69955         a char-range.
69956         (mutually_exclusive_p): Avoid empty statement.
69957
69958 2002-07-06  Jim Meyering  <meyering@lucent.com>
69959
69960         * m4/README: Don't mention Makefile.am.in.
69961         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
69962
69963 2002-07-01  Jim Meyering  <meyering@lucent.com>
69964
69965         * lib/c-stack.c: Include sys/time.h.
69966         From Volker Borchert.
69967
69968 2002-06-26  Paul Eggert  <eggert@twinsun.com>
69969
69970         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
69971
69972 2002-06-26  Paul Eggert  <eggert@twinsun.com>
69973
69974         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
69975         New macro.  Use it uniformly instead of
69976         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
69977         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
69978         reported by Vin Shelton.
69979
69980 2002-06-22  Paul Eggert  <eggert@twinsun.com>
69981
69982         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
69983         Do not assume SA_SIGINFO behavior.
69984         Bug reported by Jim Meyering on NetBSD 1.5.2.
69985
69986 2002-06-22  Jim Meyering  <meyering@lucent.com>
69987
69988         * m4/c-stack.m4: New file, from diffutils-2.8.2.
69989         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
69990
69991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
69992         now that configure.ac uses AC_GNU_SOURCE.
69993         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
69994         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
69995
69996         Update to latest tools.  Suggestions from Paul Eggert.
69997         * m4/stdbool.m4: New file, from diffutils-2.8.2.
69998         * m4/gnu-source.m4: Update from diffutils-2.8.2.
69999         * m4/fnmatch.m4: Likewise.
70000         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70001         to AC_HEADER_STDBOOL
70002
70003 2002-06-22  Jim Meyering  <meyering@lucent.com>
70004
70005         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70006         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70007
70008 2002-06-22  Jim Meyering  <meyering@lucent.com>
70009
70010         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70011
70012         * lib/exitfail.c, exitfail.h: Likewise.
70013         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70014
70015         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70016         of fnmatch.h.
70017         (EXTRA_DIST): Add fnmatch_loop.c.
70018         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70019
70020         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70021         * lib/fnmatch.c: Update from diffutils-2.8.2.
70022         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70023         * lib/fnmatch.h: Remove file.
70024
70025 2002-06-21  Jim Meyering  <meyering@lucent.com>
70026
70027         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70028         * m4/mbrtowc.m4: Likewise.
70029
70030         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70031         * m4/mbswidth.m4: Reflect name change:
70032         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70033         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70034
70035         * m4/lib-link.m4: Update from gettext-0.11.2.
70036         * m4/gettext.m4: Likewise.
70037
70038         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70039         From Alfred M. Szmidt.
70040
70041 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70042
70043         * lib/file-type.h: Report an error if neither S_ISREG nor
70044         S_IFREG is defined, instead of using a test specific to glibc
70045         2.2.  This should be safe, since POSIX requires S_ISREG and
70046         Unix Version 7 had S_IFREG.  We don't need to check for
70047         <sys/types.h> since we don't use any symbols that it defines.
70048
70049 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70050
70051         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70052         $@-t, so that each temporary file name is unique and valid in the first
70053         8 characters, for operation under DOS.
70054
70055 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70056
70057         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70058
70059 2002-06-15  Jim Meyering  <meyering@lucent.com>
70060
70061         Work even with DJGPP 2.03, which lacks support for symlinks.
70062         From Richard Dawe.
70063         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70064         is defined.
70065         * lib/lchown.c (S_ISLNK): Likewise.
70066
70067 2002-06-15  Jim Meyering  <meyering@lucent.com>
70068
70069         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70070         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70071         have been included before this file.
70072
70073 2002-06-14  Jim Meyering  <meyering@lucent.com>
70074
70075         * lib/file-type.h: Use the version from diffutils-2.8.2.
70076         * lib/file-type.c: Likewise.
70077
70078 2002-06-07  Jim Meyering  <meyering@lucent.com>
70079
70080         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70081         They're needed at least for NetBSD 1.5.2.
70082         ($statxfs_includes): Include those same headers.
70083         ($statxfs_includes): Include sys/vfs.h if available.
70084         ($statxfs_includes): Likewise for sys/statvfs.h.
70085         Check for the following members in both structs statfs and statvfs:
70086         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70087
70088 2002-06-01  Jim Meyering  <meyering@lucent.com>
70089
70090         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70091         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70092
70093 2002-05-28  Jim Meyering  <meyering@lucent.com>
70094
70095         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70096         Reported by Volker Borchert.
70097
70098 2002-05-27  Jim Meyering  <meyering@lucent.com>
70099
70100         Fix a problem seen only on nonconforming systems whereby ls.c's
70101         use of localtime, and then of gettimeofday would cause trouble:
70102         the localtime call used to initialize rpl_gettimeofday's save
70103         mechanism would clobber ls's current local time information so
70104         that in any long listing the first file would always be listed
70105         with date 1970-01-01.  Analysis by Volker Borchert.
70106
70107         * lib/gettimeofday.c (localtime): Undefine.
70108         (rpl_localtime): New function.
70109
70110 2002-05-27  Jim Meyering  <meyering@lucent.com>
70111
70112         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70113         localtime.
70114
70115         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70116         use the replacement function; it wouldn't resolve at link time.
70117         Reported by Volker Borchert.
70118
70119 2002-05-22  Jim Meyering  <meyering@lucent.com>
70120
70121         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70122         file-type.h.
70123         * lib/file-type.h: New file.
70124         * lib/file-type.c (file_type): New file/function.  Extracted from
70125         diffutils.
70126
70127 2002-04-30  Jim Meyering  <meyering@lucent.com>
70128
70129         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70130
70131 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70132
70133         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70134
70135 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70136
70137         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70138         Do not check for alloca.h (no longer used) or stdbool.h (was never
70139         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70140
70141 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70142
70143         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70144
70145 2002-04-29  Jim Meyering  <meyering@lucent.com>
70146
70147         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70148         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70149         Use AC_FUNC_STRNLEN here instead.
70150
70151         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70152         With autoconf-2.53a, it's part of AC_PROG_CC.
70153
70154 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70155
70156         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70157         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70158
70159 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70160
70161         * lib/sig2str.h, lib/sig2str.c: New files.
70162         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70163
70164 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70165
70166         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70167         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70168         of 127, since 64 is the largest conceivable number for ancient
70169         nonstandard hosts.
70170         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70171
70172 2002-04-28  Jim Meyering  <meyering@lucent.com>
70173
70174         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70175
70176 2002-04-24  Jim Meyering  <meyering@lucent.com>
70177
70178         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70179         (jm_PREREQ): Use it.
70180
70181         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70182         mach/mach.h fcntl.h.
70183         Check for this function: setlocale.
70184
70185 2002-04-24  Jim Meyering  <meyering@lucent.com>
70186
70187         * lib/gettext.h: New file, from Gettext.
70188         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70189         (libfetish_a_SOURCES): Add gettext.h.
70190
70191 2002-04-16  Jim Meyering  <meyering@lucent.com>
70192
70193         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70194         ut_pid, ut_id, ut_exit.
70195
70196 2002-04-16  Jim Meyering  <meyering@lucent.com>
70197
70198         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70199         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70200         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70201
70202 2002-04-12  Jim Meyering  <meyering@lucent.com>
70203
70204         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70205         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70206         existence of the getmntinfo function.  Needed for Darwin 5.3.
70207
70208         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70209         This is necessary at least on Darwin 5.3.
70210
70211         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70212         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70213         strnlen.o in the library, and that makes some versions of ranlib
70214         object.
70215
70216 2002-04-12  Jim Meyering  <meyering@lucent.com>
70217
70218         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70219
70220 2002-04-09  Jim Meyering  <meyering@lucent.com>
70221
70222         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70223         to be more precise.  Rather than saying we're checking whether the
70224         function `works', say what we're testing.
70225         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70226         Reported by Bruno Haible.
70227
70228 2002-03-10  Jim Meyering  <meyering@lucent.com>
70229
70230         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70231         Suggestion from Santiago Vila.
70232
70233 2002-03-08  Jim Meyering  <meyering@lucent.com>
70234
70235         * lib/rename.c: Mention that this wrapper is needed also on
70236         mips-dec-ultrix4.4 systems.
70237
70238 2002-03-02  Jim Meyering  <meyering@lucent.com>
70239
70240         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70241         not HAVE_CLOCK_SETTIME.
70242
70243 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70244
70245         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70246         Check for clock_settime.
70247
70248 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70249
70250         * lib/nanosleep.h: Rename to....
70251         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70252
70253         * lib/gettime.c: New file.
70254         * lib/settime.c: New file.
70255         * lib/stime.c: Remove.
70256
70257         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70258         timespec.h.  Remove nanosleep.h.
70259
70260 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70261
70262         * m4/acl.m4: New file.
70263         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70264         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70265
70266 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70267
70268         * lib/acl.c, lib/acl.h: New files.
70269         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70270
70271 2002-02-24  Jim Meyering  <meyering@lucent.com>
70272
70273         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70274         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70275         cause trouble.  Reported by Nelson Beebe.
70276
70277 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70278
70279         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70280         compilers that don't know that xalloc_die never returns.
70281
70282 2002-02-20  Jim Meyering  <meyering@lucent.com>
70283
70284         * lib/getdate.c: Regenerate using bison-1.33.
70285
70286 2002-02-17  Jim Meyering  <meyering@lucent.com>
70287
70288         * config/config.guess (main): Don't use `head -1'; it's no longer
70289         portable. Use `sed 1q' instead.
70290
70291 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70292
70293         * m4/codeset.m4: Upgrade to gettext-0.11.
70294         * m4/gettext.m4: Upgrade to gettext-0.11.
70295         * m4/glibc21.m4: Upgrade to gettext-0.11.
70296         * m4/iconv.m4: Upgrade to gettext-0.11.
70297         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70298         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70299         * m4/lib-ld.m4: New file, from gettext-0.11.
70300         * m4/lib-link.m4: New file, from gettext-0.11.
70301         * m4/lib-prefix.m4: New file, from gettext-0.11.
70302         * m4/progtest.m4: Upgrade to gettext-0.11.
70303
70304 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70305
70306         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70307         (jm_PREREQ): Use it.
70308
70309 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70310
70311         * lib/posixver.c, lib/posixver.h: New files.
70312         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70313
70314 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70315             Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70318         (fwrite_success_callback): New declaration.
70319         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70320         print_unicode_char. Call failure callback instead of error.
70321         (fwrite_success_callback): New function.
70322         (exit_failure_callback): New function.
70323         (fallback_failure_callback): New function.
70324         (print_unicode_char): Call unicode_to_mb.
70325
70326 2002-01-26  Jim Meyering  <meyering@lucent.com>
70327
70328         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70329         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70330
70331 2002-01-26  Jim Meyering  <meyering@lucent.com>
70332
70333         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70334
70335 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70336
70337         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70338
70339 2002-01-22  Jim Meyering  <meyering@lucent.com>
70340
70341         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
70342         Otherwise, some versions of automake would omit the rule that makes
70343         Makefile from Makefile.in.
70344
70345 2002-01-21  Paul Eggert  <eggert@twinsun.com>
70346
70347         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
70348         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70349         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
70350         (memcoll): Set errno to zero if there is no error.
70351
70352         * lib/quotearg.c (quotearg_buffer_restyled):
70353         Fix bug with quoting buffers containing NUL when backslashing escapes.
70354         This bug was exposed by the other changes in this patch.
70355         (quotearg_n_options): New arg ARGSIZE.
70356         All callers changed.
70357         (quoting_options_from_style): New function.
70358         (quotearg_n_style): Use it.
70359         (quotearg_n_style_mem): New function.
70360
70361         * lib/quotearg.h (quotearg_n_style_mem): New function.
70362
70363 2002-01-19  Jim Meyering  <meyering@lucent.com>
70364
70365         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70366         Remove useless quotes: DF_PROG="df".
70367         * m4/strnlen.m4: New file.
70368
70369 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70370
70371         * lib/backupfile.c (ISDIGIT): Comment fix.
70372         * lib/getdate.y (ISDIGIT): Likewise.
70373         * lib/posixtm.c (ISDIGIT, year): Likewise.
70374         * lib/strverscmp.c (ISDIGIT): Likewise.
70375         * lib/userspec.c (ISDIGIT): Likewise.
70376
70377 2002-01-16  Jim Meyering  <meyering@lucent.com>
70378
70379         * lib/getdate.y: Add three semicolons, each just before a closing
70380         brace. Bison (as of version 1.31) no longer papers over that mistake.
70381
70382 2002-01-05  Jim Meyering  <meyering@lucent.com>
70383
70384         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70385
70386 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70387
70388         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70389         not silently exit merely because the output buffer happens to
70390         have nothing pending.
70391
70392 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70393
70394         See the big note in ../ChangeLog.
70395         * lib/human.c (suffixes): Prefer K to k for 1024.
70396         (generate_suffix_backwards): New function.
70397         (human_readable_inexact): Use it.
70398         * lib/xstrtol.c (__xstrtol): If there is no number but there
70399         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70400         Accept 'K' as well as 'k'.
70401
70402 2001-12-15  Jim Meyering  <meyering@lucent.com>
70403
70404         * lib/regex.h (__restrict_arr): Update from libc.
70405
70406         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70407         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70408         (STREQ): Define.
70409
70410 2001-12-14  Jim Meyering  <meyering@lucent.com>
70411
70412         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
70413         Suggestion from Bruno Haible.
70414
70415 2001-12-10  Jim Meyering  <meyering@lucent.com>
70416
70417         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
70418         xrealloc, Instead, include "xalloc.h".
70419         (initbuffer): Don't cast xmalloc return value to char*.
70420         (readline): Reword comment.
70421         Don't cast xrealloc return value to char*
70422         Return NULL, not 0.
70423
70424 2001-12-09  Jim Meyering  <meyering@lucent.com>
70425
70426         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
70427         about `signed and unsigned type in conditional expression'.
70428         * lib/posixtm.c (posix_time_parse): Likewise.
70429
70430         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
70431
70432         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
70433         to avoid a pedantic warning.
70434
70435         * lib/getstr.c: Don't include assert.h.
70436         (getstr): Remove warning-evoking assertions.
70437         Return -1 if offset parameter is out of bounds.
70438         Change the type of a local from int to size_t.
70439
70440         * lib/strftime.c (my_strftime_localtime_r): Include this function
70441         definition in the `#if ! HAVE_TM_GMTOFF' block.
70442
70443         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
70444         Include xalloc.h instead.
70445
70446 2001-12-02  Jim Meyering  <meyering@lucent.com>
70447
70448         * lib/tempname.c: Don't declare getenv, thus reverting the change of
70449         2001-11-18.  It's no longer necessary, now that stdlib.h is always
70450         included.
70451
70452         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
70453         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
70454
70455 2001-11-30  Akim Demaille  <akim@epita.fr>
70456
70457         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
70458         before being defined.
70459
70460 2001-11-27  Paul Eggert  <eggert@twinsun.com>
70461
70462         * lib/quotearg.h (quotearg_n, quotearg_n_style):
70463         First arg is int, not unsigned.
70464         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
70465         (SIZE_MAX, UINT_MAX): New macros.
70466         (quotearg_n_options): Abort if N is negative.
70467         Avoid overflow check on hosts where size_t is 64 bits and int
70468         is 32 bits, as overflow is impossible there.
70469         Fix off-by-one typo that caused unnecessary reallocation.
70470
70471 2001-11-27  Jim Meyering  <meyering@lucent.com>
70472
70473         * lib/tempname.c: Merge with version from libc.
70474         * lib/regex.c: Likewise.
70475
70476         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
70477         systems for which STDC_HEADERS is 0, it was not included, resulting in
70478         a warning about an integer-to-pointer conversion problem with getenv.
70479         Reported by Volker Borchert.
70480
70481 2001-11-26  Jim Meyering  <meyering@lucent.com>
70482
70483         * lib/gtod.h: Remove file.
70484         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
70485         * lib/gettimeofday.c: Don't include gtod.h.
70486         (GTOD_init): Remove function.
70487         (rpl_gettimeofday): Do its job here instead, rather than aborting.
70488         Suggestion from Volker Borchert.
70489
70490 2001-11-23  Jim Meyering  <meyering@lucent.com>
70491
70492         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
70493         it.
70494         * lib/hash.c (struct hash_table): Define it here instead.
70495
70496 2001-11-22  Jim Meyering  <meyering@lucent.com>
70497
70498         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
70499
70500 2001-11-20  Jim Meyering  <meyering@lucent.com>
70501
70502         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
70503         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
70504
70505 2001-11-19  Jim Meyering  <meyering@lucent.com>
70506
70507         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
70508         directory.  Use "conftestXXXXXX" as the template.
70509         Suggestion from Paul Eggert.
70510
70511         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
70512         immediately, so the test doesn't mistakenly hit the max-open-files
70513         limit.
70514
70515 2001-11-18  Paul Eggert  <eggert@twinsun.com>
70516
70517         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
70518         (TEMPORARIES): New macro.
70519         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
70520         removes an artificial limitation (e.g. HP-UX 10.20, where
70521         TMP_MAX is 17576).
70522
70523 2001-11-18  Jim Meyering  <meyering@lucent.com>
70524
70525         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
70526
70527 2001-11-18  Jim Meyering  <meyering@lucent.com>
70528
70529         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
70530         on SunOS 4.
70531
70532         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
70533         files will be created before anything else.
70534
70535 2001-11-17  Paul Eggert  <eggert@twinsun.com>
70536
70537         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
70538         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
70539
70540 2001-11-17  Jim Meyering  <meyering@lucent.com>
70541
70542         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
70543         Prompted by a report from Bob Proulx.
70544
70545         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
70546         Instead, require UTILS_FUNC_MKSTEMP.
70547
70548 2001-11-17  Jim Meyering  <meyering@lucent.com>
70549
70550         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
70551         Now, that's done as part of AC_FUNC_STRTOD.
70552
70553 2001-11-17  Jim Meyering  <meyering@lucent.com>
70554
70555         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
70556         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
70557         rather than group writable.  Patch by Juan F. Codagnone.
70558
70559         * lib/readtokens.c: Remove explicit declarations of xmalloc and
70560         xrealloc, Instead, include "xalloc.h".
70561
70562         * lib/mountlist.c: Include unlocked-io.h after all system headers.
70563         Remove explicit declarations of xmalloc, xrealloc,
70564         and xstrdup.  Instead, include "xalloc.h".
70565
70566         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
70567         unlocked-io.h.
70568         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
70569         Likewise.
70570         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
70571
70572         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
70573         Reported by Padraig Brady.
70574
70575         * lib/mkstemp.c: #undef mkstemp.
70576         Include config.h.
70577         (rpl_mkstemp): Rename from mkstemp.
70578         Protoize.
70579
70580 2001-11-16  Jim Meyering  <meyering@lucent.com>
70581
70582         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
70583         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
70584         determine the amount of total physical memory, use pstat_getstatic.
70585         HPUX-11 doesn't define _SC_PHYS_PAGES.
70586         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
70587         If sysconf couldn't be used to determine the amount of available
70588         physical memory, use both pstat_getstatic and pstat_getdynamic.
70589         Based on a patch from Bob Proulx.
70590
70591 2001-11-10  Jim Meyering  <meyering@lucent.com>
70592
70593         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
70594         (jm_PREREQ): Use it.
70595
70596 2001-11-09  Jim Meyering  <meyering@lucent.com>
70597
70598         * m4/jm-macros.m4: Require autoconf-2.52f.
70599         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
70600         Use these AC_-prefixed names, not the AM_-prefixed ones.
70601
70602         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
70603
70604 2001-11-05  Jim Meyering  <meyering@lucent.com>
70605
70606         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
70607
70608 2001-11-04  Jim Meyering  <meyering@lucent.com>
70609
70610         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
70611         $DEFS.
70612
70613 2001-11-03  Jim Meyering  <meyering@lucent.com>
70614
70615         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
70616         of AC_DEFUN.
70617
70618         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
70619         know the name of the variable in the macro definition.
70620
70621 2001-11-03  Jim Meyering  <meyering@lucent.com>
70622
70623         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
70624         in argmatch_to_argument call.
70625
70626         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
70627         argument.
70628
70629         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
70630         e.g., a fault due to an attempt to free a NULL pointer.
70631
70632 2001-11-01  Jim Meyering  <meyering@lucent.com>
70633
70634         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
70635         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
70636
70637 2001-11-01  Jim Meyering  <meyering@lucent.com>
70638
70639         * lib/dirfd.c, lib/dirfd.h: New files.
70640         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
70641
70642         * lib/hash.c (hash_print) [TESTING]: Clean up.
70643
70644 2001-10-22  Paul Eggert  <eggert@twinsun.com>
70645
70646         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
70647         to avoid a warning if -Wall.
70648
70649 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
70650
70651         * README: New file
70652         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
70653         (per RMS's instructions, this is now the canonical source)
70654         * lgpl/, gpl/: New directories.
70655
70656 2001-10-21  Paul Eggert  <eggert@twinsun.com>
70657
70658         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
70659
70660 2001-10-21  Jim Meyering  <meyering@lucent.com>
70661
70662         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
70663         this code would end up calling gettext even in packages built
70664         with --disable-nls.
70665         * lib/getopt.c (_): Likewise.
70666         * lib/regex.c (_): Likewise.
70667
70668 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70669
70670         * m4/error.m4 (jm_PREREQ_ERROR):
70671         Do not invoke AC_CHECK_FUNCS with strerror_r, as
70672         AC_FUNC_STRERROR_R does that.
70673         Check for strerror declaration.
70674
70675         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
70676         are supposed to have them these days.
70677         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
70678         Merge changes from latest Autoconf CVS.
70679         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
70680         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
70681         POSIX decided to standardize on the int flavor of strerror_r.
70682
70683 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70684
70685         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
70686         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
70687         Use strerror_r that is only a macro, even if it is not a function.
70688         (strerror): Check for HAVE_DECL_STRERROR before declaring.
70689         (private_strerror): Use prototypes, not old-style function definition.
70690         (print_errno_message): New function.
70691         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
70692         char*-flavored one.
70693         (error_tail, error, error_at_line): Use it.
70694
70695 2001-10-11  Jim Meyering  <meyering@lucent.com>
70696
70697         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
70698         and quote_n (1, ... to avoid clobbering a buffer.
70699
70700 2001-10-05  Jim Meyering  <meyering@lucent.com>
70701
70702         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
70703         hash-pjw.h.
70704         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
70705         * lib/hash-pjw.h: New file.
70706
70707 2001-09-30  Jim Meyering  <meyering@lucent.com>
70708
70709         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
70710         `struct fsstat' has the `f_fstypename' member.
70711         Use that to define FS_TYPE, which is now used to make
70712         the getfsstat link test tighter.
70713
70714 2001-09-30  Jim Meyering  <meyering@lucent.com>
70715
70716         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
70717         Include <sys/ucred.h>, for Apple Darwin.
70718         Include sys/mount.h and sys/fs_types.h only if available.
70719         (FS_TYPE): Define.
70720         (read_filesystem_list): Use FS_TYPE.
70721
70722 2001-09-29  Paul Eggert  <eggert@twinsun.com>
70723
70724         * lib/exclude.c (excluded_filename): 0 -> false, since it's
70725         a boolean context.
70726
70727 2001-09-29  Jim Meyering  <meyering@lucent.com>
70728
70729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70730         [one-argument getmntent function]): Include stdio.h before mntent.h.
70731         SunOS 4.1.x needs it for the declaration of `FILE'.
70732         Patch by Volker Borchert.
70733
70734         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70735         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
70736         sys/fs_types.h, and make the link-test for getfsstat guard #include
70737         directives with appropriate #if HAVE_*_H tests so that we can
70738         detect getfsstat on Apple Darwin1.3.7 systems.
70739         Reported by Nelson Beebe.
70740         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
70741
70742 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70743
70744         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70745         #defines strtoimax.  Also treat the other strto* functions
70746         like strtoimax.
70747
70748         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70749         Check for strtoul and strtoumax,
70750         as those declarations are made even in the signed case.
70751         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
70752         Likewise, for strtol and strtoimax.
70753
70754 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70755
70756         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70757         #defines strtoimax.  Also treat the other strto* functions
70758         like strtoimax.
70759
70760         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
70761         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
70762         (strtoimax, strtoumax): Do not declare if already defined as a macro.
70763
70764 2001-09-26  Jim Meyering  <meyering@lucent.com>
70765
70766         Most macros in unlocked-io.h had the wrong number of arguments.
70767         * lib/gen-uio: New script.
70768         (USE_UNLOCKED_IO): Define to 1 if not already defined.
70769         * lib/unlocked-io.hin: Remove file.
70770         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
70771         rather than trying to embed it here.
70772         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
70773         Reported by Padraig Brady.
70774
70775 2001-09-25  Volker Borchert  <bt@teknon.de>
70776
70777         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
70778         `result'.
70779
70780 2001-09-24  Jim Meyering  <meyering@lucent.com>
70781
70782         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
70783
70784 2001-09-23  Jim Meyering  <meyering@lucent.com>
70785
70786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
70787         instead of the mere test for existence of mntent.h.  The latter
70788         would get a false-positive on AIX 3.4 systems.
70789         In the outer getmntent if-block, don't die if neither of the getmntent
70790         tests succeeds.  Instead, just fall through and continue with the
70791         remaining tests.
70792
70793 2001-09-23  Jim Meyering  <meyering@lucent.com>
70794
70795         * lib/mountlist.c: Remove useless parentheses in #if directives.
70796         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
70797         the deprecated MOUNTED symbol is no longer defined in mntent.h.
70798
70799 2001-09-22  Jim Meyering  <meyering@lucent.com>
70800
70801         * m4/gettext.m4: New file.  From gettext.
70802         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
70803         * m4/progtest.m4: Likewise
70804         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
70805         * m4/glibc21.m4: Likewise.
70806
70807         * m4/libintl.m4: Remove.  No longer used.
70808
70809 2001-09-22  Jim Meyering  <meyering@lucent.com>
70810
70811         * lib/localcharset.c: Update from latest gettext.
70812         * lib/config.charset: Likewise.
70813
70814 2001-09-20  Jim Meyering  <meyering@lucent.com>
70815
70816         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
70817         strtoimax.
70818         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
70819         strtoumax.
70820
70821 2001-09-20  Jim Meyering  <meyering@lucent.com>
70822
70823         * lib/xstrtol.c (strtoimax): Guard declaration with
70824         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
70825         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
70826         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
70827         (strtoumax): Likewise, for completeness (it wasn't necessary).
70828
70829 2001-09-17  Paul Eggert  <eggert@twinsun.com>
70830
70831         * lib/strtoimax.c (HAVE_LONG_LONG):
70832         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
70833         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
70834         to work around bug in IBM C compiler.
70835
70836 2001-09-17  Jim Meyering  <meyering@lucent.com>
70837
70838         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
70839         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
70840         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
70841         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
70842         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
70843         whenever the right hand side need not be expanded by the shell.
70844
70845 2001-09-16  Paul Eggert  <eggert@twinsun.com>
70846
70847         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
70848         library.  It's not correct, as some older glibcs are buggy.
70849         fnmatch wasn't fixed until glibc 2.2.
70850
70851         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
70852         special shell magic here.
70853
70854 2001-09-16  Jim Meyering  <meyering@lucent.com>
70855
70856         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
70857         * m4/jm-macros.m4: Require it.
70858
70859 2001-09-16  Jim Meyering  <meyering@lucent.com>
70860
70861         * lib/mkdir.c: New file.
70862
70863 2001-09-15  Jim Meyering  <meyering@lucent.com>
70864
70865         * m4/jm-macros.m4: Check for help2man.
70866
70867 2001-09-11  Jim Meyering  <meyering@lucent.com>
70868
70869         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
70870         The body, by Paul Eggert, was moved here from configure.in.
70871         * m4/jm-macros.m4: Require UTILS_HOST_OS.
70872
70873 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70874
70875         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
70876         (jm_PREREQ): Use it.
70877
70878 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70879
70880         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
70881         Use ssize_t, not int, to store result of readlink.
70882         Check for ssize_t overflow as well as size_t overflow,
70883         as POSIX says the result of readlink is implementation-defined
70884         when ssize_t overflows.
70885         Remove unnecessary cast to char*.
70886         Use free+malloc instead of realloc, as the storage doesn't need
70887         to be preserved and it's clearer and can be more efficient that way.
70888         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
70889         * lib/xreadlink.h (xreadlink): Update prototype.
70890
70891 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70892
70893         * lib/xgetcwd.c: Revert some of the previous change; intead,
70894         fix the HAVE_GETCWD_NULL code to behave more like the
70895         !HAVE_GETCWD_NULL code used to.
70896
70897         Include "xalloc.h".
70898         (xgetcwd): Do not return NULL when memory is exhausted; instead,
70899         invoke xalloc_die.
70900
70901 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70902
70903         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
70904         sys/param.h, as pathmax.h includes them.
70905
70906 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70907
70908         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
70909         (jm_PREREQ_XGETCWD): New macro.
70910
70911         * m4/getcwd.m4: New file.
70912
70913 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70914
70915         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
70916         like the HAVE_GETCWD_NULL code.
70917         Include pathmax.h if not HAVE_GETCWD.
70918         Do not include xalloc.h.
70919         (INITIAL_BUFFER_SIZE): New symbol.
70920         Do not use xmalloc / xrealloc, since the caller is responsible for
70921         handling errors.  Preserve errno around `free' during failure.
70922         Do not overrun buffer when using getwd.
70923
70924 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70925
70926         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
70927         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
70928         getcwd (NULL, 0).
70929
70930 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70931
70932         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
70933         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
70934         spotted by Jim Meyering.
70935
70936 2001-09-03  Jim Meyering  <meyering@lucent.com>
70937
70938         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
70939         failure.
70940
70941 2001-09-02  Jim Meyering  <meyering@lucent.com>
70942
70943         * lib/error.c: Update from GNU libc.
70944
70945 2001-09-01  Jim Meyering  <meyering@lucent.com>
70946
70947         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
70948         Used by df.
70949
70950 2001-09-01  Jim Meyering  <meyering@lucent.com>
70951
70952         * lib/xreadlink.c: New file.
70953         * lib/xreadlink.h: New file.
70954         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
70955         xreadlink.h.
70956
70957         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
70958         doesn't conflict with sparc Solaris 7's definition in
70959         /usr/include/sys/int_types.h.
70960
70961         * lib/exclude.c: Use `""', not `<>' to #include non-system header
70962         files.
70963         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
70964         and strncasecmp as r-values.  Unixware didn't have declarations.
70965
70966 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70967
70968         * lib/xstrtol.h: Add copyright notice.
70969         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
70970         LONGINT_INVALID_SUFFIX_CHAR.
70971
70972 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70973
70974         * lib/xstrtol.c (strtoimax): New decl.
70975
70976 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70977
70978         * lib/xgetcwd.c: Don't include pathmax.h.
70979         Include stdlib.h and unistd.h if available.
70980         Include xalloc.h.
70981         (xmalloc, xstrdup, free): Remove decls.
70982         (xgetcwd): Don't assume sizes fit in unsigned.
70983         Check for overflow when computing sizes.
70984         Simplify reallocation code.
70985
70986 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70987
70988         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
70989         a directory's st_size can have an arbitrary value, so the old
70990         usage could waste an arbitrary amount of memory.  All uses
70991         changed.
70992         * lib/savedir.h: Update prototype.
70993
70994 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70995
70996         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
70997
70998         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
70999         old strtoimax.c.
71000
71001         Also, make the following further changes to make this file's
71002         configuration more similar to that of strtol.c:
71003         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71004         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71005         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71006         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71007         changed to signed values.
71008
71009         And make the following changes as well:
71010         Fix copyright notice, as 1999 was missing.
71011         (verify): New macro.
71012         (strtoimax): Check sizes at compile-time, not run-time.
71013         Prefer strtol to strtoll if both work.
71014         (main): Remove; it was not that useful and was a pain to maintain.
71015
71016         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71017
71018 2001-08-31  Jim Meyering  <meyering@lucent.com>
71019
71020         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71021         Use an initial, malloc'd, buffer of length 128 rather than
71022         a statically allocated one of length 1024.
71023
71024 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71025
71026         Simplify code, partly by assuming autoconf 2.52 semantics.
71027
71028         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71029
71030         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71031         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71032         All uses removed.
71033         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71034         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71035         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71036         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71037         jm_AC_HEADER_INTTYPES_H.
71038         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71039
71040         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71041
71042         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71043         Quote first arg of AC_DEFUN.
71044         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71045         since they are needed to parse the include file even if we need
71046         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71047         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71048         but with opposite signedness.
71049
71050 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71051
71052         Merge 'exclude' changes from tar 1.13.22.
71053         This fixes one or two unlikely storage allocation overflow bugs,
71054         but doesn't change user-visible behavior otherwise.
71055
71056 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71057
71058         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71059         (jm_PREREQ_EXCLUDE): New macro.
71060
71061 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71062
71063         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71064         tm to be declared.
71065
71066 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71067
71068         * lib/hash.c: Remove '2001' from copyright notice.
71069
71070 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71071
71072         * lib/full-write.h: New file.
71073         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71074         * lib/full-write.c: Correct credits, as cccp.c no longer
71075         exists and anyway it was so heavily changed from the old cccp
71076         code as to be unrecognizable.  Include full-write.h.
71077         (full_write) Return size_t, with short writes meaning failure.
71078         All callers changed.  This fixes a bug with large buffers
71079         on 64-bit hosts.
71080         * lib/utime.c: Include full-write.h.
71081
71082 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71083
71084         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71085         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71086         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71087         Include if available.
71088         (<xalloc.h>): Include
71089         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71090         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71091         collide with FNM macros.
71092         (struct patopts): New struct.
71093         (struct exclude): Use it, as exclude patterns now come with options.
71094         (new_exclude): Support above changes.
71095         (new_exclude, add_exclude_file):
71096         Initial size must now be a power of two to simplify overflow checking.
71097         (free_exclude, fnmatch_no_wildcards): New function.
71098         (excluded_filename): No longer requires options arg, as the options
71099         are determined by add_exclude.  Now returns bool, not int.
71100         (excluded_filename, add_exclude):
71101         Add support for the fancy new exclusion options.
71102         (add_exclude, add_exclude_file): Now takes int options arg.
71103         Check for arithmetic overflow when computing sizes.
71104         (add_exclude_file): xrealloc might modify errno, so don't
71105         realloc until after errno might be used.
71106
71107         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71108         New macros.
71109         (free_exclude): New decl.
71110         (add_exclude, add_exclude_file): Now takes int options arg.
71111         (excluded_filename): No longer requires options arg, as the options
71112         are determined by add_exclude.  Now returns bool, not int.
71113
71114 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71115
71116         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71117
71118 2001-08-27  Jim Meyering  <meyering@lucent.com>
71119
71120         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71121
71122         * lib/version-etc.c (N_): Remove definition.
71123         Revert most of last change.
71124         Instead, simply don't mark the `Copyright...' string for translation.
71125         Based on advice from Paul Eggert.
71126
71127         * lib/strtoxmax.c: Tweak comment.
71128
71129 2001-08-26  Jim Meyering  <meyering@lucent.com>
71130
71131         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71132
71133         * m4/xstrtoimax.m4: New file.
71134         * m4/xstrtoumax.m4: Add comments explaining why we
71135         AC_REPLACE_FUNCS(strtol).
71136
71137 2001-08-26  Jim Meyering  <meyering@lucent.com>
71138
71139         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71140         of copyright with `%s' so translators don't get an untranslated
71141         message in 2002.
71142         (COPYRIGHT_YEAR): Define.
71143         (version_etc): Use fprintf rather than fputs.
71144         Suggestion from Ulrich Drepper.
71145
71146         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71147
71148         * lib/strtoll.c: New file, from GNU libc.
71149         * lib/xstrtoimax.c: New file.
71150
71151         * lib/xstrtol.h: Add xstrtoimax.
71152         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71153         * lib/strtoimax.c: New file.  Likewise, but first define
71154         STRTOUXMAX_SIGNED.
71155
71156         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71157         ...
71158         * lib/strtoxmax.c: ... then renamed to this.
71159
71160 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71161
71162         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71163         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71164         (jm_AC_TYPE_INTMAX_T): New macro.
71165         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71166
71167         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71168
71169         * m4/longlong.m4: Renamed from ulonglong.m4.
71170         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71171         * m4/uintmax_t.m4: Removed.
71172
71173 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71174
71175         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71176         Port to Solaris 8, where 'sed' requires a space after the 'r'
71177         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71178         Redirect output to $tmp just once.
71179
71180 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71181
71182         * lib/addext.c (<errno.h>): Include.
71183         (errno): Declare if not defined.
71184         (addext): Work correctly when pathconf returns -1 and leaves
71185         errno alone because there is no limit.  Also, work even if
71186         pathconf returns a value greater than SIZE_MAX.
71187
71188 2001-08-12  Jim Meyering  <meyering@lucent.com>
71189
71190         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71191         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71192         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71193         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71194         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71195         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71196         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71197         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71198         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71199         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71200         utime.m4, utimes.m4, xstrtoumax.m4:
71201         Quote the first argument in each use of AC_DEFUN.
71202
71203 2001-08-12  Jim Meyering  <meyering@lucent.com>
71204
71205         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71206         Simply `return getcwd (NULL, 0);'.
71207         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71208         Use 1300 as initial value for length, not PATH_MAX.
71209
71210         * lib/pathmax.h: Clean up cpp syntax.
71211
71212 2001-08-12  Jim Meyering  <meyering@lucent.com>
71213
71214         * lib/gettimeofday.c: New file.
71215         * lib/gtod.h: New file.
71216         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71217
71218 2001-08-05  Jim Meyering  <meyering@lucent.com>
71219
71220         * m4/jm-macros.m4: Require autoconf-2.52.
71221
71222 2001-08-04  Jim Meyering  <meyering@lucent.com>
71223
71224         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71225         stmt, to get in sync with glibc.
71226
71227 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71228
71229         The following changes are from gettext 0.10.39 as maintained by
71230         Bruno Haible.
71231
71232         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71233         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71234         with inverted sense.  All uses changed.
71235
71236         * lib/mbswidth.c: Don't include <limits.h>.
71237         Include <stdlib.h> and <string.h> unconditionally.
71238         (iswcntrl, mbsinit, ISCNTRL): New macros.
71239         (mbsnwidth): Use K&R style function declarations.
71240         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71241         can optimize it when MB_CUR_MAX == 1.
71242         The width of control characters is zero, not 1.
71243
71244 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71245
71246         The following changes are from gettext 0.10.39 as maintained by
71247         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71248
71249         * m4/codeset.m4: Upgrade to serial AM1.
71250         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71251         all uses changed.  Quote first arg of AC_DEFUN.
71252         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71253
71254         * m4/iconv.m4: Upgrade to serial AM2.
71255         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71256         Add --with-libconv-prefix.
71257         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71258         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71259         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71260         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71261         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71262
71263         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71264         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71265         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71266         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71267         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71268         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71269         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71270         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71271         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71272
71273         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71274         string.h any more.
71275
71276         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71277         not the default value.
71278
71279         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71280         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71281         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71282         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71283         Also check for iswcntrl, used for wcwidth fallback.
71284         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71285         to Autoconf 2.13.
71286
71287 2001-08-03  Jim Meyering  <meyering@lucent.com>
71288
71289         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71290         as it was in the original.  Reported by Paul Eggert.
71291
71292 2001-07-16  Jim Meyering  <meyering@lucent.com>
71293
71294         * m4/gettimeofday.m4: New file.
71295         Prompted by a report from Bernhard Baehr.
71296
71297 2001-07-15  Jim Meyering  <meyering@lucent.com>
71298
71299         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71300         stuff. Now it's in ../Makefile.cfg.
71301
71302 2001-07-15  Jim Meyering  <meyering@lucent.com>
71303
71304         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71305         (BUILT_SOURCES): Add unlocked-io.h.
71306         (io_functions): Define.
71307         (unlocked-io.h): New rule.
71308         (DISTCLEANFILES): Add unlocked-io.h.
71309         (all-local): Depend on unlocked-io.h, to ensure it is created.
71310
71311         * lib/unlocked-io.hin: New file
71312
71313         * lib/regex.c: Update from glibc.
71314
71315 2001-07-05  Jim Meyering  <meyering@lucent.com>
71316
71317         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71318         recommendation.
71319         (libfetish_a_SOURCES): Put all .h files here instead.
71320         Remove a thus-exposed (better checks in automake) duplicate and
71321         two unnecessary .h files.
71322
71323 2001-07-04  Jim Meyering  <meyering@lucent.com>
71324
71325         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71326         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71327         distcheck failure.
71328
71329 2001-07-02  Jim Meyering  <meyering@lucent.com>
71330
71331         The following changes were prompted by suggestions from Bruno Haible.
71332
71333         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71334         is now generated.
71335         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71336         definition of EXTRA_DIST.
71337         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71338         ensure that the generated file is created/updated whenever the list
71339         of $(unlocked_functions) is changed.
71340         (jm-glibc-io.m4): New rule.
71341         (unlocked-io.h): New rule -- currently unused.
71342
71343 2001-06-24  Jim Meyering  <meyering@lucent.com>
71344
71345         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
71346         unmatched right bracket, rather than kludging it with an extra,
71347         falsely-matching quote in a comment.  Patch by Akim Demaille.
71348
71349 2001-06-11  Jim Meyering  <meyering@lucent.com>
71350
71351         * lib/regex.c: Update from GNU libc.
71352
71353 2001-05-27  Jim Meyering  <meyering@lucent.com>
71354
71355         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
71356         Check for ut_type in struct utmp.
71357
71358 2001-05-27  Jim Meyering  <meyering@lucent.com>
71359
71360         * lib/readutmp.h (UT_TYPE): Define.
71361
71362 2001-05-24  Jim Meyering  <meyering@lucent.com>
71363
71364         * lib/argmatch.c: Include "quote.h".
71365         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71366         quote function.  Reported by Göran Uddeborg.
71367
71368 2001-05-22  Jim Meyering  <meyering@lucent.com>
71369
71370         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71371         now that we use the package-supplied version unconditionally.
71372         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71373
71374 2001-05-21  Jim Meyering  <meyering@lucent.com>
71375
71376         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71377         shell syntax errors.
71378
71379 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71380
71381         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71382
71383 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71384
71385         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71386         Don't bother to check library strftime, since
71387         we'll be using our own my_strftime function anyway.
71388         Define my_strftime instead of strftime.
71389
71390 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71391
71392         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71393         which is not yet declared.
71394
71395 2001-05-15  Jim Meyering  <meyering@lucent.com>
71396
71397         * m4/regex.m4: Use proper quoting so brackets appear in the test
71398         program.
71399         Reported by, and with help from, Bruno Haible.
71400
71401 2001-05-13  Jim Meyering  <meyering@lucent.com>
71402
71403         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71404         undefined.
71405
71406 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71407
71408         dirname code cleanup.  base_name now behaves more compatibly
71409         with POSIX basename when given file names that have trailing
71410         slashes, and similarly for dir_name.  Add new primitives
71411         base_len and dir_len.  Put the directory-name-related decls
71412         into dirname.h.
71413
71414         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
71415         * lib/backupfile.c (base_name): Likewise.
71416         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
71417         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
71418         * lib/makepath.c (strip_trailing_slashes): Likewise.
71419         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
71420         ISSLASH): Likewise.
71421         * lib/rename.c (strip_trailing_slashes): Likewise.
71422         * lib/same.c (base_name): Likewise.
71423         * lib/stripslash.c (ISSLASH): Likewise.
71424
71425         * lib/addext.c: Include <dirname.h> after size_t is defined.
71426         * lib/backupfile.c: Likewise.
71427
71428         * lib/addext.c (addext): Use base_len to trim redundant
71429         trailing slashes instead of doing it ourselves.
71430         But do not trim the last slash if it is not redundant.
71431
71432         * lib/backupfile.c (find_backup_file_name,
71433         max_backup_version): Use base_len instead of rolling it ourselves.
71434         Handle the case of "" and (on DOS) "C:" correctly.
71435
71436         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
71437         needed. Include <string.h>, <dirname.h>.
71438         (base_name): Allow file names ending in slashes, other than names
71439         that are all slashes.  In this case, return the basename followed
71440         by the slashes.  This is more general, and can be used in places
71441         where the original base_name purposely had an assertion failure.
71442         (base_len): New function.
71443
71444         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
71445         Do not include <assert.h>; no longer needed.
71446         Include xalloc.h.
71447         (memrchr): Remove decl.
71448         (dir_name_r): Remove.
71449         (dir_len): Renamed from dirlen.  All callers changed.
71450         Rewrite in terms of base_name, for simplicity and consistency.
71451         (dir_name): Never return NULL.  All callers changed.
71452         Do not include <stdlib.h> in test program; no longer needed.
71453         return 0; is fine for test program.
71454
71455         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
71456         New macros.
71457         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
71458
71459         * lib/path-concat.c (path_concat): Use base_len to compute
71460         base length, not strlen; this means we cannot rely on memcpy
71461         to null-terminate.
71462
71463         * lib/same.c (STREQ): Remove.
71464         (same_name): Handle the case where the basename ends in trailing '/'.
71465
71466         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
71467         a slash was stripped.  Do not strip the last slash after a
71468         file system prefix.
71469
71470 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71471
71472         * lib/Makefile.am (libfetish_a_SOURCES):
71473         Add strftime.c, since we now compile it on all hosts.
71474
71475         * lib/strftime.c (my_strftime):
71476         Define to nstrftime if emacs, but only if my_strftime is not defined.
71477         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
71478         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
71479         Add one more extra argument: a nanoseconds value.
71480         All uses changed.
71481         (ns): New macro.
71482         (my_strftime function): Add %N format.
71483         (emacs_strftimeu): Renamed from emacs_strftime,
71484         with extra ut argument.
71485
71486 2001-05-09  Paul Eggert  <eggert@twinsun.com>
71487
71488         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
71489
71490 2001-04-21  Jim Meyering  <meyering@lucent.com>
71491
71492         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
71493         doesn't interfere.
71494
71495 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71496
71497         * m4/ftruncate.m4: Check for chsize.
71498         Link with ftruncate.o unconditionally if ftruncate is missing.
71499         This was required when cross-compiling to i586-mingw32msvc.
71500
71501 2001-04-08  Jim Meyering  <meyering@lucent.com>
71502
71503         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
71504         recomputed; that's necessary when the offset spans a DST transition.
71505         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
71506
71507 2001-04-02  Jim Meyering  <meyering@lucent.com>
71508
71509         * lib/regex.h, regex.c: Update from GNU libc.
71510
71511 2001-03-24  Jim Meyering  <meyering@lucent.com>
71512
71513         * m4/jm-macros.m4: Require autoconf-2.49d.
71514
71515 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
71516
71517         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
71518
71519 2001-03-19  Paul Eggert  <eggert@twinsun.com>
71520
71521         * lib/version-etc.c (version_etc_copyright): Update to 2001.
71522
71523 2001-03-17  Jim Meyering  <meyering@lucent.com>
71524
71525         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
71526         now that the version in autoconf is equivalent.
71527         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
71528
71529         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
71530         Suggestion from Akim Demaille.
71531
71532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
71533         (jm_PREREQ_TEMPNAME): New function.
71534
71535 2001-03-16  Paul Eggert  <eggert@twinsun.com>
71536
71537         * lib/tempname.c (uint64_t): Define to uintmax_t if
71538         not defined, and if UINT64_MAX is not defined.
71539         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
71540         Reported by John David Anglin.
71541
71542 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
71543
71544         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
71545         resolve alias if codeset is empty.
71546         * lib/config.charset (BeOS): Use wildcard syntax.
71547
71548 2001-03-13  Jim Meyering  <meyering@lucent.com>
71549
71550         * lib/path-concat.c (path_concat)
71551         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
71552         concatenating e.g., `C:' and `foo'.
71553         From Bruno Haible.
71554
71555 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71556
71557         * lib/localcharset.c (locale_charset): Don't use
71558         setlocale(LC_CTYPE,NULL). Don't return NULL.
71559         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
71560
71561 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71562
71563         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
71564         support for DOS/DJGPP.
71565
71566 2001-03-01  Paul Eggert  <eggert@twinsun.com>
71567
71568         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
71569         lacks mkstemp.  Compile our own tempname.c if we compile our own
71570         mkstemp.c, as mkstemp relies on tempname.
71571
71572 2001-03-01  Jim Meyering  <meyering@lucent.com>
71573
71574         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
71575         AH_VERBATIM really does output its argument verbatim.
71576
71577 2001-02-28  Paul Eggert  <eggert@twinsun.com>
71578
71579         * lib/Makefile.am (libfetish_a_SOURCES):
71580         Add dup-safer.c, fopen-safer.c.
71581         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
71582
71583         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
71584         * lib/unistd-safer.h: New files.
71585
71586 2001-02-25  Paul Eggert  <eggert@twinsun.com>
71587
71588         The mkstemp replacement is taken from glibc 2.2.2, with some
71589         portability fixes for use outside glibc, as follows:
71590
71591         * lib/tempname.c (struct_stat64): New macro.
71592         (direxists, __gen_tempname): Use it.
71593         This avoids a portability problem with Solaris 8.
71594
71595         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
71596         (<stddef.h>, <stdint.h>, <string.h>):
71597         Include only if STDC_HEADERS || _LIBC.
71598         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
71599         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
71600         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
71601         (__set_errno): Define this macro if <errno.h> doesn't.
71602         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
71603         Define these macros if <stdio.h> doesn't.
71604         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
71605         Define these macros if <sys/stat.h>
71606         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
71607         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
71608         __xstat64): Define if not _LIBC.
71609         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
71610         (__gen_tempname): Invoke gettimeofday only if
71611         HAVE_GETTIMEOFDAY || _LIBC;
71612         otherwise, fall back on plain "time".
71613         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
71614
71615         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
71616
71617         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
71618
71619 2001-02-18  Paul Eggert  <eggert@twinsun.com>
71620
71621         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
71622
71623 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71624
71625         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
71626         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
71627         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
71628         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71629
71630 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71631
71632         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
71633         Remove workaround macros for hosts that have mbrtowc but not
71634         mbstate_t, as we now insist on proper declarations for both
71635         before using mbrtowc.
71636
71637 2001-02-17  Jim Meyering  <meyering@lucent.com>
71638
71639         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
71640         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
71641         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
71642         UnixWare 7.1.1.
71643
71644         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
71645         rather than AC_CACHE_VAL.
71646
71647 2001-02-17  Jim Meyering  <meyering@lucent.com>
71648
71649         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
71650         around included file name.
71651
71652         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
71653
71654         * lib/strftime.c: Update from GNU libc (the only changes were to
71655         comments).
71656
71657 2001-02-17  Jim Meyering  <meyering@lucent.com>
71658
71659         * lib/regex.c: Update from libc.
71660
71661 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
71662
71663         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
71664         clash.
71665
71666 2001-02-16  Paul Eggert  <eggert@twinsun.com>
71667
71668         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
71669         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
71670         Reported by Mark Hounschell via Paul Eggert.
71671
71672 2001-02-07  Jim Meyering  <meyering@lucent.com>
71673
71674         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
71675
71676 2001-02-05  Jim Meyering  <meyering@lucent.com>
71677
71678         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
71679         it includes the patch required for `large file' support with at least
71680         HP-UX's 10.20 /bin/cc.
71681
71682 2001-02-03  Jim Meyering  <meyering@lucent.com>
71683
71684         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
71685         AS_IF, now that it works once again (mysteriously).
71686         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71687
71688 2001-01-30  Jim Meyering  <meyering@lucent.com>
71689
71690         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
71691         * m4/chown.m4: Rename conftestchown to conftest.chown.
71692         * m4/rename.m4: s/conftestdir/conftest.d1/ and
71693         s/conftestdir2/conftest.d2/.
71694         * m4/utimes.m4: s/conftestdata/conftest.data/
71695         Inspired by Pavel Roskin's change in autoconf.
71696
71697 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
71698
71699         * lib/config.charset: Update for FreeBSD 4.2.
71700
71701 2001-01-27  Jim Meyering  <meyering@lucent.com>
71702
71703         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
71704         a use of AS_IF.
71705         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71706
71707 2001-01-26  Jim Meyering  <meyering@lucent.com>
71708
71709         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
71710         quotearg.c includes it.
71711
71712 2001-01-26  Jim Meyering  <meyering@lucent.com>
71713
71714         * lib/quotearg.c: Include stddef.h.
71715         * lib/quote.c: Include stddef.h.
71716         Reported by Axel Kittenberger.
71717
71718         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
71719         line in double quotes so that it evokes a better diagnostic.
71720         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
71721         Reported by Axel Kittenberger.
71722
71723 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
71724
71725         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
71726         as if it was a `charset'.
71727
71728 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71729
71730         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
71731         has const.
71732
71733 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71734
71735         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
71736         to avoid a warning.  Add back 'const' to inptr.
71737
71738 2001-01-20  Jim Meyering  <meyering@lucent.com>
71739
71740         Be sure that headers are checked before used in code compiled
71741         for the type checks.
71742         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
71743         In place of that, invoke jm_CHECK_ALL_TYPES.
71744         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
71745         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
71746         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
71747         The check for ssize_t was mistakenly run before the test for unistd.h.
71748
71749         The configure-time check for stdbool.h was missing.
71750         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
71751         (jm_PREREQ_HASH): New function.
71752
71753 2001-01-17  Jim Meyering  <meyering@lucent.com>
71754
71755         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
71756         for autoconf-2.49c.
71757         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
71758
71759 2001-01-16  Jim Meyering  <meyering@lucent.com>
71760
71761         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
71762         From Bruno Haible.
71763
71764 2001-01-14  Jim Meyering  <meyering@lucent.com>
71765
71766         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
71767         foo and bar.  Create conftestdir/ in the script, not in the C code.
71768         Remove directories in the script, not in the C code.
71769         Remove conftestdir{,2} before trying to create the directory.
71770         Make the entire configure script fail if the mkdir fails.
71771
71772 2001-01-14  Jim Meyering  <meyering@lucent.com>
71773
71774         * lib/rename.c: New file.  From Volker Borchert.
71775         Include stdlib.h, string.h or strings.h, and xalloc.h.
71776         Use strip_trailing_slashes rather than open-coding it.
71777
71778 2001-01-03  Paul Eggert  <eggert@twinsun.com>
71779
71780         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
71781
71782 2001-01-03  Jim Meyering  <meyering@lucent.com>
71783
71784         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
71785         of local `inptr' to avoid warning with some system declarations of
71786         iconv.
71787
71788 2001-01-02  Volker Borchert  <bt@teknon.de>
71789
71790         * m4/rename.m4: New file.
71791         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
71792
71793 2001-01-01  Jim Meyering  <meyering@lucent.com>
71794
71795         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
71796         even on systems with utmpx.h.  It's necessary for the declaration of
71797         utmp's ut_user member.  Reported by Andreas Jaeger.
71798
71799         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
71800         available. They are required for the declarations of getgrgid and
71801         getpwuid resp.
71802         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
71803         Reported by Andreas Jaeger.
71804
71805 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
71806
71807         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
71808         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
71809         so `make install' also works in VPATH builds.
71810
71811 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
71812
71813         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
71814         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
71815         can be used in subdirectories.
71816
71817 2000-12-29  Paul Eggert  <eggert@twinsun.com>
71818
71819         * lib/modechange.c: Do not assume that mode_t uses the
71820         traditional octal encoding.  E.g. "chmod 1 FOO" should set
71821         the other-execute bit of FOO even if S_IXOTH != 1.
71822
71823         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
71824         WOTH, XOTH, ALLM): New macros.
71825         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
71826          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
71827         Use them.
71828         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
71829         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
71830         (mode_compile):
71831         No need to use uintmax_t; unsigned long is long enough.
71832         Don't bother to get suffix since we don't use it.
71833
71834 2000-12-26  Jim Meyering  <meyering@lucent.com>
71835
71836         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
71837         better with autoheader.
71838
71839 2000-12-24  Jim Meyering  <meyering@lucent.com>
71840
71841         * lib/hash.c (is_prime): Return explicit boolean values.
71842         (hash_get_first): Return NULL to appease Irix5.6's 89.
71843         Reported by Nelson Beebe.
71844
71845 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
71846
71847         * lib/localcharset.c (locale_charset): Add support for Win32.
71848
71849 2000-12-18  Paul Eggert  <eggert@twinsun.com>
71850
71851         * lib/physmem.h, lib/physmem.c: New files.
71852
71853         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
71854         (noinst_HEADERS): Add physmem.h.
71855
71856         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
71857         't' for compatibility with Solaris 8 sort.
71858
71859 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
71860
71861         * lib/config.charset: Add support for BeOS.
71862
71863 2000-12-17  Jim Meyering  <meyering@lucent.com>
71864
71865         * m4/dos.m4 (jm_AC_DOS): New file and macro.
71866         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
71867
71868 2000-12-16  Jim Meyering  <meyering@lucent.com>
71869
71870         This bug had a serious impact on chown: `chown N:M FILE' (for integer
71871         N and M) would have treated it like `chown N:N FILE'.
71872
71873         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
71874
71875 2000-12-16  Jim Meyering  <meyering@lucent.com>
71876
71877         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
71878         SHELLS_FILE to a file name that's useful on djgpp systems.
71879         Include stdlib.h.
71880         (ADDITIONAL_DEFAULT_SHELLS): Define.
71881         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
71882         Based mostly on a patch from Prashant TR.
71883
71884 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
71885
71886         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
71887         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
71888         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
71889
71890 2000-12-08  Andreas Schwab  <schwab@suse.de>
71891
71892         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
71893         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
71894
71895 2000-12-07  Jim Meyering  <meyering@lucent.com>
71896
71897         * lib/stripslash.c (ISSLASH): Define.
71898         (strip_trailing_slashes): Use ISSLASH rather than comparing against
71899         `/'.
71900         From Prashant TR.
71901
71902         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
71903         (dir_name_r): Declare this function as static.
71904         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
71905         manifest itself on a name containing a mix of slashes and
71906         backslashes.
71907         Make this function work with names starting with a DOS-style
71908         drive letter and colon prefix.
71909         (dir_name): Append `.' if necessary.
71910         Based mostly on patches from Prashant TR and Eli Zaretskii.
71911
71912         * lib/dirname.h (dir_name_r): Remove prototype.
71913
71914 2000-12-06  Paul Eggert  <eggert@twinsun.com>
71915
71916         * m4/off_t-format.m4: Remove this file.
71917         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
71918
71919 2000-12-06  Jim Meyering  <meyering@lucent.com>
71920
71921         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
71922         replacement strtoull, we may well need the replacement strtoul, too.
71923         Check for declarations of strtoul and strtoull.
71924         Check for strtol.  Mainly as a cue to cause automake to include
71925         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
71926         Check for limits.h -- strtol.c needs it.
71927
71928 2000-12-05  Jim Meyering  <meyering@lucent.com>
71929
71930         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
71931
71932 2000-12-04  Jim Meyering  <meyering@lucent.com>
71933
71934         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
71935         Also include memory.h, stdlib.h, unistd.h if appropriate.
71936         Reported by Andreas Jaeger (conflicting declaration of malloc).
71937
71938 2000-12-02  Jim Meyering  <meyering@lucent.com>
71939
71940         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
71941         * m4/jm-macros.m4 (jm_MACROS): require it.
71942
71943 2000-12-02  Jim Meyering  <meyering@lucent.com>
71944
71945         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
71946
71947 2000-12-01  Paul Eggert  <eggert@twinsun.com>
71948
71949         * lib/memrchr.c: Include <config.h> before any system include file.
71950
71951 2000-11-30  Jim Meyering  <meyering@lucent.com>
71952
71953         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
71954
71955 2000-11-30  Jim Meyering  <meyering@lucent.com>
71956
71957         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
71958
71959 2000-11-29  Paul Eggert  <eggert@twinsun.com>
71960
71961         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
71962
71963 2000-11-26  Jim Meyering  <meyering@lucent.com>
71964
71965         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
71966
71967 2000-11-22  Paul Eggert  <eggert@twinsun.com>
71968
71969         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
71970         size of (size_t) -1; it's not portable.
71971
71972 2000-11-17  Jim Meyering  <meyering@lucent.com>
71973
71974         * lib/strstr.c: Update from GNU libc.
71975
71976 2000-11-17  Akim Demaille  <akim@epita.fr>
71977
71978         * lib/obstack.h: Formatting changes.
71979         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
71980         prevent type checking.
71981         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
71982         cast the value to (void *): assigning a `foo *' to a `void *'
71983         variable is valid.
71984         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
71985
71986 2000-11-16  Jim Meyering  <meyering@lucent.com>
71987
71988         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
71989
71990 2000-11-11  Jim Meyering  <meyering@lucent.com>
71991
71992         * lib/error.c: Add a couple #includes, merging from GNU libc version.
71993
71994 2000-11-10  Jim Meyering  <meyering@lucent.com>
71995
71996         * lib/obstack.h: Update from GNU libc.
71997         * lib/obstack.c: Likewise.
71998
71999 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72000
72001         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72002
72003 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72004
72005         * lib/getusershell.c (setusershell): Use rewind rather than
72006         fseek/fseeko, to avoid configuration hassles with fseeko.
72007         Don't bother opening SHELLS_FILE if shellstream is NULL;
72008         it's not necessary.
72009
72010 2000-11-05  Jim Meyering  <meyering@lucent.com>
72011
72012         * lib/makepath.h (make_dir): Declare.
72013         * lib/makepath.c (make_dir): Remove `static' attribute.
72014         Tweak a comment.
72015
72016 2000-11-04  Jim Meyering  <meyering@lucent.com>
72017
72018         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72019
72020 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72021
72022         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72023         last one in a bucket, advance to the next bucket.
72024
72025 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72026
72027         * lib/fnmatch.c: Do not comment out all the code if we are using
72028         the GNU C library, because in some cases we are replacing buggy
72029         code in the GNU C library itself.
72030
72031 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72032
72033         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72034         (regex_compile): Catch bogus \(\1\).
72035
72036 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72037
72038         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72039         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72040         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72041
72042 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72043
72044         * lib/error.h, getline.h, modechange.h:
72045         Remove "2000" from Copyright line, as the file hasn't been
72046         changed this year other than in the copyright notice.
72047
72048         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72049         was changed this year.
72050
72051 2000-10-29  Jim Meyering  <meyering@lucent.com>
72052
72053         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72054         renaming.
72055         * m4/ls-mntd-fs.m4: Likewise
72056
72057 2000-10-29  Jim Meyering  <meyering@lucent.com>
72058
72059         * lib/xstat.in: Fix grammar in comment.
72060
72061 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72062
72063         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72064         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72065         doesn't define __restrict_arr.
72066
72067 2000-10-28  Jim Meyering  <meyering@lucent.com>
72068
72069         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72070         (jm_PREREQ_MEMCHR): New function.
72071
72072 2000-10-28  Jim Meyering  <meyering@lucent.com>
72073
72074         * lib/memchr.c: Update from libc.
72075         Adjust for portability:
72076         [HAVE_STDLIB_H]: Include stdlib.h.
72077         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72078         Undef __memchr, too.
72079         [!weak_alias]: Define __memchr to memchr.
72080
72081         * lib/regex.c: Update from libc.
72082         * lib/regex.h: Likewise.
72083         * lib/getopt1.c: Likewise.
72084         * lib/memcmp.c: Likewise.
72085
72086         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72087         Avoid using fseek, when possible -- it's broken by design.
72088         Patch by Ulrich Drepper.
72089
72090 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72091
72092         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72093         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72094         Giving in to popular pressure to shut up the compiler with casts.
72095
72096 2000-10-26  Jim Meyering  <meyering@lucent.com>
72097
72098         * lib/strftime.c: Update from libc.
72099
72100 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72101
72102         * regex.c: More `unsigned char' -> `re_char' changes.
72103         Also change several `int' into `re_wchar_t'.
72104         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72105         (PUSH_FAILURE_POINTER): Don't cast any more.
72106         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72107         We want GCC to complain, since this piece of code makes
72108         re_match non-reentrant, which *should* be fixed.
72109         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72110         (EXTEND_BUFFER): Use RETALLOC.
72111         (SET_LIST_BIT): Don't cast.
72112         (re_wchar_t): New type.
72113         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72114         that those two functions will always properly return.
72115         (IMMEDIATE_QUIT_CHECK): Cast to void.
72116         (analyse_first): Use recursion rather than an explicit stack.
72117         (re_compile_fastmap): Can't fail anymore.
72118         (re_search_2): Don't check re_compile_fastmap for failure.
72119         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72120         Now also sets the new value (passed in a new argument).
72121         (re_match_2_internal): Use it.
72122         Also, use a new var `reg' of type size_t when looping through regs
72123         rather than reuse the inappropriate `mcnt'.
72124
72125 2000-10-25  Jim Meyering  <meyering@lucent.com>
72126
72127         * lib/obstack.c: Update from libc.
72128
72129 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72130
72131         * regex.c (regex_compile): Change the way of handling a range from
72132         a char less than 256 to a char not less than 256.
72133
72134 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72135
72136         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72137         NT-Emacs only.
72138         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72139         so that re_search functions only quit when callers expect them to.
72140
72141 2000-10-23  Jim Meyering  <meyering@lucent.com>
72142
72143         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72144         wrong.  That set_locale call must not have any side effects.
72145         From Paul Eggert.
72146
72147 2000-10-22  Jim Meyering  <meyering@lucent.com>
72148
72149         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72150         [CYCLIC]: Remove now-unused definition.
72151
72152         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72153         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72154         Suggestion from Ulrich Drepper.
72155
72156 2000-10-21  Jim Meyering  <meyering@lucent.com>
72157
72158         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72159         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72160         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72161
72162 2000-10-21  Jim Meyering  <meyering@lucent.com>
72163
72164         * lib/dirname.c (memrchr): Declare if necessary.
72165         (dir_name): Remove the restriction that there be no
72166         trailing slashes.  Now, this code skips past them, effectively
72167         ignoring them.
72168         [TEST_DIRNAME] (main): New unit tests.
72169
72170         * lib/memrchr.c: New file from GNU libc.
72171         Undef __memrchr, too.
72172         [!weak_alias]: Define __memrchr to memrchr.
72173         Guard weak_alias use with `#ifdef weak_alias'.
72174
72175 2000-10-21  Jim Meyering  <meyering@lucent.com>
72176
72177         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72178         (dir_name): Use dir_name_r.
72179         * lib/dirname.h (dir_name_r): Declare it.
72180
72181 2000-10-17  Jim Meyering  <meyering@lucent.com>
72182
72183         * lib/quote.h (PARAMS): Define and use.
72184         Reported by Akim Demaille.
72185
72186         * lib/getopt.c: Update from libc.
72187
72188 2000-10-16  Jim Meyering  <meyering@lucent.com>
72189
72190         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72191         setlocale.
72192         From Jan Fedak.
72193
72194 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72195
72196         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72197
72198 2000-09-25  Jim Meyering  <meyering@lucent.com>
72199
72200         * lib/md5.h (rol): Define (from GnuPG).
72201
72202         * lib/sha.c: Give credit (GnuPG) where due.
72203         (M): Use rol rather than open-coding it.
72204         Add a FIXME comment.
72205
72206 2000-09-21  Jim Meyering  <meyering@lucent.com>
72207
72208         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72209         Reported by Michael Stone.
72210
72211 2000-09-20  Jim Meyering  <meyering@lucent.com>
72212
72213         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72214         (noinst_HEADERS): Add sha.h.
72215         Based on code from Scott G. Miller and from GnuPG.
72216
72217 2000-09-18  Jim Meyering  <meyering@lucent.com>
72218
72219         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72220         LIBS. Otherwise, everyone ends up linking with -lelf for some
72221         configurations.
72222         Reported by Mike Stone.
72223
72224 2000-09-15  Jim Meyering  <meyering@lucent.com>
72225
72226         * lib/regex.c: Update from libc.
72227
72228 2000-09-10  Jim Meyering  <meyering@lucent.com>
72229
72230         * lib/getopt.c (_getopt_internal): Update from glibc.
72231
72232 2000-09-09  Jim Meyering  <meyering@lucent.com>
72233
72234         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72235         think it should be used as a general replacement for isascii.
72236         * lib/fnmatch.c: Likewise.
72237         * lib/mbswidth.c: Likewise
72238         * lib/regex.c: Likewise.
72239
72240         Don't use atoi.
72241         * lib/userspec.c: Include sys/param.h and limits.h.
72242         Include xstrtol.h.
72243         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72244         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72245         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72246         UID, GID.  Check range.
72247
72248 2000-09-06  Jim Meyering  <meyering@lucent.com>
72249
72250         * lib/getopt.c (_getopt_internal): Update from glibc.
72251
72252 2000-08-30  Jim Meyering  <meyering@lucent.com>
72253
72254         * lib/strftime.c: Merge in changes from GNU libc.
72255
72256 2000-08-26  Jim Meyering  <meyering@lucent.com>
72257
72258         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72259         * m4/fpending.m4: New file.
72260
72261 2000-08-26  Jim Meyering  <meyering@lucent.com>
72262
72263         * lib/closeout.c: Include "__fpending.h".
72264         (close_stdout_status): Return right away if there's nothing to flush.
72265
72266         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72267         * lib/__fpending.c: New file.
72268         * lib/__fpending.h: New file.
72269
72270 2000-08-20  Jim Meyering  <meyering@lucent.com>
72271
72272         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72273         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72274         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72275
72276 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72277
72278         Improve fileutils installation on systems where running
72279         programs (like install) can't be unlinked.
72280         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72281         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72282
72283 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72284
72285         Standardize on "memory exhausted" instead of "Memory exhausted"
72286         or "virtual memory exhausted".
72287         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72288         "virtual memory exhausted".
72289         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72290         our own message.
72291         * lib/userspec.c (parse_user_spec): Likewise.
72292         * lib/bumpalloc.h: comment fix
72293         * lib/same.c, userspec.c: Include xalloc.h.
72294
72295         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72296         not char *const and pointing to a constant array.
72297         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72298         (xrealloc): Comment fix.
72299
72300         * lib/userspec.c (parse_user_spec):
72301         Don't translate a message until just before returning,
72302         to avoid unnecessary translation.
72303
72304 2000-08-07  Jim Meyering  <meyering@lucent.com>
72305
72306         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72307         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72308         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72309         getgroups.c, gethostname.c, getopt.h, group-member.c,
72310         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72311         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72312         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72313         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72314         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72315         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72316         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72317         yesno.c: Back out Copyright date changes for each file with no change
72318         this year.  This eases coordination with other programs using the same
72319         source code modules.  From Paul Eggert.
72320
72321 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72322
72323         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72324         not char, for compatibility with glibc 2.1.3 strftime.c.
72325
72326 2000-08-03  Greg McGary  <greg@mcgary.org>
72327
72328         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72329         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72330         (EXTEND_BUFFER): Use them.
72331
72332 2000-08-01  Jim Meyering  <meyering@lucent.com>
72333
72334         * lib/dirname.c (ISSLASH): Define.
72335         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72336         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72337         both `\' and `/' may be use as path separators.
72338         Based on a patch from Prashant TR.
72339
72340 2000-07-31  Paul Eggert  <eggert@twinsun.com>
72341
72342         * lib/quotearg.c (quotearg_n_options): Don't make the initial
72343         slot vector a constant, since it might get modified.
72344
72345 2000-07-31  Jim Meyering  <meyering@lucent.com>
72346
72347         * lib/xmalloc.c: Use `virtual memory exhausted', not
72348         `Memory exhausted'.
72349         * lib/obstack.c (print_and_abort): Likewise.
72350
72351 2000-07-30  Paul Eggert  <eggert@twinsun.com>
72352
72353         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
72354         buffer, so that the caller can always quote one small
72355         component of a "memory exhausted" message in slot 0.
72356         From a suggestion by Jim Meyering.
72357
72358 2000-07-30  Jim Meyering  <meyering@lucent.com>
72359
72360         * lib/makepath.c (make_path): Quote the other instance, too.
72361
72362         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
72363         (STATIC_BUF_SIZE): Define.
72364         (quotearg_n_options): Use only statically allocated storage when
72365         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72366         than STATIC_BUF_SIZE.
72367
72368 2000-07-29  Jim Meyering  <meyering@lucent.com>
72369
72370         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72371         * lib/dirname.c (dir_name): Likewise.
72372
72373         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72374         `/'.
72375
72376         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72377         (dir_name): Assert that there are no trailing slashes.
72378
72379 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72380
72381         * lib/mbswidth.h (mbswidth): Add a flags argument.
72382         (mbswidth): New declaration.
72383         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72384         * lib/mbswidth.c (mbswidth): Add a flags argument.
72385         (mbsnwidth): New function.
72386
72387 2000-07-24  Jim Meyering  <meyering@lucent.com>
72388
72389         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72390
72391 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72392
72393         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72394
72395 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72396
72397         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72398         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72399         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72400         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72401         invoke multibyte primitives.
72402
72403 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72404
72405         * lib/quotearg.c:
72406         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72407         so that mbstate_t is always defined.
72408
72409         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72410         be 1 in at least one GCC installation, and this configuration
72411         error is likely to be common.  Ignoring MB_LEN_MAX hurts
72412         performance on hosts that have mbrtowc but have only unibyte
72413         locales, but I assume these hosts are rare.
72414
72415 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72416
72417         * lib/mbswidth.c (_XOPEN_SOURCE):
72418         Don't define; this causes problems on Solaris 7.
72419         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
72420
72421 2000-07-23  Jim Meyering  <meyering@lucent.com>
72422
72423         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
72424         too: getgrgid, getpwuid, getuid.
72425
72426 2000-07-23  Jim Meyering  <meyering@lucent.com>
72427
72428         * lib/basename.c (base_name): Add an assertion.
72429
72430 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
72431
72432         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
72433         shadow its mbsinit function.
72434
72435 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72436
72437         * lib/mbswidth.h: New file.
72438         * lib/mbswidth.c: New file.
72439         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
72440         (noinst_HEADERS): Add mbswidth.h.
72441
72442 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72443
72444         * lib/config.charset: Add support for FreeBSD. Improve support for
72445         HP-UX and IRIX 6.
72446
72447 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
72448
72449         * m4/mbswidth.m4: New file.
72450         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
72451
72452 2000-07-15  Jim Meyering  <meyering@lucent.com>
72453
72454         * lib/makepath.c: Include quote.h.
72455         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
72456         corresponding argument in a `quote (...)' call.
72457         Give better diagnostics.
72458
72459         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
72460         (noinst_HEADERS): Add quote.h.
72461
72462         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
72463         from tar's src/misc.c.
72464         * lib/quote.h: New file.  Prototypes for same.
72465
72466 2000-07-14  Paul Eggert  <eggert@twinsun.com>
72467
72468         From a suggestion by Bruno Haible.
72469         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
72470         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
72471         to decide whether to define the BeOS workaround macro;
72472         this adjusts to the change to AC_MBSTATE_T.
72473
72474 2000-07-14  Jim Meyering  <meyering@lucent.com>
72475
72476         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
72477         jm_AC_TYPE_UINTMAX_T.
72478
72479 2000-07-13  Paul Eggert  <eggert@twinsun.com>
72480
72481         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
72482
72483         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
72484         quotearg_buffer_restyled): Add support for
72485         clocale_quoting_style.  Undo previous change to
72486         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
72487         and "{RIGHT QUOTATION MARK}" msgids.
72488
72489 2000-07-10  Paul Eggert  <eggert@twinsun.com>
72490
72491         From a suggestion by Bruno Haible.
72492         * m4/mbstate_t.m4 (AC_MBSTATE_T):
72493         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
72494         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
72495         and mbstate_t, to a single-part test that simply defines mbstate_t.
72496         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
72497         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
72498
72499 2000-07-10  Jim Meyering  <meyering@lucent.com>
72500
72501         * m4/strerror_r.m4: Mirror the correction made in autoconf.
72502
72503         * m4/gnu-source.m4: Output to confdefs.h directly.
72504         Suggestion from Akim Demaille.
72505
72506 2000-07-09  Paul Eggert  <eggert@twinsun.com>
72507
72508         The old behavior of quoting `like this' doesn't look good with
72509         newer, ISO-style fonts.  See:
72510         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
72511
72512         Instead, quote "like this" by default.  Let the translator
72513         tailor the locale-specific quoting behavior by providing
72514         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
72515
72516         * lib/quotearg.c (N_): New macro.
72517         (gettext_default): New function.
72518         (quotearg_buffer_restyled): Use
72519         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
72520         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
72521
72522 2000-07-09  Jim Meyering  <meyering@lucent.com>
72523
72524         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
72525         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
72526
72527         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
72528         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
72529
72530 2000-07-09  Jim Meyering  <meyering@lucent.com>
72531
72532         * lib/Most files: Update copyright dates to include 2000.
72533
72534 2000-07-08  Jim Meyering  <meyering@lucent.com>
72535
72536         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
72537         if not defined.
72538         (xgethostname): Remove now-unnecessary #ifdef.
72539         Move declaration of `err' into loop where it's used.
72540
72541 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72542         and Bruno Haible  <haible@clisp.cons.org>
72543
72544         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
72545         only if the test for an object-type mbstate_t fails.  This
72546         prevents us from mistakenly reporting that mbstate_t is a
72547         system object type after we "#define mbstate_t int" to work
72548         around its lack.
72549
72550 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72551         and Bruno Haible  <haible@clisp.cons.org>
72552
72553         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
72554
72555 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72556
72557         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
72558         to strerror_r.
72559         Include <ctype.h> for use of isalpha.
72560
72561 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72562
72563         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
72564         by allocating a larger buffer. Test the gethostname return value for
72565         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
72566         returns an error and ENAMETOOLONG isn't defined.
72567
72568 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72569
72570         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
72571         dimension.
72572
72573 2000-07-04  Jim Meyering  <meyering@lucent.com>
72574
72575         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
72576         of the deprecated AC_CHECKING.
72577
72578 2000-07-04  Jim Meyering  <meyering@lucent.com>
72579
72580         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
72581         Reported by Bruno Haible.
72582
72583 2000-07-04  Jim Meyering  <meyering@lucent.com>
72584
72585         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
72586         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
72587         lacks mbrtowc.
72588
72589 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72590
72591         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
72592         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
72593
72594 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72595         and Bruno Haible  <haible@clisp.cons.org>
72596
72597         * lib/quotearg.c (mbrtowc):
72598         Assign to *pwc, and return 1 only if result is nonzero.
72599         (iswprint): Use ISPRINT when substituting our own mbrtowc.
72600
72601 2000-07-03  Jim Meyering  <meyering@lucent.com>
72602
72603         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
72604
72605 2000-07-03  Jim Meyering  <meyering@lucent.com>
72606
72607         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
72608         This is necessary to get a definition of e.g., UTMP_FILE on
72609         HP-UX 10.20.
72610         From Bob Proulx.
72611
72612 2000-07-02  Jim Meyering  <meyering@lucent.com>
72613
72614         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
72615
72616         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
72617         AC_LIBOBJ(function_name).
72618         * m4/chown.m4: Likewise.
72619         * m4/fnmatch.m4: Likewise.
72620         * m4/ftruncate.m4: Likewise.
72621         * m4/getgroups.m4: Likewise.
72622         * m4/getline.m4: Likewise.
72623         * m4/group-member.m4: Likewise.
72624         * m4/jm-macros.m4: Likewise.
72625         * m4/lstat.m4: Likewise.
72626         * m4/malloc.m4: Likewise.
72627         * m4/memcmp.m4: Likewise.
72628         * m4/nanosleep.m4: Likewise.
72629         * m4/putenv.m4: Likewise.
72630         * m4/realloc.m4: Likewise.
72631         * m4/regex.m4: Likewise.
72632         * m4/stat.m4: Likewise.
72633         * m4/strftime.m4: Likewise.
72634
72635 2000-07-02  Jim Meyering  <meyering@lucent.com>
72636
72637         * lib/quotearg.c (mbstate_t): Don't define here.
72638
72639 2000-07-02  Jim Meyering  <meyering@lucent.com>
72640
72641         * lib/nanosleep.c (SIGCONT): Define if not already defined.
72642
72643 2000-07-01  Jim Meyering  <meyering@lucent.com>
72644
72645         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
72646
72647 2000-07-01  Jim Meyering  <meyering@lucent.com>
72648
72649         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
72650         problem.
72651
72652 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72653
72654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
72655         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
72656
72657 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72658
72659         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
72660         per change in ../m4/ls-mntd-fs.m4.
72661         (read_filesystem_list): Ignore symbolic links.
72662
72663 2000-06-29  Jim Meyering  <meyering@lucent.com>
72664
72665         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
72666         for declaration of strcmp.
72667
72668         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
72669
72670         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
72671         Avoid warning by casting result to `char *' to remove `const'.
72672
72673 2000-06-28  Jim Meyering  <meyering@lucent.com>
72674
72675         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
72676         included by quotearg.c, for which we perform this test.  From
72677         Bruno Haible.
72678
72679 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72680
72681         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
72682         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
72683         <utmpx.h> exists, put readutmp.o into LIBOBJS.
72684
72685 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72686
72687         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
72688
72689 2000-06-26  Paul Eggert  <eggert@twinsun.com>
72690
72691         savedir now sets errno on failure and invokes xmalloc to get memory.
72692         Fix a couple of other minor bugs while we're at it.
72693
72694         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
72695         (NAMLEN): Remove macro.
72696         (malloc, realloc): Remove decls.
72697         (stpcpy): Likewise.
72698         ("xalloc.h"): Include.
72699         (NAME_SIZE_DEFAULT): New macro.
72700         (savedir): Use xmalloc / xrealloc to allocate memory.
72701         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
72702         Skip "" directory entries.
72703         Use strlen to calculate directory entry length, since the old method
72704         is rarely used these days and isn't worth supporting.
72705         Don't use a pointer after freeing it.
72706         Check for integer overflow when calculating allocation size.
72707         Use memcpy to copy entries, instead of stpcpy.
72708         Set errno properly when returning NULL.
72709         Check for readdir error.
72710
72711 2000-06-26  Jim Meyering  <meyering@lucent.com>
72712
72713         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
72714
72715 2000-06-25  Jim Meyering  <meyering@lucent.com>
72716
72717         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
72718         Linux header bug when _XOPEN_SOURCE is defined to 500.
72719
72720 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72721
72722         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
72723         deficiency.
72724
72725 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72726
72727         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
72728         Include xalloc.h.
72729         Don't include <stdlib.h>.  Don't declare malloc, realloc.
72730
72731 2000-06-24  Jim Meyering  <meyering@lucent.com>
72732
72733         * m4/strerror_r.m4: Revive this file -- to try out an experimental
72734         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
72735         for which strerror does return char*, but which lacks a conveniently
72736         accessible declaration of the function.  If the compile-test says
72737         strerror_r doesn't work, then resort to a `run'-test that works on
72738         BeOS and segfaults on DEC Unix.
72739
72740 2000-06-24  Jim Meyering  <meyering@lucent.com>
72741
72742         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
72743
72744 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72745
72746         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
72747         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
72748
72749 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72750
72751         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
72752         (mbrtowc, mbstate_t): Define substitutes if
72753         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
72754         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
72755         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
72756
72757 2000-06-23  Jim Meyering  <meyering@lucent.com>
72758
72759         * m4/afs.m4: Add missing AC_MSG_RESULT.
72760         Reported by Bruno Haible.
72761
72762         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
72763         Suggestion from Bruno Haible.
72764
72765 2000-06-23  Jim Meyering  <meyering@lucent.com>
72766
72767         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
72768
72769 2000-06-21  Jim Meyering  <meyering@lucent.com>
72770
72771         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
72772
72773 2000-06-21  Jim Meyering  <meyering@lucent.com>
72774
72775         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
72776         (noinst_HEADERS): Add getstr.h.
72777
72778         * lib/getline.c (getstr): Move into a separate file.
72779         * lib/getstr.c (getstr): New file, extracted from getline.c, with
72780         the following changes: new parameter, delim2; both delim[12]
72781         parameters have type `int', not `char'.  The latter would lose
72782         with 8-bit delimiters.
72783         * lib/getstr.h: New file.
72784
72785 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72786
72787         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
72788         than 1024, return a memory chunk of least possible size, instead
72789         of size PATH_MAX + 2. In the loop, increment the size proportionally.
72790         Use free/xmalloc instead of xrealloc to avoid copying for very long
72791         paths.
72792
72793 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72794
72795         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
72796         the empty string.
72797
72798 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72799
72800         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
72801         address, not strdup.  Include <stdlib.h> and don't declare free().
72802
72803 2000-06-19  Jim Meyering  <meyering@lucent.com>
72804
72805         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
72806
72807 2000-06-18  Jim Meyering  <meyering@lucent.com>
72808
72809         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
72810
72811         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
72812         `checking whether...' message to be consistent with that of the
72813         lstat test.
72814
72815 2000-06-18  Jim Meyering  <meyering@lucent.com>
72816
72817         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
72818         Besides, these days every porting target provides a mkdir function.
72819
72820         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
72821         needed. (this snippet comes from src/system.h).
72822
72823 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
72824
72825         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
72826
72827 2000-06-15  Paul Eggert  <eggert@twinsun.com>
72828
72829         * lib/human.c (adjust_value): New function.
72830         (human_readable_inexact): Apply rounding style even when
72831         printing approximate values.
72832
72833 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72834
72835         * lib/human.c (human_readable_inexact): Allow an input block
72836         size that is not a multiple of the output block size, and vice versa.
72837         Reported by Piergiorgio Sartor.
72838
72839 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72840
72841         * lib/getdate.y (get_date): Apply relative times after time
72842         zone indicator, not before.  Reported by Todd A. Jacobs.
72843
72844 2000-06-13  Jim Meyering  <meyering@lucent.com>
72845
72846         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
72847
72848         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
72849
72850 2000-06-12  Paul Eggert  <eggert@twinsun.com>
72851
72852         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
72853
72854 2000-06-12  Jim Meyering  <meyering@lucent.com>
72855
72856         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
72857         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
72858         optional argument.
72859         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
72860         the optional argument, `lib'.
72861
72862 2000-06-08  Jim Meyering  <meyering@lucent.com>
72863
72864         * m4/largefile.m4: Remove file (now that it's part of autoconf).
72865
72866 2000-06-04  Paul Eggert  <eggert@twinsun.com>
72867
72868         Rewrite largefile configuration so that we don't need to run
72869         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
72870         AC_CANONICAL_HOST in configure.in -- jmm]
72871
72872         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
72873         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
72874         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
72875         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
72876         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
72877         All uses changed.
72878         Instead of inspecting the output of getconf, try to compile the
72879         test program without and with the macro definition.
72880         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
72881         for getconf.  Instead, check for the needed flags by compiling
72882         test programs.
72883
72884 2000-06-04  Paul Eggert  <eggert@twinsun.com>
72885
72886         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
72887
72888 2000-06-04  Jim Meyering  <meyering@lucent.com>
72889
72890         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
72891         SunOS 4.1.4 for which gid_t is an unsigned type.
72892
72893 2000-06-03  Jim Meyering  <meyering@lucent.com>
72894
72895         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
72896         now that autoconf requires that.
72897
72898         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
72899         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
72900         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
72901
72902 2000-06-03  Jim Meyering  <meyering@lucent.com>
72903
72904         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
72905
72906 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72907
72908         * m4/glibc21.m4: New file.
72909         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
72910
72911 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72912
72913         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
72914         newer, don't install charset.alias.
72915         * lib/config.charset: Change the Linux/glibc rules so they become empty
72916         on glibc-2.1 or newer.
72917
72918 2000-06-02  Jim Meyering  <meyering@lucent.com>
72919
72920         * lib/mountlist.c: Back out last change.  Instead, do this...
72921         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
72922         me_dummy member using the same `ignore'-testing code.
72923         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
72924         fs_type strings.
72925         From Mark D. Roth.
72926
72927 2000-05-29  Jim Meyering  <meyering@lucent.com>
72928
72929         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
72930         mounts with the `ignore' attribute.  Based on a patch from
72931         Mark D. Roth.
72932
72933 2000-05-28  Jim Meyering  <meyering@lucent.com>
72934
72935         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
72936         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72937         * m4/stat.m4: Likewise.
72938         * m4/lstat.m4: Likewise.
72939         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
72940
72941         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
72942         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
72943
72944 2000-05-26  Jim Meyering  <meyering@lucent.com>
72945
72946         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
72947
72948 2000-05-24  Jim Meyering  <meyering@lucent.com>
72949
72950         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
72951         autoconf requires that.
72952         * m4/lib-check.m4: Likewise.
72953         * m4/jm-macros.m4: Likewise.
72954         * m4/strftime.m4: Likewise.
72955
72956         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
72957         AC_CHECK_DECLS, now that autoconf requires that.
72958
72959 2000-05-22  Jim Meyering  <meyering@lucent.com>
72960
72961         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72962         * m4/lstat.m4: Likewise.
72963
72964 2000-05-22  Jim Meyering  <meyering@lucent.com>
72965
72966         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
72967
72968 2000-05-20  Jim Meyering  <meyering@lucent.com>
72969
72970         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
72971         (jm_PREREQ): Use it.
72972
72973 2000-05-18  Jim Meyering  <meyering@lucent.com>
72974
72975         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
72976         back, too, since it may have been modified by allocate_entry.
72977         (hash_delete): Rewrite to use neither the assignment operator
72978         nor the comma operator in an if-expression.
72979
72980 2000-05-15  Paul Eggert  <eggert@twinsun.com>
72981
72982         * lib/closeout.c:
72983         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
72984         Remove; no longer needed.
72985         "quotearg.h": Add include.
72986         (file_name): Do not bother to explicitly initialize to NULL; it's less
72987         efficient on some hosts.
72988         (close_stdout_status): Remove test as to whether stdout was already
72989         closed; it breaks for the case "echo x | sort >&-".
72990         Quote file name colons.
72991         Do not assume that _("write error") lacks format strings.
72992
72993 2000-05-15  Jim Meyering  <meyering@lucent.com>
72994
72995         * lib/version-etc.c (version_etc_copyright): Update the copyright
72996         string used in all --version output.
72997
72998 2000-05-14  Jim Meyering  <meyering@lucent.com>
72999
73000         * lib/closeout.c (close_stdout_set_file_name): New function.
73001         (close_stdout_status): Use new file-scoped global.
73002         Return right away if fstat says the stdout file descriptor is invalid.
73003         * lib/closeout.h (close_stdout_set_file_name): Declare.
73004
73005 2000-05-10  Jim Meyering  <meyering@lucent.com>
73006
73007         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73008         (close_stdout_set_status): New function.
73009         * lib/closeout.h (close_stdout_set_status): Declare.
73010
73011 2000-05-09  Jim Meyering  <meyering@lucent.com>
73012
73013         * m4/gettext.m4: Rename this...
73014         * m4/libintl.m4: ...to this.
73015
73016 2000-05-08  Jim Meyering  <meyering@lucent.com>
73017
73018         * lib/long-options.c: Don't include closeout.h.
73019         (parse_long_options): Don't call close_stdout for --version.
73020
73021 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73022
73023         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73024         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73025         2.1.3 bug.  This avoids a clash when files like regex.c define
73026         _GNU_SOURCE.
73027
73028 2000-05-06  Jim Meyering  <meyering@lucent.com>
73029
73030         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73031         (AC_REPLACE_FUNCS): Add strnlen.
73032
73033         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73034         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73035
73036         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73037         AC_SEARCH_LIBS call for nanosleep.
73038         (LIB_NANOSLEEP): Set and AC_SUBST.
73039
73040 2000-05-06  Jim Meyering  <meyering@lucent.com>
73041
73042         * lib/strnlen.c: Undefine __strnlen and strnlen.
73043         [!weak_alias]: Define __strnlen to strnlen.
73044
73045         * lib/atexit.c: New file, from libiberty.
73046
73047 2000-05-06  Jim Meyering  <meyering@lucent.com>
73048
73049         * lib/closeout.c (close_stdout_status): Also check for errors on the
73050         stderr stream.
73051
73052 2000-05-05  Jim Meyering  <meyering@lucent.com>
73053
73054         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73055         AC_SEARCH_LIBS call for clock_gettime.
73056         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73057
73058         * m4/search-libs.m4: Update from autoconf.
73059
73060         su doesn't work on Solaris 2.6.
73061         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73062         <shadow.h>.  Reported by Dragos Harabor.
73063
73064 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73065
73066         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73067         memcpy instead of xmalloc, xrealloc, path_concat.
73068         (locale_charset): Treat empty environment variables as absent.
73069         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73070
73071 2000-05-04  Jim Meyering  <meyering@lucent.com>
73072
73073         * lib/getopt.c: Update from glibc.
73074         * lib/obstack.c: Likewise.
73075         * lib/obstack.h: Likewise.
73076         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73077         file
73078
73079         * lib/regex.h: Likewise.
73080         * lib/strndup.c: Likewise.
73081         * lib/strnlen.c: New file, from glibc.
73082
73083 2000-05-03  Jim Meyering  <meyering@lucent.com>
73084
73085         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73086
73087 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73088
73089         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73090         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73091         compile-time test, rather than inspecting host and OS, to
73092         decide whether to define _LARGEFILE_SOURCE.
73093
73094 2000-05-01  Jim Meyering  <meyering@lucent.com>
73095
73096         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73097
73098         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73099         Based on a patch from Bruno Haible.
73100
73101 2000-05-01  Jim Meyering  <meyering@lucent.com>
73102
73103         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73104
73105 2000-04-29  Jim Meyering  <meyering@lucent.com>
73106
73107         * lib/path-concat.c: Declare strdup only if it's not defined.
73108         * lib/canon-host.c: Likewise.
73109
73110 2000-04-28  Jim Meyering  <meyering@lucent.com>
73111
73112         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73113         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73114         is included first, then limits.h is included by locale.h by libintl.h.
73115         From John David Anglin.
73116
73117 2000-04-25  Jim Meyering  <meyering@lucent.com>
73118
73119         * lib/makepath.c (S_IRWXUGO): Define.
73120         (make_path): Always perform explicit chmod if MODE specifies any
73121         of the `special' permission bits.  Prompted by a bug report against
73122         install from Mate Wierdl and Joost van Baal.
73123
73124 2000-04-18  Jim Meyering  <meyering@lucent.com>
73125
73126         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73127         (jm_PREREQ): Use it.
73128
73129 2000-04-18  Jim Meyering  <meyering@lucent.com>
73130
73131         * lib/README: New file.
73132
73133         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73134         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73135
73136 2000-04-17  Jim Meyering  <meyering@lucent.com>
73137
73138         Get it right :-)
73139         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73140         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73141         Suggestion from Akim Demaille.
73142
73143 2000-04-17  Jim Meyering  <meyering@lucent.com>
73144
73145         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73146         the definition of it to rpl_strftime also defined-away the system's
73147         declaration.
73148
73149 2000-04-15  Jim Meyering  <meyering@lucent.com>
73150
73151         Use `C' to denote so-called `contiguous' files, the same way
73152         that tar does.
73153         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73154         (ftypelet): Use S_ISCTG.
73155         From Michael Deutschmann.
73156
73157 2000-04-14  Jim Meyering  <meyering@lucent.com>
73158
73159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73160         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73161         clobbered.
73162
73163 2000-04-14  Jim Meyering  <meyering@lucent.com>
73164
73165         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73166
73167 2000-04-13  Jim Meyering  <meyering@lucent.com>
73168
73169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73170         AH_VERBATIM to insert required #ifndef into config.h.in.
73171         Suggestion from Akim Demaille.
73172
73173 2000-04-12  Jim Meyering  <meyering@lucent.com>
73174
73175         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73176         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73177         Christian Krackowizer.
73178
73179         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73180         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73181         (AC_SYS_LARGEFILE): Require.
73182         (AM_C_PROTOTYPES): Require.
73183
73184 2000-04-08  Jim Meyering  <meyering@lucent.com>
73185
73186         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73187         names don't conflict.  Reported by Eli Zaretskii.
73188
73189 2000-04-07  Jim Meyering  <meyering@lucent.com>
73190
73191         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73192         sys/types.h, to work around system header problems on AIX 3.2.5.
73193         From Bruno Haible.
73194
73195 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73196
73197         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73198         bug.  Deal with the different error behavior of Irix iconv.
73199
73200 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73201
73202         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73203         IRIX if the installer said otherwise.
73204
73205 2000-04-05  Jim Meyering  <meyering@lucent.com>
73206
73207         Portability tweaks required for ultrix4.3.
73208         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73209         (jm_CHECK_DECLS): Add getutent to the list of functions.
73210         (_jm_DECL_HEADERS): Add utmpx.h.
73211         From John David Anglin.
73212
73213         * m4/strftime.m4: Back out the 2000-04-02 change.
73214         Instead of that change, simply undefine putenv in the test program.
73215
73216 2000-04-05  Jim Meyering  <meyering@lucent.com>
73217
73218         Portability tweaks required for ultrix4.3.
73219         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73220         getutent.
73221         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73222         * lib/canon-host.c: Declare strdup.
73223         * lib/path-concat.c: Likewise.
73224         From John David Anglin.
73225
73226 2000-04-04  Jim Meyering  <meyering@lucent.com>
73227
73228         Be more DOS 8.3-friendly.
73229         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73230         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73231         * lib/Makefile.am: Reflect renaming.
73232         Reported by Eli Zaretskii.
73233
73234         Use a temporary file name that won't clash with `charset.alias'
73235         in the DOS 8.3 name space.
73236         * lib/Makefile.am (charset_tmp): Define.
73237         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73238         (uninstall-local): Likewise.
73239         Reported by Eli Zaretskii.
73240
73241 2000-04-03  Jim Meyering  <meyering@lucent.com>
73242
73243         * m4/gettext.m4: Fix typo in comment.
73244
73245         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73246         textutils/configure.in).  Suggestion from Paul Eggert.
73247         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73248
73249 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73250
73251         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73252         variable in the shell rather than using putenv, which isn't
73253         portable.  This avoids the configure-time inter-test dependency
73254         on the potentially-renamed putenv function.
73255
73256 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73257
73258         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73259         before checking struct stat.st_blksize, so that
73260         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73261
73262 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73263
73264         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73265         since strftime.c uses HAVE_STRFTIME to decide whether to use
73266         the underlying strftime.
73267
73268 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73269
73270         * lib/time/strftime.c (my_strftime): Make sure we call the system
73271         strftime, not ourselves, when invoking the underlying strftime.
73272
73273 2000-03-24  Jim Meyering  <meyering@lucent.com>
73274
73275         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73276         (charset_alias): Define.
73277         (install-exec-local): Factor out common code.
73278         (uninstall-local): Split lines longer than 80.
73279         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73280         (SUFFIXES): Define.
73281         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73282         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73283
73284 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73285
73286         * lib/config.charset: Output a line containing "Packages using this
73287         file".
73288         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73289         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73290         ref-del.sed): New rules.
73291
73292 2000-03-17  Jim Meyering  <meyering@lucent.com>
73293
73294         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73295         Otherwise, include <strings.h>
73296
73297 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73298
73299         * lib/unicodeio.c (utf8_wctomb): New function.
73300         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73301         format instead of in UCS-4 with platform dependent endianness.
73302
73303 2000-03-10  Jim Meyering  <meyering@lucent.com>
73304
73305         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73306         From Marco Franzen.
73307
73308 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73309
73310         * lib/savedir.c (savedir): Work even if directory size is
73311         negative; this can happen with some screwy NFS configurations.
73312
73313 2000-03-06  Jim Meyering  <meyering@lucent.com>
73314
73315         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73316         if it's NULL (because we ran out of memory).  From Bruno Haible.
73317
73318 2000-03-05  Jim Meyering  <meyering@lucent.com>
73319
73320         * lib/localcharset.c ("path-concat.h"): Include.
73321         (get_charset_aliases): Use path_concat instead of ANSI string
73322         concatenation.
73323
73324         * lib/unicodeio.h (PARAMS): Define.
73325         Use it to guard prototype.
73326
73327 2000-03-04  Jim Meyering  <meyering@lucent.com>
73328
73329         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73330         for lib/localcharset.c.
73331
73332 2000-03-04  Jim Meyering  <meyering@lucent.com>
73333
73334         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73335         installing into it.
73336         (uninstall-local): Uncomment this rule so `make distcheck' works
73337         once again.
73338
73339         * lib/unicodeio.c (<errno.h>): Include it.
73340         (errno): Declare if not defined.
73341
73342         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
73343
73344         * lib/config.charset: New version, incorporating remarks from a linux
73345         i18n mailing list.  From Bruno Haible.
73346
73347 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
73348
73349         * m4/codeset.m4: New file.
73350         * m4/iconv.m4: New file.
73351         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
73352
73353 2000-03-03  Jim Meyering  <meyering@lucent.com>
73354
73355         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
73356
73357 2000-03-02  Jim Meyering  <meyering@lucent.com>
73358
73359         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
73360         the messages come out on separate lines.
73361
73362         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
73363         rather than jm_CHECK_DECLARATIONS.
73364         * m4/decl.m4: Remove now-unused file.
73365
73366         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73367         geteuid.
73368
73369 2000-03-02  Jim Meyering  <meyering@lucent.com>
73370
73371         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73372
73373 2000-03-01  Jim Meyering  <meyering@lucent.com>
73374
73375         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73376         * lib/unicodeio.c: Likewise.
73377
73378 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73379
73380         * lib/config.charset: New file.
73381         * lib/localcharset.c: New file.
73382         * lib/unicodeio.h, lib/unicodeio.c: New files.
73383         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73384         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73385         (noinst_HEADERS): Add unicodeio.h.
73386         (all-local, install-exec-local, charset.alias): New targets.
73387
73388 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73389
73390         * lib/quotearg.c (ALERT_CHAR): New macro.
73391         (quotearg_buffer_restyled): Use it.
73392
73393 2000-02-27  Jim Meyering  <meyering@lucent.com>
73394
73395         * m4/check-decl.m4: Add getenv to the list.
73396
73397 2000-02-27  Jim Meyering  <meyering@lucent.com>
73398
73399         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73400         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73401
73402         * lib/backupfile.c: Guard inclusion of stdlib.h with
73403         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73404         Declare malloc if needed.
73405
73406         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73407         `#ifndef HAVE_DECL..'
73408         now that autoconf always defines the HAVE_DECL_ symbols.
73409         * lib/human.c: Likewise.
73410         * lib/same.c: Likewise.
73411         * lib/strtoumax.c: Likewise.
73412
73413         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
73414         declaration check was not run.
73415         * lib/hash.c: Likewise.
73416         * lib/human.c: Likewise.
73417         * lib/same.c: Likewise.
73418         * lib/strtoumax.c: Likewise.
73419
73420         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
73421         `.', then first look up the entire `.'-containing string as a login
73422         name.
73423
73424 2000-02-23  Jim Meyering  <meyering@lucent.com>
73425
73426         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
73427         in place of my hack.
73428
73429 2000-02-18  Paul Eggert  <eggert@twinsun.com>
73430
73431         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
73432         (textint): New typedef.
73433         (parser_control): Member year changed from int to textint.
73434         All uses changed.
73435         (YYSTYPE): Removed; replaced by %union with int and textint members.
73436         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
73437         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
73438         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
73439         (tSNUMBER, tUNUMBER): Now of type <textintval>.
73440         (date, number, to_year): Use width of number in digits, not its value,
73441         to determine whether it's a 2-digit year, or a 2-digit time.
73442         (yylex): Store number of digits of numeric tokens.
73443         Reported by John Kendall.
73444
73445         (parser_control): Changed from struct parser_control to typedef (for
73446         consistency).  All uses changed.
73447
73448         (tID): Removed; not used.
73449         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
73450
73451 2000-02-14  Paul Eggert  <eggert@twinsun.com>
73452
73453         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
73454         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
73455
73456 2000-02-12  Jim Meyering  <meyering@lucent.com>
73457
73458         * lib/userspec.c (ISDIGIT): Define it.
73459         (isdigit): Remove definition.
73460         (is_number): Use ISDIGIT, not isdigit.
73461         <libintl.h>: Include.
73462         (_ and N_): Define.
73463         (parse_user_spec): Mark translatable strings.
73464
73465 2000-02-10  Jim Meyering  <meyering@lucent.com>
73466
73467         With these changes, nanosleep.[ch] are finally enough like the other
73468         lib/* replacement files to compile on a few more losing systems.
73469
73470         * lib/nanosleep.h: Don't include config.h.
73471         Remove prototype from declaration of nanosleep.
73472         (PARAMS): Remove now-unneeded definition.
73473         * lib/nanosleep.c: #undef nanosleep.
73474         (rpl_nanosleep): Rename from nanosleep.
73475
73476 2000-02-10  Jim Meyering  <meyering@lucent.com>
73477
73478         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
73479         gnu_nanosleep to rpl_nanosleep.
73480
73481 2000-02-09  Jim Meyering  <meyering@lucent.com>
73482
73483         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
73484         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
73485
73486 2000-02-08  Akim Demaille  <akim@epita.fr>
73487
73488         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
73489         `[' and `]' and remove uses of `changequote'.
73490         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
73491         (AC_SYS_LARGEFILE): Likewise.
73492         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
73493         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
73494         of changequote.
73495         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
73496         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
73497         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
73498         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
73499
73500 2000-02-05  Jim Meyering  <meyering@lucent.com>
73501
73502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
73503         Remove explicit use of AC_HEADER_TIME.  It is required by
73504         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
73505         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
73506         in autoconf whereby the expansion of the latter ended up preceding
73507         the expansion of its prerequisite, AC_HEADER_TIME.
73508         Reported by Volker Borchert.
73509
73510 2000-02-03  Jim Meyering  <meyering@lucent.com>
73511
73512         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
73513
73514 2000-02-03  Jim Meyering  <meyering@lucent.com>
73515
73516         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
73517         rather than with `#if HAVE_UTMPNAME'.
73518
73519 2000-02-02  Jim Meyering  <meyering@lucent.com>
73520
73521         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
73522         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
73523         Reported by Eli Zaretskii.
73524
73525 2000-02-01  Jim Meyering  <meyering@lucent.com>
73526
73527         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
73528
73529 2000-01-31  Jim Meyering  <meyering@lucent.com>
73530
73531         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
73532         functions.  Add the time.h and sys/time.h headers along with the
73533         AC_REQUIRE'ment of AC_HEADER_TIME.
73534
73535 2000-01-31  Jim Meyering  <meyering@lucent.com>
73536
73537         * lib/nanosleep.h (nanosleep): Guard declaration with
73538         `#if ! HAVE_DECL_NANOSLEEP'.
73539         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
73540         the declaration in that vendor's sys/timers.h.
73541         Reported by Christian Krackowizer.
73542
73543         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
73544         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
73545         (ISPRINT): Likewise.
73546         Reported by Tom Tromey.
73547
73548 2000-01-30  Jim Meyering  <meyering@lucent.com>
73549
73550         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
73551
73552         * m4/prereq.m4 (utmp_includes): Define.
73553         Check for ut_user and ut_name members in both struct utmpx
73554         and struct utmp.
73555
73556 2000-01-30  Jim Meyering  <meyering@lucent.com>
73557
73558         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
73559         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
73560         header files where only utmpx.ut_user is declared.
73561
73562         * lib/readutmp.h (UT_USER): Define.
73563
73564 2000-01-29  Jim Meyering  <meyering@lucent.com>
73565
73566         * m4/lib-check.m4: New file containing library-related checks from
73567         fileutils and sh-utils (textutils had none).
73568
73569 2000-01-28  Jim Meyering  <meyering@lucent.com>
73570
73571         * m4/perl.m4: Change format of warning message to look more like that
73572         from the missing script.  Suggestion from François Pinard.
73573
73574 2000-01-25  Jim Meyering  <meyering@lucent.com>
73575
73576         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
73577         well as time.h in the compile check.
73578         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
73579         Fix typo in cross-compiling case: s/yes/no/.
73580
73581 2000-01-23  Jim Meyering  <meyering@lucent.com>
73582
73583         * m4/jm-macros.m4: Move df-related tests here from
73584         fileutils/configure.in
73585
73586         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
73587         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
73588
73589         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
73590         s/space/ac_fsusage_space/.
73591         (jm_FILE_SYSTEM_USAGE): Take two parameters.
73592
73593         * m4/ftruncate.m4: New file (derived from part of
73594         fileutils/configure.in).
73595         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
73596         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
73597
73598         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
73599         AC_SUBST these here, rather than just in sh-util/configure.in, so
73600         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
73601         all the same.
73602         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
73603         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
73604         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
73605         (AC_SUBST(POW_LIBM)): Likewise.
73606         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
73607
73608 2000-01-23  Jim Meyering  <meyering@lucent.com>
73609
73610         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
73611         obstack.c.
73612
73613 2000-01-22  Jim Meyering  <meyering@lucent.com>
73614
73615         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
73616
73617         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
73618
73619         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
73620         configure.in
73621         (AC_CHECK_HEADERS): Likewise for sh-utils.
73622         (AC_CHECK_HEADERS): Likewise for textutils.
73623         Merge the three lists of headers.
73624
73625         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
73626         from fileutils' configure.in.
73627
73628         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
73629         code. Moved tests into their own function (_jm_DECL_HEADERS) in
73630         check-decl.m4.
73631
73632         * m4/check-decl.m4: Use #if rather than #ifdef.
73633         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
73634         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
73635         (_jm_DECL_HEADERS): Define new function.
73636         (jm_CHECK_DECLARATIONS): Require it.
73637
73638 2000-01-22  Jim Meyering  <meyering@lucent.com>
73639
73640         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
73641         [! HAVE_DECL_STRTOULL]: Declare strtoull.
73642         Required for some AIX systems.  Reported by Christian Krackowizer.
73643         [TESTING] (main): New function.
73644
73645         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
73646         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
73647         letters.
73648
73649         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
73650         iswprint.
73651
73652         * lib/strverscmp.c (ISDIGIT): Define.
73653         (strverscmp): Use ISDIGIT, not isdigit.
73654
73655 2000-01-19  Jim Meyering  <meyering@lucent.com>
73656
73657         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
73658         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
73659         defines `struct timespec' in <sys/time.h>
73660
73661         * m4/c-bs-a.m4: Remove uses of changequote altogether.
73662         Thanks to Akim for explaining.
73663
73664 2000-01-17  Paul Eggert  <eggert@twinsun.com>
73665
73666         * lib/nanosleep.c (nanosleep):
73667         Don't use SA_INTERRUPT to decide whether to call sigaction, as
73668         POSIX.1 doesn't require SA_INTERRUPT and some systems
73669         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
73670         it's been part of POSIX.1 since day 1 (in 1988).
73671
73672 2000-01-17  Jim Meyering  <meyering@lucent.com>
73673
73674         * lib/interlock: Remove unused file.  Reported by François Pinard.
73675
73676 2000-01-16  Paul Eggert  <eggert@twinsun.com>
73677
73678         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
73679         alert, backslash, formfeed, and vertical tab unnecessarily in
73680         shell quoting style.
73681
73682 2000-01-16  Jim Meyering  <meyering@lucent.com>
73683
73684         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
73685         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
73686         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
73687         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
73688
73689 2000-01-16  Jim Meyering  <meyering@lucent.com>
73690
73691         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
73692         because the latter didn't work.
73693
73694 2000-01-15  Jim Meyering  <meyering@lucent.com>
73695
73696         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
73697         (AC_REPLACE_FUNCS): Add memcpy and memset.
73698         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
73699         Add strpbrk.
73700         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
73701
73702 2000-01-12  Jim Meyering  <meyering@lucent.com>
73703
73704         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
73705         (jm_PREREQ): Use it.
73706         (jm_PREREQ_READUTMP): New macro.
73707         (jm_PREREQ): Use it.
73708
73709 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73710
73711         Quote multibyte characters correctly.
73712         * m4/c-bs-a.m4: New file.
73713         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
73714         (jm_PREREQ): Use it.
73715
73716 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73717
73718         * m4/uintmax_t.m4: Port to autoconf 2.13.
73719
73720 2000-01-08  Jim Meyering  <meyering@ascend.com>
73721
73722         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
73723         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
73724
73725 2000-01-04  Jim Meyering  <meyering@ascend.com>
73726
73727         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
73728         jm_STRUCT_DIRENT_D_TYPE.
73729         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
73730         jm_STRUCT_DIRENT_D_INO.
73731         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
73732         jm_STRUCT_UTIMBUF.
73733         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
73734         renamings.
73735         * m4/utime.m4: Likewise.
73736
73737         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
73738         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
73739
73740 2000-01-03  Paul Eggert  <eggert@twinsun.com>
73741
73742         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
73743         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
73744
73745 2000-01-02  Jim Meyering  <meyering@ascend.com>
73746
73747         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
73748         remember if this is necessary.
73749
73750 1999-12-26  Jim Meyering  <meyering@ascend.com>
73751
73752         * m4/jm-macros.m4: Use it here.
73753         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
73754
73755 1999-12-23  Jim Meyering  <meyering@ascend.com>
73756
73757         * m4/jm-macros.m4: Check for clock_gettime (moved from
73758         fileutils/configure.in)
73759         Check for gettimeofday.
73760
73761 1999-12-20  Jim Meyering  <meyering@ascend.com>
73762
73763         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
73764         autoconf-2.14a-1999-12-20.
73765
73766 1999-12-19  Jim Meyering  <meyering@ascend.com>
73767
73768         * m4/lstat-slash.m4: New file.
73769         * m4/jm-macros.m4: Use the new macro:
73770         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73771
73772 1999-12-07  Jim Meyering  <meyering@ascend.com>
73773
73774         * m4/perl.m4: Require that File::Compare be available, too.
73775         Too many systems seem to lack it.
73776
73777         * m4/strftime.m4: Add checks for most of the cpp macros tested in
73778         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
73779
73780 1999-11-18  Paul Eggert  <eggert@twinsun.com>
73781
73782         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
73783         problem with the QNX 4.25 shell, which doesn't propagate exit
73784         status of failed commands inside shell assignments.
73785
73786 1999-11-17  Jim Meyering  <meyering@ascend.com>
73787
73788         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
73789
73790 1999-11-07  Jim Meyering  <meyering@ascend.com>
73791
73792         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
73793
73794 1999-11-06  Jim Meyering  <meyering@ascend.com>
73795
73796         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
73797         * m4/jm-macros.m4 (jm_MACROS): Use it here.
73798
73799 1999-11-05  Jim Meyering  <meyering@ascend.com>
73800
73801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
73802         configure.in of textutils, fileutils, and sh-utils into this one
73803         (shared between those packages) file.
73804         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
73805         AC_STRUCT_ST_BLKSIZE.
73806
73807 1999-11-03  Jim Meyering  <meyering@ascend.com>
73808
73809         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
73810         of AC_CHECK_TYPE checks includes unistd.h.
73811         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
73812         Suggestion from Akim Demaille.
73813
73814 1999-10-30  Jim Meyering  <meyering@ascend.com>
73815
73816         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
73817         m4-quoted string.
73818         * m4/ls-mntd-fs.m4: Likewise.
73819         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
73820         * m4/jm-winsz1.m4: Likewise.
73821
73822         * m4/const.m4: Remove file, since the fix made it into the experimental
73823         version of autoconf.
73824         * m4/mktime.m4: Likewise.
73825
73826         * m4/check-type.m4: Remove file, now that the latest version of
73827         AC_CHECK_TYPE takes a third arg to specify additional #includes.
73828
73829         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
73830         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
73831         AC_CHECK_TYPE.
73832
73833 1999-10-04  Jim Meyering  <meyering@ascend.com>
73834
73835         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
73836
73837 1999-09-22  Paul Eggert  <eggert@twinsun.com>
73838
73839         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
73840         2.95.1 bug with HP-UX 10.20.
73841
73842 1999-09-17  Jim Meyering  <meyering@ascend.com>
73843
73844         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
73845         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
73846         due to missing strdup (against sh-utils-2.0).
73847
73848 1999-08-29  Jim Meyering  <meyering@ascend.com>
73849
73850         * m4/jm-macros.m4: Require jm_BISON.
73851         * m4/bison.m4: New file.
73852
73853 1999-08-17  Paul Eggert  <eggert@twinsun.com>
73854
73855         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
73856         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
73857
73858 1999-08-05  Jim Meyering  <meyering@ascend.com>
73859
73860         * m4/getline.m4: Rename test file from conftestdata to conftest.data
73861         to avoid conflicts with `conftest' on 8+3 filesystems.
73862         Suggestion from Eli Zaretskii.
73863
73864 1999-08-04  Jim Meyering  <meyering@ascend.com>
73865
73866         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
73867         fileutils and sh-utils (textutils's getline test was inadequate).
73868         (AM_FUNC_GETLINE): Run this test.
73869         (AC_CHECK_FUNCS): Check for getdelim.
73870         Reported by Bob Proulx.
73871
73872 1999-08-02  Jim Meyering  <meyering@ascend.com>
73873
73874         * m4/jm-macros.m4: Add a comment.
73875
73876 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73877
73878         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
73879         <inttypes.h> defines strtoumax as a macro (and not as a
73880         function).
73881
73882 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73883
73884         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
73885         that we can shift, multiply and divide unsigned long long
73886         values; Ultrix cc can't do it.
73887
73888 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73889
73890         * m4/mktime.m4: New file, which is a preview of what should appear
73891         in the next public autoconf release.
73892
73893 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73894
73895         * m4/lfs.m4: Remove this file.
73896         * m4/largefile.m4: New file.  It contains the old contents of
73897         lfs.m4, except that all names with prefix AC_LFS have been
73898         changed to use the prefix AC_SYS_LARGEFILE instead, to be
73899         compatible with future autoconf versions.  Also, some minor m4
73900         quoting problems have been fixed.
73901
73902 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73903
73904         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
73905         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
73906         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
73907         and simplify the shell code.
73908
73909 1999-08-01  Jim Meyering  <meyering@ascend.com>
73910
73911         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
73912         m4.
73913
73914 1999-07-20  Jim Meyering  <meyering@ascend.com>
73915
73916         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
73917
73918 1999-07-15  Jim Meyering  <meyering@ascend.com>
73919
73920         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
73921
73922 1999-05-22  Jim Meyering  <meyering@ascend.com>
73923
73924         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
73925
73926 1999-05-20  Jim Meyering  <meyering@ascend.com>
73927
73928         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
73929         Add a colon after each `then' in case $4 is empty.
73930
73931 1999-05-16  Jim Meyering  <meyering@ascend.com>
73932
73933         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
73934
73935 1999-05-10  Jim Meyering  <meyering@ascend.com>
73936
73937         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
73938
73939         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
73940         AC_FUNC_MKTIME.
73941
73942 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
73943
73944         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
73945
73946 1999-05-04  Paul Eggert  <eggert@twinsun.com>
73947
73948         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
73949         not CPPFLAGS, so that linking works correctly in IRIX.
73950
73951 1999-04-30  Paul Eggert  <eggert@twinsun.com>
73952
73953         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
73954
73955 1999-04-20  Paul Eggert  <eggert@twinsun.com>
73956
73957         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
73958         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
73959         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
73960         jm_AC_TYPE_UNSIGNED_LONG_LONG.
73961         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
73962
73963         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
73964
73965 1999-04-20  Jim Meyering  <meyering@ascend.com>
73966
73967         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
73968         AC_REPLACE xstroull if necessary.  From Paul Eggert.
73969         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
73970
73971 1999-04-18  Jim Meyering  <meyering@ascend.com>
73972
73973         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
73974         * m4/jm-macros.m4: Use it.
73975
73976 1999-04-06  Jim Meyering  <meyering@ascend.com>
73977
73978         * m4/strftime.m4: Remove test for %f.
73979
73980 1999-03-29  Jim Meyering  <meyering@ascend.com>
73981
73982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
73983         superset of the AC_TYPE_* checks in the textutils, fileutils,
73984         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
73985         AC_TYPE_PID_T.
73986
73987 1999-03-28  Jim Meyering  <meyering@ascend.com>
73988
73989         * m4/jm-macros.m4: Define GNU_PACKAGE here.
73990         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
73991         replaced e.g., in the *.sh files of the sh-utils.
73992
73993 1999-03-20  Jim Meyering  <meyering@ascend.com>
73994
73995         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
73996         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
73997         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
73998
73999 1999-03-19  Jim Meyering  <meyering@ascend.com>
74000
74001         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74002
74003 1999-03-12  Jim Meyering  <meyering@ascend.com>
74004
74005         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74006
74007 1999-03-07  Jim Meyering  <meyering@ascend.com>
74008
74009         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74010         declared.
74011
74012 1999-02-17  Jim Meyering  <meyering@ascend.com>
74013
74014         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74015         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74016
74017 1999-02-07  Jim Meyering  <meyering@ascend.com>
74018
74019         * m4/group-member.m4: New file -- extracted from sh-utils'
74020         configure.in.
74021
74022         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74023         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74024
74025 1999-02-06  Jim Meyering  <meyering@ascend.com>
74026
74027         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74028         * m4/fnmatch.m4: Likewise.
74029         * m4/getgroups.m4: Likewise.
74030         * m4/lstat.m4: Likewise.
74031         * m4/malloc.m4: Likewise.
74032         * m4/putenv.m4: Likewise.
74033         * m4/realloc.m4: Likewise.
74034         * m4/regex.m4: Likewise.
74035         * m4/stat.m4: Likewise.
74036         * m4/strftime.m4: Likewise.
74037         Suggestion from Alain Magloire.
74038
74039         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74040         * m4/fnmatch.m4: Likewise.
74041         * m4/getgroups.m4: Likewise.
74042         * m4/getline.m4: Likewise.
74043         * m4/lstat.m4: Likewise.
74044         * m4/malloc.m4: Likewise.
74045         * m4/memcmp.m4: Likewise.
74046         * m4/putenv.m4: Likewise.
74047         * m4/realloc.m4: Likewise.
74048         * m4/regex.m4: Likewise.
74049         * m4/stat.m4: Likewise.
74050         * m4/strftime.m4: Likewise.
74051         Suggestion from Alain Magloire.
74052
74053         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74054         an argument.
74055
74056         * m4/regex.m4: Add a run-time Test for proper operation of
74057         re_compile_pattern.
74058
74059 1999-01-31  Jim Meyering  <meyering@ascend.com>
74060
74061         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74062
74063 1999-01-30  Jim Meyering  <meyering@ascend.com>
74064
74065         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74066
74067         * m4/jm-mktime.m4: Make this a wrapper around the official
74068         AM_FUNC_MKTIME rather than my private copy, now that the official one
74069         is up to date.
74070         * m4/mktime.m4: Remove file.
74071
74072         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74073         * m4/uptime.m4: Likewise.
74074         * m4/uintmax_t.m4: Likewise.
74075
74076 1999-01-28  Jim Meyering  <meyering@ascend.com>
74077
74078         * m4/jm-macros.m4: Use jm_AFS.
74079         * m4/afs.m4: New file (from fileutils' configure.in).
74080
74081         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74082         * m4/chown.m4: Likewise.
74083         * m4/d-ino.m4: Likewise.
74084         * m4/d-type.m4: Likewise.
74085         * m4/fnmatch.m4: Likewise.
74086         * m4/getgroups.m4: Likewise.
74087         * m4/gettext.m4: Likewise.
74088         * m4/jm-mktime.m4: Likewise.
74089         * m4/jm-winsz2.m4: Likewise.
74090         * m4/lcmessage.m4: Likewise.
74091         * m4/ls-mntd-fs.m4: Likewise.
74092         * m4/malloc.m4: Likewise.
74093         * m4/memcmp.m4: Likewise.
74094         * m4/putenv.m4: Likewise.
74095         * m4/realloc.m4: Likewise.
74096         * m4/st_mtim.m4: Likewise.
74097         * m4/strftime.m4: Likewise.
74098
74099 1999-01-16  Jim Meyering  <meyering@ascend.com>
74100
74101         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74102         (ARGMATCH_DIE_DECL): Define.
74103
74104 1999-01-12  Jim Meyering  <meyering@ascend.com>
74105
74106         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74107         Reported by Lars Hecking.
74108
74109 1999-01-10  Jim Meyering  <meyering@ascend.com>
74110
74111         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74112         gross kludge.
74113         * m4/inttypes_h.m4: Likewise.
74114         * m4/lstat.m4: Likewise.
74115         * m4/malloc.m4: Likewise.
74116         * m4/readdir.m4: Likewise.
74117         * m4/realloc.m4: Likewise.
74118         * m4/st_dm_mode.m4: Likewise.
74119         * m4/stat.m4: Likewise.
74120         * m4/utimbuf.m4: Likewise.
74121         * m4/utimes.m4: Likewise.
74122
74123         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74124         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74125         comments in config.h.in are meaningful.
74126
74127         * m4/jm-macros.m4: Require autoconf-2.13 here.
74128
74129         * m4/regex.m4: By default, don't use the included regex.c on systems
74130         with glibc 2.  Suggestion from Uli Drepper.
74131
74132 1999-01-02  Jim Meyering  <meyering@ascend.com>
74133
74134         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74135
74136 1998-12-18  Jim Meyering  <meyering@ascend.com>
74137
74138         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74139         Based on a suggestion from Lars Hecking.
74140
74141 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74142
74143         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74144
74145 1998-11-16  Jim Meyering  <meyering@ascend.com>
74146
74147         * m4/lfs.m4: Double-quote the `uname...` expression.
74148
74149 1998-11-14  Jim Meyering  <meyering@ascend.com>
74150
74151         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74152         * m4/stat.m4: Likewise.
74153
74154 1998-11-03  Jim Meyering  <meyering@ascend.com>
74155
74156         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74157         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74158
74159 1998-10-18  Jim Meyering  <meyering@ascend.com>
74160
74161         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74162
74163 1998-10-17  Jim Meyering  <meyering@ascend.com>
74164
74165         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74166         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74167         calls for those previously hard-coded headers.  Instead, take a new
74168         parameter.
74169         (jm_CHECK_DECLARATIONS): Reflect interface change.
74170         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74171         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74172
74173         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74174
74175 1998-10-14  Jim Meyering  <meyering@ascend.com>
74176
74177         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74178         instead of "TZ=America/Vancouver".  From Paul Eggert.
74179
74180 1998-10-11  Jim Meyering  <meyering@ascend.com>
74181
74182         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74183         This adds a test for a recently added compatibility fix for mktime.c.
74184         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74185
74186 1998-09-27  Jim Meyering  <meyering@ascend.com>
74187
74188         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74189
74190         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74191         ../configure.in, including a change from Gordon Matzigkeit to allow
74192         cross-compiling for the Hurd.
74193
74194         * m4/glibc.m4: New file/macro to test for the GNU C Library
74195         versions 1 and 2.  From Gordon Matzigkeit.
74196         Indent.
74197
74198 1998-09-21  Jim Meyering  <meyering@ascend.com>
74199
74200         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74201
74202 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74203
74204         Port nanosecond-resolution times to UnixWare 2.1.2 and
74205         pedantic Solaris 2.6.
74206
74207         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74208         AC_STRUCT_ST_MTIM.
74209         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74210         Generate name of ns member, instead of just 1 or undef.
74211         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74212
74213 1998-08-15  Jim Meyering  <meyering@ascend.com>
74214
74215         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74216         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74217         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74218         instead of jm_TYPE_SSIZE_T.
74219
74220 1998-08-12  Jim Meyering  <meyering@ascend.com>
74221
74222         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74223
74224 1998-08-02  Jim Meyering  <meyering@ascend.com>
74225
74226         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74227         in acconfig.h manually.
74228
74229 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74230
74231         * m4/st_mtim.m4: New file.
74232
74233 1998-07-28  Jim Meyering  <meyering@ascend.com>
74234
74235         * m4/utimes.m4: Undef stat.
74236
74237 1998-07-25  Jim Meyering  <meyering@ascend.com>
74238
74239         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74240         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74241
74242 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74243
74244         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74245         uid and gid actually remain unchanged.
74246
74247 1998-07-07  Jim Meyering  <meyering@ascend.com>
74248
74249         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74250
74251 1998-07-04  Jim Meyering  <meyering@ascend.com>
74252
74253         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74254         to prove that this macro can be used in packages without regex.c.
74255
74256 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74257
74258         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74259         is to be used.
74260
74261 1998-07-03  Jim Meyering  <meyering@ascend.com>
74262
74263         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74264
74265         * m4/gettext.m4: New file -- from gettext-0.10.35.
74266         * m4/lcmessage.m4: Likewise.
74267         * m4/progtest.m4: Likewise.
74268
74269         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74270         * m4/jm-macros.m4: Require the new macro.
74271
74272 1998-06-29  Jim Meyering  <meyering@ascend.com>
74273
74274         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74275         for the definition of NGROUPS (used in a system header included
74276         by sys/mount.h).
74277
74278 1998-06-28  Jim Meyering  <meyering@ascend.com>
74279
74280         * m4/ls-mntd-fs.m4: New file.
74281         * m4/fstypename.m4: New file.
74282
74283         * m4/jm-macros.m4: Require the new macro.
74284         * m4/jm-glibc-io.m4: New file.
74285
74286 1998-05-19  Jim Meyering  <meyering@ascend.com>
74287
74288         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74289         * m4/lchown.m4: New file.
74290
74291         * m4/Makefile.am.in: New file.
74292         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74293
74294 1998-05-14  Jim Meyering  <meyering@ascend.com>
74295
74296         * m4/Makefile.am (EXTRA_DIST): Add them.
74297         * m4/jm-macros.m4: New file.
74298         * m4/utimbuf.m4: New file.
74299
74300 1998-05-12  Jim Meyering  <meyering@ascend.com>
74301
74302         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74303
74304 1998-05-11  Jim Meyering  <meyering@ascend.com>
74305
74306         * m4/isc-posix.m4: New file.
74307
74308 1998-05-10  Jim Meyering  <meyering@ascend.com>
74309
74310         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74311
74312 1998-05-09  Jim Meyering  <meyering@ascend.com>
74313
74314         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74315         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74316         with automake.
74317
74318         * m4/ssize_t.m4: New file.
74319         * m4/mktime.m4: Remove file -- the new automake has this now.
74320
74321 1998-04-26  Jim Meyering  <meyering@ascend.com>
74322
74323         * m4/assert.m4: New file.
74324         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74325
74326 1998-04-05  Jim Meyering  <meyering@ascend.com>
74327
74328         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74329         (jm_PREREQ): Use it here.
74330
74331 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74332
74333         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74334         in acconfig.h.
74335
74336 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74337
74338         * m4/prereq.m4: New file.
74339         * m4/error.m4: New file.
74340         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
74341
74342 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
74343
74344         * m4/getline.m4: Don't set am_cv_func_working_getline before the
74345         cache-check for the same variable -- that defeated the purpose of
74346         the test; the test program was never run.  This was a problem only
74347         on systems with losing getline functions -- HP-UX 10.20 is one.
74348         Reported by Bjorn Helgaas.
74349
74350 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
74351
74352         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
74353
74354 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
74355
74356         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
74357
74358         * m4/const.m4: New file.  Use an initializer in this declaration
74359         typedef int charset[2]; const charset x;
74360         Reported by Bob Glickstein.
74361
74362 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
74363
74364         * m4/chown.m4: Fix reversed types on -1 args to chown.
74365         From Kaveh Ghazi.
74366
74367 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74368
74369         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74370         Add lseek and memchr.
74371
74372         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74373         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74374         have a 20-character limit on names.
74375
74376 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74377
74378         * m4/inttypes_h.m4: New file.
74379         * m4/uintmax_t.m4: New file.
74380         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74381
74382
74383         -----
74384
74385         Local Variables:
74386         coding: utf-8
74387         End:
74388
74389         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74390
74391         Copying and distribution of this file, with or without
74392         modification, are permitted provided the copyright notice
74393         and this notice are preserved.